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