PageSourceSearch

https://login.commonsku.com/dist/react/components-CompanyEmailDomainTable.9b969820.chunk.js

js commonsku.com collected 2026-10-02 03:15:32 UTC 2,520 bytes, 2 lines download raw bytes

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