System.register(["./copy-legacy-CoXPjkKf.js?v=1773287522785","./mail-legacy-BX4bHMTA.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(t,l){"use strict";var a,e,n,i,s,d,r,u,o,c,m,_,p,x,v,y,h,k,b,$,f,M,D;return{setters:[t=>{a=t.c},t=>{e=t.ai,n=t.aj},t=>{i=t.m,s=t.c},t=>{d=t.at,r=t.b4,u=t.n,o=t.B,c=t.k},t=>{m=t.k,_=t.R,p=t.t,x=t.c,v=t.r,y=t.a0,h=t.$,k=t.Z,b=t.S,$=t._,f=t.aa,M=t.a9,D=t.j},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/*$vite$:1*/",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",s(m({__name:"index",props:{row:{}},emits:["close","refresh"],setup(t,{emit:l}){const s=t,m=l,{t:R}=_(),S=p(s,"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)},K=async()=>{await e({domain:S.value.domain}),m("close"),m("refresh")},N=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=d,e=r,n=u;return h(),k("div",g,[y(a,{class:"mb-20px",data:b(A),columns:b(E)},null,8,["data","columns"]),$("div",j,f(t.$t("Mail.Domain.index_34")),1),$("div",C,f(t.$t("Mail.Domain.index_35")),1),y(e,{class:"mb-30px"},{default:M((()=>[$("thead",null,[$("tr",null,[$("th",null,f(t.$t("Mail.Domain.index_36")),1),$("th",null,f(t.$t("Mail.Domain.index_37")),1),$("th",null,f(t.$t("Mail.Domain.index_38")),1),$("th",null,f(t.$t("Mail.Domain.index_39")),1)])]),$("tbody",null,[$("tr",null,[l[3]||(l[3]=$("td",null,"MX",-1)),l[4]||(l[4]=$("td",null,"@",-1)),$("td",null,f(b(S).mx_record),1),l[5]||(l[5]=$("td",null,"10",-1))])])])),_:1}),$("div",w,f(t.$t("Mail.Domain.index_40")),1),$("div",T,f(t.$t("Mail.Domain.index_41")),1),y(e,{class:"mb-30px"},{default:M((()=>[$("thead",null,[$("tr",null,[$("th",null,f(t.$t("Mail.Domain.index_42")),1),$("th",null,f(t.$t("Mail.Domain.index_43")),1),$("th",null,f(t.$t("Mail.Domain.index_44")),1)])]),$("tbody",null,[$("tr",null,[l[6]||(l[6]=$("td",null,"TXT",-1)),l[7]||(l[7]=$("td",null,"@",-1)),$("td",null,[y(n,{class:"mr-4px max-w-360px!"},{default:M((()=>[D(f(b(z)),1)])),_:1}),$("button",{class:"bt-link",onClick:l[0]||(l[0]=t=>F(b(z)))},"("+f(t.$t("Public.Btn.Copy"))+")",1)])]),$("tr",null,[l[8]||(l[8]=$("td",null,"TXT",-1)),l[9]||(l[9]=$("td",null,"default._domainkey",-1)),$("td",null,[y(n,{class:"mr-4px max-w-360px!"},{default:M((()=>[D(f(b(S).dkim_value),1)])),_:1}),$("button",{class:"bt-link",onClick:l[1]||(l[1]=t=>F(b(S).dkim_value))}," ("+f(t.$t("Public.Btn.Copy"))+") ",1)])]),$("tr",null,[l[10]||(l[10]=$("td",null,"TXT",-1)),l[11]||(l[11]=$("td",null,"_dmarc",-1)),$("td",null,[y(n,{class:"mr-4px max-w-360px!"},{default:M((()=>[D(f(b(S).dmarc_value),1)])),_:1}),$("button",{class:"bt-link",onClick:l[2]||(l[2]=t=>F(b(S).dmarc_value))}," ("+f(t.$t("Public.Btn.Copy"))+") ",1)])])])])),_:1}),$("div",P,f(t.$t("Mail.Domain.index_45")),1),$("div",X,f(t.$t("Mail.Domain.index_46")),1),$("div",B,f(t.$t("Mail.Domain.index_47")),1),y(b(c),{class:"mt-24px justify-center!"},{default:M((()=>[y(b(o),{type:"primary",onClick:K},{default:M((()=>[D(f(t.$t("Mail.Domain.index_48")),1)])),_:1}),y(b(o),{onClick:N},{default:M((()=>l[12]||(l[12]=[D(" One-click Parsing ")]))),_:1,__:[12]})])),_:1})])}}}),[["__scopeId","data-v-c4a364ba"]]))}}}));
