1"use strict";(globalThis.__LOADABLE_LOADED_CHUNKS__=globalThis.__LOADABLE_LOADED_CHUNKS__||[]).push([[85,4927],{75415(e,n,a){a.r(n),a.d(n,{default:()=>l});var i=a(22224),o=a(41594),m=a(3602),t=a(22078),s=a(63988);const d=e=>{let{company_email_domain:n,onClose:a}=e;const{dkim:o,email_domain:t}=n;return(0,s.jsx)(m.Popup,{"data-test-name":"DNSRecordsPopup",title:"DNS records",onClose:a,children:(0,s.jsxs)(m.Table,{children:[(0,s.jsxs)(m.TR,{children:[(0,s.jsx)(m.TH,{children:"Type"}),(0,s.jsx)(m.TH,{children:"Name"}),(0,s.jsx)(m.TH,{children:"Value"})]}),(0,i.map)((0,i.get)(o,"DkimTokens"),(e,n)=>(0,s.jsxs)(m.TR,{"data-test-name":"DNSRecordsPopup",children:[(0,s.jsx)(m.TD,{children:"CNAME"}),(0,s.jsx)(m.TD,{children:`${e}._domainkey.${t}`}),(0,s.jsxs)(m.TD,{children:[e,".dkim.amazonses.com"]})]},n))]})})},l=e=>{let{company_id:n,company_type:a}=e;const[l,c]=(0,o.useState)();return(0,o.useEffect)(()=>{(0,t.oD)("GET","company-email-domain",{company_id:n,company_type:a,include:["dkim"]}).then(e=>{c((0,i.keyBy)((0,i.get)(e,"json.company_email_domains"),"company_email_domain_id"))})},[n,a]),(0,s.jsx)(m.Theme,{"data-test-name":"CompanyEmailDomainTable",children:(0,s.jsxs)(m.Table,{children:[(0,s.jsxs)(m.TR,{children:[(0,s.jsx)(m.TH,{children:"Email Domain"}),(0,s.jsx)(m.TH,{children:"DKIM Signatures"}),(0,s.jsx)(m.TH,{children:"Publish DNS records"}),(0,s.jsx)(m.TH,{children:"Verification Status"}),(0,s.jsx)(m.TH,{})]}),(0,i.map)(l,(e,n)=>{const{company_email_domain_id:a,company_type:o,email_domain:r,dkim:p}=e,_=()=>(0,t.oD)("PUT",`company-email-domain/${a}`,{actionName:"verify",company_type:o}).then(e=>{let{json:n}=e;return c({...l,[a]:n.company_email_domain}),n.company_email_domain});return(0,s.jsxs)(m.TR,{"data-test-name":"CompanyEmailDomainTable",children:[(0,s.jsx)(m.TD,{children:r}),(0,s.jsx)(m.TD,{children:(0,i.get)(p,"DkimEnabled")?"Enabled":"No"}),(0,s.jsx)(m.TD,{children:(0,s.jsx)(m.ShowPopup,{popup:d,company_email_domain:e,verifyDomain:_,render:n=>{let{onClick:a}=n;return(0,s.jsx)("a",{"data-test-name":"CompanyEmailDomainTable",onClick:()=>{const n=(0,i.get)(e,"dkim.DkimTokens");(0,i.isEmpty)(n)&&_(),a()},children:"View DNS records"})}})}),(0,s.jsx)(m.TD,{children:(0,i.get)(p,"DkimVerificationStatus","")}),(0,s.jsx)(m.TD,{children:["Failed","TemporaryFailure","NotStarted","Pending"].indexOf((0,i.get)(p,"DkimVerificationStatus",""))>=0&&(0,s.jsx)(m.Button,{onClick:_,children:"Retry"})})]},n)})]})})}},15674(e,n,a){a.r(n),a.d(n,{default:()=>t}),a(41594);var i=a(75158),o=a(75415),m=a(63988);const t=()=>{const{company_id:e,company_type:n}=(0,i.Us)();return(0,m.jsx)(o.default,{"data-test-name":"AutoDKIM",company_id:e,company_type:n})}}}]); 2//# sourceMappingURL=AutoDKIM.3b443fe9.chunk.js.map
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.