import{K as e,k as l,bq as a,B as s,l as t,$ as r}from"./utils-lib.js?v=1761009159";import{c as o,s as u,g as m,e as n,G as p,C as i,v as d,x as c,z as y,A as f,y as v,F as C,N as _,D as j,B as x}from"./base-lib.js?v=1761009159";import{S as b,T as V,U as k,V as h,W as S,X as H,Y as w}from"./useController13.js?v=1761009159";import{t as A}from"./useOtherController.js?v=1761009159";import{u as N}from"./useStore11.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 R={class:"p-[5rem]"},U={class:"text-base mb-[2rem]"},I={class:"text-primary"},M={class:"mt-[20px]"},T=o({__name:"index",emits:["close"],setup(o,{emit:T}){const{activeTabs:g,sslIsRefresh:B,testIsRefresh:E,encryptIsRefresh:P,otherIsRefresh:F}=u(N()),q=e=>{s({value:e})},{BtForm:z,param:D}=e({data:b,options:e=>m(()=>[..."CNAME_CSR_HASH"===V.value?[{type:"custom",render:()=>n(a,{label:"主机记录："},{default:()=>[n(l,{modelValue:e.value.dnsHost,"onUpdate:modelValue":l=>e.value.dnsHost=l,class:"!w-[36rem] mr-[1rem]",type:"text",readonly:!0},null),n(p,{type:"primary",onClick:()=>q(e.value.dnsHost)},{default:()=>[i("复制")]})]})},{type:"input",label:"记录类型：",key:"dnsType",attrs:{width:"36rem",readonly:!0}},{type:"custom",render:()=>n(a,{label:"记录值："},{default:()=>[n("div",{class:"flex"},[n(l,{modelValue:e.value.dnsValue,"onUpdate:modelValue":l=>e.value.dnsValue=l,class:"!w-[36rem] mr-[1rem]",type:"textarea",rows:3,readonly:!0},null),n(p,{type:"primary",onClick:()=>q(e.value.dnsValue),class:"align-top"},{default:()=>[i("复制")]})])]})}]:[{type:"custom",render:()=>n(a,{label:"文件位置："},{default:()=>[n(l,{modelValue:e.value.filePath,"onUpdate:modelValue":l=>e.value.filePath=l,class:"!w-[36rem] mr-[1rem]",type:"text",readonly:!0},null),n(p,{type:"primary",onClick:()=>q(e.value.filePath)},{default:()=>[i("复制")]})]})},{type:"custom",render:()=>n(a,{label:"文件名："},{default:()=>[n(l,{modelValue:e.value.fileName,"onUpdate:modelValue":l=>e.value.fileName=l,class:"!w-[36rem] mr-[1rem]",type:"text",readonly:!0},null),n(p,{type:"primary",onClick:()=>q(e.value.fileName)},{default:()=>[i("复制")]})]})},{type:"custom",render:()=>n(a,{label:"记录值："},{default:()=>[n("div",{class:"flex"},[n(l,{modelValue:e.value.fileContent,"onUpdate:modelValue":l=>e.value.fileContent=l,class:"!w-[36rem] mr-[1rem]",type:"textarea",rows:3,readonly:!0},null),n(p,{type:"primary",onClick:()=>q(e.value.fileContent),class:"align-top"},{default:()=>[i("复制")]})])]})}]])}),G=T;return(e,l)=>{const a=t,s=r;return d(),c("div",R,[y("div",U,[l[3]||(l[3]=i(" 请给以下域名【 ",-1)),y("span",I,f(v(k)),1),l[4]||(l[4]=i(" 】 ",-1)),"CNAME_CSR_HASH"===v(V)?(d(),c(C,{key:0},[i(" 添加“"+f(v(D).dnsType)+"”解析，解析参数如下： ",1)],64)):(d(),c(C,{key:1},[i("添加验证文件，验证信息如下：")],64))]),n(v(z),{class:"mb-[20px]"}),"CNAME_CSR_HASH"!==v(V)?(d(),_(a,{key:0,column:v(A),data:v(h)},null,8,["column","data"])):j("",!0),n(s,{options:v(S),class:"ml-[20px] mt-[12px]"},null,8,["options"]),y("div",M,[n(v(p),{type:"primary",onClick:l[0]||(l[0]=e=>(async()=>{var e;await w();const l={ssl:()=>B.value=!0,test:()=>E.value=!0,encrypt:()=>P.value=!0,other:()=>F.value=!0};null==(e=l[g.value])||e.call(l),G("close")})())},{default:x(()=>l[5]||(l[5]=[i("验证域名",-1)])),_:1,__:[5]}),n(v(p),{type:"default",onClick:l[1]||(l[1]=e=>v(H)(G("close")))},{default:x(()=>l[6]||(l[6]=[i(" 修改验证方式 ",-1)])),_:1,__:[6]}),n(v(p),{type:"default",onClick:l[2]||(l[2]=()=>{G("close")})},{default:x(()=>l[7]||(l[7]=[i("返回列表",-1)])),_:1,__:[7]})])])}}});export{T as default};
