import{cc as a}from"./site.js?v=20260328163632";import{u as t,l as s,a9 as e,a2 as l,v as n,x as o}from"./utils-lib.js?v=20260328163632";import{k as i,c as r,r as u,O as c,o as m,V as p,W as d,j as v,Z as x,Y as y,a3 as f,X as k,F as j,L as D,a1 as _}from"./base-lib.js?v=20260328163632";import{x as b}from"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";const h={class:"p-[15px]"},w={class:"max-h-[380px] overflow-auto"},S=i({__name:"index",props:{compData:{default:()=>({uuid:""})}},setup(i){const{isAaPanel:S}=t(),T=i,g=r((()=>{var a,t,e,l;return[{content:s("解析域名需要一定时间来生效,完成所以上所有解析操作后,请等待1分钟后再点击验证按钮")},{content:s("可通过CMD命令来手动验证域名解析是否生效: nslookup -q=txt {0}",[(null==(l=null==(e=null==(t=null==(a=A.value)?void 0:a[0])?void 0:t.data)?void 0:e[0])?void 0:l.name)||""])},{content:s("若您使用的是{0}云解析插件,阿里云DNS,DnsPod作为DNS,可使用DNS接口自动解析",[S.value?"aaPanel":s("宝塔")])}]})),A=u([]),C=u([{title:s("解析域名"),key:"name"},{title:s("记录值"),key:"txt",render:(a,t)=>c("div",{class:"flex items-center"},[c("div",{class:"truncate w-[15rem]"},[a.txt]),c("span",{class:"svgtofont-icon-copy ml-[4px] text-[#666] text-[1.6rem] w-[1.6rem] cursor-pointer",onClick:()=>e({value:a.txt})},null)])},{title:s("类型"),key:"type"},{title:s("必需"),key:"force",width:100}]);return m((async()=>{o({request:a({uuid:T.compData.uuid}),success:a=>{A.value=Object.keys(a.data).map((t=>{const e=a.data[t];let l=[];return l.push({name:e.Record,type:"TXT",txt:e.Value,force:s("是")}),l.push({name:e.Domain.replace("*.",""),type:"CAA",txt:'0 issue "letsencrypt.org"',force:s("否")}),{domain:e.Domain,data:l}}))}})})),(a,t)=>{const e=b;return p(),d("div",h,[v(x(y(s)("请按以下列表做TXT解析:"))+" ",1),c(y(l),null,{content:f((()=>[k("div",w,[(p(!0),d(j,null,D(y(A),((a,t)=>(p(),d("div",{key:t},[a.data.length?(p(),d(j,{key:0},[k("span",null,x(y(s)("验证域名："))+" "+x(a.domain),1),c(e,{class:"my-[10px]",columns:y(C),data:a.data},null,8,["columns","data"])],64)):_("",!0)])))),128))])])),_:1}),c(y(n),{options:y(g),listStyle:"disc",class:"ml-20x"},null,8,["options"])])}}});export{S as default};
