System.register(["./public-legacy.js?v=1763625242172","./mail-legacy.js?v=1763625242172","./page_layout-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172"],(function(t,l){"use strict";var a,e,n,i,s,d,r,o,u,c,m,_,p,x,v,y,h,b,k,f,M,g,D;return{setters:[t=>{a=t.i},t=>{e=t.ag,n=t.ah},t=>{i=t.m,s=t.gv,d=t.p},t=>{r=t.aC,o=t.d9,u=t.dg,c=t.dc},t=>{m=t.k,_=t.P,p=t.t,x=t.c,v=t.r,y=t.X,h=t.R,b=t.S,k=t.V,f=t.U,M=t.a4,g=t.a3,D=t.j},null,null],execute:function(){var l=document.createElement("style");l.textContent=".record-title[data-v-c4a364ba]{font-size:16px;color:var(--n-color-text-1);font-weight:600;margin-bottom:10px}.record-desc[data-v-c4a364ba]{font-size:14px;color:var(--n-color-text-2);margin-bottom:10px}.bt-link[data-v-c4a364ba]{border:none;outline:none;background:none;padding:0}\n",document.head.appendChild(l);const $={class:"p-20px"},C={class:"record-title"},j={class:"record-desc"},w={class:"record-title"},P={class:"record-desc"},T={class:"record-title"},X={class:"record-desc"},B={class:"record-desc"};t("default",d(m({__name:"index",props:{row:{}},emits:["close","refresh"],setup(t,{emit:l}){const d=t,m=l,{t:R}=_(),S=p(d,"row"),z=x((()=>{let t="";return t+=S.value.ip_address.ipv4.map((t=>`+ip4:${t}`)).join(" "),t+=S.value.ip_address.ipv6.map((t=>`+ip6:${t}`)).join(" "),`v=spf1 +a +mx ${t} -all`})),A=x((()=>[S.value])),I=({status:t})=>y("div",{class:["inline-flex items-center",t?"text-primary":"text-error"]},[y("span",{class:["glyphicon","glyphicon-"+(t?"ok":"remove")]},null),y("span",{class:"ml-4px"},[R(t?"Mail.Domain.index_49":"Mail.Domain.index_9")])]),E=v([{key:"domain",title:R("Mail.Domain.index_3"),width:"20%",ellipsis:{tooltip:!0}},{key:"mx_status",title:"MX",render:t=>y(I,{status:1===t.mx_status},null)},{key:"a_status",title:"A record",render:t=>y(I,{status:1===t.a_status},null)},{key:"spf_status",title:"SPF",render:t=>y(I,{status:1===t.spf_status},null)},{key:"dkim_status",title:"DKIM",render:t=>y(I,{status:1===t.dkim_status},null)},{key:"dmarc_status",title:"DMARC",render:t=>y(I,{status:1===t.dmarc_status},null)},{key:"ptr_status",title:"PTR ",render:t=>y(I,{status:1===t.ptr_status},null)}]),F=async t=>{a(t)},H=async()=>{await e({domain:S.value.domain}),m("close"),m("refresh")},K=async()=>{try{await n({hash:S.value.ssl_hash,domain:S.value.domain}),m("close"),m("refresh")}catch{i.error("Your domain has not yet been integrated with the Domain Name Management Center.")}};return(t,l)=>{const a=u,e=s,n=c;return h(),b("div",$,[y(a,{class:"mb-20px",data:k(A),columns:k(E)},null,8,["data","columns"]),f("div",C,M(t.$t("Mail.Domain.index_34")),1),f("div",j,M(t.$t("Mail.Domain.index_35")),1),y(e,{class:"mb-30px"},{default:g((()=>[f("thead",null,[f("tr",null,[f("th",null,M(t.$t("Mail.Domain.index_36")),1),f("th",null,M(t.$t("Mail.Domain.index_37")),1),f("th",null,M(t.$t("Mail.Domain.index_38")),1),f("th",null,M(t.$t("Mail.Domain.index_39")),1)])]),f("tbody",null,[f("tr",null,[l[3]||(l[3]=f("td",null,"MX",-1)),l[4]||(l[4]=f("td",null,"@",-1)),f("td",null,M(k(S).mx_record),1),l[5]||(l[5]=f("td",null,"10",-1))])])])),_:1}),f("div",w,M(t.$t("Mail.Domain.index_40")),1),f("div",P,M(t.$t("Mail.Domain.index_41")),1),y(e,{class:"mb-30px"},{default:g((()=>[f("thead",null,[f("tr",null,[f("th",null,M(t.$t("Mail.Domain.index_42")),1),f("th",null,M(t.$t("Mail.Domain.index_43")),1),f("th",null,M(t.$t("Mail.Domain.index_44")),1)])]),f("tbody",null,[f("tr",null,[l[6]||(l[6]=f("td",null,"TXT",-1)),l[7]||(l[7]=f("td",null,"@",-1)),f("td",null,[y(n,{class:"mr-4px max-w-360px!"},{default:g((()=>[D(M(k(z)),1)])),_:1}),f("button",{class:"bt-link",onClick:l[0]||(l[0]=t=>F(k(z)))},"("+M(t.$t("Public.Btn.Copy"))+")",1)])]),f("tr",null,[l[8]||(l[8]=f("td",null,"TXT",-1)),l[9]||(l[9]=f("td",null,"default._domainkey",-1)),f("td",null,[y(n,{class:"mr-4px max-w-360px!"},{default:g((()=>[D(M(k(S).dkim_value),1)])),_:1}),f("button",{class:"bt-link",onClick:l[1]||(l[1]=t=>F(k(S).dkim_value))}," ("+M(t.$t("Public.Btn.Copy"))+") ",1)])]),f("tr",null,[l[10]||(l[10]=f("td",null,"TXT",-1)),l[11]||(l[11]=f("td",null,"_dmarc",-1)),f("td",null,[y(n,{class:"mr-4px max-w-360px!"},{default:g((()=>[D(M(k(S).dmarc_value),1)])),_:1}),f("button",{class:"bt-link",onClick:l[2]||(l[2]=t=>F(k(S).dmarc_value))}," ("+M(t.$t("Public.Btn.Copy"))+") ",1)])])])])),_:1}),f("div",T,M(t.$t("Mail.Domain.index_45")),1),f("div",X,M(t.$t("Mail.Domain.index_46")),1),f("div",B,M(t.$t("Mail.Domain.index_47")),1),y(k(o),{class:"mt-24px justify-center!"},{default:g((()=>[y(k(r),{type:"primary",onClick:H},{default:g((()=>[D(M(t.$t("Mail.Domain.index_48")),1)])),_:1}),y(k(r),{onClick:K},{default:g((()=>l[12]||(l[12]=[D(" One-click Parsing ")]))),_:1,__:[12]})])),_:1})])}}}),[["__scopeId","data-v-c4a364ba"]]))}}}));
