1import{j as e,l as W,r as w,L as $,b as E,t as F,o as R,h as P}from"./index-CucNpGkM.js";import{C as i}from"./Copy-i12CxHFh.js";import{C as T}from"./circle-alert-BBGquD-B.js";import"./createLucideIcon-CEBDPqs9.js";var _={exports:{}},L;function O(){return L||(L=1,(function(s){function t(o){return o&&o.__esModule?o.default:o}function m(o,l,g,c){Object.defineProperty(o,l,{get:g,set:c,enumerable:!0,configurable:!0})}m(s.exports,"showEntri",()=>k),m(s.exports,"checkDomain",()=>r),m(s.exports,"purchaseDomain",()=>u),m(s.exports,"close",()=>b),m(s.exports,"load",()=>h),m(s.exports,"loadSharedFlow",()=>j);var n={};n=JSON.parse('{"name":"entrijs","version":"1.0.2","description":"Entri","source":"src/index.ts","main":"dist/main.js","types":"dist/types.d.ts","files":["dist"],"scripts":{"build":"parcel build --no-cache","prepublishOnly":"npm run build","test":"echo \\"Error: no test specified\\" && exit 1"},"author":"Entri LLC","license":"MIT","dependencies":{"react":"^19.2.4"},"devDependencies":{"@parcel/packager-ts":"^2.12.0","@parcel/transformer-typescript-types":"^2.12.0","parcel":"^2.12.0","typescript":"^5.5.4"}}');function p(o){return new Promise((l,g)=>{const c=window.entri;if(c){l(c);return}const x=document.createElement("script");x.type="text/javascript",x.src="https://cdn.goentri.com/entri.js",x.addEventListener("load",()=>{const f=window.entri;if(!f){g(new Error("Entri SDK did not initialize correctly."));return}o&&f.load(o),l(f)}),x.addEventListener("error",()=>{g(new Error("Failed to load the Entri SDK."))}),document.body.appendChild(x)})}const a=o=>{var l;return{...o,npm:!0,npmVersion:((l=t(n))==null?void 0:l.version)??""}},k=async o=>(await p()).showEntri(a(o)),r=async(o,l)=>(await p()).checkDomain(o,l),u=async o=>(await p()).purchaseDomain(a(o)),b=async()=>(await p()).close(),h=async o=>await p(o),j=async o=>(await p()).loadSharedFlow(o)})(_)),_.exports}var V=O();function K(s){return e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...s,children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),e.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]})}function N({text:s}){return e.jsxs("span",{className:"relative group inline-flex align-middle",children:[e.jsx(K,{width:"16",height:"16",className:"cursor-pointer text-imx-grey-medium"}),e.jsx("span",{className:"absolute left-1/2 -translate-x-1/2 top-full mt-2 px-2 py-1 text-xs text-imx-grey-light bg-imx-grey-dark rounded opacity-0 group-hover:opacity-100 transition pointer-events-none w-[280px] whitespace-normal text-left normal-case font-normal tracking-normal z-10",children:s})]})}function Q(){var M,D,C,S;const{domain:s,records:t,checkDNS:m}=W(),[n,p]=w.useState(null),[a,k]=w.useState(null),r=t?t.provider:null,u=t==null?void 0:t.record_prefix,b=u||"@",h=u?"."+u:"",j=u?e.jsx(i,{value:u}):e.jsx(e.Fragment,{children:"Leave blank"}),o=t&&!(t.mx.valid&&t.spf.valid&&(!t.advanced||t.dkim1.valid&&t.dkim2.valid&&t.dmarc.valid)),l=(C=(D=(M=t==null?void 0:t.dmarc)==null?void 0:M.values)==null?void 0:D.toLowerCase().replace(/\s/g,"").split(";").map(d=>d.split("=")).find(([d])=>d==="p"))==null?void 0:C[1],g=((S=t==null?void 0:t.dmarc)==null?void 0:S.valid)&&l==="none",c=d=>{if(!t.mx.values)return!1;const v=s.whitelabel||"improvmx.com";return t.mx.values.findIndex(y=>y===d+"."+v)>-1},x=t&&!s.strict_mxes&&t.mx.valid,f=()=>{m()},I=()=>{m(),F.warning("DNS changes take minutes to hours to propagate. We'll check for you and email you when they're ready.")},X=d=>{d.preventDefault(),R&&R.show()},H=()=>{P.get("domains/"+s.domain+"/domain-connect").then(d=>{p(d.body)},()=>{})},q=()=>{window.open(n.apply_url,"_blank"),F.success("Records added! DNS changes take minutes to hours to propagate. We'll email you when they're ready.",{duration:300*1e3})},z=()=>{P.get("domains/"+s.domain+"/entri").then(d=>{k(d.body)},()=>{})},A=()=>{V.showEntri({applicationId:a.application_id,token:a.token,dnsRecords:a.dns_records,prefilledDomain:s.domain})};return w.useEffect(()=>{f(),H(),z();const d=v=>{var y;m(),(y=v==null?void 0:v.detail)!=null&&y.success&&F.success("Records added! DNS changes take minutes to hours to propagate. We'll email you when they're ready.")};return window.addEventListener("onEntriClose",d),()=>window.removeEventListener("onEntriClose",d)},[]),e.jsx("div",{children:t?e.jsxs(e.Fragment,{children:[t.error&&t.error!=="No MX entries found on the domain."&&t.error!=="No MX entries found on the subdomain."&&e.jsx("p",{className:"bg-imx-red-light text-imx-red text-sm px-2.5 py-2.5 rounded border-[0.5px] border-solid border-imx-red",children:t.error}),e.jsxs("p",{className:"block w-full my-5 text-imx-grey-medium text-sm",children:[r!=null&&e.jsxs(e.Fragment,{children:["Showing DNS instructions for ",e.jsx("b",{children:r})," ","nameservers."]}),(r==="google-domains"||r==="squarespace")&&e.jsx(e.Fragment,{children:" Google Domains is the same as Squarespace."})," ","Need more help? See a step-by-step guide"," ",r==="netlify"?e.jsx("a",{href:"https://improvmx.com/guides/netlify",className:"text-imx-blue-light",children:"here!"}):r==="digitalocean"?e.jsx("a",{href:"https://improvmx.com/guides/digitalocean",className:"text-imx-blue-light",children:"here!"}):r==="google-domains"||r==="squarespace"?e.jsx("a",{href:"https://improvmx.com/guides/squarespace",className:"text-imx-blue-light",children:"here!"}):r==="namecheap"?e.jsx("a",{href:"https://improvmx.com/guides/namecheap",className:"text-imx-blue-light",children:"here!"}):r==="godaddy"?e.jsx("a",{href:"https://improvmx.com/guides/godaddy",className:"text-imx-blue-light",children:"here!"}):r==="cloudflare"?e.jsx("a",{href:"https://improvmx.com/guides/cloudflare",className:"text-imx-blue-light",children:"here!"}):r==="hostgator"?e.jsx("a",{href:"https://improvmx.com/guides/hostgator",className:"text-imx-blue-light",children:"here!"}):r==="hostinger"?e.jsx("a",{href:"https://improvmx.com/guides/hostinger",className:"text-imx-blue-light",children:"here!"}):r==="porkbun"?e.jsx("a",{href:"https://improvmx.com/guides/porkbun",className:"text-imx-blue-light",children:"here!"}):r==="vercel"?e.jsx("a",{href:"https://improvmx.com/guides/vercel",className:"text-imx-blue-light",children:"here!"}):e.jsx("a",{href:"https://improvmx.com/guides/generic-dns-configuration",className:"text-imx-blue-light",children:"here!"})]}),o&&(n==null?void 0:n.supported)&&n.apply_url&&n.provider&&e.jsxs("div",{className:"w-full mb-12 px-3 py-3 rounded-lg bg-imx-green-neon-lightest border border-solid border-imx-green-neon",children:[e.jsx("h3",{className:"text-imx-green text-lg font-medium mb-1 mt-0",children:"One-click setup"}),e.jsxs("p",{className:"text-imx-grey-medium mb-4 text-sm",children:[e.jsx("span",{className:"capitalize font-semibold",children:n.provider})," ","supports"," ",e.jsx("a",{href:"https://improvmx.com/blog/one-click-dns-setup/",children:"one-click setup"})," ","â we'll add the records for you, just hit confirm. Rather do it by hand? The steps are below."]}),e.jsx("button",{className:"outline-none cursor-pointer py-2 px-4 roun
1ded-lg border-none bg-imx-green-neon text-imx-white text-[13px] tracking-wide transition-all duration-700 ease-[cubic-bezier(0.19,1,0.22,1)] hover:bg-imx-green-neon-hover",onClick:q,children:"Set up automatically"})]}),o&&(n==null?void 0:n.reason)==="premium_required"&&n.provider&&e.jsxs("div",{className:"w-full mb-12 px-3 py-3 rounded-lg bg-imx-orange-lightest border border-solid border-imx-orange",children:[e.jsx("h3",{className:"text-imx-orange-dark text-lg font-medium mb-1 mt-0",children:"Want one-click setup? Go Premium"}),e.jsxs("p",{className:"text-imx-grey-medium mb-4 text-sm",children:[e.jsx("span",{className:"capitalize font-semibold",children:n.provider})," ","supports"," ",e.jsx("a",{href:"https://improvmx.com/blog/one-click-dns-setup/",children:"one-click setup"})," ","â upgrade and we'll add the records for you, no copy-pasting required. Rather do it by hand? The steps are below."]}),e.jsx($,{to:E("payment"),className:"inline-block outline-none cursor-pointer py-2 px-4 rounded-lg border-none bg-imx-orange text-imx-white hover:text-imx-white no-underline text-[13px] tracking-wide transition-all duration-700 ease-[cubic-bezier(0.19,1,0.22,1)] hover:bg-imx-orange-light",children:"Go Premium"})]}),o&&(a==null?void 0:a.supported)&&a.provider&&e.jsxs("div",{className:"w-full mb-12 px-3 py-3 rounded-lg bg-imx-green-neon-lightest border border-solid border-imx-green-neon",children:[e.jsx("h3",{className:"text-imx-green text-lg font-medium mb-1 mt-0",children:"One-click setup"}),e.jsxs("p",{className:"text-imx-grey-medium mb-4 text-sm",children:[e.jsx("span",{className:"capitalize font-semibold",children:a.provider})," ","supports"," ",e.jsx("a",{href:"https://improvmx.com/blog/one-click-dns-setup/",children:"one-click setup"})," ","â we'll add the records for you, you just hit confirm. Rather do it by hand? The steps are below."]}),e.jsx("button",{className:"outline-none cursor-pointer py-2 px-4 rounded-lg border-none bg-imx-green-neon text-imx-white text-[13px] tracking-wide transition-all duration-700 ease-[cubic-bezier(0.19,1,0.22,1)] hover:bg-imx-green-neon-hover",onClick:A,children:"Set up automatically"})]}),o&&(a==null?void 0:a.reason)==="premium_required"&&a.provider&&e.jsxs("div",{className:"w-full mb-12 px-3 py-3 rounded-lg bg-imx-orange-lightest border border-solid border-imx-orange",children:[e.jsx("h3",{className:"text-imx-orange-dark text-lg font-medium mb-1 mt-0",children:"Want one-click setup? Go Premium"}),e.jsxs("p",{className:"text-imx-grey-medium mb-4 text-sm",children:[e.jsx("span",{className:"capitalize font-semibold",children:a.provider})," ","supports"," ",e.jsx("a",{href:"https://improvmx.com/blog/one-click-dns-setup/",children:"one-click setup"})," ","â upgrade and we'll add the records for you, no copy-pasting required. Rather do it by hand? The steps are below."]}),e.jsx($,{to:E("payment"),className:"inline-block outline-none cursor-pointer py-2 px-4 rounded-lg border-none bg-imx-orange text-imx-white hover:text-imx-white no-underline text-[13px] tracking-wide transition-all duration-700 ease-[cubic-bezier(0.19,1,0.22,1)] hover:bg-imx-orange-light",children:"Go Premium"})]}),t&&e.jsxs("div",{id:"domain-settings-mx",className:"w-full",children:[(!t.mx.valid||!t.spf.valid)&&e.jsxs("div",{className:"w-full mb-12 px-3 py-3 rounded-lg bg-imx-red-light border border-solid border-imx-red",children:[e.jsxs("p",{className:"text-imx-red mb-4 text-sm my-0",children:[e.jsx("b",{children:"Incorrect DNS records."})," View current records at"," ",e.jsx("a",{href:"https://inspector.improvmx.com/dns-lookup/"+s.display,target:"_blank",className:"underline font-bold text-imx-red hover:text-imx-red-darker",children:"inspector.improvmx.com"}),"."]}),e.jsx("button",{className:"outline-none cursor-pointer py-2 px-4 rounded-lg border-none bg-imx-red text-imx-white text-[13px] tracking-wide transition-all duration-700 ease-[cubic-bezier(0.19,1,0.22,1)] hover:bg-imx-red-darker",onClick:I,children:"Check again"})]}),e.jsxs("h3",{className:"text-imx-black text-lg font-medium mb-4 flex items-center gap-1.5",children:["MX records",e.jsx(N,{text:"MX records point senders to our servers for forwarding."})]}),e.jsxs("div",{className:"mb-12",children:[x&&!c("mx1")&&!c("mx2")&&e.jsxs("p",{className:"bg-imx-orange-lightest text-imx-orange-darker text-sm px-2.5 py-2.5 rounded border-[0.5px] border-solid border-imx-orange mb-2",children:["No ImprovMX MX records foun
1d, but this may be expected with strict MX verification turned off."," ",e.jsx("a",{href:"https://improvmx.com/guides/strict-mx-verification",className:"text-imx-blue-light",children:"Learn more"})]}),!t.mx.valid&&e.jsx("p",{className:"bg-imx-red-light text-imx-red text-sm px-2.5 py-2.5 rounded border-[0.5px] border-solid border-imx-red mb-2",children:t.mx.values?e.jsxs(e.Fragment,{children:["Your MX records are set to"," ",e.jsx("strong",{children:t.mx.values.join(", ")})]}):e.jsx(e.Fragment,{children:"No MX records found."})}),c("mx1")&&c("mx2")&&s.strict_mxes&&t.mx.values.length>2&&e.jsxs("p",{className:"bg-imx-red-light text-imx-red text-sm px-2.5 py-2.5 rounded border-[0.5px] border-solid border-imx-red mb-2",children:["We do not support having multiple services' MX records set for a single domain at one time."," ",e.jsx("a",{href:"https://improvmx.com/guides/can-i-use-mx-records-from-multiple-forwarders",className:"text-imx-blue-light",children:"Learn more"})]}),e.jsxs("table",{className:"w-full border-separate border-spacing-0 text-left bg-imx-white rounded border border-solid border-imx-grey-light mb-8 shadow-md",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-left uppercase",children:[e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4"}),e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:"Type"}),e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:r==="netlify"||r==="hostinger"||r==="godaddy"||r==="cloudflare"||r==="vercel"||r==="route53"?e.jsx(e.Fragment,{children:"Name"}):r==="namecheap"||r==="google-domains"||r==="porkbun"?e.jsx(e.Fragment,{children:"Host"}):r==="hostgator"||r==="bluehost"?e.jsx(e.Fragment,{children:"Refers to"}):e.jsx(e.Fragment,{children:"Hostname"})}),e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:r==="route53"?e.jsx(e.Fragment,{}):e.jsx(e.Fragment,{children:"Priority"})}),e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:r==="hostgator"||r==="hostinger"||r==="bluehost"||r==="digitalocean"||r==="cloudflare"||r==="google-domains"?e.jsx(e.Fragment,{children:"Mail Server"}):e.jsx(e.Fragment,{children:"Value"})})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{className:"pt-3 pb-1 px-4",children:c("mx1")?e.jsx("div",{className:"text-imx-green-neon",children:"â"}):x?e.jsx(T,{className:"text-imx-orange w-4 h-4"}):e.jsx("div",{className:"text-imx-red",children:"â"})}),e.jsx("td",{className:"pt-3 pb-1 px-4",children:e.jsx("code",{className:"font-mono text-sm",children:"MX"})}),e.jsx("td",{className:"pt-3 pb-1 px-4",children:r==="netlify"||r==="hostgator"||r==="hostinger"||r==="bluehost"||r==="godaddy"||r==="digitalocean"||r==="namecheap"||r==="cloudflare"||r==="google-domains"?e.jsx(i,{value:b}):r==="porkbun"||r==="vercel"||r==="route53"?j:e.jsx(i,{value:s.display+"."})}),e.jsx("td",{className:"pt-3 pb-1 px-4",children:r==="route53"?e.jsx(e.Fragment,{}):e.jsx(i,{value:"10"})}),e.jsx("td",{className:"pt-3 pb-1 px-4",children:s.whitelabel?e.jsx(i,{value:"mx1."+s.whitelabel+"."}):r==="hostgator"||r==="bluehost"||r==="google-domains"?e.jsx(i,{value:"mx1.improvmx.com"}):r==="route53"?e.jsx(i,{value:"10 mx1.improvmx.com"}):e.jsx(i,{value:"mx1.improvmx.com."})})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"pt-1 pb-3 px-4",children:c("mx2")?e.jsx("div",{className:"text-imx-green-neon",children:"â"}):x?e.jsx(T,{className:"text-imx-orange w-4 h-4"}):e.jsx("div",{className:"text-imx-red",children:"â"})}),e.jsx("td",{className:"pt-1 pb-3 px-4",children:r==="route53"?e.jsx(e.Fragment,{}):e.jsx("code",{className:"font-mono text-sm",children:"MX"})}),e.jsx("td",{className:"pt-1 pb-3 px-4",children:r==="netlify"||r==="hostgator"||r==="hostinger"||r==="bluehost"||r==="godaddy"||r==="digitalocean"||r==="namecheap"||r==="cloudflare"||r==="google-domains"?e.jsx(i,{value:b}):r==="porkbun"||r==="vercel"?j:r==="route53"?e.jsx(e.Fragment,{}):e.jsx(i,{value:s.display+"."})}),e.jsx("td",{className:"pt-1 pb-3 px-4",children:r==="route53"?e.jsx(e.Fragment,{}):e.jsx(i,{value:"20"})}),e.jsx("td",{className:"pt-1 pb-3 px-4",children:s.whitelabel?e.jsx(i,{value:"mx2."+s.whitelabel+"."}):r==="hostgator"||r==="bluehost"||r==="google-domains"?e.jsx(i,{value:"mx2.improvmx.com"}):r==="route53"?e.jsx(i,{value:"20 mx2.improvmx.com"}):e.jsx(i,{value:"mx2.improvmx.com."})})]})]})]})]}),e.jsxs("h3",{className:"text-imx-black text-[16px] font-medium mb-4 mt-12 flex items-center gap-1.5",children:["SPF records",e.jsx(N,{text:"SPF records confirm your domain allows us to forward emails on your behalf."})]}),e.jsxs("div",{className:"mb-12",children:[!t.spf.valid&&e.jsx("p",{className:"bg-imx-red-light text-imx-red text-sm px-2.5 py-2.5 rounded border-[0.5px] border-solid border-imx-red mb-2",children:t.spf.error==="spf_multiple_records_error"?e.jsxs(e.Fragment,{children:["Multiple SPF records detected. Please"," ",e.jsx("a",{href:"https://improvmx.com/guides/combining-spf-records",target:"_blank",className:"underline font-bold text-imx-red hover:text-imx-red-darker",children:"combine"})," ","them."]}):t.spf.error==="spf_temp_error"?e.jsx(e.Fragment,{children:"Something went wrong. Please try again later."}):t.spf.error==="spf_unknown_error"?e.jsxs(e.Fragment,{children:["Something went wrong."," ",e.jsx("a",{href:"#",onClick:X,className:"underline font-bold text-imx-red hover:text-imx-red-darker",children:"Contact us"}),"."]}):t.spf.values?e.jsxs(e.Fragment,{children:["Your SPF record is set to"," ",e.jsx("strong",{children:t.spf.values})]}):e.jsx(e.Fragment,{children:"No SPF record found."})}),e.jsxs("table",{className:"w-full border-separate border-spacing-0 text-left bg-imx-white rounded border border-solid border-imx-grey-light mb-8 shadow-md",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-left uppercase",children:[e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4"}),e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:"Type"}),e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:r==="netlify"||r==="hostinger"||r==="godaddy"||r==="cloudflare"||r==="vercel"||r==="route53"?e.jsx(e.Fragment,{children:"Name"}):r==="namecheap"||r==="google-domains"||r==="porkbun"?e.jsx(e.Fragment,{children:"Host"}):r==="hostgator"||r==="bluehost"?e.jsx(e.Fragment,{children:"Refers to"}):e.jsx(e.Fragment,{children:"Hostname"})}),e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:r==="cloudflare"?e.jsx(e.Fragment,{children:"Recommended Content"}):r==="google-domains"?e.jsx(e.Fragment,{children:"Recommended Text"}):e.jsx(e.Fragment,{children:"Recommended Value"})})]})}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsx("td",{className:"py-3 px-4",children:t.spf.valid?e.jsx("div",{className:"text-imx-green-neon",children:"â"}):e.jsx("div",{className:"text-imx-red",children:"â"})}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("code",{className:"font-mono text-sm",children:"TXT"})}),e.jsx("td",{className:"py-3 px-4",children:r==="netlify"||r==="hostgator"||r==="hostinger"||r==="bluehost"||r==="godaddy"||r==="digitalocean"||r==="namecheap"||r==="cloudflare"||r==="google-domains"?e.jsx(i,{value:b}):r==="porkbun"||r==="vercel"||r==="route53"?j:e.jsx(i,{value:s.display+"."})}),e.jsx("td",{className:"py-3 px-4",children:e.jsx(i,{value:t.spf.expected})})]})})]})]}),t.advanced&&e.jsxs(e.Fragment,{children:[e.jsxs("h3",{className:"text-imx-black text-[16px] font-medium mb-4 mt-12 flex items-center gap-1.5",children:["DKIM records",e.jsx(N,{text:"DKIM records cryptographically sign your emails to guarantee you are the original sender."})]}),e.jsxs("div",{className:"mb-12",children:[(!t.dkim1.valid||!t.dkim2.valid)&&e.jsx("p",{className:"bg-imx-red-light text-imx-red text-sm px-2.5 py-2.5 rounded border-[0.5px] border-solid border-imx-red mb-2",children:t.dkim1.values?e.jsxs(e.Fragment,{children:["Your DKIM records are set to"," ",e.jsxs("strong",{children:[t.dkim1.values,", ",t.dkim2.values]})]}
1):e.jsx(e.Fragment,{children:"No DKIM records found."})}),e.jsxs("table",{className:"w-full border-separate border-spacing-0 text-left bg-imx-white rounded border border-solid border-imx-grey-light mb-8 shadow-md",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-left uppercase",children:[e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4"}),e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:"Type"}),(r==="hostgator"||r==="bluehost")&&e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:"Refers to"}),e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:r==="netlify"||r==="hostinger"||r==="godaddy"||r==="cloudflare"||r==="route53"?e.jsx(e.Fragment,{children:"Name"}):r==="namecheap"||r==="google-domains"||r==="porkbun"||r==="vercel"?e.jsx(e.Fragment,{children:"Host"}):e.jsx(e.Fragment,{children:"Hostname"})}),e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:r==="hostgator"||r==="bluehost"?e.jsx(e.Fragment,{children:"Alias to"}):r==="hostinger"||r==="cloudflare"?e.jsx(e.Fragment,{children:"Target"}):r==="digitalocean"?e.jsx(e.Fragment,{children:"Is an alias of"}):r==="google-domains"?e.jsx(e.Fragment,{children:"Alias data"}):e.jsx(e.Fragment,{children:"Value"})}),r==="cloudflare"&&e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:"Proxy status"})]})}),e.jsxs("tbody",{children:[e.jsxs("tr",{children:[e.jsx("td",{className:"pt-3 pb-1 px-4",children:t.dkim1.valid?e.jsx("div",{className:"text-imx-green-neon",children:"â"}):e.jsx("div",{className:"text-imx-red",children:"â"})}),e.jsx("td",{className:"pt-3 pb-1 px-4",children:e.jsx("code",{className:"font-mono text-sm",children:"CNAME"})}),(r==="hostgator"||r==="bluehost")&&e.jsx("td",{className:"pt-3 pb-1 px-4",children:"Other Host"}),e.jsx("td",{className:"pt-3 pb-1 px-4",children:r==="netlify"?e.jsx(i,{value:s.dkim_selector+"1._domainkey"+h+"."}):r==="digitalocean"||r==="godaddy"||r==="cloudflare"||r==="namecheap"||r==="google-domains"||r==="porkbun"||r==="vercel"||r==="route53"?e.jsx(i,{value:s.dkim_selector+"1._domainkey"+h}):r==="hostgator"||r==="bluehost"?e.jsx(i,{value:s.dkim_selector+"1._domainkey."+s.display}):e.jsx(i,{value:s.dkim_selector+"1._domainkey."+s.display+"."})}),e.jsx("td",{className:"pt-3 pb-1 px-4",children:s.whitelabel&&s.whitelabel!==s.display?e.jsx(i,{value:"dkimprovmx1._domainkey."+s.whitelabel+"."}):r==="hostgator"||r==="bluehost"||r==="google-domains"||r==="route53"?e.jsx(i,{value:"dkimprovmx1.improvmx.com"}):e.jsx(i,{value:"dkimprovmx1.improvmx.com."})}),r==="cloudflare"&&e.jsx("td",{className:"pt-3 pb-1 px-4",children:"No"})]}),e.jsxs("tr",{children:[e.jsx("td",{className:"pt-1 pb-3 px-4",children:t.dkim2.valid?e.jsx("div",{className:"text-imx-green-neon",children:"â"}):e.jsx("div",{className:"text-imx-red",children:"â"})}),e.jsx("td",{className:"pt-1 pb-3 px-4",children:e.jsx("code",{className:"font-mono text-sm",children:"CNAME"})}),(r==="hostgator"||r==="bluehost")&&e.jsx("td",{className:"pt-1 pb-3 px-4",children:"Other Host"}),e.jsx("td",{className:"pt-1 pb-3 px-4",children:r==="netlify"?e.jsx(i,{value:s.dkim_selector+"2._domainkey"+h+"."}):r==="digitalocean"||r==="godaddy"||r==="cloudflare"||r==="namecheap"||r==="google-domains"||r==="porkbun"||r==="vercel"||r==="route53"?e.jsx(i,{value:s.dkim_selector+"2._domainkey"+h}):r==="hostgator"||r==="bluehost"?e.jsx(i,{value:s.dkim_selector+"2._domainkey."+s.display}):e.jsx(i,{value:s.dkim_selector+"2._domainkey."+s.display+"."})}),e.jsx("td",{className:"pt-1 pb-3 px-4",children:s.whitelabel&&s.whitelabel!==s.display?e.jsx(i,{value:"dkimprovmx2._domainkey."+s.whitelabel+"."}):r==="hostgator"||r==="bluehost"||r==="google-domains"||r==="route53"?e.jsx(i,{value:"dkimprovmx2.improvmx.com"}):e.jsx(i,{value:"dkimprovmx2.improvmx.com."})}),r==="cloudflare"&&e.jsx("td",{className:"pt-1 pb-3 px-4",children:"No"})]})]})]})]}),e.jsxs("h3",{className:"text-imx-black text-[16px] font-medium mb-4 mt-12 flex items-center gap-1.5",children:["DMARC records",e.jsx(N,{text:"DMARC records set the policy for mail that fails authentication, and report it back to you."})]}),e.jsxs("div",{className:"mb-12",children:[t.dmarc.valid?g&&e.jsxs("p",{className:"bg-imx-orange-lightest text-imx-orange-dark text-sm px-2.5 py-2.5 rounded border-[0.5px] border-solid border-imx-orange mb-2",children:["Your DMARC policy is ",e.jsx("strong",{children:"p=none"}),". We recommend stepping up to ",e.jsx("strong",{children:"p=quarantine"})," ","or ",e.jsx("strong",{children:"p=reject"})," for stronger protection."]}):e.jsx("p",{className:"bg-imx-red-light text-imx-red text-sm px-2.5 py-2.5 rounded border-[0.5px] border-solid border-imx-red mb-2",children:t.dmarc.values?e.jsxs(e.Fragment,{children:["Your DMARC record"," ",e.jsx("strong",{children:t.dmarc.values})," is missing a valid policy. Set at least ",e.jsx("strong",{children:"p=none"}),"."]}):e.jsxs(e.Fragment,{children:["No DMARC record found. Add one with at least"," ",e.jsx("strong",{children:"p=none"})," â senders like Yahoo now require it. See"," ",e.jsx("a",{className:"underline font-bold text-imx-red hover:text-imx-red-darker",href:"https://improvmx.com/guides/adding-dmarc-records/",target:"_blank",children:"instructions"}),"."]})}),e.jsxs("table",{className:"w-full border-separate border-spacing-0 text-left bg-imx-white rounded border border-solid border-imx-grey-light mb-8 shadow-md",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"text-left uppercase",children:[e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4"}),e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:"Type"}),(r==="hostgator"||r==="bluehost")&&e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:"Refers To"}),e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:r==="netlify"||r==="hostinger"||r==="godaddy"||r==="cloudflare"||r==="route53"?e.jsx(e.Fragment,{children:"Name"}):r==="namecheap"||r==="google-domains"||r==="porkbun"||r==="vercel"?e.jsx(e.Fragment,{children:"Host"}):e.jsx(e.Fragment,{children:"Hostname"})}),e.jsx("th",{className:"border-b border-imx-grey-light font-normal text-xs tracking-wide pt-4 pb-3 px-4",children:r==="cloudflare"?e.jsx(e.Fragment,{children:"Content"}):r==="google-domains"?e.jsx(e.Fragment,{children:"Text"}):e.jsx(e.Fragment,{children:"Value"})})]})}),e.jsx("tbody",{children:e.jsxs("tr",{children:[e.jsx("td",{className:"py-3 px-4",children:t.dmarc.valid?g?e.jsx("div",{className:"flex items-center h-full text-imx-orange",children:e.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("line",{x1:"12",x2:"12",y1:"8",y2:"12"}),e.jsx("line",{x1:"12",x2:"12.01",y1:"16",y2:"16"})]})}):e.jsx("div",{className:"text-imx-green-neon",children:"â"}):e.jsx("div",{className:"text-imx-red",children:"â"})}),e.jsx("td",{className:"py-3 px-4",children:e.jsx("code",{className:"font-mono text-sm",children:"TXT"})}),(r==="hostgator"||r==="bluehost")&&e.jsx("td",{className:"py-3 px-4",children:"Other Host"}),e.jsx("td",{className:"py-3 px-4",children:r==="digitalocean"?e.jsx(i,{value:"_dmarc"+h+"."}):r==="godaddy"||r==="namecheap"||r==="cloudflare"||r==="google-domains"||r==="porkbun"||r==="vercel"||r==="route53"?e.jsx(i,{value:"_dmarc"+h}):r==="hostgator"||r==="bluehost"||r==="netlify"?e.jsx(i,{value:"_dmarc."+s.display}):e.jsx(i,{value:"_dmarc."+s.display+"."})}),e.jsx("td",{className:"py-3 px-4",children:e.jsx(i,{value:t.dmarc.expected})})]})})]})]})]})]})]}):e.jsx(e.Fragment,{children:e.jsx("p",{className:"text-imx-grey-medium text-center py-4",children:"Loading the settings, please wait ..."})})})}export{Q as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.