import{c as e,g as a,e as l,U as s,C as t,G as o,q as r,a6 as u,v as d,N as n,B as m,z as i,y as p,x as c,F as f,b0 as b,A as _,D as y,az as v,ae as h,ab as x}from"./base-lib.js?v=1761009159";import{K as j,bq as k,_ as C}from"./utils-lib.js?v=1761009159";import{ap as w,aq as V,ar as g,ak as S,as as U,v as z,at as L,au as q,av as A,aw as D,ax as N,ay as B,az as F}from"./useController13.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./site.js?v=1761009159";import"./index105.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./useStore12.js?v=1761009159";import"./useStore4.js?v=1761009159";import"./useController6.js?v=1761009159";import"./validator.js?v=1761009159";import"./useController5.js?v=1761009159";import"./useMethod5.js?v=1761009159";import"./useController4.js?v=1761009159";import"./useStore10.js?v=1761009159";const G={class:"p-[12px] border-[1px] w-[50rem] h-[22rem] flex flex-col overflow-auto rounded-default border-lighter checkGroup"},I={class:"w-[41rem] flex items-center justify-between"},W=C(e({__name:"applay-lest-ssl",setup(e,{expose:C}){const{BtForm:W,submit:E,param:H}=j({data:w,options:e=>a(()=>[{type:"radio",label:"验证方法",key:"resource",options:[{label:"文件验证",value:"0"},{label:"DNS验证(支持通配符)",value:"1"}]},..."1"===e.value.resource?[{type:"custom",render:()=>l(k,{label:" "},{default:()=>[l(s,{modelValue:e.value.auth_to,"onUpdate:modelValue":a=>e.value.auth_to=a},{default:()=>[t("手动解析")]})]})},{type:"custom",render:()=>l(k,{label:" "},{default:()=>[l(s,{modelValue:e.value.autoWildcard,"onUpdate:modelValue":a=>e.value.autoWildcard=a},{default:()=>[t("自动组合泛域名")]}),l("div",{class:"text-small"},[t("* 如需申请通配符域名请勾选此项，且不要在下方域名列表中选中泛域名")])]})}]:[],{type:"slots",key:"domain"},{type:"custom",render:()=>l(k,{label:" "},{default:()=>[l(o,{type:"primary",onClick:()=>E()},{default:()=>[t("申请证书")]})]})},{type:"help",options:V.value}]),submit:async e=>await g(e)});return C({onConfirm:E}),r(async()=>{S.value="dns",await U(),await z()}),u(L),(e,a)=>{const r=o,u=v,j=h,k=x;return d(),n(p(W),{class:"p-2rem"},{domain:m(()=>[l(k,{label:"域名"},{default:m(()=>[i("div",G,[l(p(s),{indeterminate:p(q),class:"w-full mb-[6px] !border-none !p-[1rem]",modelValue:p(H).checkAll,"onUpdate:modelValue":a[0]||(a[0]=e=>p(H).checkAll=e),onChange:p(A),border:""},{default:m(()=>a[2]||(a[2]=[t(" 全选 ",-1)])),_:1,__:[2]},8,["indeterminate","modelValue","onChange"]),l(j,{class:"flex flex-col",modelValue:p(H).checkList,"onUpdate:modelValue":a[1]||(a[1]=e=>p(H).checkList=e),onChange:p(D)},{default:m(()=>[(d(!0),c(f,null,b(p(N),e=>(d(),n(u,{placement:"top",effect:"dark",trigger:"hover",width:"280",disabled:1===e.apply_ssl,key:e.name},{default:m(()=>a[3]||(a[3]=[i("div",{class:"flex flex-col"},[i("span",null,"Let's Encrypt证书不支持申请IP证书"),i("span",null,"请选择【商用证书】的多域名SSL证书申请")],-1)])),reference:m(()=>[(d(),n(p(s),{class:"w-full !mx-0 mb-[6px] overflow-hidden",disabled:0===e.apply_ssl,value:e.name,key:e.name,border:""},{default:m(()=>[i("div",I,[i("span",null,_(e.name),1),"1"!==p(H).resource||0!==e.dns_status||p(H).auth_to||p(B)(e.name)?y("",!0):(d(),n(r,{key:0,type:"primary",size:"small",class:"ml-auto",onClick:a=>p(F)(e)},{default:m(()=>a[4]||(a[4]=[t(" 配置DNS ",-1)])),_:2,__:[4]},1032,["onClick"]))])]),_:2},1032,["disabled","value"]))]),_:2},1032,["disabled"]))),128))]),_:1},8,["modelValue","onChange"])])]),_:1})]),_:1})}}}),[["__scopeId","data-v-5e70a4d8"]]);export{W as default};
