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