System.register(["./public-legacy.js?v=1753954525509","./mail-legacy2.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509"],(function(t,l){"use strict";var a,e,n,i,s,d,u,r,o,c,m,_,p,x,y,b,v,h,k,f,M,$,D;return{setters:[t=>{a=t.i},t=>{e=t.ag,n=t.ah},t=>{i=t.m,s=t.fT,d=t.e},t=>{u=t.ay,r=t.bY,o=t.c2,c=t.b$},t=>{m=t.k,_=t.P,p=t.t,x=t.c,y=t.r,b=t.Q,v=t.U,h=t.V,k=t.X,f=t.W,M=t.a3,$=t.a2,D=t.j},null,null],execute:function(){var l=document.createElement("style");l.textContent=".record-title[data-v-b5e81bda]{font-size:16px;color:#444;font-weight:600;margin-bottom:10px}.record-desc[data-v-b5e81bda]{font-size:14px;color:#666;margin-bottom:10px}.bt-link[data-v-b5e81bda]{border:none;outline:none;background:none;padding:0}\n",document.head.appendChild(l);const g={class:"p-20px"},j={class:"record-title"},C={class:"record-desc"},w={class:"record-title"},T={class:"record-desc"},P={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:z}=_(),A=p(d,"row"),I=x((()=>{let t="";return t+=A.value.ip_address.ipv4.map((t=>`+ip4:${t}`)).join(" "),t+=A.value.ip_address.ipv6.map((t=>`+ip6:${t}`)).join(" "),`v=spf1 +a +mx ${t} -all`})),R=x((()=>[A.value])),S=({status:t})=>b("div",{class:["inline-flex items-center",t?"text-primary":"text-error"]},[b("span",{class:["glyphicon","glyphicon-"+(t?"ok":"remove")]},null),b("span",{class:"ml-4px"},[z(t?"Mail.Domain.index_49":"Mail.Domain.index_9")])]),Y=y([{key:"domain",title:z("Mail.Domain.index_3"),width:"20%",ellipsis:{tooltip:!0}},{key:"mx_status",title:"MX",render:t=>b(S,{status:1===t.mx_status},null)},{key:"a_status",title:"A record",render:t=>b(S,{status:1===t.a_status},null)},{key:"spf_status",title:"SPF",render:t=>b(S,{status:1===t.spf_status},null)},{key:"dkim_status",title:"DKIM",render:t=>b(S,{status:1===t.dkim_status},null)},{key:"dmarc_status",title:"DMARC",render:t=>b(S,{status:1===t.dmarc_status},null)},{key:"ptr_status",title:"PTR ",render:t=>b(S,{status:1===t.ptr_status},null)}]),E=async t=>{a(t)},F=async()=>{await e({domain:A.value.domain}),m("close"),m("refresh")},H=async()=>{try{await n({hash:A.value.ssl_hash,domain:A.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=o,e=s,n=c;return v(),h("div",g,[b(a,{class:"mb-20px",data:k(R),columns:k(Y)},null,8,["data","columns"]),f("div",j,M(t.$t("Mail.Domain.index_34")),1),f("div",C,M(t.$t("Mail.Domain.index_35")),1),b(e,{class:"mb-30px"},{default:$((()=>[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(A).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",T,M(t.$t("Mail.Domain.index_41")),1),b(e,{class:"mb-30px"},{default:$((()=>[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,[b(n,{class:"mr-4px max-w-360px!"},{default:$((()=>[D(M(k(I)),1)])),_:1}),f("button",{class:"bt-link",onClick:l[0]||(l[0]=t=>E(k(I)))},"("+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,[b(n,{class:"mr-4px max-w-360px!"},{default:$((()=>[D(M(k(A).dkim_value),1)])),_:1}),f("button",{class:"bt-link",onClick:l[1]||(l[1]=t=>E(k(A).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,[b(n,{class:"mr-4px max-w-360px!"},{default:$((()=>[D(M(k(A).dmarc_value),1)])),_:1}),f("button",{class:"bt-link",onClick:l[2]||(l[2]=t=>E(k(A).dmarc_value))}," ("+M(t.$t("Public.Btn.Copy"))+") ",1)])])])])),_:1}),f("div",P,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),b(k(r),{class:"mt-24px justify-center!"},{default:$((()=>[b(k(u),{type:"primary",onClick:F},{default:$((()=>[D(M(t.$t("Mail.Domain.index_48")),1)])),_:1}),b(k(u),{onClick:H},{default:$((()=>l[12]||(l[12]=[D(" One-click Parsing ")]))),_:1,__:[12]})])),_:1})])}}}),[["__scopeId","data-v-b5e81bda"]]))}}}));
