import{c as T}from"./copy-D-wIKr0q.js?v=1773287522785";import{ai as h,aj as B}from"./mail-COTHIXbY.js?v=1773287522785";import{m as P,c as j}from"./index-BTglIPU2.js?v=1773287522785";import{at as N,b4 as R,n as X,B as y,k as S}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as V,R as I,t as A,c as v,r as E,a0 as a,$ as F,Z as K,S as e,_ as n,aa as l,a9 as o,j as d}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";const O={class:"p-20px"},Y={class:"record-title"},Z={class:"record-desc"},q={class:"record-title"},z={class:"record-desc"},G={class:"record-title"},H={class:"record-desc"},J={class:"record-desc"},L=V({__name:"index",props:{row:{}},emits:["close","refresh"],setup($,{emit:k}){const D=$,u=k,{t:m}=I(),i=A(D,"row"),c=v(()=>{let t="";return t+=i.value.ip_address.ipv4.map(s=>"+ip4:".concat(s)).join(" "),t+=i.value.ip_address.ipv6.map(s=>"+ip6:".concat(s)).join(" "),"v=spf1 +a +mx ".concat(t," -all")}),M=v(()=>[i.value]),r=({status:t})=>a("div",{class:["inline-flex items-center",t?"text-primary":"text-error"]},[a("span",{class:["glyphicon","glyphicon-".concat(t?"ok":"remove")]},null),a("span",{class:"ml-4px"},[m(t?"Mail.Domain.index_49":"Mail.Domain.index_9")])]),b=E([{key:"domain",title:m("Mail.Domain.index_3"),width:"20%",ellipsis:{tooltip:!0}},{key:"mx_status",title:"MX",render:t=>a(r,{status:t.mx_status===1},null)},{key:"a_status",title:"A record",render:t=>a(r,{status:t.a_status===1},null)},{key:"spf_status",title:"SPF",render:t=>a(r,{status:t.spf_status===1},null)},{key:"dkim_status",title:"DKIM",render:t=>a(r,{status:t.dkim_status===1},null)},{key:"dmarc_status",title:"DMARC",render:t=>a(r,{status:t.dmarc_status===1},null)},{key:"ptr_status",title:"PTR ",render:t=>a(r,{status:t.ptr_status===1},null)}]),p=async t=>{T(t)},C=async()=>{await h({domain:i.value.domain}),u("close"),u("refresh")},g=async()=>{try{await B({hash:i.value.ssl_hash,domain:i.value.domain}),u("close"),u("refresh")}catch(t){P.error("Your domain has not yet been integrated with the Domain Name Management Center.")}};return(t,s)=>{const w=N,x=R,_=X;return F(),K("div",O,[a(w,{class:"mb-20px",data:e(M),columns:e(b)},null,8,["data","columns"]),n("div",Y,l(t.$t("Mail.Domain.index_34")),1),n("div",Z,l(t.$t("Mail.Domain.index_35")),1),a(x,{class:"mb-30px"},{default:o(()=>[n("thead",null,[n("tr",null,[n("th",null,l(t.$t("Mail.Domain.index_36")),1),n("th",null,l(t.$t("Mail.Domain.index_37")),1),n("th",null,l(t.$t("Mail.Domain.index_38")),1),n("th",null,l(t.$t("Mail.Domain.index_39")),1)])]),n("tbody",null,[n("tr",null,[s[3]||(s[3]=n("td",null,"MX",-1)),s[4]||(s[4]=n("td",null,"@",-1)),n("td",null,l(e(i).mx_record),1),s[5]||(s[5]=n("td",null,"10",-1))])])]),_:1}),n("div",q,l(t.$t("Mail.Domain.index_40")),1),n("div",z,l(t.$t("Mail.Domain.index_41")),1),a(x,{class:"mb-30px"},{default:o(()=>[n("thead",null,[n("tr",null,[n("th",null,l(t.$t("Mail.Domain.index_42")),1),n("th",null,l(t.$t("Mail.Domain.index_43")),1),n("th",null,l(t.$t("Mail.Domain.index_44")),1)])]),n("tbody",null,[n("tr",null,[s[6]||(s[6]=n("td",null,"TXT",-1)),s[7]||(s[7]=n("td",null,"@",-1)),n("td",null,[a(_,{class:"mr-4px max-w-360px!"},{default:o(()=>[d(l(e(c)),1)]),_:1}),n("button",{class:"bt-link",onClick:s[0]||(s[0]=f=>p(e(c)))},"("+l(t.$t("Public.Btn.Copy"))+")",1)])]),n("tr",null,[s[8]||(s[8]=n("td",null,"TXT",-1)),s[9]||(s[9]=n("td",null,"default._domainkey",-1)),n("td",null,[a(_,{class:"mr-4px max-w-360px!"},{default:o(()=>[d(l(e(i).dkim_value),1)]),_:1}),n("button",{class:"bt-link",onClick:s[1]||(s[1]=f=>p(e(i).dkim_value))}," ("+l(t.$t("Public.Btn.Copy"))+") ",1)])]),n("tr",null,[s[10]||(s[10]=n("td",null,"TXT",-1)),s[11]||(s[11]=n("td",null,"_dmarc",-1)),n("td",null,[a(_,{class:"mr-4px max-w-360px!"},{default:o(()=>[d(l(e(i).dmarc_value),1)]),_:1}),n("button",{class:"bt-link",onClick:s[2]||(s[2]=f=>p(e(i).dmarc_value))}," ("+l(t.$t("Public.Btn.Copy"))+") ",1)])])])]),_:1}),n("div",G,l(t.$t("Mail.Domain.index_45")),1),n("div",H,l(t.$t("Mail.Domain.index_46")),1),n("div",J,l(t.$t("Mail.Domain.index_47")),1),a(e(S),{class:"mt-24px justify-center!"},{default:o(()=>[a(e(y),{type:"primary",onClick:C},{default:o(()=>[d(l(t.$t("Mail.Domain.index_48")),1)]),_:1}),a(e(y),{onClick:g},{default:o(()=>s[12]||(s[12]=[d(" One-click Parsing ")])),_:1,__:[12]})]),_:1})])}}}),lt=j(L,[["__scopeId","data-v-c4a364ba"]]);export{lt as default};
