import{i as e,_ as a,a0 as s}from"./public.js?v=1752142539265";import{_ as l}from"./index.vue_vue_type_script_setup_true_lang.js?v=1752142539265";import{o as t,d as n,m as o}from"./page_layout.js?v=1752142539265";import{cz as r,aq as i,ay as d,bX as u}from"./naive.js?v=1752142539265";import{k as _,P as c,ad as p,e as m,n as v,a4 as y,U as f,X as x,V as S,Q as h,a2 as C,j as b,a3 as B,W as $}from"./vue.js?v=1752142539265";import"./common.js?v=1752142539265";import"./__commonjsHelpers__.js?v=1752142539265";const D={class:"p-40px",show:!1},L={class:"text-14px mb-20px!"},j=_({__name:"dns-verification",props:{uc_id:{},verify:{},request:{type:Boolean},onRefresh:{type:Function}},emits:["close"],setup(_,{emit:j}){const{t:w}=c(),V=_,{uc_id:k,verify:g,request:A}=p(V),P=j,U=m({host_record:"",record_type:"",record_value:"",domain_name:""}),q=async()=>{const{message:e}=await s({uc_id:k.value});n(e)&&("PENDING"===e.certStatus?o.success(w("SSL.Business.index_23")):V.onRefresh(),U.host_record=e.data.DCVdnsHost,U.record_type=e.data.DCVdnsType,U.record_value=e.data.DCVdnsValue)},H=()=>{P("close")};v((()=>{A.value?q():M()}));const M=()=>{U.host_record=g.value.DCVdnsHost,U.record_type=g.value.DCVdnsType,U.record_value=g.value.DCVdnsValue,U.domain_name=g.value.dcvList[0].domainName};return(s,n)=>{const o=t,_=y("i18n-t"),c=i,p=d,m=r,v=u,j=l,w=a;return x(),f("div",D,[S("div",L,[h(_,{keypath:"SSL.Business.index_15",scope:"global"},{a:C((()=>[h(o,null,{default:C((()=>[b(B($(U).domain_name),1)])),_:1})])),b:C((()=>[b(B($(U).record_type),1)])),_:1})]),h(j,{model:$(U),"label-width":"100px"},{default:C((()=>[h(m,{label:s.$t("Mail.Domain.index_37")},{default:C((()=>[h(c,{class:"w-380px!",value:$(U).host_record,"onUpdate:value":n[0]||(n[0]=e=>$(U).host_record=e),readonly:""},null,8,["value"]),h(p,{class:"ml-10px!",type:"primary",onClick:n[1]||(n[1]=a=>$(e)($(U).host_record))},{default:C((()=>[b(B(s.$t("Public.Btn.Copy")),1)])),_:1})])),_:1},8,["label"]),h(m,{label:s.$t("Mail.Domain.index_36")},{default:C((()=>[h(c,{class:"w-380px!",value:$(U).record_type,"onUpdate:value":n[2]||(n[2]=e=>$(U).record_type=e),readonly:""},null,8,["value"])])),_:1},8,["label"]),h(m,{label:s.$t("Mail.Domain.index_38")},{default:C((()=>[h(v,null,{default:C((()=>[h(c,{type:"textarea",class:"w-380px!",value:$(U).record_value,"onUpdate:value":n[3]||(n[3]=e=>$(U).record_value=e),readonly:""},null,8,["value"]),h(p,{type:"primary",onClick:n[4]||(n[4]=a=>$(e)($(U).record_value))},{default:C((()=>[b(B(s.$t("Public.Btn.Copy")),1)])),_:1})])),_:1})])),_:1},8,["label"])])),_:1},8,["model"]),h(w,null,{default:C((()=>[n[5]||(n[5]=S("li",null,"Check for the existence of CAA records, and if they exist, please remove the relevant CAA records.",-1)),S("li",null,B(s.$t("SSL.Business.index_16")),1),S("li",null,B(s.$t("SSL.Business.index_17")),1),S("li",null,B(s.$t("SSL.Business.index_18")),1),S("li",null,B(s.$t("SSL.Business.index_19")),1),S("li",null,[h(o,{href:"https://www.aapanel.com/docs/Function/BusinessCertificate.html",target:"_blank"},{default:C((()=>[b(B(s.$t("SSL.Business.index_20")),1)])),_:1})])])),_:1,__:[5]}),h(v,{class:"mt-20px!"},{default:C((()=>[h(p,{type:"primary",onClick:q},{default:C((()=>[b(B(s.$t("SSL.Business.index_21")),1)])),_:1}),h(p,{onClick:H},{default:C((()=>[b(B(s.$t("SSL.Business.index_22")),1)])),_:1})])),_:1})])}}});export{j as default};
