import{i as a}from"./public.js?v=1764830988434";import{ag as t,ah as l}from"./mail.js?v=1764830988434";import{go as s,m as n,p as e}from"./page_layout.js?v=1764830988434";import{dg as i,dc as d,aC as r,da as o}from"./naive.js?v=1764830988434";import{k as u,P as c,t as m,c as _,r as p,W as x,R as v,V as y,S as h,U as f,a4 as k,a3 as M,j as D}from"./vue.js?v=1764830988434";import"./common.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";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){n.error("Your domain has not yet been integrated with the Domain Name Management Center.")}};return(a,t)=>{const l=i,n=s,e=d;return y(),v("div",$,[x(l,{class:"mb-20px",data:f(S),columns:f(H)},null,8,["data","columns"]),h("div",b,k(a.$t("Mail.Domain.index_34")),1),h("div",j,k(a.$t("Mail.Domain.index_35")),1),x(n,{class:"mb-30px"},{default:M(()=>[h("thead",null,[h("tr",null,[h("th",null,k(a.$t("Mail.Domain.index_36")),1),h("th",null,k(a.$t("Mail.Domain.index_37")),1),h("th",null,k(a.$t("Mail.Domain.index_38")),1),h("th",null,k(a.$t("Mail.Domain.index_39")),1)])]),h("tbody",null,[h("tr",null,[t[3]||(t[3]=h("td",null,"MX",-1)),t[4]||(t[4]=h("td",null,"@",-1)),h("td",null,k(f(A).mx_record),1),t[5]||(t[5]=h("td",null,"10",-1))])])]),_:1}),h("div",C,k(a.$t("Mail.Domain.index_40")),1),h("div",g,k(a.$t("Mail.Domain.index_41")),1),x(n,{class:"mb-30px"},{default:M(()=>[h("thead",null,[h("tr",null,[h("th",null,k(a.$t("Mail.Domain.index_42")),1),h("th",null,k(a.$t("Mail.Domain.index_43")),1),h("th",null,k(a.$t("Mail.Domain.index_44")),1)])]),h("tbody",null,[h("tr",null,[t[6]||(t[6]=h("td",null,"TXT",-1)),t[7]||(t[7]=h("td",null,"@",-1)),h("td",null,[x(e,{class:"mr-4px max-w-360px!"},{default:M(()=>[D(k(f(I)),1)]),_:1}),h("button",{class:"bt-link",onClick:t[0]||(t[0]=a=>K(f(I)))},"("+k(a.$t("Public.Btn.Copy"))+")",1)])]),h("tr",null,[t[8]||(t[8]=h("td",null,"TXT",-1)),t[9]||(t[9]=h("td",null,"default._domainkey",-1)),h("td",null,[x(e,{class:"mr-4px max-w-360px!"},{default:M(()=>[D(k(f(A).dkim_value),1)]),_:1}),h("button",{class:"bt-link",onClick:t[1]||(t[1]=a=>K(f(A).dkim_value))}," ("+k(a.$t("Public.Btn.Copy"))+") ",1)])]),h("tr",null,[t[10]||(t[10]=h("td",null,"TXT",-1)),t[11]||(t[11]=h("td",null,"_dmarc",-1)),h("td",null,[x(e,{class:"mr-4px max-w-360px!"},{default:M(()=>[D(k(f(A).dmarc_value),1)]),_:1}),h("button",{class:"bt-link",onClick:t[2]||(t[2]=a=>K(f(A).dmarc_value))}," ("+k(a.$t("Public.Btn.Copy"))+") ",1)])])])]),_:1}),h("div",w,k(a.$t("Mail.Domain.index_45")),1),h("div",P,k(a.$t("Mail.Domain.index_46")),1),h("div",T,k(a.$t("Mail.Domain.index_47")),1),x(f(o),{class:"mt-24px justify-center!"},{default:M(()=>[x(f(r),{type:"primary",onClick:N},{default:M(()=>[D(k(a.$t("Mail.Domain.index_48")),1)]),_:1}),x(f(r),{onClick:O},{default:M(()=>t[12]||(t[12]=[D(" One-click Parsing ",-1)])),_:1,__:[12]})]),_:1})])}}}),[["__scopeId","data-v-c4a364ba"]]);export{X as default};
