1"use strict";(self.webpackChunksalesblink_react_web=self.webpackChunksalesblink_react_web||[]).push([[159],{10159:(e,i,l)=>{l.r(i),l.d(i,{default:()=>R});var r=l(82483),t=l(98520),n=l(10),s=l(8378),o=l(24599),a=l(65813),d=l(32543),c=l(4483),m=l(31981),u=l(39701),v=l(7780),x=l(9482),h=l(5802),p=l(52346),f=l(8269),g=l(89379),j=l(80045),b=l(57758),y=l(16405),C=l.n(y);const A=["color","size"],k=e=>{const{color:i,size:l}=e,r=(0,j.A)(e,A);return b.createElement("svg",(0,g.A)({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:i},r),b.createElement("path",{d:"M21.3,10.08A3,3,0,0,0,19,9H14.44L15,7.57A4.13,4.13,0,0,0,11.11,2a1,1,0,0,0-.91.59L7.35,9H5a3,3,0,0,0-3,3v7a3,3,0,0,0,3,3H17.73a3,3,0,0,0,2.95-2.46l1.27-7A3,3,0,0,0,21.3,10.08ZM7,20H5a1,1,0,0,1-1-1V12a1,1,0,0,1,1-1H7Zm13-7.82-1.27,7a1,1,0,0,1-1,.82H9V10.21l2.72-6.12A2.11,2.11,0,0,1,13.1,6.87L12.57,8.3A2,2,0,0,0,14.44,11H19a1,1,0,0,1,.77.36A1,1,0,0,1,20,12.18Z"}))};k.propTypes={color:C().string,size:C().oneOfType([C().string,C().number])},k.defaultProps={color:"currentColor",size:"24"};const w=k,E=["color","size"],T=e=>{const{color:i,size:l}=e,r=(0,j.A)(e,E);return b.createElement("svg",(0,g.A)({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:i},r),b.createElement("path",{d:"M19,2H6.27A3,3,0,0,0,3.32,4.46l-1.27,7A3,3,0,0,0,5,15H9.56L9,16.43A4.13,4.13,0,0,0,12.89,22a1,1,0,0,0,.91-.59L16.65,15H19a3,3,0,0,0,3-3V5A3,3,0,0,0,19,2ZM15,13.79l-2.72,6.12a2.13,2.13,0,0,1-1.38-2.78l.53-1.43A2,2,0,0,0,9.56,13H5a1,1,0,0,1-.77-.36A1,1,0,0,1,4,11.82l1.27-7a1,1,0,0,1,1-.82H15ZM20,12a1,1,0,0,1-1,1H17V4h2a1,1,0,0,1,1,1Z"}))};T.propTypes={color:C().string,size:C().oneOfType([C().string,C().number])},T.defaultProps={color:"currentColor",size:"24"};const L=T;var D=l(49031),N=l(8118),S=l.n(N),I=l(44448),M=l(31664),z=l.n(M),B=l(40652),_=l(59795),H=l(66807),F=l(56723);const W="https://help.salesblink.io/article/email-deliverability/domain-setup-report";function R(){var e,i,l,g,j,b,y,C,A,k,E,T,N,M;const[R,P]=(0,r.useState)(null),[Z,K]=(0,r.useState)(null),[O,V]=(0,r.useState)(!0),[U,X]=(0,r.useState)(!1),[q,G]=(0,r.useState)(!1),[$,J]=(0,r.useState)(!1),[Q,Y]=(0,r.useState)(!1),[ee,ie]=(0,r.useState)("google");let{id:le}=(0,n.g)(),re=(0,n.Zp)();const te=(0,t.M1)("/api/senders/".concat(le)),{whitelabelDetails:ne}=(0,r.useContext)(t.X6),se=(0,r.useContext)(t.cy);(0,r.useEffect)((()=>{var e,i,l,r,t;te.data&&(P((null===(e=te.data)||void 0===e?void 0:e.smtpImapEmail)||(null===(i=te.data)||void 0===i?void 0:i.alias)||(null===(l=te.data)||void 0===l?void 0:l.microsoft_email)||(null===(r=te.data)||void 0===r?void 0:r.google_email)),ie(null===(t=te.data)||void 0===t?void 0:t.dkim_identifier))}),[te.loading]),(0,r.useEffect)((()=>()=>(0,_.sG)(window.location.pathname)),[]),(0,r.useEffect)((()=>{if(R){let e=R.split("@")[1],i=(0,I.Cp)(e);G((0,I.J4)(e)),i?X(!1):(X(!(0,I.Cp)(e)),oe())}}),[R]);const oe=async()=>{try{var e;let i=await S().get("/api/senders/".concat(le,"/report"));console.log("result.data ",i.data.data),K(null===(e=i.data)||void 0===e?void 0:e.data),V(!1)}catch(i){V(!1)}};return(0,F.jsxs)("div",{className:"deliverabilityContainer",children:[(0,F.jsx)(H.m,{children:(0,F.jsx)("title",{children:"Email Deliverability | ".concat(null===ne||void 0===ne?void 0:ne.agencyName)})}),(0,F.jsx)(t.Bi,{selected:"email senders",onChange:e=>{let i=e.title.replace(/ /g,"-");re("/outreach/".concat(i))},menuitems:[{icon:(0,F.jsx)(s.A,{}),title:"sequences"},{icon:(0,F.jsx)(o.A,{}),title:"lists"},{icon:(0,F.jsx)(a.A,{}),title:"tasks"},{icon:(0,F.jsx)(d.A,{}),title:"reports"},{icon:(0,F.jsx)(c.A,{}),title:"templates"},{icon:(0,F.jsx)(m.A,{}),title:"email senders"},{icon:(0,F.jsx)(u.A,{}),title:"inbox placement test"}]}),(0,F.jsxs)(r.Fragment,{children:[(0,F.jsxs)("div",{style:{display:"flex"},children:[(0,F.jsxs)("div",{className:"mt-3 flex gap-2",children:[(0,F.jsx)(v.A,{style:{marginTop:-12}}),(0,F.jsx)(t.sT,{title:"Domain Setup Report",description:"".concat((null===Z||void 0===Z?void 0:Z.smtpImapEmail)||""),tooltip:"Find problems related to your email address & fix them for better deliverability."})]}),U&&(0,F.jsx)("button",{onClick:()=>J(!0),className:"csBadge",style:{marginLeft:"auto",border:"3px solid #F9C00C",padding:10},children:(0,F.jsx)(x.A,{size:26,color:"#F9C00C"})})]}),$&&(0,F.jsx)(B.A,{title:"Email Domain Setup Settings",close:!0,onClose:()=>J(!1),contentStyle:{maxWidth:500},children:(0,F.jsxs)("div",{style:{padding:10},children:[(0,F.jsx)("label",{className:"relative block text-md mb-1 font-semibold",children:"DKIM Identifier"}),"client"!==(null===se||void 0===se||null===(e=se.user)||void 0===e?void 0:e.permission)&&(0,F.jsx)("div",{className:"mb-2",children:(0,F.jsxs)("a",{className:"csCustomeLink cursor-pointer",href:"https://help.salesblink.io/article/email-deliverability/domain-technical-setup",rel:"noreferrer",target:"_blank",children:[(0,F.jsx)(h.A,{size:18,style:{marginRight:3}}),"Learn to find your DKIM Identifier"]})}),(0,F.jsx)(t.ks,{value:ee,onChange:(e,i)=>ie(i)}),(0,F.jsxs)("div",{children:[(0,F.jsx)("p",{children:"Find your DKIM Identifier from your DNS Settings."}),(0,F.jsxs)("p",{children:["Ex. ",(0,F.jsx)("b",{children:"google"})," is the DKIM Identifier in the following DNS Record."]}),(0,F.jsx)("div",{style:{marginTop:8,overflow:"hidden",borderRadius:4},children:(0,F.jsx)("img",{style:{width:"100%",height:"auto",display:"block"},src:"/assets/dkim-identifier.png",alt:"DKIM Identifier"})})]}),(0,F.jsxs)("div",{style:{display:"flex",marginTop:11,justifyContent:"end",width:"100%"},children:[!Q&&(0,F.jsx)(t.$n,{variant:"primary",action:()=>(async()=>{Y(!0);try{var e;if(!/^[A-Za-z0-9][A-Za-z0-9-]*$/.test(ee))return Y(!1),z().fire({icon:"error",title:"Error in Updating Email Deliverability!",html:"The provided DKIM Identifier does not look valid! Please provide a valid DKIM Identifier.",showCancelButton:!1,confirmButtonText:"Ok",confirmButtonColor:"#0066ff"});let r=await S().put("/api/senders/".concat(le,"/save"),{updateDkim:!0,dkim_identifier:ee});var i,l;Y(!1),null!==r&&void 0!==r&&null!==(e=r.data)&&void 0!==e&&e.success?(z().fire({icon:"success",title:"Email Deliverability Updated!",html:"".concat(null===r||void 0===r||null===(i=r.data)||void 0===i?void 0:i.msg),showCancelButton:!1,confirmButtonText:"Ok",confirmButtonColor:"#0066ff"}),setTimeout((()=>{window.location.reload()}),3e3)):z().fire({icon:"error",title:"Error in Updating Email Deliverability!",html:"".concat(null===r||void 0===r||null===(l=r.data)||void 0===l?void 0:l.err),showCancelButton:!1,confirmButtonText:"Ok",confirmButtonColor:"#0066ff"})}catch(r){Y(!1),z().fire({icon:"error",title:"Oops! Could Not Update Email Deliverability",showCancelButton:!1,confirmButtonText:"Ok",confirmButtonColor:"#0066ff"})}})(),text:"Save"}),Q&&(0,F.jsx)(p.A,{style:{marginTop:15,marginRight:30,cursor:"not-allowed"},className:"rotate"})]})]})}),U?O?(0,F.jsx)("div",{className:"csFormLoader",children:(0,F.jsx)(t.aH,{children:(0,F.jsxs)("div",{style:{fontWeight:"bold",textAlign:"center"},children:[(0,F.jsxs)("p",{children:["Checking your domain setup for ",R]}),(0,F.jsx)("p",{className:"mt-2",children:"This can take a moment."})]})})}):(0,F.jsxs)("div",{children:[(0,F.jsxs)(D.fI,{children:[(0,F.jsxs)(D.fv,{lg:6,children:[(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center",paddingTop:40},children:(0,F.jsx)("div",{style:{fontSize:128,fontWeight:500,color:null!==Z&&void 0!==Z&&Z.deliverability&&!q?"#3AC569":"#E53A40",backgroundColor:"#f9f9f9",border:"2px s
1olid #CCCCCC",borderRadius:"50%",width:300,height:300,display:"flex",alignItems:"center",justifyContent:"center"},children:null!==Z&&void 0!==Z&&Z.deliverability&&!q?(0,F.jsx)(a.A,{size:180}):(0,F.jsx)(f.A,{size:180})})}),(0,F.jsx)("div",{style:{fontSize:32,fontWeight:500,paddingTop:20,display:"flex",justifyContent:"center"},children:"Domain Setup"}),(null===Z||void 0===Z?void 0:Z.ipAddress)&&(0,F.jsxs)("div",{style:{fontSize:16,fontWeight:500,color:"#555555",textAlign:"center",marginTop:4},children:["IP Address: ",(0,F.jsx)("span",{style:{fontWeight:600,color:"#03aefd"},children:Z.ipAddress})]})]}),(0,F.jsx)(D.fv,{lg:6,children:(0,F.jsxs)(D.fI,{children:[(0,F.jsx)(D.fv,{lg:6,children:(0,F.jsxs)("div",{className:"csCardBox",style:{margin:"12.5px 10px"},children:[(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:!1===(null===Z||void 0===Z?void 0:Z.emailError)?(0,F.jsx)(w,{size:63,color:"#3AC569"}):(0,F.jsx)(L,{size:63,style:{color:"#D14343"}})}),(0,F.jsx)("div",{className:"text-center mt-3 blockTitle",children:"Website & Email"})]})}),(0,F.jsx)(D.fv,{lg:6,children:(0,F.jsxs)("div",{className:"csCardBox",style:{margin:"12.5px 10px"},children:[(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:!1===(null===Z||void 0===Z?void 0:Z.dnsError)?(0,F.jsx)(w,{size:63,color:"#3AC569"}):(0,F.jsx)(L,{size:63,style:{color:"#D14343"}})}),(0,F.jsx)("div",{className:"text-center mt-3 blockTitle",children:"DNS Config"})]})}),(0,F.jsx)(D.fv,{lg:6,children:(0,F.jsxs)("div",{className:"csCardBox",style:{margin:"12.5px 10px"},children:[(0,F.jsx)("div",{style:{display:"flex",justifyContent:"center"},children:(null===Z||void 0===Z||null===(i=Z.blackList)||void 0===i?void 0:i.length)>0?(0,F.jsx)(f.A,{size:63,color:"#F9C00C"}):(0,F.jsx)(w,{size:63,color:"#3AC569"})}),(0,F.jsx)("div",{className:"text-center mt-3 blockTitle",children:"BlackLists"})]})})]})})]}),(!(null!==Z&&void 0!==Z&&Z.dkim)||!(null!==Z&&void 0!==Z&&Z.dmarc)||!(null!==Z&&void 0!==Z&&Z.spf)||!(null!==Z&&void 0!==Z&&Z.mx)||!(null!==Z&&void 0!==Z&&Z.websiteExists)||!(null!==Z&&void 0!==Z&&Z.sendingEnabled)||!(null!==Z&&void 0!==Z&&Z.receivingEnabled)||!(null!==te&&void 0!==te&&null!==(l=te.data)&&void 0!==l&&l.useCustomTrackingDomain)||q)&&(0,F.jsx)("div",{className:"errorTitle",children:"Errors Found"}),(0,F.jsxs)("div",{style:{marginTop:10,marginBottom:10},children:[q&&(0,F.jsxs)("div",{className:"errorCard",children:[(0,F.jsx)("b",{children:"Sending cold emails with email senders on subdomains have poor deliverability"})," ",(0,F.jsx)("a",{href:"".concat(W,"#:~:text=full%20setup%20instructions.-,Fix%20Reported%20Issues,-If%20any%20check"),target:"_blank",rel:"noopener noreferrer","aria-label":"Learn more",children:(0,F.jsx)(h.A,{style:{marginLeft:5,cursor:"pointer"}})})]}),!(null!==Z&&void 0!==Z&&Z.dkim)&&"client"!==(null===se||void 0===se||null===(g=se.user)||void 0===g?void 0:g.permission)&&(0,F.jsxs)("div",{style:{marginTop:5},className:"errorCard",children:[(0,F.jsxs)("b",{children:["Set DKIM Identifier to check [",(0,F.jsx)("span",{style:{color:"#03A6FF",cursor:"pointer"},onClick:()=>J(!0),children:"click here"}),"]"]})," ",(0,F.jsx)("a",{href:"".concat(W,"#:~:text=for%20detailed%20guidance.-,6.%20DKIM%20Record,-What%20it%20means"),target:"_blank",rel:"noopener noreferrer","aria-label":"Learn more",children:(0,F.jsx)(h.A,{style:{marginLeft:5,cursor:"pointer"}})})]}),!(null!==te&&void 0!==te&&null!==(j=te.data)&&void 0!==j&&j.useCustomTrackingDomain)&&"client"!==(null===se||void 0===se||null===(b=se.user)||void 0===b?void 0:b.permission)&&(0,F.jsxs)("div",{className:"errorCard",children:[(0,F.jsx)("b",{children:"Custom domain for tracking is not set for this email sender (Optional)"})," ",(0,F.jsx)("a",{href:"".concat(W,"#:~:text=10.%20Custom%20Tracking%20Domain"),target:"_blank",rel:"noopener noreferrer","aria-label":"Learn more",children:(0,F.jsx)(h.A,{style:{marginLeft:5,cursor:"pointer"}})})]}),!(null!==Z&&void 0!==Z&&Z.dmarc)&&"client"!==(null===se||void 0===se||null===(y=se.user)||void 0===y?void 0:y.permission)&&(0,F.jsxs)("div",{className:"errorCard",children:[(0,F.jsx)("b",{children:"DMARC (TXT)"})," ",(0,F.jsx)("a",{href:"".concat(W,"#:~:text=by%2Dstep%20instructions.-,4.%20DMARC%20Record,-What%20it%20means"),target:"_blank",rel:"noopener noreferrer","aria-label":"Learn more",children:(0,F.jsx)(h.A,{style:{marginLeft:5,cursor:"pointer"}})})]}),!(null!==Z&&void 0!==Z&&Z.spf)&&"client"!==(null===se||void 0===se||null===(C=se.user)||void 0===C?void 0:C.permission)&&(0,F.jsxs)("div",{className:"errorCard",children:[(0,F.jsx)("b",{children:"SPF (TXT)"})," ",(0,F.jsx)("a",{href:"".concat(W,"#:~:text=SPF%20Record%20(Sender%20Policy%20Framework)"),target:"_blank",rel:"noopener noreferrer","aria-label":"Learn more",children:(0,F.jsx)(h.A,{style:{marginLeft:5,cursor:"pointer"}})})]}),!(null!==Z&&void 0!==Z&&Z.mx)&&(0,F.jsxs)("div",{className:"errorCard",children:[(0,F.jsx)("b",{children:"MX Records are missing"})," ",(0,F.jsx)("a",{href:"".concat(W,"#:~:text=5.%20MX%20Records%20(Mail%20Exchange)"),target:"_blank",rel:"noopener noreferrer","aria-label":"Learn more",children:(0,F.jsx)(h.A,{style:{marginLeft:5,cursor:"pointer"}})})]}),(!(null!==Z&&void 0!==Z&&Z.websiteExists)||(null===Z||void 0===Z?void 0:Z.emailErrorMessage))&&(0,F.jsxs)("div",{className:"errorCard",children:[(0,F.jsx)("b",{children:(null===Z||void 0===Z?void 0:Z.emailErrorMessage)||"Website does not return a status code of 200, 301 or 302 which is required for best deliverability"})," ",(0,F.jsx)("a",{href:null!==Z&&void 0!==Z&&Z.emailErrorMessage?"".concat(W,"#:~:text=9.%20Generic%20Username%20Check"):"".concat(W,"#:~:text=What%20We%20Check-,1.%20Website%20Exists,-What%20it%20means"),target:"_blank",rel:"noopener noreferrer","aria-label":"Learn more",children:(0,F.jsx)(h.A,{style:{marginLeft:5,cursor:"pointer"}})})]}),!(null!==Z&&void 0!==Z&&Z.sendingEnabled)&&"client"!==(null===se||void 0===se||null===(A=se.user)||void 0===A?void 0:A.permission)&&(0,F.jsxs)("div",{className:"errorCard",children:[(0,F.jsx)("b",{children:"SMTP Connected"})," ",(0,F.jsx)("a",{href:"".concat(W,"#:~:text=7.%20SMTP%20Connected%20(Sending%20Enabled)"),target:"_blank",rel:"noopener noreferrer","aria-label":"Learn more",children:(0,F.jsx)(h.A,{style:{marginLeft:5,cursor:"pointer"}})})]}),!(null!==Z&&void 0!==Z&&Z.receivingEnabled)&&"client"!==(null===se||void 0===se||null===(k=se.user)||void 0===k?void 0:k.permission)&&(0,F.jsxs)("div",{className:"errorCard",children:[(0,F.jsx)("b",{children:"IMAP Connected"})," ",(0,F.jsx)("a",{href:"".concat(W,"#:~:text=8.%20IMAP%20Connected%20(Receiving%20Enabled)"),target:"_blank",rel:"noopener noreferrer","aria-label":"Learn more",children:(0,F.jsx)(h.A,{style:{marginLeft:5,cursor:"pointer"}})})]})]}),(null===Z||void 0===Z||null===(E=Z.blackList)||void 0===E?void 0:E.length)>0&&"client"!==(null===se||void 0===se||null===(T=se.user)||void 0===T?void 0:T.permission)&&(0,F.jsx)(D.fI,{style:{marginTop:20},children:(0,F.jsx)(D.fv,{lg:12,children:(0,F.jsx)(t.Ak,{hasFooter:!1,pagination:!1,filter:"",columns:[{Header:(0,F.jsxs)("div",{style:{display:"flex"},children:["IP Address of Domain ",null===(N=(null===Z||void 0===Z?void 0:Z.smtpImapEmail)||"")||void 0===N||null===(M=N.split("@"))||void 0===M?void 0:M[1]," Blacklist Check"," ",(0,F.jsx)("a",{href:"".concat(W,"#:~:text=qualify%20for%20deliverability.-,2.%20Blacklist%20Check,-What%20it%20means"),target:"_blank",rel:"noopener noreferrer","aria-label":"Learn more",children:(0,F.jsx)(h.A,{style:{marginLeft:5,cursor:"pointer"}})})]}),Footer:"BlackList",disableSortBy:!0,accessor:"name"}],data:null===Z||void 0===Z?void 0:Z.blackList})})})]}):O?(0,F.jsx)("div",{className:"csFormLoader",children:(0,F.jsx)(t.aH,{children:(0,F.jsxs)("div",{style:{fontWeight:"bold"},children:["Calculating Domain Setup for ",R]})})}):(0,F.jsx)("div",{className:"font-semibold text-md text-center",style:{marginTop:100},children:"Domain Setup is only available for Professional Email Addresses."})]})]})}},52346:(e,i,l)=>{l.d(i,{A:()=>c});var r=l(89379),t=l(80045),n=l(57758),s=l(16405),o=l.n(s);const a=["color","size"],d=e=>{const{color:i,size:l}=e,s=(0,t.A)(e,a);return n.createElement("svg",(0,r.A)({xmlns:"http://www.w3.org/2000/svg",width:l,height:l,viewBox:"0 0 24 24",fill:i},s),n.createElement("path",{d:"M19.91,15.51H15.38a1,1,0,0,0,0,2h2.4A8,8,0,0,1,4,12a1,1,0,0,0-2,0,10,10,0,0,0,16.88,7.23V21a1,1,0,0,0,2,0V16.5A1,1,0,0,0,19.91,15.51ZM12,2A10,10,0,0,0,5.12,4.77V3a1,1,0,0,0-2,0V7.5a1,1,0,0,0,1,1h4.5a1,1,0,0,0,0-2H6.22A8,8,0,0,1,20,12a1,1,0,0,0,2,0A10,10,0,0,0,12,2Z"}))};
1d.propTypes={color:o().string,size:o().oneOfType([o().string,o().number])},d.defaultProps={color:"currentColor",size:"24"};const c=d}}]); 2//# sourceMappingURL=159.39e27378.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.