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