1import{z as Y,D as c1,K as d1,p as a,q as e,w as i,x as p,v as w1,u as R1,F as z1,N as N1}from"./zMQZ3vqD.js";import{m as y1,g9 as O1,w as D,ga as W1,gb as $1,gc as q1,gd as V1,ge as G1,gf as K1,gg as X1,a9 as R,U as W,z as _,gh as J,gi as $,gj as e1,a as h,ai as B,gk as Z,d8 as j1,G as A,gl as S1,aB as k1,o as p1,gm as Q1,N as C1,gn as n1,V as h1,bJ as Y1,go as s1,T as x1,bS as J1,gp as e2,a8 as t1,X,bG as L1,gq as t2,aP as v1,fw as E1,gr as o2,gs as I1,gt as T1,eB as A1,b1 as n2,gu as s2,M as a2,fx as r2,ci as g1,cj as u1,gv as i2,eC as l2,gw as c2,gx as d2,gy as p2,gz as C2,gA as h2,gB as x2,gC as g2,H as u2,d as m2,aH as f2,ah as b2,gD as w2,_ as G,ea as y2,eb as j2,ec as S2}from"./BWeJ4otB.js";import{gE as Ne,gF as Oe,gG as We}from"./BWeJ4otB.js";import{S as F1,g as Q,a as H1,M as k2}from"./DupwLzu-.js";import"./BSc7nAdZ.js";import"./dlecG_21.js";import{u as L2}from"./BBVSacGk.js";import"./hle-0Evi.js";import{F as Z1,e as P1}from"./DiqFlZAK.js";import"./CxjJ0NBy.js";import{S as v2}from"./DGI9QhrJ.js";import{u as M1}from"./CA5Y5u5a.js";import"./C3Y7KbLQ.js";import"./CHXTyely.js";import"./apHXcpZ8.js";const E2=t=>y1(["hubspot"],O1,{retry:!1,...t}),I2=["crm.objects.contacts.write","crm.objects.contacts.read","oauth","crm.import"].join("+"),T2=t=>{const{mutate:n,...s}=D("open-hubspot-auth",async({clientId:d,redirectUri:o})=>{const r=Math.random().toString(36).substring(2),l=`${W1}?client_id=${d}&redirect_uri=${encodeURIComponent(o)}&scope=${I2}&state=${r}`;window.location.href=l},{...t,onSuccess:async(d,o,r)=>{}});return{getHubspotAuthUrl:n,...s}},A2=t=>y1(["salesforce"],$1,{retry:!1,...t}),F2=t=>{const{mutate:n,...s}=D("open-salesforce-auth",async({clientId:d,redirectUri:o,environment:r})=>{const l=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),c=q1(r),j=new URLSearchParams({response_type:"code",client_id:d,redirect_uri:o,state:l}),u=`${c}/services/oauth2/authorize?${j.toString()}`;window.location.href=u},{...t,onSuccess:async(d,o,r)=>{}});return{getSalesforceAuthUrl:n,...s}},H2=t=>{const n=Y(),{mutate:s,...d}=D("hubspot-connect",({code:o})=>V1({code:o}),{...t,onSuccess:async(o,r,l)=>{var c;(c=t==null?void 0:t.onSuccess)==null||c.call(t,o,r,l),await n.invalidateQueries({queryKey:["get-user-profile"]}),await n.invalidateQueries({queryKey:["hubspot"]})}});return{connectHubspot:s,...d}},Z2=t=>{const n=Y(),{mutate:s,...d}=D("hubspot-remove",()=>G1(),{...t,onSuccess:async(o,r,l)=>{var c;(c=t==null?void 0:t.onSuccess)==null||c.call(t,o,r,l),await n.invalidateQueries({queryKey:["get-user-profile"]}),await n.invalidateQueries({queryKey:["hubspot"]})}});return{removeHubspot:s,...d}},P2=t=>{const n=Y(),{mutate:s,...d}=D("salesforce-connect",({code:o,environment:r})=>K1({code:o,environment:r}),{...t,onSuccess:async(o,r,l)=>{var c;(c=t==null?void 0:t.onSuccess)==null||c.call(t,o,r,l),await n.invalidateQueries({queryKey:["get-user-profile"]}),await n.invalidateQueries({queryKey:["salesforce"]})}});return{connectSalesforce:s,...d}},M2=t=>{const n=Y(),{mutate:s,...d}=D("salesforce-remove",()=>X1(),{...t,onSuccess:async(o,r,l)=>{var c;(c=t==null?void 0:t.onSuccess)==null||c.call(t,o,r,l),await n.invalidateQueries({queryKey:["get-user-profile"]}),await n.invalidateQueries({queryKey:["salesforce"]})}});return{removeSalesforce:s,...d}},B2="/Dkch4Eba.png",U2=()=>{const t=c1(),[n,s]=d1(),[d,o]=a.useState(null),r=`${window.location.origin}/hubspot/callback`,{userMe:l}=R(),c=l==null?void 0:l.isHubspotActive,{isEnterprise:j,isAgency:u,isTeams:b}=W(),S=j||u||b,{data:x,isLoading:k}=E2({enabled:c}),{getHubspotAuthUrl:L,isLoading:F}=T2(),{connectHubspot:m,isLoading:w,isError:H}=H2({onError:g=>{console.error("HubSpot connect error:",g),t(_({type:"error",message:Q(g,"Failed to connect to HubSpot. Please try again."),autoCloseTime:3e3}))}}),{removeHubspot:C,isLoading:I}=Z2({onError:g=>{t(_({type:"error",message:Q(g,"Failed to disconnect from HubSpot. Please try again."),autoCloseTime:3e3}))}}),P=()=>{t(p1({headerText:"Are you sure you want to disconnect HubSpot?",descriptionText:"This will remove your HubSpot integration. You will need to reconnect to export leads to HubSpot again.",onConfirm:()=>C()}))};a.useEffect(()=>{const g=n.get("code"),z=n.get("error");g?(o(g),m({code:g}),n.delete("code"),n.delete("state"),s(n)):z&&(t(_({type:"error",message:"HubSpot authorization was cancelled or failed. Please try again.",autoCloseTime:8e3})),n.delete("error"),n.delete("error_description"),s(n))},[n,s,m,t]);const y=()=>{L({clientId:Q1,redirectUri:r})},T=()=>k?e.jsx(i,{ml:"16px",display:"flex",alignItems:"center",children:e.jsx(k1,{type:"dots",size:"16px",marginTop:"0"})}):!(x!=null&&x.hubUser)&&!(x!=null&&x.hubDomain)?null:e.jsxs(i,{ml:"16px",children:[e.jsx(h,{color:"blue.black",mb:"4px",crop:!0,children:x==null?void 0:x.hubUser}),(x==null?void 0:x.hubDomain)&&e.jsx(h,{color:"greyBlue.100",crop:!0,children:x.hubDomain})]});return e.jsxs(J,{children:[e.jsx(i,{display:"flex",alignItems:"flex-start",justifyContent:"space-between",children:e.jsx($,{mb:"8px",children:e.jsx(F1,{width:"44px",height:"44px"})})}),e.jsx(e1,{children:"HubSpot"}),e.jsx(h,{mt:"4px",fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",children:"Connect your HubSpot account to integrate with your CRM and automate workflows."}),e.jsx(B,{mx:"-16px",my:"16px"}),c?e.jsxs(e.Fragment,{children:[e.jsx(Z,{type:"success",message:"Your HubSpot account is connected and ready to use.",wrapperProps:{mb:"16px"}}),e.jsxs(i,{display:"flex",alignItems:"center",p:"8px 12px",bgcolor:"bg.greyBlue",borderRadius:"12px",gap:"16px",justifyContent:"space-between",minWidth:"max-content",children:[e.jsxs(i,{display:"flex",alignItems:"center",children:[e.jsx(j1,{firstLatter:"HS",width:"48px",height:"48px",backgroundColor:"#fff",sx:{borderRadius:"50%"}}),T()]}),e.jsx(A,{variant:"warning-secondary",onClick:P,disabled:I,processing:I,children:"Disconnect HubSpot"})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(Z,{type:"info",message:e.jsxs(e.Fragment,{children:[e.jsx(h,{fontSize:"12px",lineHeight:"16px",semibold:!0,inline:!0,component:"span",children:"Note:"})," ","When you click the button below, you'll be redirected to HubSpot to authorize the connection."]})}),H&&e.jsx(Z,{type:"error",message:"Failed to connect to HubSpot. Please try again.",wrapperProps:{mt:"16px"}}),d&&w&&e.jsx(Z,{type:"success",noIcon:!0,wrapperProps:{mt:"16px",pb:"12px"},messageProps:{mb:"8px",color:"greyBlue.100",medium:!0},message:"Almost there! We're connecting your HubSpot account. This may take a moment.",noDivider:!0,bottomContent:e.jsx(S1,{})}),e.jsx(B,{mx:"-16px",my:"16px"}),e.jsx(i,{sx:{display:"flex",width:"fit-content"},children:e.jsx(A,{variant:"primary",onClick:y,disabled:F||w||!S,tooltip:S?void 0:{title:"Upgrade to our Team plan for exclusive benef
1its, and advanced features like this one."},leftIcon:e.jsx("img",{src:B2,alt:"",width:20,height:20,style:{display:"block"}}),children:"Sign in with HubSpot"})})]})]})},_2=t=>a.createElement("svg",{width:20,height:14,viewBox:"0 0 20 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},a.createElement("path",{d:"M7.38293 13C6.00481 13 4.75657 12.2338 4.18133 11.0647C4.04994 11.0765 3.92618 11.0787 3.81465 11.0787C1.98659 11.0787 0.5 9.64118 0.5 7.87426C0.5 6.84485 1.02329 5.87353 1.88422 5.27279C1.75436 4.90662 1.68637 4.51471 1.68637 4.12353C1.68637 2.12574 3.38533 0.5 5.47236 0.5C6.52199 0.5 7.50821 0.902206 8.23241 1.61471C8.84507 1.12941 9.62809 0.856618 10.4371 0.856618C11.5677 0.856618 12.6334 1.40662 13.2888 2.31103C13.7158 2.16397 14.1887 2.08603 14.6753 2.08603C16.9686 2.08603 18.8333 3.89118 18.8333 6.10956C18.8333 8.32868 16.9625 10.1331 14.6623 10.1331C14.4889 10.1331 14.3086 10.1206 14.107 10.0941C13.34 11.189 11.8671 11.711 10.4791 11.261C9.85956 12.3279 8.68083 13 7.38293 13ZM4.41815 10.2904C4.57552 10.2904 4.72066 10.3846 4.77719 10.5316C5.16985 11.5684 6.21718 12.2647 7.38293 12.2647C8.50054 12.2647 9.50433 11.6309 9.94206 10.65C9.98331 10.5596 10.0589 10.4882 10.1552 10.4522C10.2492 10.4162 10.3569 10.4184 10.4508 10.4596C11.6823 10.9963 12.9985 10.5287 13.5829 9.51397C13.6624 9.37574 13.8251 9.30588 13.984 9.33015C14.2498 9.37574 14.4652 9.39706 14.6639 9.39706C16.5423 9.39706 18.0709 7.92206 18.0709 6.10882C18.0709 4.29559 16.5484 2.82059 14.6768 2.82059C14.1788 2.82059 13.7036 2.91765 13.3018 3.10074C13.1238 3.18088 12.9045 3.11765 12.806 2.94926C12.3133 2.11176 11.4057 1.59118 10.4378 1.59118C9.69761 1.59118 8.98639 1.88235 8.4845 2.39118C8.34394 2.53456 8.11018 2.54485 7.95587 2.41471C7.9383 2.40074 7.91079 2.375 7.89704 2.35809C7.30424 1.64485 6.42115 1.23529 5.47236 1.23529C3.80549 1.23529 2.45029 2.53088 2.45029 4.12353C2.45029 4.51912 2.53738 4.91397 2.70162 5.26618C2.78107 5.4375 2.71461 5.63971 2.54578 5.73456C1.75512 6.17868 1.26392 6.99853 1.26392 7.87426C1.26392 9.23603 2.40751 10.3426 3.81389 10.3426C4.03619 10.3426 4.19203 10.3294 4.33565 10.2985C4.36315 10.2934 4.39065 10.2904 4.41815 10.2904Z",fill:"#000E33",stroke:"#110638"})),D2={OAUTH_EC_APP_NOT_FOUND:"Salesforce App Not Found. The Salesforce connection for this app is missing or invalid. Please check your integration settings or contact your admin.",OAUTH_FLOW_DISABLED:"Authorization Method Disabled. The login method for this app is not enabled in your Salesforce settings. Please contact your admin to allow this OAuth flow."};function R2(t,n){const s=D2[t];if(s)return s;try{return(n?decodeURIComponent(n.replace(/\+/g," ")):"")||"Connect to Salesforce failed. Please check your Salesforce configuration and try again later."}catch{return"Connect to Salesforce failed. Please check your Salesforce configuration and try again later."}}const z2="https://help.meetalfred.com/en/articles/14665761-how-to-connect-the-native-salesforce-integration-on-meet-alfred",N2="alf",O2=p("strong",{target:"e1gxl7jo7"})("display:inline-flex;align-items:center;position:relative;overflow:hidden;max-width:100%;font-weight:700;vertical-align:middle;outline:none;cursor:pointer;border-radius:6px;padding:1px 8px;margin:0 1px;color:#000e33;background:",({theme:t})=>t.palette.greyBlue[10],";box-shadow:inset 0 0 0 1px ",({theme:t})=>t.palette.greyBlue[20],";isolation:isolate;& .installation-password-secret{display:inline-block;
1filter:blur(7px);transform:translateZ(0);user-select:none;transition:filter 0.28s ease;will-change:filter;}&:hover .installation-password-secret,&:focus .installation-password-secret,&:focus-within .installation-password-secret{filter:blur(0);user-select:text;}@media (prefers-reduced-motion: reduce){& .installation-password-secret{transition:none;}&:hover .installation-password-secret,&:focus .installation-password-secret,&:focus-within .installation-password-secret{filter:blur(0);}}"),W2=p(i,{target:"e1gxl7jo6"})({name:"1xitmc1",styles:"padding:16px;border:1px solid #bbcdfa;border-radius:12px;background:#ffffff"}),$2=p(h,{target:"e1gxl7jo5"})({name:"1vhy10c",styles:"font-family:Inter,sans-serif;font-weight:600;font-size:12px;line-height:16px;color:#000e33;margin-bottom:12px"}),a1=p(i,{target:"e1gxl7jo4"})({name:"1fz50uo",styles:"display:flex;align-items:flex-start;gap:12px;position:relative"}),r1=p(i,{target:"e1gxl7jo3"})({name:"ga4jt6",styles:"width:20px;min-width:20px;height:20px;border-radius:100px;background:#1b4ed2;color:#ffffff;display:flex;align-items:center;justify-content:center;font-family:Inter,sans-serif;font-weight:600;font-size:12px;line-height:16px;flex-shrink:0"}),m1=p(i,{target:"e1gxl7jo2"})({name:"1gxcbzo",styles:"position:absolute;left:9.5px;top:20px;width:1px;height:16px;background:#1b4ed2"}),i1=p(h,{target:"e1gxl7jo1"})({name:"mra61m",styles:"font-family:Inter,sans-serif;font-weight:500;font-size:12px;line-height:16px;color:#656f7d;padding-top:2px"}),q2=p(C1,{target:"e1gxl7jo0"})({name:"2kdkiu",styles:"font-size:12px;line-height:16px;text-decoration:underline"}),V2="/packagingSetupUI/ipLanding.app?apvId=04td50000009CMvAAM",G2="By enabling this toggle, you will connect to Salesforce Sandbox (test.salesforce.com), which allows you to stream records and test automations safely before going live with real customer records.",K2=p(_2,{target:"e8ppnvh1"})({name:"ktghgh",styles:"& path{fill:white;stroke:white;}"}),X2=p(J1,{target:"e8ppnvh0"})("width:15px;height:15px;& path{stroke:",({theme:t})=>t.palette.greyBlue[60],";}"),Q2=()=>{const t=c1(),[n,s]=d1(),[d,o]=a.useState(null),[r,l]=a.useState(n1),[c,j]=a.useState(""),[u,b]=a.useState(""),S=e2,x=`${window.location.origin}/salesforce/callback`,{userMe:k}=R(),L=k==null?void 0:k.isSalesforceActive,{isEnterprise:F,isAgency:m,isTeams:w}=W(),H=F||m||w,{data:C,isLoading:I}=A2({enabled:L}),{getSalesforceAuthUrl:P,isLoading:y}=F2(),{connectSalesforce:T,isLoading:g,isError:z}=P2({onError:f=>{console.error("Salesforce connect error:",f),t(_({type:"error",message:Q(f,"Failed to connect to Salesforce. Please try again."),autoCloseTime:3e3}))}}),{removeSalesforce:v,isLoading:E}=M2({onError:f=>{t(_({type:"error",message:Q(f,"Failed to disconnect from Salesforce. Please try again."),autoCloseTime:3e3}))}}),o1=()=>{t(p1({headerText:"Are you sure you want to disconnect Salesforce?",descriptionText:"This will remove your Salesforce integration. You will need to reconnect to export leads to Salesforce again.",onConfirm:()=>v()}))};a.useEffect(()=>{const f=n.get("code"),M=n.get("error");if(f){o(f);const O=sessionStorage.getItem("salesforce_environment")||n1;sessionStorage.removeItem("salesforce_environment"),T({code:f,environment:O}),n.delete("code"),n.delete("state"),s(n)}else if(M){const O=n.get("error_description"),U=R2(M,O);t(_({type:"error",message:U,autoCloseTime:8e3})),n.delete("error"),n.delete("error_description"),s(n)}},[n,s,T,t]);const V=()=>{sessionStorage.setItem("salesforce_environment",r),P({clientId:S,redirectUri:x,environment:r})},N=f=>{const M=f.trim();if(!M)return null;try{const O=/^https?:\/\//i.test(M)?M:`https://${M}`,U=new URL(O);return!U.hostname||!U.hostname.includes(".")?null:`${U.protocol}//${U.host}`}catch{return null}},_1=()=>{const f=N(c);if(!f){b("Please enter a valid Salesforce URL");return}b(""),window.open(`${f}${V2}`,"_blank","noopener,noreferrer")},D1=()=>I?e.jsx(i,{ml:"16px",display:"flex",alignItems:"center",children:e.jsx(k1,{type:"dots",size:"16px",marginTop:"0"})}):!(C!=null&&C.userName)&&!(C!=null&&C.instanceUrl)?null:e.jsxs(i,{ml:"16px",children:[e.jsx(h,{color:"blue.black",mb:"4px",crop:!0,children:C==null?void 0:C.userName}),(C==null?void 0:C.instanceUrl)&&e.jsx(C1,{color:"greyBlue.100",openNewTab:!0,external:!0,to:C.instanceUrl,variant:"default",children:C.instanceUrl})]});return e.jsxs(J,{children:[e.jsx(i,{display:"flex",alignItems:"flex-start",justifyContent:"space-between",children:e.jsx($,{mb:"8px",children:e.jsx(H1,{width:"44px",height:"44px"})})}),e.jsx(e1,{children:"Salesforce"}),e.jsx(h,{mt:"4px",fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",children:"Connect your Salesforce account to integrate with your CRM and automate workflows."}),e.jsx(B,{mx:"-16px",my:"16px"}),L?e.jsxs(e.Fragment,{children:[e.jsx(Z,{type:"success",message:"Your Salesforce account is connected and ready to use.",wrapperProps:{mb:"16px"}}),e.jsxs(i,{display:"flex",alignItems:"center",p:"8px 12px",bgcolor:"bg.greyBlue",borderRadius:"12px",gap:"16px",justifyContent:"space-between",minWidth:"max-content",children:[e.jsxs(i,{display:"flex",alignItems:"center",children:[e.jsx(j1,{src:(C==null?void 0:C.picture)||"",firstLatter:"SF",width:"48px",height:"48px",backgroundColor:"#fff",sx:{borderRadius:"50%"}}),D1()]}),e.jsx(A,{variant:"warning-secondary",onClick:o1,disabled:E,processing:E,children:"Disconnect Salesforce"})]})]}):e.jsxs(e.Fragment,{children:[e.jsx(Z,{type:"info",message:e.jsxs(e.Fragment,{children:[e.jsx(h,{fontSize:"12px",lineHeight:"16px",semibold:!0,inline:!0,component:"span",children:"Note:"})," ","Salesforce only allows API access with their Professional, Enterprise, Performance, Unlimited and Developer Editions"]})}),e.jsxs(W2,{my:"16px",children:[e.jsx($2,{children:"Ready to set up Salesforce?"}),e.jsxs(i,{position:"relative",display:"flex",flexDirection:"column",children:[e.jsxs(a1,{mb:"16px",children:[e.jsx(r1,{children:"1"}),e.jsx(m1,{}),e.jsxs(i1,{component:"span",children:["Browse the"," ",e.jsx(q2,{openNewTab:!0,external:!0,to:z2,children:"short instructions"})," ","for a smooth setup."]})]}),e.jsxs(a1,{children:[e.jsx(r1,{children:"2"}),e.jsx(m1,{sx:{height:"100% !important"}}),e.jsxs(i,{width:"100%",pt:"2px",children:[e.jsxs(i1,{component:"span",mb:"8px",display:"block",children:["Provide Salesforce URL to install the package below. When prompted use the installation password:"," ",e.jsx(O2,{tabIndex:0,title:"Tap, hover, or focus to reveal","aria-label":"Installation password. Hover, tap, or focus to reveal.",children:e.jsx("span",{className:"installation-password-secret",children:N2})}),"."]}
1),e.jsxs(i,{display:"flex",alignItems:"flex-start",gap:"16px",maxWidth:"420px",children:[e.jsx(h1,{placeholder:"Paste link here",value:c,onChange:f=>{j(f.target.value),u&&b("")},className:u?"error":""}),e.jsx(A,{variant:"primary",onClick:_1,disabled:!c.trim(),size:{width:"76px"},children:"Install"})]}),u&&e.jsx(h,{color:"additional.red50",medium:!0,mt:"8px",fontSize:"12px",lineHeight:"16px",children:u})]})]}),e.jsxs(a1,{mt:"16px",children:[e.jsx(r1,{children:"3"}),e.jsxs(i1,{component:"span",children:["Launch the app and hit the"," ",e.jsx(h,{component:"span",display:"inline-block",fontWeight:500,fontSize:"12px",lineHeight:"16px",color:"#000E33",children:"Sign in with Salesforce"})," ","button."]})]})]})]}),e.jsx(i,{display:"flex",flexDirection:"column",gap:"12px",my:"16px",children:e.jsxs(i,{display:"flex",alignItems:"center",children:[e.jsx(Y1,{checked:r===s1,onChange:()=>l(r===s1?n1:s1)}),e.jsx(h,{component:"span",ml:"10px",fontSize:"12px",lineHeight:"16px",semibold:!0,children:"Use Sandbox Environment"}),e.jsx(x1,{title:G2,placement:"top",children:e.jsx(i,{width:"15px",height:"15px",ml:"10px",mb:"4px",children:e.jsx(X2,{})})})]})}),z&&e.jsx(Z,{type:"error",message:"Failed to connect to Salesforce. Please try again.",wrapperProps:{mb:"16px"}}),d&&g&&e.jsx(Z,{type:"success",noIcon:!0,wrapperProps:{mt:"16px",pb:"12px"},messageProps:{mb:"8px",color:"greyBlue.100",medium:!0},message:"Almost there! We're connecting your Salesforce account. This may take a moment.",noDivider:!0,bottomContent:e.jsx(S1,{})}),e.jsx(B,{mx:"-16px",my:"16px"}),e.jsx(i,{sx:{display:"flex",width:"fit-content"},children:e.jsx(A,{variant:"primary",onClick:V,disabled:y||g||!H,tooltip:H?void 0:{title:"Upgrade to our Team plan for exclusive benefits, and advanced features like this one."},leftIcon:e.jsx(K2,{width:"20px",height:"14px"}),children:"Sign in with Salesforce"})})]})]})},B1=t=>a.createElement("svg",{width:41,height:40,viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},a.createElement("g",{clipPath:"url(#clip0_638_125468)"},a.createElement("g",{clipPath:"url(#clip1_638_125468)"},a.createElement("path",{d:"M19.0108 17.0852C17.353 19.8215 15.7646 22.4714 14.1432 25.1013C13.7268 25.7765 13.5208 26.3264 13.8535 27.1847C14.7718 29.5556 13.4763 31.8628 11.0413 32.4891C8.7449 33.0799 6.50754 31.598 6.05191 29.184C5.64818 27.0473 7.33693 24.9527 9.73615 24.6188C9.93725 24.5906 10.1424 24.5873 10.4803 24.5624C11.656 22.6267 12.8604 20.6441 14.1299 18.5534C11.8345 16.3124 10.4682 13.6925 10.7707 10.4463C10.9844 8.15152 11.9034 6.16856 13.5832 4.54318C16.8004 1.43073 21.7085 0.926651 25.4965 3.31573C29.1347 5.61049 30.8009 10.0805 29.3806 13.9063C28.3096 13.6212 27.2313 13.3337 26.0457 13.0179C26.4918 10.8909 26.1619 8.98074 24.7008 7.34444C23.7355 6.26409 22.4968 5.69784 21.0882 5.48917C18.2645 5.07031 15.4922 6.85158 14.6696 9.57278C13.7358 12.6613 15.149 15.1841 19.0108 17.0852Z",fill:"#C73A63"}),a.createElement("path",{d:"M23.7459 13.8491C24.9138 15.8721 26.0997 17.9258 27.275 19.9606C33.2158 18.156 37.6948 21.3849 39.3017 24.8419C41.2425 29.0177 39.9158 33.9636 36.104 36.5398C32.1915 39.1845 27.2435 38.7326 23.7771 35.3354C24.6605 34.6093 25.5483 33.8799 26.4969 33.1007C29.9207 35.2781 32.9152 35.1756 35.1384 32.5972C37.0341 30.3977 36.993 27.1181 35.0423 24.9647C32.791 22.4798 29.7756 22.404 26.1306 24.7894C24.6185 22.1556 23.0802 19.5426 21.616 16.8897C21.1224 15.9956 20.5772 15.4769 19.4645 15.2877C17.6062 14.9713 16.4064 13.4045 16.3344 11.649C16.2637 9.91293 17.3053 8.34366 18.9335 7.73221C20.5463 7.12653 22.4389 7.61544 23.5238 8.96178C24.4103 10.0618 24.692 11.2999 24.2256 12.6566C24.0958 13.0348 23.9278 13.4009 23.7459 13.8491Z",fill:"#4B4B4B"}),a.createElement("path",{d:"M26.537 30.3876H19.3854C18.7 33.1558 17.2194 35.3908 14.6682 36.812C12.6851 37.9166 10.5475 38.2912 8.27246 37.9306C4.08379 37.2673 0.658717 33.5649 0.357232 29.3958C0.0158986 24.6731 3.32204 20.4752 7.7288 19.5322C8.03306 20.6171 8.34042 21.7123 8.64468 22.7945C4.6015 24.8199 3.20219 27.3719 4.33369 30.5629C5.32989 33.3711 8.1594 34.9104 11.2317 34.315C14.3692 33.7072 15.9511 31.147 15.758 27.0382C18.7324 27.0382 21.7093 27.0079 24.684 27.0531C25.8454 27.071 26.7421 26.9527 27.6173 25.9473C29.058 24.2928 31.7095 24.442 33.2611 26.0046C34.8467 27.6015 34.7707 30.171 33.0928 31.7006C31.4739 33.1764 28.9162 33.0975 27.4016 31.5074C27.0903 31.1795 26.845 30.7904 26.537 30.3876Z",fill:"#4A4A4A"}))),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_638_125468"},a.createElement("rect",{width:40,height:40,fill:"white",transform:"translate(0.333008)"})),a.createElement("clipPath",{id:"clip1_638_125468"},a.createElement("rect",{width:40,height:36.6667,fill:"white",transform:"translate(0.333008 1.6665)"})))),Y2=p(h1,{target:"ea0id4o0"})({name:"xep7y6",styles:"caret-color:transparent"}),J2=()=>{const{palette:t}=w1(),{companyName:n}=t1(),{userMe:s}=R(),{copy:d,isCopied:o}=M1(),{checkFeature:r}=W(),[l,c]=r(X.zappierAndWebhook);return e.jsxs(J,{children:[e.jsx($,{mb:"8px",children:e.jsx(B1,{})}),e.jsx(e1,{children:"Webhook API key"}),e.jsxs(h,{mt:"4px",fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",children:["Use your Webhook API key to integrate all ",n," webhooks via API."]}),e.jsx(B,{mx:"-16px",my:"16px"}),l&&e.jsxs(h,{mb:"12px",children:["Please click"," ",e.jsx(C1,{variant:"darkBlue",semibold:!0,underline:!0,to:"/documentation/webhook",children:"here"})," ","to review the ",e.jsx("b",{children:"Documentation"})," of webhooks"]}),e.jsxs(i,{display:"flex",gap:"20px",alignItems:"flex-end",children:[e.jsx(i,{width:"300px",children:e.jsx(Y2,{label:"Webhook API key",readOnly:!0,value:l?s==null?void 0:s.webhookToken:"",name:"webhook",disabled:!l})}),l?e.jsxs(e.Fragment,{children:[e.jsx(A,{leftIcon:e.jsx(L1,{width:"20px",height:"20px"}),onClick:()=>d(s==null?void 0:s.webhookToken),children:"Copy"}),o&&e.jsx(h,{color:"violet.dark",fontStyle:"italic",lineHeight:"40px",children:"Copied!"})]}):e.jsx(i,{height:"40px",display:"flex",alignItems:"center",children:e.jsx(x1,{placement:"bottom",title:c,children:e.jsx(Z1,{color:t.warning.main,icon:P1})})})]})]})},U1=t=>a.createElement("svg",{width:41,height:40,viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},a.createElement("g",{clipPath:"url(#clip0_638_125479)"}
1,a.createElement("path",{d:"M2.33398 1.6665H39.0006V38.3332H2.33398V1.6665ZM24.6677 14.8995C24.5393 14.9692 24.4117 15.041 24.2955 15.1305C24.1914 15.2574 24.0913 15.3967 24.0528 15.5588C24.0102 15.8022 24.0091 16.0633 24.1166 16.2906C24.2405 16.504 24.4282 16.6874 24.6644 16.7691C24.9199 16.8454 25.2092 16.8461 25.449 16.7185C25.6089 16.6412 25.7618 16.5253 25.8311 16.3566C25.8432 16.3467 25.8678 16.3273 25.8802 16.3174C25.9671 16.0761 26.0067 15.8129 25.9444 15.5606C25.9136 15.426 25.8304 15.3131 25.7691 15.1917C25.6562 15.096 25.5425 14.9967 25.4035 14.9406C25.1733 14.8342 24.9104 14.8647 24.6677 14.8995ZM20.4598 17.3316C20.2721 17.4313 20.1155 17.5762 19.9663 17.725C19.8863 17.831 19.8112 17.9403 19.7466 18.0561C19.5941 18.3308 19.5134 18.6358 19.4214 18.9339C19.3565 18.762 19.3558 18.5772 19.3323 18.3975C19.2689 18.0242 19.2227 17.648 19.1757 17.2722C18.6903 17.2729 18.2044 17.2685 17.719 17.2744C17.7135 17.2854 17.7021 17.307 17.6966 17.318C17.6845 19.1037 17.6944 20.8901 17.6911 22.6758C17.6951 23.4296 17.6805 24.1835 17.705 24.937C18.2741 24.9381 18.8432 24.9385 19.4126 24.9381C19.4272 24.7841 19.4232 24.6294 19.4166 24.475C19.4155 23.7534 19.4159 23.0318 19.4174 22.3102C19.4195 22.1195 19.3983 21.9245 19.4533 21.7389C19.5329 21.9168 19.5728 22.1096 19.6572 22.2856C19.7617 22.5515 19.9267 22.7946 20.1459 22.9786C20.3476 23.1726 20.6145 23.2756 20.8785 23.353C21.1319 23.4058 21.393 23.4043 21.6504 23.3893C22.1956 23.3622 22.7174 23.0622 23.0224 22.6101C23.4217 22.0429 23.5644 21.3404 23.6084 20.6598C23.6502 19.7872 23.5988 18.8679 23.172 18.0851C22.9172 17.6282 22.4809 17.2531 21.9569 17.1585C21.4575 17.0632 20.9163 17.0925 20.4598 17.3316ZM28.1092 17.3232C28.0736 17.3367 28.0388 17.3507 28.004 17.3646C27.2934 17.6594 26.7364 18.2853 26.5145 19.0208C26.3851 19.3945 26.3642 19.7908 26.3488 20.1821C26.3349 20.9469 26.5391 21.7371 27.0187 22.3447C27.3784 22.7898 27.8796 23.1242 28.4351 23.2683C28.9723 23.4263 29.5447 23.4058 30.0958 23.3449C30.4284 23.2859 30.7507 23.1759 31.0422 23.0032C31.5826 22.6659 31.939 22.0928 32.1047 21.487C31.8385 21.3976 31.565 21.3319 31.2951 21.254
16C31.0729 21.1948 30.8533 21.1262 30.6307 21.0694C30.5688 21.2406 30.4907 21.4075 30.3796 21.5523C30.2318 21.7631 29.9777 21.8801 29.7262 21.9047C29.3386 21.949 28.9228 21.9149 28.5855 21.7026C28.2588 21.4749 28.0956 21.0734 28.0824 20.6848C29.4314 20.6903 30.7803 20.6895 32.1293 20.6851C32.1894 19.991 32.1931 19.2669 31.924 18.612C31.704 18.0378 31.2453 17.5589 30.677 17.3232C30.2586 17.1571 29.8043 17.094 29.3555 17.1112C28.932 17.1105 28.5056 17.171 28.1092 17.3232ZM12.8573 17.4695C12.5002 17.6539 12.1948 17.9487 12.0287 18.3179C11.8688 18.612 11.7837 18.9387 11.7346 19.268C11.97 19.2929 12.2025 19.3417 12.439 19.3629C12.7426 19.4058 13.0443 19.4649 13.3512 19.4803C13.4015 19.1338 13.5745 18.7726 13.9155 18.6318C14.0351 18.5937 14.1561 18.5519 14.2829 18.5522C14.5392 18.542 14.8194 18.568 15.0258 18.7345C15.2909 18.9772 15.3356 19.3589 15.3257 19.6984C14.9191 19.7245 14.511 19.7032 14.104 19.7102C13.5569 19.7025 12.9816 19.7061 12.4782 19.9485C12.0067 20.1637 11.7071 20.6441 11.6011 21.1383C11.5403 21.5336 11.5388 21.9498 11.673 22.3311C11.8109 22.7586 12.1845 23.082 12.6021 23.225C13.07 23.3915 13.5877 23.3919 14.0626 23.2529C14.4747 23.1128 14.8267 22.8107 15.0324 22.4272C15.1402 22.224 15.2491 22.0147 15.2751 21.7829C15.3023 21.7804 15.3294 21.7782 15.3569 21.7763C15.4211 22.2526 15.4999 22.7271 15.5677 23.2027C15.5758 23.2089 15.5923 23.2206 15.6007 23.2269C16.0745 23.2309 16.5497 23.2364 17.0238 23.2214C17.0289 21.9516 17.0296 20.6815 17.0234 19.4121C17.0245 18.8203 16.8489 18.2105 16.4422 17.7683C15.9956 17.3199 15.3426 17.1582 14.7273 17.1398C14.093 17.1101 13.4249 17.1578 12.8573 17.4695ZM5.85802 17.2682C5.85582 17.7555 5.85802 18.2424 5.85728 18.7297C6.72482 18.729 7.59198 18.7297 8.45952 18.7293C8.65972 18.7312 8.86065 18.7198 9.06012 18.7425C9.03848 18.7524 8.99448 18.7722 8.97285 18.7818C8.73708 19.0278 8.47822 19.2515 8.22632 19.4803C8.21385 19.4927 8.18928 19.5177 8.17718 19.5301C7.98248 19.7138 7.78045 19.8902 7.59052 20.0794C7.12265 20.5058 6.65662 20.9345 6.19242 21.3657C6.09085 21.4599 5.98892 21.5541 5.88478 21.6462C5.84482 21.6847 5.80522 21.7239 5.76525 21.7635C5.75352 22.2479 5.76085 22.7333 5.76085 23.2181C6.42672 23.2434 7.09368 23.2232 7.75992 23.2298C8.90538 23.2313 10.0512 23.2261 11.1971 23.2324C11.2301 22.9992 11.2092 22.7638 11.2114 22.5295C11.2073 22.2768 11.2253 22.0235 11.1967 21.7716C10.1011 21.7683 9.00585 21.7723 7.91025 21.7697C7.91722 21.7298 7.92492 21.6905 7.93225 21.6513C8.07562 21.5758 8.17645 21.446 8.29928 21.3444C8.65312 21.039 8.98165 20.7046 9.34025 20.4046C9.47188 20.2554 9.62735 20.1311 9.77475 19.9984C10.2247 19.5712 10.6991 19.1679 11.1432 18.7356C11.1692 18.2483 11.1505 17.7573 11.1512 17.2685C9.38682 17.2693 7.62242 17.2696 5.85802 17.2682ZM24.1268 17.2682C24.1213 19.257 24.1239 21.2458 24.1254 23.2346C24.7006 23.2166 25.2778 23.2558 25.8516 23.2148C25.8494 21.3114 25.8498 19.4084 25.8512 17.505C25.8509 17.4251 25.8384 17.3455 25.826 17.2671C25.2595 17.2715 24.6933 17.2682 24.1268 17.2682ZM32.672 17.2678C32.6639 19.2511 32.6749 21.2344 32.6665 23.2177C32.9319 23.2426 33.1989 23.2239 33.4647 23.2298C33.7742 23.2239 34.0844 23.2423 34.3935 23.2199C34.3876 22.1705 34.3917 21.1215 34.3909 20.0721C34.3887 19.7941 34.4884 19.529 34.6322 19.2951C34.7946 19.1433 34.9996 19.0564 35.213 19.0032C35.5793 18.9574 35.9492 18.9981 36.3163 18.9662C36.3031 18.4012 36.3134 17.8354 36.3111 17.27C35.9141 17.2491 35.4916 17.2843 35.1543 17.5149C34.9479 17.6748 34.7843 17.8853 34.6637 18.1159C34.5354 18.3744 34.4811 18.66 34.3799 18.9292C34.2794 18.3788 34.2241 17.8218 34.1361 17.2696C33.6481 17.2678 33.16 17.2704 32.672 17.2678Z",fill:"#FF5102"}),a.createElement("path",{d:"M28.4581 18.8409C28.721 18.5813 29.1118 18.5161 29.4675 18.5252C29.7704 18.5436 30.0963 18.6371 30.2947 18.8816C30.4586 19.0664 30.5308 19.3095 30.5635 19.5497C29.7476 19.5581 28.9314 19.5523 28.1152 19.553C28.1273 19.2813 28.2678 19.0294 28.4581 18.8409Z",fill:"#FF5102"}),a.createElement("path",{d:"M19.9953 18.827C20.3359 18.6081 20.7671 18.6382 21.1481 18.7064C21.2731 18.7775 21.4128 18.8296 21.5129 18.937C21.6229 19.0382 21.6922 19.1721 21.7652 19.3008C21.9287 19.7213 21.9533 20.1826 21.9008 20.6274C21.8682 20.8998 21.7886 21.17 21.6379 21.4014C21.5683 21.4942 21.503 21.5976 21.3945 21.6493C21.3893 21.6584 21.3794 21.6771 21.3743 21.6867C21.2665 21.7314 21.1631 21.7864 21.0535 21.8264C20.9024 21.8612 20.7455 21.8557 20.5915 21.8583C20.3513 21.8619 20.1225 21.7593 19.9289 21.6243C19.7393 21.4634 19.615 21.2404 19.5182 21.0146C19.4016 20.6079 19.3943 20.1778 19.4486 19.7602C19.5047 19.3965 19.6763 19.0298 19.9953 18.827Z",fill:"#FF5102"}),a.createElement("path",{d:"M13.672 20.8494C14.2194 20.8212 14.7701 20.8377 15.3183 20.8388C15.3572 21.1035 15.2629 21.3778 15.0913 21.5798C14.8581 21.8314 14.5164 21.9626 14.1765 21.9685C13.9378 21.9707 13.6782 21.9777 13.467 21.8493C13.1619 21.6466 13.1557 21.1314 13.463 20.9297C13.5224 20.8813
113.5986 20.8637 13.672 20.8494Z",fill:"#FF5102"}),a.createElement("path",{d:"M24.6681 14.8997C24.9109 14.8648 25.1738 14.8344 25.404 14.9407C25.543 14.9968 25.6567 15.0962 25.7696 15.1919C25.8308 15.3133 25.9141 15.4262 25.9449 15.5608C26.0072 15.813 25.9676 16.0763 25.8807 16.3176C25.8682 16.3275 25.8437 16.3469 25.8316 16.3568C25.7623 16.5255 25.6094 16.6413 25.4495 16.7187C25.2097 16.8463 24.9204 16.8456 24.6648 16.7693C24.4287 16.6875 24.241 16.5042 24.117 16.2908C24.0096 16.0635 24.0107 15.8024 24.0532 15.5589C24.0917 15.3969 24.1918 15.2575 24.296 15.1307C24.4122 15.0412 24.5398 14.9693 24.6681 14.8997Z",fill:"#FEFDF9"}),a.createElement("path",{d:"M20.4599 17.3316C20.9164 17.0926 21.4576 17.0632 21.957 17.1586C22.4809 17.2532 22.9173 17.6283 23.1721 18.0851C23.5989 18.868 23.6502 19.7872 23.6084 20.6599C23.5644 21.3404 23.4218 22.0429 23.0225 22.6102C22.7174 23.0623 22.1957 23.3622 21.6504 23.3893C21.393 23.4044 21.132 23.4058 20.8786 23.353C20.6146 23.2757 20.3477 23.1726 20.146 22.9787C19.9267 22.7946 19.7617 22.5515 19.6572 22.2857C19.5729 22.1097 19.5329 21.9168 19.4534 21.739C19.3984 21.9245 19.4196 22.1196 19.4174 22.3102C19.416 23.0318 19.4156 23.7534 19.4167 24.475C19.4233 24.6294 19.4273 24.7841 19.4127 24.9381C18.8432 24.9385 18.2742 24.9381 17.7051 24.937C17.6805 24.1835 17.6952 23.4297 17.6912 22.6758C17.6945 20.8901 17.6846 19.1037 17.6967 17.3181C17.7022 17.3071 17.7135 17.2854 17.719 17.2744C18.2045 17.2686 18.6903 17.273 19.1758 17.2722C19.2227 17.6481 19.2689 18.0243 19.3324 18.3975C19.3558 18.5772 19.3566 18.762 19.4215 18.934C19.5135 18.6359 19.5942 18.3308 19.7467 18.0562C19.8112 17.9403 19.8864 17.831 19.9663 17.7251C20.1156 17.5762 20.2721 17.4314 20.4599 17.3316ZM19.9953 18.8269C19.6763 19.0297 19.5047 19.3963 19.4486 19.7601C19.3943 20.1777 19.4017 20.6078 19.5183 21.0144C19.6151 21.2403 19.7394 21.4632 19.9289 21.6242C20.1225 21.7591 20.3513 21.8618 20.5915 21.8581C20.7455 21.8556 20.9024 21.8611 21.0535 21.8262C21.1631 21.7863 21.2665 21.7313 21.3743 21.6865C21.3795 21.677 21.3894 21.6583 21.3945 21.6491C21.503 21.5974 21.5683 21.494 21.638 21.4013C21.7887 21.1699 21.8682 20.8997 21.9009 20.6272C21.9533 20.1825 21.9287 19.7212 21.7652 19.3006C21.6922 19.1719 21.6229 19.0381 21.5129 18.9369C21.4128 18.8295 21.2731 18.7774 21.1481 18.7063C20.7671 18.6381 20.3359 18.608 19.9953 18.8269Z",fill:"#FEFDF9"}),a.createElement("path",{d:"M28.1097 17.3236C28.506 17.1714 28.9325 17.1109 29.356 17.1116C29.8048 17.0944 30.2591 17.1575 30.6774 17.3236C31.2458 17.5593 31.7045 18.0382 31.9245 18.6124C32.1936 19.2673 32.1899 19.9914 32.1298 20.6855C30.7808 20.6899 29.4319 20.6907 28.0829 20.6852C28.0961 21.0738 28.2593 21.4753 28.586 21.703C28.9233 21.9153 29.3391 21.9494 29.7267 21.9051C29.9782 21.8805 30.2323 21.7635 30.3801 21.5527C30.4912 21.4079 30.5693 21.241 30.6312 21.0698C30.8538 21.1266 31.0734 21.1952 31.2956 21.255C31.5655 21.3323 31.839 21.398 32.1052 21.4874C31.9395 22.0932 31.5831 22.6663 31.0426 23.0036C30.7511 23.1763 30.4288 23.2863 30.0963 23.3453C29.5452 23.4062 28.9728 23.4267 28.4356 23.2687C27.8801 23.1246 27.3789 22.7902 27.0192 22.3451C26.5396 21.7375 26.3354 20.9473 26.3493 20.1825C26.3647 19.7912 26.3856 19.3949 26.515 19.0212C26.7369 18.2857 27.2938 17.6598 28.0044 17.365C28.0393 17.3511 28.0741 17.3371 28.1097 17.3236ZM28.4587 18.8416C28.2684 19.03 28.128 19.2819 28.1159 19.5536C28.9321 19.5529 29.7483 19.5588 30.5641 19.5503C30.5315 19.3102 30.4593 19.0671 30.2954 18.8823C30.097 18.6377 29.771 18.5442 29.4682 18.5259C29.1125 18.5167 28.7216 18.582 28.4587 18.8416Z",fill:"#FEFDF9"}),a.createElement("path",{d:"M12.8574 17.4695C13.425 17.1578 14.093 17.1102 14.7274 17.1399C15.3426 17.1582 15.9957 17.3199 16.4423 17.7683C16.8489 18.2105 17.0245 18.8203 17.0234 19.4121C17.0297 20.6815 17.0289 21.9516 17.0238 23.2214C16.5497 23.2364 16.0745 23.2309 15.6008 23.2269C15.5923 23.2207 15.5758 23.2089 15.5678 23.2027C15.4999 22.7271 15.4211 22.2527 15.3569 21.7764C15.3294 21.7782 15.3023 21.7804 15.2752 21.783C15.2491 22.0147 15.1402 22.2241 15.0324 22.4272C14.8267 22.8107 14.4747 23.1129 14.0626 23.2529C13.5878 23.3919 13.07 23.3915 12.6022 23.2251C12.1845 23.0821 11.8109 22.7587 11.673 22.3311C11.5388 21.9498 11.5403 21.5336 11.6012 21.1384C11.7071 20.6441 12.0067 20.1638 12.4782 19.9485C12.9817 19.7062 13.557 19.7025 14.104 19.7102C14.511 19.7032 14.9191 19.7245 15.3258 19.6985C15.3357 19.3589 15.2909 18.9772 15.0258 18.7345C14.8194 18.568 14.5393 18.542 14.283 18.5523C14.1561 18.5519 14.0351 18.5937 13.9156 18.6318C13.5746 18.7726 13.4015 19.1338 13.3513 19.4803C13.0444 19.4649 12.7426 19.4059 12.439 19.363C12.2025 19.3417 11.97 19.2929 11.7346 19.268C11.7838 18.9387 11.8688 18.612 12.0287 18.318C12.1948 17.9487 12.5002 17.6539 12.85
174 17.4695ZM13.6721 20.8494C13.5988 20.8637 13.5225 20.8813 13.4631 20.9297C13.1558 21.1314 13.1621 21.6466 13.4671 21.8493C13.6783 21.9777 13.9379 21.9707 14.1766 21.9685C14.5165 21.9626 14.8583 21.8314 15.0915 21.5798C15.2631 21.3778 15.3573 21.1035 15.3184 20.8388C14.7703 20.8377 14.2195 20.8212 13.6721 20.8494Z",fill:"#FEFDF9"}),a.createElement("path",{d:"M5.85822 17.2686C7.62262 17.27 9.38702 17.2697 11.1514 17.2689C11.1507 17.7577 11.1694 18.2487 11.1434 18.736C10.6993 19.1683 10.2249 19.5716 9.77495 19.9988C9.62755 20.1315 9.47209 20.2558 9.34045 20.405C8.98185 20.705 8.65332 21.0394 8.29949 21.3448C8.17665 21.4464 8.07582 21.5762 7.93245 21.6517C7.92512 21.6909 7.91742 21.7302 7.91045 21.7701C9.00605 21.7727 10.1013 21.7687 11.1969 21.772C11.2255 22.0239 11.2075 22.2772 11.2116 22.5299C11.2094 22.7642 11.2303 22.9996 11.1973 23.2328C10.0514 23.2265 8.90559 23.2317 7.76012 23.2302C7.09389 23.2236 6.42692 23.2438 5.76105 23.2185C5.76105 22.7337 5.75372 22.2483 5.76545 21.7639C5.80542 21.7243 5.84502 21.6851 5.88499 21.6466C5.98912 21.5545 6.09105 21.4603 6.19262 21.3661C6.65682 20.9349 7.12285 20.5062 7.59072 20.0798C7.78065 19.8906 7.98269 19.7142 8.17739 19.5305C8.18949 19.5181 8.21405 19.4931 8.22652 19.4807C8.47842 19.2519 8.73729 19.0282 8.97305 18.7822C8.99469 18.7726 9.03869 18.7528 9.06032 18.7429C8.86085 18.7202 8.65992 18.7316 8.45972 18.7297C7.59219 18.7301 6.72502 18.7294 5.85749 18.7301C5.85822 18.2428 5.85602 17.7559 5.85822 17.2686Z",fill:"#FEFDF9"}),a.createElement("path",{d:"M24.1274 17.2682C24.6939 17.2682 25.26 17.2715 25.8265 17.2671C25.839 17.3456 25.8515 17.4251 25.8518 17.5051C25.8504 19.4084 25.85 21.3114 25.8522 23.2148C25.2784 23.2559 24.7012 23.2166 24.1259 23.2346C24.1245 21.2458 24.1219 19.257 24.1274 17.2682Z",fill:"#FEFDF9"}),a.createElement("path",{d:"M32.6725 17.2681C33.1605 17.2707 33.6486 17.2681 34.1366 17.2699C34.2246 17.8221 34.28 18.3791 34.3804 18.9295C34.4816 18.6603 34.5359 18.3747 34.6642 18.1162C34.7849 17.8856 34.9484 17.6751 35.1548 17.5152C35.4922 17.2846 35.9146 17.2494 36.3117 17.2703C36.3139 17.8357 36.3036 18.4015 36.3168 18.9665C35.9498 18.9984 35.5798 18.9577 35.2135 19.0035C35.0001 19.0567 34.7951 19.1436 34.6327 19.2954C34.489 19.5293 34.3892 19.7944 34.3914 20.0724C34.3922 21.1218 34.3881 22.1708 34.394 23.2202C34.0849 23.2426 33.7747 23.2242 33.4652 23.2301C33.1994 23.2242 32.9325 23.2429 32.667 23.218C32.6754 21.2347 32.6644 19.2514 32.6725 17.2681Z",fill:"#FEFDF9"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_638_125479"},a.createElement("rect",{x:2.33398,y:1.6665,width:36.6667,height:36.6667,rx:4,fill:"white"})))),ee=p(h1,{target:"eal2opv0"})({name:"xep7y6",styles:"caret-color:transparent"}),te=()=>{const{palette:t}=w1(),{companyName:n}=t1(),{userMe:s}=R(),{copy:d,isCopied:o}=M1(),{checkFeature:r}=W(),[l,c]=r(X.zappierAndWebhook);return e.jsxs(J,{children:[e.jsx($,{mb:"8px",children:e.jsx(U1,{})}),e.jsx(e1,{children:"Zapier API key"}),e.jsxs(h,{mt:"4px",fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",children:["Use your Zapier API key to integrate ",n," with thousands of other tools."]}),e.jsx(B,{mx:"-16px",my:"16px"}),e.jsxs(i,{display:"flex",gap:"16px",alignItems:"flex-end",children:[e.jsx(i,{width:"300px",children:e.jsx(ee,{readOnly:!0,label:"Zapier API key",value:l?s==null?void 0:s.zapierApiToken:"",name:"zapier",disabled:!l})}),l?e.jsxs(e.Fragment,{children:[e.jsx(A,{leftIcon:e.jsx(L1,{width:"20px",height:"20px"}),onClick:()=>d(s==null?void 0:s.zapierApiToken),children:"Copy"}),o&&e.jsx(h,{color:"violet.dark",fontStyle:"italic",lineHeight:"40px",children:"Copied!"})]}):e.jsx(i,{height:"40px",display:"flex",alignItems:"center",children:e.jsx(x1,{placement:"bottom",title:c,children:e.jsx(Z1,{color:t.warning.main,icon:P1})})})]})]})},oe="/DpemYnA5.svg",ne=t=>a.createElement("svg",{width:28,height:29,viewBox:"0 0 28 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},a.createElement("g",{clipPath:"url(#clip0_5337_16040)"},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.044 7.61516C17.6955 7.0114 18.704 7.0772 18.778 7.0805L22.9978 7.07885L23.0899 0.990248L22.4532 0.833958C22.0452 0.733625 20.7966 0.5 18.0443 0.5C13.1435 0.5 9.84992 3.93009 9.84992 9.03325V10.4036H4.91455V16.9841H9.84992V28.5H16.4304V16.9841H21.6323L22.5371 10.4036H16.4304V9.39518C16.4304 8.59401 16.6377 7.99354 17.044 7.61516Z",fill:"#3874EB"})),a.createElement("defs",null,a.createElement("clipPath",{id:"clip0_5337_16040"},a.createElement("rect",{width:28,height:28,fill:"white",transform:"translate(0 0.5)"})))),se=t=>a.createElement("svg",{width:28,height:29,viewBox:"0 0 28 29",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},a.createElement("path",{d:"M3.73199 0.519775C1.6757 0.519775 0.00150557 2.19365 0 4.25155C0 6.30946 1.6742 7.98365 3.73199 7.98365C5.78903 7.98365 7.46237 6.30946 7.46237 4.25155C7.46237 2.19386 5.78893 0.519775 3.73199 0.519775Z",fill:"#0072B1"}),a.createElement("path",{d:"M6.53288 9.48315H0.930642C0.664155 9.48315 0.447998 9.6992 0.447998 9.96591V27.9978C0.447998 28.2644 0.664155 28.4805 0.930642 28.4805H6.53277C6.79936 28.4805 7.01552 28.2643 7.01552 27.9978V9.96591C7.01563 9.6991 6.79947 9.48315 6.53288 9.48315Z",fill:"#0072B1"}),a.createElement("path",{d:"M20.8548 9.27075C18.8047 9.27075 17.003 9.89503 15.9036 10.913V9.96579C15.9036 9.69909 15.6875 9.48304 15.4209 9.48304H10.047C9.78037 9.48304 9.56421 9.69909 9.56421 9.96579V27.9977C9.56421 28.2643 9.78037 28.4804 10.
1047 28.4804H15.6438C15.9104 28.4804 16.1266 28.2642 16.1266 27.9977V19.0764C16.1266 16.5168 16.5974 14.9302 18.947 14.9302C21.262 14.933 21.4352 16.6343 21.4352 19.2294V27.9977C21.4352 28.2643 21.6514 28.4804 21.9181 28.4804H27.5175C27.784 28.4804 28.0002 28.2642 28.0002 27.9977V18.1064C28.0001 13.9927 27.1879 9.27075 20.8548 9.27075Z",fill:"#0072B1"})),ae=t=>a.createElement("svg",{width:41,height:30,viewBox:"0 0 41 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.2923 14.064C13.7061 14.064 16.4836 11.469 16.4836 8.27897C16.4836 5.0891 13.7061 2.49414 10.2923 2.49414C7.15617 2.49414 4.51629 4.68445 4.14649 7.59142C4.14032 7.68902 4.13051 7.787 4.11744 7.88535C4.10614 8.03793 4.10108 8.1633 4.10108 8.27897C4.10108 11.469 6.87847 14.064 10.2923 14.064ZM30.3101 14.064C33.7237 14.064 36.5013 11.469 36.5013 8.27897C36.5013 8.15874 36.4958 8.03127 36.4848 7.8787C36.4717 7.78338 36.4623 7.68845 36.4563 7.5937C36.0876 4.68559 33.4473 2.49414 30.3101 2.49414C26.8963 2.49414 24.1191 5.0891 24.1191 8.27897C24.1191 11.469 26.8963 14.064 30.3101 14.064ZM39.2675 3.63733C39.7647 3.63733 40.2174 3.89283 40.4492 4.30357C40.6152 4.59865 40.6485 4.93596 40.543 5.25424C40.4372 5.57233 40.2053 5.83297 39.8898 5.98821C39.3876 6.23515 39.0988 6.75015 39.1153 7.36807C39.1517 7.67836 39.1703 7.98466 39.1703 8.27897C39.1703 12.8442 35.1957 16.5581 30.3101 16.5581C25.4246 16.5581 21.4498 12.8442 21.4498 8.27897C21.4498 7.83589 21.4899 7.38424 21.5691 6.93469C21.3078 6.36034 20.8193 5.99506 20.3012 5.99506C19.7925 5.99506 19.2941 6.3687 19.0333 6.93545C19.1126 7.38481 19.1527 7.83608 19.1527 8.27897C19.1527 12.8442 15.1778 16.5581 10.2923 16.5581C5.40659 16.5581 1.43205 12.8442 1.43205 8.27897C1.43205 7.98542 1.45063 7.67856 1.48719 7.36655C1.5031 6.74939 1.21438 6.23477 0.712755 5.98821C0.0614569 5.66784 -0.189283 4.91218 0.153459 4.30377C0.384729 3.89283 0.837754 3.63733 1.33515 3.63733C1.55007 3.63733 1.76484 3.68718 1.95598 3.78116C2.18285 3.89283 2.39749 4.02562 2.59812 4.17801C4.16648 1.62261 7.1237 0 10.2923 0C13.5069 0 16.4885 1.6599 18.0422 4.27161C18.7111 3.80265 19.4956 3.54924 20.3012 3.54924C21.1071 3.54924 21.8915 3.80265 22.5602 4.27161C24.114 1.66009 27.0952 0 30.3101 0C33.4787 0 36.4359 1.62281 38.0043 4.17801C38.2048 4.02562 38.4196 3.89283 38.6466 3.78116C38.8378 3.68718 39.0526 3.63733 39.2675 3.63733ZM38.4742 22.0162C39.0927 22.6282 39.4144 23.3968 39.4621 24.3701C39.5019 25.1838 39.0541 26.2184 38.3475 26.9446C37.4855 27.763 36.341 28.4667 35.
10294 28.9874C33.4237 29.6561 31.702 29.9961 29.9163 29.9961C26.1681 29.9961 22.6 28.4211 20.3014 25.7675C18.0031 28.4211 14.435 29.9961 10.6865 29.9961C8.90075 29.9961 7.17851 29.656 5.56734 28.985C4.26185 28.4665 3.11904 27.7643 2.26663 26.9558C1.55047 26.2201 1.10123 25.1838 1.14099 24.3701C1.1887 23.397 1.50974 22.629 2.12269 22.0221C2.85471 21.3283 3.81722 20.9213 4.83683 20.8724C5.52372 20.8395 6.19792 20.9763 6.78167 21.2628C6.87774 21.31 6.95133 21.3942 6.98306 21.4945C7.01449 21.5934 7.00424 21.6985 6.95415 21.79C6.86028 21.9622 6.63341 22.0411 6.44636 21.9663C6.17063 21.856 5.86982 21.8088 5.55583 21.8265C4.50635 21.8855 3.65991 22.6566 3.66881 23.5452C3.67773 24.4065 4.51341 25.0755 5.549 25.0144C5.86966 24.9964 6.18625 24.9091 6.46493 24.7618C6.47533 24.7563 6.5006 24.7449 6.51152 24.7408L6.59424 24.7086C7.59712 24.2055 8.80215 23.1647 10.0523 22.0512C11.8439 20.4556 13.5217 19.3273 14.9043 18.7883C14.9584 18.7667 15.0153 18.7454 15.0725 18.7246L15.1663 18.6913C15.2031 18.6789 15.2355 18.6681 15.2668 18.6582C15.7469 18.504 16.247 18.4136 16.7519 18.3892C16.8384 18.3849 16.9249 18.3831 17.0163 18.3831H17.0586L17.071 18.3826C17.1032 18.3816 17.1262 18.381 17.1494 18.381C18.4319 18.381 19.6213 18.9856 20.3014 19.9525C20.9818 18.9856 22.1714 18.381 23.4538 18.381C23.4799 18.381 23.5058 18.3817 23.5316 18.3827L23.5571 18.3833L23.5838 18.3831C23.6779 18.3831 23.7649 18.3849 23.8512 18.3892C24.3562 18.4136 24.8567 18.5042 25.3384 18.6588C25.3675 18.6681 25.4002 18.679 25.4333 18.6902L25.5283 18.7238C25.5876 18.7451 25.6445 18.7669 25.701 18.7892C27.0813 19.327 28.7587 20.4552 30.5508 22.0512C31.8007 23.1645 33.0055 24.2054 34.0085 24.7086L34.0953 24.7422C34.1057 24.7462 34.1307 24.7576 34.1404 24.7627C34.4168 24.9091 34.7334 24.9964 35.0537 25.0144C36.091 25.0735 36.9254 24.4065 36.9341 23.5452C36.9431 22.6566 36.0967 21.8855 35.0475 21.8265C34.7336 21.8088 34.4326 21.856 34.1562 21.9663C33.9684 22.0411 33.7435 21.9623 33.6492 21.7906C33.5987 21.6985 33.5885 21.5934 33.6199 21.4945C33.6516 21.3942 33.7253 21.31 33.8217 21.2628C34.4048 20.9764 35.0811 20.8399 35.7656 20.8724C36.7859 20.9213 37.7476 21.3277 38.4742 22.0162ZM12.616 4.03141C10.7401 3.09996 8.38338 3.38667 6.82217 4.72562C6.14337 5.30759 5.63914 6.06078 5.3809 6.8874C5.24683 7.31679 5.1792 7.76368 5.1792 8.21114C5.1792 8.61066 5.52425 8.97898 5.98061 8.80909C6.27716 8.69876 6.33527 8.42939 6.39188 8.167L6.39189 8.16699C6.4083 8.09092 6.42458 8.01545 6.44651 7.9446C6.56058 7.57553 6.73158 7.22224 6.94977 6.89691C7.38555 6.24722 8.00869 5.71129 8.73579 5.35667C9.60937 4.93033 10.6298 4.76976 11.6038 4.9153C11.6983 4.92944 11.7986 4.95504 11.9009 4.98117C12.2253 5.064 12.5702 5.15208 12.8198 4.89666C13.0852 4.62498 12.9794 4.17429 12.616 4.03141ZM26.8052 4.72562C28.3666 3.38667 30.7232 3.09996 32.5992 4.03141C32.9625 4.17429 33.0683 4.62498 32.8027 4.89666C32.5532 5.15209 32.2083 5.06399 31.8839 4.98116C31.7817 4.95504 31.6814 4.92944 31.5869 4.9153C30.6128 4.76976 29.5923 4.93033 28.7187 5.35667C27.9916 5.71129 27.3687 6.24722 26.9331 6.89691C26.7146 7.22224 26.5436 7.57553 26.4295 7.9446C26.4076 8.01539 26.3914 8.0908 26.375 8.1668C26.3185 8.42926 26.2604 8.69874 25.9637 8.80909C25.5073 8.97898 25.1622 8.61066 25.1622 8.21114C25.1622 7.76368 25.23 7.31679 25.3641 6.8874C25.6222 6.06078 26.1264 5.30759 26.8052 4.72562Z",fill:"#002F53"})),re=p(i,{target:"e1xrbqrg1"})("max-width:97px;display:flex;padding:8px 16px;align-items:center;gap:10px;font-size:14px;font-weight:400;line-height:20px;border-radius:20px;border:1px solid ",({theme:t})=>t.palette.success[550],";background:",({theme:t})=>t.palette.success[50],";color:",({theme:t})=>t.palette.success[550],";"),ie=p(t2,{target:"e1xrbqrg0"})("width:16px;height:16px;& path{stroke:",({theme:t})=>t.palette.success[550],";}"),le=()=>e.jsxs(re,{children:[e.jsx(ie,{}),"Connected"]}),ce=p(i,{target:"ege0dlh2"})("width:320px;min-height:240px;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:space-between;border-radius:12px;border:1px dashed ",({theme:t})=>t.palette.greyBlue[40],";background:",({theme:t})=>t.palette.bg.white,";padding:24px;gap:24px;"),de=p(i,{target:"ege0dlh1"})("display:flex;padding:16px;justify-content:center;align-items:center;gap:10px;border-radius:12px;border:1px solid ",({theme:t})=>t.palette.blue.light,";background:",({theme:t})=>t.palette.bg.white,";box-shadow:0px -2px 2px 0px rgba(0, 0, 0, 0.05) inset,0px 1px 5px 0px rgba(0, 0, 0, 0.06);svg{width:28px;height:28px;}"),pe=p(h,{target:"ege0dlh0"})("color:",({theme:t})=>t.palette.greyBlue[60],";text-align:center;font-size:12px;font-weight:400;line-height:16px;max-width:270px;"),K=({icon:t,description:n,buttonForConnection:s,isConnected:d})=>e.jsxs(ce,{children:[e.jsx(de,{children:t}),e.jsx(pe,{children:n}),d?e.jsx(le,{}):s]}),f1="/campaign/new/linkedin",Ce=p(i,{target:"e1gl6p0g10"})({name:"ejlsv5",styles:"min-height:calc(100% - 40px);width:calc(100% - 40px);
1display:flex;padding:20px"}),he=p(i,{target:"e1gl6p0g9"})("width:calc(100% - 40px);display:flex;flex-direction:column;align-items:center;padding:24px;background-color:",({theme:t})=>t.palette.bg.white,";border-radius:12px;"),xe=p(i,{target:"e1gl6p0g8"})("position:relative;z-index:2;&::before{content:'';position:absolute;top:0;left:0;width:286px;height:286px;transform:translate(-27%, -27%);background-image:url(",k2,");background-size:cover;background-position:center;background-repeat:no-repeat;}"),ge=p(i,{target:"e1gl6p0g7"})("width:128px;height:128px;display:inline-flex;justify-content:center;align-items:center;gap:10px;border-radius:12px;border:1px solid ",({theme:t})=>t.palette.blue.light,";background:",({theme:t})=>t.palette.bg.white,";position:relative;z-index:2;box-shadow:0px -2px 2px 0px rgba(0, 0, 0, 0.05) inset,0px 1px 5px 0px rgba(0, 0, 0, 0.06);"),ue=p(ae,{target:"e1gl6p0g6"})({name:"1fh285c",styles:"width:72px;height:72px"}),me=p(i,{target:"e1gl6p0g5"})("display:flex;align-items:center;gap:24px;margin-top:92px;position:relative;&::after{content:'';position:absolute;z-index:10;top:-93px;left:50%;transform:translateX(-50%);width:1036px;height:93px;background-image:url(",oe,");background-size:contain;background-position:center;background-repeat:no-repeat;@media (max-width: 1136px){left:53%;}}"),q=p(({children:t,size:n,...s})=>e.jsx(A,{...s,size:{width:(n==null?void 0:n.width)||"100%"},wrapperStyle:{width:"100%"},children:t}),{target:"e1gl6p0g4"})({name:"1jexqbw",styles:"position:relative;transition:0.2s;&:hover{opacity:0.8;}"}),fe=p(q,{target:"e1gl6p0g3"})({name:"15jq3xd",styles:"background-color:#0a66c2;color:#ffffff;&:hover{background-color:#0a66c2;}"}),be=p(q,{target:"e1gl6p0g2"})({name:"1nea269",styles:"background-color:#2d9c41;border-color:#2d9c41;color:#ffffff;&:hover{background-color:#2d9c41;border-color:#2d9c41;}"}),we=p(q,{target:"e1gl6p0g1"})({name:"evc1us",styles:"background-color:#000000;border-color:#000000;color:#ffffff;&:hover{background-color:#000000;border-color:#000000;}"}),ye=p(q,{target:"e1gl6p0g0"})({name:"1ob3ykv",styles:"background-color:#1877f2;border-color:#1877f2;color:#ffffff;&:hover{background-color:#1877f2;border-color:#1877f2;}"}),_e=()=>{const t=c1(),n=R1(),{companyName:s}=t1(),{whitelabel:{isAlfredDomain:d}}=v1(),{state:o}=z1(),{userMe:r}=R(),{userEmail:l,isLoading:c}=E1({});o2((o==null?void 0:o.code)||"",{enabled:!!(o!=null&&o.code)});const{data:j}=I1({}),{data:u}=T1({}),{completeUserWalkthrough:b}=L2({onSuccess:()=>{n(f1)}}),S=A1(r),x=!!(l&&l.gmailEnabled||l!=null&&l.outlookEnabled),k=!!u,L=!!(j&&j.facebookData),F=L||k||x||S,m=P=>{t(p1({type:a2.INTEGRATIONS,size:"auto",params:{integrationType:P}}))},w=()=>m("linkedIn"),H=()=>m("email"),C=()=>m("twitter"),I=()=>m("facebook");return r!=null&&r.isWalkthroughCompleted||!d?e.jsx(N1,{to:f1}):e.jsx(Ce,{children:e.jsxs(he,{children:[e.jsxs(h,{mt:"60px",fontWeight:"600",fontSize:"32px",lineHeight:"40px",mb:"16px",children:[s," Integrations"]}),e.jsx(h,{color:"greyBlue.80",mb:"24px",children:"Automate your workflows by connecting with your favorite outreach and sales channels."}),e.jsx(xe,{mt:"60px",children:e.jsx(ge,{children:e.jsx(ue,{})})}),e.jsxs(me,{children:[e.jsx(K,{icon:e.jsx(se,{}),description:`Automate your LinkedIn outreach with your ${s} account.`,buttonForConnection:e.jsx(fe,{"data-testid":"LinkedIn",onClick:w,disabled:S,children:"Connect LinkedIn"}),isConnected:S}),e.jsx(K,{icon:e.jsx(n2,{}),description:`${s} lets you seamlessly connect your Email account allowing you to automate email and multic
1hannel sequences effortlessly.`,buttonForConnection:e.jsx(be,{"data-testid":"Email",onClick:H,disabled:x,processing:c,children:"Connect Email"}),isConnected:x}),e.jsx(K,{icon:e.jsx(s2,{}),description:`Streamline your Twitter outreach by automating it with your ${s} account.`,buttonForConnection:e.jsx(we,{"data-testid":"X (Twitter)",onClick:C,disabled:k,children:"Connect X (Twitter)"}),isConnected:k}),e.jsx(K,{icon:e.jsx(ne,{}),description:`Automate your Facebook and Instagram outreach with your ${s} account.`,buttonForConnection:e.jsx(ye,{"data-testid":"Facebook / Instagram",onClick:I,disabled:L,children:"Connect Facebook / Instagram"}),isConnected:L})]}),e.jsx(i,{display:"flex",flexDirection:"column",alignItems:"center",width:"max-content",gap:"8px",mt:"24px",children:e.jsx(q,{variant:F?"secondary":"transparent",size:{width:"max-content"},onClick:()=>b(),children:F?"Continue":e.jsx(h,{color:"greyBlue.80",fontWeight:"600",children:"Skip connection for now"})})})]})})},je=t=>a.createElement("svg",{width:21,height:20,viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},a.createElement("path",{d:"M16.9146 3.75259C15.2442 2.08225 12.5361 2.08225 10.8657 3.75259L10.2609 4.35747C9.67401 4.94432 9.70965 5.6209 10.2609 6.17212L14.495 10.4063C15.0819 10.9931 15.7585 10.9575 16.3097 10.4063L16.9146 9.80141C18.5849 8.13107 18.5849 5.42292 16.9146 3.75259Z",fill:"transparent"}),a.createElement("path",{d:"M4.42007 16.2471C2.74973 14.5768 2.74973 11.8686 4.42007 10.1983L5.02495 9.59338C5.6118 9.00653 6.28838 9.04217 6.8396 9.59338L11.0738 13.8276C11.6606 14.4144 11.625 15.091 11.0738 15.6422L10.4689 16.2471C8.79855 17.9174 6.0904 17.9174 4.42007 16.2471Z",fill:"transparent"}),a.createElement("path",{d:"M19.4249 2.09077C19.6592 1.85645 19.6592 1.47655 19.4249 1.24224C19.1906 1.00793 18.8107 1.00793 18.5764 1.24224L19.4249 2.09077ZM16.9097 2.90891C16.6754 3.14322 16.6754 3.52312 16.9097 3.75743C17.144 3.99175 17.5239 3.99175 17.7582 3.75743L16.9097 2.90891ZM16.9146 9.80141L16.4903 9.37714L16.9146 9.80141ZM14.495 10.4063L14.9193 9.98203L14.495 10.4063ZM16.3097 10.4063L16.7339 10.8306L16.3097 10.4063ZM10.2609 4.35747L9.8366 3.93321L10.2609 4.35747ZM10.2609 6.17212L9.8366 6.59638L10.2609 6.17212ZM10.8657 3.75259L11.29 4.17685L10.8657 3.75259ZM4.42492 17.0908C4.65923 16.8565 4.65923 16.4766 4.42492 16.2422C4.1906 16.0079 3.8107 16.0079 3.57639 16.2422L4.42492 17.0908ZM1.90972 17.9089C1.67541 18.1432 1.67541 18.5231 1.90972 18.7574C2.14403 18.9918 2.52393 18.9918 2.75825 18.7574L1.90972 17.9089ZM10.4689 16.2471L10.8932 16.6714L10.4689 16.2471ZM11.0738 13.8276L11.498 13.4033L11.0738 13.8276ZM11.0738 15.6422L10.6495 15.2179V15.2179L11.0738 15.6422ZM5.02495 9.59338L5.44922 10.0176V10.0176L5.02495 9.59338ZM6.8396 9.59338L6.41533 10.0176L6.8396 9.59338ZM4.42007 10.1983L3.99581 9.774H3.99581L4.42007 10.1983ZM8.99305 7.49224C8.75874 7.72655 8.75874 8.10645 8.99305 8.34077C9.22737 8.57508 9.60727 8.57508 9.84158 8.34077L8.99305 7.49224ZM11.0916 7.09077C11.3259 6.85645 11.3259 6.47655 11.0916 6.24224C10.8573 6.00793 10.4774 6.00793 10.2431 6.24224L11.0916 7.09077ZM12.3264 10.8256C12.0921 11.0599 12.0921 11.4398 12.3264 11.6741C12.5607 11.9084 12.9406 11.9084 13.1749 11.6741L12.3264 10.8256ZM14.4249 10.4241C14.6592 10.1898 14.6592 9.80989 14.4249 9.57557C14.1906 9.34126 13.8107 9.34126 13.5764 9.57557L14.4249 10.4241ZM18.5764 1.24224L16.9097 2.90891L17.7582 3.75743L19.4249 2.09077L18.5764 1.24224ZM10.4415 3.32832L9.8366 3.93321L10.6851 4.78174L11.29 4.17685L10.4415 3.32832ZM9.8366 6.59638L14.0708 10.8306L14.9193 9.98203L10.6851 5.74785L9.8366 6.59638ZM16.7339 10.8306L17.3388 10.2257L16.4903 9.37714L15.8854 9.98203L16.7339 10.8306ZM17.3388 10.2257C19.2435 8.32102 19.2435 5.23298 17.3388 3.32832L16.4903 4.17685C17.9263 5.61287 17.9263 7.94112 16.4903 9.37714L17.3388 10.2257ZM11.29 4.17685C12.726 2.74083 15.0543 2.74083 16.4903 4.17685L17.3388 3.32832C15.4342 1.42367 12.3461 1.42367 10.4415 3.32832L11.29 4.17685ZM10.6851 5.74785C10.4905 5.55323 10.4357 5.38764 10.434 5.26958C10.4324 5.15551 10.4787 4.98812 10.6851 4.78173L9.8366 3.93321C9.45613 4.31368 9.22687 4.778 9.23415 5.28674C9.24137 5.79148 9.48002 6.2398 9.8366 6.59638L10.6851 5.74785ZM15.8854 9.98203C15.6908
110.1767 15.5252 10.2314 15.4071 10.2331C15.2931 10.2348 15.1257 10.1884 14.9193 9.98203L14.0708 10.8306C14.4512 11.211 14.9156 11.4403 15.4243 11.433C15.9291 11.4258 16.3774 11.1871 16.7339 10.8306L15.8854 9.98203ZM3.57639 16.2422L1.90972 17.9089L2.75825 18.7574L4.42492 17.0908L3.57639 16.2422ZM4.84433 10.6225L5.44922 10.0176L4.60069 9.16912L3.99581 9.774L4.84433 10.6225ZM6.41533 10.0176L10.6495 14.2518L11.498 13.4033L7.26386 9.16912L6.41533 10.0176ZM10.6495 15.2179L10.0446 15.8228L10.8932 16.6714L11.498 16.0665L10.6495 15.2179ZM10.0446 15.8228C8.6086 17.2588 6.28035 17.2588 4.84433 15.8228L3.99581 16.6714C5.90046 18.576 8.9885 18.576 10.8932 16.6714L10.0446 15.8228ZM3.99581 9.774C2.09116 11.6787 2.09116 14.7667 3.99581 16.6714L4.84433 15.8228C3.40831 14.3868 3.40831 12.0586 4.84433 10.6225L3.99581 9.774ZM7.26386 9.16912C6.90728 8.81253 6.45896 8.57389 5.95422 8.56667C5.44548 8.55939 4.98116 8.78865 4.60069 9.16912L5.44922 10.0176C5.6556 9.81126 5.82299 9.76492 5.93706 9.76655C6.05512 9.76824 6.22071 9.82302 6.41533 10.0176L7.26386 9.16912ZM11.498 16.0665C11.8546 15.7099 12.0933 15.2616 12.1005 14.7568C12.1078 14.2481 11.8785 13.7838 11.498 13.4033L10.6495 14.2518C10.8559 14.4582 10.9022 14.6256 10.9006 14.7397C10.8989 14.8577 10.8441 15.0233 10.6495 15.2179L11.498 16.0665ZM9.84158 8.34077L11.0916 7.09077L10.2431 6.24224L8.99305 7.49224L9.84158 8.34077ZM13.1749 11.6741L14.4249 10.4241L13.5764 9.57557L12.3264 10.8256L13.1749 11.6741Z",fill:"currentColor"})),l1="Coming Soon",b1=(t,n=!1)=>t?n?void 0:"New":l1,Se=({tab:t,isConnected:n,isBroken:s,isComingSoon:d,isSalesforceAvailable:o,isHubspotAvailable:r,salesforceUnavailableTooltip:l,hubspotUnavailableTooltip:c})=>{if(!(d||n||s)){if(t==="salesforce"&&!o&&l)return{title:l};if(t==="hubspot"&&!r&&c)return{title:c}}},De=()=>{const[t,n]=d1(),{whitelabel:s}=v1(),{companyName:d}=t1(),{userMe:o}=R(),{userEmail:r}=E1({}),{mailSettings:l}=r2(),{data:c}=I1({}),{data:j}=T1({}),[u]=g1(u1.salesForce),[b]=g1(u1.hubspot),{checkFeature:S}=W(),[x,k]=S(X.salesforce),[L,F]=S(X.hubspot),m=u&&(s.isWhiteLabelUser?!!(o!=null&&o.isSalesforceActive):x),w=b&&(s.isWhiteLabelUser?!!(o!=null&&o.isHubspotActive):L);a.useEffect(()=>{const y=t.get("tab");y==="salesforce"&&!m&&(t.delete("tab"),n(t,{replace:!0})),y==="hubspot"&&!w&&(t.delete("tab"),n(t,{replace:!0}))},[t,n,m,w]);const H=a.useMemo(()=>{var y,T,g;return[{label:"LinkedIn",tab:"linkedin",icon:e.jsx(l2,{color:"#0072B1",width:"44px",height:"44px"}),isConnected:A1(o),isBroken:i2(o),description:"Connect LinkedIn to start automating actions. Your information is always secure."},{label:"Email",tab:"email",icon:e.jsx(c2,{}),isConnected:!!(r&&r.gmailEnabled||r!=null&&r.outlookEnabled&&!(o!=null&&o.outlookError)||l!=null&&l.isConnected),isBroken:!!(r!=null&&r.outlookEnabled&&(o!=null&&o.outlookError)),description:"Connect your account to start automating emails and monitor replies."},{label:"Salesforce",tab:"salesforce",hidden:s.isWhiteLabelUser&&(!u||!(o!=null&&o.isSalesforceActive)),icon:e.jsx(H1,{width:"44px",height:"44px"}),isConnected:u&&!!(o!=null&&o.isSalesforceActive),statusTag:b1(u,o==null?void 0:o.isSalesforceActive),isComingSoon:!u,description:"Connect your Salesforce account to integrate with your CRM and automate workflows."},{label:"HubSpot",tab:"hubspot",hidden:s.isWhiteLabelUser&&(!b||!(o!=null&&o.isHubspotActive)),icon:e.jsx(F1,{width:"44px",height:"44px"}),isConnected:b&&!!(o!=null&&o.isHubspotActive),statusTag:b1(b,o==null?void 0:o.isHubspotActive),isComingSoon:!b,description:"Connect your HubSpot account to integrate with your CRM and automate workflows."},{label:"X (Twitter)",tab:"twitter",hidden:s.isWhiteLabelUser,icon:e.jsx(d2,{}),isConnected:!!j,description:"Connect your X (Twitter) account to automate follows and DMs."},{label:"Facebook",tab:"facebook",hidden:s.isWhiteLabelUser,icon:e.jsx(p2,{}),isConnected:!!(c&&c.facebookData&&!((y=c.facebookData)!=null&&y.unauthorized)&&((T=c.facebookData)!=null&&T.longLivedAccessToken)),isBroken:!!(c&&c.facebookData&&((g=c.facebookData)!=null&&g.unauthorized)),description:`Authorize your Facebook account to allow ${d} to post on your Pages.`},{label:"Zapier",tab:"zapier",hidden:s.isWhiteLabelUser,icon:e.jsx(U1,{}),description:`Use your Zapier API key to integrate ${d} with thousands of other tools.`},{label:"Webhook",tab:"webhook",icon:e.jsx(B1,{}),description:`Use your Webhook API key to integrate all ${d} webhooks via API.`}]},[s.isWhiteLabelUser,o,j,c,r,l,d,u,b,o==null?void 0:o.isHubspotActive]),C=()=>{t.delete("tab"),n(t)},{component:I,title:P=""}=a.useMemo(()=>{switch(t.get("tab")){case"linkedin":return{title:"LinkedIn connection",component:e.jsx(g2,{})};case"email":return{title:"Email connection",component:e.jsx(x2,{redirectTo:"/integrations?tab=email"})};case"facebook":return{title:"Facebook connection",component:e.jsx(h2,{})};case"twitter":return{title:"X (Twitter) connection",component:e.jsx(C2,{})};case"zapier":return{title:"Zapier connection",component:e.jsx(te,{})};case"webhook":return{title:"Webhook connection",component:e.jsx(J2,{})};case"salesforce":return m?{title:"Salesforce connection",component:e.jsx(Q2,{})}:{component:null};
1case"hubspot":return w?{title:"HubSpot connection",component:e.jsx(U2,{})}:{component:null};default:return{component:null}}},[t,m,w]);return e.jsxs(e.Fragment,{children:[e.jsxs(u2,{children:[e.jsx(m2,{children:"Integrations"}),e.jsx(f2,{articleLink:"https://help.meetalfred.com/en/collections/5916769-integrations",videoLink:"https://player.vimeo.com/video/1152425014"})]}),e.jsxs(b2,{children:[e.jsxs(i,{bgcolor:"#ffffff",p:"24px",borderRadius:"12px",height:"100%",overflow:"auto",children:[e.jsx(h,{textAlign:"center",mb:"16px",children:"Automate your workflows by connecting with your favorite outreach and sales channels."}),e.jsx(i,{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"24px",children:H.map(({label:y,icon:T,tab:g,description:z,isConnected:v=!1,isBroken:E=!1,hidden:o1=!1,statusTag:V,isComingSoon:N=!1})=>!o1&&e.jsxs(w2,{children:[e.jsxs(i,{display:"flex",alignItems:"flex-start",justifyContent:"space-between",children:[e.jsx($,{mb:"8px",children:T}),v&&e.jsx(G,{bgColor:"#ebf8f1",color:"#1b8d2d",tag:"Connected"}),E&&e.jsx(G,{bgColor:"#fce9e8",color:"#d3241d",tag:"Broken"}),V==="New"&&!v&&e.jsx(G,{bgColor:"#1b8d2d",color:"#ffffff",tag:"New"}),V===l1&&e.jsx(G,{bgColor:"#F1F5FF",color:"#1B4ED2",tag:l1})]}),e.jsx(h,{color:"blue.black",mb:"4px",medium:!0,fontSize:"16px",lineHeight:"24px",children:y}),e.jsx(h,{color:"greyBlue.60",fontSize:"12px",lineHeight:"16px",height:"32px",children:z}),e.jsx(B,{mx:"-16px",my:"16px"}),e.jsx(i,{sx:{display:"flex",width:"fit-content"},children:e.jsx(A,{scale:"s",variant:v||E?"secondary":"primary",onClick:()=>!N&&n({...t,tab:g}),disabled:N||g==="salesforce"&&!v&&!E&&!m||g==="hubspot"&&!v&&!E&&!w,tooltip:Se({tab:g,isConnected:v,isBroken:E,isComingSoon:N,isSalesforceAvailable:m,isHubspotAvailable:w,salesforceUnavailableTooltip:k,hubspotUnavailableTooltip:F}),leftIcon:v||E?e.jsx(v2,{width:"20px",height:"20px"}):e.jsx(je,{}),children:v||E?"Manage":"Connect"})})]},y))})]}),e.jsxs(y2,{isOpen:!!I,onClose:C,width:"860px",children:[e.jsx(j2,{title:P,onClose:C}),e.jsx(S2,{children:I})]})]})]})};export{_e as FirstIntegrations,Ne as HubSpotCallback,De as Integrations,Oe as MicrosoftCallback,We as SalesforceCallback};
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.