PageSourceSearch

https://app.meetalfred.com/BWeJ4otB.js

js meetalfred.com collected 2026-09-24 10:34:45 UTC 1,051,934 bytes, 191 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["zMQZ3vqD.js","hle-0Evi.js","C3Y7KbLQ.js","BHubrvdT.css","CP9inigw.js","CHuH2IPk.js","BSc7nAdZ.js","dlecG_21.js","BnhOObTS.css","DiqFlZAK.js","CxjJ0NBy.js","CHXTyely.js","apHXcpZ8.js","CfZ7kyuK.css","BIOKUjzt.js","0IxNa2GC.js","CkllcoVs.js","V3744JF7.js","6tmeBoNT.js","DOA_2k-F.js","BoOBqsnr.js","jU4mrOkq.js","HVd07jQA.js","BMyXzcbq.js","DBmufRQM.js","CHvny7Hy.js","R0QdkAlR.js","BChBtaLj.js","BrqJ-5KF.js","DZU0-oJC.js","BLp8GEX8.js","DNenql6F.js","Bh5aTN26.js","CSCceEgv.js","B_rMwlQM.js","CehUXoiF.js","MNOcponm.js","Gb0Jg39a.js","DsNUKlb2.js","Dgh4tyhZ.js","CeC_lnZ7.js","D1Ve1ZcV.js","B-HUEng6.js","BFDM6iLk.js","zZXS5rbq.js","DcbYWxDH.js","rQmzITuA.js","BMZMM33P.js","l6-VghO_.js","BWe2FrGt.js","Cy9PhnEy.js","ClIjvPV2.js","BwtCyx0S.js","sCBWn-BU.js","Dc_Ar2Am.js","DRixcfY2.js","DTi5mTbk.js","C-6J-Tji.js","DmIlQ1ms.js","BioThogL.js","BLQF2LqU.js","DYNcVUVZ.js","BP3DChbZ.js","BKFumdrZ.js","Cpw5FDja.js","DWiX_vu0.js","DhQ4dBfb.js","CRIB642r.js","BK4f5PSw.js","DvI24UZE.js","CWxh2Bqk.js","CJCVokwQ.js","lQR1PiZx.js","BIydLLrD.js","DupwLzu-.js","BfG1SuMc.js","DFHFlKwV.js","CGNhiBiK.js","hFDvI-9S.js","DYHOB6dJ.js","DDl8sciC.js","BBVSacGk.js","DGI9QhrJ.js","CA5Y5u5a.js","Bjv4ZPNu.js","Bv4p5Rgv.js","Dc85pDq_.js","DMFe3sIy.js","Cqr5duwf.js","BwcnVud_.js","Ci8B17oW.js","CE_zyh_Y.js","DvkqCmU_.js","De8IZ6i4.js","CGs0il4O.js","BT2cyicm.js","CXqxXEGt.js","CEzPu19S.js","CTVITJ5L.js","BKL2CBhX.js","_lK2JN-C.js","CjE6CE3n.js","DZbXesVv.js","BtuuC_7s.js","cpTl3Ob0.js","BQQ3PCO6.js","CgX4Y2Tw.js","BCLNlaUu.js","CK35kuAw.js","C-SvDgbK.js","Dy-QmBFY.js","BffAPa7R.js","3IQP4rl4.js","BM0jN_F1.js","BmrQinIq.js","CvFXiWVv.js","tdMIhvhp.js","TH4-Fbpc.js"])))=>i.map(i=>d[i]);
2import{aC as b6,x as y,q as t,ac as L6,aD as w6,G as Ee,aE as T6,p as c,aF as j6,aG as xr,aH as o2,aI as on,aJ as v6,aK as kn,aL as I6,aM as fa,Q as At,aN as kt,aO as _6,aP as A6,aQ as N6,aR as k6,aS as R6,aT as M6,aU as P6,D as P,u as Rt,K as ns,z as ce,ax as Ao,aV as O6,v as Ve,aW as D6,aX as U6,af as Ia,w as g,_ as jt,F as mt,aY as B6,V as On,a5 as H6,ae as No,O as Xn,aZ as V6,W as la,a_ as js,a$ as Zn,b0 as F6,b1 as ko,a3 as fr,aB as Ro,b2 as Mo,ai as Po,ah as $6,b3 as An,b4 as G6,b5 as z6,b6 as W6,b7 as l2,b8 as q6,b9 as Z6,ba as c2,bb as Y6,H as vn,bc as d2,bd as K6,be as Q6,bf as X6,M as lt,Y as rn,bg as J6,aw as Oo,ad as u2,ay as p2,J as en,ap as Do,aq as qe,a7 as ep,a8 as tp,a9 as np,aa as sp,am as rp,y as _a,bh as ap,N as Le,bi as ip,bj as op,bk as lp,bl as cp,bm as dp,bn as up,bo as pp,bp as hp,bq as Aa,br as H,U as xt,bs as mp,bt as gp,bu as xp,bv as fp}from"./zMQZ3vqD.js";import{S as Cp}from"./dlecG_21.js";import"./BSc7nAdZ.js";import{d as se,i as h2,u as ss,t as Cr,e as m2,c as g2,a as x2}from"./hle-0Evi.js";import{F as yt,h as yp,i as ro,j as f2,d as Ep,k as Sp,g as bp,l as Lp,m as wp,n as Tp,b as jp,c as vp,o as Ip,p as _p,q as Ap}from"./DiqFlZAK.js";import{C as Uo,u as C2,a as y2,E as Np,l as kp}from"./CxjJ0NBy.js";import{C as rs,g as E2}from"./CHXTyely.js";import{o as Qt,y as Rp,z as Bo,A as S2,B as Mp,i as ao,C as b2,e as vs,l as Ho,s as Vo,D as Pp}from"./C3Y7KbLQ.js";import{i as x1}from"./apHXcpZ8.js";(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function s(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=s(a);fetch(a.href,i)}})();const L2="https://[email protected]/6722054",Op="production",Dp=!!L2;Dp&&b6({dsn:L2,environment:Op,tracesSampleRate:.1});const Ot=y(e=>t.jsx(L6,{disableGutters:!0,elevation:0,...e}),{target:"ea8xim60"})("border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";box-shadow:none;margin:0;border-radius:",({radius:e})=>e||"12px","!important;&>.MuiAccordionSummary-root:not(.Mui-expanded){border-radius:",({radius:e})=>e||"12px","!important;}&.Mui-expanded>
2.MuiAccordionDetails-root{border-bottom-left-radius:",({radius:e})=>e||"12px","!important;border-bottom-right-radius:",({radius:e})=>e||"12px","!important;}&.Mui-expanded{margin:0;}::before{display:none;}"),Up=y(w6,{target:"e11etmqw0"})("cursor:default!important;padding:16px;height:64px;box-sizing:border-box;justify-content:flex-start;&,&.Mui-expanded{height:64px;border-top-right-radius:0;border-top-left-radius:0;border-top:1px solid ",({theme:e})=>e.palette.greyNeutral[20],";}.MuiAccordionActions-content,.MuiAccordionActions-content.Mui-expanded{margin:0;}"),w2=({children:e,...n})=>t.jsx(Up,{...n,children:e}),Bp=y(T6,{target:"eb3mo7l0"})({name:"zq7x",styles:"&.s{padding:12px;}&.m{padding:16px;}"}),un=({children:e,size:n="m"})=>t.jsx(Bp,{className:Ee({[n]:!0}),children:e}),ln=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M5 7.5L9.41074 11.9107C9.68852 12.1885 9.82741 12.3274 10 12.3274C10.1726 12.3274 10.3115 12.1885 10.5893 11.9107L15 7.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Hp=["height","bgcolor","summaryRadius","expandedTopRadius"],Vp=y(j6,{shouldForwardProp:e=>!Hp.includes(e),target:"euoozoj0"})("cursor:default!important;padding:16px;background-color:",({theme:e,bgcolor:n})=>n||e.palette.bg.greyBlue,"!important;box-sizing:border-box;color:",({theme:e})=>e.palette.greyBlue[100],";&.MuiAccordionSummary-root:not(.Mui-expanded){border-radius:",({summaryRadius:e})=>e||"12px","!important;}&.MuiAccordionSummary-root.Mui-expanded{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important;border-top-right-radius:",({expandedTopRadius:e,summaryRadius:n})=>e||n||"12px","!important;border-top-left-radius:",({expandedTopRadius:e,summaryRadius:n})=>e||n||"12px","!important;border-bottom:1px solid ",({theme:e})=>e.palette.greyNeutral[20],";}.MuiAccordionSummary-content,.MuiAccordionSummary-content.Mui-expanded{align-items:center;margin:0;}.MuiAccordionSummary-expandIconWrapper{margin-left:16px;}&.s{font-size:12px;line-height:16px;font-weight:500;height:",({height:e})=>e||"40px","!important;min-height:",({height:e})=>e||"40px","!important;}&.m{font-size:16px;line-height:24px;font-weight:500;height:",({height:e})=>e||"64px","!important;min-height:",({height:e})=>e||"64px","!important;}&.expandable{cursor:pointer!important;}"),Dt=({withExpandIcon:e=!1,children:n,size:s="m",height:r,bgcolor:a,summaryRadius:i,expandedTopRadius:o,...l})=>t.jsx(Vp,{className:Ee({expandable:e,[s]:!0}),expandIcon:e?t.jsx(ln,{}):null,height:r,bgcolor:a,summaryRadius:i,expandedTopRadius:o,...l,children:n}),ca={withoutMessage:"Invite sent without message",postponed:"Postponed for 24 hours due to message length",attachmentWithoutMessage:"Attachment without message"},Fp=6,$p=100,Gp=/^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*\W)(?!.* ).{6,100}$/,zp="Please enter a password at least 6 characters long",Wp="Please enter a password that is a maximum of 100 characters long",qp="Please enter a password that contains at least 1 uppercase letter, lowercase letter, number and special symbol",Te={USD:"usd",GBP:"gbp",EUR:"eur"},G={MONTHLY:"monthly",QUARTERLY:"quarterly",ANNUAL:"annual",SEMESTRIAL:"semestrial"},x={TRIAL:"trial",FREE:"free",BASIC:"basic",PRO:"pro",TEAMS:"teams",INDIVIDUAL:"individual",STARTER:"starter",PERSONAL:"personal",BUSINESS:"business",ENTERPRISE:"enterprise",AGENCY:"agency"},q={v1:"v1",v2:"v2"},Yn={STARTED:"started",ENDED:"ended"},da={PAID:"paid",OPEN:"open",UNCOLLECTIBLE:"uncollectible"},nn={COST:"Cost",DIFFICULTY_OF_USE:"Difficulty of use",MISSING_FUNCTIONALITY:"Missing Functionality",USING_OTHER_PRODUCT:"Using Other Product",TECHNICAL_ISSUES:"Technical Issues",SOMETHING_ELSE:"Something else"},zs={TAKING_BREAK:"Taking a break",REDUCING_EXPENSES:"Reducing expenses",ENOUGH_LEADS:"Have enough leads",CHANGED_JOBS:"Changed jobs",SOMETHING_ELSE:"Something else"},sr={closeCancelView:"close cancel view",subscriptionResumed:"subscription resumed",pauseSubscriptionClicked:"Pause subscription clicked",changePlanClicked:"Change plan clicked",changeNumberOfUsersClicked:"Change number of Users clicked"},ys="Cloud-based solution ideal for automated outreach on LinkedIn.",ps="Per user, per month",Or="LinkedIn Automation",T2="Ideal for single users interested in automating campaigns on Linkedin, Email & Twitter.",Ca="Exclusive features and dedicated support for larger teams.",ni="Pro Plan features plus:",f1="Basic Plan features plus:",si="Get 6 Months Free",ri="3 Active campaigns",Dr="Basic LinkedIn CRM",ai="Automated Greetings",j2="Ideal for individuals looking for enhanced performance and advanced features.",v2="Best choice for teams seeking optimal performance.",I2="Best choice for larger teams needing exclusive features and dedicated support.",_2="Volume Discounts",A2="Chained Messages",N2="White Label",k2="Advanced Team Settings",R2="Dedicated Account Manager",M2="Groups",P2="Team Inbox Management",Zp="Export Team Campaign Data",Yp="Export Team CRM Data",O2="Priority Support",ii="LinkedIn CSV Campaigns",C1=[_2,A2,N2,k2,R2,M2,P2,Zp,Yp,O2],Kp=["pro-annual-USD-promotion-xmas2025","pro-annual-EUR-promotion-xmas2025","pro-annual-GBP-promotion-xmas2025"],Fo={ae_trn:"United Arab Emirates TRN",au_abn:"Australian Business Number (AU ABN)",au_arn:"Australian Taxation Office Reference Number",br_cnpj:"Brazilian CNPJ number",br_cpf:"Brazilian CPF number",bg_uic:"Bulgaria Unified Identification Code",ca_bn:"Canadian BN",ca_gst_hst:"Canadian GST/HST number",ca_pst_bc:"
2Canadian PST number (British Columbia)",ca_pst_mb:"Canadian PST number (Manitoba)",ca_pst_sk:"Canadian PST number (Saskatchewan)",ca_qst:"Canadian QST number",ch_vat:"Switzerland VAT number",cl_tin:"Chilean TIN",es_cif:"Spanish CIF number",eu_vat:"European VAT number",eu_oss_vat:"European One Stop Shop VAT number for non-Union scheme",eg_tin:"Egyptian Tax Identification Number",gb_vat:"United Kingdom VAT number",ge_vat:"Georgian VAT",hk_br:"Hong Kong BR number",hu_tin:"Hungary tax number",id_npwp:"Indonesian NPWP number",in_gst:"Indian GST number",jp_cn:"Japanese Corporate Number",jp_rn:"Japanese Registered Foreign Businesses’ Registration Number",jp_trn:"Japanese Tax Registration Number",is_vat:"Icelandic VAT",il_vat:"Israel VAT",ke_pin:"Kenya Revenue Authority Personal Identification Number",kr_brn:"Korean BRN",li_uid:"Liechtensteinian UID number",mx_rfc:"Mexican RFC number",my_frp:"Malaysian FRP number",my_itn:"Malaysian ITN",my_sst:"Malaysian SST number",no_vat:"Norwegian VAT number",nz_gst:"New Zealand GST number",ph_tin:"Philippines Tax Identification Number",ru_inn:"Russian INN",ru_kpp:"Russian KPP",sa_vat:"Saudi Arabia VAT",sg_gst:"Singaporean GST",sg_uen:"Singaporean UEN",si_tin:"Slovenia tax number",th_vat:"Thai VAT",tw_vat:"Taiwanese VAT",tr_tin:"Turkish Tax Identification Number",ua_vat:"Ukrainian VAT",us_ein:"United States EIN",za_vat:"South African VAT number"},D2={ae_trn:"123456789012345",au_abn:"12345678912",au_arn:"123456789123",br_cnpj:"01.234.456/5432-10",br_cpf:"123.456.789-87",bg_uic:"123456789",ca_bn:"123456789",ca_gst_hst:"123456789RT0002",ca_pst_bc:"PST-1234-5678",ca_pst_mb:"123456-7",ca_pst_sk:"1234567",ca_qst:"1234567890TQ1234",ch_vat:"CHE-123.456.789 MWST",cl_tin:"12.345.678-K",es_cif:"A12345678",eu_vat:"ATU12345678",eu_oss_vat:"EU123456789",eg_tin:"123456789",gb_vat:"GB123456789",ge_vat:"123456789",hk_br:"12345678",hu_tin:"12345678-1-23",id_npwp:"12.345.678.9-012.345",in_gst:"12ABCDE3456FGZH",jp_cn:"1234567891234",jp_rn:"12345",jp_trn:"T1234567891234",is_vat:"123456",il_vat:"000012345",ke_pin:"P000111111A",kr_brn:"123-45-67890",li_uid:"CHE 123456789",mx_rfc:"ABC010203AB9",my_frp:"12345678",my_itn:"C 1234567890",my_sst:"A12-3456-78912345",no_vat:"123456789MVA",nz_gst:"123456789",ph_tin:"123456789012",ru_inn:"1234567891",ru_kpp:"123456789",sa_vat:"123456789012345",sg_gst:"M12345678X",sg_uen:"123456789F",si_tin:"12345678",th_vat:"1234567891234",tw_vat:"12345678",tr_tin:"0123456789",ua_vat:"123456789",us_ein:"12-3456789",za_vat:"4123456789"},Qn={[x.INDIVIDUAL]:{seats:1,minSeats:1},[x.STARTER]:{seats:1,minSeats:1},[x.PERSONAL]:{seats:1,minSeats:1},[x.BASIC]:{seats:1,minSeats:1},[x.PRO]:{seats:1,minSeats:1},[x.BUSINESS]:{seats:250,minSeats:1}
2,[x.ENTERPRISE]:{seats:250,minSeats:5},[x.AGENCY]:{seats:250,minSeats:10},[x.TEAMS]:{seats:250,minSeats:3},[x.TRIAL]:{seats:5,minSeats:1},[x.FREE]:{seats:1,minSeats:1}},ya={[G.MONTHLY]:"Monthly",[G.QUARTERLY]:"Quarterly",[G.SEMESTRIAL]:"Half Yearly",[G.ANNUAL]:"Annually"},U2={[x.INDIVIDUAL]:ys,[x.STARTER]:ys,[x.PERSONAL]:T2,[x.BUSINESS]:v2,[x.ENTERPRISE]:Ca,[x.AGENCY]:Ca,[x.BASIC]:ys,[x.PRO]:j2,[x.TEAMS]:I2},Qp={[x.STARTER]:{description:ys,priceDescription:ps,features:["1 Active campaign",Or,ii,"Personalized Messaging",Dr,"Campaign Analytics"],price:{[Te.USD]:{[G.MONTHLY]:39,[G.QUARTERLY]:29,[G.SEMESTRIAL]:29},[Te.EUR]:{[G.MONTHLY]:35,[G.QUARTERLY]:25,[G.SEMESTRIAL]:25},[Te.GBP]:{[G.MONTHLY]:30,[G.QUARTERLY]:20,[G.SEMESTRIAL]:20}}},[x.PERSONAL]:{description:T2,priceDescription:ps,features:[ri,Or,"Email Automation (Gmail & Microsoft)","Twitter Automation","Multi-Channel Automation",Dr,ii,"Tag Manager & Notes","Smart Inbox",ai],price:{[Te.USD]:{[G.MONTHLY]:59,[G.QUARTERLY]:49,[G.SEMESTRIAL]:49},[Te.EUR]:{[G.MONTHLY]:55,[G.QUARTERLY]:45,[G.SEMESTRIAL]:45},[Te.GBP]:{[G.MONTHLY]:45,[G.QUARTERLY]:35,[G.SEMESTRIAL]:35}}},[x.INDIVIDUAL]:{description:ys,priceDescription:ps,features:[ri,Or,"Linkedin Search Campaigns","LinkedIn Engagement","Linkedin URL Campaigns",Dr,"Tag Manager & Notes","LinkedIn Inbox","Templates",ai],price:{[Te.USD]:{[G.MONTHLY]:59,[G.QUARTERLY]:49,[G.ANNUAL]:39},[Te.EUR]:{[G.MONTHLY]:55,[G.QUARTERLY]:45,[G.ANNUAL]:35},[Te.GBP]:{[G.MONTHLY]:49,[G.QUARTERLY]:39,[G.ANNUAL]:29}}},[x.BASIC]:{description:ys,priceDescription:ps,features:[ri,Or,Dr,"Smart LinkedIn Inbox","Message Templates",ai,"Custom Tags","Add Notes"],price:{[Te.USD]:{[G.MONTHLY]:59,[G.QUARTERLY]:49,[G.ANNUAL]:59},[Te.EUR]:{[G.MONTHLY]:55,[G.QUARTERLY]:45,[G.ANNUAL]:55},[Te.GBP]:{[G.MONTHLY]:49,[G.QUARTERLY]:39,[G.ANNUAL]:49}},newPrice:{[Te.USD]:{[G.ANNUAL]:{price:29,description:'<span class="stroked">$708</span> <span class="dark">$348</span>'}},[Te.EUR]:{[G.ANNUAL]:{price:27,description:'<span class="stroked">€660</span> <span class="dark">€324</span>'}},[Te.GBP]:{[G.ANNUAL]:{price:24,description:'<span class="stroked">£588</span> <span class="dark">£288</span>'}}},label:{[G.ANNUAL]:si}},[x.PRO]:{description:j2,priceDescription:ps,includedPlan:f1,isMostPopular:!0,features:["Unlimited Campaigns","Supports Sales Navigator","Multi-Channel Automation (LinkedIn, X, Email)","Advanced LinkedIn CRM","InMail Automation","LinkedIn Groups Automation","LinkedIn Events Automation","LinkedIn Content Retargeting",ii,"Social Media Post Scheduling","3rd Party Integrations (Zapier & Webhooks)","Export Campaign & CRM Data","Custom Personalization Snippets","Attachments"],price:{[Te.USD]:{[G.MONTHLY]:99,[G.QUARTERLY]:79,[G.ANNUAL]:99},[Te.EUR]:{[G.MONTHLY]:85,[G.QUARTERLY]:75,[G.ANNUAL]:85},[Te.GBP]:{[G.MONTHLY]:75,[G.QUARTERLY]:60,[G.ANNUAL]:75}},newPrice:{[Te.USD]:{[G.ANNUAL]:{price:49,description:'<span class="stroked">$1,188</span> <span class="dark">$588</span>'}},[Te.EUR]:{[G.ANNUAL]:{price:42,description:'<span class="stroked">€1,020</span> <span class="dark">€504</span>'}},[Te.GBP]:{[G.ANNUAL]:{price:37,description:'<span class="stroked">£900</span> <span class="dark">£444</span>'}}},summerSalePrice:{[Te.USD]:{[G.ANNUAL]:{price:25,description:'<span class="stroked">$1,188</span> <span class="dark">$294</span>'}},[Te.EUR]:{[G.ANNUAL]:{price:21,description:'<span class="stroked">€1,020</span> <span class="dark">€252</span>'}},[Te.GBP]:{[G.ANNUAL]:{price:19,description:'<span class="stroked">£900</span> <span class="dark">£222</span>'}}},xmasPrice:{[Te.USD]:{[G.ANNUAL]:{price:39,description:'<span class="stroked">$1,188</span> <span class="dark">$468</span>'}},[Te.EUR]:{[G.ANNUAL]:{price:35,description:'<span class="stroked">€1,020</span> <span class="dark">€420</span>'}},[Te.GBP]:{[G.ANNUAL]:{price:29,description:'<span class="stroked">£900</span> <span class="dark">£348</span>'}}},label:{[G.ANNUAL]:si}},[x.BUSINESS]:{description:v2,priceDescription:ps,includedPlan:f1,features:["Unlimited Campaigns","Supports Sales Navigator","Advanced LinkedIn Campaigns","Multi-Channel Automation (LinkedIn, Twitter, Email)","Advanced Linkedin CRM","Team Management","3rd Party Integrations (Zapier & Webhooks)","Social Media Scheduler","Attachments"],price:{[Te.USD]:{[G.MONTHLY]:99,[G.QUARTERLY]:79,[G.ANNUAL]:59},[Te.EUR]:{[G.MONTHLY]:85,[G.QUARTERLY]:75,[G.ANNUAL]:55},[Te.GBP]:{[G.MONTHLY]:75,[G.QUARTERLY]:60,[G.ANNUAL]:45}}}
2,[x.ENTERPRISE]:{description:Ca,priceDescription:"Minimum 5 Users",includedPlan:ni,features:[...C1],price:{[Te.USD]:{[G.MONTHLY]:69,[G.QUARTERLY]:49,[G.SEMESTRIAL]:49,[G.ANNUAL]:29.9},[Te.EUR]:{[G.MONTHLY]:60,[G.QUARTERLY]:45,[G.SEMESTRIAL]:45,[G.ANNUAL]:30},[Te.GBP]:{[G.MONTHLY]:50,[G.QUARTERLY]:35,[G.SEMESTRIAL]:35,[G.ANNUAL]:25}}},[x.AGENCY]:{description:Ca,priceDescription:"Minimum 10 Users",includedPlan:ni,features:[...C1],price:{[Te.USD]:{[G.MONTHLY]:79,[G.QUARTERLY]:59,[G.ANNUAL]:49},[Te.EUR]:{[G.MONTHLY]:70,[G.QUARTERLY]:55,[G.ANNUAL]:45},[Te.GBP]:{[G.MONTHLY]:60,[G.QUARTERLY]:45,[G.ANNUAL]:35}}},[x.TEAMS]:{description:I2,priceDescription:"Included 3 Users, per month",includedPlan:ni,features:[_2,k2,P2,M2,A2,{boldText:"For 5+ Users:"},N2,{boldText:"For 10+ Users:"},R2,"Migration & Onboarding",O2],price:{[Te.USD]:{[G.MONTHLY]:79,[G.QUARTERLY]:59,[G.ANNUAL]:79},[Te.EUR]:{[G.MONTHLY]:70,[G.QUARTERLY]:55,[G.ANNUAL]:70},[Te.GBP]:{[G.MONTHLY]:60,[G.QUARTERLY]:45,[G.ANNUAL]:60}},newPrice:{[Te.USD]:{[G.ANNUAL]:{price:39,description:'<span class="stroked">$2,844</span> <span class="dark">$1,404</span>'}},[Te.EUR]:{[G.ANNUAL]:{price:35,description:'<span class="stroked">€2,520</span> <span class="dark">€1,260</span>'}},[Te.GBP]:{[G.ANNUAL]:{price:29,description:'<span class="stroked">£2,160</span> <span class="dark">£1,044</span>'}}},label:{[G.ANNUAL]:si}}},iO=(e,n,s,{summerSalePromo:r=!1}={})=>{var i,o,l,u,d,p;const a=Qp[e];if(a)return r?((o=(i=a.summerSalePrice)==null?void 0:i[n])==null?void 0:o[s])??((u=(l=a.newPrice)==null?void 0:l[n])==null?void 0:u[s]):(p=(d=a.newPrice)==null?void 0:d[n])==null?void 0:p[s]},Xp=[30,60,90,120],ue={LINKEDIN:"linkedin",EMAIL:"email",TWITTER:"twitter",MULTICHANNEL:"multi-channel",INMAIL:"inmail",GROUP:"group",EVENT:"event",COMPANY:"company"},U={LINKEDIN_SEARCH:"linkedin search",LINKEDIN_CSV_UPLOAD:"csv upload",LINKEDIN_SN_SEARCH:"sales navigator search",LINKEDIN_SN_SAVED_SEARCH:"sales navigator saved search",LINKEDIN_CONNECTIONS:"crm connections",LINKEDIN_GROUP:"linkedin group",LINKEDIN_POST:"linkedin post",LINKEDIN_ADVERTISEMENT:"linkedin advertisement post",LINKEDIN_EVENT:"linkedin event",LINKEDIN_COMPANY:"linkedin company",LINKEDIN_NEWSLETTER:"linkedin newsletter",EMAIL_CSV_UPLOAD:"email_only",EMAIL_CONNECTIONS:"email_connections",TWITTER_CSV_UPLOAD:"twitter_csv",TWITTER_CONNECTIONS:"twitter_connections",ZAPIER:"zapier",ZAPIER_LEADS:"zapier leads",RECRUITER_SEARCH:"recruiter search",LEAD_FINDER:"lead finder",SAVED_LIST:"saved list",INTERACTIVE_QUESTIONS:"interactive questions"},sn={FOUND:"found",VIEWED:"viewed",REQUESTED_CONNECT:"requested connect",CONNECTED:"connected",FOLLOWED_UP_AFTER_CONNECT:"followed up after connect",MESSAGE_SENT:"Message sent",GROUP_MESSAGE_SENT:"Group Message sent",INMAIL_MESSAGE_SENT:"InMail Message sent",INMAIL_SKIPPED:"InMail skipped",LINKEDIN_REPLY_DETECTED:"linkedin reply detected",INMAIL_REPLY_DETECTED:"InMail reply detected",EVENT_MESSAGE_SENT:"Event Message sent",EMAIL_BOUNCED:"Email bounced",EMAILED:"emailed",GREETINGS:"greetings",EMAIL_REPLY_DETECTED:"Email reply detected",LEAD_FOLLOWED_IN_TWITTER:"Lead Followed in Twitter",TWITTER_MESSAGE_SENT:"Twitter Message sent",TWITTER_REPLY_DETECTED:"twitter reply detected",ALFRED_DESKTOP_APP_ACTION:"alfred desktop app action",INVITE_WITHDRAWN:"invite withdrawn",EMAIL_OPENED:"Email opened",RETURNED_TO_CAMPAIGN:"Returned to campaign",ALREADY_CONNECTED:"already connected",ALREADY_INVITED:"already invited",FOLLOWED_A_PROFILE:"Followed a profile",NO_EMAIL_FOUND:"no email found",LEAD_POSTPONED:"Lead postponed",MESSAGE_POSTPONED:"Message postponed",LEAD_EXCLUDED:"Lead Excluded",UNABLE_TO_SEND_INMAIL:"Unable to send InMail message",INVITE_TO_EVENT_SENT:"Invite to event sent",INVITE_TO_COMPANY_SENT:"Invite to company sent",CHAINED_MESSAGES_SENT:"Chained messages sent",UNABLE_TO_SEND_CHAINED_MESSAGE:"Unable to send chained messages"},Jp={ACTIVE:"active",DRAFT:"draft"},Ur={ACCOUNT_LIST:"account_list",LEAD_LIST:"lead_list",SAVED_ACCOUNTS_SEARCH:"saved_accounts_search",SAVED_LEADS_SEARCH:"saved_leads_search"},de={LINKED_IN_MESSAGE:"LI Message",LINKED_IN_CHAINED_MESSAGE:"Chained messages",LINKED_IN_CONNECT:"LI Connect",LINKED_IN_VIEW:"LI View",IN_MAIL_MESSAGE:"InMail Message",EMAIL:"Email",TWITTER_DM:"Twitter DM",TWITTER_FOLLOW:"Twitter Follow",GROUP_MESSAGE:"Group Message",EVENT_MESSAGE:"Event Message",INVITE_TO_EVENT:"Invite to event",INVITE_TO_COMPANY:"Invite to company"},$o={DAYS:"day(s)",HOURS:"hour(s)"},Ws="Feature under Maintenance",e5=3,t5=3,n5=3,s5=1,r5=1,a5=3,oO=[{key:"leadsCount",label:"Active Leads",type:"approved"},{key:"viewedLeadsCount",label:"Viewed",type:"viewed"},{key:"requestedLeadsCount",label:"Invites Sent",type:"requested"},{key:"connectedLeadsCount",label:"Connected",type:"connected"},{key:"invitesPendingCount",label:"Invites Pending",type:"invitesPending"},{key:"followedUpLeadsCount",label:"Followed up",type:"followedUp"},{key:"messagedLeadsCount",label:"Messages Sent",type:"messaged"},{key:"inmailedLeadsCount",label:"InMails Sent",type:"inmailed"},{key:"inmailSkippedCount",label:"InMails Skipped",type:"inmailSkipped"},{key:"allRepliesCount",label:"All Replies",type:"allReplies"},{key:"repliesCount",label:"Replies",type:"replies"},{key:"followedTwitterCount",label:"X (Twitter) Followed",type:"followedTwitter"},{key:"twitterMessagesSentCount",label:"X (Twitter) DM Sent",type:"twitterMessageSent"},{key:"alreadyConnectedCount",label:"Already Connected",type:"alreadyConnected"},{key:"alreadyInvitedCount",label:"Already Invited",type:"alreadyInvited"},{key:"inmailRepliesCount",label:"InMail Replies",type:"inmailReplies"},{key:"eventMessagesCount",label:"Event Messages",type:"eventMessages"},{key:"emailsBouncedCount",label:"Emails Bounced",type:"emailsBounced"},{key:"userInteractionsCount",label:"User Interaction",type:"userInteraction"},{key:"withdrawInviteLeadsCount",label:"Invites Withdrawn",type:"invitesWithdraw"},{key:"emailedCount",label:"Emails Sent",type:"emailed"},{key:"emailRepliesCount",label:"Email Replies",type:"emailReplies"},{key:"emailOpenedCount",label:"Email Open",type:"emailOpened"},{key:"groupMessageSent",label:"Group Messages",type:"groupMessageSent"},{key:"noEmailFound",label:"No Email Found",type:"noEmailFound"},{key:"unableToSendMessage",label:"Messages skipped",type:"unableToSendMessage"},{key:"twitterUnableToMessage",label:"X (Twitter) Unable Messages",type:"twitterUnableToMessage"},{key:"emailUnsubscribed",label:"Unsubscribed from email",type:"emailUnsubscribed"},{key:"leadPostponedCount",label:"Unable to resend invitation",type:"leadPostponed"},{key:"messagePostponedCount",label:"Message postponed",type:"messagePostponed"},{key:"unableToSendInmail",label:"InMail Unable Messages",type:"unableToSendInmail"},{key:"inviteToEventSentCount",label:"Invited to Event",type:"inviteToEventSent"},{key:"inviteToCompanySentCount",label:"Invited to Follow Company",type:"inviteToCompanySent"},{key:"chainedMessagesSentCount",label:"Chained Messages Sent",type:"chainedMessagesSent"},{key:"unableToSendChainedMessagesCount",label:"Unable to send chained messages",type:"unableToSendChainedMessages"}],i5=[ue.LINKEDIN,ue.MULTICHANNEL,ue.COMPANY,ue.INMAIL],o5=[{category:ue.LINKEDIN,name:"LinkedIn Campaign"},{category:ue.EMAIL,name:"Email Campaign"},{category:ue.TWITTER,name:"X (Twitter) Campaign"},{category:ue.MULTICHANNEL,name:"Multi-channel Campaign"},{category:ue.INMAIL,name:"InMail Campaign"},{category:ue.GROUP,name:"LinkedIn Group Campaign"},{category:ue.EVENT,name:"LinkedIn Event Campaign"},{category:ue.COMPANY,name:"LinkedIn Company Campaign"}],l5=["First Message","Second Message","Third Message","Fourth Message"],lO="Progress percentage is not available for campaigns with the new sequence builder. Open the campaign Overview to view sequence progress.",io="Follow up messages",Sn={connections:"connections-columns",leads:"leads-columns",linkedInCampaigns:"linkedin-campaigns-columns",inmailCampaigns:"inmail-campaigns-columns",linkedInGroupCampaigns:"linkedin-group-campaigns-columns",linkedInEventCampaigns:"linkedin-event-campaigns-columns",linkedInCompanyCampaigns:"linkedin-company-campaigns-columns",emailCampaigns:"email-campaigns-columns",twitterCampaigns:"twitter-campaigns-columns",multichannelCampaigns:"multichannel-campaigns-columns"},y1="primary.light",Is="reply-rate",_s="Reply rate",As="Replies",Ns="#f62713",Nn=(e,n)=>`/campaign/details/leads/${e}?filter=${n}`,cO=[{key:"title",label:"Job Title"},{key:"company",label:"Company"},{key:"industry",label:"Industry"},{key:"geography",label:"City/Country"},{key:"email",label:"Email"},{key:"phone",label:"Phone"},{key:"connectedAt",label:"Connected on"},{key:"tags",label:"Tags"},{key:"notes",label:"Notes"},{key:"language",label:"Languages"},{key:"skill",label:"Skills"},{key:"school",label:"School"},{key:"field_of_study",label:"Field of Study"},{key:"campaignName",label:"Campaign"}],dO=[{key:"title",label:"Job Title"},{key:"company",label:"Company"},{key:"campaign",label:"Campaign"},{key:"action",label:"Last Action"},{key:"connected",label:"Connected"},{key:"tags",label:"Tags"},{key:"notes",label:"Notes"}],oi=[{key:"views",label:"Views",getValue:({views:e})=>e},{key:"follows",label:"Follows",getValue:({leadsFollowed:e})=>e},{key:"endorsed",label:"Endorsed",getValue:({skillEndorsed:e})=>e},{key:"likes",label:"Likes",getValue:({likedPost:e})=>e},{key:"invites",label:"Invites",color:y1,getLink:({id:e})=>Nn(e,"requested"),getValue:({requestedConnect:e})=>e},{key:"connected",label:"Connected",color:y1,getLink:({id:e})=>Nn(e,"connected"),getValue:({connected:e})=>e},{key:"conversion",label:"Conversion",isPercentage:!0,columnTooltip:"This shows how many people accepted y
2our LinkedIn connection requests out of the ones you invited.",getValue:({requestedConnect:e,connected:n})=>!e||!n?0:`${(n/e*100).toFixed(1)}%`},{key:"withdrawn",label:"Withdrawn",getValue:({withdrawals:e})=>e},{key:"messages",label:"Messages",getValue:({messages:e})=>e},{key:"invites-to-event",label:"Invites to Event",getValue:({invitesToEvent:e})=>e,width:"150px"},{key:"replies",label:As,color:Ns,getLink:({id:e})=>Nn(e,"replies"),getValue:({responded:e})=>e},{key:Is,label:_s,columnTooltip:"This is the percentage of replies received on LinkedIn, based on the total outreach efforts (messages and connection messages).",getValue:({responded:e=0,messages:n=0,connectMessages:s=0})=>{const r=n+s;return r?`${(e/r*100).toFixed(1)}%`:0}}],c5=[{key:"views",label:"Views",getValue:({views:e})=>e},{key:"follows",label:"Follows",getValue:({leadsFollowed:e})=>e},{key:"endorsed",label:"Endorsed",getValue:({skillEndorsed:e})=>e},{key:"likes",label:"Likes",getValue:({likedPost:e})=>e},{key:"inmails",label:"InMails",getValue:({messages:e})=>e},{key:"replies",label:As,color:Ns,getLink:({id:e})=>Nn(e,"inmailReplies"),getValue:({responded:e})=>e},{key:Is,label:_s,columnTooltip:"This is the percentage of replies received on LinkedIn, based on the total outreach efforts (InMails).",getValue:({responded:e=0,messages:n=0})=>n?`${(e/n*100).toFixed(1)}%`:0}],d5=[{key:"views",label:"Views",getValue:({views:e})=>e},{key:"follows",label:"Follows",getValue:({leadsFollowed:e})=>e},{key:"endorsed",label:"Endorsed",getValue:({skillEndorsed:e})=>e},{key:"likes",label:"Likes",getValue:({likedPost:e})=>e},{key:"group-messages",label:"G. Messages",getValue:({groupMessages:e})=>e},{key:"replies",label:As,color:Ns,getLink:({id:e})=>Nn(e,"allReplies"),getValue:({responded:e})=>e},{key:Is,label:_s,columnTooltip:"This is the percentage of replies received on LinkedIn, based on the total outreach efforts (group messages).",getValue:({responded:e=0,messages:n=0,groupMessages:s=0})=>{const r=n+s;return r?`${(e/r*100).toFixed(1)}%`:0}}],u5=[{key:"views",label:"Views",getValue:({views:e})=>e},{key:"follows",label:"Follows",getValue:({leadsFollowed:e})=>e},{key:"endorsed",label:"Endorsed",getValue:({skillEndorsed:e})=>e},{key:"likes",label:"Likes",getValue:({likedPost:e})=>e},{key:"event-messages",label:"Event Messages",getValue:({messages:e})=>e},{key:"replies",label:As,color:Ns,getLink:({id:e})=>Nn(e,"allReplies"),getValue:({responded:e})=>e},{key:Is,label:_s,columnTooltip:"This is the percentage of replies received on LinkedIn, based on the total outreach efforts (event messages).",getValue:({responded:e=0,messages:n=0})=>n?`${(e/n*100).toFixed(1)}%`:0}],p5=[{key:"invites-to-company",label:"Invites to Company",getValue:({invitesToCompany:e})=>e,width:"175px"}],E1=[{key:"sent",label:"Sent",getValue:({firstEmailsSent:e})=>e},{key:"opened",label:"Opened",columnTooltip:"First Emails Opened",getValue:({firstEmailsOpened:e})=>e},{key:"conversion",label:"Conversion",columnTooltip:"This displays the percentage of people who opened your first email among those you initially sent it to.",getValue:({firstEmailsOpened:e,firstEmailsSent:n})=>n?`${(e/n*100).toFixed(1)}%`:0},{key:"bounced",label:"Bounced",getValue:({bounced:e})=>e},{key:"bounced-rate",label:"Bounced rate",columnTooltip:"This indicates the percentage of emails that could not be delivered (bounced) out of the total number of emails sent.",getValue:({bounced:e,emails:n})=>n?`${(e/n*100).toFixed(1)}%`:0},{key:"follow-ups",label:"Follow-ups",getValue:({emails:e=0,firstEmailsSent:n=0})=>e-n},{key:"follow-ups-opened",label:"Opened",columnTooltip:"Followup Emails Opened",getValue:({emailsOpened:e=0,firstEmailsOpened:n=0})=>e-n},{key:"replies",label:As,color:Ns,getLink:({id:e})=>Nn(e,"emailReplies"),getValue:({emailResponded:e})=>e},{key:Is,label:_s,columnTooltip:"This shows the percentage of email responses you received compared to the total number of emails sent.",getValue:({emailResponded:e,emails:n})=>n?`${(e/n*100).toFixed(1)}%`:0}],S1=[{key:"follows",label:"Follows",getValue:({twitterLeadsFollowed:e})=>e},{key:"messages",label:"DM messages",getValue:({dmsSent:e})=>e},{key:"replies",label:As,color:Ns,getLink:({id:e})=>Nn(e,"allReplies"),getValue:({twitterResponded:e})=>e},{key:Is,label:_s,columnTooltip:"This is the percentage of responses to your X (Twitter) direct messages compared to all X (Twitter) messages sent.",getValue:({twitterResponded:e,dmsSent:n})=>n?`${(e/n*100).toFixed(1)}%`:0}],h5="stg.meetalfred.com,meetalfred.com".split(","),cr=window.location.hostname.split(".").slice(1).join(".")||"",Na=window.location.hostname||"",ka=h5.includes(cr)||!cr,Go="https://api.meetalfred.com",B2="https://api.erubheorhgur.com",m5=`${ka?Go:B2}/api/v1`,g5=`${ka?Go:B2}/api/v2`,b1="pk_live_51M0DgRC9lHlkyk3P8dIRPNzf2YBEjAsSnT1ARlDM8MDXZn553PsjDUs2FFnvPhzeQGV76YXyv4vxZLktFwz0ZVPI00h6DcAGBO",L1="pk_live_7JUNaFJDJgBN1XXpz11a7aB6",x5="eak4nsc7",f5="307560299729-tf1ao27tpq5iqpu5q08h16kj5i64mn4o.apps.googleusercontent.com",C5="889616615164198",uO="3MVG9kpNVemoq9c0STaeTYfP1.hvnt6PEq2EuayBfWsTLel.5wEW9TJvRKGPsvu5cXdPf62iMZv5119cVY2aC",pO="56c47bec-363f-4c76-95be-f27c6ebd80d7",hO="https://app-eu1.hubspot.com/oauth/authorize",y5="https://test.salesforce.com",E5="https://login.salesforce.com",S5="sandbox",mO="production",gO=e=>e===S5?y5:E5,H2="https://meetalfred.com",V2="https://admin.meetalfred.com",Ea=1,Mt=25,F2=[10,25,50,100,250,500],xO="DD.MM.YYYY",b5="https://help.meetalfred.com",_t={APPROVED:"approved",MOVED:"moved",IN_OTHER_CAMPAIGN:"in_other_
2campaign",IN_OTHER_MEMBER_CAMPAIGN:"in_other_member_campaign",SKIPPED:"skipped",NO_PICTURE:"no_picture",NO_PREMIUM:"no_premium",NO_OPEN_PROFILE:"no_open_profile",FIRST_CONNECTION:"first_connection",NO_LI_DATA:"no_linkedin_data",NO_TWITTER_DATA:"no_twitter_data",NO_MESSAGE_OPTION:"no_message_option",ABANDONED:"abandoned"},fO=[{key:"name",fieldName:"name"},{key:"company",fieldName:"currentEmployer"},{key:"title",fieldName:"currentTitle"}],L5={[_t.ABANDONED]:"Abandoned",[_t.IN_OTHER_MEMBER_CAMPAIGN]:"Active in other member campaign",[_t.NO_MESSAGE_OPTION]:"Cannot send message",[_t.IN_OTHER_CAMPAIGN]:"In other campaign",[_t.FIRST_CONNECTION]:"Is first connection",[_t.NO_OPEN_PROFILE]:"Is not open profile",[_t.NO_PREMIUM]:"Is not premium profile",[_t.MOVED]:"Moved to other campaign",[_t.NO_LI_DATA]:"Non-existing profile",[_t.NO_TWITTER_DATA]:"Non-existing X (Twitter) profile",[_t.SKIPPED]:"Removed from the campaign",[_t.NO_PICTURE]:"Without profile picture"},le={VIEWED:"viewed",ALREADY_CONNECTED:"already connected",CONNECTED:"connected",COULD_NOT_FOLLOW:"could not follow-up",FOLLOWED_AFTER_CONNECT:"followed up after connect",FOUND:"found",INMAIL_MESSAGE_SENT:"InMail Message sent",CREDIT_INMAIL_MESSAGE_SENT:"Credit InMail Message sent",INMAIL_SKIPPED:"InMail skipped",LINKEDIN_REPLY_DETECTED:"linkedin reply detected",MESSAGE_SENT:"Message sent",REQUESTED_CONNECT:"requested connect",VERIFIED_UPLOADED_LEAD:"verified uploaded lead",EMAILED:"emailed",EMAIL_REPLY_DETECTED:"Email reply detected",EMAILED_POSTPONED:"emailed postponed",CONNECT_REQUEST_POSTPONED:"Connect request postponed",ENDORSED_PROFILE:"Endorsed a profile",USER_INTERACTION_DETECTED:"user interaction detected",FOLLOWED_PROFILE:"Followed a profile",INVITE_WITHDRAWN:"invite withdrawn",NO_EMAIL_FOUND:"no email found",EMAIL_OPENED:"Email opened",COULDNT_SEND_MAIL:"Couldn't send mail",COULD_NOT_RUN_ACTION:"Could not run action",JOB_CHANGE:"JOB_CHANGE",EMAIL_BOUNCED:"Email bounced",UNABLE_SEND_MESSAGE:"Unable to send message",WORK_ANNIVERSARY:"WORK_ANNIVERSARY",COULD_NOT_CONNECT_USER:"Could not connect user",BIRTHDAY:"BIRTHDAY",RETURNED_TO_CAMPAIGN:"Returned to campaign",GROUP_MESSAGE_SENT:"Group Message sent",EMAIL_SKIPPED:"Email skipped",ENGAGED_PROFILE:"engaged profile",TWITTER_MESSAGE_SENT:"Twitter Message sent",TWITTER_REPLY_DETECTED:"twitter reply detected",UNABLE_TO_FOLLOW_ON_TWITTER:"Unable to follow on Twitter",UNABLE_TO_SEND_DIRECT_MESSAGE:"Unable to send Direct message",INMAIL_REPLY_DETECTED:"InMail reply detected",LEAD_FOLLOWED_IN_TWITTER:"Lead Followed in Twitter",EVENT_MESSAGE_SENT:"Event Message sent",ALREADY_INVITED:"already invited",MOVED_TO_CAMPAIGN:"moved to campaign",MESSAGE_ALREADY_SENT:"Message already sent",USER_UNSUBSCRIBED_FROM_EMAIL:"user unsubscribed from email",SKILL_ENDORSEMENT:"SKILL_ENDORSEMENT",LEAD_POSTPONED:"Lead postponed",MESSAGE_POSTPONED:"Message postponed",LIKED_POST:"Liked a post",TWITTER_HANDLE_SYNCED:"twitter_handle synced",INVITE_TO_COMPANY_SENT:"Invite to company sent",INVITE_TO_COMPANY_FAILED:"Invite to company failed",CHAINED_MESSAGES_SENT:"Chained messages sent",UNABLE_TO_SEND_CHAINED_MESSAGE:"Unable to send chained messages"},CO=[{key:"name",fieldName:"firstName"},{key:"company",fieldName:"companyName"},{key:"title",fieldName:"title"},{key:"industry",fieldName:"industryName"},{key:"connectedAt",fieldName:"connectedAt"},{key:"address",fieldName:"address"},{key:"email",fieldName:"email"},{key:"phone",fieldName:"phone"}],li={[le.FOUND]:"Lead Found",[le.ALREADY_CONNECTED]:"Already Connected",[le.CONNECTED]:"Connected",[le.COULD_NOT_FOLLOW]:"Could not send Follow up",[le.FOLLOWED_AFTER_CONNECT]:"Follow up message sent after Connecting",[le.INMAIL_MESSAGE_SENT]:"InMail Message sent",[le.CREDIT_INMAIL_MESSAGE_SENT]:"Credit InMail Message sent",[le.INMAIL_SKIPPED]:"InMail skipped",[le.LINKEDIN_REPLY_DETECTED]:"LinkedIn reply detected",[le.MESSAGE_SENT]:"Message sent",[le.REQUESTED_CONNECT]:"Invited",[le.VERIFIED_UPLOADED_LEAD]:"Lead verified",[le.VIEWED]:"Profile viewed",[le.EMAILED]:"Email Sent",[le.EMAIL_REPLY_DETECTED]:"Email reply detected",[le.EMAILED_POSTPONED]:"Email postponed",[le.CONNECT_REQUEST_POSTPONED]:"Connect request postponed",[le.ENDORSED_PROFILE]:"Endorsed a profile",[le.USER_INTERACTION_DETECTED]:"User interaction detected",[le.FOLLOWED_PROFILE]:"Followed a profile",[le.INVITE_WITHDRAWN]:"Invite withdrawn",[le.NO_EMAIL_FOUND]:"No email found",[le.EMAIL_OPENED]:"Email opened",[le.COULDNT_SEND_MAIL]:"Could not send mail",[le.COULD_NOT_RUN_ACTION]:"Could not run action",[le.EMAIL_BOUNCED]:"Email bounced",[le.UNABLE_SEND_MESSAGE]:"Unable to send message",[le.COULD_NOT_CONNECT_USER]:"Could not connect user",[le.RETURNED_TO_CAMPAIGN]:"Returned to campaign",[le.GROUP_MESSAGE_SENT]:"Group message sent",[le.ENGAGED_PROFILE]:"Engaged profile",[le.EMAIL_SKIPPED]:"Email skipped",[le.TWITTER_MESSAGE_SENT]:"X (Twitter) Message sent",[le.TWITTER_REPLY_DETECTED]:"X (Twitter) reply detected",[le.UNABLE_TO_FOLLOW_ON_TWITTER]:"Unable to follow on X (Twitter)",[le.UNABLE_TO_SEND_DIRECT_MESSAGE]:"Unable to send Direct message",[le.INMAIL_REPLY_DETECTED]:"InMail reply detected",[le.LEAD_FOLLOWED_IN_TWITTER]:"Lead Followed in X (Twitter)",[le.EVENT_MESSAGE_SENT]:"Event Message sent",[le.ALREADY_INVITED]:"Invite already sent",[le.MOVED_TO_CAMPAIGN]:"Moved to campaign",[le.MESSAGE_ALREADY_SENT]:"Message already sent",[le.USER_UNSUBSCRIBED_FROM_EMAIL]:"User unsubscribed from email",[le.LEAD_POSTPONED]:"Unable to resend invitation",[le.MESSAGE_POSTPONED]:"Message postponed",[le.LIKED_POST]:"Liked a post",[le.TWITTER_HANDLE_SYNCED]:"X (Twitter) handle synced",[le.CHAINED_MESSAGES_SENT]:"Chained messages sent",[le.UNABLE_TO_SEND_CHAINED_MESSAGE]:"Unable to send chained messages",[le.WORK_ANNIVERSARY]:"Work anniversary action",[le.BIRTHDAY]:"Birthday action",[le.SKILL_ENDORSEMENT]:"Skill Endorsement action",[le.JOB_CHANGE]:"Job change action"},Es={SET_CONVERSATION:"SET_CONVERSATION",SET_ME:"SET_ME",SET_FILTER_TYPE:"SET_FILTER_TYPE"},fn="token",Cn={xmasProSpecial2024:"2024-xmas-pro-special",salesForce:"sales-force",hubspot:"hubspot",customProxy:"custom-proxy",wlDirectOutlookConnect:"wl-direct-outlook-connect",connectionsWithoutLinkedin:"connections-without-linkedin",summerSale2026:"summer-sale-2026",sequenceTree:"sequence-tree",emailReply:"email-reply"},X={referAndSave:0,whiteLabel:1,exportTeamStats:2,teamStats:3,impersonate:4,manageTeam:5,teamMembers:6,teamGroups:7,teamGroup:8,teamSettings:9,zappierAndWebhook:10,integrations:11,SMTPIntegration:12,schedulePosts:13,trendCreation:14,templateCreation:15,templatesTeam:16,templatesLibrary:17,templatesAttachments:18,templatesInSequenceStep:19,inbox:20,inmailInbox:21,salesNavigatorInbox:22,inboxAttachments:23,inboxTemplate:24,leadsTags:25,connectionNote:26,connection:27,connections:28,leads:29,exportCSV:30,exportContactsCSV:31,addMoreLeads:32,exportReplies:33,directReply:34,returnToCampaign:35,greetings:36,repliesBulkAction:37,groupMessageCampaignStep:38,eventMessageCampaignStep:39,inMailCampaignStep:40,attachmentInSequenceStep:41,inviteToEventCampaignStep:42,attachmentsUploadLimit:43,CSVSnippets:44,twitterAndEmailCSVCampaign:45,twitterAndEmail1stDegreeCampaign:46,linkedinSNUrlCampaign:47,sequenceTemplates:48,sequenceTeamTemplates:49,linkedInCompanyCampaign:50,linkedInAdsCampaign:51,linkedInNewsletterCampaign:52,linkedInPostCampaign:53,leadFinderCampaign:54,linkedIn1stDegreeCampaign:55,linkedInSNCampaign:56,linkedInCSVUploadCampaign:57,chainedMessages:58,notification:59,notificationSettings:60,salesforce:61,hubspot:62},xe={any:"Unlock this feature by upgrading to one of our plans.",premium:"Experience the full potential of this feature by upgrading to one of our Premium plans.",topLevel:"Upgrade to our Team plan for exclusive benef
2its, and advanced features like this one."},Wn={SET_SE_LIST:0,SET_SELECTED_LEADS:1,SET_FILTERS:2,SET_IS_SEARCHING:3,SET_LEAD_SEARCH_ACTIVE:4,SET_TOTAL_SEARCH_LEADS:5},w5=[{value:"0-1"},{value:"2-10"},{value:"11-50"},{value:"51-200"},{value:"201-500"},{value:"501-1000",label:"501-1,000"},{value:"1001-5000",label:"1,001-5,000"},{value:"5001-10000",label:"5,001-10,000"},{value:"10001-20002",label:"10,000+"}].map(({value:e,label:n})=>({value:e,label:n||e})),T5=xr.map(e=>({value:e[0],label:e[0]})),bt={starter:50,middle:1e3,pro:5e3,agency:1e4},ci=50,j5=20,yO={SEARCH:"lead-finder-search",SAVED_LISTS:"saved-lists"},$2={[X.referAndSave]:{plans:[x.STARTER,x.INDIVIDUAL,x.PERSONAL,x.BASIC,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.whiteLabel]:{tooltip:xe.topLevel,plans:[x.ENTERPRISE,x.AGENCY,x.TEAMS],minSeats:{[x.TEAMS]:5}},[X.exportTeamStats]:{tooltip:xe.topLevel,plans:[x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.teamStats]:{plans:[x.TRIAL,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.impersonate]:{tooltip:xe.topLevel,plans:[x.TRIAL,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.manageTeam]:{plans:[x.TRIAL,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.teamMembers]:{plans:[x.TRIAL,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.teamGroups]:{tooltip:xe.topLevel,plans:[x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.teamGroup]:{plans:[x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.teamSettings]:{tooltip:xe.topLevel,plans:[x.TRIAL,`${x.BUSINESS}-${q.v1}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.zappierAndWebhook]:{tooltip:xe.premium,plans:[x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.integrations]:{tooltip:xe.premium,plans:[x.FREE,x.TRIAL,x.STARTER,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.SMTPIntegration]:{tooltip:xe.premium,plans:[x.PRO,`${x.BUSINESS}-${q.v1}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.schedulePosts]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.trendCreation]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.templateCreation]:{tooltip:xe.premium,plans:[x.FREE,x.TRIAL,x.INDIVIDUAL,x.BASIC,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.templatesTeam]:{tooltip:xe.topLevel,plans:[x.TRIAL,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.templatesLibrary]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.templatesAttachments]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.templatesInSequenceStep]:{tooltip:xe.any,plans:[x.FREE,x.TRIAL,x.INDIVIDUAL,x.BASIC,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.inbox]:{tooltip:xe.any,plans:[x.FREE,x.TRIAL,x.INDIVIDUAL,x.BASIC,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.inmailInbox]:{tooltip:xe.premium,plans:[x.TRIAL,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.salesNavigatorInbox]:{tooltip:xe.premium,plans:[x.TRIAL,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.inboxAttachments]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.inboxTemplate]:{tooltip:xe.any,plans:[x.FREE,x.TRIAL,x.INDIVIDUAL,x.BASIC,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.leadsTags]:{tooltip:xe.any,plans:[x.FREE,x.TRIAL,x.INDIVIDUAL,x.BASIC,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.connectionNote]:{tooltip:xe.any,plans:[x.FREE,x.TRIAL,x.INDIVIDUAL,x.BASIC,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.connection]:{tooltip:xe.premium,plans:[x.FREE,x.BASIC,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.connections]:{tooltip:xe.any,plans:[x.FREE,x.TRIAL,x.INDIVIDUAL,x.BASIC,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.leads]:{tooltip:xe.any,plans:[x.FREE,x.TRIAL,x.INDIVIDUAL,x.BASIC,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.exportCSV]:{tooltip:xe.any,plans:[x.FREE,x.BASIC,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.exportContactsCSV]:{tooltip:xe.any,plans:[x.FREE,x.BASIC,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.addMoreLeads]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.exportReplies]:{tooltip:xe.premium,plans:[x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.directReply]:{tooltip:xe.any,plans:[x.FREE,x.TRIAL,x.INDIVIDUAL,x.BASIC,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.returnToCampaign]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.greetings]:{tooltip:xe.any,plans:[x.FREE,x.TRIAL,x.INDIVIDUAL,x.BASIC,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.repliesBulkAction]:{tooltip:xe.premium,plans:[x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.groupMessageCampaignStep]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.eventMessageCampaignStep]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.inMailCampaignStep]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.attachmentInSequenceStep]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.attachmentsUploadLimit]:{tooltip:xe.premium,plans:[x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.CSVSnippets]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.twitterAndEmailCSVCampaign]:{tooltip:xe.premium,plans:[x.TRIAL,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.linkedIn1stDegreeCampaign]:{tooltip:xe.any,plans:[x.TRIAL,x.BASIC,x.INDIVIDUAL,x.PERSONAL,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.PRO,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.linkedInSNCampaign]:{tooltip:xe.any,plans:[x.TRIAL,x.PERSONAL,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.PRO,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.linkedInCSVUploadCampaign]:{tooltip:xe.any,plans:[x.FREE,x.TRIAL,x.BASIC,x.PERSONAL,x.STARTER,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.PRO,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.twitterAndEmail1stDegreeCampaign]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.linkedinSNUrlCampaign]:{tooltip:xe.premium,plans:[x.TRIAL,x.PERSONAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.sequenceTemplates]:{tooltip:xe.premium,plans:[x.FREE,x.BASIC,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.sequenceTeamTemplates]:{tooltip:xe.topLevel,plans:[`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.inviteToEventCampaignStep]:{tooltip:xe.premium,plans:[x.TRIAL,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.PRO,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.linkedInCompanyCampaign]:{tooltip:xe.premium,plans:[x.TRIAL,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.PRO,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.linkedInAdsCampaign]:{tooltip:xe.premium,plans:[x.TRIAL,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.PRO,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.linkedInNewsletterCampaign]:{tooltip:xe.premium,plans:[x.TRIAL,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.PRO,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.linkedInPostCampaign]:{tooltip:xe.premium,plans:[x.TRIAL,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.PRO,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.leadFinderCampaign]:{tooltip:xe.any,plans:[x.FREE,x.TRIAL,x.BASIC,x.STARTER,x.INDIVIDUAL,x.PERSONAL,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.PRO,x.ENTERPRISE,x.AGENCY,x.TEAMS],limits:{[x.FREE]:50,[x.TRIAL]:50,[x.BASIC]:50,[x.STARTER]:50,[x.INDIVIDUAL]:50,[x.PERSONAL]:50,[x.PRO]:100,[`${x.BUSINESS}-${q.v1}`]:100,[`${x.BUSINESS}-${q.v2}
2`]:100,[x.ENTERPRISE]:500,[x.AGENCY]:500,[x.TEAMS]:500},searchLimits:{[x.FREE]:bt.starter,[x.TRIAL]:bt.starter,[x.STARTER]:bt.starter,[x.BASIC]:bt.middle,[x.INDIVIDUAL]:bt.middle,[x.PERSONAL]:bt.middle,[x.PRO]:bt.pro,[`${x.BUSINESS}-${q.v1}`]:bt.pro,[`${x.BUSINESS}-${q.v2}`]:bt.pro,[x.ENTERPRISE]:bt.agency,[x.AGENCY]:bt.agency,[x.TEAMS]:bt.agency}},[X.chainedMessages]:{tooltip:xe.topLevel,plans:[x.TEAMS,x.ENTERPRISE,x.AGENCY]},[X.notification]:{tooltip:xe.premium,plans:[x.TRIAL,x.FREE,x.STARTER,x.INDIVIDUAL,x.PERSONAL,x.PRO,x.BASIC,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.notificationSettings]:{tooltip:xe.premium,plans:[x.TRIAL,x.PRO,`${x.BUSINESS}-${q.v1}`,`${x.BUSINESS}-${q.v2}`,x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.salesforce]:{tooltip:xe.topLevel,plans:[x.ENTERPRISE,x.AGENCY,x.TEAMS]},[X.hubspot]:{tooltip:xe.topLevel,plans:[x.ENTERPRISE,x.AGENCY,x.TEAMS]}},v5=["text/javascript"],I5=1,_5=5,EO={linkedinTwitter:15*1024*1024,linkedin:15*1024*1024,facebook:30*1024*1024,twitter:5*1024*1024,instagram:8*1024*1024},A5="________",Br={name:"",userName:"",password:"",domain:"",port:""},N5=["English","Spanish","French","German",...["Arabic","Portuguese","Chinese","Italian","Russian","Dutch","Turkish","Tagalog","Polish","Korean","Japanese","Malay","Norwegian","Danish","Romanian","Swedish","Bahasa Indonesia","Czech"].sort((e,n)=>e.localeCompare(n))],k5={ab:{name:"Abkhaz"},aa:{name:"Afar"},af:{name:"Afrikaans"},ak:{name:"Akan"},sq:{name:"Albanian"},am:{name:"Amharic"},ar:{name:"Arabic"},an:{name:"Aragonese"},hy:{name:"Armenian"},as:{name:"Assamese"},av:{name:"Avaric"},ae:{name:"Avestan"},ay:{name:"Aymara"},az:{name:"Azerbaijani"},bm:{name:"Bambara"},ba:{name:"Bashkir"},eu:{name:"Basque"},be:{name:"Belarusian"},bn:{name:"Bengali"},bh:{name:"Bihari"},bi:{name:"Bislama"},bs:{name:"Bosnian"},br:{name:"Breton"},bg:{name:"Bulgarian"},my:{name:"Burmese"},ca:{name:"Catalan; Valencian"}
2,ch:{name:"Chamorro"},ce:{name:"Chechen"},ny:{name:"Chichewa; Chewa; Nyanja"},zh:{name:"Chinese"},cv:{name:"Chuvash"},kw:{name:"Cornish"},co:{name:"Corsican"},cr:{name:"Cree"},hr:{name:"Croatian"},cs:{name:"Czech"},da:{name:"Danish"},dv:{name:"Divehi; Dhivehi; Maldivian;"},nl:{name:"Dutch"},en:{name:"English"},eo:{name:"Esperanto"},et:{name:"Estonian"},ee:{name:"Ewe"},fo:{name:"Faroese"},fj:{name:"Fijian"},fi:{name:"Finnish"},fr:{name:"French"},ff:{name:"Fula; Fulah; Pulaar; Pular"},gl:{name:"Galician"},ka:{name:"Georgian"},de:{name:"German"},el:{name:"Greek, Modern"},gn:{name:"Guaraní"},gu:{name:"Gujarati"},ht:{name:"Haitian; Haitian Creole"},ha:{name:"Hausa"},he:{name:"Hebrew (modern)"},hz:{name:"Herero"},hi:{name:"Hindi"},ho:{name:"Hiri Motu"},hu:{name:"Hungarian"},ia:{name:"Interlingua"},id:{name:"Indonesian"},ie:{name:"Interlingue"},ga:{name:"Irish"},ig:{name:"Igbo"},ik:{name:"Inupiaq"},io:{name:"Ido"},is:{name:"Icelandic"},it:{name:"Italian"},iu:{name:"Inuktitut"},ja:{name:"Japanese"},jv:{name:"Javanese"},kl:{name:"Kalaallisut, Greenlandic"},kn:{name:"Kannada"},kr:{name:"Kanuri"},ks:{name:"Kashmiri"},kk:{name:"Kazakh"},km:{name:"Khmer"},ki:{name:"Kikuyu, Gikuyu"},rw:{name:"Kinyarwanda"},ky:{name:"Kirghiz, Kyrgyz"},kv:{name:"Komi"},kg:{name:"Kongo"},ko:{name:"Korean"},ku:{name:"Kurdish"},kj:{name:"Kwanyama, Kuanyama"},la:{name:"Latin"},lb:{name:"Luxembourgish, Letzeburgesch"},lg:{name:"Luganda"},li:{name:"Limburgish, Limburgan, Limburger"},ln:{name:"Lingala"},lo:{name:"Lao"},lt:{name:"Lithuanian"},lu:{name:"Luba-Katanga"},lv:{name:"Latvian"},gv:{name:"Manx"},mk:{name:"Macedonian"},mg:{name:"Malagasy"},ms:{name:"Malay"},ml:{name:"Malayalam"},mt:{name:"Maltese"},mi:{name:"Māori"},mr:{name:"Marathi (Marāṭhī)"},mh:{name:"Marshallese"},mn:{name:"Mongolian"},na:{name:"Nauru"},nv:{name:"Navajo, Navaho"},nb:{name:"Norwegian Bokmål"},nd:{name:"North Ndebele"},ne:{name:"Nepali"},ng:{name:"Ndonga"},nn:{name:"Norwegian Nynorsk"},no:{name:"Norwegian"},ii:{name:"Nuosu"},nr:{name:"South Ndebele"},oc:{name:"Occitan"},oj:{name:"Ojibwe, Ojibwa"},cu:{name:"Old Church Slavonic, Church Slavic, Church Slavonic, Old Bulgarian, Old Slavonic"},om:{name:"Oromo"},or:{name:"Oriya"},os:{name:"Ossetian, Ossetic"},pa:{name:"Panjabi, Punjabi"},pi:{name:"Pāli"},fa:{name:"Persian"},pl:{name:"Polish"},ps:{name:"Pashto, Pushto"},pt:{name:"Portuguese"},qu:{name:"Quechua"},rm:{name:"Romansh"},rn:{name:"Kirundi"},ro:{name:"Romanian, Moldavian, Moldovan"},ru:{name:"Russian"},sa:{name:"Sanskrit (Saṁskṛta)"},sc:{name:"Sardinian"},sd:{name:"Sindhi"},se:{name:"Northern Sami"},sm:{name:"Samoan"},sg:{name:"Sango"},sr:{name:"Serbian"},gd:{name:"Scottish Gaelic; Gaelic"},sn:{name:"Shona"},si:{name:"Sinhala, Sinhalese"},sk:{name:"Slovak"},sl:{name:"Slovene"},so:{name:"Somali"},st:{name:"Southern Sotho"},es:{name:"Spanish; Castilian"},su:{name:"Sundanese"},sw:{name:"Swahili"},ss:{name:"Swati"},sv:{name:"Swedish"},ta:{name:"Tamil"},te:{name:"Telugu"},tg:{name:"Tajik"},th:{name:"Thai"},ti:{name:"Tigrinya"},bo:{name:"Tibetan Standard, Tibetan, Central"},tk:{name:"Turkmen"},tl:{name:"Tagalog"},tn:{name:"Tswana"},to:{name:"Tonga (Tonga Islands)"},tr:{name:"Turkish"},ts:{name:"Tsonga"},tt:{name:"Tatar"},tw:{name:"Twi"},ty:{name:"Tahitian"},ug:{name:"Uighur, Uyghur"},uk:{name:"Ukrainian"},ur:{name:"Urdu"},uz:{name:"Uzbek"},ve:{name:"Venda"},vi:{name:"Vietnamese"},vo:{name:"Volapük"},wa:{name:"Walloon"},cy:{name:"Welsh"},wo:{name:"Wolof"},fy:{name:"Western Frisian"},xh:{name:"Xhosa"},yi:{name:"Yiddish"},yo:{name:"Yoruba"},za:{name:"Zhuang, Chuang"}},di={NOTICE:"notice",PERMANENT:"permanent",TEMPORAL:"temporal"},It={loginError:"LOGIN_ERROR",resetPasswordView:"RESET_PASSWORD_VIEW",somethingUnexpected:"SOMETHING_UNEXPECTED_HAPPENED",serverUnavailable:"SERVER_UNAVAILABLE",captchaDidNotAppear:"CAPTCHA_DID_NOT_APPEAR",errorCaptchaUnsolvable:"ERROR_CAPTCHA_UNSOLVABLE",captchaError:"CAPTCHA_ERROR",submitRetriesExceeded:"SUBMIT_RETRIES_EXCEEDED",captchaUnsupported:"CAPTCHA_UNSUPPORTED",errorUnknown:"ERROR_UNKNOWN",requestRetriesExceeded:"REQUEST_RETRIES_EXCEEDED",errorTaskTimeout:"ERROR_TASK_TIMEOUT",errorCaptchaSolveFailed:"ERROR_CAPTCHA_SOLVE_FAILED",errorZeroBalance:"ERROR_ZERO_BALANCE",secondCaptchaDetected:"SECOND_CAPTCHA_DETECTED"},Nt={ALL:"",UNREAD:"UNREAD",ARCHIVE:"ARCHIVE",ARCHIVED:"ARCHIVED",TAGGED:"TAGGED",INMAIL:"INMAIL",REPL
2IES:"REPLIES"},mn={UNREAD:"unread",ARCHIVE:"archive",UNARCHIVE:"unarchive",DELETE:"delete"},oo={MEMBER_TO_MEMBER:"MEMBER_TO_MEMBER",SPONSORED_INMAIL:"SPONSORED_INMAIL",SPONSORED_MESSAGE:"SPONSORED_MESSAGE"},Rn={memberToMember:"MEMBER_TO_MEMBER",participantChange:"PARTICIPANT_CHANGE",systemMessage:"SYSTEM_MESSAGE",sponsoredMessage:"SPONSORED_MESSAGE",sponsoredInmail:"SPONSORED_INMAIL"},SO={INMAIL_DECLINE:"INMAIL_DECLINE"},Y={SIGNATURE:"SIGNATURE",USE_EMAIL_ALIAS:"USE_EMAIL_ALIAS",CREATE_TREND:"CREATE_TREND",DELETE_TREND:"DELETE_TREND",POST_BY:"POST_BY",POST_AUDIENCE:"POST_AUDIENCE",CREATE_TAG:"CREATE_TAG",UPDATE_TAG:"UPDATE_TAG",DELETE_TAG:"DELETE_TAG",DELETE_TEMPLATE:"DELETE_TEMPLATE",VIEW_TEMPLATE:"VIEW_TEMPLATE",INTEGRATIONS:"INTEGRATIONS",DELETE_CONVERSATION:"DELETE_CONVERSATION",ADD_CONNECTIONS_TAGS:"ADD_CONNECTIONS_TAGS",DELETE_LEAD_TAG:"DELETE_LEAD_TAG",DELETE_TEAM_MEMBER:"DELETE_TEAM_MEMBER",SELECT_CONNECTION_DEGREE:"SELECT_CONNECTION_DEGREE",CAMPAIGN_KEYWORDS:"CAMPAIGN_KEYWORDS",SELECT_PROFILE_LANGUAGE:"SELECT_PROFILE_LANGUAGE",AUTOCOMPLETE_SEARCH:"AUTOCOMPLETE_SEARCH",CHOOSE_TEMPLATE:"CHOOSE_TEMPLATE",CONFIRM_INVITATION_TO_TEAM:"CONFIRM_INVITATION_TO_TEAM",EXPORT_LEAD_CSV:"EXPORT_LEAD_CSV",EXPORT_REPLIES:"EXPORT_REPLIES",TEAM_GROUP_CREATE:"TEAM_GROUP_CREATE",VIEW_LEAD:"VIEW_LEAD",TEAM_GROUP_UPDATE:"TEAM_GROUP_UPDATE",TEAM_GROUP_DELETE:"TEAM_GROUP_DELETE",CHANGE_EMAIL:"CHANGE_EMAIL",PAUSE_SUBSCRIPTION:"PAUSE_SUBSCRIPTION",UNPAUSE_SUBSCRIPTION:"UNPAUSE_SUBSCRIPTION",CANCEL_SUBSCRIPTION:"CANCEL_SUBSCRIPTION",CANCEL_SUBSCRIPTION_OPTIONS:"CANCEL_SUBSCRIPTION_OPTIONS",CANCEL_SUBSCRIPTION_FORM:"CANCEL_SUBSCRIPTION_FORM",SUBSCRIPTION_CANCELED:"SUBSCRIPTION_CANCELED",SUBSCRIPTION_PAUSED:"SUBSCRIPTION_PAUSED",CANCELLATION_DISCOUNT_APPLIED:"CANCELLATION_DISCOUNT_APPLIED",CANCELLATION_DISCOUNT:"CANCELLATION_DISCOUNT",INVITE:"INVITE",UPDATE_CREDIT_CARD:"UPDATE_CREDIT_CARD",SAVE_BILLING_CYCLE:"SAVE_BILLING_CYCLE",RENEWAL_PROMO:"RENEWAL_PROMO",RENEWAL_PROMO_CONFIRM:"RENEWAL_PROMO_CONFIRM",RENEWAL_PROMO_SUCCESS:"RENEWAL_PROMO_SUCCESS",DOWNGRADE_ROLE:"DOWNGRADE_ROLE",RESCHEDULE_POST:"RESCHEDULE_POST",RESTART_CAMPAIGN_SEARCH:"RESTART_CAMPAIGN_SEARCH",ADD_LEADS_TAGS:"ADD_LEADS_TAGS",EXPORT_CONTACTS:"EXPORT_CONTACTS",EXPORT_PROCESSING:"EXPORT_PROCESSING",TEST_SMTP:"TEST_SMTP",EXPORT_TEAM_STATS_CSV:"EXPORT_TEAM_STATS_CSV",EXPORT_UNSUBSCRIBED_EMAILS_CSV:"EXPORT_UNSUBSCRIBED_EMAILS_CSV",EXPORT_CAMPAIGN_ACTIVITY_CSV:"EXPORT_CAMPAIGN_ACTIVITY_CSV",BILLING_HISTORY:"BILLING_HISTORY",SET_PASSWORD:"SET_PASSWORD",SEND_TEST_EMAIL:"SEND_TEST_EMAIL",VIEW_SEQUENCE_TEMPLATE:"VIEW_SEQUENCE_TEMPLATE",CHOOSE_SEQUENCE_TEMPLATE:"CHOOSE_SEQUENCE_TEMPLATE",SAVE_AS_SEQUENCE_TEMPLATE:"SAVE_AS_SEQUENCE_TEMPLATE",INVITE_MEMBER:"INVITE_MEMBER",TEAM_NAME:"TEAM_NAME",UPDATE_CAMPAIGN_NAME:"UPDATE_CAMPAIGN_NAME",CHOOSE_CAMPAIGN:"CHOOSE_CAMPAIGN",CHOOSE_CAMPAIGN_SAVED_LIST:"CHOOSE_CAMPAIGN_SAVED_LIST",SAVE_LEAD_FINDER_LIST:"SAVE_LEAD_FINDER_LIST",DELETE_SAVED_LIST:"DELETE_SAVED_LIST",SAVE_LEAD_FINDER_FILTER:"SAVE_LEAD_FINDER_FILTER",EDIT_LEAD_FINDER_FILTER:"EDIT_LEAD_FINDER_FILTER",DELETE_LEAD_FINDER_FILTER:"DELETE_LEAD_FINDER_FILTER",INSERT_LINK:"INSERT_LINK",DELETE_SEQUENCE_TREE_BLOCK:"DELETE_SEQUENCE_TREE_BLOCK"},an=240,gn="ease-out",yr=an,R5=1300,te={ERROR:0,WARN:1,LINKEDIN_ERROR:2,TRIAL:3,DEACTIVATED:4,OUTSIDE_SCHEDULED:5,LINKEDIN_MAX_PENDING_INVITES:6,LIMITED_CONNECTIONS_REQUESTS:7,LINKEDIN_PASSWORD_RESET:8,LIMIT_OF_LI_CONNECTIONS:9,BOT_RECONNECT_STATUS:10,OUTLOOK_INTEGRATION_ERROR:11,LI_INVITES_RESTRICTION:12,FACEBOOK_INTEGRATION_ERROR:13,SUBSCRIPTION_CANCELLED:14,SUBSCRIPTION_PAUSED:15,SUBSCRIPTION_RENEWAL_REMINDER:16,ACCOUNT_BLOCKED:17},it={SUCCESS:"success",WARNING:"warning",ERROR:"error",NOTICE:"notice"},bO={USER:"user"},M5={LINKEDIN_DISCONNECTED:"linkedin_disconnected"},LO={FACEBOOK:"facebook",TWITTER:"twitter",LINKEDIN:"linkedin",INSTAGRAM:"instagram"},hn={PUBLISHED:"published",PENDING:"pending",ARCHIVED:"archived",QUEUED:"queued",SKIPPED:"skipped",DELETED:"platform_deleted",INVALID:"invalid",EXECUTING:"executing"},Yt={PAYLOAD_TOO_LONG:"payload_too_long",INSTAGRAM_UPLOAD_ERROR:"instagram_upload_error",INSTAGRAM_SPAM:"instagram_spam",INSTAGRAM_DAILY_LIMIT:"instagram_daily_limit",INSTAGRAM_RESTRICTED:"instagram_restricted",INVALID_VIDEO_FORMAT:"invalid_video_format",INSTAGRAM_INVALID_PHOTO_FORMAT:"instagram_invalid_photo_format",INSTAGRAM_INVALID_ASPECT_RATIO:"instagram_invalid_aspect_ratio",INSTAGRAM_INVALID_CAPTION:"instagram_invalid_caption"},ct={INVALID_ASPECT_RATIO:"invalid_aspect_ratio",TWITTER_IMAGE_SIZE_ERROR:"twitter_image_size_error",TWITTER_VIDEO_SIZE_ERROR:"twitter_video_size_error",TWITTER_VIDEO_DURATION_ERROR:"twitter_video_duration_error",INVA
2LID_TWITTER_ASPECT_RATIO:"invalid_twitter_aspect_ratio",INSTAGRAM_IMAGE_SIZE_ERROR:"instagram_image_size_error",INSTAGRAM_VIDEO_SIZE_ERROR:"instagram_video_size_error",INSTAGRAM_VIDEO_WIDTH_ERROR:"instagram_video_width_error",INSTAGRAM_VIDEO_TYPE_ERROR:"instagram_video_type_error",INSTAGRAM_VIDEO_DURATION_ERROR:"instagram_video_duration_error",INSTAGRAM_INVALID_VIDEO_CODEC:"instagram_invalid_video_codec",LINKEDIN_IMAGE_SIZE_ERROR:"LINKEDIN_IMAGE_SIZE_ERROR",LINKEDIN_IMAGE_DIMENSION_ERROR:"linkedin_image_dimension_error",LINKEDIN_IMAGE_INVALID_FORMAT:"linkedin_image_invalid_format",LINKEDIN_VIDEO_SIZE_ERROR:"linkedin_video_size_error",LINKEDIN_VIDEO_DURATION_ERROR:"linkedin_video_duration_error",LINKEDIN_DOCUMENT_SIZE_ERROR:"LINKEDIN_DOCUMENT_SIZE_ERROR",LINKEDIN_VIDEO_RESOLUTION_RANGE_ERROR:"LINKEDIN_VIDEO_RESOLUTION_RANGE_ERROR",FACEBOOK_IMAGE_SIZE_ERROR:"FACEBOOK_IMAGE_SIZE_ERROR",FACEBOOK_VIDEO_SIZE_ERROR:"facebook_video_size_error",FACEBOOK_VIDEO_DURATION_ERROR:"facebook_video_duration_error"},bn={instagram:2200,twitter:280,linkedin:3e3,facebook:63206},wO={instagram:1e8,twitter:512e6,linkedin:10485760,facebook:4294967296},TO={instagram:60,twitter:140,linkedin:600,facebook:7200},w1={anyone:"Anyone",connections_only:"Connections only"},T1=5760,P5=`This image is too big. Please upload an image smaller than ${T1}x${T1} px (LinkedIn)`,O5={[ct.INVALID_ASPECT_RATIO]:"Invalid aspect ratio, please try another file",[ct.TWITTER_IMAGE_SIZE_ERROR]:"Maximum size limit is 5MB (X (Twitter))",[ct.TWITTER_VIDEO_SIZE_ERROR]:"Maximum size limit is 512MB (X (Twitter))",[ct.TWITTER_VIDEO_DURATION_ERROR]:"Uploaded video is over 2 mins 20 secs (X (Twitter))",[ct.INVALID_TWITTER_ASPECT_RATIO]:"Invalid aspect ratio, please try another file (X (Twitter))",[ct.INSTAGRAM_IMAGE_SIZE_ERROR]:"Maximum size limit is 8MB (Instagram)",[ct.INSTAGRAM_VIDEO_SIZE_ERROR]:"Maximum size limit is 100Mb (Instagram)",[ct.INSTAGRAM_VIDEO_WIDTH_ERROR]:"Maximum video width is 1920 (Instagram)",[ct.INSTAGRAM_VIDEO_TYPE_ERROR]:"Instagram accepts MP4 and MOV video types only",[ct.INSTAGRAM_VIDEO_DURATION_ERROR]:"Uploaded video duration should be between 3 and 60 seconds (Instagram)",[ct.INSTAGRAM_INVALID_VIDEO_CODEC]:"Uploaded video codec is not supported. HEVC or H264 are supported (Instagram)",[ct.LINKEDIN_IMAGE_SIZE_ERROR]:"Maximum size limit is 15MB (LinkedIn)",[ct.LINKEDIN_IMAGE_DIMENSION_ERROR]:P5,[ct.LINKEDIN_VIDEO_SIZE_ERROR]:"Maximum size limit is 10MB (LinkedIn)",[ct.LINKEDIN_VIDEO_DURATION_ERROR]:"Uploaded video is over 10 mins (LinkedIn)",[ct.LINKEDIN_DOCUMENT_SIZE_ERROR]:"Maximum size limit is 100MB (LinkedIn)",[ct.LINKEDIN_VIDEO_RESOLUTION_RANGE_ERROR]:"Resolution range for video should be 256x144 - 4096x2304 (LinkedIn)",[ct.LINKEDIN_IMAGE_INVALID_FORMAT]:"This image format is not supported. Supported formats are: png, jpeg, gif. (Linkedin)",[ct.FACEBOOK_IMAGE_SIZE_ERROR]:"Maximum size limit is 30MB (Facebook)",[ct.FACEBOOK_VIDEO_SIZE_ERROR]:"Maximum size limit is 4GB (Facebook)",[ct.FACEBOOK_VIDEO_DURATION_ERROR]:"Uploaded video is over 120 mins (Facebook)"},D5=e=>Object.entries(ct).filter(([n])=>n.includes("LINKEDIN")).some(([,n])=>O5[n]===e),j1={[Yt.INSTAGRAM_UPLOAD_ERROR]:"Instagram server error. Try again.",[Yt.INSTAGRAM_SPAM]:"Instagram marked this post as spam",[Yt.INSTAGRAM_DAILY_LIMIT]:"You reached instagram daily post limit. Try again tomorrow",[Yt.INSTAGRAM_RESTRICTED]:"Instagram account is inactive or restricted. Reconnect instagram(facebook) integration",[Yt.INVALID_VIDEO_FORMAT]:"Instagram does not support this video format or video codec. Try another video.",[Yt.INSTAGRAM_INVALID_PHOTO_FORMAT]:"Instagram does not support this image format",[Yt.INSTAGRAM_INVALID_ASPECT_RATIO]:"The image's aspect ratio does not fall within Instagram acceptable range. Photo must fall into a 4:5 to 1.91:1 range",[Yt.INSTAGRAM_INVALID_CAPTION]:"Caption is too long for Instagram post",[Yt.PAYLOAD_TOO_LONG]:"This post is skipped, the attachment file is too large."},U5=/^\d*$/i,Ls=/(http|https):\/\/(\w+:?\w*)?(\S+)(:\d+)?(\/|\/([\w#!:.?+=&%!-/]))?/,yn=/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i,B5=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,H5=[{value:"owner",label:"Owner"},{value:"admin",label:"Admin"},{value:"member",label:"Member"}],Jn={personal:"personal",team:"team"},zo=[{value:"first_name",label:"First Name"},{value:"last_name",label:"Last Name"},{value:"company",label:"Company"},{value:"position",label:"Position"},{value:"industry",label:"Industry"}],V5=[{value:"email",label:"Email"},{value:"csv_lastname",label:"Last Name"},{value:"csv_name",label:"name"},{value:"csv_specvideo",label:"Specvideo"},{value:"csv_htmltag",label:"HTML tag"}],F5="/img/testimonials/",qs="United States",nt=e=>`${F5}${e}`,ui=[{name:"Kerrie McGilvray",quote:"Meet Alfred is a great addition to my tool kit it helps me save time each week and keeps me at the for front of my connections minds on linked in and grown my network with the right connections that are engaged. I used to hate growing my network and now its fun and easy. I recommend Meet Alfred to everyone who is looking to grow their audience and connect with them deeply.",country:"Australia",picture:nt("kerrie-mcgilvray.png")},{name:"Nadine Malherbe",quote:"Meet Alfred has streamlined staying in touch with people. I love the automation for birthdays and work anniversaries. Using the tool has helped us to reach out to people in an authentic way that does not feel robotic and can turn automated outreach into real human interactions.",country:"South Africa",picture:nt("nadine-malherbe.png")},{name:"Cosmin G.",quote:"I've been using MeetAlfred for over a year, which has changed how I automate my connections on LinkedIn and book discovery meetings for my business. I went from having 3-4 meetings a month without MeetAlfred to over 5-8 meetings PE
2R Week of quality leads discussions.",country:qs,picture:nt("cosmin-g.png")},{name:"Angela Sim",quote:"Very easy to use. Campaigns are fast to set up on both gmail and Linkedin and they work smoothly. Took me less than 5 minutes to learn the interface and how to use it. So that's great as you really don't want to spend too much time trying to figure out how you can use it, as time is money!",country:"Singapore",picture:nt("angela-sim.png")},{name:"Pandush Lice",quote:"MeetAlfred is a great tool for LinkedIn prospecting. Probably the best out there. It's easy to use and it saves you hours of work. I use this tool to connect with my ideal clients, build a relationship with them and also book meetings. So far it's helped me tremendously.",country:"Albania",picture:nt("pandush-lice.png")},{name:"Walter Akolo",quote:"This is how I automate my LinkedIn outreach efforts. MeetAlfred is an amazing tool that helps with connection requests, sending messages, and even doing multichannel outreach.",country:"Kenya",picture:nt("walter-akolo.png")},{name:"Jan Heinemeyer",quote:"Really great tool. I had trouble with other tools when Linkedin was asking for the 2FA code, but Meet Alfred makes that process really simple. Love the overview of leads and campaigns and don't feel like I need an additional CRM. The only thing I am missing is an AI text generator that helps making the outreach more personal (otherwise 5 stars!).",country:"Germany",picture:nt("jan-heinemeyer.png")},{name:"Justin Fyles",quote:"I've used MeetAlfred for several months as my primary form of LinkedIn outreach. It's been amazing tool, and I have even been able to optimise a campaign to get a 50% conversion rate through an iterative process. The UI is a bit full-on for the small part that I use it for, but their newest redesign does some to help with that. The LinkedIn connection disconnects every couple of weeks, but I presume that's unavoidable. Overall, it's the best out of all of the ones I've evaluated, and I am a happy paying customer.",country:"United Kingdom",picture:nt("justin-fyles.png")},{name:"Kyle Soucy",quote:"MeetAlfred is a great cost effective way to maximize your Linkedin outreach. I would definitely recommend!",country:qs,picture:nt("kyle-soucy.png")},{name:"Federico Almirón",quote:`I have more than 5 years of experience in outbound sales, so you must know that prospection is not just sending emails or making cold calls, it is also LinkedIn, events, etc. I meet Meet Alfred, and together we are doing a great job!
3Just 1 or 2 days in a week I need to create the strategy, execute it and start receiving SQLs. I'm looking forward to all the updates they're building!`,country:"Colombia",picture:nt("federico-almiron.png")},{name:"MA Hakim",quote:`I have more than 5 years of experience in outbound sales, so you must know that prospection is not just sending emails or making cold calls, it is also LinkedIn, events, etc. I meet Meet Alfred, and together we are doing a great job!
4Just 1 or 2 days in a week I need to create the strategy, execute it and start receiving SQLs. I'm looking forward to all the updates they're building!`,country:"Bangladesh",picture:nt("ma-hakim.png")},{name:"Agustín Mendilaharzu",quote:"Meet Alfred helps me a lot prospecting faster, in a more streamline way while keeping a high lead quality.",country:"Argentina",picture:nt("agustin-mendilaharzu.png")},{name:"Sheldon Bernstein",quote:"With all of the AI tools in the market today, the true and real experience comes from the humans that support their product. I was blown away by the simplicity of the Meet Alfred platform, and warmed by the 'human' support behind. Everyone wants to see you succeed. And yes, that might mean you upgrade in the future, but when the ROI is there, and the support to go along with it, that eventually is pleasantly inevitable.",country:qs,picture:nt("sheldon-bernstein.png")},{name:"Julio Bethelmy Castro",quote:"It is a great tool for lead generation and send automated messages for LinkedIn and it has a CRM too.",country:"Venezuela",picture:nt("julio-bethelmy-castro.png")},{name:"Romel Castro",quote:"Working with MeetAlfred is one of the best experiences I have had in my short life. It can transform a social media account from 0% to 100% in just 7 days. He can do whatever I want him to do and without my help completely. I think that the company must be a leader or will become a leader of the companies that manage artificial intelligence.",country:"Mexico",picture:nt("romel-castro.png")},{name:"Melvin Mitchell",quote:"MeetAlfred.com is my secret tool for reaching my business goals It's like having an additional employee that takes care of helping me generate leads. Seriously, I think this will change the game for me and give me back time to focus on what I love. Can't recommend it enough!",country:qs,picture:nt("melvin-m
4itchell.png")},{name:"Mindy",quote:"I've been using MeetAlfred for a while, and I must say, it's genuinely impressive. The user interface is straightforward, making my campaign tasks so much easier. And their customer support is always quick and attentive, addressing all my queries efficiently.",country:"Singapore",picture:nt("mindy.png")},{name:"Kelby Joseph",quote:"Meet Alfred is a great software for business owners, but the aspect I most like is that when I reach out with a question, I get an answer rather quickly. This software has helped transform my business and I'm very grateful.",country:qs,picture:nt("kelby-joseph.png")},{name:"Marcello Curti",quote:"Amazing experience! Perfect customer service, always answers my questions. Very good results, but you have to perfect the master of creating campaigns!",country:"Spain",picture:nt("marcello-curti.png")},{name:"Victoria Ruth Cunanan",quote:"Your software was referred to me by a friend who automates LinkedIn Outreach for clients. The setup was easy and the system is fair in reaching out to my prospects, also has set intervals between connection requests to protect my account from being restricted. 5 Stars!",country:"Philippines",picture:nt("victoria-ruth-cunanan.png")},{name:"Nataliia Zamay",quote:"The multi-channel feature, automatic messages for job anniversaries, birthdays, and InMail campaigns really stood out to me. These features are rare to find in competitors' offerings at similar price points. I've been impressed so far and decided to upgrade to the business package even before the trial period ended.",country:"Ukraine",picture:nt("nataliia-zamay.png")},{name:"Sayeed Afridi",quote:"Recently started using meetalfred and it seems to have solved a major chunk of manual work. The process automation has been great and the way the steps can be defined is amazing. Highly recommended.",country:"Pakistan",picture:nt("sayeed-afridi.png")},{name:"Madalina Blaga",quote:"Fantastic tool to reach out to people for expanding your business. It has made a world of difference in time management as well, and the results are as expected.",country:"Romania",picture:nt("madalina-blaga.png")},{name:"Leonardo Torres",quote:"Meet Alfred is the killer app for Linkedin outbound. It makes absolute sense for an early-stage founder like myself. It gives me the reach I would only be able to get with multiple SDRs.",country:"Brazil",picture:nt("leonardo-torres.png")},{name:"Yana Neycheva",quote:"User-friendly, intuitive, and easy to work with. So far I love it. I enlarged my network with meaningful connections and the best thing it happens fast.",country:"Bulgaria",picture:nt("yana-neycheva.png")}],jO=[{value:"all",label:"All Time"},{value:"last28days",label:"Last 4 weeks"},{value:"last7days",label:"Last 7 days"},{value:"today",label:"Today"}],vO=[{value:"all",label:"All Time"},{value:"last28days",label:"Last 4 weeks"},{value:"last7days",label:"Last 7 days"},{value:"yesterday",label:"Yesterday"},{value:"today",label:"Today"},{value:"custom",label:"Custom"}],$5=1440*60*1e3,G5="DD/MM/YYYY",lo={LATEST:"latest",TOP_MATCH:"top_match"},Kt={OWNER:"owner",ADMIN:"admin",MEMBER:"member"},rr={SET_VERIFICATION:"SET_VERIFICATION",SET_IS_VALIDATION_EXPIRED:"SET_IS_VALIDATION_EXPIRED",CHANGE_DISPLAY_STATE:"CHANGE_DISPLAY_STATE"},v1={EXPIRED:"expired",LIVE:"live",BAD_REQUEST:"bad_request",RESEND_LINK_SUCCESS:"resend_link_success",RESEND_LINK_INVALID:"resend_link_invalid",SUCCESS:"success"},IO={INVALID:"invalid",CONNECTED:"connected",ERROR:"error"},pi={LOGGED_IN:"LOGGED_IN",LOGGED_IN_VERIFICATION:"LOGGED_IN_VERIFICATION",LOGGED_IN_VERIFICATION_2FA:"LOGGED_IN_VERIFICATION_2FA"},I1="/video-library",z5="category",_1=e=>{if(!e)return null;const n=e.match(/\/video\/(\d+)/);return(n==null?void 0:n[1])??null},G2=e=>{if(!e)return I1;const n=new URLSearchParams({[z5]:e});return`${I1}?${n.toString()}`},W5=(e,n=[],s=[])=>{const r=_1(e);if(!r)return{};const a=n.find(o=>_1(o.link)===r);if(!a)return{};const i=s.find(o=>o.id===a.categoryId);return{title:a.name,categoryName:i==null?void 0:i.name}},_O=(e,n=[])=>{if(!e||e==="all")return"all";const s=n.find(o=>String(o.id)===e);if(s)return String(s.id);const r=e.trim().toLowerCase(),a=n.find(o=>o.name.trim().toLowerCase()===r);if(a)return String(a.id);const i=n.find(o=>o.name.trim().toLowerCase().includes(r));return i?String(i.id):"all"},ve={googleSearch:"google_search",aiSearch:"ai_search",socialMedia:"social_media",youtube:"youtube",podcast:"podcast",blogOrArticle:"blog_or_article",referral:"referral",reviewSite:"review_site",onlineAdd:"online_add",other:"other",aiChatGpt:"ai_chat_gpt",aiGemini:"ai_gemini",aiClaude:"ai_claude",aiGoogleAiMo
4de:"ai_google_ai_mode",aiPerplexity:"ai_perplexity",aiOther:"ai_other",skip:"skip"},Lt={[ve.googleSearch]:"Google Search",[ve.aiSearch]:"AI Search",[ve.socialMedia]:"Social Media",[ve.youtube]:"YouTube",[ve.podcast]:"Podcast",[ve.blogOrArticle]:"Blog or Article",[ve.referral]:"Referral",[ve.reviewSite]:"Review site",[ve.onlineAdd]:"Online Ad",[ve.other]:"Other",[ve.aiChatGpt]:"ChatGPT",[ve.aiGemini]:"Gemini",[ve.aiClaude]:"Claude",[ve.aiGoogleAiMode]:"Google AI Mode",[ve.aiPerplexity]:"Perplexity",[ve.aiOther]:"Other",[ve.skip]:"Skip"},AO=[{value:ve.googleSearch,label:Lt[ve.googleSearch]},{value:ve.aiSearch,label:Lt[ve.aiSearch],description:"ChatGPT, Gemini, Claude, etc."},{value:ve.socialMedia,label:Lt[ve.socialMedia],description:"LinkedIn, X, Facebook, Instagram"},{value:ve.youtube,label:Lt[ve.youtube]},{value:ve.podcast,label:Lt[ve.podcast]},{value:ve.blogOrArticle,label:Lt[ve.blogOrArticle]},{value:ve.referral,label:Lt[ve.referral],description:"friend or colleague"},{value:ve.reviewSite,label:Lt[ve.reviewSite],description:"G2, Capterra, TrustPilot"},{value:ve.onlineAdd,label:Lt[ve.onlineAdd]},{value:ve.other,label:Lt[ve.other]}],NO=[{value:ve.aiChatGpt,label:Lt[ve.aiChatGpt]},{value:ve.aiGemini,label:Lt[ve.aiGemini]},{value:ve.aiClaude,label:Lt[ve.aiClaude]},{value:ve.aiGoogleAiMode,label:Lt[ve.aiGoogleAiMode]},{value:ve.aiPerplexity,label:Lt[ve.aiPerplexity]},{value:ve.aiOther,label:Lt[ve.aiOther]}],A1="/welcome",q5="meetalfred:welcomeSurveyCompleted:";var Z5=(e=>(e.BRANDING="branding",e.CUSTOM_DOMAIN="custom_domain",e.CUSTOM_EMAIL="custom_email",e))(Z5||{}),Gn=(e=>(e.WARNING="banner-warning",e.ERROR="banner-error",e))(Gn||{});const We=()=>{const{data:e}=fe(s=>s.team),n=c.useCallback((s,r,a)=>{var p,h,m;if(!(e!=null&&e.plan)&&!(e!=null&&e.hasFreePlan))return[!1,""];const i=e.plan===x.BUSINESS&&`${e.plan}-v${e.planVersion}`||e.hasFreePlan&&x.FREE||e.plan,o=$2[s],l=o.plans||[],u=((p=o==null?void 0:o.minSeats)==null?void 0:p[i])||0,d=l.includes(i)&&u<=(e.seats||1);return r&&o.limits?[d,((h=o.limits)==null?void 0:h[i])||0,d?"":(o==null?void 0:o.tooltip)||""]:a&&o.searchLimits?[d,((m=o.searchLimits)==null?void 0:m[i])||0,d?"":(o==null?void 0:o.tooltip)||""]:[d,d?"":(o==null?void 0:o.tooltip)||""]}
4,[e==null?void 0:e.plan,e==null?void 0:e.seats]);return{isFree:!!(e!=null&&e.hasFreePlan),isTrial:(e==null?void 0:e.plan)===x.TRIAL,isIndividual:(e==null?void 0:e.plan)===x.INDIVIDUAL,isStarter:(e==null?void 0:e.plan)===x.STARTER,isPersonal:(e==null?void 0:e.plan)===x.PERSONAL,isBasic:(e==null?void 0:e.plan)===x.BASIC,isPro:(e==null?void 0:e.plan)===x.PRO,isBusiness:(e==null?void 0:e.plan)===x.BUSINESS,isBusinessV1:`${e==null?void 0:e.plan}-v${e==null?void 0:e.planVersion}`==`${x.BUSINESS}-${q.v1}`,isBusinessV2:`${e==null?void 0:e.plan}-v${e==null?void 0:e.planVersion}`==`${x.BUSINESS}-${q.v2}`,isEnterprise:(e==null?void 0:e.plan)===x.ENTERPRISE,isAgency:(e==null?void 0:e.plan)===x.AGENCY,isTeams:(e==null?void 0:e.plan)===x.TEAMS,isTrialStarted:(e==null?void 0:e.trial)===Yn.STARTED,isDeactivated:!(e!=null&&e.hasFreePlan)&&!(e!=null&&e.hasPaidPlan)&&(e==null?void 0:e.trial)===Yn.ENDED,checkFeature:n}},Y5=new rs,v=o2.create({baseURL:m5}),Wo=o2.create({baseURL:g5}),z2=e=>{const n=Y5.get(fn);return e.headers.setAuthorization(`Bearer ${n}`),e.headers.setAccept("application/json"),e},W2=e=>{var r,a,i,o,l,u,d,p,h,m;const n=(a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.statusCode,s=(i=e==null?void 0:e.response)==null?void 0:i.status;return Promise.reject({name:e.name,message:Array.isArray((l=(o=e==null?void 0:e.response)==null?void 0:o.data)==null?void 0:l.message)?(d=(u=e==null?void 0:e.response)==null?void 0:u.data)==null?void 0:d.message[0]:(h=(p=e==null?void 0:e.response)==null?void 0:p.data)==null?void 0:h.message,statusCode:n??((m=e.config)!=null&&m.useHttpStatusOnError?s:void 0)})};v.interceptors.request.use(z2);Wo.interceptors.request.use(z2);v.interceptors.response.use(e=>e.data,W2);Wo.interceptors.response.use(e=>e.data,W2);const kO=e=>v.post("/auth/forgot-password",{email:e}),RO=({body:e,token:n})=>v.patch(`/auth/set-new-password/${n}`,{password:e.password,passwordConfirmation:e.confirmPassword}),K5=e=>v.get("/auth/microsoft/code-url",{params:{state:e}}),Q5=(e,n)=>v.post(`/auth/${n?"sign-up":"sign-in"}/microsoft`,e),X5=(e,n)=>v.post(`/auth/${n?"sign-up":"sign-in"}/google`,e),MO=e=>v.post("/auth/sign-in",e),J5=e=>v.post("/auth/sign-up",e),PO=()=>v.post("/auth/send-verification-link"),OO=e=>v.patch(`/auth/verify-email/${e}`),DO=e=>v.post(`/auth/exchange/${e}`),e4=()=>v.get("/billing"),t4=()=>v.get("/billing/invoices"),n4=e=>v.post("/billing/subscriptions/pause",e),s4=()=>v.post("/billing/subscriptions/unpause"),r4=()=>v.patch("/billing/subscriptions/resume"),a4=({reason:e,value:n})=>v.patch("/billing/subscriptions/cancel",{reasons:[e],tellUsMore:n}),i4=e=>{var n;return v.patch("/billing/company",{...e,name:e.company,address:{...e.address,zip:(n=e.address)==null?void 0:n.postal_code}})},o4=e=>v.patch("/billing/update-card-details",{paymentMethod:e}),l4=e=>v.post("/billing/subscriptions",e),UO=e=>v.patch("/billing/subscriptions",e),c4=()=>v.patch("/billing/subscriptions/apply-discount"),d4=()=>v.patch("/billing/promo-prolongation"),u4=e=>v.get("/billing/plan-update-invoice",{params:e}),p4=()=>v.get("/billing/upcoming-invoice"),h4=e=>v.post("/billing/subscriptions/close-cancel",{trigger:e}),m4=()=>v.delete("/billing/subscriptions"),g4=e=>v.post("/billing/subscriptions/payment-confirmed",e),BO=()=>v.post("/billing/subscriptions/payment-failed"),x4=e=>v.get("/billing/plan-price",{params:e}),f4=()=>v.get("/billing/cancel-discount"),xn=e=>{if(!e||typeof e!="object")return!1;const n=e,s=Number(n.version)===2;return typeof n.nodes=="object"&&n.nodes!==null&&(s||n.version==null)},co="com.linkedin.voyager.messaging.MessagingMember",Zs="com.linkedin.common.VectorImage",C4="urn:li:fs_miniProfile:",y4="com.linkedin.voyager.messaging.MessagingCompany",E4="urn:li:fs_miniCompany:",N1=e=>e?e.name?e.name:`${e.firstName||""} ${e.lastName||""}`.trim():"",hi=e=>{var r;const n=e==null?void 0:e.artifacts;if(!(n!=null&&n.length))return"";const s=(r=n[n.length-1])==null?void 0:r.fileIdentifyingUrlPathSegment;return s?e!=null&&e.rootUrl?`${e.rootUrl}${s}`:s:""},Hr=e=>e?typeof e=="string"?e:e.text||"":"",S4=e=>{var u,d,p,h,m,f,C;const n=e==null?void 0:e[co],s=e==null?void 0:e[y4],r=s==null?void 0:s.miniCompany,a=n==null?void 0:n.miniProfile;if(r){const E=((u=s==null?void 0:s.alternateImage)==null?void 0:u[Zs])||((d=r==null?void 0:r.alternateImage)==null?void 0:d[Zs])||((p=r==null?void 0:r.picture)==null?void 0:p[Zs]);return{entityUrn:((h=r.entityUrn)==null?void 0:h.replace(E4,""))||"",name:N1(r)||Hr(s==null?void 0:s.alternateName),headline:r.occupation||Hr(s==null?void 0:s.alternateHeadline),imageUrl:hi(E)}}let i=hi((m=a==null?void 0:a.picture)==null?void 0:m[Zs]);
4i||(i=hi((f=n==null?void 0:n.alternateImage)==null?void 0:f[Zs]));const o=N1(a)||Hr(n==null?void 0:n.alternateName),l=(a==null?void 0:a.occupation)||Hr(n==null?void 0:n.alternateHeadline);return{entityUrn:((C=a==null?void 0:a.entityUrn)==null?void 0:C.replace(C4,""))||"",name:o,headline:l,imageUrl:i}},q2=e=>{const n=e.connections??e.leads;return n?n.map(s=>{var a;return{conversationId:(s==null?void 0:s.conversationId)||((a=s==null?void 0:s.userNetwork)==null?void 0:a.conversationId)||"",entityUrn:s==null?void 0:s.entityUrn,name:`${s==null?void 0:s.firstName} ${s==null?void 0:s.lastName}`,headline:"",imageUrl:s==null?void 0:s.picture,unreadCount:0,content:(s==null?void 0:s.replyMessage)||"",isConnected:!0,lastActivityAt:0,isArchived:!1,type:oo.MEMBER_TO_MEMBER}}):[]},b4=e=>{var n;return((n=e.elements)==null?void 0:n.map(s=>{var l,u,d,p,h,m,f,C,E,b,w,I,T,j,L,_,N,A,R,V,O,B,D,M,F,W,ne,$,z,K,re,ae,pe,ie,oe,ke,Oe,Be,De,Ie,_e,Ke,tt,rt,be,Ae,Ge,gt,ye,Re,me,Me,Ze,dt,at,Vt,us,ti,Pr,g1;const r=S4(s.from),a=s.eventContent["com.linkedin.voyager.messaging.event.MessageEvent"],i=s.eventContent["com.linkedin.voyager.messaging.event.ParticipantChangeEvent"],o=((l=s.quickReplyRecommendations)==null?void 0:l.filter($s=>$s.replyType==="TEXT"))||[];return{entityUrn:r.entityUrn,imageUrl:r.imageUrl,createdAt:s.createdAt,replyRecommendations:o,recalledAt:a==null?void 0:a.recalledAt,name:r.name,headline:r.headline,subtype:s.subtype,content:{...a,customContent:(a==null?void 0:a.customContent)&&{...a.customContent["com.linkedin.voyager.messaging.shared.ThirdPartyMedia"],...a.customContent["com.linkedin.voyager.messaging.event.message.spinmail.SpInmailContent"],...(u=a.customContent["com.linkedin.voyager.messaging.event.message.spinmail.SpInmailContent"])==null?void 0:u.subContent["com.linkedin.voyager.messaging.event.message.spinmail.SpInmailStandardSubContent"]},placeholder:((p=(d=a==null?void 0:a.mediaAttachments)==null?void 0:d[0])==null?void 0:p.mediaType)==="AUDIO"&&"Audio message"||((m=(h=a==null?void 0:a.mediaAttachments)==null?void 0:h[0])==null?void 0:m.mediaType)==="VIDEO"&&"Video message"||"",postPreview:{avatar:((j=(T=(I=(w=(b=(E=(C=(f=a==null?void 0:a.feedUpdate)==null?void 0:f.actor)==null?void 0:C.image)==null?void 0:E.attributes)==null?void 0:b[0])==null?void 0:w.miniProfile)==null?void 0:I.picture)==null?void 0:T["com.linkedin.common.VectorImage"])==null?void 0:j.rootUrl)+((B=(O=(V=(R=(A=(N=(_=(L=a==null?void 0:a.feedUpdate)==null?void 0:L.actor)==null?void 0:_.image)==null?void 0:N.attributes)==null?void 0:A[0])==null?void 0:R.miniProfile)==null?void 0:V.picture)==null?void 0:O["com.linkedin.common.VectorImage"])==null?void 0:B.artifacts[0].fileIdentifyingUrlPathSegment),name:(F=(M=(D=a==null?void 0:a.feedUpdate)==null?void 0:D.actor)==null?void 0:M.name)==null?void 0:F.text,degree:($=(ne=(W=a==null?void 0:a.feedUpdate)==null?void 0:W.actor)==null?void 0:ne.supplementaryActorInfo)==null?void 0:$.text,headline:(re=(K=(z=a==null?void 0:a.feedUpdate)==null?void 0:z.actor)==null?void 0:K.description)==null?void 0:re.text,date:(ie=(pe=(ae=a==null?void 0:a.feedUpdate)==null?void 0:ae.actor)==null?void 0:pe.subDescription)==null?void 0:ie.text,authorUrl:(Oe=(ke=(oe=a==null?void 0:a.feedUpdate)==null?void 0:oe.actor)==null?void 0:ke.navigationContext)==null?void 0:Oe.actionTarget,content:(Ie=(De=(Be=a==null?void 0:a.feedUpdate)==null?void 0:Be.commentary)==null?void 0:De.text)==null?void 0:Ie.text,image:((gt=(Ge=(Ae=(be=(rt=(tt=(Ke=(_e=a==null?void 0:a.feedUpdate)==null?void 0:_e.content)==null?void 0:Ke["com.linkedin.voyager.feed.render.ImageComponent"])==null?void 0:tt.images)==null?void 0:rt[0])==null?void 0:be.attributes)==null?void 0:Ae[0])==null?void 0:Ge.vectorImage)==null?void 0:gt.rootUrl)+((ti=(us=(Vt=(at=(dt=(Ze=(Me=(me=(Re=(ye=a==null?void 0:a.feedUpdate)==null?void 0:ye.content)==null?void 0:Re["com.linkedin.voyager.feed.render.ImageComponent"])==null?void 0:me.images)==null?void 0:Me[0])==null?void 0:Ze.attributes)==null?void 0:dt[0])==null?void 0:at.vectorImage)==null?void 0:Vt.artifacts)==null?void 0:us[0])==null?void 0:ti.fileIdentifyingUrlPathSegment)}},participantsChanges:{added:((Pr=i==null?void 0:i.addedParticipants)==null?void 0:Pr.map($s=>{const Gs=$s[co].miniProfile;return`${Gs.firstName} ${Gs.lastName}`}))||[],removed:((g1=i==null?void 0:i.removedParticipants)==null?void 0:g1.map($s=>{const Gs=$s[co].miniProfile;return`${Gs.firstName} ${Gs.lastName}`}))||[]}}}))||[]},L4=e=>{var n;return((n=e.elements)==null?void 0:n.map(s=>{var d,p,h,m,f,C,E;const r=s.participants[0]||"",a=r.indexOf(",NAME_SEARCH"),i=s.participantsResolutionResults[r],o=s.participants[1]||"",l=s.participantsResolutionResults[o],u=s.messages[0];return{conversationId:s.id,entityUrn:a===-1?r.slice(24):r.slice(24,a),name:(i==null?void 0:i.fullName)||"",firstName:i==null?void 0:i.firstName,lastName:i==null?void 0:i.lastName,headline:(i==null?void 0:i.headline)||"",imageUrl:(p=(d=i==null?void 0:i.profilePictureDisplayImage)==null?void 0:d.artifacts)!=null&&p.length?i.profilePictureDisplayImage.artifacts[0].fileIdentifyingUrlPathSegment:((h=i==null?void 0:i.profilePictureDisplayImage)==null?void 0:h.rootUrl)||"",unreadCount:s.unreadMessageCount,content:(m=u==null?void 0:u.attachments)!=null&&m.length?"Attachment":(u==null?void 0:u.body)||"",isConnected:!0,lastActivityAt:u.deliveredAt,nextPageStartsAt:s==null?void 0:s.nextPageStartsAt,isArchived:s.archived,type:(u==null?void 0:u.type)||"",meImageUrl:(C=(f=l==null?void 0:l.profilePictureDisplayImage)==null?void 0:f.artifacts)!=null&&C.length?l.profilePictureDisplayImage.artifacts[0].fileIdentifyingUrlPathSegment:((E=l==null?void 0:l.profilePictureDisplayImage)==null?void 0:E.rootUrl)||""}}))||[]},w4=e=>{var n;return((n=e.elements)==null?void 0:n.map(s=>{var a;const r=(a=s.author)==null?void 0:a.indexOf(",NAME_SEARCH");return{...s,entityUrn:r>24?s.author.slice(24,r):s.author,createdAt:s.deliveredAt}}))||[]},HO=e=>e.map(n=>({conversationId:n.conversationId,participants:[{entityUrn:n.entityUrn,objectUrn:n.objectUrn||"",firstName:n.name.split(" ")[0],lastName:n.name.split(" ").slice(1).join(" "),imageUrl:n.imageUrl,headline:n.headline}],from:n.entityUrn,isGroup:!!n.isGroup,isSponsored:n.type===oo.SPONSORED_INMAIL||n.type===oo.SPONSORED_MESSAGE,isLinkedinOffer:!1,lastActivityAt:n.lastActivityAt||0,content:n.content||"",unreadCount:n.unreadCount||0})),Z2=e=>e.map(n=>({...n,label:n.name,value:n.id||n.name})),T4=e=>e.map(n=>({label:n.name,value:n})),j4=e=>v.get(`/campaigns/${e}`,{params:{countIgnoredLeads:!0}}),VO=e=>v.get(`/campaigns/${e}/activity/chart`),v4=e=>v.get("/campaigns",{params:e}),I4=e=>v.get("/campaigns/counts",{params:{category:e}}),FO=e=>v.post("/campaigns/audience",e),$O=e=>v.post("/campaigns/linked-in/audience/csv",e),GO=e=>v.post("/campaigns/email/audience/csv",e),zO=e=>v.post("/campaigns/twitter/audience/csv",e),WO=(e,n,s)=>v.patch(`/campaigns/${e}/${n}/audience/csv`,s),qO=(e,n)=>v.post(`/campaigns/${e}/audience/connections`,n),ZO=(e,n)=>v.post(`/campaigns/${e}/audience/sales-explorer-connections`,n),YO=(e,n,s)=>v.patch(`/campaigns/${e}/${n}
4/audience/connections`,s),KO=(e,n,s)=>v.patch(`/campaigns/${e}/${n}/audience/sales-explorer-connections`,s),QO=e=>v.post("/campaigns/linked-in/audience/saved-lists",e),XO=(e,n)=>v.patch(`/campaigns/linked-in/${e}/audience/saved-lists`,n),JO=(e,n)=>v.post(`/campaigns/${e}/publish`,n),eD=(e,n)=>v.patch(`/campaigns/${e}/audience`,n),_4=(e,n)=>v.patch(`/campaigns/${e}/running-state`,{runState:n}),tD=({campaignId:e,body:n})=>v.patch(`/campaigns/${e}/sequence`,{touchSequence:n}),nD=({campaignId:e,body:n})=>v.post(`/campaigns/${e}/sequence-tree`,n),sD=({campaignId:e,body:n})=>v.patch(`/campaigns/${e}/sequence-tree`,n),A4=({campaignId:e,body:n})=>v.patch(`/campaigns/${e}/archive`,n),N4=({campaignId:e,body:n})=>v.patch(`/campaigns/${e}/name`,n),k4=e=>v.delete(`/campaigns/${e}`),R4=(e,n)=>v.patch(`/campaigns/${e}/restart-search`,n),M4=({campaignId:e,body:n})=>v.post(`/leads/campaign/${e}/csv`,n),P4=e=>v.post("/campaigns/replies/csv",e),O4=e=>v.post(`/campaigns/${e}/clone`),rD=e=>v.post("/lead-sources",e),D4=e=>v.get(`/lead-sources/campaign/${e}`),aD=e=>v.get("/invites",{params:e}),iD=e=>v.post("/invites/change-status",e),oD=e=>v.get("/campaigns/activity",{params:e}),lD=e=>v.get("/campaigns/replies",{params:e}),cD=(e,n)=>v.get(`/campaigns/${e}/actions`,{params:n}),dD=()=>v.get("/users/saved-searches"),uD=()=>v.patch("/users/refresh-saved-searches"),pD=e=>v.get("/campaigns/search-list",{params:e}),hD=()=>v.get("/campaigns/search-list/connections"),U4=e=>v.get(`/campaigns/${e}/search-list/ignored`),mD=({id:e,filter:n})=>v.get(`/campaigns/${e}/list-item`,{params:{filter:n}}),gD=e=>v.get("/campaigns/dashboard",{params:e}),xD=e=>v.get("/campaigns/statistics",{params:e}),Y2=({route:e,query:n})=>v.get("/search/autocomplete",{params:{autocompleteType:e,prompt:n}}).then(s=>Z2(s)),B4=(e,n)=>v.post(`/campaigns/${e}/activity/csv`,n),fD=e=>v.get(`/campaigns/${e}/progress`),H4=e=>v.get(`/campaigns/${e}/sequence-progress`),CD=e=>v.get(`/campaigns/${e}/sequence-tree/progress`),yD=({campaignId:e,touchIndex:n,page:s=1,perPage:r=50})=>v.get(`/campaigns/${e}/sequence-tree/steps/${n}/leads`,{params:{page:s,perPage:r}}),ED=e=>v.post("/campaigns/interactive-questions",e),V4=()=>v.get("/campaigns/grouped"),F4=(e,n)=>v.post(`/lead-sources/campaign/${e}/audience/sales-explorer-connections`,n),$4=(e,n)=>v.post(`/lead-sources/campaign/${e}/audience/saved-lists`,n),SD=({selectedTags:e,page:n})=>v.get("/connections/tagged",{params:{page:n,perPage:20,tagIds:e}}).then(s=>q2(s)),bD=({page:e,query:n})=>v.get("/leads/replied",{params:{page:e,perPage:20,name:n}}).then(s=>q2(s)),G4=({entityUrn:e,notes:n})=>v.patch(`/connections/${e}/notes`,{notes:n}),LD=({entityUrn:e,body:n})=>v.patch(`/connections/${e}`,n),wD=e=>v.post("/connections",e),z4=(e,n,s)=>v.post("/connections/csv",{...s,receiverEmail:e,entityUrns:n}),W4=({entityUrn:e,page:n=Ea,perPage:s=Mt})=>v.get(`/connections/${e}/actions`,{params:{page:n,perPage:s}}),TD=(e,n)=>v.get("/connections",{params:{entityUrn:e,objectUrn:n}}),jD=e=>v.get(`/connections/${e}`),vD=e=>v.post(`/connections/${e}/sync`),Sa=e=>{if(typeof e=="number"&&Number.isFinite(e))return e;if(typeof e=="string"&&e.trim()!==""){const n=Number(e);return Number.isFinite(n)?n:null}return null},qo=e=>{if(typeof e!="object"||e===null||!("touchIndex"in e)||!("amount"in e))return!1;const n=e;return Sa(n.touchIndex)!==null&&typeof n.amount=="number"},q4=e=>typeof e=="number"&&Number.isFinite(e)?e:qo(e)?e.amount:0,ID=e=>e?Array.isArray(e)?e.reduce((n,s)=>{if(!qo(s))return n;const r=Sa(s.touchIndex);return r===null||(n[String(r)]=s.amount),n},{}):Object.entries(e).reduce((n,[s,r])=>(n[s]=q4(r),n),{}):{},ks=e=>typeof e=="number"&&Number.isFinite(e)?e:qo(e)||typeof e=="object"&&e!==null&&"touchIndex"in e?Sa(e.touchIndex):null,Rs=e=>{const n=new FormData;for(const[s,r]of Object.entries(e))Array.isArray(r)?r.forEach(a=>{n.append(`${s}[]`,a)}):r&&n.append(s,r);return n},Ss=e=>{const n=e.toString(16).trim();return n.length===1?`0${n}`:n};function Z4(e){const[n,s,r]=e.replace("rgb(","").replace(")","").split(",").map(a=>Number(a));return`#${Ss(n)}${Ss(s)}${Ss(r)}`}function Y4(e){const n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:{r:50,g:50,b:50}}const Er=()=>{const e=`000000${dh(16777215).toString(16)}`.slice(-6);let{r:n,g:s,b:r}=Y4(e);return n=n>=245?n-5:n,s=s>=245?s-5:s,r=r>=245?r-5:r,`#${Ss(n)}${Ss(s)}${Ss(r)}`},Ra=(e="#eaebef")=>{e=e.replace("#","");const n=parseInt(e.slice(0,2),16),s=parseInt(e.slice(2,4),16),r=parseInt(e.slice(4,6),16);return .299*n+.587*s+.114*r>=186?"#000000":"#ffffff"},k1=e=>v6(e,on(e,.6))>3?on(e,.6):kn(e,.6),R1=(e,{red:n,green:s,blue:r},a=!1)=>{e=e==null?void 0:e.replace("#","");const i=parseInt(e.slice(0,2),16),o=parseInt(e.slice(2,4),16),l=parseInt(e.slice(4,6),16);return a&&(i+n>255||o+s>255||l+r>255)?"":`rgb(${i+n}, ${o+s}, ${l+r})`},K2=e=>({primary:{light:"#102e50",wlLight:"#102e50",main:"#2361fc",dark:"#002f53"}
4,secondary:{main:"#53a25d",dark:Z4(on("#53a25d",.1))},success:{main:"#00b67a",50:"#EBF8F1",100:"#d9f4e1",150:"#CDE5D5",200:"#b3e8c3",400:"#288637",500:"#31a554",550:"#1B8D2D",600:"#216e38",700:"#18532a",800:"#10371c"},info:{main:"#00b2e4",dark:"#337ab7"},warning:{main:"#ffc727",50:"#fffaeb",200:"#fedf89"},error:{light:"#f62713",main:"#ff0000",50:"#FCE9E8",100:"#fae0e0",150:"#FFDBDA",200:"#f1a3a3",300:"#e76666",400:"#e34848",500:"#de2929",600:"#c71f1f",700:"#8e1616"},text:{primary:"#333333"},light:{light:"#f3f4f5",main:"#ebecf2",dark:"#dfdfe8"},lightGray:{light:"#d2dee0",main:"#c4c6d5",dark:"#8da1b5"},gray:{light:"#808080",main:"#98a9ac",dark:"#313c40",50:"#f2f3f7",100:"#e6e8ed",200:"#c1c7d3",300:"#a3aab8",400:"#868FA3",500:"#667085",600:"#555d6f",700:"#444B59",800:"#22252c"},violet:{main:"#8c8eb8",dark:"#8283a2"},accent:{100:"#dce4f9",300:"#809ee9",500:"#2b5ddb",600:"#1e49b3",700:"#173786"},brand:{100:"#9cc1eb",200:"#6ba3e1",300:"#2467b3",400:"#1a4a81",500:(e==null?void 0:e.menuFontColor)||"#102e50"},orange:{50:"#fef6ee",200:"#f9dbaf",700:"#b93815"},purple:{50:"#f4f3ff",100:"#ECE7FB",200:"#d9d6fe",300:"#C9B7F4",600:"#5022C5",700:"#5925dc"},blueLight:{50:"#f0f9ff",100:"#DDEDF6",200:"#b9e6fe",300:"#A0CCE3",700:"#026aa2"},black:{base:"#07090E"},bg:{greyBlue:"#f7f7f9",blue:"#f2f5ff",white:"#ffffff"},blue:{extralight:"#f1f5ff",light:"#bbcdfa",mediumLight:"#C7D7FE",medium:"#527ceb",primary:"#1b4ed2",dark:"#15283d",extradark:"#173c99",black:"#092059"},greyBlue:{10:"#fafafc",20:"#f0f0f0",25:"#F1F2F4",30:"#e8e8eb",35:"#CFD5DD",40:"#c8c8d0",50:"#a6Abb6",60:"#656f7d",70:"#747c8a",80:"#404a58",100:"#000e33"},greyNeutral:{0:"#ffffff",10:"#f9f9f9",20:"#f0f0f0",30:"#e5e5e5",35:"#EBEBEB",40:"#b5b5b5",50:"#8a8a8a",60:"#666666",80:"#3c3c3c",90:"#353535",100:"#121313"},additional:{success:"#217f2f",red40:"#e15e59",red50:"#d3241d",redDark:"#ba251f",yellow:{50:"#FFF2D7",100:"#FFE9BA",700:"#FD6621"}},whitelabel:{title:(e==null?void 0:e.titleColor)||"#000e33",accent:(e==null?void 0:e.accentColor)||"#1b4ed2",menu:(e==null?void 0:e.menuFontColor)||"#15283d",navigationText:(e==null?void 0:e.navigationTextColor)||"#FFFFFF"},notification:{errorBg:(e==null?void 0:e.notificationErrorColor)||"#ffbdad",errorText:(e==null?void 0:e.notificationErrorColor)&&e.notificationErrorColor!=="#ffbdad"&&k1(e.notificationErrorColor)||"#673238",warningBg:(e==null?void 0:e.notificationWarningColor)||"#fff1b4",warningText:(e==null?void 0:e.notificationWarningColor)&&e.notificationWarningColor!=="#fff1b4"&&k1(e.notificationWarningColor)||"#474432"}}),uo=new rs,Sr=(e,n)=>{uo.set(e,n,{path:"/",domain:ka?cr:Na})},Zo=e=>{uo.remove(e,{path:"/",domain:Na}),uo.remove(e,{path:"/",domain:cr})},_D=e=>e.toLowerCase().replace(/[^A-Za-z0-9]/g,"").replace(/\s+/g,"_"),In=(e="")=>`${e.charAt(0).toUpperCase()}${e.slice(1)}`,AD=e=>{const n=(e.match(/ OR /g)||[]).length,s=(e.match(/ AND /g)||[]).length,r=(e.match(/ NOT /g)||[]).length;return n+s+r<=5||"Please use less than 5 boolean operators (eg. OR, AND, etc.) in your search."},ND=e=>{const s=Ls.test(e)&&e.indexOf("https://www.linkedin.com/posts/")===0&&!!e.match(/(share|activity|ugcPost)-\d+/);return Ls.test(e)&&e.indexOf("https://www.linkedin.com/feed/update/")===0||s?!0:"Wrong linkedin post url"},kD=e=>{const n=e.startsWith("https://www.linkedin.com/events/"),s=e.startsWith("https://www.linkedin.com/video/event/"),r=e.indexOf("eventAttending=")>-1;return Ls.test(e)&&(n||s||r)?!0:"Wrong linkedin event url"},K4=e=>Ls.test(e)&&e.indexOf("https://www.linkedin.com/search/results/people")===0||e.indexOf("https://www.linkedin.com/search/results/PEOPLE")===0?!0:"Please use a valid Linkedin search URL.",Q4=e=>e.includes("?recentSearchId=")?!1:Ls.test(e)&&e.indexOf("https://www.linkedin.com/sales/search/people")===0?!0:"Please use a valid Linkedin sales navigator URL.",RD=(e,n,s="")=>K4(e)===!0?!0:Q4(e)===!0?n?!0:s:"Please use a valid Linkedin search URL.",MD=e=>((e==null?void 0:e.search(/linkedin.com\/in\//i))>-1||(e==null?void 0:e.search(/linkedin.com\/pub\//i))>-1||(e==null?void 0:e.search(/linkedin.com\/sales\/people\//i))>-1||(e==null?void 0:e.search(/linkedin.com\/sales\/lead\//i))>-1)&&I6(e),Ma=e=>(e==null?void 0:e.length)===39&&(e==null?void 0:e.includes("AC")),PD=e=>Ls.test(e)&&new RegExp("^https:\\/\\/www\\.linkedin\\.com\\/company\\/.+$").test(e)||"Please use a valid LinkedIn company URL",OD=e=>e.startsWith("https://www.linkedin.com/pulse/")?!0:"Please use a valid LinkedIn Newsletter article URL";se.extend(h2);se.extend(ss);se.extend(Cr);se.extend(m2);const X4=e=>{const n=e%10,s=e%100;return n===1&&s!==11?`${e}st`:n===2&&s!==12?`${e}nd`:n===3&&s!==13?`${e}rd`:`${e}th`},J4=e=>{if(!e)return"NA NA";const n=se(e),s=se();return n.isToday()?`${n.format("h:mm A")}`:n.isSame(s.subtract(1,"day"),"day")?`Yesterday, ${n.format("h:mm A")}`:s.get("year")-n.get("year")>0?n.format("MMM D, YYYY h:mm A"):n.format("MMM D, h:mm A")},eh=e=>{const n=se(),s=se.tz.guess(),a=se.utc(e).tz(s).diff(n,"second"),i=a<=0;let o="";const l=Math.abs(a);if(l>=3600){const u=Math.floor(l/3600),d=Math.floor(l%3600/60);o=`${u}h ${d}m`}else o=`${Math.ceil(a/60)} min`;return{diffTime:o,isExpiredTime:i}},Ms=(e,n="MMMM Do YYYY")=>{const s=se(e),r=s.date();return n.includes("Do")?s.format(n).replace(s.format("Do"),X4(r)):s.format(n)};function th(e){const n=e.split("."),s=n[n.length-1];let r=`${e.substring(0,e.length-s.length-1)}`;const a=/[^a-zA-Z0-9-_()]*/g,i=r.match(a)||[];for(const o of i)r=r.replace(o,"");return`${r}.${s}`}const nh=async(e,n)=>{const r=await(await fetch("https://xayifr2rag.execute-api.us-east-1.amazonaws.com/dev/api/v1/get-presigned-url",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({filename:e,mimetype:n})})).json();return r==null?void 0:r.signed_url},sh=(e,n)=>{const s=new XMLHttpRequest;s.open("PUT",e.url,!0),s.overrideMimeType(e.file.type),s.send(e.file),s.onload=function(){n(s.status===200?"success":"error")}},Q2=async({file:e,onSuccess:n,onUploadError:s,onUploadStart:r,onUrlError:a,isLinkedIn:i=!1})=>{let o=i?"MESSAGING_FILE_ATTACHMENT":"DOCUMENT_SHARING";!i&&e.type.indexOf("video")>-1?o="VIDEO_SHARING":e.type.indexOf("image")>-1&&(o=i?"MESSAGING_PHOTO_ATTACHMENT":"IMAGE_SHARING");const l=th(e.name),u=`${fa()}__${Date.now()}__${l}`;try{const d=await nh(u,e.type);if(d){r==null||r();const p=new FormData;p.append("file",e);const h={url:d,file:e,formData:p,filetype:e.type};await new Promise((m,f)=>{sh(h,C=>{C==="success"?(n({file_uri:`https://d2p456lgyelacr.cloudfront.net/${u}`,file_name:l,file_type:e.type,file_size:e.size,mediaType:o}),m()):(s==null||s(),f(new Error("Couldn't upload the file!")))})})}else a==null||a()}catch{s==null||s()}},DD=(e,n)=>{const s=document.createElement("video");s.preload="metadata",s.onloadedmetadata=async()=>{window.URL.revokeObjectURL(s.src),n(s)},e&&(s.src=window.URL.createObjectURL(e))},UD=(e,n)=>{const s=new Image;s.onload=()=>{window.URL.revokeObjectURL(s.src),n(s)},e&&(s.src=window.URL.createObjectURL(e))},BD=e=>new Promise((n,s)=>{const r=new FileReader;r.onloadend=()=>{var o;switch(((o=new Uint8Array(r==null?void 0:r.result))==null?void 0:o.subarray(0,4)).reduce((l,u)=>l+u.toString(16),"")){case"89504e47":return n("image/png");case"47494638":return n("image/gif");case"ffd8ffe0":case"ffd8ffe1":case"ffd8ffe2":return n("image/jpeg");default:return n("unknown")}},r.onerror=()=>s(r.error),r.readAsArrayBuffer(e)}),rh=async(e,n,s)=>{const a=await(await fetch(e)).blob();return new File([a],n,{type:s})},HD=e=>{const n=document.createElement("a");n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},ah=(e,n=25)=>{if(e.length<=n)return e;const s=e.lastIndexOf(".");if(s===-1)return`${e.substring(0,n-3)}...`;const a=e.substring(s).substring(1),i=e.substring(0,s);if(a.length+3>n)return`...${a}`;const o=n-a.length-3;return`${i.substring(0,o)}...${a}`},X2=new Set,ih=e=>{X2.add(e)},oh=e=>X2.has(e),mi=(...e)=>{for(const n of e)if(n&&!oh(n))return n},M1=e=>{if(!e||e.includes("Invalid")||e.includes("error"))return!1;try{const s=new URL(e).searchParams;if(s.has("e")){const r=s.get("e");if(!r)return!1;const a=parseInt(r,10);if(isNaN(a))return!1;const i=a>1e12?a:a*1e3,o=Date.now();if(i<o-36e5)return!1}return!0}catch{return!1}},J2=({linkedInPic:e,picture:n})=>{const s=M1(e),r=M1(n);return r&&s&&n||r&&n?n:s&&e?e:""},lh=()=>{var n,s;const e=(n=navigator.language)==null?void 0:n.slice(0,2);return(s=k5[e])==null?void 0:s.name},ch=e=>new RegExp("/campaign/(new|add-leads|details|\\d+)/").test(e)?"/campaign/stats":new RegExp("/contacts/leads/.*/details").test(e)?"/contacts/connections":new RegExp("/templates/new").test(e)?"/templates/personal":new RegExp("/posts/(new|\\d+/details)").test(e)?"/posts/linkedin":new RegExp("/trends\\?trendId=\\d+").test(e)?"/trends":"",e0=()=>{const e=location.pathname+location.search;window.history.replaceState({},document.title);const n=ch(e);location.replace(n?`${location.origin}${n}`:location.href)},Dn=e=>
4typeof e=="number"?e.toLocaleString("en-US"):"",dh=(e=1,n=0)=>(n=Math.ceil(n),e=Math.floor(e),Math.floor(Math.random()*(e-n)+n)),Ln=e=>({...e,trimmedPrefix:e.prefix.slice(0,-1)}),uh=[Ln({prefix:"/dashboard/",tabs:new Set(["today","yesterday","this-week","this-month","this-year","custom"])}),Ln({prefix:"/posts/",tabs:new Set(["linkedin","twitter","facebook","instagram"])}),Ln({prefix:"/contacts/blacklist/",tabs:new Set(["connections","leads"])}),Ln({prefix:"/invitations/",tabs:new Set(["sent","received","withdrawn"])}),Ln({prefix:"/inbox/",tabs:new Set(["linkedin","in-mail","sales-navigator"])}),Ln({prefix:"/campaign/stats/",tabs:new Set(["active","paused","drafts","archived"]),hasCategorySegment:!0}),Ln({prefix:"/templates/",tabs:new Set(["personal","team","library"])}),Ln({prefix:"/sequence-templates/",tabs:new Set(["personal","team"])})],ph=e=>{for(const{prefix:n,trimmedPrefix:s,tabs:r,hasCategorySegment:a}of uh){if(!e.startsWith(n))continue;const i=e.slice(n.length).split("/");if(a){const[o,l]=i;if(i.length===2&&o&&r.has(l))return n+o;continue}if(i.length===1&&r.has(i[0]))return s}return e},as=(e,n)=>window.setTimeout(n,e),hh=(e,n)=>window.setInterval(n,e),dr=e=>{const n=e.trim();return n.startsWith("http://")||n.startsWith("https://")?n:n.startsWith("www.")||n.includes(".")?`https://${n}`:n},Yo=(e,n="",s=null)=>{const r=e===le.EMAILED&&s?`${li[e]} to ${s}`:li[e]||e,a=e===le.EMAILED&&!!s||n&&[ca.withoutMessage,ca.postponed,ca.attachmentWithoutMessage].some(i=>i===n);return t.jsxs(S,{display:"flex",alignItems:"center",children:[t.jsx(S,{children:li[e]||e}),a?t.jsx(Mn,{tooltip:{title:e===le.EMAILED&&s?r:n}}):null]})},mh=e=>{try{const n=JSON.parse(e);return t.jsx(t.Fragment,{children:n.map((s,r)=>t.jsxs("span",{children:[r?", ":"",t.jsxs(je,{external:!0,to:s,openNewTab:!0,onClick:a=>a.stopPropagation(),underline:!0,children:["Post ",r+1]})]},s))})}catch{return t.jsx(t.Fragment,{})}},gh=e=>{try{const n=JSON.parse(e);return t.jsx(t.Fragment,{children:n.map((s,r)=>t.jsxs(c.Fragment,{children:[!!r&&t.jsx("br",{}),t.jsxs("span",{children:[r+1,". ",s]})]},s))})}catch{return t.jsx(t.Fragment,{})}},t0=(e,n)=>{if(e===le.INVITE_TO_COMPANY_SENT||n===ca.attachmentWithoutMessage)return"";switch(e){case le.INVITE_TO_COMPANY_FAILED:return In(n);case le.LIKED_POST:return mh(n);case le.CHAINED_MESSAGES_SENT:return gh(n);default:return n}},VD=e=>{var n,s;return e.description===le.INVITE_WITHDRAWN?((n=e.person)==null?void 0:n.name)||e.message||"":((s=e.person)==null?void 0:s.name)||""},Ko=({action:e,stepNumber:n,totalSteps:s,incrementStepNumber:r=!1})=>{if(e&&![le.EMAILED,le.TWITTER_MESSAGE_SENT,le.LEAD_FOLLOWED_IN_TWITTER,le.EVENT_MESSAGE_SENT,le.GROUP_MESSAGE_SENT,le.INMAIL_MESSAGE_SENT,le.CREDIT_INMAIL_MESSAGE_SENT,le.MESSAGE_SENT,le.FOLLOWED_AFTER_CONNECT,le.REQUESTED_CONNECT,le.LIKED_POST,le.ENDORSED_PROFILE,le.FOLLOWED_PROFILE,le.VIEWED].some(o=>o===e)||n===null||!s)return"";const a=ks(n);if(a===null)return"";const i=r?a+1:a;return i>s?`${s}/${s}`:`${i}/${s}`},FD=e=>{switch(e){case 400:return t.jsx("span",{children:"User registered with a different authentication method. Please try again"});case 401:return t.jsx("span",{children:"Something went wrong. If you signed up with gmail or microsoft, please make sure to login with that method."});case 404:return t.jsxs("span",{children:["User doesn't exists. Please ",t.jsx(At,{to:"/auth/signup",children:"click here to create a new account"})]});default:return null}},$D=e=>e===400?t.jsxs("span",{children:["User already exists. Please ",t.jsx(At,{to:"/auth/login",children:"click here to login"})]}):null,Qo=()=>{const e=cr.split("."),n=e.length;let s=".";e[n-2]&&(s+=`${e[n-2]}.`),e[n-1]&&(s+=e[n-1]),Zo("referralCode")},ur=e=>{switch(e){case Te.EUR:return"€";case Te.GBP:return"£";case Te.USD:return"$";default:return""}},St=(e=0,n)=>(e/100||0).toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2,...n||{}}),ua=e=>({price:e.amount/e.quantity,quantity:e.quantity,total:e.amount}),xh=(e,n)=>{var s,r,a;if(e.graduated||(e.graduated=n.quantity),n.plan.tiers_mode==="graduated"&&Number(e.graduated)>1){if(!e.first||!Number(n.unit_amount_excluding_tax)){e.first={price:((s=e.first)==null?void 0:s.price)||n.amount/n.quantity,quantity:((r=e.first)==null?void 0:r.quantity)||n.quantity,total:((a=e.first)==null?void 0:a.total)||n.amount};return}e.extra=ua(n);return}if(e.graduated=!1,!e.first){e.first=ua(n);return}e.extra=ua(n)},fh=(e,n)=>{var s;return n.description==="Referral program discount"?(e.referral={total:(((s=e.referral)==null?void 0:s.total)||0)+n.amount},e):n.description.includes("Unused")?(e.prorata=(e.prorata||0)+n.amount,e):n.description.includes("Remaining")?(e.remaining=(e.remaining||0)+n.amount,e):n.plan.billing_scheme==="tiered"?(xh(e,n),e):(e.users=ua(n),e)},Ch=e=>(e==null?void 0:e.lines.data.reduce(fh,{}))||{},gi=e=>{const n=new URL(`${H2}/payment-success`);n.searchParams.set("seatsUpgrade",e.isSeatsUpgrade?"yes":"no"),n.searchParams.set("planUpgrade",e.isPlanUpgrade?"yes":"no"),n.searchParams.set("planRenewal",e.isPlanRenewal?"yes":"no"),n.searchParams.set("newCustomer",e.isNewCustomer?"yes":"no"),window.location.href=n.toString()},P1="By downgrading your account, you will lose access to exclusive features and all integrations (except for LinkedIn) will be disabled. Are you sure you want to downgrade?",yh="By downgrading your account you will lose access to exclusive features like White Label, and all integrations (except for LinkedIn) will be disabled. Are you sure you want to downgrade?",Eh="Reducing your team size can result in losing access to exclusive features. Are you sure you want to continue?",Sh="Upgrade to 5 or more seats on our Team plan to unlock exclusive features like this one.",bh="If you downgrade your plan White Label app will be deactivated. Are you sure you would like to downgrade your plan?",O1=[x.AGENCY,x.ENTERPRISE,x.TEAMS],Lh=(e,n)=>{switch(e){case x.AGENCY:case x.ENTERPRISE:case x.TEAMS:return n?yh:P1;case x.BUSINESS:case x.PRO:return P1;default:return""}},wh=(e,n,s,r,a)=>e!==x.TEAMS||!r?"":a>n&&s>=a?Eh:"",Th=(e,n,s,r,a)=>{if(e===x.AGENCY&&n===x.TEAMS&&r&&s<a)return Sh;const i=O1.includes(e)&&(!O1.includes(n)||n===x.TEAMS&&s<a);return r&&i?bh:""},GD=(e,n,s,r,a)=>{var o,l;const i=(l=(o=$2[X.whiteLabel])==null?void 0:o.minSeats)==null?void 0:l[x.TEAMS];return e===n?wh(e,s,r,a,i):e===x.BASIC?Lh(n,a):Th(n,e,s,a,i)},jh=(e,n)=>e===x.TRIAL||!e?n<11?x.BUSINESS:x.AGENCY:e,vh=(e,n,s,r=n)=>{const{seats:a=1,minSeats:i=1}=Qn[e]||{};return a<s||a<n?a:i>s||i>n?Math.max(n,i):r},zD=(e,n)=>!n||n===x.TRIAL||e===n?!1:e===x.BASIC?[x.BUSINESS,x.AGENCY,x.ENTERPRISE,x.PRO,x.TEAMS].some(s=>s===n):e===x.PRO?[x.AGENCY,x.ENTERPRISE,x.TEAMS].some(s=>s===n):!1,n0=e=>{var n,s,r;return((r=(s=(n=e==null?void 0:e.latest_invoice)==null?void 0:n.discount)==null?void 0:s.coupon)==null?void 0:r.id)===Cn.summerSale2026},s0=e=>{var n,s,r;return n0(e)?(r=(s=(n=e==null?void 0:e.latest_invoice)==null?void 0:n.discount)==null?void 0:s.coupon)==null?void 0:r.name:void 0},Ih=(e,n)=>e===x.PRO&&!!s0(n),r0=(e,n,s)=>e===x.PRO&&n===G.ANNUAL&&n0(s),a0=(e,n,s)=>r0(e,n,s),_h=(e,n,s)=>r0(e,n,s),Xo="post-leads",Jo="post-connections",el="get-campaign-leads",tl="get-campaign-ignored-leads",Ah=({queryClient:e,entityUrn:n,tags:s,campaignId:r,campaignKeys:a})=>{e.setQueriesData({queryKey:[Xo],exact:!1},i=>i!=null&&i.leads?{...i,leads:i.leads.map(o=>{var l;return((l=o.person)==null?void 0:l.key)===n?{...o,tags:s}:o})}:i),e.setQueriesData({queryKey:[Jo],exact:!1},i=>i!=null&&i.connections?{...i,connections:i.connections.map(o=>o.entityUrn===n?{...o,tags:s}:o)}:i),r&&a&&(e.setQueriesData({queryKey:[el,r],exact:!1},i=>i!=null&&i.leads?{...i,leads:i.leads.map(o=>o.entityUrn===n?{...o,tags:s}:o)}:i),e.setQueriesData({queryKey:[tl,r],exact:!1},i=>i!=null&&i.leads?{...i,leads:i.leads.map(o=>o.personKey===n?{...o,tags:s}:o)}:i))},Nh=async(e,n,s)=>
4{await e.invalidateQueries({queryKey:[Xo],exact:!1,refetchType:"none"}),await e.invalidateQueries({queryKey:[Jo],exact:!1,refetchType:"none"}),n&&s&&(await e.invalidateQueries({queryKey:[el,n,JSON.stringify(s)],exact:!1,refetchType:"none"}),await e.invalidateQueries({queryKey:[tl,n,JSON.stringify(s)],exact:!1,refetchType:"none"}))},kh=(e,n)=>{e.invalidateQueries({queryKey:[Xo],exact:!1}),e.invalidateQueries({queryKey:[Jo],exact:!1}),n&&(e.invalidateQueries({queryKey:[el,n],exact:!1}),e.invalidateQueries({queryKey:[tl,n],exact:!1}))},Rh="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='20'%20height='15'%20viewBox='0%200%2020%2015'%3e%3cpath%20fill='%230561FC'%20d='M3.54166667,12.1458333%20C3.75,12.25%203.75,12.4583333%203.75,12.5625%20C3.54166667,15.2708333%201.66666667,20.7916667%201.66666667,21.1041667%20C1.5625,21.3125%201.35416667,21.4166667%201.14583333,21.4166667%20L0.520833333,21.4166667%20C0.208333333,21.4166667%200,21.2083333%200,20.8958333%20L0,11.5208333%20C0,11.4166667%200.104166667,11.2083333%200.208333333,11.1041667%20C0.3125,11%200.416666667,11%200.520833333,11%20C1.66666667,11.1041667%202.70833333,11.3125%203.54166667,12.1458333%20Z%20M11.875,13.6041667%20C12.7083333,13.9166667%2013.6458333,14.3333333%2014.6875,14.6458333%20C15.2083333,15.5833333%2016.4583333,19.125%2017.1875,21.2083333%20L17.0833333,21.2083333%20C16.3541667,20.2708333%2014.8958333,19.0208333%2013.4375,17.875%20C12.5,17.0416667%2011.5625,16.3125%2011.0416667,15.7916667%20C10.9375,15.7916667%2010.7291667,15.6875%2010.625,15.6875%20C10.5208333,15.6875%2010.5208333,15.6875%2010.4166667,15.6875%20C10.1041667,15.7916667%209.89583333,15.8958333%209.6875,16%20C9.375,16.1041667%209.27083333,16.2083333%208.95833333,16.2083333%20C8.75,16.2083333%208.64583333,16.3125%208.54166667,16.4166667%20C7.8125,17.5625%207.08333333,17.4583333%206.5625,17.25%20C6.35416667,17.1458333%206.35416667,17.1458333%206.35416667,17.0416667%20C6.25,16.625%206.77083333,15.5833333%207.5,14.8541667%20C9.16666667,13.1875%2010,12.7708333%2011.875,13.6041667%20Z%20M18.8541667,12.0416667%20C19.1666667,12.0416667%2019.375,12.25%2019.375,12.5625%20L20,21.9375%20C20,22.25%2019.7916667,22.4583333%2019.4791667,22.4583333%20L18.8541667,22.4583333%20C18.6458333,22.4583333%2018.4375,22.25%2018.3333333,22.0416667%20C18.0208333,20.5833333%2015.9375,14.8541667%2015.3125,13.8125%20C15.2083333,13.7083333%2015.2083333,13.5%2015.2083333,13.3958333%20C15.3125,13.2916667%2015.4166667,13.1875%2015.5208333,13.0833333%20C15.625,13.0833333%2014.7916667,12.0416667%2018.8541667,12.0416667%20Z%20M12.6041667,18.7083333%20C14.1666667,19.9583333%2015.9375,21.3125%2016.3541667,22.25%20C16.5625,22.6666667%2016.3541667,22.9791667%2016.25,23.0833333%20C16.0416667,23.1875%2015.8333333,23.2916667%2015.625,23.1875%20L12.6041667,20.1666667%20C12.3958333,19.9583333%2012.0833333,19.9583333%2011.875,20.1666667%20C11.6666667,20.375%2011.6666667,20.6875%2011.875,20.8958333%20L14.7916667,23.8125%20C14.6875,24.0208333%2014.4791667,24.125%2014.375,24.2291667%20C14.0625,24.3333333%2013.6458333,24.3333333%2013.5416667,24.2291667%20L10.9375,21.625%20C10.7291667,21.4166667%2010.4166667,21.4166667%2010.2083333,21.625%20C10,21.8333333%2010,22.1458333%2010.2083333,22.3541667%20L12.6041667,24.75%20C12.5,25.0625%2012.3958333,25.2708333%2012.0833333,25.375%20C11.875,25.375%2011.6666667,25.4791667%2011.4583333,25.2708333%20L9.375,23.1875%20C9.16666667,22.9791667%208.85416667,22.9791667%208.64583333,23.1875%20C8.4375,23.3958333%208.4375,23.7083333%208.64583333,23.9166667%20L10.3125,25.5833333%20C10.2083333,25.5833333%2010.1041667,25.5833333%2010,25.5833333%20C9.6875,25.5833333%209.0625,25.375%208.75,25.1666667%20C8.33333333,24.8541667%206.04166667,23.1875%204.0625,21.5208333%20C3.75,21.3125%203.33333333,20.7916667%202.91666667,20.375%20C3.4375,18.9166667%204.16666667,16.2083333%204.58333333,14.125%20L6.66666667,14.125%20C5.9375,14.8541667%205,16.3125%205.20833333,17.3541667%20C5.3125,17.7708333%205.625,18.1875%206.14583333,18.2916667%20C7.29166667,18.7083333%208.33333333,18.2916667%209.16666667,17.25%20C9.58333333,17.25%209.6875,17.1458333%2010,17.0416667%20C10,16.9375%2010.2083333,16.9375%2010.3125,16.8333333%20C10.9375,17.3541667%2011.7708333,17.9791667%2012.6041667,18.7083333%20Z'%20transform='translate(0%20-11)'%20/%3e%3c/svg%3e",hs="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20width='24px'%20height='24px'%20x='0'%20y='0'%20preserveAspectRatio='xMinYMin%20meet'%20class='nav-icon'%20focusable='false'%20%3e%3cpath%20d='M21,9H8a1,1,0,0,0-1,1V20a1,1,0,0,0,1,1H18l4,3V10A1,1,0,0,0,21,9Zm-4,8H12V16h5v1Zm1-3H11V13h7v1ZM17,5V7H6A1,1,0,0,0,5,8v8H3a1,1,0,0,1-1-1V5A1,1,0,0,1,3,4H16A1,1,0,0,1,17,5Z'%20style='fill-opacity:%201;%20fill:%20transparent'%20/%3e%3cpath%20d='M21,8H8A1,1,0,0,0,7,9V19a1,1,0,0,0,1,1H18l4,3V9A1,1,0,0,0,21,8ZM20,19.11L18.52,18H9V10H20v9.11ZM12,15h5v1H12V15ZM4,13H5v2H3a1,1,0,0,1-1-1V4A1,1,0,0,1,3,3H16a1,1,0,0,1,1,1V6H15V5H4v8Zm14,0H11V12h7v1Z'%20class='inactive-item'%20style='fill:%20%230561fc'%20/%3e%3c/svg%3e",Pa="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='24'%20height='24'%20rx='12'%20fill='%2340B780'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M4.81397%2012.5097C4.86057%2014.5463%204.88387%2015.5646%205.69014%2016.319C6.4964%2017.0733%207.61853%2017.0996%209.86277%2017.1521C11.2459%2017.1845%2012.6155%2017.1845%2013.9987%2017.1521C16.2429%2017.0996%2017.365%2017.0733%2018.1713%2016.319C18.9776%2015.5646%2019.0009%2014.5463%2019.0475%2012.5097C19.0625%2011.8549%2019.0625%2011.2039%2019.0475%2010.549C19.0009%208.51243%2018.9776%207.49412%2018.1713%206.73979C17.365%205.98545%2016.2429%205.95918%2013.9987%205.90662C12.6155%205.87423%2011.2459%205.87423%209.86277%205.90661C7.61852%205.95917%206.4964%205.98544%205.69014%206.73978C4.88387%207.49411%204.86057%208.51242%204.81397%2010.549C4.79899%2011.2039%204.79899%2011.8549%204.81397%2012.5097ZM7.70974%208.84207C7.90966%208.47929%208.36581%208.34726%208.72859%208.54717L10.8257%209.70278C11.4214%2010.031%2011.7058%2010.1149%2011.9306%2010.1149C12.1554%2010.1149%2012.4399%2010.031%2013.0356%209.70278L15.1326%208.54717C15.4954%208.34726%2015.9516%208.47929%2016.1515%208.84207C16.3514%209.20485%2016.2194%209.661%2015.8566%209.86091L13.7595%2011.0165C13.1326%2011.362%2012.5614%2011.6149%2011.9306%2011.6149C11.2998%2011.6149%2010.7286%2011.362%2010.1017%2011.0165L8.00464%209.86091C7.64186%209.661%207.50983%209.20485%207.70974%208.84207Z'%20fill='white'/%3e%3c/svg%3e",i0="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='24'%20height='24'%20rx='12'%20fill='%23B734B0'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M10.99%206.46268C10.5624%206.68128%2
4010.053%207.01401%209.33038%207.4872L6.82314%209.12896C6.23787%209.5122%206.09452%209.62123%206.01036%209.76841C5.96161%209.85367%205.93448%209.94561%205.91454%2010.1385L8.47124%2012.001C9.09986%2012.4589%209.51876%2012.7618%2010.1083%2012.8224C10.7724%2012.4134%2011.3683%2012.167%2011.9999%2012.167C12.6316%2012.167%2013.2274%2012.4134%2013.8916%2012.8224C14.4811%2012.7618%2014.9%2012.4589%2015.5286%2012.001L18.0853%2010.1385C18.0654%209.94561%2018.0382%209.85367%2017.9895%209.76841C17.9053%209.62123%2017.762%209.5122%2017.1767%209.12896L14.6695%207.4872C13.9468%207.01401%2013.4375%206.68128%2013.0098%206.46269C12.5929%206.24963%2012.294%206.16699%2011.9999%206.16699C11.7058%206.16699%2011.4069%206.24963%2010.99%206.46268ZM18.1446%2011.3325L16.1174%2012.8093C16.0939%2012.8264%2016.0703%2012.8436%2016.0467%2012.8609C15.7107%2013.1062%2015.3668%2013.3572%2014.9688%2013.5428L18.0666%2015.6533C18.1235%2015.1509%2018.138%2014.5236%2018.1561%2013.6901C18.1732%2012.9032%2018.1694%2012.1224%2018.1446%2011.3325ZM17.8054%2016.6853L13.7764%2013.9405C12.945%2013.3741%2012.4459%2013.167%2011.9999%2013.167C11.554%2013.167%2011.0548%2013.3741%2010.2234%2013.9405L6.19447%2016.6853C6.27856%2016.8539%206.38385%2016.9968%206.51627%2017.1282C6.79889%2017.4088%207.14322%2017.5698%207.69595%2017.665C8.27064%2017.7639%209.015%2017.7835%2010.0794%2017.8098C11.3636%2017.8416%2012.6363%2017.8416%2013.9204%2017.8098C14.9848%2017.7835%2015.7292%2017.7639%2016.3039%2017.665C16.8566%2017.5698%2017.201%2017.4088%2017.4836%2017.1282C17.616%2016.9968%2017.7213%2016.8539%2017.8054%2016.6853ZM5.93322%2015.6533L9.03107%2013.5428C8.63306%2013.3572%208.28916%2013.1062%207.95313%2012.8608C7.92953%2012.8436%207.90597%2012.8264%207.88243%2012.8093L5.8552%2011.3325C5.83045%2012.1224%205.82664%2012.9032%205.84374%2013.6901C5.86187%2014.5236%205.87639%2015.1509%205.93322%2015.6533ZM10.5349%205.57225C11.0324%205.31801%2011.4915%205.16699%2011.9999%205.16699C12.5083%205.16699%2012.9675%205.31801%2013.4649%205.57225C13.9461%205.81818%2014.5%206.18094%2015.1936%206.63511L17.7245%208.29236C17.7517%208.31015%2017.7786%208.32771%2017.8051%208.34506C18.2691%208.64812%2018.639%208.88968%2018.8576%209.27204C19.0766%209.65517%2019.095%2010.0835%2019.1178%2010.6161C19.1191%2010.6459%2019.1204%2010.676%2019.1217%2010.7064C19.1662%2011.7181%2019.1776%2012.71%2019.1559%2013.7118L19.155%2013.7513C19.1338%2014.7289%2019.1166%2015.5192%2019.0047%2016.1561C18.887%2016.8258%2018.6582%2017.3712%2018.1881%2017.8379C17.7166%2018.3061%2017.159%2018.5325%2016.4735%2018.6505C15.8183%2018.7633%2015.0005%2018.7835%2013.9835%2018.8086L13.9451%2018.8095C12.6445%2018.8417%2011.3553%2018.8417%2010.0547%2018.8095L10.0163%2018.8086C8.99932%2018.7835%208.18156%2018.7633%207.5263%2018.6505C6.84085%2018.5325%206.28328%2018.3061%205.81171%2017.8379C5.34166%2017.3712%205.11281%2016.8258%204.99514%2016.1561C4.88324%2015.5192%204.86607%2014.7289%204.84484%2013.7513L4.84398%2013.7118C4.8222%2012.71%204.83359%2011.7181%204.87811%2010.7064C4.87945%2010.676%204.88074%2010.6459%204.88201%2010.6161C4.90483%2010.0835%204.92319%209.65517%205.14225%209.27204C5.36088%208.88968%205.73071%208.64812%206.19471%208.34506C6.22128%208.32771%206.24815%208.31015%206.27533%208.29236L8.80622%206.63511C9.4998%206.18094%2010.0538%205.81818%2010.5349%205.57225Z'%20fill='white'/%3e%3c/svg%3e",nl="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20width='16'%20height='16'%20rx='8'%20fill='%230A66C2'/%3e%3cpath%20d='M11.7505%203.6001H4.24971C4.07742%203.6001%203.91219%203.66854%203.79036%203.79036C3.66854%203.91219%203.6001%204.07742%203.6001%204.24971V11.7505C3.6001%2011.9228%203.66854%2012.088%203.79036%2012.2098C3.91219%2012.3317%204.07742%2012.4001%204.24971%2012.4001H11.7505C11.9228%2012.4001%2012.088%2012.3317%2012.2098%2012.2098C12.3317%2012.088%2012.4001%2011.9228%2012.4001%2011.7505V4.24971C12.4001%204.07742%2012.3317%203.91219%2012.2098%203.79036C12.088%203.66854%2011.9228%203.6001%2011.7505%203.6001ZM6.22299%2011.0966H4.89993V6.89399H6.22299V11.0966ZM5.56054%206.3116C5.41046%206.31075%205.264%206.26547%205.13963%206.18146C5.01527%206.0974
46%204.91857%205.97849%204.86175%205.83958C4.80493%205.70067%204.79053%205.54805%204.82038%205.40096C4.85022%205.25388%204.92296%205.11893%205.02942%205.01315C5.13588%204.90737%205.2713%204.8355%205.41857%204.8066C5.56584%204.7777%205.71837%204.79308%205.85691%204.85079C5.99545%204.9085%206.1138%205.00596%206.197%205.13086C6.28021%205.25577%206.32455%205.40252%206.32443%205.5526C6.32585%205.65308%206.30702%205.75281%206.26907%205.84586C6.23112%205.93891%206.17482%206.02336%206.10354%206.09419C6.03226%206.16502%205.94744%206.22077%205.85415%206.25812C5.76086%206.29547%205.66101%206.31366%205.56054%206.3116ZM11.0997%2011.1003H9.77721V8.80432C9.77721%208.12721%209.48938%207.91821%209.11782%207.91821C8.72549%207.91821%208.34049%208.21399%208.34049%208.82143V11.1003H7.01743V6.89704H8.28976V7.47943H8.30688C8.4346%207.22093%208.88193%206.7791%209.56454%206.7791C10.3028%206.7791%2011.1003%207.21726%2011.1003%208.5006L11.0997%2011.1003Z'%20fill='white'/%3e%3c/svg%3e",po="data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_70_6996)'%3e%3cpath%20d='M10.7199
4%200.0879968C6.50356%200.527997%202.7362%203.30384%201.02356%207.232C-0.0801198%209.768%20-0.2638%2012.688%200.51988%2015.3762C1.48788%2018.728%203.99188%2021.5598%207.23188%2022.9762C9.76788%2024.0798%2012.6879%2024.2635%2015.3762%2023.4798C19.3999%2022.3198%2022.568%2019.0162%2023.608%2014.9118C25.2317%208.48%2021.2479%201.90352%2014.7999%200.367997C13.3836%200.0319968%2012.1362%20-0.0561632%2010.7199%200.0879968ZM10.8799%207.52C11.9036%208.88%2012.7679%2010%2012.7999%2010C12.8319%2010%2013.8962%208.88%2015.1519%207.52L17.4479%205.04H18.7519L18.4719%205.33632C18.3119%205.50368%2017.2719%206.63184%2016.1599%207.84C15.0479%209.048%2013.9599%2010.2237%2013.7436%2010.44L13.3599%2010.848L16.3599%2014.84C18.0079%2017.04%2019.3599%2018.8637%2019.3599%2018.8963C19.3599%2018.9363%2018.3762%2018.96%2017.1836%2018.96L14.9999%2018.952L12.9679%2016.232C11.5679%2014.352%2010.9119%2013.5435%2010.8479%2013.592C10.7999%2013.632%209.66356%2014.8563%208.31988%2016.312L5.87988%2018.96H5.26356C4.91988%2018.96%204.63988%2018.9437%204.63988%2018.92C4.63988%2018.8963%205.91188%2017.5037%207.46356%2015.832C9.00804%2014.16%2010.288%2012.76%2010.3036%2012.7363C10.3119%2012.7037%209.03988%2010.968%207.47988%208.88C5.91988%206.8%204.63988%205.08%204.63988%205.06368C4.63988%205.04816%205.62356%205.04%206.83188%205.04H9.02356L10.8799%207.52Z'%20fill='black'/%3e%3cpath%20d='M6.61631%206.112C6.64815%206.168%208.66364%208.872%2011.0799%2012.1037L15.4799%2017.9918L16.4635%2018C17.0717%2018%2017.4398%2017.968%2017.4235%2017.92C17.4162%2017.88%2015.408%2015.1763%2012.9762%2011.92L8.54364%206H7.55198C6.72831%206%206.55999%206.01632%206.61631%206.112Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_70_6996'%3e%3crect%20width='24'%20height='24'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Mh="data:image/svg+xml,%3csvg%20width='1200'%20height='1227'%20viewBox='0%200%201200%201227'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M714.163%20519.284L1160.89%200H1055.03L667.137%20450.887L357.328%200H0L468.492%20681.821L0%201226.37H105.866L515.491%20750.218L842.672%201226.37H1200L714.137%20519.284H714.163ZM569.165%20687.828L521.697%20619.934L144.011%2079.6944H306.615L611.412%20515.685L658.88%20583.579L1055.08%201150.3H892.476L569.165%20687.854V687.828Z'%20fill='currentColor'/%3e%3c/svg%3e",pa=Pa,Et=nl,Vr="Your leads are coming from the uploaded CSV file.",xi="Your leads are coming from the list of Contacts.",ho="LinkedIn Group",WD=e=>e===sn.TWITTER_REPLY_DETECTED?{color:"#000000",icon:po}:e===sn.EMAIL_REPLY_DETECTED?{color:"var(--primary-main)",icon:Pa}:e===sn.INMAIL_REPLY_DETECTED?{color:"#0072b1",icon:i0}:{color:"#0072b1",icon:nl},Ph=(e,n)=>{switch(e){case de.IN_MAIL_MESSAGE:return{withSubject:!0,withAttachments:!0,icon:hs,title:"Send InMail message",messageTitle:"Message:",modalTitle:"Choose InMail Template"};case de.LINKED_IN_CONNECT:return{maxLength:n==="message"?280:0,icon:Rh,title:"LinkedIn connect:",messageTitle:n==="message"?"Message":"Follow-up Message",modalTitle:n==="message"?"Choose Linkedin Connection Message":"Choose Follow Up Message"};case de.LINKED_IN_MESSAGE:return{withAttachments:!0,icon:hs,title:"Send LinkedIn message",messageTitle:"Message:",modalTitle:"Choose Message Template"};case de.LINKED_IN_CHAINED_MESSAGE:return{withAttachments:!0,icon:hs,title:"Send Chained Linkedin Messages",messageTitle:"Chained Messages:",modalTitle:"Choose Chained Messages Template"};case de.GROUP_MESSAGE:return{icon:hs,title:"Group Message",messageTitle:"Message:",modalTitle:"Choose Group Message Template"};case de.EVENT_MESSAGE:return{icon:hs,title:"Event Message",messageTitle:"Message:",modalTitle:"Choose Event Message Template"};case de.EMAIL:return{withSubject:!0,withAttachments:!0,icon:pa,title:"Email",messageTitle:"Message:",modalTitle:"Choose Email Template"};case de.TWITTER_DM:return{icon:Mh,withAttachments:!0,title:"Send message via X (Twitter)",messageTitle:"Message:",modalTitle:"Choose X (Twitter) DM Template"};default:return{icon:hs,title:"Send message",messageTitle:"Message:",modalTitle:"Choose Message Template",withSubject:!0,withAttachments:!0}}},Oh=(e,n)=>{const{connect_followup:s,chainedMessages:r}=n;switch(e){case de.IN_MAIL_MESSAGE:return{icon:ue.INMAIL,title:"Send InMail message",messages:[{key:"subject",title:"Subject:"},{key:"message",title:"Message:"}]};case de.LINKED_IN_CONNECT:return{icon:ue.LINKEDIN,title:"LinkedIn connect",messages:[{key:"message",title:"Message:"},{key:"followup_message",title:s?"Follow-up Message:":""}]};case de.LINKED_IN_MESSAGE:return{icon:ue.LINKEDIN,title:"Send LinkedIn message",messages:[{key:"message",title:"Message:"}]};case de.LINKED_IN_CHAINED_MESSAGE:{const a=r.map((i,o)=>({key:"message",title:`${l5[o]}:`}));return{icon:ue.LINKEDIN,title:"Send Chained Linkedin Messages",chainedMessages:a}}case de.LINKED_IN_VIEW:return{icon:ue.LINKEDIN,title:"Engage with Profile"};case de.EMAIL:return{icon:ue.EMAIL,title:"Send email",messages:[{key:"subject",title:"Subject:"},{key:"message",title:"Message:"}]};case de.TWITTER_DM:return{icon:ue.TWITTER,title:"Send X (Twitter) Direct Message",messages:[{key:"message",title:"Message:"}]};case de.TWITTER_FOLLOW:return{icon:ue.TWITTER,title:"Follow Lead on X (Twitter)",messages:[{description:"Follow Lead on X (Twitter)"}
4]};case de.GROUP_MESSAGE:return{icon:ue.LINKEDIN,title:"Send Group message",messages:[{key:"message",title:"Message:"}]};case de.EVENT_MESSAGE:return{icon:ue.LINKEDIN,title:"Send Event message",messages:[{key:"message",title:"Message:"}]};case de.INVITE_TO_EVENT:return{icon:ue.LINKEDIN,title:"Invite to Event",messages:[{description:"Invite Lead to Event"}]};case de.INVITE_TO_COMPANY:return{icon:ue.LINKEDIN,title:"Invite to Company",messages:[{description:"Invite Lead to Company"}]};default:return null}},qD=(e,n=!1)=>{if(n)switch(e){case U.LINKEDIN_EVENT:return{description:"LinkedIn Event",linkTitle:"LinkedIn Event URL",linkText:"Open LinkedIn Event and review attendees",icon:Et,isShowParameters:!0};case U.EMAIL_CSV_UPLOAD:return{description:"Email addresses uploaded via CSV file",icon:pa,text:Vr,isShowParameters:!0,hideMaxLeadsAmount:!0};case U.EMAIL_CONNECTIONS:return{description:"Email addresses uploaded via Contacts",icon:pa,text:xi};case U.TWITTER_CONNECTIONS:return{description:"X (Twitter) profiles uploaded via Contacts",icon:po,text:xi};case U.TWITTER_CSV_UPLOAD:return{description:"X (Twitter) profiles uploaded via CSV file",icon:po,text:Vr,isShowParameters:!0,hideMaxLeadsAmount:!0};case U.ZAPIER_LEADS:return{description:"Zapier leads",icon:Et,text:"Your leads are coming from Zapier."}}switch(e){case U.LINKEDIN_CSV_UPLOAD:return{description:"LinkedIn URLs uploaded via CSV file",icon:Et,text:Vr,isShowParameters:!0,hideMaxLeadsAmount:!0};case U.EMAIL_CSV_UPLOAD:return{description:"Email addresses uploaded via CSV file",icon:pa,text:Vr,isShowParameters:!0,hideMaxLeadsAmount:!0};case U.LINKEDIN_CONNECTIONS:return{description:"1st degree connections",icon:Et,text:xi};case U.LINKEDIN_SN_SEARCH:return{description:"Sales Navigator search via URL",linkTitle:"Sales Navigator Search URL",linkText:"View Sales Navigator search results on LinkedIn",isShowParameters:!0,icon:Et};case U.LINKEDIN_SN_SAVED_SEARCH:return{description:"Sales Navigator saved search via URL",linkTitle:"Sales Navigator Saved Search URL",linkText:"View Sales Navigator saved search results on LinkedIn",isShowParameters:!0,icon:Et};case U.RECRUITER_SEARCH:return{description:"Recruiter search via URL",linkTitle:"Recruiter Search URL",linkText:"View Recruiter search results on LinkedIn",icon:Et,isShowParameters:!0};case U.LINKEDIN_GROUP:return{description:ho,linkTitle:ho,linkText:"View members of LinkedIn Group",isShowParameters:!0,icon:Et};case U.LINKEDIN_POST:return{description:"LinkedIn Post",linkTitle:"LinkedIn Post URL",linkText:"View LinkedIn Post",isShowParameters:!0,icon:Et};case U.ZAPIER:return{description:"Send LinkedIn URLs to Alfred through Zapier",linkTitle:"LinkedIn Event URL",linkText:"Open LinkedIn Event and review attendees",icon:Et};case U.LINKEDIN_COMPANY:return{description:"LinkedIn Company",linkTitle:"LinkedIn Company URL",linkText:"View LinkedIn Company",isShowParameters:!0,icon:Et};case U.LINKEDIN_NEWSLETTER:return{description:"LinkedIn Newsletter",linkTitle:"LinkedIn Newsletter article URL",linkText:"View LinkedIn Newsletter article",isShowParameters:!0,icon:Et};case U.LINKEDIN_ADVERTISEMENT:return{description:"LinkedIn Ad",linkTitle:"LinkedIn Ad URL",linkText:"View LinkedIn Ad",isShowParameters:!0,icon:Et};case U.LEAD_FINDER:return{description:"Lead Finder Contacts",icon:Et,text:"Your leads are coming from the list of Lead Finder Contacts."};case U.SAVED_LIST:return{description:"Saved List Contacts",icon:Et,text:"Your leads are coming from the Saved List Contacts.",isShowParameters:!0,hideMaxLeadsAmount:!0};default:return{description:"LinkedIn Search",linkTitle:"Search URL",linkText:"View search results on LinkedIn",isShowParameters:!0,icon:Et}}},Dh=({campaign:e,isFirstStep:n,sequenceForm:s,sequenceType:r,usePlaceholderContent:a=!1})=>{var f;const{getValues:i}=s,o=i().sequence||[],l={[de.TWITTER_DM]:"Hi there!",[de.GROUP_MESSAGE]:"Hi there!",[de.EVENT_MESSAGE]:"Hi there!",[de.LINKED_IN_MESSAGE]:"Hi there!",[de.IN_MAIL_MESSAGE]:"How are you?",[de.EMAIL]:"<div>Hi,</div><div>How are you today?</div>",[de.LINKED_IN_CONNECT]:"Looks like we have similar connections, let's connect :)"},u={[de.EMAIL]:((f=o[o.length-1])==null?void 0:f.subject)||"Checking in",[de.IN_MAIL_MESSAGE]:"Hi there!"}
4,d={[de.LINKED_IN_CONNECT]:"Thanks for connecting with me."},p=()=>{var C;return a?r===de.EMAIL?((C=o[o.length-1])==null?void 0:C.subject)??"":"":u[r]??""},h=()=>a||r===de.LINKED_IN_CHAINED_MESSAGE?"":l[r]??"",m={delay_time_unit:$o.DAYS,delay_number:n?0:1,proceed_to_next:!1,followup_message:a?"":d[r]??"",days_til_revoke:0,message:h(),subject:p(),connect_followup:r===de.LINKED_IN_CONNECT,revoke_invite:!1,auto_follow_twitter:!1,gmail_signature:!1,is_editing:!0,auto_endorse:!1,auto_post_like:!1,auto_follow:!1,view:!1,endorsements_count:1,posts_count:1,tags:[],attachments:[],chainedMessages:r===de.LINKED_IN_CHAINED_MESSAGE?[{message:a?"":"Hi there!"},{message:a?"":"How are you?"}]:[]};return(e==null?void 0:e.campaignType)===U.LINKEDIN_GROUP&&(m.group_id=e.searchUrl.split("/").pop()),m},ZD=(e,n)=>e.map(s=>(s.type===de.GROUP_MESSAGE&&(s.group_id||(s.group_id=n.searchUrl.split("/").pop())),s)),YD=e=>{switch(e.type){case Ur.ACCOUNT_LIST:return`https://www.linkedin.com/sales/lists/company/${e.value}`;case Ur.SAVED_ACCOUNTS_SEARCH:return`https://www.linkedin.com/sales/search/company?savedSearchId=${e.value}`;case Ur.LEAD_LIST:return`https://www.linkedin.com/sales/lists/people/${e.value}`;case Ur.SAVED_LEADS_SEARCH:return`https://www.linkedin.com/sales/search/people?savedSearchId=${e.value}`;default:return""}},sl=(e,n)=>!!e&&[U.LINKEDIN_CSV_UPLOAD,U.EMAIL_CSV_UPLOAD,U.TWITTER_CSV_UPLOAD].some(r=>r===e)?`No leads at this time. If you have just started this campaign, please wait while ${n||"Alfred"} verifies new leads.`:`No leads at this time. If you have just started this campaign, please wait while ${n||"Alfred"} searches out new leads.`,o0=({isApproved:e,isReturnToCampaign:n,isCampaignRemoved:s})=>{const r=n?"ed":"";return s?"Campaign is deleted":e?`Return${r} to campaign`:"The Lead is not in the campaign"},Uh=({isCampaignRemoved:e,isLeadRemoved:n})=>e?"Campaign deleted":n?"Deleted from campaign":null,Bh=e=>{switch(e){case U.LINKEDIN_SEARCH:return"LinkedIn Search";case U.LINKEDIN_CSV_UPLOAD:case U.EMAIL_CSV_UPLOAD:case U.TWITTER_CSV_UPLOAD:return"CSV Upload";case U.LINKEDIN_SN_SEARCH:case U.LINKEDIN_SN_SAVED_SEARCH:return"Sales Navigator Searches";case U.LINKEDIN_CONNECTIONS:case U.EMAIL_CONNECTIONS:case U.TWITTER_CONNECTIONS:return"1st Degree Connections";case U.LINKEDIN_POST:return"Posts";case U.LINKEDIN_COMPANY:return"Company page";case U.LINKEDIN_ADVERTISEMENT:return"LinkedIn Ads";case U.LINKEDIN_NEWSLETTER:return"LinkedIn Newsletters";case U.LINKEDIN_GROUP:return ho;case U.LINKEDIN_EVENT:return"LinkedIn Event";case U.ZAPIER:case U.ZAPIER_LEADS:return"3rd Party Integrations";case U.RECRUITER_SEARCH:return"Recruiter Search";case U.LEAD_FINDER:return"Lead Finder";case U.SAVED_LIST:return"Saved List";case U.INTERACTIVE_QUESTIONS:return"Interactive Questions";default:return"Unknown Campaign Type"}},rl=e=>{var n;return e?xn(e)?Object.keys(e.nodes).length:((n=e.sequence)==null?void 0:n.length)??0:0},KD=e=>!e||xn(e)?[]:e.sequence??[],Oa=e=>Number(e==null?void 0:e.version)===2||xn(e==null?void 0:e.touchSequence),Hh=(e,n={})=>[U.LINKEDIN_CSV_UPLOAD,U.EMAIL_CSV_UPLOAD,U.TWITTER_CSV_UPLOAD].some(s=>s===e.campaignType)?{path:`/campaign/${e.id}/audience`,state:{...n,campaignPageType:"csv-upload",category:e.category,isAddMoreLeads:!0}}:e.category===ue.EMAIL&&e.campaignType===U.EMAIL_CONNECTIONS?{path:"/contacts/connections",state:{...n,category:e.category,campaignType:e.campaignType,campaignIdToAddLeads:e.id,isLinkedinOnly:!1,isAddMoreLeads:!0}}:e.category===ue.TWITTER&&e.campaignType===U.TWITTER_CONNECTIONS?{path:"/contacts/connections",state:{...n,category:e.category,campaignType:e.campaignType,campaignIdToAddLeads:e.id,isLinkedinOnly:!1,isAddMoreLeads:!0}}:{path:`/campaign/add-leads/${e.category}`,state:{...n,campaignIdToAddLeads:e.id,isAddMoreLeads:!0}},ms=(e,n={})=>{const{includeFollowUpMessages:s=!0}=n,r=[{label:"Connected",backgroundColor:"#5F4690",hoverBackgroundColor:"#5F469080",data:e.map(({connected:a})=>a),hidden:!1},{label:"Invites",backgroundColor:"#1D6996",hoverBackgroundColor:"#1D699680",data:e.map(({connectRequests:a})=>a),hidden:!1}
4,{label:"Replies",backgroundColor:"#38A6A5",hoverBackgroundColor:"#38A6A580",data:e.map(({responded:a})=>a),hidden:!1},{label:"Messages",backgroundColor:"#0F8554",hoverBackgroundColor:"#0F855480",data:e.map(({messages:a})=>a),hidden:!1},{label:"InMails",backgroundColor:"#73AF48",hoverBackgroundColor:"#73AF4880",data:e.map(({inmails:a})=>a),hidden:!1},{label:"InMail Replies",backgroundColor:"rgb(85,107,47)",hoverBackgroundColor:"rgb(85,107,47)",data:e.map(({respondedInMails:a})=>a),hidden:!1},{label:"Event Messages",backgroundColor:"rgb(184,134,11)",hoverBackgroundColor:"rgb(184,134,11)",data:e.map(({eventMessages:a})=>a),hidden:!1},{label:"Emails Bounced",backgroundColor:"rgb(255,0,0)",hoverBackgroundColor:"rgb(255,0,0)",data:e.map(({emailsBounced:a})=>a),hidden:!1},{label:"Group Messages",backgroundColor:"#EDAD08",hoverBackgroundColor:"#EDAD0880",data:e.map(({groupMessages:a})=>a),hidden:!1},{label:"Views",backgroundColor:"#E17C05",hoverBackgroundColor:"#E17C0580",data:e.map(({viewed:a})=>a),hidden:!1},{label:io,backgroundColor:"#94346E",hoverBackgroundColor:"#94346E80",data:e.map(({followUp:a})=>a),hidden:!1},{label:"Emails sent",backgroundColor:"#6F4070",hoverBackgroundColor:"#6F407080",data:e.map(({emails:a})=>a),hidden:!1},{label:"Email replies",backgroundColor:"#994E95",hoverBackgroundColor:"#994E9580",data:e.map(({emailsReplies:a})=>a),hidden:!1}];return s?r:r.filter(({label:a})=>a!==io)},Vh={generalCampaignTypeLabel:"",isLinkedinOnly:!1,isLinkedinCampaign:!1,isEmailCampaign:!1,isTwitterCampaign:!1,isMultichannelCampaign:!1,isCsvUploadCampaign:!1,isConnectionsCampaign:!1,isSalesNavigatorCampaign:!1,isLinkedInGroupCampaign:!1,isLinkedInEventCampaign:!1,isLinkedInConnectionsCampaign:!1,isZapierCampaign:!1,isInteractiveQuestionsCampaign:!1,isLeadFinderCampaign:!1,isSavedListCampaign:!1},Da=e=>{if(!(e!=null&&e.campaignType))return Vh;const{campaignType:n,category:s,isLinkedinOnly:r=!1}=e;let a="";const i=s===ue.MULTICHANNEL,o=[ue.LINKEDIN,ue.INMAIL,ue.EVENT,ue.GROUP,ue.COMPANY].some(d=>d===s),l=[U.EMAIL_CSV_UPLOAD,U.EMAIL_CONNECTIONS].some(d=>d===n),u=[U.TWITTER_CSV_UPLOAD,U.TWITTER_CONNECTIONS].some(d=>d===n);switch(!0){case s===ue.GROUP:a="LinkedIn Group Campaign";break;case s===ue.EVENT:a="LinkedIn Event Campaign";break;case s===ue.COMPANY:a="LinkedIn Company Campaign";break;case s===ue.INMAIL:a="LinkedIn InMail Campaign";break;case n===U.SAVED_LIST:a="Saved List Campaign";break;case o:a="LinkedIn Campaign";break;case l:a="Email Campaign";break;case u:a="X (Twitter) Campaign";break;case i:a="Multichannel Campaign";break}return{category:s,campaignType:n,generalCampaignTypeLabel:a,isLinkedinOnly:r,isLinkedinCampaign:o,isEmailCampaign:l,isTwitterCampaign:u,isMultichannelCampaign:i,isCsvUploadCampaign:[U.LINKEDIN_CSV_UPLOAD,U.EMAIL_CSV_UPLOAD,U.TWITTER_CSV_UPLOAD].some(d=>d===n),isConnectionsCampaign:[U.LINKEDIN_CONNECTIONS,U.EMAIL_CONNECTIONS,U.TWITTER_CONNECTIONS,U.LEAD_FINDER].some(d=>d===n),isSalesNavigatorCampaign:[U.LINKEDIN_SN_SEARCH,U.LINKEDIN_SN_SAVED_SEARCH].some(d=>d===n),isLinkedInGroupCampaign:n===U.LINKEDIN_GROUP,isLinkedInEventCampaign:n===U.LINKEDIN_EVENT,isLinkedInConnectionsCampaign:n===U.LINKEDIN_CONNECTIONS,isZapierCampaign:[U.ZAPIER_LEADS].some(d=>d===n),isInteractiveQuestionsCampaign:n===U.INTERACTIVE_QUESTIONS,isLeadFinderCampaign:n===U.LEAD_FINDER,isSavedListCampaign:n===U.SAVED_LIST}},QD=e=>{switch(e){case U.EMAIL_CONNECTIONS:return{type:"email",label:"Email"};case U.TWITTER_CONNECTIONS:return{type:"twitter",label:"X (Twitter)"};default:return{type:"linked-in",label:""}}},XD=e=>{const{campaignType:n,searchParameters:s}=e??{};switch(!0){case n===U.LINKEDIN_SN_SEARCH:case(n===U.LINKEDIN_SEARCH&&Qt(s)):return"url";case n===U.LINKEDIN_SEARCH:return"search";case n===U.ZAPIER_LEADS:return"zapier";case n===U.LINKEDIN_POST:return"post";case n===U.LINKEDIN_EVENT:return"event";case n===U.LINKEDIN_SN_SAVED_SEARCH:return"sales-navigator";case n===U.LINKEDIN_GROUP:return"group";case n===U.EMAIL_CSV_UPLOAD:case n===U.TWITTER_CSV_UPLOAD:case n===U.LINKEDIN_CSV_UPLOAD:return"csv-upload";case n===U.LINKEDIN_COMPANY:return"company";case n===U.LINKEDIN_ADVERTISEMENT:return"advertisement";case n===U.LINKEDIN_NEWSLETTER:return"newsletter";case n===U.SAVED_LIST:return"saved-list";default:return""}},Fh=(e,n)=>{const{twitterHandle:s,name:r,linkedInHandle:a,linkedInData:i,picture:o,workEmail:l,action:u,key:d,isSelected:p,campaignType:h,campaignCategory:m}=e??{},{withAction:f}=n??{};if((a||d)&&r&&(!u||u===sn.LINKEDIN_REPLY_DETECTED)&&(!h||h!==U.TWITTER_CSV_UPLOAD)){const C=`https://www.linkedin.com/in/${a||d}`;return{name:r,profileLink:C,avatar:i==null?void 0:i.pic,avatarContent:t.jsx(ht,{firstLatter:r[0],src:o,fallbackSrc:i==null?void 0:i.pic}),nameContent:t.jsx(je,{variant:"darkBlue",openNewTab:!0,external:!0,to:C,children:r})}}if(r&&(s||m===ue.TWITTER)&&(!u||u===sn.TWITTER_REPLY_DETECTED)){const C=`https://twitter.com/${s}`;return{name:r,profileLink:C,avatar:i==null?void 0:i.pic,avatarContent:t.jsx(ht,{firstLatter:r[0],src:o,fallbackSrc:i==null?void 0:i.pic}),nameContent:t.jsx(je,{variant:"darkBlue",openNewTab:!0,external:!0,to:C,children:r})}}return l?{name:l,avatarContent:t.jsx(ht,{firstLatter:l[0]}),nameContent:t.jsx(S,{color:p?"#fff":"inherit",crop:!0,children:l})}:r&&!a&&!s?{name:r,avatarContent:t.jsx(ht,{firstLatter:r[0]}),nameContent:t.jsx(S,{fontSize:"15px",crop:!0,children:r})}:{avatarContent:t.jsx(ht,{src:n!=null&&n.withAction?e==null?void 0:e.companyLogo:""}),nameContent:t.jsx(S,{color:p?"#fff":"inherit",crop:!0,children:f?`${e==null?void 0:e.companyName} action`:r||l||s})}},JD=(e,n=!1)=>{const{isPremium:s,isOpenLink:r,email:a,phone:i,skype:o,twitter:l,isExcluded:u,search:d,selectedOnly:p}=e,{firstName:h,lastName:m,companyName:f,title:C,countries:E,cities:b,industryCode:w,languages:I,tags:T}=e,j=[s,r,a,i,o,l,p];n||j.push(u);const L=j.includes(!0),_=[h,m,f,C,E,b,w,I,T].some(N=>N==null?void 0:N.length);return L||_||!!(d!=null&&d.trim())},eU=(e,n=!1)=>{const{firstName:s,lastName:r,currentTitle:a,currentEmployer:i,countries:o,cities:l,campaignIds:u,tags:d,isExcluded:p,search:h,connectedOnly:m,selectedOnly:f}=e,C=[m,f];n||C.push(p);const E=C.includes(!0);return[s,r,a,i,o,l,u,d].some(w=>w==null?void 0:w.length)||E||!!(h!=null&&h.trim())},wt=(e=[],n=!1)=>{const s=e.filter(a=>!a.exclude).map(a=>n?Number(a.value):a.value),r=e.filter(a=>a.exclude).map(a=>n?Number(a.value):a.value);return{include:s,exclude:r}},$h=e=>{var a;const{cities:n,countries:s,...r}=e;return{...r,search:(a=r.search)==null?void 0:a.trim(),firstName:wt(r.firstName),lastName:wt(r.lastName),currentTitle:wt(r.currentTitle),currentEmployer:wt(r.currentEmployer),location:wt([...s||[],...n||[]]),campaignIds:wt(r.campaignIds,!0),tags:wt(r.tags,!0)}},Gh=e=>{var a;const{cities:n,countries:s,...r}=e;return{...r,search:(a=r.search)==null?void 0:a.trim(),firstName:wt(r.firstName),lastName:wt(r.lastName),title:wt(r.title),companyName:wt(r.companyName),geography:wt([...s||[],...n||[]]),languages:wt(r.languages),industryCode:wt(r.industryCode,!0),tags:wt(r.tags,!0),campaignIds:wt(r.campaignIds,!0)}},zh=[Rn.sponsoredMessage,Rn.sponsoredInmail],l0=e=>{const n=e.find(s=>
4zh.includes(s.subtype)&&!!s.name);return n!=null&&n.name?{name:n.name,headline:n.headline||"",imageUrl:n.imageUrl||"",entityUrn:n.entityUrn||""}:null},D1=(e,n=[])=>{const s=l0(n);if(!s)return e;const r=e.participants[0]||{entityUrn:"",objectUrn:"",firstName:"",lastName:"",imageUrl:"",headline:""};return{...e,isSponsored:!0,participants:[{...r,entityUrn:s.entityUrn||r.entityUrn,firstName:s.name,lastName:"",imageUrl:s.imageUrl||r.imageUrl,headline:s.headline||r.headline},...e.participants.slice(1)]}},Wh=(e,n)=>{const s=e.participants[0];return(s==null?void 0:s.firstName)===n.name&&(s==null?void 0:s.imageUrl)===n.imageUrl&&((s==null?void 0:s.headline)||"")===n.headline},qh=(e,n)=>{e.setQueriesData({queryKey:["get-li-conversations-v2"]},s=>s&&{...s,pages:s.pages.map(r=>({...r,data:r.data.map(a=>a.conversationId===n.conversationId?n:a)}))})};function Zh(){return new Promise(()=>{window.fbAsyncInit=function(){window.FB.init({appId:C5,cookie:!0,xfbml:!0,version:"v23.0"})},(function(e,n,s){var i;const r=e.getElementsByTagName(n)[0];let a=r;e.getElementById(s)||(a=e.createElement(n),a.id=s,a.src="https://connect.facebook.net/en_US/sdk.js",(i=r==null?void 0:r.parentNode)==null||i.insertBefore(a,r))})(document,"script","facebook-jssdk")})}const c0="Couldn't reach LinkedIn through this proxy. The proxy may be blocked or incompatible.",Yh=new Set(["proxy_tunnel_connection_failed","ERR_TUNNEL_CONNECTION_FAILED"]),d0=e=>{var r,a,i;if(!e||typeof e!="object")return!1;const n=e;return!!([n.code,n.error,(r=n.data)==null?void 0:r.error,(a=n.data)==null?void 0:a.codeName].filter(Boolean).some(o=>Yh.has(o))||n.message==="Proxy Connection Error"&&((i=n.data)==null?void 0:i.code)===510)},mo=e=>{var n;return["LOGGED_IN_VERIFICATION","LOGGED_IN_VERIFICATION_PHONE","LOGGED_IN_VERIFICATION_EMAIL","LOGGED_IN_VERIFICATION_2FA"].includes(((n=e==null?void 0:e.cloudBotStatus)==null?void 0:n.loginStatus)||"")},go=e=>{var n,s,r;return!!((n=e==null?void 0:e.cloudBotStatus)!=null&&n.browserId)&&!!((s=e==null?void 0:e.cloudBotStatus)!=null&&s.verificationCodeExpiresAt)&&se().isBefore((r=e==null?void 0:e.cloudBotStatus)==null?void 0:r.verificationCodeExpiresAt)},u0=e=>{var n;return!!(e!=null&&e.isLinkedInLoginValid)&&((n=e==null?void 0:e.cloudBotStatus)==null?void 0:n.loginStatus)==="LOGGED_IN"},pr=e=>{const{isLinkedinActive:n,cloudBotStatus:s,isCloudBotInLoginProcess:r}=e||{};return r?!0:n?!s||!!(s!=null&&s.trying_login):!1},Kh=e=>{const{isLinkedinActive:n,cloudBotStatus:s,isCloudBotInLoginProcess:r}=e||{};return!(r||!n||!s||pr(e)||u0(e)||mo(e)&&go(e))},Qh=e=>{const{isLinkedinActive:n,isCloudBotInLoginProcess:s}=e||{};return s||!n||pr(e)?!1:!!(e!=null&&e.isLinkedinActive)},zn=e=>{const{isLinkedinActive:n,isCloudBotInLoginProcess:s}=e||{};return s||!n||pr(e)?!1:u0(e)},Xh=e=>{const{isLinkedinActive:n,isCloudBotInLoginProcess:s,cloudBotStatus:r}=e||{};return s||!n?!1:!!(r!=null&&r.warningType)&&[di.NOTICE,di.PERMANENT,di.TEMPORAL].some(a=>a===r.warningType)},Jh=e=>{var n;if(!e)return"";switch((n=e.data)==null?void 0:n.error){case It.loginError:return"Something went wrong during LinkedIn login. We recommend you stop logging in for some hours.";case It.captchaDidNotAppear:case It.errorCaptchaUnsolvable:case It.captchaError:case It.submitRetriesExceeded:case It.captchaUnsupported:case It.errorUnknown:case It.requestRetriesExceeded:case It.errorTaskTimeout:case It.errorCaptchaSolveFailed:case It.errorZeroBalance:return"Oops! It looks like LinkedIn’s captcha is giving us a tough time. Please click on the ‘update’ button again to get things back on track.";case It.secondCaptchaDetected:return"Oops! LinkedIn’s captcha is causing some difficulties. Take a break, and please try again in 12-24 hours.";case It.somethingUnexpected:return"Something unexpected happened on LinkedIn platform. Please try again later.";case It.serverUnavailable:return"Oops! LinkedIn’s server is currently unavailable. Please try again later."}return!["LOGGED_IN","LOGGED_IN_VERIFICATION_EMAIL","LOGGED_IN_VERIFICATION_2FA","LOGGED_IN_VERIFICATION_PHONE","LOGGED_IN_VERIFICATION"].includes(e==null?void 0:e.loginStatus)&&(e==null?void 0:e.loginStatus)==="LOGGED_IN_INVALID"?"You have entered invali
4d LinkedIn credentials. Please fix them and try again.":""},em=(e,{requirePassword:n=!0}={})=>{const s={};return e.userName.trim()||(s.userName="User name is required"),n&&!e.password.trim()&&(s.password="Password is required"),e.domain.trim()||(s.domain="Domain is required"),e.port.trim()||(s.port="Port is required"),s},tm=(e,n,s)=>{const r=e.userName.trim()||n,a=e.password.trim()||s!=null&&s.hasStoredPassword?"••••••":n,i=e.domain.trim()||n,o=e.port.trim()||n;return{userName:r,password:a,domain:i,port:o}},U1=e=>({name:e.name||"",userName:e.username||"",password:e.password||"",domain:e.domain||"",port:e.port?String(e.port):""}),nm=e=>({name:e.name.trim(),domain:e.domain.trim(),port:Number(e.port),username:e.userName.trim(),password:e.password.trim()}),al=(e,n)=>{const s=e.port.trim(),r=n.port.trim();return{...e.name.trim()!==n.name.trim()&&{name:n.name.trim()},...e.domain.trim()!==n.domain.trim()&&{domain:n.domain.trim()},...s!==r&&r&&{port:Number(r)},...e.userName.trim()!==n.userName.trim()&&{username:n.userName.trim()},...n.password.trim()&&e.password.trim()!==n.password.trim()&&{password:n.password.trim()}}};se.extend(Cr);se.extend(g2);const tU=(e,n,s)=>{switch(n){case hn.PUBLISHED:return{tooltip:"This post is published",bgColor:`${e.success[50]}`,borderColor:`${e.success[150]}`,color:`${e.success[550]}`,label:"Published"};case hn.PENDING:return{tooltip:"This post is scheduled",bgColor:e.blue.extralight,borderColor:e.blue.mediumLight,color:e.blue.primary,label:"Scheduled"};case hn.ARCHIVED:return{tooltip:"This post is archived",bgColor:e.greyBlue[25],borderColor:e.greyBlue[35],color:e.greyBlue[60],label:"Archived"};case hn.EXECUTING:case hn.QUEUED:return{tooltip:"This post is queued and will be published soon.",bgColor:e.blueLight[100],borderColor:e.blueLight[200],color:e.blueLight[700],label:"Queued"};case hn.SKIPPED:return{tooltip:s===Yt.PAYLOAD_TOO_LONG?j1[Yt.PAYLOAD_TOO_LONG]:"This post is skipped, either bot was not running when the post was scheduled or there is some problem at platform.",bgColor:e.additional.yellow[50],borderColor:e.additional.yellow[100],color:e.additional.yellow[700],label:"Skipped"};case hn.DELETED:return{tooltip:"The post is removed from the platform.",bgColor:e.purple[100],borderColor:e.purple[300],color:e.purple[600],label:"Not Found"};case hn.INVALID:return{tooltip:s?j1[s]:"This post file has invalid parameters, please try another file",bgColor:e.error[50],borderColor:e.error[150],color:e.additional.red50,label:"Invalid"};default:return{}}},nU=({isAppropriatePlan:e,notAppropriatePlanError:n,attachmentError:s,isTrialStarted:r,post:a,onInvalidError:i,timezoneName:o})=>{var f,C,E,b,w,I,T,j,L;const l=(f=a==null?void 0:a.content)==null?void 0:f.length,u=[{condition:!a.title,message:"Add title to the post",invalidCallback:()=>{var _;return(_=document.getElementById("title-input"))==null?void 0:_.focus()}},{condition:!a.content,message:"Add some text to post",invalidCallback:()=>{var _;return(_=document.getElementById("content-input"))==null?void 0:_.focus()}},{condition:!!s&&(!D5(s)||!!((C=a==null?void 0:a.postTypes)!=null&&C.includes("linkedin"))),message:s},{condition:!((E=a.postTypes)!=null&&E.length),message:"Please select at least one platform to post your content!"},{condition:((b=a==null?void 0:a.postTypes)==null?void 0:b.includes("instagram"))&&!((w=a==null?void 0:a.attachments)!=null&&w.length),message:"PLEASE ADD IMAGE/VIDEO TO PUBLISH IN INSTAGRAM"},{condition:((I=a==null?void 0:a.postTypes)==null?void 0:I.includes("twitter"))&&l>bn.twitter,message:`X (Twitter) posts cannot be longer than ${bn.twitter} characters.`},{condition:((T=a==null?void 0:a.postTypes)==null?void 0:T.includes("instagram"))&&l>bn.instagram,message:`Instagram post caption cannot be longer than ${bn.instagram} characters.`},{condition:((j=a==null?void 0:a.postTypes)==null?void 0:j.includes("facebook"))&&l>bn.facebook,message:`Facebook posts cannot be longer than ${bn.facebook} characters.`},{condition:((L=a==null?void 0:a.postTypes)==null?void 0:L.includes("linkedin"))&&l>bn.linkedin,message:`Linkedin post cannot be longer than ${bn.linkedin} characters.`},{condition:se().tz(o).isAfter(a.scheduledAt),message:`Post time should be after the current time (${se().tz(o).format("hh:mm A")})`},{condition:!e&&!r,message:n}],d=u.findIndex(({condition:_})=>_),{condition:p,message:h,invalidCallback:m}=u[d]??{};return p?(m==null||m(),i(h),!1):!0},p0={page:1,perPage:Mt,search:"",sortField:"connectedAt",sortOrder:"DESC",firstName:[],lastName:[],companyName:[],title:[],countries:[],cities:[],industryCode:[],languages:[],tags:[],campaignIds:[],isPremium:!1,isOpenLink:!1,email:!1,phone:!1,skype:!1,twitter:!1,isExcluded:!0,selectedOnly:!1},sm={request:p0,exportData:{selectedLeads:[]}},h0=kt({name:"connections",initialState:sm,reducers:{updateBlacklistConnectionsRequestParam
4s:(e,n)=>{e.request={...e.request,...n.payload??{}}},setBlacklistConnectionSelectedLeads:(e,n)=>{e.exportData.selectedLeads=n.payload},clearBlacklistConnectionRequestParams:e=>{e.request=p0}}}),{setBlacklistConnectionSelectedLeads:sU,clearBlacklistConnectionRequestParams:rm,updateBlacklistConnectionsRequestParams:rU}=h0.actions,am=h0.reducer,m0={page:1,perPage:Mt,search:"",sortField:"updatedAt",sortOrder:"DESC",firstName:[],lastName:[],currentTitle:[],currentEmployer:[],countries:[],cities:[],campaignIds:[],tags:[],isExcluded:!0,connectedOnly:!1,selectedOnly:!1,isOpenLink:!1,isPremium:!1},im={request:m0,exportData:{selectedLeads:[]}},g0=kt({name:"blacklist",initialState:im,reducers:{updateBlacklistLeadsRequestParams:(e,n)=>{e.request={...e.request,...n.payload??{}}},setBlacklistLeadsSelectedLeads:(e,n)=>{e.exportData.selectedLeads=n.payload},clearBlacklistLeadsRequestParams:e=>{e.request=m0}}}),{updateBlacklistLeadsRequestParams:aU,setBlacklistLeadsSelectedLeads:om,clearBlacklistLeadsRequestParams:lm}=g0.actions,cm=g0.reducer,dm=Object.values(ue).reduce((e,n)=>(e[n]={active:{page:1,perPage:Mt,sortField:"createdAt",sortOrder:"DESC"},paused:{page:1,perPage:Mt,sortField:"createdAt",sortOrder:"DESC"},draft:{page:1,perPage:Mt,sortField:"createdAt",sortOrder:"DESC"},archived:{page:1,perPage:Mt,sortField:"createdAt",sortOrder:"DESC"}},e),{}),Fr={selectedLeads:{campaignId:0,entityUrns:[]},selectedIgnoredLeads:{campaignId:0,entityUrns:[]},statsParams:dm,repliesParams:{page:1,perPage:Mt,sortField:"date",sortOrder:"DESC",entityUrns:[]},activityParams:{page:1,perPage:Mt,sortField:"date",sortOrder:"DESC",timeFilter:"all",names:[],campaigns:[],filters:[]}},x0=kt({name:"campaign",initialState:Fr,reducers:{updateSelectedLeads:(e,n)=>{e.selectedLeads={...e.selectedLeads,...n.payload??{}}},updateIgnoredSelectedLeads:(e,n)=>{e.selectedIgnoredLeads={...e.selectedIgnoredLeads,...n.payload??{}}},removeIgnoredSelectedLead:(e,n)=>{const s=e.selectedIgnoredLeads.entityUrns.filter(r=>!n.payload.includes(r));e.selectedIgnoredLeads.entityUrns=[...s]},clearStatTableParams:e=>{e.statsParams=Fr.statsParams},updateStatTableParams:(e,n)=>{const{params:s,category:r,status:a}=n.payload||{};e.statsParams[r][a]={...e.statsParams[r][a],...s}},clearActivityParams:e=>{e.activityParams=Fr.activityParams},updateActivityParams:(e,n)=>{e.activityParams={...e.activityParams,...n.payload??{}},!!(n.payload.names||n.payload.campaigns||n.payload.filters||n.payload.timeFilter||n.payload.customFromDate||n.payload.customToDate)&&(e.activityParams.page=1)},clearRepliesParams:e=>{e.repliesParams=Fr.repliesParams},updateRepliesParams:(e,n)=>{e.repliesParams={...e.repliesParams,...n.payload??{}}}}}),{updateSelectedLeads:f0,updateStatTableParams:um,clearStatTableParams:iU,clearActivityParams:oU,updateActivityParams:lU,clearRepliesParams:cU,updateRepliesParams:pm,updateIgnoredSelectedLeads:dU,removeIgnoredSelectedLead:uU}=x0.actions,hm=x0.reducer,C0={page:1,perPage:Mt,search:"",sortField:"connectedAt",sortOrder:"DESC",firstName:[],lastName:[],companyName:[],title:[],countries:[],cities:[],industryCode:[],languages:[],tags:[],campaignIds:[],isPremium:!1,isOpenLink:!1,email:!1,phone:!1,skype:!1,twitter:!1,isExcluded:!1,selectedOnly:!1},xo=[{key:"name",label:"Name",readOnly:!0},{key:"company",label:"Company"},{key:"title",label:"Position"},{key:"industry",label:"Industry"},{key:"geography",label:"Location"},{key:"email",label:"Email"},{key:"phone",label:"Phone"},{key:"connectedAt",label:"Connected on"},{key:"tags",label:"Tags"},{key:"notes",label:"Notes"},{key:"language",label:"Languages"},{key:"skill",label:"Skills"},{key:"school",label:"School"},{key:"field_of_study",label:"Field of Study"},{key:"campaignName",label:"Campaign"}],mm={request:C0,connectionColumns:xo,exportData:{selectedLeads:[]}},y0=kt({name:"connections",initialState:mm,reducers:{updateConnectionsRequestParams:(e,n)=>{e.request={...e.request,...n.payload??{}}},setConnectionSelectedLeads:(e,n)=>{e.exportData.selectedLeads=n.payload},setConnectionColumns:(e,n)=>{e.connectionColumns=n.payload?Rp(n.payload,xo,"key"):xo}
4,clearConnectionRequestParams:e=>{e.request=C0}}}),{setConnectionSelectedLeads:fo,setConnectionColumns:gm,clearConnectionRequestParams:xm,updateConnectionsRequestParams:pU}=y0.actions,fm=y0.reducer,Cm={selectedConversation:null,filterType:Nt.ALL,query:"",selectedTags:[],pictures:{},userConversationId:null},E0=kt({name:"conversation",initialState:Cm,reducers:{setSelectedConversation:(e,n)=>{e.selectedConversation=n.payload},setFilterType:(e,n)=>{e.filterType=n.payload},setQuery:(e,n)=>{e.query=n.payload},setSelectedTags:(e,n)=>{e.selectedTags=n.payload},setConversationPictures:(e,n)=>{e.pictures={...e.pictures,...n.payload}},clearConversationState:e=>{e.selectedConversation=null,e.filterType=Nt.ALL,e.selectedTags=[]}}}),{setSelectedConversation:hU,setFilterType:mU,setQuery:gU,setSelectedTags:xU,setConversationPictures:fU,clearConversationState:CU}=E0.actions,ym=E0.reducer,B1={campaignsParams:{page:1,perPage:5}},S0=kt({name:"dashboard",initialState:B1,reducers:{clearCampaignsParams:e=>{e.campaignsParams=B1.campaignsParams},updateCampaignsParams:(e,n)=>{e.campaignsParams={...e.campaignsParams,...n.payload??{}}}}}),{updateCampaignsParams:yU,clearCampaignsParams:EU}=S0.actions,Em=S0.reducer,b0={page:1,perPage:Mt,search:"",sortField:"updatedAt",sortOrder:"DESC",firstName:[],lastName:[],currentTitle:[],currentEmployer:[],countries:[],cities:[],campaignIds:[],tags:[],isExcluded:!1,connectedOnly:!1,selectedOnly:!1,isOpenLink:!1,isPremium:!1},L0=[{key:"name",label:"Name",readOnly:!0},{key:"company",label:"Company"},{key:"title",label:"Position"},{key:"campaign",label:"Campaign"},{key:"action",label:"Last Action"},{key:"connected",label:"Connected"},{key:"tags",label:"Tags"},{key:"notes",label:"Notes"}],Sm={request:b0,leadColumns:L0,exportData:{selectedLeads:[]}},w0=kt({name:"lead",initialState:Sm,reducers:{updateLeadsRequestParams:(e,n)=>{e.request={...e.request,...n.payload??{}}},setSelectedLeads:(e,n)=>{e.exportData.selectedLeads=n.payload},setLeadColumns:(e,n)=>{var r;const s=(n==null?void 0:n.payload)||L0;e.leadColumns=(r=s==null?void 0:s.filter(a=>(a==null?void 0:a.key)!=="shared_connections"))==null?void 0:r.map(a=>(a==null?void 0:a.key)==="degree"?{key:"connected",label:"Connected"}:a)},clearLeadRequestParams:e=>{e.request=b0}}}),{updateLeadsRequestParams:SU,setSelectedLeads:T0,setLeadColumns:bm,clearLeadRequestParams:Lm}=w0.actions,wm=w0.reducer,Tm={banners:{isWaitlistOpen:!1,isShowUpgradePlan:!1,isShowOnTheListModal:!1},isBlurTable:!1,totalSearchLeads:0},j0=kt({name:"leadFinder",initialState:Tm,reducers:{setHandleWaitlistModal:(e,n)=>{e.banners.isWaitlistOpen=n.payload},setHandleUpgradePlanModal:(e,n)=>{e.banners.isShowUpgradePlan=n.payload},setTotalSalesExplorerSearchLeads:(e,n)=>{e.totalSearchLeads=n.payload},setHandleShowOnTheListModal:(e,n)=>{e.banners.isShowOnTheListModal=n.payload},setBlurTable:(e,n)=>{e.isBlurTable=n.payload},setResetLeadFinder:e=>{e.banners.isShowUpgradePlan=!1,e.banners.isShowOnTheListModal=!1,e.isBlurTable=!1,e.totalSearchLeads=0}}}),{setHandleWaitlistModal:jm,setHandleUpgradePlanModal:vm,setTotalSalesExplorerSearchLeads:bU,setHandleShowOnTheListModal:Im,setBlurTable:_m,setResetLeadFinder:Am}=j0.actions,Nm=j0.reducer,km=[],v0=kt({name:"modal",initialState:km,reducers:{openModal:(e,n)=>{var s,r;e.push({...n.payload,params:n.payload.params??{}}),(document==null?void 0:document.activeElement)instanceof HTMLElement&&((r=(s=document==null?void 0:document.activeElement)==null?void 0:s.blur)==null||r.call(s))},closeModal:e=>{e.pop()}}}),{openModal:Ne,closeModal:Q}=v0.actions,Rm=v0.reducer,Mm={[te.ERROR]:it.ERROR,[te.WARN]:it.WARNING,[te.LINKEDIN_ERROR]:it.ERROR,[te.TRIAL]:it.WARNING,[te.DEACTIVATED]:it.ERROR,[te.OUTSIDE_SCHEDULED]:it.WARNING,[te.LINKEDIN_MAX_PENDING_INVITES]:it.WARNING,[te.LIMITED_CONNECTIONS_REQUESTS]:it.WARNING,[te.LINKEDIN_PASSWORD_RESET]:it.WARNING,[te.LIMIT_OF_LI_CONNECTIONS]:it.WARNING,[te.BOT_RECONNECT_STATUS]:it.WARNING,[te.OUTLOOK_INTEGRATION_ERROR]:it.ERROR,[te.LI_INVITES_RESTRICTION]:it.WARNING,[te.FACEBOOK_INTEGRATION_ERROR]:it.ERROR,[te.SUBSCRIPTION_CANCELLED]:it.SUCCESS,[te.SUBSCRIPTION_PAUSED]:it.WARNING,[te.SUBSCRIPTION_RENEWAL_REMINDER]:it.NOTICE,[te.ACCOUNT_BLOCKED]:it.ERROR},H1={[te.LINKEDIN_ERROR]:1,[te.SUBSCRIPTION_RENEWAL_REMINDER]:2,[te.ACCOUNT_BLOCKED]:3,[te.SUBSCRIPTION_CANCELLED]:4,[te.SUBSCRIPTION_PAUSED]:5,[te.DEACTIVATED]:6,[te.TRIAL]:7,[te.LINKEDIN_MAX_PENDING_INVITES]:8,[te.LIMITED_CONNECTIONS_REQUESTS]:9,[te.LINKEDIN_PASSWORD_RESET]:10,[te.LIMIT_OF_LI_CONNECTIONS]:11,[te.BOT_RECONNECT_STATUS]:12,[te.OUTLOOK_INTEGRATION_ERROR]:13,[te.LI_INVITES_RESTRICTION]:14,[te.FACEBOOK_INTEGRATION_ERROR]:15,[te.OUTSIDE_SCHEDULED]:16,[te.ERROR]:17,[te.WARN]:18},ha=e=>[...e].sort((n,s)=>{const r=H1[n.type]||999,a=H1[s.type]||999;return r-a}),Pm={notifications:[]},I0=kt({name:"notification",initialState:Pm,reducers:{addNotification:(e,n)=>{const s={...n.payload};s.level||(s.level=Mm[s.type]||it.NOTICE);const r={...s,id:fa()};e.notifications=e.notifications.filter(a=>a.type!==s.type),e.notifications.push(r),e.notifications=ha(e.notifications)},removeNotification:(e,n)=>{const{notificationId:s}=n.payload;e.notifications=e.notifications.filter(({id:r})=>r!==s),e.notifications=ha(e.notifications)},removeAllNotifications:e=>{e.notifications=[]},removeNotificationByType:(e,n)=>{const{type:s}=n.payload;e.notifications=e.notifications.filter(r=>r.type!==s),e.notifications=ha(e.notifications)}}}),{addNotification:Tt,removeNotification:Om,removeAllNotifications:hr,removeNotificationByType:Ct}=I0.actions,Dm=e=>ha(e.notification.notifications),Um=I0.reducer,Bm=(e="")=>{const s=(e.split(".")[1]||"").replace(/-/g,"+").replace(/_/g,"/"),r=decodeURIComponent(window.atob(s).split("").map(function(l){return`%${l.charCodeAt(0).toString(16).padStart(2,"0")}`}).join(""))||"{}",{sub:a,name:i,realUserId:o}=JSON.parse(r);return{id:a,name:i,realUserId:o}},Hm=new rs,_0=Hm.get(fn),V1=localStorage.getItem("user"),{id:Vm,realUserId:F1}=Bm(_0),Fm={isAuth:!!_0,isImpersonate:!!F1&&F1!==Vm,isAppDeactivated:!1,isAppPaused:!1,realImpersonateUser:{},profile:V1&&JSON.parse(V1)||{}},A0=kt({name:"user",initialState:Fm,reducers:{setUser:(e,n)=>{e.profile=n.payload,e.isAuth=!0,localStorage.setItem("user",JSON.stringify(n.payload))},setUserSelectedContract:(e,n)=>{e.profile.selectedContractId=n.payload},removeUser:e=>{e.profile={},e.isAppDeactivated=!1,e.isAppPaused=!1,e.isAuth=!1,Zo(fn),localStorage.removeItem("user")},removeTeamId:e=>{e.profile.lastTeamId=null,localStorage.setItem("user",JSON.stringify(e.profile))},setIsAppDeactivated:(e,n)=>{e.isAppDeactivated=n.payload},setIsAppPaused:(e,n)=>{e.isAppPaused=n.payload},setIsEmailVerified:(e,n)=>{e.profile.isEmailVerified=n.payload},setRealImpersonateUser:(e,n)=>{e.realImpersonateUser=n.payload}},extraReducers:e=>{e.addCase(ol,n=>{n.profile.lastTeamId&&(n.profile.lastTeamId=null,localStorage.setItem("user",JSON.stringify(n.profile)))})}}),{setUser:br,setUserSelectedContract:$m,setIsEmailVerified:LU,removeUser:il,setIsAppDeactivated:Gm,setIsAppPaused:Co,removeTeamId:zm,setRealImpersonateUser:Wm}=A0.actions,qm=A0.reducer,$1=localStorage.getItem("team"),Zm={data:$1?JSON.parse($1):null},N0=kt({name:"team",initialState:Zm,reducers:{setTeam:(e,n)=>{e.data=n.payload,localStorage.setItem("team",JSON.stringify(n.payload))},removeTeam:e=>{e.data=null,localStorage.removeItem("team")}},extraReducers:e=>{e.addCase(il,n=>{n.data=null,localStorage.removeItem("team")})}}),{setTeam:k0,removeTeam:ol}=N0.actions,Ym=N0.reducer,Km=5e3,Qm=0,Xm={trace:[]},R0=kt({name:"toast",initialState:Xm,reducers:{showToast:(e,n)=>{const{message:s,type:r,autoCloseTime:a,delay:i,model:o="toast"}=n.payload,l={autoCloseTime:a??Km,message:s,type:r,model:o,delay:i??Qm};e.trace.unshift(l)},clearToasts:e=>{e.trace=[]}}}),{showToast:Z,clearToasts:Jm}=R0.actions,e9=R0.reducer,t9={fetchingTrends:{}},M0=kt({name:"team",initialState:t9,reducers:{setFetchingTrend:(e,n)=>{e.fetchingTrends={...e.fetchingTrends,...n.payload}}}}),{setFetchingTrend:G1}=M0.actions,n9=M0.reducer,s9={banners:{isWarningPickerOpen:!1,isErrorPickerOpen:!1}},P0=kt({name:"whitelabel",initialState:s9,reducers:{setHandleOpenColorPickerWarning:(e,n)=>{e.banners.isWarningPickerOpen=n.payload},setHandleOpenColorPickerError:(e,n)=>{e.banners.isErrorPickerOpen=n.payload}}}),{setHandleOpenColorPickerWarning:z1,setHandleOpenColorPickerError:W1}=P0.actions,r9=P0.reducer,a9=_6({team:Ym,user:qm,conversation:ym,connections:fm,lead:wm,modal:Rm,toast:e9,notification:Um,campaign:hm,trends:n9,dashboard:Em,blacklistLeads:cm,blacklistConnections:am,whitelabel:r9,leadFinder:Nm}),i9=A6({reducer:a9,middleware:e=>e({serializableCheck:!1})}),fi="save-sales-explorer-leads-list",o9="Saving your list...",l9="Something went wrong. Please try again later.",c9="List saved successfully";let ma=0;const d9=()=>ma>0,q1=(e,n)=>{var r;return((r=e.message)==null?void 0:r.trim())||n},u9=(e,n)=>{const s=r=>{e.off(fi,s),n(r)};return e.on(fi,s),()=>{e.off(fi,s)}},p9=e=>Promise.all([e.refetchQueries({queryKey:m9}),e.refetchQueries({queryKey:g9})]),h9=async(e,n,s)=>{if(s.status==="completed"){e(Z({type:"success",message:q1(s,c9),autoCloseTime:6e3})),await p9(n);return}e(Z({type:"error",message:q1(s,l9),autoCloseTime:6e3}))},wU=async({socket:e,dispatch:n,queryClient:s,saveRequest:r})=>{ma+=1;let a;const i=new Promise(o=>{a=u9(e,o)});try{await r(),n(Z({type:"info",message:o9,autoCloseTime:3e3}));const o=await i;return await h9(n,s,o),o}catch(o){throw a==null||a(),o}finally{ma=Math.max(0,ma-1)}},Ht=e=>e?e.filter(n=>n!=null&&n!==""):[],gs=e=>{if(typeof e=="boolean")return e;if(typeof e=="number")return e===1;if(typeof e=="string"){const n=e.trim().toLowerCase();if(n==="true"||n==="1")return!0;
4if(n==="false"||n==="0"||n==="")return!1}return!1},Ft=e=>Ht(e).map(n=>({value:n,label:n})),O0=e=>Object.values(e).every(n=>typeof n=="boolean"?!n:!n.length),D0=(e={})=>({firstNames:Ht(e.firstNames),lastNames:Ht(e.lastNames),companies:Ht(e.companies),positions:Ht(e.positions),languages:Ht(e.languages),skills:Ht(e.skills),industries:Ht(e.industries),countries:Ht(e.countries),cities:Ht(e.cities),companySizes:Ht(e.companySizes),schoolNames:Ht(e.schoolNames),withLinkedinPremium:gs(e.withLinkedinPremium),isOpenLink:gs(e.isOpenLink),withEmail:gs(e.withEmail),withTwitter:gs(e.withTwitter),withSkype:gs(e.withSkype),withPicture:gs(e.withPicture)}),TU=e=>{var r;if(!e)return!1;const n=D0(e.filters);return(((r=e.data)==null?void 0:r.length)??0)>0||!O0(n)},jU=(e,n,s)=>({...Bo(e,"withSkype"),page:n,perPage:s}),vU=(e,n,s)=>["get-sales-explorer-leads",e,n,s],m9=["saved-lists"],g9=["saved-lists-count"],IU=e=>["saved-list",e],_U=(e,n,s)=>["saved-list-leads",e,n,s],x9=(e,n,s)=>e===n||e===s,AU=(e,n,s)=>x9(e.entityUrn,n.entityUrn,s)?{...e,jobTitle:n.title||n.jobTitle||e.jobTitle,companyName:n.companyName||e.companyName,locationName:n.locationName||e.locationName,industryName:n.industryName||e.industryName,schoolName:n.schoolName||e.schoolName,skills:n.skills||e.skills,languages:n.languages||e.languages,picture:n.picture||e.picture,profileBackgroundPhoto:n.profileBackgroundPhoto||e.profileBackgroundPhoto,headline:n.headline||e.headline}:e,NU=(e,n)=>{const s=n.trim().toLowerCase();return s?e.filter(r=>r.name.toLowerCase().includes(s)):e},f9=e=>{const n=new Date(e);return Number.isNaN(n.getTime())?e:n.toLocaleDateString("en-GB",{day:"numeric",month:"long",year:"numeric"})},kU=(e,n,s)=>({id:e,page:n,perPage:s}),RU=(e,n)=>({name:e,filters:Bo(n,"withSkype")}),C9=({firstNames:e,lastNames:n,positions:s,companies:r,languages:a,skills:i,industries:o,countries:l,cities:u,companySizes:d,schoolNames:p,...h})=>({...h,firstNames:Ft(e),lastNames:Ft(n),positions:Ft(s),companies:Ft(r),languages:Ft(a),skills:Ft(i),industries:Ft(o),countries:Ft(l),cities:Ft(u),companySizes:Ft(d),schoolNames:Ft(p)}),U0=({firstNames:e,lastNames:n,positions:s,companies:r,languages:a,skills:i,industries:o,countries:l,cities:u,companySizes:d,schoolNames:p,...h})=>({...h,firstNames:(e==null?void 0:e.map(({value:m})=>m))||[],lastNames:(n==null?void 0:n.map(({value:m})=>m))||[],positions:(s==null?void 0:s.map(({value:m})=>m))||[],companies:(r==null?void 0:r.map(({value:m})=>m))||[],languages:(a==null?void 0:a.map(({value:m})=>m))||[],industries:(o==null?void 0:o.map(({value:m})=>m))||[],skills:(i==null?void 0:i.map(({value:m})=>m))||[],countries:(l==null?void 0:l.map(({value:m})=>m))||[],cities:(u==null?void 0:u.map(({value:m})=>m))||[],companySizes:(d==null?void 0:d.map(({value:m})=>m))||[],schoolNames:(p==null?void 0:p.map(({value:m})=>m))||[]}),y9=()=>({firstNames:[],lastNames:[],companies:[],countries:[],cities:[],languages:[],industries:[],positions:[],skills:[],companySizes:[],schoolNames:[],withLinkedinPremium:!1,withEmail:!1,withTwitter:!1,withSkype:!1,withPicture:!1,isOpenLink:!1}),E9=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],yo=e=>{if(!(e!=null&&e.year))return"";if(!e.month)return`${e.year}`;const n=E9[e.month-1];return n?e.day?`${n} ${e.day}, ${e.year}`:`${n} ${e.year}`:`${e.month}/${e.year}`},MU=e=>yo(e),S9=e=>{var l,u,d,p;if(!((l=e==null?void 0:e.start)!=null&&l.year))return 0;const n=e.start.month||1,s=e.start.year*12+(n-1),r=new Date,a=((u=e.end)==null?void 0:u.year)||r.getFullYear(),i=((d=e.end)==null?void 0:d.month)||((p=e.end)!=null&&p.year?12:r.getMonth()+1),o=a*12+(i-1);return Math.max(0,o-s+1)},B0=e=>{const n=S9(e);if(!n)return"";const s=Math.floor(n/12),r=n%12;return s&&r?`${s} yrs ${r} mos`:s?`${s} yrs`:`${r} mos`},PU=e=>B0(e),OU=e=>{if(!(e!=null&&e.start))return"";const n=yo(e.start),s=e.end?yo(e.end):"Present",r=B0(e);return r?`${n} - ${s} · ${r}`:`${n} - ${s}`.trim()},DU=e=>e?e.replace(/&amp;nbsp;/g,`
5`).replace(/&nbsp;|&#160;/g,`
6`).replace(/\\n/g,`
7`).replace(/\r\n/g,`
8`).replace(/\r/g,`
9`).trim():"",UU=6e4,b9=e=>({...y9(),...e}),H0=["saved-filters"],BU=(e,n,s)=>["saved-filter-leads",e,n,s],HU=(e,n,s)=>({id:e,page:n,perPage:s}),L9=e=>[...e].sort((n,s)=>new Date(s.createdAt).getTime()-new Date(n.createdAt).getTime()),VU=(e,n)=>{const s=n.trim().toLowerCase();return s?e.filter(r=>r.name.toLowerCase().includes(s)):e},Z1=e=>e.length<j5,ll=e=>({id:e.id,name:e.name,createdAt:e.createdAt,criteria:b9(C9(D0(e.filters)))}),w9=e=>L9(e.map(ll)),T9=(e,n)=>{const s=U0(n);return{name:e.trim(),filters:V0(s)}},j9=e=>({name:e.trim()}),v9=e=>({filters:V0(U0(e))}),V0=e=>Bo(e,"withSkype"),F0=e=>{try{const n=N6(e);if(!n||n.length===0)return e;let s=e,r=0;return n.forEach(a=>{const i=a.start+r,o=a.end+r,l=a.href,u=a.value,d=a.type,p=s.substring(0,i),h=s.substring(o),m=d==="email",f=m?"_self":"_blank",C=m?"":"noopener noreferrer",E=C?`rel="${C}"`:"",b=`<a href="${l}" target="${f}" ${E} style="color: inherit; text-decoration: underline;">${u}</a>`;s=p+b+h,r+=b.length-(o-i)}),t.jsx("span",{dangerouslySetInnerHTML:{__html:s}})}catch(n){return console.warn("Linkify failed:",n),e}},I9=e=>{if(!e)return!0;const n=e.trim();return n===""||[/^<p><br><\/p>$/i,/^<div><br><\/div>$/i,/^<p><\/p>$/i,/^<div><\/div>$/i,/^<p>\s*<\/p>$/i,/^<div>\s*<\/div>$/i].some(a=>a.test(n))?!0:n.replace(/<[^>]*>/g,"").trim()===""},_9=e=>e.map(n=>{const s=[];return n.forEach(r=>{if(r==="codeView"){s.push("code-view");return}if(r==="list")s.push({list:"ordered"},{list:"bullet"});else{if(r==="undo"||r==="redo")return;s.push(r)}}),s}).filter(n=>n.length>0),Y1=e=>{var s;const n=((s=e.dataTransfer)==null?void 0:s.items)||[];for(const r of n)if(r.type.startsWith("image/"))return e.preventDefault(),!1},$0=e=>{if(!e)return"";let n=e.replace(/&nbsp;|&#160;|\u00A0/g," ");n=n.replace(/<p(\s[^>]*)?>/g,r=>{var a;if(r.includes("style=")){let i=((a=r.match(/style="([^"]*)"/))==null?void 0:a[1])||"";return i=i.replace(/margin[^;]*;?/g,"").replace(/padding[^;]*;?/g,"").trim(),i=i?`${i}; margin: 0; padding: 0;`:"margin: 0; padding: 0;",r.replace(/style="[^"]*"/,`style="${i}"`)}return r.replace(/<p/,'<p style="margin: 0; padding: 0;"')});const s=/(<p[^>]*>([^<]+)<\/p>\s*)+/g;return n=n.replace(s,r=>{const a=[],i=/<p[^>]*>([^<]+)<\/p>/g;let o,l=!1;for(;(o=i.exec(r))!==null;){const u=o[1].trim();if(u&&!u.includes("<"))a.push(u);else{l=!0;break}}return!l&&a.length>1?`<p style="margin: 0; padding: 0;">${a.join("<br>")}</p>`:r}),n=n.replace(/(<p[^>]*>)\s*(?:<br\s*\/?>\s*)?(<\/p>)/gi,"$1<br>$2"),n=n.replace(/^(\s*)<p style="margin: 0; padding: 0;"/,'$1<p style="margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0;"'),n},G0=e=>`${q5}${e}`,A9=e=>{if(e==null)return!1;try{return sessionStorage.getItem(G0(e))==="1"}catch{return!1}},FU=e=>{if(e!=null)try{sessionStorage.setItem(G0(e),"1")}catch{}},N9=({conversationId:e,action:n,isSales:s=!1})=>v.post(`/conversations/${e}/modify`,{action:n,isSales:s}),$U=({conversationId:e,message:n})=>v.post(`/conversations/${e}/send-sn-message`,{message:n}),GU=({query:e,createdBefore:n})=>v.get("/conversations/sn-conversations",{params:{query:e||null,createdBefore:n||null}}).then(s=>L4(s)),zU=({conversationId:e,createdBefore:n})=>v.get(`/conversations/${e}/sn-messages`,{params:{createdBefore:n||null}}).then(s=>w4(s)),WU=e=>Wo.get("/conversations",{params:e}),k9=({conversationId:e,entityUrn:n,createdBefore:s})=>v.get(`/conversations/${e}/messages`,{params:{entityUrn:n||null,createdBefore:s||null}}).then(r=>({messages:b4(r),conversationId:r.conversationId})),R9=e=>v.post("/conversations/messages",e),M9=({conversationId:e,files:n,message:s})=>{const r=Rs({files:n,message:s});return v.post(`/conversations/${e}/message-with-attachment`,r)},P9=e=>v.get("/email/extended-reply",{params:{actionKey:e}}),O9=({actionKey:e,message:n,includeSignature:s,files:r=[],attachments:a=[]})=>{if(r.length>0){const i=Rs({actionKey:e,message:n,includeSignature:String(s),files:r});return v.post("/email/direct-reply",i,{headers:{"Content-Type":"multipart/form-data"}})}return v.post("/email/direct-reply",{actionKey:e,message:n,includeSignature:s,attachments:a})},D9=(e,n)=>window.FB.api("/me/accounts?type=page",{access_token:e},n),U9=e=>window.FB.api("me?fields=id,name,email,picture",e),B9=(e,n,s)=>window.FB.api(`${n}?fields=username,profile_picture_url,follows_count,followers_count,media_count,name`,{access_token:e},s),H9=(e,n)=>window.FB.api("/me/accounts?fields=instagram_business_account",{access_token:e},n),V9=e=>new Promise(n=>{D9(e,n)}),F9=()=>new Promise(e=>{U9(e)}),$9=(e,n)=>new Promise(s=>{B9(e,n,s)}),G9=e=>new Promise(n=>{H9(e,n)}),z9=()=>v.get("/me/features"),W9=()=>v.get("/twitter/auth-url"),q9=e=>
9v.post("/twitter/verify-login",{pin:e}),Z9=()=>v.get("/twitter/details/user"),Y9=()=>v.delete("/twitter"),K9=()=>v.get("/linked-in/groups"),Q9=()=>v.post("/linked-in/groups/refresh"),qU=()=>v.get("/linked-in/events"),ZU=()=>v.get("/linked-in/companies"),X9=e=>v.patch("/linked-in/update-credentials",e,{timeout:300*1e3,useHttpStatusOnError:!0}),J9=e=>v.post("/linked-in/verify-code",e,{useHttpStatusOnError:!0}),e8=()=>v.delete("/linked-in/remove-credentials"),t8=()=>v.get("/facebook"),n8=e=>v.post("/facebook/save-data",e),s8=()=>v.get("/facebook/options"),r8=e=>v.post("/facebook/options",e),a8=()=>v.get("/facebook/access-token"),i8=()=>v.post("/facebook/clear-login"),o8=e=>v.post("/facebook/exchange-access-token",{accessToken:e}),l8=e=>v.post("/gmail/sign-in",{authorizationCode:e}),c8=()=>v.delete("/gmail"),d8=()=>v.get("/gmail/aliases"),u8=e=>v.patch("/gmail/aliases",{email:e}),p8=e=>v.get("/microsoft/outlook/code-url",{params:{state:e}}),h8=e=>v.post("/microsoft/outlook/sign-in",{code:e}),m8=()=>v.delete("/microsoft/outlook"),g8=()=>v.get("/linked-in/check-connection"),x8=()=>v.get("/proxy"),f8=e=>v.post("/proxy",e),C8=(e,n)=>v.patch(`/proxy/${e}`,n),y8=e=>v.delete(`/proxy/${e}`),YU=e=>v.post("/salesforce/connect",e),KU=e=>v.post("/salesforce/leads/export",{leadEntityUrns:e}),QU=e=>v.post("/salesforce/lead-finder-leads/export",{leadEntityUrns:e}),XU=e=>v.post("/salesforce/leads/export-all",e??{}),JU=e=>v.post("/salesforce/connections/export",{connectionEntityUrns:e}),eB=e=>v.post("/salesforce/connections/export-all",e??{}),tB=()=>v.post("/salesforce/remove"),nB=()=>v.get("/salesforce"),sB=()=>v.get("/hubspot"),rB=e=>v.post("/hubspot/connect",e),aB=()=>v.post("/hubspot/remove"),iB=e=>v.post("/hubspot/leads/export",{leadEntityUrns:e}),oB=e=>v.post("/hubspot/leads/export-all",e??{}),lB=e=>v.post("/hubspot/connections/export",{connectionEntityUrns:e}),cB=e=>v.post("/hubspot/connections/export-all",e??{}),dB=e=>v.post("/hubspot/lead-finder-leads/export",{leadEntityUrns:e}),E8=e=>v.patch("/interaction-tours",e),uB=e=>v.post("/leads",e),S8=(e,n)=>v.get(`/leads/${e}?objectUrn=${n||""}`),b8=({entityUrn:e,body:n})=>v.patch(`/leads/${e}`,n),L8=e=>v.post("/leads/add-tags",e),w8=(e,n)=>v.put(`/leads/${e}/set-tags`,{tagIds:n.map(s=>s.id)}),T8=(e,n)=>v.put(`/leads/${e}/create-set-tag`,n),pB=(e,n)=>v.patch(`/leads/${e}/tags`,{tagIds:n.map(s=>s.id)}),hB=(e,n)=>v.get(`/leads/campaign/${e}/statuses`,{params:n}),mB=(e,n)=>v.get(`/leads/campaign/${e}`,{params:n}),gB=(e,n)=>v.get(`/leads/campaign/${e}/locations`,{params:n}),K1=e=>v.get(`/leads/campaign/${e}/all`),j8=(e,n,s)=>v.post("/leads/csv",{...s,receiverEmail:e,entityUrns:n}),v8=(e,n,s)=>v.patch(`/leads/${e}/campaign/${n}/custom-data`,s),I8=(e,n)=>v.patch(`/leads/campaign/${e}/skip`,n),xB=(e,n)=>v.patch(`/leads/campaign/${e}/bulk-skip`,n),_8=(e,n)=>v.delete(`/leads/${e}/campaign/${n}/custom-data`),fB=(e,n)=>v.delete(`/leads/campaign/${n}/ignored`,{data:{entityUrns:e}}),CB=e=>v.delete(`/leads/campaign/${e}/ignored/all`),yB=(e,n)=>v.patch(`/leads/campaign/${e}/return`,n),A8=e=>v.patch("/leads/return-to-campaign",{entityUrns:e}),EB=(e,n)=>v.get(`/leads/campaign/${e}/ignored`,{params:n}),N8=(e,n)=>v.get(`/leads/${n}/campaign/${e}/actions`),k8=e=>v.get(`/leads/campaign/${e}/zapier`),SB=(e,n)=>v.post("/leads/exclude",{entityUrns:e,exclude:n}),R8=()=>v.get("/notifications/unread-count"),M8=e=>v.get("/notifications",{params:e}),P8=()=>v.patch("/notifications/mark-all-as-read"),O8=e=>v.patch(`/notifications/${e}/mark-as-read`),bB=e=>v.get("/posts",{params:e}),LB=e=>v.get("/posts/types",{params:e}),wB=e=>v.patch(`/posts/${e}/archive`),TB=e=>v.delete(`/posts/${e}`),jB=e=>v.post("/posts",e),D8=(e,n)=>v.patch(`/posts/${e}/post-time`,n),vB=e=>v.get(`/posts/${e}`),IB=(e,n)=>v.patch(`/posts/${e}`,n),U8=e=>v.get("/sales-explorer/industries",{params:{name:e}}).then(n=>Z2(n).sort((s,r)=>{var a;return(a=s==null?void 0:s.label)==null?void 0:a.localeCompare(r==null?void 0:r.label)})),_B=async()=>{try{return await v.get("/sales-explorer/leads/last-search")}catch(e){const n=e;if((n==null?void 0:n.statusCode)===404)return null;throw e}},AB=e=>v.get("/sales-explorer/leads",{params:e}),NB=({query:e,page:n,perPage:s})=>v.post("/sales-explorer/leads/ai-search",{query:e},{params:{page:n,perPage:s}}),kB=()=>v.get("/sales-explorer/leads/ai-search/suggestions"),RB=()=>v.get("/sales-explorer/saved-lists/count"),MB=()=>v.get("/sales-explorer/saved-lists"),PB=(e,n)=>v.patch(`/sales-explorer/saved-lists/${e}`,n),OB=e=>v.delete(`/sales-explorer/saved-lists/${e}`),DB=({id:e,page:n,perPage:s})=>v.get(`/sales-explorer/saved-lists/${e}/leads`,{params:{page:n,perPage:s}}).then(r=>Array.isArray(r)?r:(r==null?void 0:r.data)??[]),UB=e=>v.post("/sales-explorer/saved-lists/save",e),BB=e=>v.post("/sales-explorer/saved-lists/save-all",e),B8=()=>v.get("/sales-explorer/saved-filters"),H8=e=>v.post("/sales-explorer/saved-filters",e),V8=(e,n)=>v.patch(`/sales-explorer/saved-filters/${e}`,n),F8=e=>v.delete(`/sales-explorer/saved-filters/${e}`),HB=({id:e,page:n,perPage:s})=>v.get(`/sales-explorer/saved-filters/${e}/leads`,{params:{page:n,perPage:s}}),$8=e=>v.post("/sequence-templates",e),G8=e=>v.get("/sequence-templates",{params:e}),VB=e=>v.get("/sequence-templates/categories",{params:e}),z8=e=>v.get("/sequence-templates/available",{params:e}),FB=e=>v.get(`/sequence-templates/${e}`),$B=(e,n)=>v.patch(`/sequence-templates/${e}`,n),GB=e=>v.patch(`/sequence-templates/${e}/toggle-availability`),zB=e=>v.delete(`/sequence-templates/${e}`),W8=e=>v.post("/tags",e),WB=e=>v.get("/tags",{params:e}),q8=({id:e,...n})=>v.patch(`/tags/${e}`,n),Z8=e=>v.delete(`/tags/${e}`),Y8=()=>v.get("/tags/all"),K8=({teamId:e})=>v.get(`/teams/${e}`),Q8=()=>v.get("/teams/members"),X8=({teamId:e,...n})=>v.get(`/teams/${e}/members`,{params:n}),J8=({teamId:e})=>v.get(`/teams/${e}/invites`),eg=e=>v.post(`/teams/${e.teamId}/invites`,e),tg=e=>v.post(`/teams/${e.teamId}/invites/ghost`,e),qB=({teamId:e,memberId:n})=>v.delete(`/teams/${e}/members/${n}`),ZB=({inviteId:e})=>v.delete(`/teams/invites/${e}/remove`),ng=({teamId:e,...n})=>v.patch(`/teams/${e}`,n),YB=({teamId:e,memberId:n,...s})=>v.patch(`/teams/${e}/members/${n}`,s),KB=({inviteKey:e})=>v.get(`/teams/invites/${e}`),sg=({inviteId:e})=>v.post(`/teams/invites/${e}/reject`),rg=({inviteId:e,moveCampaigns:n,moveMessagesTemplates:s,moveSequenceTemplates:r})=>v.post(`/teams/invites/${e}/accept`,{moveCampaigns:n,moveMessagesTemplates:s,moveSequenceTemplates:r}),QB=()=>v.patch("/teams/toggle-enable-member-inbox"),XB=()=>v.patch("/teams/toggle-share-member-leads"),JB=()=>v.patch("/teams/toggle-verify-on-the-fly-status"),eH=e=>v.patch("/teams/send-disconnected-email",e),tH=e=>v.get("/teams/stats",{params:e}),nH=(e,n)=>v.get(`/teams/stats/${e}`,{params:n}),ag=()=>v.post("/teams/leave"),ig=()=>v.get("/teams/invites/first"),sH=e=>v.post(`/teams/invites/${e}/clicked`),og=e=>v.post("/teams/stats/csv",e),rH=e=>v.post(`/teams/members/${e}/move-to-ghost`),lg=e=>v.get("/templates/personal",{params:e}),aH=e=>v.get("/templates/library",{params:e}),iH=e=>v.get("/templates/team",{params:e}),oH=()=>v.get("/templates/categories"),cg=e=>v.get("/templates",{params:e}),lH=e=>v.post("/templates",Rs(e),{headers:{"Content-Type":"multipart/form-data"}}),cH=e=>v.put(`/templates/${e.id}`,Rs(e),{headers:{"Content-Type":"multipart/form-data"}}),dH=e=>v.patch(`/templates/${e}/toggle-availability`),dg=e=>v.delete(`/templates/${e}`),ug=e=>v.post("/trends",e),pg=()=>v.get("/trends"),uH=e=>{const n=e===-1?"trend-posts":`trends/${e}/posts`;return v.get(`/${n}`)},hg=e=>{const n=e===-1?"trends/refresh-all":`trends/${e}/refresh`;return v.post(`/${n}`)},mg=({id:e,sortBy:n,interval:s,term:r})=>v.patch(`/trends/${e}`,{sortBy:n,interval:s,term:r}),gg=e=>v.delete(`/trends/${e}`),pH=e=>v.post(`/trend-posts/${e}/like`),xg=()=>v.get("/users/me"),fg=()=>v.get("/users/me/real"),Cg=e=>v.post("/users/me/bots",{timezone:e}),yg=()=>v.get("/users/email"),Eg=()=>v.get("/users/signature"),Sg=e=>v.patch("/users/signature",e),hH=()=>v.get("/users/me/linked-in"),bg=()=>v.get("/users/preferences"),Lg=()=>v.get("/users/me/referral"),wg=e=>v.post("/users/change-password",e),mH=e=>v.patch("/users/change-email",e),gH=e=>v.patch("/users/edit-auto-withdraw",e),xH=e=>v.patch("/users/edit-daily-limits",e),fH=e=>v.patch("/users/edit-greetings",{greetingMessages:e}),CH=e=>v.patch("/users/edit-operating-hours",{operatingHours:e}),yH=e=>v.patch("/users/set-cloud-timezone",{timezone:e}),Tg=e=>v.post("/users/impersonate",e),jg=()=>v.post("/users/stop-impersonating"),EH=e=>v.patch("/users/update",Rs(e),{headers:{"Content-Type":"multipart/form-data"}}),vg=e=>v.post("/users/set-contract-id",{selectedContractId:e}),Ig=e=>v.patch("/users/language",{language:e}),SH=()=>v.patch("/users/me/complete-walkthrough"),bH=e=>v.patch("users/set-credentials",e),_g=e=>v.post("/users/me/unsubscribed-emails/csv",e),Ag=()=>v.patch("/users/me/toggle-unsubscribe-link"),Ng=()=>
9v.delete("/users/me/mail-settings"),kg=()=>v.get("/users/me/mail-settings"),Rg=e=>v.put("/users/me/mail-settings",e),Mg=()=>v.get("/users/me/invites-restriction"),LH=()=>v.get("/users/me/cloud-bot-info"),Pg=e=>v.post("/users/integrations/test-email",e),wH=e=>v.post("/users/apply-se-waitlist",e),TH=e=>v.post("/users/acquisition",e),jH=async e=>v.get(`/linked-in/verify-on-the-fly/${e}`),vH=async e=>v.post("/linked-in/verify-on-the-fly/",{token:e}),IH=async e=>v.post("/linked-in/verify-on-the-fly/verify-code",{...e}),Og=async e=>v.post("/linked-in/verify-on-the-fly/login",{...e}),_H=async e=>v.post("/linked-in/verify-on-the-fly/test-email",{...e}),Dg=()=>v.get("/video-library/categories"),Ug=e=>v.get("/video-library/videos",{params:e}),Bg=()=>v.get("/whitelabels"),Hg=e=>v.get("/whitelabels/branding",{params:e}),AH=e=>v.patch("/whitelabels/branding",Rs(e),{headers:{"Content-Type":"multipart/form-data"}}),NH=()=>v.patch("/whitelabels/toggle-status"),kH=e=>v.put("/whitelabels/smtp-settings",e),RH=e=>v.patch("/whitelabels/domain",{domain:e}),MH=()=>v.delete("/whitelabels/smtp-settings"),PH=()=>v.delete("/whitelabels/domain"),OH=()=>v.patch("/whitelabels/domain/verify-dns");function Vg({client:e,children:n}){return t.jsx(k6,{client:e,children:n})}const ba=e=>Array.isArray(e)?e:typeof e=="string"?[e]:[];function z0(e){if(!e)return{};const n={...e};return"cacheTime"in n&&n.cacheTime!=null&&(n.gcTime=n.cacheTime,delete n.cacheTime),"useErrorBoundary"in n&&(n.throwOnError=n.useErrorBoundary,delete n.useErrorBoundary),"keepPreviousData"in n&&(n.keepPreviousData&&(n.placeholderData=s=>s),delete n.keepPreviousData),delete n.isErrorBoundary,n}function Fg(e){if(e.length===1&&e[0]&&typeof e[0]=="object"&&!Array.isArray(e[0])&&"queryKey"in e[0]){const a=e[0];return{queryKey:ba(a.queryKey),queryFn:a.queryFn,options:a}}const n=ba(e[0]),s=typeof e[1]=="function"?e[1]:void 0,r=e[2]||(e[1]&&typeof e[1]=="object"&&!Array.isArray(e[1])?e[1]:void 0);return{queryKey:n,queryFn:s,options:r}}function $g(e){let n,s={};return e.length===1&&e[0]&&typeof e[0]=="object"&&!Array.isArray(e[0])?"mutationFn"in e[0]?(s=e[0],n=e[0].mutationFn):n=e[0]:e.length===2?Array.isArray(e[0])?n=e[1]:(n=e[0],s=e[1]||{}):e.length===3&&(n=e[1],s=e[2]||{}),{mutationFn:n,options:s}}function Gg(e){if(e.length===1&&e[0]&&typeof e[0]=="object"&&!Array.isArray(e[0])&&"queryKey"in e[0]){const a=e[0];return{queryKey:ba(a.queryKey),queryFn:a.queryFn,options:a}}const n=ba(e[0]),s=typeof e[1]=="function"?e[1]:void 0,r=e[2]||{};return{queryKey:n,queryFn:s,options:r}}function zg(...e){const{queryKey:n,queryFn:s,options:r}=Gg(e);if(!n.length||!s)throw new Error("Invalid useInfiniteQuery arguments: queryKey and queryFn are required");const a=z0(r);return R6({queryKey:n,queryFn:s,...a})}function J(...e){const{mutationFn:n,options:s}=$g(e),r=s,{onSuccess:a,onError:i,onSettled:o,...l}=r,u=M6({...l,...n&&{mutationFn:n},onSuccess:(d,p,h)=>{a==null||a(d,p,h)},onError:(d,p,h)=>{i==null||i(d,p,h)},onSettled:(d,p,h,m)=>{o==null||o(d,p,h,m)}});return{...u,isLoading:u.isPending}}function Wg({onSuccess:e,onError:n,onSettled:s,queryResult:r}){const a=c.useRef(void 0),i=c.useRef(!1);c.useEffect(()=>{if(e&&r.isSuccess&&r.data!=null){const u=r.data;(a.current!==u||!i.current)&&(e(u,r),a.current=u,i.current=!0)}else r.isSuccess||(i.current=!1)},[r.isSuccess,r.data,e,r]);const o=c.useRef(void 0),l=c.useRef(!1);c.useEffect(()=>{if(n&&r.isError&&r.error){const u=r.error;(o.current!==u||!l.current)&&(n(u),o.current=u,l.current=!0)}else r.isError||(l.current=!1)},[r.isError,r.error,n]),c.useEffect(()=>{s&&(r.isSuccess||r.isError)&&s(r.data,r.error)},[r.isSuccess,r.isError,r.data,r.error,s])}function Se(...e){const{queryKey:n,queryFn:s,options:r}=Fg(e),a=r,{onSuccess:i,onError:o,onSettled:l,...u}=a||{},d=z0(u),p=P6({queryKey:n,queryFn:s,...d});return Wg({onSuccess:i,onError:o,onSettled:l,queryResult:p}),p}const qg=(e,n)=>{const{mutate:s,...r}=J("get-microsoft-code-url",()=>K5(e),{...n,onSuccess:(a,i,o)=>{document.location.href=a}});return{getMicrosoftCodeUrl:s,...r}},Zg=(e,n,s,r)=>{const a=P(),i=Rt();return Se(["google-auth",n,e.authorizationCode],()=>X5(e,n),{enabled:!!e.authorizationCode,retry:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,...r,onSuccess:o=>{if(o.redirectTo){location.replace(`${o.redirectTo}/auth/login?exchange-token=${o.authToken}`);return}r!=null&&r.onSuccess?r.onSuccess(o):(Sr(fn,o.authToken),Qo(),a(br(o.user))),i(s||"/")}})},Yg=(e,n,s)=>{const r=P();return Se(["microsoft-auth",n,e.code],()=>Q5(e,n),{enabled:!!e.code,retry:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,...s,onSuccess:a=>{if(a.redirectTo){location.replace(`${a.redirectTo}/auth/login?exchange-token=${a.authToken}`);return}s!=null&&s.onSuccess?s.onSuccess(a):(Sr(fn,a.authToken),Qo(),r(br(a.user)))},onSettled:(a,i)=>{var o;(o=s==null?void 0:s.onSettled)==null||o.call(s,a,i),window.history.replaceState({},document.title)}})},Ys=new rs,DH=e=>{const n=P(),[s]=ns(),{mutate:r,...a}=J("sign-up",i=>J5({...i,landingUrl:Ys.get("alfred_landing_url"),utmSource:(Ys.get("alfred_utm_source")||[]).join(","),lastPage:Ys.get("alfred_last_page"),pageCounter:Ys.get("alfred_page_counter"),referralCode:Ys.get("referralCode"),trialOrigin:s.get("trial_btn")||""}),{...e,onSuccess:(i,o,l)=>{var u;(u=e==null?void 0:e.onSuccess)==null||u.call(e,i,o,l),Sr(fn,i==null?void 0:i.authToken),Qo(),n(br(i==null?void 0:i.user))}});return{signUpViaEmail:r,...a}},Kg=e=>{const n=P(),s=ce(),{mutate:r,...a}=J(["apply-discount"],c4,{...e,onSuccess:async(i,o,l)=>{var u;await s.invalidateQueries({queryKey:["get-upcoming-invoice"]}),await s.invalidateQueries({queryKey:["get-billing-info"]}),(u=e==null?void 0:e.onSuccess)==null||u.call(e,i,o,l),n(Z({type:"success",message:"Discount applied successfully.",autoCloseTime:3e3}))},onError:i=>{n(Z({type:"error",message:i.message,autoCloseTime:3e3}))}});return{applyDiscount:r,...a}},W0=e=>{const n=P(),s=ce(),{mutate:r,isLoading:a,...i}=J(["cancel-subscription"],a4,{...e,onSuccess:async(o,l,u)=>{var d;(d=e==null?void 0:e.onSuccess)==null||d.call(e,o,l,u),await s.invalidateQueries({queryKey:["get-billing-info"]}),await s.invalidateQueries({queryKey:["get-team-by-id"]})},onError:(o,l,u)=>{var d;(d=e==null?void 0:e.onError)==null||d.call(e,o,l,u),n(Z({type:"error",message:o.statusCode===500?"Something went wrong":(o==null?void 0:o.message)??"Something went wrong",autoCloseTime:3e3}))}});return{cancelSubscription:r,isCancelLoading:a,...i}},q0=e=>{const{mutate:n,isLoading:s,...r}=J(["cancel-modal-trigger"],h4,e);
9return{closeCancelModalTrigger:n,isCloseLoading:s,...r}},Qg=e=>{const{mutate:n,...s}=J(["create-subscription"],l4,e);return{createSubscription:n,...s}},Xg=e=>{const n=P(),s=ce(),r=["get-mail-settings"],{mutate:a,isLoading:i,...o}=J(["set-mail-settings"],Ng,{...e,onMutate:async l=>{var d;(d=e==null?void 0:e.onMutate)==null||d.call(e,l),await s.cancelQueries({queryKey:r});const u=s.getQueryData(r);return s.setQueryData(r,p=>p&&{imapSettings:{},smtpSettings:{}}),{prevData:u}},onSuccess:(l,u,d)=>{var p;(p=e==null?void 0:e.onSuccess)==null||p.call(e,l,u,d),n(Z({type:"success",message:"SMTP + IMAP settings deleted successfully",autoCloseTime:3e3}))},onError:(l,u,d)=>{var p;(p=e==null?void 0:e.onError)==null||p.call(e,l,u,d),s.setQueryData(r,d==null?void 0:d.prevData),n(Z({type:"error",message:(l==null?void 0:l.message)??"Something went wrong",autoCloseTime:3e3}))}});return{deleteMailSettings:a,isDeleteLoading:i,...o}},Jg=e=>{const{mutate:n,...s}=J("export-unsubscribed-emails",r=>_g(r),e);return{exportEmails:n,...s}},Ua=e=>{const{data:n,isLoading:s,...r}=Se(["get-mail-settings"],kg,e),a=!!(n!=null&&n.smtpSettings.smtpServer),i=!!(n!=null&&n.imapSettings.imapServer);return{mailSettings:{...n,isIMAPConnected:i,isSMTPConnected:a,isConnected:a&&i},isMailLoading:s,...r}},pn=e=>{const n=P(),{logout:s}=Lr(),{isAuth:r,isImpersonate:a}=fe(d=>d.user),{data:i,isLoading:o,isError:l,...u}=Se(["get-real-user"],fg,{enabled:r&&a,...e,onSuccess:d=>{if(d.needToLogout){s();return}n(Wm(d))}});return{realImpersonateUser:i,isLoadingOrError:o||l,isLoading:o,isError:l,...u}},st=e=>{const n=P(),{logout:s}=Lr(),r=ce(),{isAuth:a,isImpersonate:i}=fe(p=>p.user),{data:o,isLoading:l,isError:u,...d}=Se(["get-user-profile"],xg,{...e,enabled:a,onSuccess:p=>{var h,m,f;if(p.needToLogout&&!i||!p.lastTeamId){s();return}n(br(p)),n(bm(p==null?void 0:p.leadColumns)),n(gm(p==null?void 0:p.connectionColumns)),(h=e==null?void 0:e.onSuccess)==null||h.call(e,p),(p==null?void 0:p.linkedInPendingInvites)>=2500&&n(Tt({type:te.LINKEDIN_MAX_PENDING_INVITES})),Kh(p)?n(Tt({type:te.LINKEDIN_ERROR})):n(Ct({type:te.LINKEDIN_ERROR})),((f=(m=p==null?void 0:p.cloudBotStatus)==null?void 0:m.data)==null?void 0:f.error)===It.resetPasswordView?n(Tt({type:te.LINKEDIN_PASSWORD_RESET})):n(Ct({type:te.LINKEDIN_PASSWORD_RESET})),p!=null&&p.outlookError?n(Tt({type:te.OUTLOOK_INTEGRATION_ERROR})):n(Ct({type:te.OUTLOOK_INTEGRATION_ERROR}))},onError:p=>{e!=null&&e.onError&&e.onError(p),p.statusCode===401&&(n(hr()),n(il()),r.removeQueries())}});return{userMe:o,isLoadingOrError:l||u,isLoading:l,isError:u,...d}},e7=e=>{const n=P();Se(["user-invites-restriction"],Mg,{...e,onSuccess:s=>{s.hasInvitesRestriction?n(Tt({type:te.LI_INVITES_RESTRICTION})):n(Ct({type:te.LI_INVITES_RESTRICTION}))}})},t7=e=>{const{data:n,...s}=Se("user-linked-in-groups",K9,{refetchOnMount:!0,...e});return{groups:n,...s}};se.extend(ss);se.extend(Cr);let Q1;const n7=29900,cl=e=>{const n=P(),s=fe(i=>{var o,l;return(l=(o=i.user.profile)==null?void 0:o.timezone)==null?void 0:l.name}),{data:r,...a}=Se(["get-user-preferences"],bg,{...e,onSuccess:i=>{var f,C;const o=se().tz(s).get("day"),l=se().tz(s).get("hour"),u=se().tz(s).get("minute"),d=se().tz(s).get("second"),p=((C=(f=i==null?void 0:i.operatingHours)==null?void 0:f.scheduled)==null?void 0:C.filter(({day:E})=>o===Number(E)))||[],h=Math.min(...p.map(({startHour:E})=>Number(E))),m=p==null?void 0:p.some(({endHour:E,startHour:b})=>Number(E)>l&&l>=Number(b));if(p!=null&&p.length&&!m&&h>
9l){clearTimeout(Q1);const E=h-l,b=60-u,w=60-d,T=((b+(E-1)*60)*60+w)*1e3;Q1=as(T+12e4,()=>{n(Ct({type:te.OUTSIDE_SCHEDULED}))})}n(m?Ct({type:te.OUTSIDE_SCHEDULED}):Tt({type:te.OUTSIDE_SCHEDULED})),i!=null&&i.connectionRestrictionAt&&(i!=null&&i.connectionRestrictionType)&&se(i.connectionRestrictionAt).add(i.connectionRestrictionType==="days"?1:3,i.connectionRestrictionType).diff(se())>1?n(Tt({type:te.LIMITED_CONNECTIONS_REQUESTS})):n(Ct({type:te.LIMITED_CONNECTIONS_REQUESTS})),(i==null?void 0:i.linkedInConnections)>n7?n(Tt({type:te.LIMIT_OF_LI_CONNECTIONS})):n(Ct({type:te.LIMIT_OF_LI_CONNECTIONS}))}});return{userPreferences:r,...a}},s7=e=>{const{isAuth:n}=fe(a=>a.user),{data:s,...r}=Se(["get-user-referral"],()=>Lg(),{enabled:n,...e});return{userReferral:s,...r}},Ps=e=>{const{data:n,...s}=Se("get-users-email",yg,e);return{userEmail:n,...s}},r7=e=>{const{data:n,...s}=Se(["user-signature"],Eg,{refetchOnMount:!0,...e});return{signature:n,...s}},a7=e=>{const{realImpersonateUser:n}=pn(),{mutate:s,...r}=J(["impersonate-user"],a=>Tg({...a,isAdminImpersonate:n==null?void 0:n.isAdminImpersonate,redirectLink:n==null?void 0:n.redirectLink}),{...e,onSuccess:async(a,i,o)=>{Sr(fn,a.authToken),e0()}});return{impersonateUser:s,...r}},Z0=e=>{const{realImpersonateUser:n}=pn(),{mutate:s,...r}=J(["stop-impersonate-user"],jg,{...e,onSuccess:async(a,i,o)=>{const{withAdminRedirect:l=!0}=i||{};Sr(fn,a.authToken),Zo("realImpersonateUser"),n!=null&&n.isAdminImpersonate&&l?location.assign(`${(n==null?void 0:n.redirectLink)||V2}?saveSearchParams=true`):e0()}});return{stopImpersonateUser:s,...r}},i7=()=>{const{isAuth:e,profile:n}=fe(s=>s.user);Se(["post-users-bots"],()=>Cg(se.tz.guess()||"America/Los_Angeles"),{enabled:e&&!!n.isEmailVerified,staleTime:1/0,retry:!1})},o7=e=>{const n=ce(),s=P(),{mutate:r,...a}=J(["refresh-user-li-groups"],Q9,{...e,onSuccess:async(i,o,l)=>{s(Z({type:"info",message:"successfully refreshed linkedin groups"})),await n.cancelQueries({queryKey:["user-linked-in-groups"]}),n.setQueryData(["user-linked-in-groups"],()=>i)}});return{refreshLIGroups:r,...a}},l7=e=>{const n=P(),{mutate:s,...r}=J(["send-test-email"],a=>Pg(a),{...e,onSuccess:(a,i,o)=>{n(Z({type:a!=null&&a.isEmailSent?"success":"error",message:a!=null&&a.isEmailSent?"Test email was sent successfully":"Test email failed to send",autoCloseTime:3e3}))},onError:(a,i,o)=>{n(Z({type:"error",message:(a==null?void 0:a.message)??"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{sendTestEmail:s,...r}},c7=e=>{const n=P(),s=ce(),r=["get-mail-settings"],{mutate:a,...i}=J(["set-mail-settings"],Rg,{...e,onMutate:async o=>{await s.cancelQueries({queryKey:r});const l=s.getQueryData(r);return s.setQueryData(r,u=>u&&{...u,...o}),{prevData:l}},onSuccess:(o,l,u)=>{n(Z({type:"success",message:"SMTP + IMAP setting updated successfully"}))},onError:(o,l,u)=>{s.setQueryData(r,u==null?void 0:u.prevData),n(Z({type:"error",message:(o==null?void 0:o.message)??"Something went wrong",autoCloseTime:3e3}))}});return{setMailSettings:a,...i}},d7=e=>{const n=P(),{mutate:s,...r}=J(["set-contract-id"],vg,{...e,onSuccess:async(a,i,o)=>{n($m(i))}});return{setUserContractId:s,...r}},u7=e=>{const n=ce(),{mutate:s,...r}=J(["set-user-language"],Ig,{...e,onSuccess:(a,i,o)=>{n.setQueryData(["get-user-profile"],l=>l&&{...l,language:i})}});return{setUserLanguage:s,...r}},dl=()=>{const e=P(),n=ce(),s=["get-user-profile"],{mutate:r,...a}=J(["toggle-include-unsubscribe-email-link"],Ag,{onMutate:async()=>{await n.cancelQueries({queryKey:s});const i=n.getQueryData(s);return n.setQueryData(s,o=>o&&{...o,includeUnsubscribeEmailLink:!o.includeUnsubscribeEmailLink}),{prevData:i}},onError:(i,o,l)=>{n.setQueryData(s,l==null?void 0:l.prevData),e(Z({type:"error",message:i.message??"Something went wrong",autoCloseTime:3e3}))}});return{toggleIncludeUnsubscribeEmailLink:r,...a}},p7=e=>{const n=ce(),s=P(),r=["get-user-preferences"],{mutate:a,...i}=J(["update-user-password"],o=>wg(o),{...e,onSuccess:async(o,l,u)=>{var d;(d=e==null?void 0:e.onSuccess)==null||d.call(e,o,l,u),n.invalidateQueries({queryKey:r}),s(Z({type:"info",message:"Password updated successfully",autoCloseTime:3e3}))},onError:(o,l,u)=>{var p;(p=e==null?void 0:e.onError)==null||p.call(e,o,l,u);const d=o==null?void 0:o.message;
9s(Z({type:"error",message:d==="Current password invalid"?"The current password is wrong":d??"Something went wrong",autoCloseTime:3e3}))}});return{changePassword:a,...i}},h7=e=>{const n=P(),s=ce(),r=["user-signature"],{mutate:a,...i}=J(["update-user-signature"],Sg,{...e,onMutate:async o=>{await s.cancelQueries({queryKey:r});const l=s.getQueryData(r);return s.setQueryData(r,u=>u&&{...u,...o}),{prevData:l}},onSuccess:async(o,l,u)=>{await s.refetchQueries({queryKey:r})},onError:(o,l,u)=>{s.setQueryData(r,u==null?void 0:u.prevData),n(Z({type:"error",message:(o==null?void 0:o.message)??"Something went wrong",autoCloseTime:3e3}))}});return{updateUserSignature:a,...i}};se.extend(ss);const ot=e=>{var u,d;const n=P(),{userMe:s}=st(),{data:r}=fe(p=>p.team),{profile:a}=fe(p=>p.user),i=!!(a!=null&&a.isBlocked),{data:o,...l}=Se(["get-billing-info"],e4,{enabled:!!(s!=null&&s.isEmailVerified)&&!!r&&((u=r.teamUser)==null?void 0:u.role)===Kt.OWNER,...e,onSuccess:p=>{var C,E,b,w,I;if(i)return;p.plan===x.TRIAL&&p.trial===Yn.STARTED&&n(Tt({type:te.TRIAL})),p.plan&&p.plan!==x.TRIAL&&p.trial===Yn.ENDED&&((C=p.stripeSubscriptionObject)!=null&&C.cancel_at_period_end)?n(Tt({type:te.SUBSCRIPTION_CANCELLED})):n(Ct({type:te.SUBSCRIPTION_CANCELLED}));const h=(E=p==null?void 0:p.stripeSubscriptionObject)==null?void 0:E.current_period_end,m=((b=r==null?void 0:r.teamUser)==null?void 0:b.role)===Kt.OWNER,f=(p==null?void 0:p.plan)&&(p==null?void 0:p.plan)!==x.TRIAL&&(p==null?void 0:p.trial)===Yn.ENDED&&!!((w=p==null?void 0:p.stripeSubscriptionObject)!=null&&w.cancel_at_period_end);if(h&&m&&!f&&!p.isSubscriptionPaused&&!((I=p.stripeSubscriptionObject)!=null&&I.cancel_at_period_end)){const T=se.utc(),j=se.unix(h).utc(),L=Math.floor((j.valueOf()-T.valueOf())/$5);L>=0&&L<7?n(Tt({type:te.SUBSCRIPTION_RENEWAL_REMINDER})):n(Ct({type:te.SUBSCRIPTION_RENEWAL_REMINDER}))}else n(Ct({type:te.SUBSCRIPTION_RENEWAL_REMINDER}))}});return{billingInfo:o,isSubscriptionCanceled:(o==null?void 0:o.plan)&&(o==null?void 0:o.plan)!==x.TRIAL&&(o==null?void 0:o.trial)===Yn.ENDED&&!!((d=o==null?void 0:o.stripeSubscriptionObject)!=null&&d.cancel_at_period_end),...l}},m7=e=>Se(["get-billing-invoices"],()=>t4(),e),g7=e=>{const{mutate:n,...s}=J(["get-cancel-coupon-discount"],f4,e);return{getCancelCouponDiscount:n,...s}},x7=({plan:e,seats:n,billingType:s,currency:r},a)=>{const{data:i,...o}=Se(["get-invoice-details",e,n,s,r],()=>u4({plan:e,seats:n,billingType:s,currency:r}),{...a,enabled:!!e&&!!n&&!!s&&!!r&&!!(a!=null&&a.enabled)});return{invoiceDetails:i,...o}},Y0=({plan:e,billingType:n,currency:s},r)=>Se(["get-plan-pricing",e,n,s],()=>x4({plan:e,billingType:n,currency:s}),{enabled:!!e&&!!n&&!!s,...r}),K0=e=>{const{data:n,...s}=Se(["get-upcoming-invoice"],p4,{refetchOnMount:!0,...e});return{invoiceDetails:n,...s}},f7=e=>{const n=P(),s=ce(),{mutate:r,...a}=J(["opt-in-promo-prolongation"],d4,{...e,onSuccess:async(i,o,l)=>{var u;await s.invalidateQueries({queryKey:["get-billing-info"]}),(u=e==null?void 0:e.onSuccess)==null||u.call(e,i,o,l)},onError:(i,o,l)=>{var u;(u=e==null?void 0:e.onError)==null||u.call(e,i,o,l),n(Z({type:"error",message:(i==null?void 0:i.message)||"Something went wrong",autoCloseTime:3e3}))}});return{optInPromoProlongation:r,...a}},C7=e=>{const n=ce(),s=P(),{mutate:r,...a}=J(["pause-subscription"],n4,{...e,onSuccess:async(i,o,l)=>{var u;(u=e==null?void 0:e.onSuccess)==null||u.call(e,i,o,l),s(Z({type:"success",message:"Your subscription has been paused",autoCloseTime:3e3})),await n.invalidateQueries({queryKey:["get-billing-info"]}),await n.invalidateQueries({queryKey:["get-team-by-id"]})},onError:(i,o,l)=>{var u;(u=e==null?void 0:e.onError)==null||u.call(e,i,o,l),i.message!=="outstanding_invoice_requires_action"&&s(Z({type:"error",message:(i==null?void 0:i.message)??"Something went wrong",autoCloseTime:3e3}))}});return{pauseSubscription:r,...a}},y7=e=>{const n=ce(),{mutate:s,...r}=J(["remove-subscription"],m4,{...e,onSuccess:async(a,i,o)=>{await n.invalidateQueries({queryKey:["get-billing-info"]}),await n.invalidateQueries({queryKey:["get-team-by-id"]})}});return{removeSubscription:s,...r}},E7=e=>{const n=ce(),{closeCancelModalTrigger:s}=q0(),{mutate:r,...a}=J(["resume-subscription"],r4,{...e,onSuccess:async(i,o,l)=>{await n.invalidateQueries({queryKey:["get-billing-info"]}),await n.invalidateQueries({queryKey:["get-team-by-id"]}),s(sr.subscriptionResumed)}});return{resumeSubscription:r,...a}},S7=e=>{const n=ce(),s=P(),{mutate:r,...a}=J(["unpause-subscription"],s4,{...e,onSuccess:async(i,o,l)=>{var u;(u=e==null?void 0:e.onSuccess)==null||u.call(e,i,o,l),s(Z({type:"success",message:"Your subscription has been resumed",autoCloseTime:3e3})),await n.invalidateQueries({queryKey:["get-billing-info"]}),await n.invalidateQueries({queryKey:["get-team-by-id"]}),s(Co(!1))},onError:(i,o,l)=>{var u;(u=e==null?void 0:e.onError)==null||u.call(e,i,o,l),s(Z({type:"error",message:(i==null?void 0:i.message)??"Something went wrong",autoCloseTime:3e3}))}});return{unpauseSubscription:r,...a}},Q0=e=>{const n=ce(),{mutate:s,...r}=J(["update-company-info"],i4,{...e,onSuccess:async(a,i,o)=>{var l;await n.invalidateQueries({queryKey:["get-billing-info"]}),(l=e==null?void 0:e.onSuccess)==null||l.call(e,a,i,o)}});return{updateCompany:s,...r}},b7=e=>{const n=ce(),{mutate:s,...r}=J(["update-credit-card"],o4,{...e,onSuccess:async(a,i,o)=>{var l;await n.invalidateQueries({queryKey:["get-billing-info"]}),(l=e==null?void 0:e.onSuccess)==null||l.call(e,a,i,o)}});return{updateCreditCard:s,...r}},L7=e=>{const{mutate:n,...s}=J(["update-team-data-payment-confirmation"],g4,e);return{updateTeamDataAfterPaymentConfirmation:n,...s}},w7=e=>{const n=ce(),s=P(),{mutate:r,isLoading:a,...i}=J(["add-leads-to-campaign-from-sales-explorer"],({campaignId:o,body:l})=>F4(o,l),{...e,onSuccess:async(o,l,u)=>{var d;(d=e==null?void 0:e.onSuccess)==null||d.call(e,o,l,u),await n.invalidateQueries({queryKey:["get-lead-sources",l.campaignId],refetchType:"inactive"}),await n.invalidateQueries({queryKey:["campaign",l.campaignId],refetchType:"inactive"}),s(Z({type:"success",message:`Successfully added ${l.body.entityUrns.length} lead${l.body.entityUrns.length>
91?"s":""} to campaign`,autoCloseTime:3e3}))},onError:(o,l,u)=>{var d;(d=e==null?void 0:e.onError)==null||d.call(e,o,l,u),s(Z({type:"error",message:(o==null?void 0:o.message)??"Failed to add leads to campaign",autoCloseTime:3e3}))}});return{addLeadsToCampaign:r,isLoading:a,...i}},T7=e=>{const n=ce(),s=P(),{mutate:r,isLoading:a,...i}=J(["add-leads-to-campaign-from-saved-lists"],({campaignId:o,body:l})=>$4(o,l),{...e,onSuccess:async(o,l,u)=>{var p;(p=e==null?void 0:e.onSuccess)==null||p.call(e,o,l,u),await n.invalidateQueries({queryKey:["get-lead-sources",l.campaignId],refetchType:"inactive"}),await n.invalidateQueries({queryKey:["campaign",l.campaignId],refetchType:"inactive"});const d=l.body.seListIds.length;s(Z({type:"success",message:`Successfully added ${d} saved list${d>1?"s":""} to campaign`,autoCloseTime:3e3}))},onError:(o,l,u)=>{var d;(d=e==null?void 0:e.onError)==null||d.call(e,o,l,u),s(Z({type:"error",message:(o==null?void 0:o.message)??"Failed to add saved lists to campaign",autoCloseTime:3e3}))}});return{addLeadsToCampaign:r,isLoading:a,...i}},j7=(e,n)=>{const s=P(),r=ce(),{mutate:a,isLoading:i,...o}=J(({toArchive:l})=>A4({campaignId:e,body:{toArchive:l}}),{onMutate:async l=>{await r.cancelQueries({queryKey:["campaign",e]});const u=r.getQueryData(["campaign",e]);return r.setQueryData(["campaign",e],d=>d&&{...d,status:l.toArchive?"archived":"active"}),{prevData:u}},onSuccess:async(l,u,d)=>{var p;await r.invalidateQueries({queryKey:["get-campaigns",l.category]}),await r.invalidateQueries({queryKey:["get-campaigns-count",l.category]}),await r.invalidateQueries({queryKey:["campaigns-dashboard"]}),(p=n==null?void 0:n.onSuccess)==null||p.call(n,l,u,d)},onError:(l,u,d)=>{var h;const p=d;p!=null&&p.prevData&&r.setQueryData(["campaign",e],p.prevData),s(Z({type:"error",message:(l==null?void 0:l.message)??"Oops, something has gone wrong!",autoCloseTime:3e3})),(h=n==null?void 0:n.onError)==null||h.call(n,l,u,d)}});return{archiveCampaign:a,isArchiveLoading:i,...o}},v7=({campaignId:e,category:n},s)=>{const r=ce(),a=P(),{mutate:i,...o}=J(["delete-campaign",e],()=>k4(e),{...s,onError:(l,u,d)=>{var p;(p=s==null?void 0:s.onError)==null||p.call(s,l,u,d),a(Z({type:"error",message:(l==null?void 0:l.message)??"Something went wrong",autoCloseTime:3e3}))},onSuccess:async(l,u,d)=>{var p;(p=s==null?void 0:s.onSuccess)==null||p.call(s,l,u,d),await r.invalidateQueries({queryKey:["get-campaigns",n]}),await r.invalidateQueries({queryKey:["get-campaigns-count"]}),await r.invalidateQueries({queryKey:["campaign-activity-search-list"],refetchType:"inactive"}),await r.invalidateQueries({queryKey:["campaigns-dashboard"],refetchType:"inactive"})}});return{deleteCampaign:i,...o}},I7=(e,n)=>{const s=Os(),r=P(),{mutate:a,...i}=J(["delete-campaign",e],()=>O4(e),{...n,onError:(o,l,u)=>{r(Z({type:"error",message:(o==null?void 0:o.message)??"Something went wrong",autoCloseTime:3e3}))},onSuccess:async(o,l,u)=>{const{id:d,campaignType:p,searchParameters:h,isLinkedinOnly:m,category:f}=o,C=I=>{s(`/campaign/${d}/audience`,{state:{campaignPageType:I,initialCampaignId:e,category:f,isAddMoreLeads:!1}})},E=()=>{s(`/campaign/${d}/audience`,{state:{campaignPageType:"saved-list",category:f,isAddMoreLeads:!1}})},b=async()=>{var T;const I=await K1(e);r(fo(((T=I==null?void 0:I.entityUrns)==null?void 0:T.map(j=>({entityUrn:j})))||[])),s("/contacts/connections",{state:{category:f,campaignType:p,campaignIdToAddLeads:d,isLinkedinOnly:m,isAddMoreLeads:!1}})},w=async()=>{const{entityUrns:I}=await K1(e);r(fo((I==null?void 0:I.map(T=>({entityUrn:T})))||[])),s("/lead-finder",{state:{category:f,campaignType:p,campaignIdToAddLeads:d,isLinkedinOnly:m,isAddMoreLeads:!1}})};switch(p){case U.LINKEDIN_SEARCH:return Qt(h)?C("url"):C("search");case U.LINKEDIN_POST:return C("post");case U.LINKEDIN_EVENT:return C("event");case U.LINKEDIN_SN_SAVED_SEARCH:return C("sales-navigator");case U.LINKEDIN_CSV_UPLOAD:case U.EMAIL_CSV_UPLOAD:case U.TWITTER_CSV_UPLOAD:return C("csv-upload");case U.LINKEDIN_CONNECTIONS:case U.EMAIL_CONNECTIONS:case U.TWITTER_CONNECTIONS:return b();case U.ZAPIER_LEADS:return C("zapier");case U.LINKEDIN_SN_SEARCH:return C("url");case U.LINKEDIN_GROUP:return C("group");case U.LEAD_FINDER:return w();case U.SAVED_LIST:return E();case U.LINKEDIN_NEWSLETTER:return C("newsletter");case U.LINKEDIN_ADVERTISEMENT:return C("advertisement");case U.LINKEDIN_COMPANY:return C("company");default:return null}}});return{duplicateCampaign:a,...i}},_7=(e,n)=>{const s=P(),{mutate:r,...a}=J(["campaign-export-CSV"],i=>M4({campaignId:e,body:i}),{...n,onError:(i,o,l)=>{s(Z({type:"error",message:(i==null?void 0:i.message)??"Something went wrong",autoCloseTime:3e3}))}});return{exportCSV:r,...a}},A7=(e,n)=>{const s=P(),{mutate:r,...a}=J(["campaign-export-CSV-activity"],i=>B4(e,i),{...n,onError:(i,o,l)=>{s(Z({type:"error",message:(i==null?void 0:i.message)??"Something went wrong",autoCloseTime:3e3}))}});return{exportCampaignActivity:r,...a}},N7=e=>{const n=P(),{mutate:s,...r}=J(["campaign-export-CSV-replies"],a=>P4(a),{...e,onError:(a,i,o)=>{n(Z({type:"error",message:(a==null?void 0:a.message)??"Something went wrong",autoCloseTime:3e3}))}});return{exportReplies:s,...r}},ul=(e,n)=>{const{data:s,...r}=Se(["campaign",e],()=>j4(e),n);return{campaign:s,...r}},X0=(e,n)=>Se(["get-lead-sources",e],()=>D4(e),n),k7=(e,n)=>{const{filter:s="all",sortField:r="name",sortOrder:a="ASC",status:i,page:o,perPage:l,category:u,runState:d,search:p}=e;return Se(["get-campaigns",u,i,d,s,p,r,a,o,l],()=>v4({sortField:r,sortOrder:a,status:i,search:p,page:o,perPage:l,filter:s,category:u,runState:d}),{refetchOnMount:!0,...n})},R7=(e,n)=>Se(["get-campaign-sequence-progress",e],()=>H4(e),n),J0=e=>Se(["get-campaigns-grouped"],V4,{refetchOnMount:!0,...e}),M7=(e,n)=>Se(["campaign-search-list-ignored"],()=>
9U4(e),n),pl=({category:e,campaignId:n},s)=>{const r=ce(),a=P(),i=["get-campaigns",e],o=["get-lead-sources",n],l=["campaign",n],{mutate:u,...d}=J(["restart-search",n],p=>R4(n,p),{...s,onMutate:async p=>{const{leadSourceIds:h,restartCampaign:m}=p;await r.cancelQueries({queryKey:i}),await r.cancelQueries({queryKey:o}),await r.cancelQueries({queryKey:l});const f=r.getQueryData(l),C=r.getQueriesData({queryKey:i}),E=r.getQueryData(o);return h!=null&&h.length&&(r.setQueryData(o,b=>b&&b.map(w=>h.includes(w.id)?{...w,isSearchEnded:!1}:w)),r.setQueriesData({queryKey:i},b=>b&&{...b,campaigns:b.campaigns.map(w=>w.id===n?{...w,leadSourcesSearchEnded:w.leadSourcesSearchEnded-h.length}:w)})),m&&(f&&r.setQueryData(l,b=>b&&{...b,isSearchEnded:!1}),r.setQueriesData({queryKey:i},b=>b&&{...b,campaigns:b.campaigns.map(w=>w.id===n?{...w,isSearchEnded:!1}:w)})),{prevData:{prevDataCampaigns:C,prevDataLeadSources:E,prevDataCampaign:f}}},onError:(p,h,m)=>{const f=m;f!=null&&f.prevData&&(f.prevData.prevDataCampaigns.forEach(([C,E])=>{r.setQueryData(C,E)}),r.setQueryData(o,f.prevData.prevDataLeadSources),r.setQueryData(l,f.prevData.prevDataCampaign)),a(Z({type:"error",message:(p==null?void 0:p.message)??"Something went wrong",autoCloseTime:3e3}))},onSuccess:async(p,h,m)=>{a(Z({type:"info",message:"SUCCESSFULLY RESTARTED SEARCH",autoCloseTime:3e3}))}});return{restartSearch:u,...d}},P7=(e,n)=>{const s=P(),r=ce(),{mutate:a,...i}=J("update-campaign-name",({name:o})=>N4({campaignId:e,body:{name:o}}),{...n,onMutate:async o=>{var u;(u=n==null?void 0:n.onMutate)==null||u.call(n,o),await r.cancelQueries({queryKey:["campaign",e]});const l=r.getQueryData(["campaign",e]);return r.setQueryData(["campaign",e],d=>d&&{...d,name:o.name}),{prevData:l}},onSuccess:async(o,l,u)=>{var d;(d=n==null?void 0:n.onSuccess)==null||d.call(n,o,l,u),await r.invalidateQueries({queryKey:["campaign-activity-search-list"],refetchType:"inactive"}),await r.invalidateQueries({queryKey:["campaigns-dashboard"],refetchType:"inactive"}),await r.invalidateQueries({queryKey:["get-campaign-replies"],refetchType:"inactive",exact:!1}),await r.invalidateQueries({queryKey:["get-campaign-activity"],refetchType:"inactive",exact:!1})},onError:(o,l,u)=>{var p;(p=n==null?void 0:n.onError)==null||p.call(n,o,l,u);const d=u;d!=null&&d.prevData&&r.setQueryData(["campaign",e],d.prevData),s(Z({type:"error",message:(o==null?void 0:o.message)??"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{updateCampaignName:a,...i}},O7="Available only in Pro Plan",Ci="get-campaigns",D7=(e,{category:n},s)=>{const r=P(),a=ce(),i=[Ci,n],{isTrialStarted:o,isStarter:l,isPersonal:u,isFree:d,isIndividual:p,isBasic:h}=We(),{mutate:m,isLoading:f,...C}=J("update-campaign-running-state",E=>_4(e,E),{onMutate:async E=>{await a.cancelQueries({queryKey:["campaign",e]}),await a.cancelQueries({queryKey:i});const b=a.getQueryData(["campaign",e]);return b&&a.setQueryData(["campaign",e],w=>({...w,runState:E})),a.setQueriesData({queryKey:i},w=>w&&{...w,campaigns:w.campaigns.map(I=>I.id===e?{...I,runState:E}:I)}),{prevData:b}},onSuccess:async(E,b,w)=>{await a.invalidateQueries({queryKey:["campaigns-dashboard"],refetchType:"inactive"});const I=E.category;try{const T=await I4(I);a.setQueryData(["get-campaigns-count",I],T),await a.refetchQueries({queryKey:["get-campaigns-count",I],type:"active"})}catch{}await a.invalidateQueries({queryKey:[Ci,E.category,"active"]}),await a.invalidateQueries({queryKey:[Ci,E.category,"active","paused"]})},onError:async(E,b,w)=>{await a.invalidateQueries({queryKey:i});const I=w==null?void 0:w.prevData;if(I&&a.setQueryData(["campaign",e],I),E.statusCode===403){const T=d&&`You have reached the maximum limit of ${r5} active campaigns for your current subscription plan.`||o&&`You have reached the maximum limit of ${n5} active campaigns for your current subscription plan.`||l&&`You have reached the maximum limit of ${s5} active campaigns for your current subscription plan.`||u&&`You have reached the maximum limit of ${e5} active campaigns for your current subscription plan.`||p&&`You have reached the maximum limit of ${t5} active campaigns for your current subscription plan.`||h&&`You have reached the maximum limit of ${a5} active campaigns for your current subscription plan.`||"";r(Z({type:"info",message:E.message===O7?"This type of campaign is not available on your current subscription plan.":T,autoCloseTime:3e3}))}else r(Z({type:"error",message:E.message??"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{updateRunningState:m,isUpdateLoading:f,...C}},U7=(e,n,s)=>{const{request:r,exportData:{selectedLeads:a}}=fe(u=>e?u.blacklistConnections:u.connections),i=n?[]:a.map(({entityUrn:u})=>u),{mutate:o,...l}=J("post-get-connections-for-csv",u=>z4(u,i,Gh({...r,selectedOnly:!1})),s);return{exportConnectionsCsv:o,...l}},hl=({entityUrn:e,page:n,perPage:s},r)=>{const{data:a,isLoading:i,...o}=Se(["get-lead-activities",e,n,s],()=>W4({entityUrn:e,page:n,perPage:s}),r);return{leadActivitiesData:a,isLoading:i,...o}},B7=(e,n)=>{const s=ce(),r=["get-lead-info",e],{mutate:a,...i}=J(["update-connection-notes",e],o=>G4({entityUrn:e,notes:o}),{...n,onSuccess:async(o,l,u)=>{var d;(d=n==null?void 0:n.onSuccess)==null||d.call(n,o,l,u),await s.invalidateQueries({queryKey:["post-leads"],exact:!1,refetchType:"inactive"})},onMutate:async o=>{var u;(u=n==null?void 0:n.onMutate)==null||u.call(n,o),await s.cancelQueries({queryKey:r});const l=s.getQueryData(r);return s.setQueryData(r,d=>d&&{...d,userNetwork:{...d.userNetwork,notes:o}}),{prevData:l}},onError:(o,l,u)=>{var d;(d=n==null?void 0:n.onError)==null||d.call(n,o,l,u),s.setQueryData(r,u==null?void 0:u.prevData)}});return{updateNotes:a,...i}},H7=({filterType:e,conversationId:n,entityUrn:s,updateConversationId:r},a)=>{const i=ce(),o=e===Nt.TAGGED,l=o&&["get-tagged-conversations"],u=e===Nt.REPLIES&&["get-replies-conversations"],d=l||u||["get-li-conversations-v2"],{data:p,...h}=zg(["get-li-conversation-messages",s,n],({pageParam:f})=>k9({entityUrn:s,createdBefore:f||Date.now(),conversationId:o?s:n}),{...a,cacheTime:0,getNextPageParam:f=>{var C;return(C=[...f.messages].pop())==null?void 0:C.createdAt},enabled:o||!!n});return c.useEffect(()=>{o&&p&&r(p.pages[0].conversationId),p&&(async()=>{await i.cancelQueries({queryKey:d}),i.setQueriesData({queryKey:d},C=>{if(C){const E=C.pages.map(b=>({...b,data:b.data.map(w=>w.conversationId===n?{...w,unreadCount:0}:w)}));return{...C,pages:E}}return C}),e===Nt.ALL&&i.invalidateQueries({queryKey:["get-li-conversations-v2",Nt.UNREAD]}).catch(console.error)})().catch(console.error)},[p]),{messages:c.useMemo(()=>p!=null&&p.pages?p.pages.map(f=>f.messages).flat():[],[p]),...h}},V7={selectedConversation:null,me:null,filterType:Nt.ALL},eu=c.createContext({}),F7=(e,n)=>{switch(n.type){case Es.SET_CONVERSATION:return{...e,selectedConversation:n.payload};case Es.SET_ME:return{...e,me:n.payload||e.me};case Es.SET_FILTER_TYPE:return{...e,filterType:n.payload||e.filterType};default:return e}},UH=({children:e})=>{const[n,s]=c.useReducer(F7,V7);return t.jsx(eu.Provider,{value:{...n,dispatch:s},children:e})},Ba=()=>c.useContext(eu),$7={salesExplorerList:{},filters:{},isSearching:!1,isLeadSearchActive:!1,totalSearchLeads:0},G7={selectedLeads:[]},z7=(e,n)=>n.type===Wn.SET_SE_LIST?{...e,salesExplorerList:n.payload||e.salesExplorerList}:n.type===Wn.SET_FILTERS?{...e,filters:n.payload||e.filters}:n.type===Wn.SET_IS_SEARCHING?{...e,isSearching:!!n.payload}:n.type===Wn.SET_LEAD_SEARCH_ACTIVE?{...e,isLeadSearchActive:!!n.payload}:n.type===Wn.SET_TOTAL_SEARCH_LEADS?{...e,totalSearchLeads:Number(n.payload)||0}:e,W7=(e,n)=>n.type===Wn.SET_SELECTED_LEADS?{...e,selectedLeads:n.payload||e.selectedLeads}:e,ml=c.createContext(null),tu=c.createContext(null),q7=({children:e})=>{const[n,s]=c.useReducer(z7,$7),r=c.useMemo(()=>({...n,dispatch:s}),[n,s]);return t.jsx(ml.Provider,{value:r,children:e})},Z7=({children:e})=>{const[n,s]=c.useReducer(W7,G7),r=c.useMemo(()=>({...n,dispatch:s}),[n,s]);return t.jsx(tu.Provider,{value:r,children:e})},BH=({children:e})=>t.jsx(q7,{children:t.jsx(Z7,{children:e})}),HH=()=>{const e=c.useContext(ml);if(!e)throw new Error("useSalesExplorerSearchContext must be used within SalesExplorerContextProvider");return e},Y7=()=>c.useContext(ml),VH=()=>{const e=c.useContext(tu);if(!e)throw new Error("useSalesExplorerSelectionContext must be used within SalesExplorerContextProvider");return e},K7=()=>{const{data:e=[],isLoading:n,isFetching:s}=Hx(),{createSavedFilterAsync:r,isLoading:a}=Ux(),{updateSavedFilterAsync:i,isLoading:o}=Vx(),{deleteSavedFilterAsync:l,isLoading:u}=Bx(),d=c.useCallback(async(C,E)=>!C.trim()||!Z1(e)?null:r({name:C,criteria:E}),[r,e]),p=c.useCallback(async(C,E)=>E.trim()?(await i({id:C,name:E}),!0):!1,[i]),h=c.useCallback(async(C,E)=>
9(await i({id:C,criteria:E}),!0),[i]),m=c.useCallback(async C=>{await l(C)},[l]),f=c.useCallback(C=>e.find(E=>E.id===C)??null,[e]);return c.useMemo(()=>({savedFilters:e,isLoading:n||s,isMutating:a||o||u,canAddMore:Z1(e),addSavedFilter:d,renameSavedFilter:p,updateSavedFilterCriteria:h,deleteSavedFilter:m,getSavedFilterById:f}),[e,n,s,a,o,u,d,p,h,m,f])},nu=c.createContext(null),FH=({children:e})=>{const n=K7(),[s,r]=c.useState("filters"),[a,i]=c.useState(null),[o,l]=c.useState(null),[u,d]=c.useState(""),p=c.useCallback(w=>{r(w)},[]),h=c.useCallback(w=>{i(w)},[]),m=c.useCallback(()=>{i(null)},[]),f=c.useCallback(w=>{l(w)},[]),C=c.useCallback(()=>{l(null)},[]),E=c.useCallback(w=>{d(w)},[]),b=c.useMemo(()=>({...n,sidebarTab:s,setSidebarTab:p,selectedSavedFilterId:a,activeSavedFilterId:o,selectSavedFilter:h,clearSelectedSavedFilter:m,setActiveSavedFilterId:f,clearActiveSavedFilter:C,searchQuery:u,setSearchQuery:E}),[n,s,p,a,o,h,m,f,C,u,E]);return t.jsx(nu.Provider,{value:b,children:e})},$H=()=>{const e=c.useContext(nu);if(!e)throw new Error("useSavedFiltersContext must be used within SavedFiltersContextProvider");return e},su=c.createContext(null),GH=({children:e})=>{const[n,s]=c.useState(null),[r,a]=c.useState(""),i=c.useCallback(p=>{s(p)},[]),o=c.useCallback(()=>{s(null)},[]),l=c.useCallback(p=>{a(p)},[]),u=c.useCallback(()=>{s(null),a("")},[]),d=c.useMemo(()=>({selectedSavedListId:n,searchQuery:r,selectSavedList:i,clearSelectedSavedList:o,setSearchQuery:l,resetSavedListsUiState:u}),[n,r,i,o,l,u]);return t.jsx(su.Provider,{value:d,children:e})},zH=()=>{const e=c.useContext(su);if(!e)throw new Error("useSavedListsContext must be used within SavedListsContextProvider");return e},Q7=(e,n,s)=>{const{dispatch:r}=Ba(),a=ce(),i=n===Nt.TAGGED&&["get-tagged-conversations"],o=n===Nt.REPLIES&&["get-replies-conversations"],l=i||o||["get-li-conversations-v2",n],{mutate:u,...d}=J(["modify-conversation",e],p=>N9({conversationId:e,action:p,isSales:!1}),{onMutate:async p=>{await a.cancelQueries({queryKey:l});const h=a.getQueryData(l);return a.setQueriesData({queryKey:l},m=>{if(m){const f=m.pages.map(C=>({...C,data:C.data.map(E=>E.conversationId===e&&p===mn.UNREAD?{...E,unreadCount:1}:E).filter(E=>E.conversationId===e&&[mn.ARCHIVE,mn.UNARCHIVE,mn.DELETE].some(b=>b===p)?!1:!!E)}));return{...m,pages:f}}return m}),p!==mn.UNREAD&&r({type:Es.SET_CONVERSATION,payload:null}),{prevData:h}},onError:(p,h,m)=>{a.setQueryData(l,m==null?void 0:m.prevData)}});return{modifyConversation:u,...d}},yi="get-li-conversations-v2",X7=({conversationId:e,entityUrn:n},s)=>{const r=P(),a=ce(),{userMe:i}=st(),{me:o}=Ba(),l=["get-li-conversation-messages",n,e],{mutate:u,isLoading:d,...p}=J(["send-conversation-message",e],({files:h,message:m})=>M9({conversationId:e,files:h.map(({file:f})=>f),message:m}),{onMutate:async h=>{const{files:m,message:f}=h;await a.cancelQueries({queryKey:l}),await a.cancelQueries({queryKey:[yi]});const C=a.getQueryData(l),E=Date.now(),b=(o==null?void 0:o.entityUrn)||(i==null?void 0:i.linkedInEntityUrn)||"";let w="";if(C)for(const j of C.pages){const L=j.messages.find(_=>_.entityUrn===b);if(L!=null&&L.imageUrl){w=L.imageUrl;break}}w||(w=(o==null?void 0:o.imageUrl)||(i==null?void 0:i.profilePictureUrl)||""),a.setQueryData(l,j=>{const L={subtype:Rn.memberToMember,content:{attributedBody:{text:f||""},body:"",attachments:m.map(({file:_,fileSrc:N})=>({id:"",name:_.name,mediaType:_.type,byteSize:_.size,reference:{string:N}}))},createdAt:E,entityUrn:b,imageUrl:w};if(j){const _=[...j.pages];return _[0]={..._[0],messages:[L,..._[0].messages]},{...j,pages:_}}return{pages:[{messages:[L],conversationId:e||""}],pageParams:[null]}});const I={};return a.getQueriesData({queryKey:[yi]}).forEach(([j,L])=>{if(L&&e){const _=JSON.stringify(j),N=L;I[_]=N;const R=f||(O=>{if(O===0)return"";const B=O>1?"s":"";return`📎 ${O} file${B}`})(m.length),V=N.pages.map(O=>({...O,data:O.data.map(B=>B.conversationId===e?{...B,content:R,lastActivityAt:E}:B)}));a.setQueryData(j,{...N,pages:V})}}),{prevMessages:C,prevConversationsData:I}},onError:(h,m,f)=>{Ao.dismiss(),r(Z({type:"error",message:"Uploading failed! Please contact support!",autoCloseTime:3e3})),f!=null&&f.prevMessages&&a.setQueryData(l,f.prevMessages),f!=null&&f.prevConversationsData&&Object.entries(f.prevConversationsData).forEac
9h(([C,E])=>{if(E){const b=JSON.parse(C);a.setQueryData(b,E)}})},onSuccess:async(h,m,f)=>{if((h==null?void 0:h.originalHttpCode)===422){r(Z({type:"error",message:"Unable to send message"}));return}await a.refetchQueries({queryKey:[yi]}),await a.refetchQueries({queryKey:l})}});return{sendLIAttachmentMessage:u,isSendLiAttachmentLoading:d,...p}},Ei="get-li-conversations-v2",ru=({conversationId:e,entityUrn:n},s)=>{const r=ce(),a=P(),{userMe:i}=st(),{me:o}=Ba(),l=["get-li-conversation-messages",n,e],{mutate:u,isLoading:d,...p}=J(["send-conversation-message",e],({message:h,objectUrn:m,isGroup:f})=>R9({message:h,objectUrn:m,entityUrn:f?"":n,conversationId:e}),{onMutate:async h=>{await r.cancelQueries({queryKey:l}),await r.cancelQueries({queryKey:[Ei]});const m=r.getQueryData(l),f=Date.now(),C=(o==null?void 0:o.entityUrn)||(i==null?void 0:i.linkedInEntityUrn)||"";let E="";if(m)for(const I of m.pages){const T=I.messages.find(j=>j.entityUrn===C);if(T!=null&&T.imageUrl){E=T.imageUrl;break}}E||(E=(o==null?void 0:o.imageUrl)||(i==null?void 0:i.profilePictureUrl)||""),r.setQueryData(l,I=>{const T={subtype:Rn.memberToMember,content:{attributedBody:{text:h.message},body:""},createdAt:f,entityUrn:C,imageUrl:E};if(I){const j=[...I.pages];return j[0]={...j[0],messages:[T,...j[0].messages]},{...I,pages:j}}return{pages:[{messages:[T],conversationId:e||""}],pageParams:[null]}});const b={};return r.getQueriesData({queryKey:[Ei]}).forEach(([I,T])=>{if(T&&e){const j=JSON.stringify(I),L=T;b[j]=L;const _=L.pages.map(N=>({...N,data:N.data.map(A=>A.conversationId===e?{...A,content:h.message,lastActivityAt:f}:A)}));r.setQueryData(I,{...L,pages:_})}}),{prevMessages:m,prevConversationsData:b}},onSuccess:async(h,m,f)=>{if((h==null?void 0:h.originalHttpCode)===422){a(Z({type:"error",message:"Unable to send message"}));return}await r.refetchQueries({queryKey:[Ei]}),await r.refetchQueries({queryKey:l}),e||r.invalidateQueries({queryKey:["get-lead-info",n]})},onError:(h,m,f)=>{f!=null&&f.prevMessages&&r.setQueryData(l,f.prevMessages),f!=null&&f.prevConversationsData&&Object.entries(f.prevConversationsData).forEach(([C,E])=>{if(E){const b=JSON.parse(C);r.setQueryData(b,E)}})}});return{sendLIMessage:u,isSendLiLoading:d,...p}},J7=(e,n)=>{const{data:s,...r}=Se(["get-email-extended-reply",e],()=>P9(e),{...n,enabled:!!e&&((n==null?void 0:n.enabled)??!0),cacheTime:0});return{emailThread:s,...r}},ex=e=>{const n=P(),{mutate:s,mutateAsync:r,...a}=J(["send-email-direct-reply"],i=>O9(i),{...e,onSuccess:(i,o,l)=>{var u;if((u=e==null?void 0:e.onSuccess)==null||u.call(e,i,o,l),i!=null&&i.error||(i==null?void 0:i.sent)===!1){n(Z({type:"error",message:(i==null?void 0:i.reason)||"Failed to send email reply",autoCloseTime:3e3}));return}i!=null&&i.sent&&n(Z({type:"success",message:"Email reply sent successfully",autoCloseTime:3e3}))},onError:(i,o,l)=>{var u;(u=e==null?void 0:e.onError)==null||u.call(e,i,o,l),n(Z({type:"error",message:(i==null?void 0:i.message)||"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{sendEmailDirectReply:s,sendEmailDirectReplyAsync:r,...a}},gl=e=>{const{isAuth:n,profile:s}=fe(l=>l.user),{data:r,isLoading:a,isError:i,...o}=Se(["get-feature-flags"],z9,{enabled:n&&!!(s!=null&&s.isEmailVerified),retry:!1,...e});return{featureFlags:r,isLoadingOrError:a||i,isLoading:a,isError:i,...o}},tx=e=>v.post("/groups",e),WH=()=>v.get("/groups/all"),qH=e=>v.get("/groups",{params:e}),nx=({groupId:e,...n})=>v.patch(`/groups/${e}`,n),ZH=({groupId:e})=>v.delete(`/groups/${e}`),YH=({groupId:e,memberId:n})=>v.post(`/groups/${e}/members/${n}`),KH=({groupId:e,memberId:n})=>v.delete(`/groups/${e}/members/${n}`),sx=e=>{const n=ce(),s=P(),{mutate:r,...a}=J("create-group",tx,{...e,onSuccess:async(i,o,l)=>{s(Q()),s(Z({type:"info",message:"The group has been created"})),n.invalidateQueries({queryKey:["get-group-list-full"]}),n.invalidateQueries({queryKey:["get-group-list-page"]})},onError:(i,o,l)=>{s(Z({type:"error",message:(i==null?void 0:i.message)??"Something went wrong",autoCloseTime:3e3}))}});return{createGroup:r,...a}},rx=e=>{const n=ce(),s=P(),r=["get-group-list-full"],a=["get-group-list-page"],{mutate:i,...o}=J(["update-group"],nx,{...e,onMutate:async l=>{await n.cancelQueries({queryKey:r}),await n.cancelQueries({queryKey:a});const u=n.getQueryData(r),d=n.getQueryData(a);return n.setQueryData(r,p=>p==null?void 0:p.map(h=>{if(h.id===l.groupId){const m={...h};return h.name=l.name,m}return h})),n.setQueryData(a,p=>({total:(p==null?void 0:p.total)??0,groups:(p==null?void 0:p.groups.map(h=>{if(h.id===l.groupId){const m={...h};return h.name=l.name,m}return h}))??[]})),{prevData:{prevDataListFull:u,prevDataListPage:d}}},onSuccess:async(l,u,d)=>{await n.invalidateQueries({queryKey:["get-team-members"],exact:!1,refetchType:"inactive"}),s(Q())},onError:(l,u,d)=>{const p=d==null?void 0:d.prevData;p&&(n.setQueryData(r,p.prevDataListFull),n.setQueryData(a,p.prevDataListPage)),s(Z({type:"error",message:(l==null?void 0:l.message)??"Something went wrong",autoCloseTime:3e3}))},onSettled:async(l,u,d,p)=>{await n.invalidateQueries({queryKey:a})}});return{updateGroup:i,...o}},ax=e=>{const n=P(),s=ce(),r=["get-gmail-aliases"],{mutate:a,...i}=J("change-gmail-alias",u8,{...e,onMutate:async o=>{await s.cancelQueries({queryKey:r});const l=s.getQueryData(r);return s.setQueryData(r,u=>u&&u.map(d=>
9({...d,alfredDefault:d.sendAsEmail===o}))),{prevData:l}},onSuccess:async(o,l,u)=>{var d;(d=e==null?void 0:e.onSuccess)==null||d.call(e,o,l,u),await s.invalidateQueries({queryKey:["get-users-email"],refetchType:"inactive"})},onError:(o,l,u)=>{var p;(p=e==null?void 0:e.onError)==null||p.call(e,o,l,u);const d=u;d!=null&&d.prevData&&s.setQueryData(r,d.prevData),n(Z({message:o.message,type:"error",autoCloseTime:3e3}))}});return{changeAlias:a,...i}},ix=e=>{const{mutate:n,...s}=J(["check-linkedin-connection"],g8,e);return{checkConnection:n,...s}},au=e=>{const n=ce(),{mutate:s,isLoading:r,...a}=J("delete-gmail",c8,{...e,onSuccess:async(i,o,l)=>{n.invalidateQueries({queryKey:["get-users-email"]})}});return{deleteGmail:s,isDeleteGmailLoading:r,...a}},ox=e=>{const{mutate:n,...s}=J("delete-linkedin-credentials",e8,e);return{deleteLinkedInCredentials:n,...s}},iu=e=>{const n=ce(),{mutate:s,...r}=J("delete-gmail",m8,{...e,onSuccess:async(a,i,o)=>{n.invalidateQueries({queryKey:["get-users-email"]})}});return{deleteMicrosoftOutlook:s,...r}},lx=e=>{const n=ce(),{mutate:s,...r}=J("delete-proxy",a=>y8(a),{...e,onSuccess:(a,i,o)=>{var l;(l=e==null?void 0:e.onSuccess)==null||l.call(e,a,i,o),n.invalidateQueries({queryKey:["get-proxy"]})}});return{deleteProxy:s,...r}},cx=e=>{const{mutate:n,...s}=J("get-facebook-access-token",a8,e);return{getFacebookAccessToken:n,...s}},ou=e=>{const n=P();return Se(["get-facebook-data"],t8,{retry:!1,refetchOnMount:!0,...e,onSuccess:s=>{var r,a;(r=e==null?void 0:e.onSuccess)==null||r.call(e,s),(a=s==null?void 0:s.facebookData)!=null&&a.unauthorized?n(Tt({type:te.FACEBOOK_INTEGRATION_ERROR})):n(Ct({type:te.FACEBOOK_INTEGRATION_ERROR}))}})},dx=e=>Se(["get-facebook-post-options"],s8,{retry:!1,refetchOnMount:!0,...e}),ux=e=>Se(["get-gmail-aliases"],d8,e),px=()=>v.get("/intercom"),lu=e=>Se(["get-campaign-replies"],px,e),xl=(e,n)=>{const s=ce(),{mutate:r,...a}=J("get-microsoft-outlook-code-url",()=>p8(e),{...n,onSuccess:async(i,o,l)=>{document.location.href=i,await s.invalidateQueries({queryKey:["get-users-email"]}),await s.invalidateQueries({queryKey:["microsoft-outlook-auth"]})}});return{getMicrosoftOutlookCodeUrl:r,...a}},hx=e=>Se(["get-proxy"],x8,{retry:!1,refetchOnMount:!0,...e}),mx=e=>{const n=P(),{mutate:s,...r}=J("get-twitter-auth-url",W9,{...e,onSuccess:async(a,i,o)=>{window.open(a,"targetWindow","toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=500,height=250")},onError:(a,i,o)=>{n(Z({type:"error",message:(a==null?void 0:a.message)??"Something went wrong",autoCloseTime:3e3}))}});return{getTwitterAuthUrl:s,...r}},gx=e=>{const n=ce(),{mutate:s,...r}=J("logout-from-twitter",Y9,{...e,onSuccess:async(a,i,o)=>{var l;(l=e==null?void 0:e.onSuccess)==null||l.call(e,a,i,o),await n.cancelQueries({queryKey:["get-user-twitter-details"]}),await n.setQueryData(["get-user-twitter-details"],()=>null)}});return{logoutFromTwitter:s,...r}},xx=e=>{const n=ce(),{mutate:s,...r}=J("patch-proxy",({id:a,payload:i})=>C8(a,i),{...e,onSuccess:(a,i,o)=>{var l;(l=e==null?void 0:e.onSuccess)==null||l.call(e,a,i,o),n.invalidateQueries({queryKey:["get-proxy"]})}});return{patchProxy:s,...r}},fx=e=>{const n=ce(),{mutate:s,...r}=J("post-facebook-data",i8,{...e,onSuccess:async(a,i,o)=>{var l;(l=e==null?void 0:e.onSuccess)==null||l.call(e,a,i,o),await n.invalidateQueries({queryKey:["get-facebook-data"]})}});return{postFacebookClearLogin:s,...r}},Cx=e=>{const{mutate:n,...s}=J("post-facebook-data",n8,e);return{postFacebookData:n,...s}},yx=e=>{const n=ce(),{mutate:s,...r}=J("post-facebook-options",r8,{...e,onSuccess:(a,i,o)=>{var l;(l=e==null?void 0:e.onSuccess)==null||l.call(e,a,i,o),n.invalidateQueries({queryKey:["get-facebook-data"]})}});return{postFacebookOptions:s,...r}},Ex=({onSuccess:e})=>{const{mutate:n,...s}=J("post-facebook-short-live-token-to-get-long-live-token",o8,{onSuccess:e});return{postFacebookShortLiveTokenToGetLongLiveToken:n,...s}},fl=e=>{const n=P(),s=ce(),{mutate:r,error:a,...i}=J("post-gmail-sign-in",l8,{...e,onSuccess:async(o,l,u)=>{s.invalidateQueries({queryKey:["get-users-email"]})},onError:(o,l,u)=>{n(Z({type:"error",message:(o==null?void 0:o.message)??"Something went wrong",autoCloseTime:3e3}))}});return{postGmailSingIn:r,googleError:a,...i}};let Si;const Sx=new rs,cu=()=>(Si||(Si=O6(Go,{secure:!0,transports:["websocket"],auth:{token:Sx.get(fn)}}
9)),Si),bx=e=>{const{mutate:n,...s}=J("post-linkedin-verify-code",J9,e);return{postLinkedInVerifyCode:n,...s}},du=(e,n)=>{const s=ce(),{error:r,...a}=Se(["microsoft-outlook-auth",e],()=>h8(e),{enabled:!!e,retry:!1,refetchOnReconnect:!1,refetchOnWindowFocus:!1,...n,onSuccess:i=>{var o;(o=n==null?void 0:n.onSuccess)==null||o.call(n,i),s.invalidateQueries({queryKey:["get-users-email"]})},onSettled:(i,o)=>{var l;(l=n==null?void 0:n.onSettled)==null||l.call(n,i,o),window.history.replaceState({},document.title)}});return{microsoftError:r,...a}},Lx=e=>{const n=ce(),{mutate:s,...r}=J("post-proxy",f8,{...e,onSuccess:(a,i,o)=>{var l;(l=e==null?void 0:e.onSuccess)==null||l.call(e,a,i,o),n.invalidateQueries({queryKey:["get-proxy"]})}});return{postProxy:s,...r}},wx=e=>{const{mutate:n,...s}=J("update-linkedin-credentials",X9,e);return{updateLinkedInCredentials:n,...s}},Tx=e=>Se(["get-user-twitter-details"],Z9,{retry:!1,refetchOnMount:!0,...e}),jx=e=>{const n=ce(),s=P(),{mutate:r,...a}=J("verify-twitter-auth",i=>q9(i),{...e,onSuccess:async(i,o,l)=>{n.setQueryData(["get-user-twitter-details"],i)},onError:(i,o,l)=>{s(Z({type:"error",message:(i==null?void 0:i.message)??"Something went wrong",autoCloseTime:3e3}))}});return{verifyTwitterAuth:r,...a}},vx=(e,n)=>{const s=ce(),r=P(),a=["get-lead-info",e],{mutate:i,...o}=J(["create-add-lead-tag",e],l=>T8(e,l),{...n,onSuccess:async(l,u,d)=>{s.setQueryData(a,p=>{if(p){const h=p.tags.findIndex(({id:m})=>m===-1);return{...p,tags:p.tags.map((m,f)=>h===f?l:m)}}return p}),await s.invalidateQueries({queryKey:["get-all-tags"]})},onMutate:async l=>{await s.cancelQueries({queryKey:a});const u=s.getQueryData(a);return s.setQueryData(a,d=>d&&{...d,tags:[...d.tags,{...l,id:-1,snId:null,leadsCount:0,connectionsCount:0}]}),r(Z({type:"info",message:"tag created",autoCloseTime:3e3})),{prevData:u}},onError:(l,u,d)=>{s.setQueryData(a,d==null?void 0:d.prevData)}});return{createAddLeadTag:i,...o}},Ix=(e,n,s)=>{const{request:r,exportData:{selectedLeads:a}}=fe(u=>e?u.blacklistLeads:u.lead),i=n?[]:a.map(({entityUrn:u})=>u),{mutate:o,...l}=J("get-leads-for-csv",u=>j8(u,i,$h({...r,selectedOnly:!1})),s);return{exportLeadsCsv:o,...l}},uu=(e,n,s)=>{const{data:r,...a}=Se(["get-campaign-lead-actions",e,n],()=>N8(e,n),s);return{leadActions:r,...a}},_x=(e,n)=>Se(["get-campaign-zapier-leads",e],()=>k8(e),n),Un=(e,n,s)=>{const{data:r,isLoading:a,...i}=Se(["get-lead-info",e],()=>S8(e,n),{refetchOnMount:!0,enabled:e!=="UNKNOWN"&&!!e&&(s==null?void 0:s.enabled)!==!1,...s});return{leadInfo:r,isLeadLoading:a,...i}},Ax=({campaignId:e,entityUrn:n,getLeadKeys:s},r)=>{const a=ce(),i=P(),o=["get-campaign-leads",e,JSON.stringify(s)],{mutate:l,isLoading:u,...d}=J(["reset-campaign-lead-columns",n],()=>_8(n,e),{...r,onMutate:async p=>{await a.cancelQueries({queryKey:o});const h=a.getQueryData(o);return a.setQueryData(o,m=>{var f;return m&&{...m,leads:(f=m==null?void 0:m.leads)==null?void 0:f.map(C=>C.entityUrn===n?{...C,customData:null}:C)}}),{prevData:h}},onSuccess:(p,h,m)=>{},onError:(p,h,m)=>{m!=null&&m.prevData&&a.setQueryData(o,m.prevData),i(Z({type:"error",message:(p==null?void 0:p.message)??"Something went wrong",autoCloseTime:3e3}))}});return{resetLeadColumn:l,isResetLoading:u,...d}},Cl=(e,n)=>{const{campaignId:s}=e??{},r=ce(),a=P(),i=["get-campaign-replies"],{mutate:o,isLoading:l,...u}=J(["return-campaign-replies"],d=>A8(d),{...n,onMutate:async d=>{await r.cancelQueries({queryKey:i});const p=r.getQueryData(i);return r.setQueriesData({queryKey:i},h=>{var m;return h&&{...h,replies:(m=h.replies)==null?void 0:m.map(f=>{var C;return d.includes((C=f.person)==null?void 0:C.key)?{...f,isReturnToCampaign:!0}:f})}}),{prevData:p}},onSuccess:async(d,p,h)=>{a(pm({entityUrns:[]})),a(Z({type:"info",message:"The lead was returned to sequence",autoCloseTime:3e3})),await r.invalidateQueries({queryKey:i}),await r.invalidateQueries({queryKey:["get-campaign-leads",s]}),await r.invalidateQueries({queryKey:["get-campaign-activity"],refetchType:"inactive",exact:!1})},onError:(d,p,h)=>{h!=null&&h.prevData&&r.setQueriesData({queryKey:i},h.prevData),a(Z({type:"error",message:(d==null?void 0:d.message)??"Something went wrong",autoCloseTime:3e3}))}});return{returnCampaignReplies:o,isReturnLoading:l,...u}},pu=({entityUrn:e,campaignId:n,campaignKeys:s},r)=>{const a=ce(),i=P(),o=["get-lead-info",e],{mutate:l,...u}=J(["set-lead-tags",e],d=>w8(e,d),{...r,onMutate:async d=>{var h;(h=r==null?void 0:r.onMutate)==null||h.call(r,d),await a.cancelQueries({queryKey:o});const p=a.getQueryData(o);return p&&a.setQueryData(o,m=>m&&{...m,tags:d}),Ah({queryClient:a,entityUrn:e,tags:d,campaignId:n,campaignKeys:s}),{prevData:p}},onSuccess:async(d,p,h)=>{var m;h&&((m=r==null?void 0:r.onSuccess)==null||m.call(r,d,p,h)),await Nh(a,n,s)},onError:(d,p,h)=>{var m;h&&((m=r==null?void 0:r.onError)==null||m.call(r,d,p,h)),h!=null&&h.prevData&&a.setQueryData(o,h.prevData),kh(a,n),i(Z({type:"error",message:(d==null?void 0:d.message)??"Something went wrong",autoCloseTime:3e3}))}});return{setLeadTags:l,...u}},yl=(e,n,s)=>{const r=P(),a=ce(),{entityUrns:i}=fe(h=>h.campaign.selectedLeads),o=["campaign",e],l=["get-campaign-leads",e,JSON.stringify(n)],{mutate:u,isLoading:d,...p}=J(["skip-campaign-lead",e],h=>I8(e,{entityUrns:h}),{...s,onMutate:async h=>{await a.cancelQueries({queryKey:l}),await a.cancelQueries({queryKey:o});const m=a.getQueryData(l),f=a.getQueryData(o);return a.setQueryData(l,C=>{var E;return C&&{...C,leads:(E=C==null?void 0:C.leads)==null?void 0:E.filter(b=>!i.includes(b.entityUrn))}}),a.setQueryData(o,C=>C&&{...C,ignoredLeadsCount:1}),{prevLeadsData:m,prevCampaignData:f}},onSuccess:async(h,m,f)=>{r(f0({campaignId:e,entityUrns:i.filter(C=>!m.includes(C))})),await a.invalidateQueries({queryKey:l}),await a.invalidateQueries({queryKey:["get-campaign-ignored-leads",e],refetchType:"inactive"}),await a.invalidateQueries({queryKey:["get-campaign-leads-statuses"]})},onError:(h,m,f)=>{f!=null&&f.prevLeadsData&&a.setQueryData(l,f.prevLeadsData),f!=null&&f.prevCampaignData&&a.setQueryData(o,f.prevCampaignData),r(Z({type:"error",message:(h==null?void 0:h.message)??"Something went wrong",autoCloseTime:3e3}))}});return{skipCampaignLead:u,isSkipLoading:d,...p}},Nx=({campaignId:e,entityUrn:n,getLeadKeys:s},r)=>{const a=ce(),i=P(),o=["get-campaign-leads",e,JSON.stringify(s)],{mutate:l,isLoading:u,...d}=J(["update-campaign-lead-columns",n],p=>
9v8(n,e,p),{...r,onMutate:async p=>{await a.cancelQueries({queryKey:o});const h=a.getQueryData(o);return a.setQueryData(o,m=>{var f;return m&&{...m,leads:(f=m==null?void 0:m.leads)==null?void 0:f.map(C=>C.entityUrn===n?{...C,customData:p}:C)}}),{prevData:h}},onSuccess:(p,h,m)=>{},onError:(p,h,m)=>{m!=null&&m.prevData&&a.setQueryData(o,m.prevData),i(Z({type:"error",message:(p==null?void 0:p.message)??"Something went wrong",autoCloseTime:3e3}))}});return{updateLeadColumn:l,isUpdateLoading:u,...d}},$r="post-connections",Gr="get-campaign-leads",Ks=e=>["get-lead-info",e],kx=(e,n)=>{const s=ce(),r=P(),a=["post-leads"],{mutate:i,...o}=J(["update-lead",e],l=>b8({entityUrn:e,body:l}),{...n,onMutate:async l=>{var m;(m=n==null?void 0:n.onMutate)==null||m.call(n,l),await s.cancelQueries({queryKey:a}),await s.cancelQueries({queryKey:[$r]}),await s.cancelQueries({queryKey:[Gr]}),await s.cancelQueries({queryKey:Ks(e)});const u=s.getQueriesData({queryKey:a}),d=s.getQueriesData({queryKey:[$r]}),p=s.getQueriesData({queryKey:[Gr]}),h=s.getQueryData(Ks(e));return u&&s.setQueriesData({queryKey:a},f=>{var C;return f&&{...f,leads:(C=f==null?void 0:f.leads)==null?void 0:C.map(E=>{var b;return((b=E.person)==null?void 0:b.key)===e?{...E,isExcluded:l.isExcluded}:E})}}),d&&s.setQueriesData({queryKey:[$r]},f=>f&&{...f,connections:f.connections.map(C=>C.entityUrn===e?{...C,isExcluded:l.isExcluded,userNetwork:Qt(C.userNetwork)?C.userNetwork:{...C.userNetwork,isExcluded:l.isExcluded}}:C)}),p&&s.setQueriesData({queryKey:[Gr]},f=>{var C;return f&&{...f,leads:(C=f==null?void 0:f.leads)==null?void 0:C.map(E=>E.entityUrn===e?{...E,isExcluded:l.isExcluded}:E)}}),h&&s.setQueryData(Ks(e),f=>f&&{...f,lead:{...f.lead,isExcluded:l.isExcluded},userNetwork:Qt(f.userNetwork)?f.userNetwork:{...f.userNetwork,isExcluded:l.isExcluded}}),{prevData:Array.from(u),prevLeadData:h,prevConnectionsData:Array.from(d),prevCampaignLeadsData:Array.from(p)}},onSuccess:(l,u,d)=>{var p;d&&((p=n==null?void 0:n.onSuccess)==null||p.call(n,l,u,d)),s.invalidateQueries({queryKey:Ks(e)})},onError:(l,u,d)=>{var p;d&&((p=n==null?void 0:n.onError)==null||p.call(n,l,u,d)),d!=null&&d.prevData&&s.setQueriesData({queryKey:a},d.prevData),d!=null&&d.prevConnectionsData&&s.setQueriesData({queryKey:[$r]},d.prevConnectionsData),d!=null&&d.prevCampaignLeadsData&&s.setQueriesData({queryKey:[Gr]},d.prevCampaignLeadsData),d!=null&&d.prevLeadData&&s.setQueryData(Ks(e),d.prevLeadData),r(Z({type:"error",message:(l==null?void 0:l.message)??"Something went wrong",autoCloseTime:3e3}))}});return{updateLead:i,...o}},Rx="notifications",Mx=e=>Se([Rx,e],()=>M8(e),{enabled:!!e}),Px="notification-unread-count",hu=()=>Se([Px],R8,{refetchOnWindowFocus:!0,refetchOnMount:!0,staleTime:3e4,cacheTime:6e4}),bi="notifications",zr="notification-unread-count",Li="grouped-notifications-count",Ox=()=>{const e=ce();return J(P8,{onMutate:async()=>{await e.cancelQueries({queryKey:[bi]}),await e.cancelQueries({queryKey:[zr]}),await e.cancelQueries({queryKey:[Li]});const n=e.getQueriesData({queryKey:[bi]}),s=e.getQueryData([zr]),r=e.getQueryData([Li]);return e.getQueriesData({queryKey:[bi]}).forEach(([i,o])=>{if(!o)return;const l=i[1],u=l&&typeof l=="object"&&l.unreadOnly===!0,d=o,p=d.notifications.map(h=>h.readAt?h:{...h,readAt:new Date().toISOString()});u?e.setQueryData(i,{...d,notifications:[],total:0}):e.setQueryData(i,{...d,notifications:p})}),e.setQueryData([zr],i=>i&&{...i,unreadCount:0}),{previousNotifications:Array.from(n),previousUnreadCount:s,previousGroupedCount:r}},onError:(n,s,r)=>{r!=null&&r.previousNotifications&&r.previousNotifications.forEach(([a,i])=>{e.setQueryData(a,i)}),r!=null&&r.previousUnreadCount&&e.setQueryData([zr],r.previousUnreadCount),r!=null&&r.previousGroupedCount&&e.setQueryData([Li],r.previousGroupedCount)}})},wi="notifications",Wr="notification-unread-count",Ti="grouped-notifications-count",Dx=()=>{const e=ce();return J(O8,{onMutate:async n=>{await e.cancelQueries({queryKey:[wi]}),await e.cancelQueries({queryKey:[Wr]}),await e.cancelQueries({queryKey:[Ti]});const s=e.getQueriesData({queryKey:[wi]}),r=e.getQueryData([Wr]);e.getQueriesData({queryKey:[wi]}
9).forEach(([o,l])=>{if(!l)return;const u=o[1],d=u&&typeof u=="object"&&u.unreadOnly===!0,p=l,h=p.notifications.map(m=>m.id===n?{...m,readAt:new Date().toISOString()}:m);if(d){const m=h.filter(f=>!f.readAt);e.setQueryData(o,{...p,notifications:m,total:Math.max(0,p.total-1)})}else e.setQueryData(o,{...p,notifications:h})}),e.setQueryData([Wr],o=>o&&{...o,unreadCount:Math.max(0,o.unreadCount-1)});const i=e.getQueryData([Ti]);return{previousNotifications:Array.from(s),previousUnreadCount:r,previousGroupedCount:i}},onError:(n,s,r)=>{r!=null&&r.previousNotifications&&r.previousNotifications.forEach(([a,i])=>{e.setQueryData(a,i)}),r!=null&&r.previousUnreadCount&&e.setQueryData([Wr],r.previousUnreadCount),r!=null&&r.previousGroupedCount&&e.setQueryData([Ti],r.previousGroupedCount)}})},El=e=>e.invalidateQueries({queryKey:H0}),Ux=e=>{const n=P(),s=ce(),{mutateAsync:r,...a}=J("create-saved-filter",async({name:i,criteria:o})=>{const l=await H8(T9(i,o));return await El(s),ll(l)},{...e,onError:(i,o,l)=>{n(Z({type:"error",message:(i==null?void 0:i.message)??"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{createSavedFilterAsync:r,...a}},Bx=e=>{const n=P(),s=ce(),{mutateAsync:r,...a}=J("delete-saved-filter",async i=>{await F8(i),await El(s)},{...e,onError:(i,o,l)=>{n(Z({type:"error",message:(i==null?void 0:i.message)??"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{deleteSavedFilterAsync:r,...a}},Hx=e=>Se(H0,()=>B8().then(w9),e),Vx=e=>{const n=P(),s=ce(),{mutateAsync:r,...a}=J("update-saved-filter",async i=>{const o="criteria"in i?v9(i.criteria):j9(i.name),l=await V8(i.id,o);return await El(s),ll(l)},{...e,onError:(i,o,l)=>{n(Z({type:"error",message:(i==null?void 0:i.message)??"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{updateSavedFilterAsync:r,...a}},Fx=e=>{const n=P(),{mutate:s,...r}=J("create-sequence-template",$8,{...e,onSuccess:(a,i,o)=>{var l;(l=e==null?void 0:e.onSuccess)==null||l.call(e,a,i,o),n(Z({type:"success",message:"Campaign Sequence Template was successfully created",autoCloseTime:3e3}))},onError:(a,i,o)=>{var l;(l=e==null?void 0:e.onError)==null||l.call(e,a,i,o),n(Z({type:"error",message:(a==null?void 0:a.message)??"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{createSequenceTemplate:s,...r}},$x=(e,n)=>{const{page:s,perPage:r,category:a,availability:i,search:o,sortField:l,sortOrder:u}=e,{data:d,...p}=Se(["get-sequence-templates",i,a,o,s,r,l,u],()=>G8(e),{refetchOnMount:!0,...n});return{data:d,...p}},Gx=e=>v.post("/smtp-settings/test",e),zx=e=>{const{mutate:n,isLoading:s,...r}=J(["test-smtp-settings"],Gx,e);return{testSMTP:n,isTestLoading:s,...r}},Wx=(e,n)=>{const s=ce(),r=P(),{mutate:a,error:i,isLoading:o,isSuccess:l}=J("add-leads-tags",L8,{...n,onSuccess:async(u,d,p)=>{await s.invalidateQueries({queryKey:e==="connections"?["post-connections"]:["post-leads"]}),await Promise.all(d.leadIds.map(h=>s.invalidateQueries({queryKey:["get-lead-info",h]}))),r(Q())},onError:(u,d,p)=>{r(Z({type:"error",message:(u==null?void 0:u.message)??"Something went wrong",autoCloseTime:3e3}))}});return{addLeadsTags:a,error:i,isLoading:o,isSuccess:l}},Ha=e=>{const n=ce(),s=P(),r=["get-all-tags"],{mutate:a,error:i,isLoading:o,isSuccess:l}=J("create-trend",W8,{...e,onMutate:async u=>{e!=null&&e.onMutate&&await e.onMutate(u),await n.cancelQueries({queryKey:r});const d=n.getQueryData(r);return n.setQueryData(r,p=>[...p||[],{color:u.color,tag:u.tag,id:-1,snId:"-1",leadsCount:0,connectionsCount:0}]),{prevData:d}},onSuccess:(u,d,p)=>{var h;n.setQueryData(r,m=>m&&m.map(f=>f.tag===u.tag?u:f)),n.invalidateQueries({queryKey:["get-tags"]}).catch(console.error),n.invalidateQueries({queryKey:r}).catch(console.error),e!=null&&e.withNotCloseModal||s(Q()),(h=e==null?void 0:e.onSuccess)==null||h.call(e,u,d,p)},onError:(u,d,p)=>{var h;p!=null&&p.prevData&&n.setQueryData(r,p.prevData),s(Z({type:"error",message:(u==null?void 0:u.message)??"Something went wrong",autoCloseTime:3e3})),p&&((h=e==null?void 0:e.onError)==null||h.call(e,u,d,p))}});return{createTag:a,error:i,isLoading:o,isSuccess:l}},qx=(e,n)=>{const s=ce(),r=P(),a=["get-tags"],i=["get-all-tags"],{mutate:o}=J(["delete-tag",e],()=>Z8(e),{...n,onMutate:async l=>{await s.cancelQueries({queryKey:a}),await s.cancelQueries({queryKey:i});const u=s.getQueryData(a),d=s.getQueryData(i);return s.setQueryData(a,p=>p==null?void 0:p.filter(h=>h.id!==e)),s.setQueryData(i,p=>p&&p.filter(h=>h.id!==e)),{tagsData:u,allTagsData:d}},onSuccess:async(l,u,d)=>{s.invalidateQueries({queryKey:i}).catch(console.error),r(Q())},onError:(l,u,d)=>{s.setQueryData(a,d==null?void 0:d.tagsData),s.setQueryData(i,d==null?void 0:d.allTagsData),r(Z({type:"error",message:(l==null?void 0:l.message)??"Something went wrong",autoCloseTime:3e3}))},onSettled:async()=>{await s.invalidateQueries({queryKey:a})}});return{deleteTag:o}},is=e=>{const{isAuth:n}=fe(o=>o.user),{palette:s}=Ve(),{data:r,...a}=Se(["get-all-tags"],Y8,{enabled:n,refetchOnMount:!0,...e});return{tags:r==null?void 0:r.map(o=>({...o,color:(o==null?void 0:o.color)||s.gray[600]})),...a}},Zx=(e,n)=>{const s=ce(),r=P(),{mutate:a}=J(["update-tag",e],()=>q8(e),{...n,onMutate:async i=>{var l;(l=n==null?void 0:n.onMutate)==null||l.call(n,i),await s.cancelQueries({queryKey:["get-tags"]});const o=s.getQueryData(["get-tags"]);return s.setQueryData(["get-tags"],u=>u==null?void 0:u.map(d=>{if(d.id===e.id){const p={...d};return e.color&&(p.color=e.color),e.tag&&(p.tag=e.tag),p}return d})),{prevData:o}},onSuccess:async(i,o,l)=>{n!=null&&n.onSuccess&&n.onSuccess(i,o,l),s.invalidateQueries({queryKey:["get-all-tags"]}).catch(console.error),r(Q())},onError:(i,o,l)=>{n!=null&&n.onError&&n.onError(i,o,l),s.setQueryData(["get-tags"],l==null?void 0:l.prevData),r(Z({type:"error",message:(i==null?void 0:i.message)??"Something went wrong",autoCloseTime:3e3}))},onSettled:async(i,o,l,u)=>{n!=null&&n.onSettled&&n.onSettled(i,o,l,u),await s.invalidateQueries({queryKey:["get-tags"]})}});return{updateTag:a}},Yx=e=>{const n=ce(),s=P(),{mutate:r,...a}=J(["accept-invitation-to-team"],rg,{...e,onSuccess:async(i,o,l)=>{if(n.removeQueries({queryKey:["get-invitation-to-team"]}),localStorage.removeItem("lastInviteKey"),i.redirectTo){location.replace(`${i.redirectTo}/auth/login?exchange-token=${i.authToken}`);return}location.reload()},onError:(i,o,l)=>{s(Z({type:"error",message:(i==null?void 0:i.message)??"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{acceptInvitation:r,...a}},Kx=e=>{const{mutate:n,...s}=J("export-team-stats",og,e);return{exportTeamStats:n,...s}},mu=e=>{const{isLoading:n,isError:s,...r}=Se(["get-all-team-members"],Q8,e);return{isLoadingOrError:n||s,isLoading:n,isError:s,...r}},Qx=e=>{const n=P(),{isAuth:s}=fe(l=>l.user),[r,a]=c.useState(!1),{data:i,...o}=Se(["ge-last-invitation"],ig,{enabled:s,...e});return c.useEffect(()=>{!r&&(i!=null&&i.id)&&(a(!0),as(2e3,()=>{var l,u;n(Ne({type:Y.CONFIRM_INVITATION_TO_TEAM,headerText:"Team invitation received",params:{teamName:(l=i==null?void 0:i.team)==null?void 0:l.name,userRole:i==null?void 0:i.role,inviteId:i==null?void 0:i.id,isInviteToCustomDomain:!!((u=i==null?void 0:i.team)!=null&&u.isWhiteLabelCustomDomain)}}))}))},[i==null?void 0:i.id,r]),{data:i,rest:o}},Sl=({teamId:e},n)=>{const s=P(),{data:r,...a}=Se(["get-team-by-id",e],()=>K8({teamId:e}),{...n,onSuccess:i=>{var o;(o=n==null?void 0:n.onSuccess)==null||o.call(n,i),i&&s(k0(i))},onError:i=>{var o;(o=n==null?void 0:n.onError)==null||o.call(n,i),[403,404].includes(i==null?void 0:i.statusCode)&&s(ol())}});return{teamData:r,...a}},bl=(e,n)=>{const{id:s}=fe(({team:o})=>o.data)||{},r=s||0,{data:a,...i}=Se(["get-team-invites",r],()=>J8({teamId:r}),{enabled:!!r,...n});return{teamInvites:a,...i}},Ll=(e,n)=>{const{id:s}=fe(({team:o})=>o.data)||{},r=(e==null?void 0:e.teamId)||s||0,{data:a,...i}=Se(["get-team-members",JSON.stringify({...e,teamId:r})],()=>X8({...e,teamId:r}),{enabled:!!r,...n});return{teamMembers:a,...i}},Xx=e=>{const n=P(),s=ce(),{mutate:r,...a}=J(["invite-user-with-email"],eg,{...e,onSuccess:async(i,o,l)=>{var u;(u=e==null?void 0:e.onSuccess)==null||u.call(e,i,o,l),i.type==="invitation"&&(await s.invalidateQueries({queryKey:["get-team-invites"]}),n(Z({message:"Invite has been sent",type:"info",autoCloseTime:5e3}))),i.type==="member"&&(await s.invalidateQueries({queryKey:["get-team-members"]}),await s.invalidateQueries({queryKey:["get-team-by-id"]}),await s.invalidateQueries({queryKey:["get-all-team-members"]}),n(Z({message:"User has been added to team",type:"info",autoCloseTime:5e3})))},onError:(i,o,l)=>{var u;(u=e==null?void 0:e.onError)==null||u.call(e,i,o,l),n(Z({type:"error",message:(i==null?void 0:i.message)??"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{inviteUserWithEmail:r,...a}},Jx=e=>{const n=P(),s=ce(),{mutate:r,isLoading:a,...i}=J(["invite-user-without-email"],tg,{...e,onSuccess:async(o,l,u)=>{var d;(d=e==null?void 0:e.onSuccess)==null||d.call(e,o,l,u),await s.invalidateQueries({queryKey:["get-team-members"]}),await s.invalidateQueries({queryKey:["get-all-team-members"]}),n(Z({message:"User has been added to team",type:"info",autoCloseTime:5e3}))},onError:(o,l,u)=>{var d;(d=e==null?void 0:e.onError)==null||d.call(e,o,l,u),n(Z({type:"error",message:(o==null?void 0:o.message)??"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{inviteUserWithoutEmail:r,isInviteLoading:a,...i}},ef=e=>{const n=P(),s=ce(),{mutate:r,...a}=J(["leave-team"],ag,{...e,onSuccess:async(i,o,l)=>{n(zm()),n(ol()),s.removeQueries({queryKey:["get-team-by-id"]}),s.removeQueries({queryKey:["get-team-invites"]}),s.removeQueries({queryKey:["get-team-members"]}),await s.resetQueries()},onError:(i,o,l)=>{n(Z({type:"error",message:(i==null?void 0:i.message)??"Something went wrong",autoCloseTime:3e3}))}});return{leaveTeam:r,...a}},tf=e=>{const n=ce(),s=P(),{mutate:r,...a}=J(["reject-invitation-to-team"],sg,{...e,onSuccess:async(i,o,l)=>{await n.invalidateQueries({queryKey:["get-team-invites"]}),n.removeQueries({queryKey:["get-invitation-to-team"]}),localStorage.removeItem("lastInviteKey")},onError:(i,o,l)=>{s(Z({type:"error",message:(i==null?void 0:i.message)??"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{rejectInvitation:r,...a}},nf=e=>{const n=ce(),s=P(),{mutate:r,...a}=J(["update-team-data"],ng,{...e,onSuccess:async(i,o,l)=>{await n.invalidateQueries({queryKey:["get-team-by-id",o.teamId]})},onError:(i,o,l)=>{s(Z({type:"error",message:(i==null?void 0:i.message)??"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{updateTeam:r,...a}},sf=(e,n,s)=>{const r=ce(),a=P(),i=Os(),o=["get-templates-personal"],{mutate:l,...u}=J(["delete-template",e],()=>dg(e),{...s,onMutate:async d=>{await r.cancelQueries({queryKey:o});const p=r.getQueryData(o);return r.setQueriesData({queryKey:o},h=>{var m;
9return h&&{...h,total:(h==null?void 0:h.total)-1,templates:(m=h==null?void 0:h.templates)==null?void 0:m.filter(f=>f.id!==e)}}),{prevData:p}},onSuccess:async(d,p,h)=>{await r.invalidateQueries({queryKey:o,exact:!1}),a(Q()),n&&i(-1)},onError:(d,p,h)=>{r.setQueryData(o,h==null?void 0:h.prevData),a(Z({type:"error",message:(d==null?void 0:d.message)??"Something went wrong",autoCloseTime:3e3}))}});return{deleteTemplate:l,...u}},rf=(e,n)=>{const{data:s,...r}=Se(["get-templates-by-category",e],()=>cg({categoryId:e}),n);return{templates:s,...r}},af=(e,n)=>{const{page:s,perPage:r,categoryId:a,search:i,sortField:o,sortOrder:l}=e,{data:u,...d}=Se(["get-templates-personal",a,i,s,r,o,l],()=>lg(e),{refetchOnMount:!0,...n});return{data:u,...d}},of=e=>{const n=ce(),{refreshTrendPosts:s}=df(),r=P(),a=Os(),i=["get-trends"],{mutate:o,...l}=J("create-trend",ug,{...e,onMutate:async u=>{var p;(p=e==null?void 0:e.onMutate)==null||p.call(e,u),await n.cancelQueries({queryKey:i});const d=n.getQueryData(i);return n.setQueryData(i,h=>[...h||[],u]),{prevData:d}},onSuccess:async(u,d,p)=>{var h;(h=e==null?void 0:e.onSuccess)==null||h.call(e,u,d,p),s(u.id),a(`/trends?trendId=${u.id}`),r(Q())},onError:(u,d,p)=>{var h;(h=e==null?void 0:e.onError)==null||h.call(e,u,d,p),n.setQueryData(i,p==null?void 0:p.prevData)},onSettled:async()=>{await n.invalidateQueries({queryKey:i})}});return{createTrend:o,...l}},lf=(e,n)=>{const s=ce(),r=Os(),a=["get-trends"],{mutate:i,isLoading:o,...l}=J(["delete-trend","trendId"],()=>gg(e),{...n,onMutate:async u=>{var p;(p=n==null?void 0:n.onMutate)==null||p.call(n,u),await s.cancelQueries({queryKey:a});const d=s.getQueryData(a);return s.setQueryData(a,h=>h==null?void 0:h.filter(m=>m.id!==e)),{prevData:d}},onSuccess:async(u,d,p)=>{var h;(h=n==null?void 0:n.onSuccess)==null||h.call(n,u,d,p),r("/trends")},onError:(u,d,p)=>{var h;(h=n==null?void 0:n.onError)==null||h.call(n,u,d,p),s.setQueryData(a,p==null?void 0:p.prevData)},onSettled:async(u,d,p,h)=>{var m;(m=n==null?void 0:n.onSettled)==null||m.call(n,u,d,p,h),await s.invalidateQueries({queryKey:a})}});return{deleteTrend:i,isDeleteLoading:o,...l}},cf=e=>Se(["get-trends"],pg,e),df=e=>{const{data:n}=cf(),s=P(),{mutate:r,...a}=J(["refresh-trend-posts"],i=>hg(i),{...e,onMutate:async i=>{s(G1(i===-1?(n==null?void 0:n.reduce((o,l)=>(o[l.id]=!0,o),{[-1]:!0}))||{}:{[i]:!0}))}});return{refreshTrendPosts:r,...a}},uf=e=>{const n=ce(),s=P(),r=["get-trends"],{mutate:a,...i}=J(["update-trend"],mg,{...e,onMutate:async o=>{var u;(u=e==null?void 0:e.onMutate)==null||u.call(e,o),await n.cancelQueries({queryKey:r});const l=n.getQueryData(r);return n.setQueryData(r,d=>d==null?void 0:d.map(p=>p.id===o.id?o:p)),{prevData:l}},onSuccess:async(o,l,u)=>{var d;(d=e==null?void 0:e.onSuccess)==null||d.call(e,o,l,u),s(Q())},onError:(o,l,u)=>{var d;(d=e==null?void 0:e.onError)==null||d.call(e,o,l,u),n.setQueryData(r,u==null?void 0:u.prevData)},onSettled:async(o,l,u,d)=>{var p;(p=e==null?void 0:e.onSettled)==null||p.call(e,o,l,u,d),await n.invalidateQueries({queryKey:r})}});return{updateTrend:a,...i}},pf=e=>{const{mutateAsync:n,...s}=J(["send-reconnect-linkedIn"],Og,{...e});return{handleReconnectLinkedin:n,...s}},hf="video-library-categories",mf=e=>Se([hf],Dg,{refetchOnWindowFocus:!1,staleTime:3e5,enabled:(e==null?void 0:e.enabled)??!0}),gf="video-library-videos",xf=(e,n)=>Se([gf,e],()=>Ug(e),{refetchOnWindowFocus:!1,staleTime:3e5,enabled:(n==null?void 0:n.enabled)??!0}),ff=e=>Se(["get-whitelabel"],()=>new Promise(n=>Bg().then(n).catch(()=>n({}))),e),Cf=e=>Se(["get-whitelabel-branding"],()=>new Promise(n=>Hg({domain:Na}).then(n).catch(()=>n({}))),e),QH=P,fe=D6,Je=()=>{var f;const{isAuth:e}=fe(({user:C})=>C),n=ka,s=ff({enabled:e,retry:0}),r=Cf({enabled:!e&&!n,retry:0}),{data:a,isLoading:i,isError:o,...l}=e?s:r,u=(a==null?void 0:a.status)==="active",d=!n,p=!!(a!=null&&a.companyName),h=!!(a!=null&&a.domain),m=!!((f=a==null?void 0:a.smtpSettings)!=null&&f.smtpServer);return{whitelabel:{...a,isActive:u,isWhiteLabelUser:d,isAlfredDomain:n,withCustomEmail:m,withBranding:p,withCustomDomain:h},isLoadingOrError:i||o,isLoading:i,isError:o,...l}},wl="renewal-3plus3-promo-dismissed",yf=["Cyber Monday 2025","Black Friday 2025"],gu=e=>!!e&&yf.includes(e),Ef=()=>{try{return localStorage.getItem(wl)==="1"}catch{return!1}},xu=()=>{try{localStorage.setItem(wl,"1")}catch{}},Va=()=>{var u;const{billingInfo:e}=ot(),n=((u=e==null?void 0:e.freePhasePromo)==null?void 0:u.name)||"",s=gu(n),r=e==null?void 0:e.isFreePhasePromoProlongated,a=r===!0,i=c.useMemo(()=>s&&r!==!0&&r!==!1,[s,r]),o=c.useMemo(()=>s&&a,[s,a]),l=s&&((e==null?void 0:e.plan)===x.BASIC||(e==null?void 0:e.plan)===x.PRO)&&(e==null?void 0:e.b
9illingType)===G.QUARTERLY;return{shouldShowPromo:i,shouldShowProlongatedBlock:o,shouldHidePromoCodeInput:l,isFreePhasePromoProlongated:a}},Lr=()=>{const e=P(),n=ce();return{logout:()=>{n.removeQueries(),e(hr()),e(Jm()),e(il());try{localStorage.removeItem(wl)}catch{}}}},Sf=()=>{const{whitelabel:e}=Je(),n=K2(e.isActive?e.theme:void 0),s=U6({palette:n,isBrandingApplied:e.isActive}),r=Object.entries(n).map(([a,i])=>Object.entries(i).map(([o,l])=>`--${a}-${o}: ${l};`));return{baseTheme:s,cssVarsThemePalette:r}},Tl=()=>{const{profile:e}=fe(h=>h.user),{teamUser:n}=fe(h=>h.team.data)??{},{whitelabel:s}=Je(),r=!!(e!=null&&e.isBlocked),a=!!(e!=null&&e.isBlacklisted),i=(e==null?void 0:e.id)!=null&&(n==null?void 0:n.userId)!=null&&Number(n.userId)===Number(e.id),o=i&&(n==null?void 0:n.role)===Kt.OWNER,l=r&&o&&!s.isWhiteLabelUser,u=r&&!l;return{isBlocked:r,isBlacklisted:a,isBlockedOwnerWithBillingAccess:l,shouldShowBlockedScreen:u,shouldShowEmptyNavBarBlockedScreen:u&&i,shouldShowBlacklistedScreen:a&&!r}},bf=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("rect",{width:24,height:24,rx:12,fill:"#40B780"}),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.81397 12.5097C4.86057 14.5463 4.88387 15.5646 5.69014 16.319C6.4964 17.0733 7.61853 17.0996 9.86277 17.1521C11.2459 17.1845 12.6155 17.1845 13.9987 17.1521C16.2429 17.0996 17.365 17.0733 18.1713 16.319C18.9776 15.5646 19.0009 14.5463 19.0475 12.5097C19.0625 11.8549 19.0625 11.2039 19.0475 10.549C19.0009 8.51243 18.9776 7.49412 18.1713 6.73979C17.365 5.98545 16.2429 5.95918 13.9987 5.90662C12.6155 5.87423 11.2459 5.87423 9.86277 5.90661C7.61852 5.95917 6.4964 5.98544 5.69014 6.73978C4.88387 7.49411 4.86057 8.51242 4.81397 10.549C4.79899 11.2039 4.79899 11.8549 4.81397 12.5097ZM7.70974 8.84207C7.90966 8.47929 8.36581 8.34726 8.72859 8.54717L10.8257 9.70278C11.4214 10.031 11.7058 10.1149 11.9306 10.1149C12.1554 10.1149 12.4399 10.031 13.0356 9.70278L15.1326 8.54717C15.4954 8.34726 15.9516 8.47929 16.1515 8.84207C16.3514 9.20485 16.2194 9.661 15.8566 9.86091L13.7595 11.0165C13.1326 11.362 12.5614 11.6149 11.9306 11.6149C11.2998 11.6149 10.7286 11.362 10.1017 11.0165L8.00464 9.86091C7.64186 9.661 7.50983 9.20485 7.70974 8.84207Z",fill:"white"})),Lf=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("rect",{width:24,height:24,rx:12,fill:"#B734B0"}),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.99 6.46268C10.5624 6.68128 10.053 7.01401 9.33038 7.4872L6.82314 9.12896C6.23787 9.5122 6.09452 9.62123 6.01036 9.76841C5.96161 9.85367 5.93448 9.94561 5.91454 10.1385L8.47124 12.001C9.09986 12.4589 9.51876 12.7618 10.1083 12.8224C10.7724 12.4134 11.3683 12.167 11.9999 12.167C12.6316 12.167 13.2274 12.4134 13.8916 12.8224C14.4811 12.7618 14.9 12.4589 15.5286 12.001L18.0853 10.1385C18.0654 9.94561 18.0382 9.85367 17.9895 9.76841C17.9053 9.62123 17.762 9.5122 17.1767 9.12896L14.6695 7.4872C13.9468 7.01401 13.4375 6.68128 13.0098 6.46269C12.5929 6.24963 12.294 6.16699 11.9999 6.16699C11.7058 6.16699 11.4069 6.24963 10.99 6.46268ZM18.1446 11.3325L16.1174 12.8093C16.0939 12.8264 16.0703 12.8436 16.0467 12.8609C15.7107 13.1062 15.3668 13.3572 14.9688 13.5428L18.0666 15.6533C18.1235 15.1509 18.138 14.5236 18.1561 13.6901C18.1732 12.9032 18.1694 12.1224 18.1446 11.3325ZM17.8054 16.6853L13.7764 13.9405C12.945 13.3741 12.4459 13.167 11.9999 13.167C11.554 13.167 11.0548 13.3741 10.2234 13.9405L6.19447 16.6853C6.27856 16.8539 6.38385 16.9968 6.51627 17.1282C6.79889 17.4088 7.14322 17.5698 7.69595 17.665C8.27064 17.7639 9.015 17.7835 10.0794 17.8098C11.3636 17.8416 12.6363 17.8416 13.9204 17.8098C14.9848 17.7835 15.7292 17.7639 16.3039 17.665C16.8566 17.5698 17.201 17.4088 17.4836 17.1282C17.616 16.9968 17.7213 16.8539 17.8054 16.6853ZM5.93322 15.6533L9.03107 13.5428C8.63306 13.3572 8.28916 13.1062 7.95313 12.8608C7.92953 12.8436 7.90597 12.8264 7.88243 12.8093L5.8552 11.3325C5.83045 12.1224 5.82664 12.9032 5.84374 13.6901C5.86187 14.5236 5.87639 15.1509 5.93322 15.6533ZM10.5349 5.57225C11.0324 5.31801 11.4915 5.16699 11.9999 5.16699C12.5083 5.16699 12.9675 5.31801 13.4649 5.57225C13.9461 5.81818 14.5 6.18094 15.1936 6.63511L17.7245 8.29236C17.7517 8.31015 17.7786 8.32771 17.8051 8.34506C18.2691 8.64812 18.639 8.88968 18.8576 9.27204C19.0766 9.65517 19.095 10.0835 19.1178 10.6161C19.1191 10.6459 19.1204 10.676 19.1217 10.7064C19.1662 11.7181 19.1776 12.71 19.1559 13.7118L19.155 13.7513C19.1338 14.7289 19.1166 15.5192 19.0047 16.
91561C18.887 16.8258 18.6582 17.3712 18.1881 17.8379C17.7166 18.3061 17.159 18.5325 16.4735 18.6505C15.8183 18.7633 15.0005 18.7835 13.9835 18.8086L13.9451 18.8095C12.6445 18.8417 11.3553 18.8417 10.0547 18.8095L10.0163 18.8086C8.99932 18.7835 8.18156 18.7633 7.5263 18.6505C6.84085 18.5325 6.28328 18.3061 5.81171 17.8379C5.34166 17.3712 5.11281 16.8258 4.99514 16.1561C4.88324 15.5192 4.86607 14.7289 4.84484 13.7513L4.84398 13.7118C4.8222 12.71 4.83359 11.7181 4.87811 10.7064C4.87945 10.676 4.88074 10.6459 4.88201 10.6161C4.90483 10.0835 4.92319 9.65517 5.14225 9.27204C5.36088 8.88968 5.73071 8.64812 6.19471 8.34506C6.22128 8.32771 6.24815 8.31015 6.27533 8.29236L8.80622 6.63511C9.4998 6.18094 10.0538 5.81818 10.5349 5.57225Z",fill:"white"})),er=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("rect",{width:16,height:16,rx:8,fill:"#0A66C2"}),c.createElement("path",{d:"M11.7505 3.6001H4.24971C4.07742 3.6001 3.91219 3.66854 3.79036 3.79036C3.66854 3.91219 3.6001 4.07742 3.6001 4.24971V11.7505C3.6001 11.9228 3.66854 12.088 3.79036 12.2098C3.91219 12.3317 4.07742 12.4001 4.24971 12.4001H11.7505C11.9228 12.4001 12.088 12.3317 12.2098 12.2098C12.3317 12.088 12.4001 11.9228 12.4001 11.7505V4.24971C12.4001 4.07742 12.3317 3.91219 12.2098 3.79036C12.088 3.66854 11.9228 3.6001 11.7505 3.6001ZM6.22299 11.0966H4.89993V6.89399H6.22299V11.0966ZM5.56054 6.3116C5.41046 6.31075 5.264 6.26547 5.13963 6.18146C5.01527 6.09746 4.91857 5.97849 4.86175 5.83958C4.80493 5.70067 4.79053 5.54805 4.82038 5.40096C4.85022 5.25388 4.92296 5.11893 5.02942 5.01315C5.13588 4.90737 5.2713 4.8355 5.41857 4.8066C5.56584 4.7777 5.71837 4.79308 5.85691 4.85079C5.99545 4.9085 6.1138 5.00596 6.197 5.13086C6.28021 5.25577 6.32455 5.40252 6.32443 5.5526C6.32585 5.65308 6.30702 5.75281 6.26907 5.84586C6.23112 5.93891 6.17482 6.02336 6.10354 6.09419C6.03226 6.16502 5.94744 6.22077 5.85415 6.25812C5.76086 6.29547 5.66101 6.31366 5.56054 6.3116ZM11.0997 11.1003H9.77721V8.80432C9.77721 8.12721 9.48938 7.91821 9.11782 7.91821C8.72549 7.91821 8.34049 8.21399 8.34049 8.82143V11.1003H7.01743V6.89704H8.28976V7.47943H8.30688C8.4346 7.22093 8.88193 6.7791 9.56454 6.7791C10.3028 6.7791 11.1003 7.21726 11.1003 8.5006L11.0997 11.1003Z",fill:"white"})),wf=e=>c.createElement("svg",{width:62,height:26,viewBox:"0 0 62 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("rect",{x:.5,y:.5,width:25,height:25,rx:12.5,fill:"#0A66C2"}),c.createElement("rect",{x:.5,y:.5,width:25,height:25,rx:12.5,stroke:"white"}),c.createElement("path",{d:"M18.6255 6.3999H7.37432C7.11589 6.3999 6.86804 6.50256 6.6853 6.6853C6.50256 6.86804 6.3999 7.11589 6.3999 7.37432V18.6255C6.3999 18.8839 6.50256 19.1318 6.6853 19.3145C6.86804 19.4972 7.11589 19.5999 7.37432 19.5999H18.6255C18.8839 19.5999 19.1318 19.4972 19.3145 19.3145C19.4972 19.1318 19.5999 18.8839 19.5999 18.6255V7.37432C19.5999 7.11589 19.4972 6.86804 19.3145 6.6853C19.1318 6.50256 18.8839 6.3999 18.6255 6.3999ZM10.3342 17.6447H8.34965V11.3407H10.3342V17.6447ZM9.34057 10.4672C9.11545 10.4659 8.89576 10.398 8.70921 10.272C8.52266 10.1459 8.37761 9.96749 8.29238 9.75913C8.20716 9.55077 8.18556 9.32183 8.23032 9.1012C8.27508 8.88058 8.38419 8.67815 8.54389 8.51948C8.70358 8.36081 8.9067 8.253 9.12761 8.20966C9.34852 8.16631 9.57731 8.18938 9.78513 8.27594C9.99294 8.36251 10.1704 8.50869 10.2953 8.69605C10.4201 8.8834 10.4866 9.10353 10.4864 9.32865C10.4885 9.47937 10.4603 9.62897 10.4034 9.76854C10.3464 9.90812 10.262 10.0348 10.1551 10.141C10.0481 10.2473 9.92092 10.3309 9.78099 10.3869C9.64105 10.443 9.49127 10.4702 9.34057 10.4672ZM17.6492 17.6502H15.6656V14.2062C15.6656 13.1906 15.2338 12.8771 14.6765 12.8771C14.088 12.8771 13.5105 13.3207 13.5105 14.2319V17.6502H11.5259V11.3453H13.4344V12.2189H13.4601C13.6517 11.8312 14.3227 11.1684 15.3466 11.1684C16.4539 11.1684 17.6502 11.8257 17.6502 13.7507L17.6492 17.6502Z",fill:"white"}),c.createElement("g",{clipPath:"url(#clip0_534_119756)"},c.createElement("path",{d:"M29.7199 1.08812C25.5036 1.52812 21.7362 4.30396 20.0236 8.23212C18.9199 10.7681 18.7362 13.6881 19.5199 16.3763C20.4879 
919.7281 22.9919 22.56 26.2319 23.9763C28.7679 25.08 31.6879 25.2636 34.3762 24.48C38.3999 23.32 41.568 20.0163 42.608 15.912C44.2317 9.48012 40.2479 2.90364 33.7999 1.36812C32.3836 1.03212 31.1362 0.943959 29.7199 1.08812ZM29.8799 8.52012C30.9036 9.88012 31.7679 11.0001 31.7999 11.0001C31.8319 11.0001 32.8962 9.88012 34.1519 8.52012L36.4479 6.04012H37.7519L37.4719 6.33644C37.3119 6.5038 36.2719 7.63196 35.1599 8.84012C34.0479 10.0481 32.9599 11.2238 32.7436 11.4401L32.3599 11.8481L35.3599 15.8401C37.0079 18.0401 38.3599 19.8638 38.3599 19.8964C38.3599 19.9364 37.3762 19.9601 36.1836 19.9601L33.9999 19.9521L31.9679 17.2321C30.5679 15.3521 29.9119 14.5436 29.8479 14.5921C29.7999 14.6321 28.6636 15.8564 27.3199 17.3121L24.8799 19.9601H24.2636C23.9199 19.9601 23.6399 19.9438 23.6399 19.9201C23.6399 19.8964 24.9119 18.5038 26.4636 16.8321C28.008 15.1601 29.288 13.7601 29.3036 13.7364C29.3119 13.7038 28.0399 11.9681 26.4799 9.88012C24.9199 7.80012 23.6399 6.08012 23.6399 6.0638C23.6399 6.04828 24.6236 6.04012 25.8319 6.04012H28.0236L29.8799 8.52012Z",fill:"black"}),c.createElement("path",{d:"M25.6166 7.112C25.6484 7.168 27.6639 9.872 30.0802 13.1037L34.4801 18.9918L35.4638 19C36.0719 19 36.4401 18.968 36.4238 18.92C36.4164 18.88 34.4083 16.1763 31.9765 12.92L27.5439 7H26.5522C25.7286 7 25.5602 7.01632 25.6166 7.112Z",fill:"black"})),c.createElement("rect",{x:18.5,y:.5,width:25,height:25,rx:12.5,stroke:"white"}),c.createElement("rect",{x:36.5,y:.5,width:25,height:25,rx:12.5,fill:"#40B780"}),c.createElement("rect",{x:36.5,y:.5,width:25,height:25,rx:12.5,stroke:"white"}),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M41.814 13.5097C41.8606 15.5463 41.8839 16.5646 42.6901 17.319C43.4964 18.0733 44.6185 18.0996 46.8628 18.1521C48.2459 18.1845 49.6155 18.1845 50.9987 18.1521C53.2429 18.0996 54.365 18.0733 55.1713 17.319C55.9776 16.5646 56.0009 15.5463 56.0475 13.5097C56.0625 12.8549 56.0625 12.2039 56.0475 11.549C56.0009 9.51243 55.9776 8.49412 55.1713 7.73979C54.365 6.98545 53.2429 6.95918 50.9987 6.90662C49.6155 6.87423 48.2459 6.87423 46.8628 6.90661C44.6185 6.95917 43.4964 6.98544 42.6901 7.73978C41.8839 8.49411 41.8606 9.51242 41.814 11.549C41.799 12.2039 41.799 12.8549 41.814 13.5097ZM44.7097 9.84207C44.9097 9.47929 45.3658 9.34726 45.7286 9.54717L47.8257 10.7028C48.4214 11.031 48.7058 11.1149 48.9306 11.1149C49.1554 11.1149 49.4399 11.031 50.0356 10.7028L52.1326 9.54717C52.4954 9.34726 52.9516 9.47929 53.1515 9.84207C53.3514 10.2048 53.2194 10.661 52.8566 10.8609L50.7595 12.0165C50.1326 12.362 49.5614 12.6149 48.9306 12.6149C48.2998 12.6149 47.7286 12.362 47.1017 12.0165L45.0046 10.8609C44.6419 10.661 44.5098 10.2048 44.7097 9.84207Z",fill:"white"}),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_534_119756"},c.createElement("rect",{x:19,y:1,width:24,height:24,rx:12,fill:"white"})))),fu=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_757_21631)"},c.createElement("path",{d:"M7.14667 0.0585832C4.33579 0.351917 1.82421 2.20248 0.682455 4.82125C-0.0533318 6.51192 -0.175785 8.45858 0.346668 10.2507C0.992002 12.4852 2.66133 14.3731 4.82134 15.3174C6.512 16.0531 8.45867 16.1756 10.2509 15.6531C12.9333 14.8798 15.0454 12.6774 15.7388 9.94114C16.8212 5.65325 14.1653 1.26893 9.86667 0.24525C8.92245 0.0212498 8.09088 -0.0375235 7.14667 0.0585832ZM7.25333 5.01325C7.93579 5.91992 8.512 6.66658 8.53333 6.66658C8.55467 6.66658 9.26421 5.91992 10.1013 5.01325L11.632 3.35992H12.5013L12.3147 3.55746C12.208 3.66904 11.5147 4.42114 10.7733 5.22658C10.032 6.03192 9.30667 6.8157 9.16246 6.95992L8.90667 7.23192L10.9067 9.89325C12.0053 11.3599 12.9067 12.5757 12.9067 12.5975C12.9067 12.6241 12.2509 12.6399 11.4558 12.6399L10 12.6346L8.64534 10.8212C7.712 9.56792 7.27467 9.02893 7.232 9.06125C7.2 9.08792 6.44246 9.90413 5.54667 10.8746L3.92 12.6399H3.50912C3.28 12.6399 3.09333 12.629 3.09333 12.6132C3.09333 12.5975 3.94133 11.669 4.97579 10.5546C6.00544 9.43992 6.85878 8.50658 6.86912 8.4908C6.87467 8.46904 6.0266
97 7.31192 4.98667 5.91992C3.94667 4.53325 3.09333 3.38658 3.09333 3.3757C3.09333 3.36536 3.74912 3.35992 4.55467 3.35992H6.01579L7.25333 5.01325Z",fill:"black"}),c.createElement("path",{d:"M4.41087 4.07467C4.4321 4.112 5.77576 5.91467 7.38662 8.06912L10.3199 11.9946L10.9757 12C11.3811 12 11.6266 11.9787 11.6157 11.9467C11.6108 11.92 10.272 10.1175 8.65081 7.94667L5.69576 4H5.03465C4.48554 4 4.37333 4.01088 4.41087 4.07467Z",fill:"black"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_757_21631"},c.createElement("rect",{width:16,height:16,fill:"white"})))),jl=e=>{const{userMe:n}=st();switch(e){case ue.LINKEDIN:return{title:"LinkedIn Campaigns",inactiveNoLeads:!1,isInactive:!zn(n),inactiveLabel:"LinkedIn",columnConfig:oi,columnSwitchesType:Sn.linkedInCampaigns,generateDataset:ms,Icon:er};case ue.GROUP:return{title:"LinkedIn Group Campaigns",inactiveNoLeads:!1,isInactive:!zn(n),inactiveLabel:"LinkedIn",columnConfig:d5,columnSwitchesType:Sn.linkedInGroupCampaigns,generateDataset:ms,Icon:er};case ue.EVENT:return{title:"LinkedIn Event Campaigns",inactiveNoLeads:!1,isInactive:!zn(n),inactiveLabel:"LinkedIn",columnConfig:u5,columnSwitchesType:Sn.linkedInEventCampaigns,generateDataset:ms,Icon:er};case ue.INMAIL:return{title:"InMails Campaigns",inactiveNoLeads:!1,isInactive:!zn(n),inactiveLabel:"LinkedIn",columnConfig:c5,columnSwitchesType:Sn.inmailCampaigns,generateDataset:ms,Icon:Lf};case ue.COMPANY:return{title:"LinkedIn Company Campaigns",inactiveNoLeads:!1,isInactive:!zn(n),inactiveLabel:"LinkedIn",columnConfig:[...oi,...p5],columnSwitchesType:Sn.linkedInCompanyCampaigns,generateDataset:ms,Icon:er};case ue.EMAIL:return{title:"Email Campaigns",inactiveNoLeads:!0,isInactive:!(n!=null&&n.isEmailActive),inactiveLabel:"Email",columnConfig:E1,columnSwitchesType:Sn.emailCampaigns,Icon:bf};case ue.TWITTER:return{title:"X (Twitter) Campaigns",inactiveNoLeads:!0,isInactive:!(n!=null&&n.isTwitterActive),inactiveLabel:"X (Twitter)",columnConfig:S1,columnSwitchesType:Sn.twitterCampaigns,Icon:fu};case ue.MULTICHANNEL:return{title:"Multichannel Campaigns",isInactive:!zn(n),inactiveLabel:"LinkedIn",columnConfig:[...oi,...E1,...S1],columnSwitchesType:Sn.multichannelCampaigns,generateDataset:ms,Icon:wf}}},Tf=()=>{const e=P(),n=fe(({user:o})=>{var l;return(l=o.profile)==null?void 0:l.lastTeamId}),s=fe(({user:o})=>{var l;return!!((l=o.profile)!=null&&l.isBlocked)}),{isLoading:r,teamData:a}=Sl({teamId:n},{enabled:!!n}),{isLoading:i}=ot();return c.useEffect(()=>{s||(e(Ct({type:te.DEACTIVATED})),a&&(a.isSubscriptionPaused?(e(hr()),e(Co(!0)),e(Tt({type:te.SUBSCRIPTION_PAUSED}))):(e(Co(!1)),e(Ct({type:te.SUBSCRIPTION_PAUSED}))),!a.hasPaidPlan&&!a.hasFreePlan&&a.trial===Yn.ENDED&&(e(Gm(!0)),e(hr()),e(Tt({type:te.DEACTIVATED})))))},[a,s,e]),{isLoading:r||i}},wr=()=>{const{closeCancelModalTrigger:e}=q0(),{data:n}=lu(),{update:s}=Ia();return{closeCancelModal:()=>{s({userHash:n==null?void 0:n.intercomHash,customAttributes:{closedCancellationView:!0}}),e(sr.closeCancelView)},closeCancelModalTrigger:e}},jf=(e,n)=>c.useCallback(s=>{const r=s.currentTarget,a=s.clipboardData||window.clipboardData;if(!a)return;const i=a.getData("text/plain");if(!i)return;s.preventDefault();const o=r.selectionStart,l=r.selectionEnd,d={target:{value:e.substring(0,o)+i+e.substring(l)},currentTarget:r};n(d),requestAnimationFrame(()=>{const p=o+i.length;r.setSelectionRange(p,p)})},[e,n]),vf=({columns:e,type:n})=>{const[s,r]=c.useState([]),a=c.useMemo(()=>{const o=localStorage.getItem(n);if(o)try{const l=new Set(JSON.parse(o));return e.filter(u=>l.has(u.key))}catch{console.error(`Error while parsing [${n}] from Local Storage`)}return e},[n,s]),i=c.useCallback(o=>{localStorage.setItem(n,JSON.stringify(o)),r(o)},[n,r]);return{columns:a,setColumns:i}},If="/CU9al7v_.ico",_f="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20160.9%20118.9'%20style='enable-background:new%200%200%20160.9%20118.9;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23231F20;}%20%3c/style%3e%3cpath%20class='st0'%20d='M136.3,84c-0.5,0.2-0.9,0.6-1.2,1c-0.3,0.3-0.2,0.9,0.1,1.2c0.
91,0.1,0.2,0.1,0.3,0.2c0.6,0.1,1.2,0.1,1.7,0%20c3.9-0.6,7.5,0.3,9.1,4c0.8,2.2,0.5,4.7-0.8,6.7c-2.4,3.2-6.3,3-9.6,1.2c-3.3-1.9-6.4-4-9.4-6.4c-6.2-4.7-12-10-18.5-14.2%20c-8.9-5.7-18.1-7.2-26.6,0.6c-0.3,0.2-0.7,0.3-1,0.1c-8.7-6.4-16.5-7.1-25.8-1.3c-6.3,3.9-11.9,9-17.9,13.4%20c-3.8,2.8-7.6,6.2-11.9,7.9c-2.5,1-6.3-0.2-9-1.6c-1.1-0.6-1.8-5.1-0.9-6c2.1-2.1,5.3-3.3,8.2-4.5c0.4-0.2,0.9-0.2,1.3-0.1%20c0.5,0,0.9-0.3,0.9-0.7c0-0.4-0.2-0.7-0.5-0.8c-5.6-2.5-12.1-1.3-16.5,2.8c-4.9,4.8-5.3,13.3,0,18.3c4.2,3.7,9,6.7,14.1,9%20c4.3,2,9.1,2.8,13.7,4.1l11.4,0.1c4-1,8.2-1.5,11.9-3.2c7.3-3.6,14.3-7.8,21.9-12.2c0.3-0.2,0.7-0.1,1,0.2c7.6,8.6,19,12.5,31,15.2%20c0.1,0,0.1,0,0.2,0h10.8c0.1,0,0.1,0,0.2,0c1.4-0.4,2.8-0.8,4.2-1.1c8.4-1.7,16.3-4.6,22.8-10.3c5.8-5.1,7-11.8,3.3-17.8%20C151.4,84.1,142.5,81.3,136.3,84z'/%3e%3cpath%20class='st0'%20d='M154.5,15.1c-0.8-0.1-1.7,0.4-2.6,0.9c-0.4,0.2-0.8,0.1-1-0.3C143.2,5.4,133,0,120.2,0.2s-22.7,6-30.1,16.2%20c-0.2,0.3-0.7,0.4-1.1,0.2c-5.1-3-11.5-3.1-16.7-0.1c-0.3,0.2-0.8,0.1-1-0.2c-17.7-21.6-40-21.7-61.1-0.5C10,16,9.7,16.1,9.4,16%20c-0.4-0.1-0.9-0.3-1.3-0.5c-2.8-1.2-5.6-1.5-7.4,1.6s0.5,4.5,2.2,6.7c1.7,2.1,2.6,4.7,2.7,7.4c0.2,15.5,8.8,27.5,23.7,32.3%20c24.1,7.7,48.8-10.4,46.2-33.6c-0.4-3.8,1.4-6.3,5.2-6.3c4.3,0,5.1,3,5,6.9C85.2,50,100,65,119.9,65.2c20.8,0.2,35.8-14.4,35.8-34.2%20c0-2.5,2.1-5.1,3.2-7.7c0.8-2,2.5-4.9,1.8-5.8C159.5,16,156.7,15.6,154.5,15.1z%20M40.6,55.8c-13.7,0-25.1-10.6-25-23.1%20S27,9.6,40.6,9.6c13.9,0,25,10.1,25.1,22.9C65.8,45.6,54.7,55.8,40.6,55.8z%20M120.3,55.8C106.7,55.7,95.4,45,95.6,32.5%20c0.2-13,11.5-23,25.7-22.9c13.7,0.1,24.5,10.6,24.3,23.6C145.4,45.9,134.3,55.9,120.3,55.8z'/%3e%3cpath%20class='st0'%20d='M48.1,15.4c-1.9-0.6-3.8-1.1-5.8-1.4h-0.2C30.4,13.9,21,21.7,20.8,30.7c0.1,1,0.5,1.9,1,2.7%20c0.2,0.4,0.7,0.6,1.1,0.3c0.1,0,0.1-0.1,0.2-0.1c0.7-0.6,1.4-1.3,2-2c2.5-3.1,4.4-7,7.4-9.4c4.1-3.3,9.2-4,14.6-2.9%20c1,0,1.9-0.2,2.8-0.7c0.4-0.2,0.6-0.6,0.4-1.1c0-0.1-0.1-0.1-0.1-0.2C49.7,16.5,48.9,15.8,48.1,15.4z'/%3e%3cpath%20class='st0'%20d='M128,15.5c-2-0.7-4.1-1.2-6.2-1.5h-0.2c-11.7,0.1-20.9,7.9-21,16.8c0.1,1,0.5,1.9,1,2.7%20c0.2,0.4,0.7,0.6,1.1,0.3c0.1,0,0.1-0.1,0.1-0.1c0.8-0.5,1.5-1.3,1.9-2.1c1.8-5.9,6.5-10.4,12.5-11.8c3.1-0.8,6.5-0.2,9.8-0.4%20c0.8-0.1,1.7-0.3,2.4-0.6c0.4-0.2,0.6-0.6,0.5-1.1c0-0.1-0.1-0.1-0.1-0.2C129.5,16.7,128.8,16,128,15.5z'/%3e%3c/svg%3e",Af="/CvU8WVhp.svg",Nf="/Wy4QIrdP.svg",kf="/DRtlUy_0.png",Fe=()=>{const{whitelabel:e,isLoading:n}=Je(),{isActive:s,isWhiteLabelUser:r,companyName:a,favicon:i,logoIcon:o,logo:l}=e||{},u=(d,p)=>(s||r)&&p?p:d;return{isLoading:n,logo:u(kf,l),favicon:u(If,i),logoIconWhite:u(Nf,o),logoIconBlack:u(_f,o),logoIconBlue:u(Af,o),companyName:u("Meet Alfred",a)}},Rf=(e,n)=>{const[s,r]=c.useState(e);return c.useEffect(()=>{const a=setTimeout(()=>{r(e)},n);return()=>{clearTimeout(a)}},[e,n]),s},Mf=["public_profile","email","business_management","pages_read_engagement","pages_read_user_content","pages_manage_posts","pages_show_list","instagram_basic","instagram_manage_insights","instagram_content_publish"].join(","),Pf=(e,n=[])=>{const s=new Map(n.map(r=>{var a;return[r.id,(a=r.instagram_business_account)==null?void 0:a.id]}));return e.map(r=>{const a=s.get(r.id);return a?{...r,ig:{...r.ig,id:a}}:r})},Of=({fbAppToken:e,facebookLongLiveToken:n,facebookPages:s,facebookDetails:r,authResponse:a,initialData:i={}})=>{const o={facebookPages:[],...i};return e&&(o.facebookAppAccessToken=e),n&&(o.longLivedAccessToken=n),s.length&&(o.facebookPages=s),r&&(o.facebookDetails=r),a&&(o.facebookAuth=a),Object.keys(o).length>0?o:null},Cu=(e,n,s)=>{window.FB.api(e,{},function({data:r,paging:a}){let i=n;if((r==null?void 0:r.length)>0&&(i=i.concat(r.map(({id:o})=>o))),a!=null&&a.next){Cu(a.next,i,s);return}s(i)})},Df=(e,n,s)=>{const{id:r,followers_count:a,follows_count:i,media_count:o,name:l,profile_picture_url:u,username:d}=s;return e.map(p=>p.id===n.id?{...p,ig:{id:r,username:d,profile_pic:u,follows_count:i,followers_count:a,media_count:o,name:l}}:p)},yu=async({facebookLongLiveToken:e,setPagesLoading:n,setFacebookPages:s,sessionLogout:r,sendFacebookData:a},i,o)=>{const l=i||e;n(!0);try{const u=await V9(l);if(u.error){r();return}const d=await G9(l);if(d.error){r();return}const p=Pf(u.data||[],d.data);s(p),a(!1,{facebookPages:p,facebookDetails:o})}finally{n(!1)}},Uf=async(e,n)=>{n&&e.setFacebookLongLiveToken(n);const s=await F9();if(s.error){e.sessionLogout();return}e.setFacebookDetails(s),await yu(e,n,s)},Bf=async(e,n)=>{var a;if(!((a=n==null?void 0:n.ig)!=null&&a.id))return;const s=await $9(e.facebookLongLiveToken,n.ig.id);if(s.error)return;const r=Df(e.facebookPages,n,s);e.setFacebookPages(r),e.sendFacebookData(!1,{facebookPages:r})},Hf=({setFacebookPages:e,sessionLogout:n,setAuthResponse:s,postFacebookShortLiveTokenToGetLongLiveToken:r})=>window.FB.login(a=>{var i;if(e([]),a&&a.error){n();return}a.status==="connected"&&a!=null&&a.authResponse&&(s(a.authResponse),r(((i=a==null?void 0:a.authResponse)==null?void 0:i.accessToken)||""))},{scope:Mf}),Vf=()=>{var ne;const[e,n]=c.useState(null),[s,r]=c.useState(null),[a,i]=c.useState(null),[o,l]=c.useState(!1),[u,d]=c.useState([]),[p,h]=c.useState([]),[m,f]=c.useState([]),[C,E]=c.useState(!1),[b,w]=c.useState(null),I=$=>{$||(E("Saved"),as(3e3,()=>E(!1)))},{isLoading:T,refetch:j,data:L}=ou({onSuccess:({facebookData:$})=>{const{longLivedAccessToken:z,facebookDetails:K,facebookPages:re}=$||{};z&&!e&&n(z),K&&!a&&i(K),re&&!u.length&&d(re)}}),{isFetching:_,refetch:N}=dx({onSuccess:({facebookOptions:$})=>{h(($==null?void 0:$.pages_checked)||[]),f(($==null?void 0:$.ig_accounts_checked)||[])}}),{postFacebookClearLogin:A,isLoading:R}=fx({onSuccess:()=>{i(null),d([])}}),{postFacebookData:V}=Cx(),{postFacebookOptions:O}=yx({}),{getFacebookAccessToken:B}=cx({onSuccess:({accessToken:$})=>{$&&r($)}}),D=($=!1,z={})=>{const K=Of({fbAppToken:s,facebookLongLiveToken:e,facebookPages:u,facebookDetails:a,authResponse:b,initialData:z});K&&V(K,{onSuccess:()=>{$&&I(C)}}),O({pages_checked:p,ig_accounts_checked:m},{onSuccess:()=>{$&&I(C)}})},M=()=>{window.FB.logout(),n(null),w(null),h([]),f([]),E(!1),l(!1),A()},F={facebookLongLiveToken:e,setPagesLoading:l,setFacebookPages:d,sessionLogout:M,sendFacebookData:D,setFacebookLongLiveToken:n,setFacebookDetails:i,facebookPages:u},{postFacebookShortLiveTokenToGetLongLiveToken:W}=Ex({onSuccess:({accessToken:$})=>{Uf(F,$)}});return c.useEffect(()=>{Zh(),B(),j(),N()},[]),{signInWithFacebook:()=>Hf({setFacebookPages:d,sessionLogout:M,setAuthResponse:w,postFacebookShortLiveTokenToGetLongLiveToken:W}),getFBPages:($,z)=>yu(F,$,z),onGetInstagramDetails:$=>Bf(F,$),sessionLogout:M,getNextPage:Cu,sendFacebookData:()=>D(!0),toggleCheckSelect:$=>{h(z=>z.includes($)?z.filter(K=>K!==$):[...z,$])},toggleCheckInstagramSelect:$=>{if(!$)return null;f(z=>z.includes($)?z.filter(K=>K!==$):[...z,$])},getFacebookAccessToken:B,postFacebookShortLiveTokenToGetLongLiveToken:W,postFacebookOptions:O,postFacebookData:V,refetchData:j,isFetchingData:T,refetchOptions:N,isFetchingOptions:_,postFacebookClearLogin:A,isClearLoginLoading:R,authResponse:b,optionsSavedStatus:C,checkedInstagramPages:m,checkedPages:p,facebookPages:u,pagesLoading:o,facebookDetails:a,fbAppToken:s,facebookLongLiveToken:e,isUnauthorized:(ne=L==null?void 0:L.facebookData)==null?void 0:ne.unauthorized}},Bn=(e,n,s)=>{const{featureFlags:r=[]}=gl(),{isEnabled:a,value:i}=c.useMemo(()=>{const o=r.find(l=>l.uniqueKey===e);return o!=null&&o.enabled?{isEnabled:!0,value:n}:{isEnabled:!1,value:s}},[r,n,s]);return i||S2(i)?[i,a]:[a]},Ff=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M2 8C2 9.34178 10.1062 13 12 13C13.8938 13 22 9.34178 22 8C22 6.65822 13.8938 3 12 3C10.1062 3 2 6.65822 2 8Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M6 11L6.24545 16.6299C6.25036 16.7426 6.26256 16.8555 6.29528 16.9635C6.39639 17.2973 6.58275 17.6006 6.86707 17.8044C9.09162 19.3985 14.9084 19.3985 17.1329 17.8044C17.4173 17.6006 17.6036 17.2973 17.7047 16.9635C17.7374 16.8555 17.7496 16.7426 17.7546 16.6299L18 11",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M21.25 9.5C21.25 9.08579 20.9142 8.75 20.5 8.75C20.0858 8.75 19.75 9.08579 19.75 9.5H20.5H21.25ZM19.0714 19.7634L19.8011 19.9368V19.9368L19.0714 19.7634ZM21.9286 19.7634L22.6583 19.5901V19.5901L21.9286 19.7634ZM20.5 9.5H19.75V16.5072H20.5H21.25V9.5H20.5ZM19.0714 19.7634L19.8011 19.9368C19.946 19.327 20.1952 18.7697 20.4619 18.2478C20.7062 17.7696 21.0263 17.2164 21.1976 16.7827L20.5 16.5072L19.8024 16.2317C19.6655 16.5784 19.4364 16.9581 19.1261 17.5653C18.8382 18.1288 18.5272 18.8095 18.3417 19.5901L19.0714 19.7634ZM21.9286 19.7634L22.6583 19.5901C22.4728 18.8095 22.1618 18.1288 21.8739 17.5653C21.5636 16.9581 21.3345 16.5784 21.1976 16.2317L20.5 16.5072L19.8024 16.7827C19.9737 17.2164 20.2938 17.7696 20.5381 18.2478C20.8048 18.7697 21.054 19.327 21.1989 19.9368L2
91.9286 19.7634ZM20.8154 21V20.25H20.1846V21V21.75H20.8154V21ZM19.0714 19.7634L18.3417 19.5901C18.2184 20.1094 18.1443 20.7964 18.6335 21.287C18.8626 21.5168 19.1451 21.6247 19.3939 21.6799C19.6419 21.7349 19.914 21.75 20.1846 21.75V21V20.25C19.9563 20.25 19.8101 20.2358 19.7186 20.2155C19.628 20.1954 19.6499 20.1821 19.6957 20.228C19.7534 20.2858 19.7542 20.3398 19.7514 20.3095C19.747 20.2626 19.7504 20.1504 19.8011 19.9368L19.0714 19.7634ZM21.9286 19.7634L21.1989 19.9368C21.2496 20.1504 21.253 20.2626 21.2486 20.3095C21.2458 20.3398 21.2466 20.2858 21.3043 20.228C21.3501 20.1821 21.372 20.1954 21.2814 20.2155C21.1899 20.2358 21.0437 20.25 20.8154 20.25V21V21.75C21.086 21.75 21.3581 21.7349 21.6061 21.6799C21.8549 21.6247 22.1374 21.5168 22.3665 21.287C22.8557 20.7964 22.7816 20.1094 22.6583 19.5901L21.9286 19.7634ZM20.8154 21V20.25H20.1846V21V21.75H20.8154V21ZM19.0714 19.7634L18.3417 19.5901C18.2184 20.1094 18.1443 20.7964 18.6335 21.287C18.8626 21.5168 19.1451 21.6247 19.3939 21.6799C19.6419 21.7349 19.914 21.75 20.1846 21.75V21V20.25C19.9563 20.25 19.8101 20.2358 19.7186 20.2155C19.628 20.1954 19.6499 20.1821 19.6957 20.228C19.7534 20.2858 19.7542 20.3398 19.7514 20.3095C19.747 20.2626 19.7504 20.1504 19.8011 19.9368L19.0714 19.7634ZM21.9286 19.7634L21.1989 19.9368C21.2496 20.1504 21.253 20.2626 21.2486 20.3095C21.2458 20.3398 21.2466 20.2858 21.3043 20.228C21.3501 20.1821 21.372 20.1954 21.2814 20.2155C21.1899 20.2358 21.0437 20.25 20.8154 20.25V21V21.75C21.086 21.75 21.3581 21.7349 21.6061 21.6799C21.8549 21.6247 22.1374 21.5168 22.3665 21.287C22.8557 20.7964 22.7816 20.1094 22.6583 19.5901L21.9286 19.7634Z",fill:"currentColor"})),$f=e=>c.createElement("svg",{width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.0001 1.75C7.25605 1.75 4.22517 4.77442 4.22517 8.5C4.22508 9.58243 4.1717 10.7967 3.40615 11.9242L3.40376 11.9277C3.27789 12.1109 3.16739 12.261 3.06324 12.4025C2.92452 12.591 2.79706 12.7642 2.6595 12.9797C2.44626 13.3138 2.31401 13.6034 2.27139 13.8827C2.13344 14.7871 2.71025 15.5026 3.71914 15.9206C7.99811 17.6932 14.002 17.6932 18.281 15.9206C19.2899 15.5026 19.8667 14.7871 19.7287 13.8827C19.6861 13.6034 19.5538 13.3138 19.3406 12.9797C19.203 12.7642 19.0756 12.591 18.9369 12.4025C18.8327 12.261 18.7222 12.1109 18.5963 11.9277L18.5939 11.9242C17.8284 10.7967 17.775 9.58249 17.7749 8.50006C17.7749 4.77448 14.7441 1.75 11.0001 1.75ZM2.72518 8.49994C2.72521 3.94128 6.43233 0.25 11.0001 0.25C15.5678 0.25 19.2749 3.94131 19.2749 8.5C19.275 9.56042 19.3461 10.3606 19.8338 11.08C19.9016 11.1785 19.9916 11.302 20.0899 11.4368C20.2606 11.6711 20.4565 11.9399 20.605 12.1727C20.8673 12.5836 21.1235 13.0792 21.2115 13.6565C21.4989 15.5402 20.1743 16.7599 18.855 17.3063C17.8726 17.7133 16.8111 18.0342 15.7039 18.2691C15.1297 20.2895 13.2302 21.75 11 21.75C8.76993 21.75 6.87038 20.2895 6.29625 18.2691C5.18902 18.0342 4.12747 17.7133 3.14506 17.3063C1.82584 16.7599 0.501195 15.5402 0.788549 13.6565C0.876625 13.0791 1.13283 12.5836 1.39507 12.1727C1.54365 11.9399 1.73953 11.6711 1.91027 11.4368C2.00857 11.3019 2.09853 11.1785 2.16634 11.0799C2.65395 10.3606 2.72508 9.56028 2.72518 8.49994ZM8.03605 18.5632C8.60757 19.5619 9.71359 20.25 11 20.25C12.2865 20.25 13.3925 19.5619 13.964 18.5632C12.0155 18.8123 9.98459 18.8123 8.03605 18.5632Z",fill:"currentColor"})),Gf=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.4698 1.25782L12.6553 1.25782C12.972 1.25778 13.2696 1.25774 13.519 1.28627C13.7969 1.31807 14.0892 1.3916 14.3619 1.58855C14.6345 1.78542 14.7963 2.0397 14.9141 2.29341C15.0199 2.52128 15.1139 2.80398 15.2141 3.10512L15.2248 3.13723L15.553 4.11747C15.6477 4.35625 15.8134 4.55976 16.0273 4.7005L16.3297 4.87498C16.5828 5.00091 16.871 5.03679 17.1471 4.97683L18.348 4.63858L18.3827 4.62874C18.7107 4.53561 19.0174 4.44852 19.2815 4.40659C19.5753 4.35995 19.8967 4.354 20.229 4.48915C20.5611 4.62426 20.7872 4.85276 20.9652 5.09105C21.1253 5.30543 21.2846 5.58194 21.45
95 5.87785L21.9851 6.79775C22.1448 7.0748 22.2946 7.33479 22.3951 7.56693C22.5071 7.82544 22.5897 8.11728 22.5543 8.45385C22.5189 8.79046 22.3775 9.05876 22.2142 9.28833C22.0676 9.49447 21.867 9.71754 21.6532 9.95521L21.6308 9.98013L21.6295 9.9816L20.6184 11.112C20.492 11.2833 20.3599 11.6555 20.3599 12.0077C20.3599 12.3602 20.492 12.7323 20.6183 12.9035L21.6308 14.0354L21.6533 14.0604C21.867 14.298 22.0676 14.5211 22.2142 14.7272C22.3775 14.9568 22.5189 15.2251 22.5543 15.5617C22.5897 15.8983 22.5071 16.1901 22.3951 16.4486C22.2946 16.6808 22.1447 16.9408 21.985 17.2179L21.4551 18.1377C21.2846 18.4336 21.1253 18.7101 20.9652 18.9245C20.7872 19.1628 20.5612 19.3913 20.2289 19.5264C19.8966 19.6615 19.5753 19.6556 19.2815 19.6089C19.0174 19.567 18.7106 19.4799 18.3826 19.3868L18.348 19.3769L17.1471 19.0387C16.871 18.9787 16.5827 19.0146 16.3296 19.1406L16.0273 19.3151C15.8134 19.4558 15.6477 19.6593 15.553 19.898L15.2252 20.877L15.2141 20.9105C15.1139 21.2117 15.0199 21.4944 14.9141 21.7222C14.7963 21.9759 14.6345 22.2302 14.3619 22.4271C14.0892 22.624 13.7969 22.6976 13.519 22.7294C13.2696 22.7579 12.9719 22.7579 12.6552 22.7578H11.4698C11.1531 22.7579 10.8555 22.7579 10.6061 22.7294C10.3282 22.6976 10.0359 22.624 9.76314 22.4271C9.49053 22.2302 9.32874 21.9759 9.21094 21.7222C9.10514 21.4943 9.01112 21.2116 8.91098 20.9105L8.89985 20.877L8.57206 19.898C8.47735 19.6593 8.31166 19.4558 8.0978 19.3151L7.79548 19.1406C7.54234 19.0146 7.25404 18.9787 6.97796 19.0387L5.77713 19.3769L5.74246 19.3868C5.41444 19.4799 5.1077 19.567 4.84357 19.6089C4.54981 19.6556 4.22844 19.6615 3.89613 19.5264C3.56393 19.3913 3.33788 19.1628 3.15991 18.9245C2.99978 18.7101 2.84049 18.4336 2.67003 18.1377L2.65132 18.1052L2.14002 17.2178C1.98032 16.9408 1.83046 16.6808 1.72993 16.4486C1.618 16.1901 1.53542 15.8983 1.57078 15.5617C1.60614 15.2251 1.74758 14.9568 1.91085 14.7272C2.05745 14.5211 2.25809 14.298 2.47185 14.0603L2.49427 14.0354L2.49559 14.0339L3.50674 12.9035C3.63313 12.7322 3.76522 12.3602 3.76522 12.0077C3.76522 11.6555 3.6331 11.2833 3.50672 11.1121L2.49558 9.9816L2.49427 9.98013L2.47185 9.95521C2.25808 9.71754 2.05745 9.49447 1.91085 9.28833C1.74758 9.05876 1.60614 8.79046 1.57078 8.45386C1.53542 8.11728 1.61799 7.82544 1.72993 7.56693C1.83046 7.33478 1.98032 7.07478 2.14002 6.79771C2.14591 6.78748 2.15182 6.77723 2.15774 6.76695L2.65133 5.91035C2.65758 5.89951 2.66382 5.88869 2.67003 5.87789C2.8405 5.58196 2.99979 5.30544 3.15992 5.09105C3.33789 4.85276 3.56393 4.62426 3.89612 4.48915C4.22843 4.354 4.54979 4.35995 4.84354 4.40659C5.10768 4.44852 5.41441 4.53561 5.74242 4.62873C5.75415 4.63206 5.76591 4.6354 5.77769 4.63874L6.97801 4.97683C7.25403 5.03679 7.54225 5.00091 7.79536 4.87498L8.09775 4.7005C8.31165 4.55976 8.47737 4.35626 8.57209 4.11748L8.89985 3.13861C8.9035 3.12765 8.90735 3.11607 8.91098 3.10516C9.01112 2.80401 9.10514 2.52129 9.21094 2.29341C9.32874 2.0397 9.49054 1.78542 9.76314 1.58855C10.0359 1.3916 10.3281 1.31807 10.6061 1.28627C10.8555 1.25774 11.1531 1.25778 11.4698 1.25782ZM10.6413 2.8046L10.6405 2.80531C10.6405 2.80531 10.6371 2.80875 10.6321 2.81549C10.6213 2.83007 10.601 2.8615 10.5715 2.92509C10.506 3.06598 10.4384 3.26573 10.3232 3.61212L9.9836 4.62623L9.9778 4.64134C9.76766 5.1892 9.38793 5.65557 8.89389 5.97199L8.87925 5.98136L8.5115 6.19355L8.49525 6.2019C7.919 6.49797 7.25674 6.58058 6.62547 6.435L6.60796 6.43097L5.36901 6.082C4.99228 5.97509 4.7731 5.91419 4.60833 5.88803C4.53382 5.8762 4.49394 5.8758 4.47497 5.87695C4.46625 5.87748 4.46184 5.87844 4.46184 5.87844L4.46062 5.87894C4.46062 5.87894 4.45668 5.88141 4.44999 5.88718C4.43545 5.89973 4.40701 5.928 4.36172 5.98864C4.26165 6.12263 4.14675 6.31955 3.95101 6.65925L3.45742 7.51585C3.2738 7.83451 3.16865 8.01928 3.10642 8.16298C3.07834 8.22784 3.06827 8.26425 3.06457 8.28229C3.06286 8.29064 3.06254 8.29566 3.06254 8.29566L3.06257 8.29713L3.06284 8.29856C3.06284 8.29856 3.06419 8.30337 3.06759 8.31116C3.07493 8.32798 3.09232 8.36145 3.13325 8.419C3.22394 8.54652 3.36514 8.70526 3.61097 8.97865L3.61229 8.98011L4.65863 10.1499L4.67286 10.1679C5.04727 10.6419 5.26522 11.3703 5.26522 12.0077C5.26522 12.6452 5.04736 13.3735 4.67289 13.8476L4.65866 13.8656L3.61229 15.0354L3.61097 15.0369C3.36514 15.3103 3.22394 15.469 3.13325 15.5966C3.09232 15.6541 3.07494 15.6876 3.06759 15.7044C3.06419 15.7122 3.06284 15.717 3.06284 15.717L3.06257 15.7184L3.06254 15.7199C3.06254 15.7199 3.06286 15.7249 3.06457 15.7333C3.06827 15.7513 3.07834 15.7877 3.10643 15.8526C3.16865 15.9963 3.2738 16.1811 3.45742 16.4997L3.95099 17.3563C4.14673 17.696 4.26163 17.8929 4.36171 18.0269C4.407 18.0875 4.43544 18.1158 4.44999 18.1284C4.45668 18.1341 4.46062 18.1366 4.46062 18.1366L4.46183 18.1371C4.46183 18.1371 4.46624 18.1381 4.47496 18.138
96C4.49393 18.1397 4.53381 18.1393 4.60833 18.1275C4.7731 18.1013 4.99228 18.0404 5.36902 17.9335L6.6079 17.5845L6.62541 17.5805C7.25679 17.4349 7.91919 17.5176 8.49551 17.8137L8.51175 17.8221L8.87945 18.0343L8.89408 18.0437C9.38802 18.3601 9.76767 18.8264 9.97777 19.3742L9.98357 19.3893L10.3232 20.4035C10.4384 20.7499 10.506 20.9497 10.5715 21.0906C10.601 21.1541 10.6213 21.1856 10.6321 21.2001C10.6371 21.2069 10.6405 21.2103 10.6405 21.2103L10.6413 21.211C10.6413 21.211 10.6464 21.2136 10.6542 21.2162C10.6712 21.2218 10.7072 21.2311 10.7766 21.2391C10.9304 21.2567 11.1407 21.2578 11.5052 21.2578H12.6199C12.9844 21.2578 13.1947 21.2567 13.3485 21.2391C13.4179 21.2311 13.4538 21.2218 13.4709 21.2162C13.4787 21.2136 13.4829 21.2115 13.4829 21.2115L13.4846 21.2103C13.4846 21.2103 13.4879 21.2069 13.493 21.2001C13.5038 21.1856 13.5241 21.1541 13.5536 21.0906C13.619 20.9497 13.6867 20.7499 13.8019 20.4035L13.8024 20.4021L14.1415 19.3893L14.1473 19.3742C14.3574 18.8264 14.7371 18.3601 15.231 18.0437L15.2456 18.0343L15.6133 17.8221L15.6296 17.8137C16.2059 17.5176 16.8683 17.4349 17.4997 17.5805L17.5172 17.5845L18.7561 17.9335C19.1328 18.0404 19.352 18.1013 19.5168 18.1275C19.5913 18.1393 19.6311 18.1397 19.6501 18.1386C19.6588 18.1381 19.6632 18.1371 19.6632 18.1371L19.6645 18.1366C19.6645 18.1366 19.6684 18.1341 19.6751 18.1284C19.6896 18.1158 19.7181 18.0875 19.7634 18.0269C19.8634 17.8929 19.9784 17.696 20.1741 17.3563L20.6677 16.4997C20.8513 16.1811 20.9564 15.9963 21.0187 15.8526C21.0467 15.7877 21.0568 15.7513 21.0605 15.7333C21.0622 15.7249 21.0625 15.7199 21.0625 15.7199L21.0625 15.7184L21.0622 15.717C21.0622 15.717 21.0609 15.7122 21.0575 15.7044C21.0501 15.6876 21.0328 15.6541 20.9918 15.5966C20.9011 15.469 20.7599 15.3103 20.5141 15.0369L19.4664 13.8656L19.4522 13.8476C19.0777 13.3735 18.8599 12.6452 18.8599 12.0077C18.8599 11.3703 19.0778 10.6419 19.4522 10.1679L19.4665 10.1499L20.5128 8.98012L20.5141 8.97865C20.7599 8.70526 20.9011 8.54652 20.9918 8.419C21.0328 8.36145 21.0501 8.32798 21.0575 8.31116C21.0609 8.30337 21.0622 8.29856 21.0622 8.29856L21.0625 8.29714L21.0625 8.29566C21.0625 8.29566 21.0622 8.29064 21.0605 8.28229C21.0568 8.26425 21.0467 8.22784 21.0187 8.16298C20.9564 8.01928 20.8513 7.83451 20.6677 7.51585L20.1741 6.65925C19.9783 6.31955 19.8634 6.12263 19.7634 5.98864C19.7181 5.928 19.6896 5.89973 19.6751 5.88718C19.6684 5.88141 19.6645 5.87894 19.6645 5.87894L19.6632 5.87844C19.6632 5.87844 19.6588 5.87748 19.6501 5.87695C19.6311 5.8758 19.5913 5.8762 19.5167 5.88803C19.352 5.91419 19.1328 5.97509 18.7561 6.082L17.5171 6.43097L17.4996 6.435C16.8683 6.58058 16.2061 6.49797 15.6298 6.2019L15.6136 6.19355L15.2458 5.98136L15.2312 5.97199C14.7372 5.65557 14.3574 5.1892 14.1473 4.64134L14.1415 4.62623L13.8019 3.61212C13.6867 3.26573 13.619 3.06598 13.5536 2.92509C13.5241 2.8615 13.5038 2.83007 13.493 2.81549C13.488 2.80875 13.4846 2.80531 13.4846 2.80531L13.4837 2.8046C13.4837 2.8046 13.4787 2.80203 13.4709 2.79942C13.4538 2.79379 13.4179 2.78449 13.3485 2.77655C13.1947 2.75896 12.9844 2.75782 12.6199 2.75782H11.5052C11.1407 2.75782 10.9304 2.75896 10.7766 2.77655C10.7072 2.78449 10.6712 2.79379 10.6542 2.79942C10.6464 2.80203 10.6413 2.8046 10.6413 2.8046Z",fill:"currentColor"}),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0195 9.25001C10.5008 9.25001 9.26955 10.4812 9.26955 12C9.26955 13.5188 10.5008 14.75 12.0195 14.75C13.5383 14.75 14.7695 13.5188 14.7695 12C14.7695 10.4812 13.5383 9.25001 12.0195 9.25001ZM7.76955 12C7.76955 9.6528 9.67234 7.75001 12.0195 7.75001C14.3668 7.75001 16.2695 9.6528 16.2695 12C16.2695 14.3472 14.3668 16.25 12.0195 16.25C9.67234 16.25 7.76955 14.3472 7.76955 12Z",fill:"currentColor"})),zf=({checkFeature:e,isTeamShown:n,isTeamGroupsShown:s,isTeamSettingsShown:r,isWhiteLabelShown:a,isTrial:i,isBillingShown:o,isHelpShown:l,isNotificationShown:u})=>[{id:"sub_dashboard",title:"Dashboard",noArrow:!0,linkTo:"/dashboard/this-month",isHideList:!0,tabs:[{to:"/dashboard/this-month",title:"Dashboard",id:"sub_dashboard",activeRoutes:["/dashboard"]}]},{id:"sub_sales_explorer",title:"Finder",noArrow:!0,linkTo:"/lead-finder",tabs:[]},{id:"nav_crm",title:"Contacts",tabs:[{to:"/contacts/connections",title:"Connections",id:"sub_connections"},{to:"/contacts/leads",title:"Leads",id:"sub_leads"}
9,{to:"/contacts/blacklist",title:"Excluded",id:"sub_blacklist"},{to:"/invitations",title:"Invitations",id:"sub_invitations"},{to:"/tags",title:"Tag Manager",id:"sub_tags"}]},{id:"nav_campaigns",title:"Campaigns",tabs:[{to:"/campaign/activity",title:"Activity",id:"sub_activity"},{to:`/campaign/stats/${ue.LINKEDIN}`,title:"LinkedIn",id:"sub_linkedin"},{to:`/campaign/stats/${ue.EMAIL}`,title:"Email",id:"sub_email"},{to:`/campaign/stats/${ue.TWITTER}`,title:"X (Twitter)",id:"sub_twitter"},{to:`/campaign/stats/${ue.MULTICHANNEL}`,title:"Multi-Channel",id:"sub_multi"},{to:`/campaign/stats/${ue.INMAIL}`,title:"InMail",id:"sub_inmail"},{to:`/campaign/stats/${ue.GROUP}`,title:"Groups",id:"sub_groups"},{to:`/campaign/stats/${ue.EVENT}`,title:"Events",id:"sub_events"},{to:`/campaign/stats/${ue.COMPANY}`,title:"Company",id:"sub_company"},{to:"/settings/greetings",title:"Greetings",show:e(X.greetings)[0],id:"sub_greetings"},{to:"/templates",title:"Message Templates",id:"sub_templates"},{to:"/sequence-templates",title:"Campaign Templates",id:"sub_sequence_templates"}]},{id:"nav_conversations",title:"Inbox",tabs:[{to:"/campaign/replies",title:"Replies",id:"sub_replies"},{to:"/inbox",title:"Inbox",id:"sub_inbox"}]},{id:"nav_solcials",title:"Social",tabs:[{to:"/posts",title:"Schedule Posts",id:"sub_posts"},{to:"/trends",title:"Trending Topics",id:"sub_trends"}]},{id:"nav_analytics",title:"Team",show:n,tabs:[{to:"/team/stats",title:"Team Stats",show:n,id:"sub_team_stats"},{to:"/team/manage-team",title:"Members",show:n,id:"sub_team_members"},{to:"/team/groups",title:"Groups",show:s,id:"sub_team_groups"},{to:"/team/settings",title:"Permissions",show:r,id:"sub_team_permissions"},{to:"/settings/white-label",title:"White Label",show:a,id:"sub_white_label"}]},{icon:Gf,id:"nav_settings",noArrow:!0,moveToEnd:!0,tabs:[{to:"/settings/user-profile",title:"User Profile",id:"sub_user_profile"},{to:i?"/billing/subscription/plans":"/billing/subscription",title:"Billing",show:o,id:"sub_billing",activeRoutes:["/billing"]},{to:"/integrations",title:"Integrations",id:"sub_integrations"},{to:"/settings/work-hours",title:"Work Hours",id:"sub_work_hours"},{to:"/settings/daily-limits",title:"Daily Limits",id:"sub_daily_limit"},{to:"/settings/auto-withdrawals",title:"Auto Withdrawal",id:"sub_auto_withdrawal"},{to:"/notification-settings",title:"Notification Settings",id:"sub_notification_settings",show:!0}]},{icon:Ff,id:"nav_help",show:l,noArrow:!0,badge:t.jsx(g,{component:"span",sx:{position:"absolute",top:-5,right:-22,display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:24,height:14,px:"4px",borderRadius:"100px",bgcolor:"#1B8D2D"},children:t.jsx(jt,{component:"span",sx:{fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:10,lineHeight:1.4,letterSpacing:0,textTransform:"uppercase",color:"#FFFFFF"},children:"NEW"})}),tabs:[{to:"/video-library",title:"Video Library",id:"sub_video_library",show:!0},{to:b5,title:"Help Center",id:"sub_help_center",external:!0,show:!0}]},{icon:$f,id:"nav_notifications",show:u,noArrow:!0,tabs:[]}],La=()=>{const e=mt(),{userMe:n}=st(),{whitelabel:s}=Je(),{teamUser:r}=fe(D=>D.team.data)??{},a=(r==null?void 0:r.role)??Kt.MEMBER,i=!!(r!=null&&r.groupId),o=a==="owner",l=a==="admin",{checkFeature:u,isTrial:d,isFree:p}=We(),{billingInfo:h}=ot(),m=u(X.teamStats)[0]&&(o||l),f=u(X.teamGroups)[0]&&o,C=u(X.teamGroup)[0]&&l&&i,E=u(X.manageTeam)[0]&&(o||l&&!i),b=u(X.templatesTeam)[0],w=u(X.templatesLibrary)[0],I=u(X.teamSettings)[0]&&o,T=o&&!s.isWhiteLabelUser,j=(n==null?void 0:n.isAlfredAdmin)||!s.isWhiteLabelUser&&o,L=(n==null?void 0:n.isAlfredAdmin)||o||!s.isWhiteLabelUser,_=u(X.greetings)[0],N=u(X.sequenceTemplates)[0],A=o&&(h==null?void 0:h.canUpdateSeats),R=!0,V=o||l,O=c.useMemo(()=>zf({checkFeature:u,isTeamShown:m,isTeamGroupsShown:f,isTeamSettingsShown:I,isWhiteLabelShown:j,isTrial:d,isBillingShown:T,isHelpShown:L,isNotificationShown:R}),[u,m,f,I,j,d,T,L,R]),B=c.useCallback(()=>O.findIndex(D=>D!=null&&D.linkTo&&new RegExp(D.linkTo).test(e.pathname)?!0:D.tabs.find(({to:M,activeRoutes:F=[]})=>new RegExp(M).test(e.pathname)||F.some(W=>new RegExp(W).test(e.pathname)))),[e.pathname,O]);return{navigationConfig:O,defineActive:B,isTrial:d||p,isTeamShown:m,isTeamGroupsShown:f,isManageGroupShown:C,isManageTeamShown:E,isTeamSettingsShown:I,isTeamTemplatesShow:b,isLibraryTemplatesShow:w,isBillingShown:T,isWhiteLabelShown:j,isGreetingsShown:_,isSequenceTemplateShown:N,isEditPlanShown:A,isInvitedMemberShow:V,isNotificationShown:R,isHelpShown:L}},vl=()=>{const{teamMembers:e}=Ll(),{teamInvites:n=[]}=bl();return e&&(n==null?void 0:n.filter(s=>!(s!=null&&s.isRejected)).length)+(e==null?void 0:e.total)||1},Wf=()=>{var N;const{boot:e,...n}=Ia(),{team:s,user:r}=fe(A=>A),a=s.data,{data:i,isLoading:o}=lu({enabled:r==null?void 0:r.isAuth}),{userReferral:l,isLoading:u}=s7(),{userMe:d,isLoading:p}=st(),{billingInfo:h,isLoading:m}=ot(),{teamMembers:f,isLoading:C}=Ll({teamId:(a==null?void 0:a.id)??0},{enabled:!!(a!=null&&a.id)}),{teamInvites:E,isLoading:b}=bl(),w=[p,o,u,b,m,C].some(A=>A),I=A=>A?"Yes":"No";if(w||r.isImpersonate)return{...n};const T=d!=null&&d.hasLinkedInPremium?"Premium":"Basic",j={name:d==null?void 0:d.name,email:d==null?void 0:d.email,userHash:i==null?void 0:i.intercomHash,customAttributes:{user_id:d==null?void 0:d.id,last_name:d==null?void 0:d.lastName,first_name:d==null?void 0:d.firstName,created_at:Math.floor(new Date((d==null?void 0:d.createdAt)??"").getTime()/1e3),Use:d==null?void 0:d.whoWillBeUsing,Referral:d==null?void 0:d.howYouHeard,team_role:(N=a==null?void 0:a.teamUser)==null?void 0:N.role,Experience:d==null?void 0:d.haveYouUsedSocialSellingTools,"Email Verified":I(d==null?void 0:d.isEmailVerified),Company:a==null?void 0:a.name,connections:d==null?void 0:d.linkedInConnections,"Pending Invites":d==null?void 0:d.linkedInPendingInvites,Bot:I(d==null?void 0:d.isCloudBotEnabled),bot_version:d!=null&&d.isCloudBotEnabled?"Cloud":"",Linkedin:d!=null&&d.isLinkedInLoginValid?"Connected":"Not Connected","Li Plan":d!=null&&d.hasLinkedInSalesNavigator?"Sales Navigator":T,"Trial Extended":I(a==null?void 0:a.isTrialExtended),Subscribed:I(h==null?void 0:h.hasPaidPlan),"Number of seats":a==null?void 0:a.seats,ltd:I(h==null?void 0:h.hasLifetimeDeal),leads:i==null?void 0:i.leads,Campaigns:i==null?void 0:i.campaigns,Replies:i==null?void 0:i.totalReplies,Accepted:i==null?void 0:i.invitesAccepted,"Team Members":f==null?void 0:f.total,"Invites Sent":E==null?void 0:E.length,"Connections Rate":`${i==null?void 0:i.connectionRate}%`,"Referral Url":l==null?void 0:l.referralUrl,"Alfred url":`${location.origin}/admin/${d==null?void 0:d.id}`}};(a==null?void 0:a.plan)===x.BUSINESS&&(j.customAttributes={...j.customAttributes||{},"Plan Version":a==null?void 0:a.planVersion});const L={hideDefaultLauncher:!0},_={...j,...L,customAttributes:Mp(j.customAttributes,A=>A===null?"None":A)};return e(r!=null&&r.isAuth?_:L),{...n}},qf=(e,n)=>{const[s,r]=c.useState(!0);return c.useEffect(()=>{r(!0)},[n]),c.useEffect(()=>{e||r(!1)},[e]),s&&e},X1="trial-user",Zf=()=>{const e=mt(),[n,s]=ns(),{isTrialStarted:r,isTrial:a}=We();c.useLayoutEffect(()=>{n.has(X1)||!(a&&r)||(n.set(X1,"true"),s(n,{replace:!0,state:e.state}))},[n,e.pathname,e.search])},Kn=["get-user-profile"],Yf=[408,504,524],Eu=e=>{e.length&&e.forEach(clearInterval)},Kf=({email:e,password:n,hasCountry:s,hasCustomProxy:r})=>r?!!(e&&n):!!(e&&n&&s),Qf=e=>e?"Please enter both an email and password":"Please enter both an email and password and select country",Xf=e=>`Please reset your LinkedIn password and then proceed to reconnect ${e}.`,Jf=({err:e,companyName:n,queryClient:s,pollCloudBotStatus:r,setErrorMessage:a,setProxyConnectionErrorMessage:i})=>{if(d0(e)){i(c0),a(""),s.invalidateQueries({queryKey:Kn});return}if(Yf.includes(Number(e.statusCode))){r();return}if(Number(e.statusCode)===425){a(e.message.replace("{appName}",n)),as(5e3,()=>{a(""),r()});return}i(""),a(e.message),s.invalidateQueries({queryKey:Kn})},eC=({data:e,pollIntervals:n,isPollingCloudBotStatus:s,setProxyConnectionErrorMessage:r,setErrorMessage:a,setIsPollingCloudBotStatus:i,checkLILoginIsInProgress:o})=>{if(o(e))return;const l=d0(e==null?void 0:e.cloudBotStatus);r(l?c0:""),l&&a(""),Eu(n),s&&!l&&a(Jh(e==null?void 0:e.cloudBotStatus)),i(!1)},tC=({setIsPollingCloudBotStatus:e,setPollIntervals:n,queryClient:s})=>()=>{e(!0),n(r=>[...r,hh(5e3,()=>s.invalidateQueries({queryKey:Kn}))])}
9,nC=({getValues:e,hasCustomProxy:n,updateLinkedInCredentials:s,dispatch:r})=>{const{email:a,password:i,countryCode:o}=e(),l=!!(o!=null&&o.value);if(Kf({email:a,password:i,hasCountry:l,hasCustomProxy:n})){s({email:a,password:i,...n?{}:{countryCode:o==null?void 0:o.value}});return}r(Z({message:Qf(n),type:"info",autoCloseTime:3e3}))},sC=({values:e,userMe:n,postLinkedInVerifyCode:s})=>{var r;s({code:e.verificationCode,browserId:String((r=n==null?void 0:n.cloudBotStatus)==null?void 0:r.browserId)})},rC=({dispatch:e,deleteLinkedInCredentials:n})=>{e(Ne({headerText:"Are you sure you want to remove LinkedIn credentials ?",descriptionText:"This means that your LinkedIn Campaigns, Connections and Inbox feature stop to working",onConfirm:()=>{n()}}))},aC=({data:e,companyName:n,setErrorMessage:s,setProxyConnectionErrorMessage:r,dispatch:a})=>{var i;((i=e==null?void 0:e.data)==null?void 0:i.error)==="RESET_PASSWORD_VIEW"?(a(Tt({type:te.LINKEDIN_PASSWORD_RESET})),s(Xf(n))):s(""),r("")},iC=({setValue:e,companyName:n,pollCloudBotStatus:s,setErrorMessage:r,setProxyConnectionErrorMessage:a})=>{const i=ce(),o=P(),l=b=>Jf({err:b,companyName:n,queryClient:i,pollCloudBotStatus:s,setErrorMessage:r,setProxyConnectionErrorMessage:a}),{updateLinkedInCredentials:u,isLoading:d}=wx({onMutate:async()=>{o(Ct({type:te.LINKEDIN_ERROR})),r(""),a("")},onSuccess:async()=>{e("password",""),a(""),await i.invalidateQueries({queryKey:Kn})},onError:l}),{postLinkedInVerifyCode:p,isLoading:h}=bx({onMutate:()=>{r(""),a(""),e("verificationCode","")},onSuccess:async b=>{await i.invalidateQueries({queryKey:Kn}),aC({data:b,companyName:n,setErrorMessage:r,setProxyConnectionErrorMessage:a,dispatch:o})},onError:l}),{deleteLinkedInCredentials:m,isLoading:f}=ox({onMutate:()=>{r(""),a("")},onSuccess:async()=>{e("password",""),await i.invalidateQueries({queryKey:Kn}),o(Ct({type:te.LI_INVITES_RESTRICTION}))}}),{checkConnection:C,isLoading:E}=ix({onError:async()=>{await i.invalidateQueries({queryKey:Kn}),o(Z({type:"error",model:"alert",message:"NOT Connected. Please try again, if don't work, please say user to connect linkedin credentials again!"}))},onSuccess:({name:b})=>{o(Z({type:"success",model:"alert",message:`CONNECTED FINE: Linkedin name is --> ${b}`}))}});return{updateLinkedInCredentials:u,postLinkedInVerifyCode:p,deleteLinkedInCredentials:m,checkConnection:C,isLoadingUpdateCredentials:d,isLoadingVerifyCode:h,isLoadingDeleteCredentials:f,isCheckLoading:E}},oC=({setValue:e,getValues:n})=>{const s=ce(),r=P(),{companyName:a}=Fe(),[i,o]=c.useState(!1),[l,u]=c.useState([]),[d,p]=c.useState(""),[h,m]=c.useState(""),f=tC({setIsPollingCloudBotStatus:o,setPollIntervals:u,queryClient:s}),{userMe:C,isFetching:E}=st({onSuccess:$=>eC({data:$,pollIntervals:l,isPollingCloudBotStatus:i,setProxyConnectionErrorMessage:m,setErrorMessage:p,setIsPollingCloudBotStatus:o,checkLILoginIsInProgress:pr}),refetchOnMount:!0}),{isLinkedInLoginValid:b,cloudBotStatus:w,isLinkedInLoginBeingVerified:I,isLi2FAActive:T}=C||{},j=c.useMemo(()=>{var $;return!I&&b&&(w==null?void 0:w.loginStatus)==="LOGGED_IN"&&(w==null?void 0:w.salesStatus)==="SALES_NAVIGATOR_ACTIVE"&&(($=w==null?void 0:w.contracts)==null?void 0:$.length)>1},[b,I,w]),L=c.useMemo(()=>mo(C)&&go(C),[C]),_=c.useMemo(()=>mo(C)&&!go(C),[C]),N=c.useMemo(()=>Qh(C),[C]),A=c.useMemo(()=>zn(C),[C]),R=c.useMemo(()=>Xh(C),[C]);c.useEffect(()=>{!i&&pr(C)&&f()},[C]),c.useEffect(()=>()=>Eu(l),[l]);const{updateLinkedInCredentials:V,postLinkedInVerifyCode:O,deleteLinkedInCredentials:B,checkConnection:D,isLoadingUpdateCredentials:M,isLoadingVerifyCode:F,isLoadingDeleteCredentials:W,isCheckLoading:ne}=iC({setValue:e,companyName:a,pollCloudBotStatus:f,setErrorMessage:p,setProxyConnectionErrorMessage:m});return{isShowTryAgainBlock:_,isShowVerificationBlock:L,isContractShown:j,isLinkedInConnected:N,isLinkedInConnectedSuccessfully:A,isLi2FAActive:T,isLinkedInRestrictionWarningDetected:R,tryAgain:()=>V({}),tryDelete:()=>rC({dispatch:r,deleteLinkedInCredentials:B}),trySubmit:($=!1)=>nC({getValues:n,hasCustomProxy:$,updateLinkedInCredentials:V,dispatch:r}),tryVerify:$=>sC({values:$,userMe:C,postLinkedInVerifyCode:O}),tryLIManualAgain:()=>V({tryLILoginAsAdmin:!0}),checkConnection:D,errorMessage:d,proxyConnectionErrorMessage:h,isCheckLoading:ne,isLoadingUpdateCredentials:M,isLoadingDeleteCredentials:W,isLoadingVerifyCode:F,isFetchingUserAccount:E,isPollingCloudBotStatus:i,isShowProgressBar:M||F||W||i}},Su=()=>{const e=mt();return(e==null?void 0:e.state)??{}},lC=()=>{const e=cu(),{userMe:n}=st(),{realImpersonateUser:s}=pn(),{logout:r}=Lr();c.useEffect(()=>(e.off("logout"),e.on("logout",({userId:a})=>{[n==null?void 0:n.id,s==null?void 0:s.id].includes(a)&&r()}),()=>{e.off("logout")}),[n==null?void 0:n.id,s==null?void 0:s.id])},Os=()=>{const e=Rt();return(n,s)=>{c.startTransition(()=>{e(n,s)})}},Fa=(e,n,s)=>{c.useEffect(()=>{const r=a=>{e.current&&!e.current.contains(a.target)&&(!(s!=null&&s.current)||!s.current.contains(a.target))&&n()};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[e,s,n])},J1=e=>{e.preventDefault()},cC=()=>{const e=c.useCallback(()=>{window.addEventListener("beforeunload",J1)},[]),n=c.useCallback(()=>{window.removeEventListener("beforeunload",J1)},[]);return c.useEffect(()=>()=>n(),[]),{addUnloadConfirmation:e,removeUnloadConfirmation:n}},dC=({onCreateSuccess:e,onUpdateSuccess:n,onDeleteSuccess:s})=>{const r=P(),{postProxy:a,isLoading:i}=Lx({onSuccess:f=>{e(f),r(Z({type:"success",message:"Proxy saved successfully",autoCloseTime:3e3}))},onError:f=>{r(Z({type:"error",message:f.message||"Failed to save proxy",autoCloseTime:5e3}))}}),{patchProxy:o,isLoading:l}=xx({onSuccess:f=>{n(f),r(Z({type:"success",message:"Proxy updated successfully",autoCloseTime:3e3}))},onError:f=>{r(Z({type:"error",message:f.message||"Failed to update proxy",autoCloseTime:5e3}))}}),{deleteProxy:u,isLoading:d}=lx({onSuccess:()=>{s(),r(Z({type:"success",message:"Proxy removed successfully",autoCloseTime:3e3}))},onError:f=>{r(Z({type:"error",message:f.message||"Failed to remove proxy",autoCloseTime:5e3}))}});return{createProxy:f=>{a(f)},updateProxy:(f,C)=>{o({id:f,payload:C})},removeProxy:f=>{u(f)},isProxyCreating:i,isProxyUpdating:l,isProxyDeleting:d,isFormSaving:i||l}},uC=(e,n)=>{c.useEffect(()=>{var o;if(n)return;const s=(o=e.current)==null?void 0:o.getEditor();if(!s)return;const r=new WeakMap,a=()=>{s.root.querySelectorAll("img").forEach(u=>{const d=r.get(u);
9d&&Object.entries(d).forEach(([p,h])=>{u.getAttribute(p)!==h&&u.setAttribute(p,h)})})},i=()=>{s.root.querySelectorAll("img").forEach(u=>{if(!r.has(u)){const d={};Array.from(u.attributes).forEach(p=>{d[p.name]=p.value}),r.set(u,d)}})};return s.on("text-change",()=>{i(),setTimeout(a,0)}),s.on("selection-change",a),i(),()=>{s.off("text-change",i),s.off("selection-change",a)}},[e,n])},pC=()=>{const e=P();return c.useCallback(s=>function(){const r=s.getSelection(!0);if(!r)return;const a=s.getFormat(r),i=typeof a.link=="string"?a.link:"",o=r.length>0?s.getText(r.index,r.length):"";e(Ne({type:Y.INSERT_LINK,size:"default",onConfirm:l=>{if(l.url){const u=s.getSelection(!0);u||s.setSelection(r.index,r.length);const d=u||r,p=l.text||l.url,h=dr(l.url);d.length>0?(s.deleteText(d.index,d.length,"user"),s.insertText(d.index,p,"user"),s.formatText(d.index,p.length,"link",h,"user")):(s.insertText(d.index,p,"link",h,"user"),s.setSelection(d.index+p.length,0)),setTimeout(()=>{s.root.querySelectorAll(`a[href="${l.url}"]`).forEach(f=>{const C=f;l.openInNewWindow&&(C.setAttribute("target","_blank"),C.setAttribute("rel","noopener noreferrer")),l.download&&C.setAttribute("download","")})},0)}},params:{url:i?dr(i):"",text:o,openInNewWindow:!1,download:!1}}))},[e])},hC=(e,n)=>{c.useEffect(()=>{var a;if(n)return;const s=(a=e.current)==null?void 0:a.getEditor();if(!s)return;const r=()=>{s.root.querySelectorAll("a[href]").forEach(o=>{const l=o,u=l.getAttribute("href");if(u){const d=dr(u);u!==d&&l.setAttribute("href",d)}})};return s.on("text-change",r),s.on("selection-change",r),()=>{s.off("text-change",r),s.off("selection-change",r)}},[e,n])},mC=(e,n)=>{c.useEffect(()=>{var i;if(n)return;const s=(i=e.current)==null?void 0:i.getEditor();if(!s)return;const r=o=>{const l=o.clipboardData||window.clipboardData;if(!l)return;const u=l.items;for(const p of u)if(p.type.startsWith("image/")){o.preventDefault(),o.stopPropagation();return}const d=l.getData("text/html");if(d){const p=document.createElement("div");p.innerHTML=d;const h=p.querySelectorAll("img");if(h.forEach(m=>m.remove()),h.length>0){o.preventDefault(),o.stopPropagation();const m=p.innerHTML,f=s.getSelection(!0);if(f){s.clipboard.dangerouslyPasteHTML(f.index,m,"user");const C=s.getLength()-1;s.setSelection(f.index+C-f.index,0,"user")}return}}},a=s.root;return a.addEventListener("paste",r),()=>{a.removeEventListener("paste",r)}},[e,n])},Il=e=>{var u;const[n]=Bn(Cn.sequenceTree),s=xn(e==null?void 0:e.touchSequence),r=Number(e==null?void 0:e.version)===2,a=xn(e==null?void 0:e.touchSequence)?!!Object.keys(e.touchSequence.nodes).length:!!(e!=null&&e.touchSequence&&"sequence"in e.touchSequence&&((u=e.touchSequence.sequence)!=null&&u.length)),o=n&&(s||r||!!e&&!a),l=s||o;return{isSequenceTreeFlagEnabled:n,isSequenceTreeEnabled:l,canUseConditions:o,shouldShowFollowUp:!l}},gC=()=>{const e=P(),{isBlockedOwnerWithBillingAccess:n}=Tl();c.useEffect(()=>{if(n){e(hr()),e(Tt({type:te.ACCOUNT_BLOCKED}));return}e(Ct({type:te.ACCOUNT_BLOCKED}))},[e,n])},xC=()=>{const{userMe:e}=st(),{setUserLanguage:n}=u7();c.useEffect(()=>{if(e&&!e.language){const s=lh();s&&n(s)}},[e])},fC=(e,n,s)=>{const r=c.useRef(!1),a=c.useRef(!1),i=c.useRef(s),o=e!=null?String(e):n||"",l=c.useRef(o||null),u=c.useRef(o),d=c.useRef(""),[p,h]=c.useState(o),m=C=>C?C.replace(/<p>/g,"<div>").replace(/<\/p>/g,"</div>"):"";return c.useEffect(()=>{i.current=s},[s]),c.useEffect(()=>{const C=e!=null?String(e):n||"",E=l.current||"",b=m(C),w=m(E);if(r.current||a.current||w===b){r.current&&(l.current=C||null);return}h(C),l.current=C||null,u.current=C},[e,n]),{editorValue:p,handleChange:C=>{const E=m(C),b=m(d.current);if(E===b)return;const w=m(u.current);if(E===w){d.current=C;return}a.current=!0,h(C),u.current=C,d.current=C,r.current=!0,i.current(C),setTimeout(()=>{r.current=!1,setTimeout(()=>{a.current=!1},200)},50)}}},CC=e=>{const[n,s]=c.useState(!1),[r,a]=c.useState(""),i=c.useRef(""),o=c.useRef("");c.useEffect(()=>{i.current=r},[r]);const l=c.useCallback(p=>{const h=p.target.value;a(h),i.current=h,o.current=h},[]),u=c.useCallback(()=>{var h;const p=(h=e.current)==null?void 0:h.getEditor();if(p){const m=p.root.innerHTML;
9a(m),i.current=m,o.current=m,s(!0)}},[]),d=c.useCallback(()=>{var h;const p=(h=e.current)==null?void 0:h.getEditor();if(p){const m=i.current;o.current=m;const f=document.createElement("div");f.innerHTML=m;const C=Array.from(f.querySelectorAll("img")).map(E=>{const b={};return Array.from(E.attributes).forEach(w=>{b[w.name]=w.value}),b});if(p.clipboard.dangerouslyPasteHTML(m),C.length>0){const E=()=>{const b=p.root.querySelectorAll("img");C.forEach((w,I)=>{if(b[I]){const T=b[I];Object.entries(w).forEach(([j,L])=>{T.setAttribute(j,L)})}})};setTimeout(E,0),setTimeout(E,50),setTimeout(E,100)}s(!1),a(""),i.current="",o.current=""}},[]);return{isCodeView:n,codeViewValue:r,handleCodeViewChange:l,switchToCodeView:u,switchToWYSIWYG:d,setIsCodeView:s}},yC=(e,n)=>{const s=c.useRef(n);c.useEffect(()=>{s.current=n},[n]),c.useEffect(()=>{var o;const r=(o=e.current)==null?void 0:o.getEditor();if(!r)return;const a=()=>{const l=r.root.innerHTML;I9(l)&&(r.setText(""),s.current(""))},i=r.root;return i.addEventListener("blur",a),()=>{i.removeEventListener("blur",a)}},[e])},EC=e=>e?{insertHTML:n=>{e.focus(),setTimeout(()=>{const s=e.getSelection(!0);if(s)e.clipboard.dangerouslyPasteHTML(s.index,n),e.setSelection(s.index+n.length,0);else{const r=e.getLength();e.clipboard.dangerouslyPasteHTML(r-1,n),e.setSelection(r-1+n.length,0)}},0)},setContents:n=>{e.clipboard.dangerouslyPasteHTML(n)},getContents:()=>e.root.innerHTML,getText:()=>e.getText(),root:e.root}:null,Ds=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M15.7336 12.9374L15.1347 12.9004L15.7336 12.9374ZM4.25384 12.9291L3.65493 12.9653L4.25384 12.9291ZM15.0006 16.9064L15.4928 17.2496L15.0006 16.9064ZM14.0006 17.8465L13.6884 17.3341L13.6884 17.3341L14.0006 17.8465ZM4.98224 16.9039L5.47472 16.5611L4.98224 16.9039ZM5.98254 17.8456L6.29497 17.3334H6.29497L5.98254 17.8456ZM2.5 3.98317C2.16863 3.98317 1.9 4.2518 1.9 4.58317C1.9 4.91454 2.16863 5.18317 2.5 5.18317V3.98317ZM17.5 5.18317C17.8314 5.18317 18.1 4.91454 18.1 4.58317C18.1 4.2518 17.8314 3.98317 17.5 3.98317V5.18317ZM12.8109 3.40961L12.271 3.67133V3.67133L12.8109 3.40961ZM7.21551 3.47589L7.76146 3.72475L7.21551 3.47589ZM8.09774 2.01081L8.46295 2.48686L8.46295 2.48686L8.09774 2.01081ZM8.32974 1.8616L8.04804 1.33184L8.04804 1.33184L8.32974 1.8616ZM11.9181 1.99718L12.2768 1.51622L12.2768 1.51622L11.9181 1.99718ZM11.6892 1.85375L11.4129 2.38634V2.38634L11.6892 1.85375ZM7.31667 13.7498C7.31667 14.0812 7.5853 14.3498 7.91667 14.3498C8.24804 14.3498 8.51667 14.0812 8.51667 13.7498H7.31667ZM8.51667 8.74984C8.51667 8.41847 8.24804 8.14984 7.91667 8.14984C7.5853 8.14984 7.31667 8.41847 7.31667 8.74984H8.51667ZM11.4833 13.7498C11.4833 14.0812 11.752 14.3498 12.0833 14.3498C12.4147 14.3498 12.6833 14.0812 12.6833 13.7498H11.4833ZM12.6833 8.74984C12.6833 8.41847 12.4147 8.14984 12.0833 8.14984C11.752 8.14984 11.4833 8.41847 11.4833 8.74984H12.6833ZM16.3324 12.9744L16.8489 4.62019L15.6511 4.54615L15.1347 12.9004L16.3324 12.9744ZM3.15109 4.61933L3.65493 12.9653L4.85275 12.893L4.34891 4.54701L3.15109 4.61933ZM15.1347 12.9004C15.068 13.9793 15.02 14.7461 14.9257 15.3406C14.8329 15.9255 14.7032 16.284 14.5085 16.5632L15.4928 17.2496C15.8331 16.7615 16.0039 16.2027 16.1108 15.5286C16.2162 14.8641 16.2672 14.03 16.3324 12.9744L15.1347 12.9004ZM9.99395 18.9332C11.0516 18.9332 11.8872 18.9338 12.5569 18.8696C13.2364 18.8045 13.8046 18.6685 14.3127 18.3589L13.6884 17.3341C13.3977 17.5112 13.0319 17.6186 12.4424 17.6751C11.8432 17.7325 11.0749 17.7332 9.99395 17.7332V18.9332ZM14.5085 16.5632C14.2916 16.8743 14.0123 17.1368 13.6884 17.3341L14.3127 18.3589C14.7788 18.075 15.1807 17.6972 15.4928 17.2496L14.5085 16.5632ZM3.65493 12.9653C3.71875 14.0224 3.76852 14.8576 3.87314 15.523C3.97928 16.1981 4.14954 16.7577 4.48976 17.2466L5.47472 16.5611C5.28009 16.2815 5.15068 15.9225 5.05858 15.3367C4.96497 14.7413 4.91797 13.9734 4.85275 12.893L3.65493 12.9653ZM9.99395 17.7332C8.9116 17.7332 8.14228 17.7325 7.5423 17.675C6.95203 17.6183 6.58587 17.5108 6.29497 17.3334L5.67012 18.3579C6.1786 18.668 6.74746 18.8042 7.42771 18.8695C8.09826 18.9338 8.93495 18.9332 9.99395 18.9332V17.7332ZM4.48976 17.2466C4.80178 17.695 5.20377 18.0734 5.67012 18.3579L6.29497 17.3334C5.9709 17.1357 5.69155 16.8727 5.47472 16.5611L4.48976 17.2466ZM2.5 5.18317H3.75V3.98317H2.5V5.18317ZM3.75 5.18317H6.71077V3.98317H3.75V5.18317ZM6.71077 5.18317H13.3798V3.98317H6.71077V5.18317ZM13.3798 5.18317H16.25V3.98317H13.3798V5.18317ZM16.25 5.18317H17.5V3.98317H16.25V5.18317ZM12.271 3.67133L12.8399 4.8449L13.9197 4.32145L13.3508 3.14788L12.271 3.67133ZM6.66955 3.22702L6.16481 4.33431L7.25672 4.83203L7.76146 3.72475L6.66955 3.22702ZM7.76146 3.72475C7.95011 3.3109 8.0756 3.03698 8.19226 2.83251C8.30327 2.63793 8.38424 2.54724 8.46295 2.48686L7.73254 1.53476C7.48154 1.72732 7.30556 1.96513 7.14997 2.23783C7.00003 2.50064 6.84925 2.83279 6.66955 3.22702L7.76146 3.72475ZM10.0288 1.0665C9.59551 1.066
95 9.23074 1.06593 8.92942 1.09336C8.61675 1.12183 8.32737 1.18332 8.04804 1.33184L8.61143 2.39137C8.69902 2.34479 8.81512 2.30873 9.03821 2.28842C9.27266 2.26708 9.57395 2.2665 10.0288 2.2665V1.0665ZM8.46295 2.48686C8.50972 2.45098 8.55938 2.41904 8.61143 2.39137L8.04804 1.33184C7.93745 1.39065 7.83192 1.45852 7.73254 1.53476L8.46295 2.48686ZM13.3508 3.14788C13.1664 2.76761 13.0116 2.44699 12.8594 2.19344C12.7015 1.93026 12.5248 1.70119 12.2768 1.51622L11.5594 2.47813C11.6373 2.53626 11.7181 2.62363 11.8306 2.811C11.9488 3.008 12.0774 3.27205 12.271 3.67133L13.3508 3.14788ZM10.0288 2.2665C10.4725 2.2665 10.7662 2.26706 10.9951 2.28752C11.2127 2.30699 11.3266 2.34157 11.4129 2.38634L11.9655 1.32116C11.6909 1.17869 11.4077 1.11964 11.102 1.0923C10.8074 1.06595 10.4514 1.0665 10.0288 1.0665V2.2665ZM12.2768 1.51622C12.1785 1.44288 12.0744 1.37765 11.9655 1.32116L11.4129 2.38634C11.4641 2.41293 11.5131 2.44362 11.5594 2.47814L12.2768 1.51622ZM8.51667 13.7498L8.51667 8.74984H7.31667L7.31667 13.7498H8.51667ZM12.6833 13.7498V8.74984H11.4833V13.7498H12.6833Z",fill:"currentColor"})),bu=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M5.22048 18.1232L4.97207 18.8309L5.22048 18.1232ZM3.13981 16.165L2.44256 16.4413H2.44256L3.13981 16.165ZM16.6924 14.5386L15.9951 14.2623L16.6924 14.5386ZM13.0512 17.9656L12.8028 17.258L13.0512 17.9656ZM15.6639 2.33161L15.232 2.94472L15.6639 2.33161ZM16.3768 3.00249L15.7898 3.46935L16.3768 3.00249ZM17.8332 10.0001C17.8332 9.58587 17.4974 9.25008 17.0832 9.25008C16.669 9.25008 16.3332 9.58587 16.3332 10.0001H17.8332ZM14.3054 12.7779V12.0279V12.7779ZM11.5749 13.8073L10.8505 13.6132L11.5749 13.8073ZM12.557 12.8252L12.3629 12.1007H12.3629L12.557 12.8252ZM8.74984 17.5834C8.33562 17.5834 7.99984 17.9192 7.99984 18.3334C7.99984 18.7476 8.33562 19.0834 8.74984 19.0834V17.5834ZM6.6665 5.08342C6.25229 5.08342 5.9165 5.4192 5.9165 5.83342C5.9165 6.24763 6.25229 6.58342 6.6665 6.58342V5.08342ZM12.4998 6.58342C12.9141 6.58342 13.2498 6.24763 13.2498 5.83342C13.2498 5.4192 12.9141 5.08342 12.4998 5.08342V6.58342ZM6.6665 8.41675C6.25229 8.41675 5.9165 8.75253 5.9165 9.16675C5.9165 9.58096 6.25229 9.91675 6.6665 9.91675V8.41675ZM9.1665 9.91675C9.58072 9.91675 9.9165 9.58096 9.9165 9.16675C9.9165 8.75253 9.58072 8.41675 9.1665 8.41675V9.91675ZM9.99984 2.41675H10.6438V0.916748H9.99984V2.41675ZM16.3332 7.72735V9.8485
97H17.8332V7.72735H16.3332ZM3.6665 13.4849V8.33341H2.1665V13.4849H3.6665ZM8.06802 17.5834C6.50533 17.5834 5.9165 17.5727 5.4689 17.4156L4.97207 18.8309C5.72187 19.0941 6.63226 19.0834 8.06802 19.0834V17.5834ZM2.1665 13.4849C2.1665 14.1806 2.16612 14.7385 2.19604 15.1921C2.2264 15.6524 2.29023 16.0569 2.44256 16.4413L3.83705 15.8887C3.76608 15.7096 3.71826 15.4795 3.69279 15.0934C3.66688 14.7006 3.6665 14.2003 3.6665 13.4849H2.1665ZM5.4689 17.4156C4.7005 17.1458 4.11181 16.582 3.83705 15.8887L2.44256 16.4413C2.88579 17.5597 3.8155 18.4249 4.97207 18.8309L5.4689 17.4156ZM16.3332 9.84857C16.3332 11.0931 16.3328 11.9903 16.2859 12.7004C16.2395 13.4039 16.1499 13.8719 15.9951 14.2623L17.3896 14.8149C17.6257 14.2192 17.7314 13.5768 17.7827 12.7992C17.8336 12.0282 17.8332 11.0733 17.8332 9.84857H16.3332ZM8.06802 19.0834C10.6282 19.0834 12.1008 19.0941 13.2996 18.6733L12.8028 17.258C11.9062 17.5727 10.7551 17.5834 8.06802 17.5834V19.0834ZM15.9951 14.2623C15.4511 15.635 14.2931 16.7348 12.8028 17.258L13.2996 18.6733C15.1781 18.0139 16.6772 16.6128 17.3896 14.8149L15.9951 14.2623ZM10.6438 2.41675C12.0187 2.41675 12.9919 2.4177 13.7414 2.49582C14.4789 2.57268 14.9092 2.71728 15.232 2.94472L16.0959 1.7185C15.4751 1.28108 14.7541 1.09325 13.8969 1.0039C13.0516 0.915794 11.9865 0.916748 10.6438 0.916748V2.41675ZM17.8332 7.72735C17.8332 6.46661 17.8344 5.45561 17.7397 4.65116C17.643 3.82908 17.438 3.13187 16.9637 2.53562L15.7898 3.46935C16.022 3.76126 16.1701 4.14758 16.25 4.82644C16.332 5.52294 16.3332 6.4303 16.3332 7.72735H17.8332ZM15.232 2.94472C15.445 3.09481 15.6326 3.27172 15.7898 3.46935L16.9637 2.53562C16.7161 2.22431 16.4236 1.9494 16.0959 1.7185L15.232 2.94472ZM9.99984 0.916748C8.35027 0.916748 7.04202 0.915334 6.01951 1.04472C4.97986 1.17628 4.12241 1.45446 3.43981 2.09691L4.46786 3.18921C4.82259 2.85534 5.31858 2.64538 6.20782 2.53285C7.1142 2.41816 8.31029 2.41675 9.99984 2.41675V0.916748ZM3.6665 8.33341C3.6665 6.73958 3.6683 5.6243 3.78863 4.7819C3.90519 3.96598 4.11956 3.51702 4.46786 3.18921L3.43981 2.09691C2.75078 2.74541 2.44649 3.57028 2.30371 4.56978C2.16471 5.54281 2.1665 6.78455 2.1665 8.33341H3.6665ZM16.3332 10.0001C16.3332 11.12 15.4253 12.0279 14.3054 12.0279V13.5279C16.2537 13.5279 17.8332 11.9484 17.8332 10.0001H16.3332ZM12.2994 14.0014C12.3585 13.7809 12.5307 13.6087 12.7511 13.5496L12.3629 12.1007C11.6248 12.2985 11.0483 12.8751 10.8505 13.6132L12.2994 14.0014ZM8.74984 19.0834C10.6982 19.0834 12.2776 17.504 12.2776 15.5556H10.7776C10.7776 16.6755 9.86975 17.5834 8.74984 17.5834V19.0834ZM12.2776 15.5556C12.2776 15.3976 12.2707 15.237 12.2639 15.0895C12.2568 14.9367 12.2498 14.7982 12.2469 14.6601C12.2411 14.3795 12.2551 14.1666 12.2994 14.0014L10.8505 13.6132C10.7502 13.9874 10.7406 14.3712 10.7472 14.6913C10.7506 14.8535 10.7589 15.0162 10.7655 15.159C10.7724 15.3071 10.7776 15.4362 10.7776 15.5556H12.2776ZM14.3054 12.0279C14.186 12.0279 14.0568 12.0226 13.9088 12.0157C13.766 12.0091 13.6033 12.0009 13.441 11.9975C13.121 11.9908 12.7371 12.0005 12.3629 12.1007L12.7511 13.5496C12.9164 13.5054 13.1293 13.4913 13.4099 13.4972C13.5479 13.5 13.6865 13.507 13.8392 13.5141C13.9868 13.521 14.1474 13.5279 14.3054 13.5279L14.3054 12.0279ZM6.6665 6.58342H12.4998V5.08342H6.6665V6.58342ZM6.6665 9.91675H9.1665V8.41675H6.6665V9.91675Z",fill:"currentColor"})),Jt=y(g,{target:"e14akn30"})({name:"1t527un",styles:"display:flex;align-items:center;justify-content:center;cursor:pointer;-ms-user-select:none;-webkit-user-select:none;user-select:none;&.processing{opacity:0.7;}&.disabled{cursor:not-allowed;opacity:0.7;}"}),SC=y(jt,{target:"esvm8a40"})("cursor:",({cursor:e})=>e,";text-decoration:",({underline:e})=>e?"underline":"none",";",({capitalizeFirstLetter:e})=>e&&" &:first-letter { text-transform: uppercase; }",";&:hover{color:",({hoverColor:e})=>e,";}"),S=({component:e="p",semibold:n,bold:s,inline:r,crop:a=!1,pointer:i,medium:o,...l})=>{const u=i?"pointer":"default";return t.jsx(SC,{cursor:ao(i)?"inherit":u,display:r?"inline":"block",component:e,color:"greyBlue.100",fontFamily:"'Inter', sans-serif",fontSize:"14px",lineHeight:"20px",fontWeight:"400",letterSpacing:"0",...a&&{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},...o&&{fontWeight:500},...n&&{fontWeight:600},...s&&{fontWeight:700},...l})},os=({name:e,fileId:n,onDeleteClick:s,...r})=>{const{palette:a}=Ve();return t.jsxs(g,{"data-testid":`attachments-${e}`,display:"flex",alignItems:"center",border:`1px solid ${a.greyBlue[30]}`,borderRadius:"8px",height:"32px",p:"6px 8px",maxWidth:"228px",boxSizing:"border-box",boxShadow:"0px 1px 2px 0px #00000014",...r,children:[t.jsx(bu,{color:a.blue.primary,style:{flexShrink:0}}),t.jsx(S,{ml:"8px",display:"inline-block",medium:!0,color:"greyNeutral.100",crop:!0,children:e}),!!s&&t.jsx(Jt,{ml:"8px",color:"greyNeutral.60","data-testid":`attachments-delete-${e}`,onClick:()=>s(n||e),children:t.jsx(Ds,{})})]},e)},bC=y(B6,{target:"e5bsfks0"})({name:"7a6nfb",styles:"padding:16px 20px 0 20px;& li *{color:#8c8c8c;font-size:14px;line-height:22px;letter-spacing:-0.02em;}& li:last-of-type *{color:#0a150f;}& .MuiBreadcrumbs-separator{color:#8c8c8c;}"}),LC=e=>t.jsx(bC,{...e}),ec="/ByLKY_ok.svg",tc="/CMAKqCNp.svg",wC=y("input",{target:"e17tbnnc0"})("appearance:none;position:relative;width:20px;height:20px;cursor:",({pointer:e})=>e?"pointer":"default",";border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:4px;background-color:#ffffff;flex-shrink:0;&~label{cursor:",({pointer:e})=>e?"pointer":"default",";font-size:14px;color:",({theme:e})=>e.palette.gray.dark,";margin-left:10px;}&:checked{background-color:",({theme:e})=>e.palette.blue.primary,";border-color:",({theme:e})=>e.palette.blue.primary,";&::after{content:'';display:inline-block;position:absolute;
9left:50%;top:50%;transform:translate(-50%, -50%);width:16px;height:16px;background-color:#ffffff;mask-image:url(",({checkIcon:e})=>e==="dash"?ec:tc,");mask-size:cover;mask-position:bottom;mask-repeat:no-repeat;-webkit-mask-image:url(",({checkIcon:e})=>e==="dash"?ec:tc,");-webkit-mask-size:cover;-webkit-mask-position:bottom;-webkit-mask-repeat:no-repeat;}}&:disabled{cursor:not-allowed;}"),$e=({enablePropagation:e=!1,pointer:n=!0,register:s,name:r,parameters:a,wrapperProps:i={},...o})=>t.jsx(g,{onClick:l=>!e&&l.stopPropagation(),width:"20px",height:"20px",...i,children:t.jsx(wC,{...o,pointer:n,type:"checkbox",...s&&r?s(r,a):{}})}),Lu=y(g,{target:"e1m5a4um0"})("display:flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:4px;overflow:hidden;background-color:",e=>e.bgcolor,";border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";"),_l=y(g,{target:"e1yvlmdo0"})({name:"n4rxja",styles:"height:calc(100% - 76px);padding:0 20px 20px 20px;box-sizing:border-box;display:flex;flex-direction:column;&.row{flex-direction:row;flex:1 1 auto;min-height:0;height:auto;}"}),Ue=y(g,{target:"ecpwzrc0"})("height:1px;background-color:",({theme:e})=>e.palette.greyBlue[20],";"),TC=y(g,{target:"ezyunct0"})("background-color:#ffffff;min-height:100%;padding:24px;border-radius:12px;box-sizing:border-box;overflow-y:auto;border:1px solid ",({theme:e})=>e.palette.greyNeutral[30],";background-image:radial-gradient(",({theme:e})=>e.palette.greyBlue[30]," 8%, transparent 0);background-size:16px 16px;"),jC=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.16675 1.04169C4.67943 1.04169 1.04175 4.67937 1.04175 9.16669C1.04175 13.654 4.67943 17.2917 9.16675 17.2917C11.1854 17.2917 13.0322 16.5555 14.4531 15.337L17.8915 18.7753C18.1356 19.0194 18.5313 19.0194 18.7754 18.7753C19.0194 18.5312 19.0194 18.1355 18.7754 17.8914L15.337 14.4531C16.5556 13.0321 17.2917 11.1854 17.2917 9.16669C17.2917 4.67937 13.6541 1.04169 9.16675 1.04169ZM2.29175 9.16669C2.29175 5.36973 5.36979 2.29169 9.16675 2.29169C12.9637 2.29169 16.0417 5.36973 16.0417 9.16669C16.0417 12.9636 12.9637 16.0417 9.16675 16.0417C5.36979 16.0417 2.29175 12.9636 2.29175 9.16669Z",fill:"#656F7D"})),Xt=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M15.8334 4.16663L4.16675 15.8333",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4.16675 4.16663L15.8334 15.8333",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),Al=y("input",{target:"e164logt0"})({name:"eivff4",styles:"display:none"}),vC=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M18.1742 18.1742L21 21M18.1742 18.1742C16.6292 19.2482 14.588 20 12 20C5 20 2 14.5 2 12C2 10.4243 3.19179 7.65676 5.82578 5.82578M18.1742 18.1742L14.1213 14.1213M3 3L5.82578 5.82578M5.82578 5.82578L9.87863 9.87863M9.87863 9.87863C9.33571 10.4215 8.99991 11.1715 8.99991 12C8.99991 13.6569 10.3431 15 11.9999 15C12.8284 15 13.5784 14.6642 14.1213 14.1213M9.87863 9.87863L14.1213 14.1213M20.4197 16C20.5431 15.8341 20.659 15.6671 20.7674 15.5C21.6051 14.2091 22 12.9071 22 12C22 9.5 19 4 12 4C10.903 4 9.90427 4.13507 8.99991 4.3725C8.82995 4.41712 8.66332 4.46536 8.5 4.517",stroke:"#000E33",strokeWidth:1.5,strokeLinecap:"round"})),IC=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M22 12C22 14.5 19 20 12 20C5 20 2 14.5 2 12C2 9.5 5 4 12 4C19 4 22 9.5 22 12Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),c.createElement("path",{d:"M15 12C15 13.6569 13.6569 15 12 15C10.3431 15 9 13.6569 9 12C9 10.3431 10.3431 9 12 9C13.6569 9 15 10.3431 15 12Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"})),es=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:1.5}),c.createElement("path",{d:"M12.2422 17V12C12.2422 11.5286 12.2422 11.2929 12.0957 11.1464C11.9493 11 11.7136 11 11.2422 11",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M11.991 8H12",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),_C=y("label",{target:"e1jzz4hj4"})("font-weight:600;font-size:12px;line-height:16px;color:",({theme:e})=>e.palette.greyBlue[100],";"),AC=y("input",{target:"e1jzz4hj3"})("display:block;width:100%;height:40px;padding:5px 12px 5px 12px;box-sizing:border-box;font-size:14px;border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:",({preTab:e})=>e?"0 8px 8px 0":"8px",";transition:border-color ease-in-out 0.15s;&.right-icon{padding-right:38px;}&.left-icon{padding-left:38px;}&:focus{border:1px solid ",({theme:e})=>e.palette.blue.primary,";outline:0;}&:disabled{border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";background-color:",({theme:e})=>e.palette.greyBlue[30],";}&.error{border:1px solid ",({theme:e})=>e.palette.additional.red50,";}&::placeholder{color:",({theme:e})=>e.palette.greyBlue[60],";}&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;}&::-ms-reveal,&::-ms-clear{display:none;}"),NC=y(g,{target:"e1jzz4hj2"})("display:flex;align-items:center;position:relative;&~p[role='sub-text']{color:",({theme:e})=>e.palette.greyBlue[60],";}&.error~p[role='sub-text']{color:",({theme:e})=>e.palette.additional.red50,";}"),qr=y("div",{target:"e1jzz4hj1"})({name:"1yx1ixa",styles:"display:flex;align-items:center;position:absolute;cursor:pointer;top:calc(50%);transform:translateY(-50%);&.right-icon{right:10px;}&.left-icon{left:10px;}"}),kC=y(g,{target:"e1jzz4hj0"})({name:"fk63k6",styles:"display:flex;align-items:center;padding:0 12px;
9height:40px;background:#fafafa;border:1px solid #bfbfbf;box-sizing:border-box;box-shadow:0 1px 1px 0 #dfdfe8;border-radius:8px 0 0 8px"}),Ce=({register:e,name:n="input",parameters:s={},label:r,type:a="input",labelStyle:i,removeAllAction:o,preTab:l,subText:u,showRequiredIcon:d=!1,tooltip:p={title:""},labelTooltip:h={title:""},rightIcon:m,leftIcon:f,className:C,...E})=>{const[b,w]=c.useState(a!=="password"),I=c.useMemo(()=>r?t.jsxs(_C,{htmlFor:n,className:i,children:[r,d&&(s==null?void 0:s.required)&&t.jsx(S,{inline:!0,children:"*"}),(h==null?void 0:h.title)&&t.jsx(we,{...h,children:t.jsx("span",{children:t.jsx(es,{width:"16px",color:"#656f7d",height:"16px",style:{verticalAlign:"sub",marginLeft:"4px"}})})})]}):"",[r,d,s==null?void 0:s.required,h,i]),T=c.useMemo(()=>f?t.jsx(qr,{className:"left-icon",children:f}):"",[f]),j=c.useMemo(()=>o?t.jsx(qr,{className:"right-icon",onClick:o,children:t.jsx(Xt,{})}):a==="password"?t.jsx(qr,{onClick:()=>w(L=>!L),className:Ee("right-icon",{visible:b}),children:b?t.jsx(IC,{}):t.jsx(vC,{})}):m?t.jsx(qr,{className:"right-icon",children:m}):"",[m,o,a,b]);return t.jsxs(g,{width:"100%",color:"primary.dark",children:[I,t.jsxs(NC,{mt:r?"4px":"0",className:C,children:[l&&t.jsx(kC,{children:l}),T,t.jsx(we,{...p,children:t.jsx(AC,{...e?e(n,s):{},...E,autoComplete:a==="password"?"off":E.autoComplete,preTab:!!l,type:a==="password"&&b?"input":a,className:Ee(C,{"right-icon":!!j,"left-icon":!!T})})}),j]}),u&&t.jsx(S,{mt:"4px",fontSize:"12px",lineHeight:"16px",role:"sub-text",children:u})]})},RC=y("label",{target:"e1fqeo2j2"})("width:100%;font-weight:600;font-size:12px;line-height:16px;color:",({theme:e})=>e.palette.greyBlue[100],";display:block;margin-bottom:4px;"),MC=y(g,{target:"e1fqeo2j1"})("padding:10px;font-size:14px;line-height:20px;border:1px solid ",({theme:e})=>e.palette.greyNeutral[30],";border-radius:8px;background-color:#ffffff;box-sizing:border-box;display:flex;flex-direction:column;height:",({height:e})=>e||"auto",";max-height:",e=>e["max-height"]||"auto",";&.resizable{resize:vertical;overflow-y:auto;min-height:",e=>e["min-height"]||"150px",";max-height:",e=>e["max-height"]||"700px",";}&.error{border:1px solid ",({theme:e})=>e.palette.additional.red50,";}&:focus-within{border:1px solid ",({theme:e})=>e.palette.blue.primary,";outline:0;}"),PC=y("textarea",{target:"e1fqeo2j0"})("resize:none;width:100%;background-color:transparent;flex-grow:1;&:focus{border:none;outline:0;}&::placeholder{color:",({theme:e})=>e.palette.greyBlue[60],";}"),Tr=({register:e,name:n,parameters:s={},label:r,control:a,showMaxLength:i=!1,resizable:o=!1,className:l,wrapperProps:u={},height:d,maxHeight:p,minHeight:h,...m})=>{var w,I;const[f,C]=c.useState(0),{ref:E,...b}=e&&n?e(n,s):{};return t.jsxs(g,{...u,children:[t.jsxs(g,{display:"flex",children:[r&&t.jsx(RC,{children:r}),i&&t.jsx(S,{ml:"auto",fontSize:"12px",lineHeight:"16px",textAlign:"right",color:"greyBlue.60",mb:"4px","data-testid":"char-counter",children:t.jsxs(t.Fragment,{children:[f,"/",typeof(s==null?void 0:s.maxLength)=="number"?s==null?void 0:s.maxLength:(w=s==null?void 0:s.maxLength)==null?void 0:w.value]})})]}),t.jsxs(MC,{className:Ee(l,{resizable:o}),height:d,"max-height":p,"min-height":h,children:[t.jsx(PC,{ref:T=>{E==null||E(T),C((T==null?void 0:T.value.length)||0)},maxLength:typeof(s==null?void 0:s.maxLength)=="number"?s==null?void 0:s.maxLength:(I=s==null?void 0:s.maxLength)==null?void 0:I.value,...b,...m}),t.jsx(g,{display:"flex",alignItems:"center",flexWrap:"wrap",flexShrink:"0",pt:"8px",gap:"8px",children:a})]})]})},OC=[["undo","redo"],["link","codeView"],["list"],["underline","italic","bold"]],nc=[["bold","italic","underline"]],sc=["bold","italic","underline","link","list","bullet","ordered","indent","image"],rc={width:"100%",display:"flex",flexDirection:"column",flex:1},DC={width:"100%",display:"flex",flexDirection:"column",flex:1,minHeight:0,overflow:"hidden"},UC={width:"100%",display:"flex",flexDirection:"column",flex:1},BC=y("label",{target:"eq35qh83"})("font-weight:600;font-size:12px;line-height:16px;color:",({theme:e})=>e.palette.greyBlue[100],";display:block;margin-bottom:4px;"),HC=y(g,{shouldForwardProp:e=>On(e),target:"eq35qh82"})("display:flex;flex-direction:column;border:1px solid ",({theme:e})=>e.palette.greyNeutral[30],";border-radius:8px;background-color:#ffffff;&.error{border:1px solid ",({theme:e})=>e.palette.additional.red50,";}&:focus-within{border:1px solid ",({theme:e})=>e.palette.blue.primary,";outline:0;}&.resizable{resize:vertical;overflow:hidden;min-height:252px;}.code-view-mode .ql-container.ql-snow.ql-disabled{display:none!important;}.ql-tooltip{left:10px!important;}.quill{border:none;background-color:transparent;flex:1 1 auto;display:flex;flex-direction:column;min-height:0;font-family:'Inter',sans-serif;width:100%;",({error:e})=>e&&`
10      .ql-container .ql-editor {
11        border: 1px solid #fc2323 !important;
12        box-shadow: inset 0 2px 1px 0 rgba(0, 0, 0, 0.1), 0 0 10px 0 rgba(252, 35, 35, 0.5) !important;
13      }
14    `,";.ql-toolbar.ql-snow{display:flex!important;visibility:visible!important;opacity:1!important;}.code-view-mode &{flex-grow:0!important;min-height:auto!important;}.ql-container{border:none;font-size:14px;font-family:'Inter',sans-serif!important;min-height:0;overflow-y:auto;overflow-x:visible;flex:1 1 auto;pointer-events:auto!important;position:relative;.ql-editor{cursor:text;pointer-events:auto!important;user-select:text!important;padding:10px;min-height:120px;font-size:14px;font-family:'Inter',sans-serif!important;color:inherit;
14&[contenteditable='false']{display:none!important;}b,strong{font-weight:700!important;color:inherit!important;}img{max-width:100%;height:auto;display:block;margin:8px 0;}&.ql-blank::before{font-style:normal;color:",({theme:e})=>e.palette.greyNeutral[50],";}}}.ql-toolbar{outline:none;background-color:",({theme:e})=>e.palette.bg.greyBlue,";border-radius:8px 8px 0 0;border-bottom:1px solid ",({theme:e})=>e.palette.greyNeutral[30],";border-top:none;border-left:none;border-right:none;padding:8px;min-height:40px;height:auto;display:flex!important;align-items:center;flex-wrap:wrap;visibility:visible!important;opacity:1!important;pointer-events:auto!important;.ql-formats{margin-right:4px;display:flex;align-items:center;}.ql-stroke{stroke:",({theme:e})=>e.palette.greyNeutral[60],";}.ql-fill{fill:",({theme:e})=>e.palette.greyNeutral[60],";}button{width:24px;height:24px;margin:0 4px 0 0;padding:0;display:flex;align-items:center;justify-content:center;svg{width:16px;height:16px;}&:hover,&.ql-active{.ql-stroke{stroke:",({theme:e})=>e.palette.blue.primary,";}.ql-fill{fill:",({theme:e})=>e.palette.blue.primary,";}}&:focus{outline:none;}}button.ql-code-view{&::before{content:'</>';font-family:'Monaco','Menlo','Ubuntu Mono',monospace;font-size:14px;line-height:1;}&.ql-active{color:",({theme:e})=>e.palette.blue.primary,";}}}}"),VC=y(g,{target:"eq35qh81"})("min-height:150px;overflow-y:auto;font-family:'Monaco','Menlo','Ubuntu Mono',monospace;font-size:12px;background-color:#f5f5f5;border-top:1px solid ",({theme:e})=>e.palette.greyNeutral[30],";flex:1;display:flex;flex-direction:column;"),FC=y("textarea",{target:"eq35qh80"})({name:"16gr7hv",styles:"width:100%;min-height:150px;height:100%;border:none;outline:none;resize:none;font-family:'Monaco','Menlo','Ubuntu Mono',monospace;font-size:12px;background-color:transparent;color:#333"}),wu=c.memo(({isError:e,label:n,className:s,control:r,resizable:a,editorProps:i={},onChange:o,getEditorInstance:l,value:u,defaultValue:d,...p})=>{const h=c.useRef(null),{editorValue:m,handleChange:f}=fC(u,d,o),{isCodeView:C,codeViewValue:E,handleCodeViewChange:b,switchToCodeView:w,switchToWYSIWYG:I}=CC(h);yC(h,o);const T=c.useMemo(()=>i.buttonList||OC,[i.buttonList]),j=c.useMemo(()=>T.some(O=>O.includes("codeView")),[T]),L=c.useMemo(()=>_9(T),[T]),_=c.useMemo(()=>L.length>0?L:nc,[L]),N=jf(E,b),A=pC(),R=c.useMemo(()=>{const O=_.map(B=>B.filter(D=>typeof D!="string"||D!=="code-view")).filter(B=>B.length>0);return{toolbar:O.length>0?O:nc,clipboard:{matchVisual:!1},history:{delay:1e3,maxStack:50,userOnly:!0}}},[_]);c.useEffect(()=>{var F,W,ne;if(!j)return;const O=(F=h.current)==null?void 0:F.getEditor();if(!O)return;const B=O.getModule("toolbar");if(!B||((W=B.container)==null?void 0:W.querySelector(".ql-code-view")))return;const M=(ne=B.container)==null?void 0:ne.querySelector(".ql-link");if(M&&M.parentElement){const $=document.createElement("button");$.type="button",$.className="ql-code-view",$.setAttribute("aria-label","Code View"),$.innerHTML='<svg viewBox="0 0 18 18"><rect class="ql-stroke" height="10" width="10" x="4" y="4"></rect></svg>',$.onclick=()=>{C?I():w()},M.parentElement.insertBefore($,M.nextSibling)}},[j,C,w,I]),c.useEffect(()=>{if(!l)return;const O=setTimeout(()=>{var M;const B=(M=h.current)==null?void 0:M.getEditor();if(!B)return;const D=EC(B);D&&l(D)},C?0:100);return()=>clearTimeout(O)},[l,C]),c.useEffect(()=>{if(C)return;const O=setTimeout(()=>{var M;const B=(M=h.current)==null?void 0:M.getEditor();if(!B)return;const D=B.getModule("toolbar");D&&(D.handlers.link=A(B))},100);return()=>clearTimeout(O)},[C,A]),mC(h,C),uC(h,C),hC(h,C);const V=C?t.jsxs(g,{onDrop:Y1,sx:UC,children:[t.jsx(g,{sx:{width:"100%",flexShrink:0},className:"code-view-mode",children:t.jsx(x1,{ref:h,theme:"snow",value:m||"",onChange:f,modules:R,formats:sc,placeholder:p.placeholder,readOnly:!0,style:{...rc,minHeight:"auto"},bounds:"self"})}),t.jsx(VC,{children:t.jsx(FC,{value:E,onChange:b,onPaste:N,onBlur:I})})]}):t.jsx(g,{onDrop:Y1,sx:DC,children:t.jsx(x1,{ref:h,theme:"snow",value:m||"",onChange:f,modules:R,formats:sc,placeholder:p.placeholder,readOnly:p.readOnly,style:rc,bounds:"self"})});return t.jsxs(t.Fragment,{children:[n&&t.jsx(BC,{children:n}),t.jsxs(HC,{error:e,className:Ee(s,{resizable:a}),children:[V,r&&t.jsx(g,{display:"flex",alignItems:"center",flexWrap:"wrap",flexShrink:"0",p:"8px 10px 10px 10px",gap:"8px",bgcolor:"common.white",position:"relative",zIndex:1,children:r})]})]})}),$C=y(g,{target:"e1we98bv0"})({name:"yj579u",styles:"margin:16px 0;display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));gap:16px;
14&.flex{display:flex;}"}),mr=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.2981 10.3691C14.0052 10.662 13.5303 10.662 13.2374 10.3691C12.9445 10.0762 12.9445 9.60133 13.2374 9.30844L19.245 3.30086C19.07 3.30618 18.8856 3.31516 18.696 3.32685C18.2174 3.35634 17.7301 3.40136 17.3095 3.4406L17.2415 3.44696C16.8673 3.48194 16.5162 3.51475 16.314 3.51763C15.8998 3.52351 15.5593 3.19253 15.5534 2.77836C15.5475 2.36419 15.8785 2.02366 16.2926 2.01778C16.4308 2.01582 16.7303 1.98814 17.1702 1.94709C17.5887 1.90803 18.0984 1.86084 18.6037 1.82969C19.1046 1.79882 19.6263 1.78197 20.0661 1.8088C20.2849 1.82214 20.5077 1.84757 20.7083 1.89645C20.8844 1.93937 21.1577 2.02591 21.3692 2.23737C21.5806 2.44883 21.6672 2.72212 21.7101 2.89828C21.759 3.09888 21.7844 3.32166 21.7977 3.54044C21.8246 3.98022 21.8077 4.50198 21.7768 5.00285C21.7457 5.50819 21.6985 6.0178 21.6594 6.43639C21.6184 6.87624 21.5907 7.17572 21.5888 7.31389C21.5829 7.72806 21.2424 8.05905 20.8282 8.05316C20.414 8.04728 20.083 7.70675 20.0889 7.29258C20.0918 7.09038 20.1246 6.73925 20.1596 6.36501L20.1659 6.29702C20.2052 5.87645 20.2502 5.38909 20.2797 4.91058C20.2914 4.72094 20.3004 4.53655 20.3057 4.36152L14.2981 10.3691ZM12 2.24996L11.9431 2.24996C9.87002 2.24994 8.23769 2.24993 6.96234 2.4214C5.65376 2.59733 4.60928 2.96606 3.78769 3.78765C2.9661 4.60923 2.59737 5.65372 2.42144 6.9623C2.24997 8.23765 2.24999 9.86998 2.25 11.943V12V12.0569C2.24999 14.1299 2.24997 15.7623 2.42144 17.0376C2.59737 18.3462 2.9661 19.3907 3.78769 20.2123C4.60928 21.0339 5.65376 21.4026 6.96234 21.5785C8.23769 21.75 9.87002 21.75 11.9431 21.75H12H12.0569C14.13 21.75 15.7623 21.75 17.0377 21.5785C18.3462 21.4026 19.3907 21.0339 20.2123 20.2123C21.0339 19.3907 21.4026 18.3462 21.5786 17.0376C21.75 15.7623 21.75 14.1299 21.75 12.0569V12C21.75 11.5857 21.4142 11.25 21 11.25C20.5858 11.25 20.25 11.5857 20.25 12C20.25 14.1425 20.2484 15.6739 20.0919 16.8377C19.9384 17.98 19.6481 18.6552 19.1516 19.1516C18.6552 19.648 17.98 19.9383 16.8378 20.0919C15.674 20.2484 14.1425 20.25 12 20.25C9.85748 20.25 8.32603 20.2484 7.16221 20.0919C6.01997 19.9383 5.34478 19.648 4.84835 19.1516C4.35192 18.6552 4.06164 17.98 3.90807 16.8377C3.75159 15.6739 3.75 14.1425 3.75 12C3.75 9.85744 3.75159 8.32599 3.90807 7.16217C4.06164 6.01993 4.35192 5.34474 4.84835 4.84831C5.34478 4.35188 6.01997 4.06159 7.16221 3.90802C8.32603 3.75155 9.85748 3.74996 12 3.74996C12.4142 3.74996 12.75 3.41417 12.75 2.99996C12.75 2.58575 12.4142 2.24996 12 2.24996Z",fill:"currentColor"})),GC=y(({className:e,...n})=>t.jsx(H6,{slotProps:{popper:{style:{zIndex:9999999999,maxWidth:"350px",pointerEvents:"none"},modifiers:[{name:"offset",options:{offset:[0,0]}}]}},classes:{tooltip:e},arrow:!0,placement:"top",...n,children:n.children}),{target:"ezeguf10"}
14)({name:"918yui",styles:"background-color:#000;font-size:12px;line-height:16px;font-family:'Inter',sans-serif;text-align:center;max-width:350px;font-weight:400;opacity:0.9!important;.MuiTooltip-arrow{&:before{background-color:#000;}}"}),we=({children:e,title:n,...s})=>n?t.jsx(GC,{title:n,...s,children:e}):t.jsx(t.Fragment,{children:e}),Tu=y(mr,{target:"e14jxwfy2"})("width:20px;height:20px;vertical-align:middle;margin-right:6px;color:",({theme:e})=>e.palette.blue.primary,";"),zC=y(Tu,{target:"e14jxwfy1"})({name:"y7udtu",styles:"width:16px;height:16px;vertical-align:sub;margin-right:0;margin-left:6px"}),WC=y(S,{target:"e14jxwfy0"})("cursor:",({cursor:e})=>e,";transition:color 0.2s;border-bottom:",({borderUnderline:e,underlineColor:n,theme:s})=>e?`1px solid ${n||s.palette.lightGray.light}`:"none",";& a{color:inherit;border-bottom:none!important;transition:color 0.2s;}&:hover,& a:hover{color:",({hoverColor:e})=>e,";}"),je=({tooltip:e,to:n="",disabled:s,openNewTab:r,external:a,children:i,onClick:o,hoverColor:l,color:u,variant:d="default",leftIcon:p,rightIcon:h,underline:m,customIcon:f,...C})=>{const{palette:E}=No(),b=t.jsxs(t.Fragment,{children:[!!p&&t.jsx(Tu,{}),!!f&&t.jsx("img",{src:f,alt:"custom icon",style:{marginRight:p?"5px":"0px"}}),i,!!h&&t.jsx(zC,{})]}),T=a?t.jsx("a",{href:n,target:r?"_blank":"_self",rel:r?"noopener noreferrer":"",children:b}):t.jsx(At,{to:n,children:b}),j=c.useMemo(()=>{switch(d){case"default":return{color:E.blue.primary,hoverColor:E.blue.extradark};case"darkBlue":return{color:E.primary.light,hoverColor:R1(E.primary.light,{red:-16,green:132,blue:148})};case"lightBlue":return{color:E.brand[300],hoverColor:E.brand[400]};case"title":return{color:E.primary.wlLight,hoverColor:R1(E.primary.wlLight,{red:-16,green:132,blue:148})};case"error":return{color:E.error.main,hoverColor:kn(E.error.light,.2)};case"primary":return{color:E.blue.black,hoverColor:E.blue.black}}},[d]);return t.jsx(we,{title:e,children:t.jsx(WC,{inline:!0,color:s?"#717171":u??j.color,hoverColor:s?"#717171":l??j.hoverColor,cursor:s?"not-allowed":"pointer",onClick:L=>s||(o==null?void 0:o(L)),borderUnderline:m,...C,children:s||!n?b:T})})},qC=y(S,{target:"e1ou9amj2"})({name:"16ceglb",styles:"font-weight:600"}),$a=y(qC,{target:"e1ou9amj1"})("color:",({theme:e})=>e.palette.additional.red50,";"),ZC=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_1623_125821)"},c.createElement("path",{d:"M7.99418 10.0002H8.00016M8.00016 8.00016V5.3335M14.6668 8.00016C14.6668 11.6821 11.6821 14.6668 8.00016 14.6668C4.31826 14.6668 1.3335 11.6821 1.3335 8.00016C1.3335 4.31826 4.31826 1.3335 8.00016 1.3335C11.6821 1.3335 14.6668 4.31826 14.6668 8.00016Z",stroke:"#D3241D",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_1623_125821"},c.createElement("rect",{width:16,height:16,fill:"white"})))),ju=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_757_18637)"},c.createElement("path",{d:"M14.6666 8.00033C14.6666 4.31843 11.6818 1.33366 7.99992 1.33366C4.31802 1.33366 1.33325 4.31843 1.33325 8.00033C1.33325 11.6822 4.31802 14.667 7.99992 14.667C11.6818 14.667 14.6666 11.6822 14.6666 8.00033Z",stroke:"currentColor",strokeWidth:1.5}),c.createElement("path",{d:"M5.33325 8.33333L6.99992 10L10.6666 6",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_757_18637"},c.createElement("rect",{width:16,height:16,fill:"currentColor"})))),YC=y(g,{target:"e1017rk70"})("border-radius:8px;*{::-webkit-scrollbar{height:6px;width:1px;}::-webkit-scrollbar-track{border-radius:0 0 5px 5px;}::-webkit-scrollbar-thumb{border-radius:100px;background-color:",({theme:e})=>e.palette.greyBlue[30],";}}"),He=({type:e="info",message:n,noBorder:s=!1,noPadding:r=!1,noIcon:a=!1,noDivider:i=!1,topContent:o,bottomContent:l,messageProps:u={},wrapperProps:d={},dividerProps:p={},iconColor:h})=>{const{palette:m}=Ve(),{color:f,Icon:C,background:E,border:b,iconColor:w}=c.useMemo(()=>{switch(e){case"success":return{color:m.success[550],background:`${m.success[50]}`,border:m.success[150],Icon:ju,iconColor:m.success[500]};case"error":return{color:m.additional.red50,background:`${m.error[50]}`,border:m.error[150],Icon:ZC,iconColor:"none"};case"gray":return{color:m.greyBlue[100],background:m.bg.greyBlue,border:m.greyBlue[30],Icon:es,iconColor:m.greyBlue[100]};default:return{color:m.greyBlue[100],background:m.bg.blue,border:"#c7d7fe",Icon:es,iconColor:m.greyBlue[100]}}},[e]);return t.jsxs(YC,{bgcolor:E,border:`1px solid ${s?"transparent":b}`,...r?{}:{p:" 6px 8px"},...d,children:[o,!i&&o&&n&&t.jsx(Ue,{bgcolor:`${b} !important`,my:"16px",...p}),t.jsxs(g,{display:"flex",alignItems:"center",gap:"6px",children:[!a&&t.jsx(C,{color:h||w,style:{flexShrink:0},width:"20px",height:"20px"}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:f,inline:!0,...u,children:n})]}),!i&&l&&n&&t.jsx(Ue,{bgcolor:`${b} !important`,my:"16px",...p}),l]})}
14,KC=e=>t.jsx(V6,{...e}),QC=y(KC,{target:"e109lshe0"})("box-sizing:border-box;max-width:140px;height:40px;font-size:14px;outline:0;padding:10px 32px 10px 12px!important;border:1px solid ",({theme:e})=>e.palette.light.dark,";border-radius:8px;&:focus{outline:none;border:1px solid ",({theme:e})=>e.palette.primary.main,";}& .react-datepicker__input-container .react-datepicker__calendar-icon{right:10px;}"),XC=Xn({name:"tkr9s8",styles:"& .react-datepicker__input-container{& .react-datepicker__calendar-icon{width:20px;height:20px;right:10px;top:10px;padding:0;}}"}),JC=Xn({name:"1l2pwjs",styles:"&.react-datepicker-popper{z-index:1000;}.react-datepicker__header{background-color:red;}.react-datepicker__header{background-color:#fff;border-bottom:1px solid #000;padding-top:10px;padding-bottom:12px;border-bottom:none;}& .react-datepicker__day-name{padding-top:12px;color:#656f7d;font-size:12px;font-weight:500;line-height:16px;}& .react-datepicker__day--selected,& .react-datepicker__day--selected:hover{background-color:#0069ff;color:#fff;}"}),ey=e=>t.jsx(QC,{wrapperClassName:XC,popperClassName:JC,...e}),ty=y(g,{target:"e14evyi90"})({name:"707zh3",styles:"width:5px;min-width:5px;height:5px;display:inline-block;border-radius:50%;margin-left:5px;vertical-align:middle"}),Mn=({color:e="#ffa500",tooltip:n={title:""},...s})=>t.jsx(we,{arrow:!0,...n,children:t.jsx(ty,{...s,bgcolor:e})}),ny=y("img",{target:"e1x7ri8x2"})("width:",e=>e.width,";height:",e=>e.height,";background-color:",({theme:e})=>e.palette.lightGray.main,";border-radius:50%;flex-shrink:0;"),sy=y(g,{target:"e1x7ri8x1"})("width:",e=>e.width,";height:",e=>e.height,";background-color:",({theme:e})=>e.palette.lightGray.main,";border-radius:50%;flex-shrink:0;"),ry=y(g,{target:"e1x7ri8x0"})({name:"18882nw",styles:"display:flex;white-space:pre;&>*:not(:first-child){margin-left:-36px;}"}),XH=({src:e,width:n="60px",height:s="60px"})=>e?t.jsx(ny,{src:e,width:n,height:s}):t.jsx(sy,{display:"flex",justifyContent:"center",alignItems:"center",width:n,height:s,children:t.jsx(yt,{color:"#e3e5ec",icon:yp})}),jr=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_757_24856)"},c.createElement("path",{d:"M14.137 0.799805H1.86305C1.58112 0.799805 1.31075 0.911799 1.11139 1.11115C0.912043 1.3105 0.800049 1.58088 0.800049 1.8628V14.1368C0.800049 14.4187 0.912043 14.6891 1.11139 14.8885C1.31075 15.0878 1.58112 15.1998 1.86305 15.1998H14.137C14.419 15.1998 14.6894 15.0878 14.8887 14.8885C15.0881 14.6891 15.2 14.4187 15.2 14.1368V1.8628C15.2 1.58088 15.0881 1.3105 14.8887 1.11115C14.6894 0.911799 14.419 0.799805 14.137 0.799805ZM5.09205 13.0668H2.92705V6.1898H5.09205V13.0668ZM4.00805 5.2368C3.76247 5.23542 3.5228 5.16132 3.31929 5.02386C3.11578 4.88639 2.95755 4.69172 2.86458 4.46442C2.7716 4.23711 2.74804 3.98736 2.79687 3.74668C2.8457 3.50599 2.96473 3.28517 3.13894 3.11207C3.31315 2.93898 3.53474 2.82136 3.77573 2.77408C4.01672 2.7268 4.26632 2.75196 4.49302 2.8464C4.71972 2.94083 4.91337 3.1003 5.04953 3.30469C5.18568 3.50908 5.25824 3.74922 5.25805 3.9948C5.26037 4.15922 5.22956 4.32243 5.16746 4.47469C5.10536 4.62695 5.01324 4.76514 4.89659 4.88104C4.77994 4.99694 4.64116 5.08817 4.4885 5.14929C4.33585 5.21042 4.17245 5.24018 4.00805 5.2368ZM13.072 13.0728H10.908V9.3158C10.908 8.2078 10.437 7.8658 9.82905 7.8658C9.18705 7.8658 8.55705 8.3498 8.55705 9.3438V13.0728H6.39205V6.1948H8.47405V7.1478H8.50205C8.71105 6.7248 9.44305 6.0018 10.56 6.0018C11.768 6.0018 13.073 6.7188 13.073 8.8188L13.072 13.0728Z",fill:"#C37D17"}),c.createElement("path",{d:"M13.072 13.0728H10.908V9.3158C10.908 8.2078 10.437 7.8658 9.82905 7.8658C9.18705 7.8658 8.55705 8.3498 8.55705 9.3438V13.0728H6.39205V6.1948H8.47405V7.1478H8.50205C8.71105 6.7248 9.44305 6.0018 10.56 6.0018C11.768 6.0018 13.073 6.7188 13.073 8.8188L13.072 13.0728Z",fill:"white"}),c.createElement("path",{d:"M5.09205 13.0668H2.92705V6.1898H5.09205V13.0668Z",fill:"white"}),c.createElement("path",{d:"M4.00805 5.2368C3.76247 5.23542 3.5228 5.16132 3.31929 5.02386C3.11578 4.88639 2.95755 4.69172 2.86458 4.46442C2.7716 4.23711 2.74804 3.98736 2.79687 3.74668C2.8457 3.50599 2.96473 3.28517 3.13894 3.11207C3.31315 2.93898 3.53474 2.82136 3.77573 2.77408C4.01672 2.7268 4.26632 2.75196 4.49302 2.8464C4.71972 2.94083 4.91337 3.1003 5.04953 3.30469C5.18568 3.50908 5.25824 3.74922 5.25805 3.9948C5.26037 4.15922 5.22956 4.32243 5.16746 4.47469C5.10536 4.62695 5.01324 4.76514 4.89659 4.88104C4.77994 4.99694 4.64116 5.08817 4.4885 5.14929C4.33585 5.21042 4.17245 5.24018 4.00805 5.2368Z",fill:"white"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_757_24856"},c.createElement("rect",{width:16,height:16,fill:"white"})))),ay=y(g,{target:"e18g78jx0"})({name:"1wkhyt3",styles:"border-radius:4px;padding:2px 6px;color:#1b8d2d;background-color:#ebf8f1;border:1px solid #cde5d5;box-sizing:border-box;height:24px"}),iy=({picture:e="",fallbackPicture:n="",name:s,degree:r,isOpenProfile:a,isPremium:i,title:o="",company:l="",showLogo:u=!1})=>{const{logoIconBlack:d}=Fe(),p=c.useMemo(()=>
14r?Number(r)===1?"•1st":Number(r)===2?"•2nd":"•3rd":"",[r]),h=c.useMemo(()=>u&&!e?d:e,[u,e]);return t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",overflow:"hidden",flexGrow:1,children:[t.jsx(ht,{src:h,fallbackSrc:n,firstLatter:(s??"")[0],icon:i?t.jsx(jr,{width:"14px",height:"14px"}):null}),t.jsxs(g,{width:"calc(100% - 48px)",children:[t.jsxs(g,{display:"flex",alignItems:"center",height:"24px",mb:"2px",children:[t.jsx(S,{medium:!0,mr:"6px",crop:!0,color:"blue.primary",children:s}),p&&t.jsx(S,{fontSize:"13px",color:"greyBlue.60",children:p}),a&&t.jsx(ay,{children:"Open"})]}),t.jsxs(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",crop:!0,children:[o,!!o&&!!l&&" - ",l]})]})]})},JH=c.memo(iy),oy=y(la,{target:"e1bj6ahg1"})("cursor:",({cursor:e})=>e,";position:relative;background-color:",({$backgroundColor:e})=>e??"#f2f5ff",";color:#1b4ed2;font-size:",({fontSize:e})=>e,";border:",({borderStyle:e})=>e,";img{object-fit:",({isCover:e})=>e?"cover":"contain",";}"),ly=y(g,{target:"e1bj6ahg0"})({name:"1fbz6px",styles:"width:14px;height:14px;position:absolute;bottom:0;right:0"}),cy=({href:e,avatarProps:n,src:s,fallbackSrc:r,children:a,firstLatter:i="",cursor:o,icon:l,width:u="40px",height:d="40px",letterFontSize:p="20px",borderStyle:h="none",isCover:m=!1,backgroundColor:f,...C})=>{const[E,b]=c.useState(()=>mi(s,r));c.useEffect(()=>{b(mi(s,r))},[s,r]);const w=()=>{E&&ih(E),b(mi(s,r))},I=t.jsx(oy,{sx:{width:u,height:d},$backgroundColor:f,cursor:o||e?"pointer":"default",...n,src:E,slotProps:{img:{loading:"lazy"}},fontSize:p,borderStyle:h,isCover:m,onError:w,children:i.toUpperCase()??a});return t.jsxs(g,{position:"relative",...C,children:[e?t.jsx("a",{href:e,children:I}):I,l&&t.jsx(ly,{children:l})]})},ht=c.memo(cy),dy=js(g)`
15  width: 100%;
16  background-color: ${({theme:e})=>e.palette.greyBlue[30]};
17  box-shadow: rgba(0, 0, 0, 0.1) 0 1px 2px inset;
18  overflow: hidden;
19  border-radius: 4px;
20`,uy=({progress:e,showInside:n=!1,bgColor:s="#288637",height:r="4px"})=>t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",children:[t.jsx(dy,{height:r,children:t.jsx(g,{width:`${e}%`,height:"100%",bgcolor:s,role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100})}),n&&t.jsxs(S,{fontSize:"14px",lineHeight:"20px",textAlign:"center",children:[e," %"]})]}),py=Xn({name:"r1hpvl",styles:"&:disabled{span,label{cursor:default!important;opacity:0.7;}}"}),vu=y("span",{target:"ebyzavi2"})({name:"laqpun",styles:"width:20px;height:20px;border:1px solid #d3d8e0;border-radius:50%;box-sizing:border-box"}),hy=y(vu,{target:"ebyzavi1"})("position:relative;border:6px solid ",({theme:e})=>e.palette.blue.primary,";box-sizing:border-box;"),my=y(Zn,{target:"ebyzavi0"})("padding:0;&~label{cursor:pointer;font-size:14px;font-weight:400;line-height:20px;color:",({theme:e})=>e.palette.greyNeutral[100],";}"),_n=({id:e,label:n,disabled:s,...r})=>t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",component:"fieldset",disabled:s,className:py,children:[t.jsx(my,{icon:t.jsx(vu,{}),checkedIcon:t.jsx(hy,{}),color:"default",id:e,disableRipple:!0,...r}),t.jsx("label",{htmlFor:e,children:n})]}),ji="dotlottie-wc",gy=y(yt,{target:"eedetqq0"})({name:"1sucl2f",styles:"animation:fa-spin 2s linear infinite"}),Pe=({type:e="circular",marginTop:n=e==="circular"?"50px":"0",size:s="16px",inline:r,description:a="",...i})=>{const o=c.useRef(null);return c.useEffect(()=>{if(e!=="circular"||!o.current)return;let l=document.querySelector('script[src*="dotlottie-wc"]');const u=()=>{if(o.current&&!o.current.querySelector(ji)){const d=document.createElement(ji);d.setAttribute("src","https://lottie.host/99b1825d-6387-4194-b73c-99078c043cbb/ciI4ZLGCXU.lottie"),d.setAttribute("style","width: 100px; height: 100px"),d.setAttribute("autoplay",""),d.setAttribute("loop",""),o.current.appendChild(d)}};return l?u():(l=document.createElement("script"),l.src="https://unpkg.com/@lottiefiles/[email protected]/dist/dotlottie-wc.js",l.type="module",l.onload=u,document.head.appendChild(l)),()=>{if(o.current){const d=o.current.querySelector(ji);d&&o.current.removeChild(d)}}},[e]),t.jsxs(g,{"data-testid":"spinner",component:"span",display:r?"inline":"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",marginTop:n,fontSize:s,...i,children:[e==="circular"?t.jsx("div",{ref:o,style:{width:"100px",height:"100px"}}):t.jsx(gy,{icon:ro.faSpinner}),a&&t.jsx(S,{color:"greyNeutral.60",mt:"24px",children:a})]})},xy=y(Uo,{target:"e614ht00"})("height:40px;padding:10px 12px;border-radius:8px;border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";background-color:#ffffff;font-size:14px;line-height:20px;box-sizing:border-box;&::placeholder{color:",({theme:e})=>e.palette.greyBlue[60],";}&:focus{outline:none;border:1px solid ",({theme:e})=>e.palette.blue.primary,";}"),Iu=e=>
20t.jsx(t.Fragment,{children:t.jsx(xy,{...e,options:{style:{base:{fontSmoothing:"antialiased",fontSize:"14px"},invalid:{color:"#d3241d",iconColor:"#d3241d"}}}})}),fy=y("span",{target:"esgqu3j1"})({name:"1dh6qjp",styles:"display:inline-block;height:20px"}),Cy=y(F6,{target:"esgqu3j0"})(({checkedBgColor:e,uncheckedBgColor:n})=>({width:30,height:20,padding:0,"& .MuiSwitch-switchBase":{padding:2.5,color:"#FFFFFF","&:hover":{backgroundColor:"transparent"},"& .MuiSwitch-thumb":{width:15,height:15,boxShadow:"none",backgroundColor:"#FFFFFF"},"& + .MuiSwitch-track":{borderRadius:16,backgroundColor:n,opacity:1},"&.Mui-checked":{transform:"translateX(10px)",color:"#FFFFFF","&:hover":{backgroundColor:"transparent"},"& + .MuiSwitch-track":{backgroundColor:e,opacity:1}}},"& .MuiSwitch-track":{borderRadius:16,backgroundColor:n,opacity:1}}),""),Us=({name:e,setValue:n,checkedBgColor:s,uncheckedBgColor:r,tooltip:a={title:""},...i})=>{const o=(l,u)=>{var d;e&&n&&n(e,u),(d=i.onChange)==null||d.call(i,l,u)};return t.jsx(we,{...a,children:t.jsx(fy,{children:t.jsx(Cy,{name:e,checkedBgColor:s||"#217F2F",uncheckedBgColor:r||"#BA2520",onChange:o,...i})})})},ac=y(g,{target:"eeikl2x0"})({name:"1jeax2a",styles:"display:flex;align-items:center;width:fit-content;gap:8px"}),yy=({isShared:e,onChange:n,wrapperProps:s={}})=>{const{checkFeature:r}=We(),[a,i]=r(X.sequenceTeamTemplates);return t.jsxs(g,{display:"flex",gap:"16px",...s,children:[t.jsx(ac,{onClick:()=>n(Jn.personal),children:t.jsx(_n,{label:"Personal",checked:!e})}),t.jsx(we,{title:i,children:t.jsx(ac,{className:Ee({disabled:!a}),onClick:()=>a&&n(Jn.team),children:t.jsx(_n,{label:"Team",disabled:!a,checked:e})})})]})},Ey=y(yt,{target:"e1gl33ec1"})({name:"1sucl2f",styles:"animation:fa-spin 2s linear infinite"}),Sy=y(g,{target:"e1gl33ec0"})("box-sizing:border-box;cursor:pointer;color:",({theme:e})=>e.palette.whitelabel.accent,";background-color:",({backgroundColor:e,theme:n})=>e||n.palette.greyNeutral[0],";border:",({border:e,theme:n})=>e||`1px solid ${n.palette.greyBlue[30]} !important`,";border-radius:8px;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;min-width:32px;transition:0.2s;&:hover{background-color:",({theme:e})=>e.palette.bg.greyBlue,";}&.m{width:32px;height:32px;min-width:32px;}&.l{width:40px;height:40px;min-width:40px;}& svg path{color:",({color:e})=>e,";}",({disabled:e})=>e?`
21        cursor: not-allowed;
22        opacity: 0.5;
23      `:"",";"),ar=({tooltip:e,tooltipProps:n,icon:s,disabled:r,processing:a,children:i,onClick:o,color:l,border:u,iconComponent:d,backgroundColor:p,size:h="m",className:m,...f})=>{const{palette:C}=Ve(),E=r||a,w=i||(d||s&&t.jsx(yt,{icon:s,fontSize:"14px"})),I=T=>{!E&&o&&o(T)};return t.jsx(we,{...n,title:e,children:t.jsx(Sy,{...f,color:l||C.whitelabel.accent,onClick:I,disabled:E,backgroundColor:p,border:u,className:Ee(m,{[h]:!0}),children:a?t.jsx(Ey,{size:"lg",icon:f2}):w})})},by=y("span",{target:"e14g4btt8"})("flex-shrink:0;",({margin:e})=>e&&`margin: ${e}`,";",({wrapperStyle:e})=>e&&`
24    ${e.width&&`width: ${e.width}`};
25    ${e.cursor&&`cursor: ${e.cursor}`};
26  `,";"),Bs=y("button",{target:"e14g4btt7"})(({color:e,borderColor:n,processing:s,disabled:r,size:a,noPadding:i})=>({fontFamily:"Inter, sans-serif",fontSize:"14px",fontWeight:600,lineHeight:"20px",display:"flex",alignItems:"center",gap:"8px",justifyContent:"center",border:"1px solid",borderRadius:"8px",color:e?`${e} !important`:"#ffffff",cursor:"pointer",opacity:s?.5:1,pointerEvents:`${r||s?"none":"auto"}`,transition:"0.1s",...n?{borderColor:`${n} !important`}:{},"& .left-icon-wrapper, & .right-icon-wrapper":{display:"flex",alignItems:"center",justifyContent:"center"},"&.m":{height:"40px",padding:"10px 16px","&.left-icon":{padding:"10px 16px 10px 12px"},"&.right-icon":{padding:"10px 12px 10px 16px"},"&.icon-only":{padding:"10px"}},"&.s":{height:"32px",padding:"6px 12px","&.left-icon":{padding:"6px 12px 6px 8px"},"&.right-icon":{padding:"6px 8px 6px 12px"},"&.icon-only":{padding:"6px"}},...i?{padding:"0px !important"}:{},...a!=null&&a.width?{width:a.width}:{},...a!=null&&a.height?{height:a.height}:{}}),""),Ly=y(Bs,{target:"e14g4btt6"})(({theme:{palette:e,isBrandingApplied:n}})=>({color:Ra(e.primary.dark),background:e.whitelabel.accent,borderColor:e.whitelabel.accent,"&:hover":{background:n?kn(e.whitelabel.accent,.1):e.blue.medium,borderColor:n?kn(e.whitelabel.accent,.1):e.blue.medium},"&:active":{background:n?on(e.whitelabel.accent,.1):e.blue.extradark,borderColor:n?on(e.whitelabel.accent,.1):e.blue.extradark},"&:disabled":{background:e.greyNeutral[40],borderColor:e.greyNeutral[40]}}),""),ic=y(Bs,{target:"e14g4btt5"})(({theme:{palette:e,isBrandingApplied:n}})=>({color:e.whitelabel.accent,background:"#ffffff",borderColor:e.whitelabel.accent,"&:hover":{background:e.bg.blue},"&:active":{borderColor:n?on(e.whitelabel.accent,.1):e.blue.extradark,color:n?on(e.whitelabel.accent,.1):e.blue.extradark,background:e.bg.blue},"&:disabled":{color:e.greyNeutral[40],background:e.greyNeutral[10],borderColor:e.greyNeutral[20]}}),""),wy=y(Bs,{target:"e14g4btt4"})(({theme:{palette:e,isBrandingApplied:n}})=>({color:e.whitelabel.accent,background:"transparent",borderColor:"transparent","&:hover":{background:e.bg.blue},"&:active":{color:n?on(e.whitelabel.accent,.1):e.blue.extradark,background:e.bg.blue},"&:disabled":{background:e.greyNeutral[30],color:e.greyNeutral[40]}}),""),Ty=y(Bs,{target:"e14g4btt3"})(({theme:{palette:e}})=>({color:"#ffffff",background:e.additional.red50,borderColor:e.additional.red50,"&:hover":{background:e.additional.red40,borderColor:e.additional.red40},"&:active":{borderColor:e.additional.redDark,background:e.additional.redDark},"&:disabled":{background:e.greyNeutral[40],borderColor:e.greyNeutral[40]}}),""),jy=y(Bs,{target:"e14g4btt2"})(({theme:{palette:e}})=>({color:e.additional.red50,background:"#ffffff",borderColor:e.additional.red50,"&:hover":{background:"#fce9e8"},"&:active":{borderColor:e.additional.redDark,color:e.additional.redDark,background:"#fce9e8"},"&:disabled":{color:e.greyNeutral[40],background:e.greyNeutral[10],borderColor:e.greyNeutral[20]}}),""),vy=y(Bs,{target:"e14g4btt1"})(({theme:{palette:e}})=>({color:e.additional.red50,background:"transparent",borderColor:"transparent","&:hover":{background:"#fce9e8"},"&:active":{color:e.additional.redDark,background:"#fce9e8"},"&:disabled":{background:e.greyNeutral[30],color:e.greyNeutral[40]}}),""),Iy=y(yt,{target:"e14g4btt0"})({name:"7baj0u",styles:"animation:fa-spin 2s linear infinite;height:15px"}),k=({children:e,variant:n="primary",tooltip:s={title:""},processing:r=!1,margin:a="",color:i="",scale:o="m",leftIcon:l,rightIcon:u,wrapperStyle:d,iconOnly:p=!1,...h})=>
26{const f={primary:Ly,secondary:ic,transparent:wy,warning:Ty,"warning-secondary":jy,"warning-transparent":vy}[n]||ic;return t.jsx(we,{arrow:!0,placement:"top",...s,children:t.jsx(by,{margin:a,wrapperStyle:d,children:t.jsx(f,{...h,processing:r,color:i,translate:"no",className:Ee(h.className,{[o]:!0,"left-icon":!!l,"right-icon":!!u,"icon-only":p},"notranslate"),children:r?t.jsx(Iy,{size:"lg",icon:f2}):t.jsxs(t.Fragment,{children:[l&&t.jsx("span",{className:"left-icon-wrapper",children:l}),e,u&&t.jsx("span",{className:"right-icon-wrapper",children:u})]})})})})},_y=e=>c.createElement("svg",{width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{id:"Group 11 Copy 2"},c.createElement("path",{id:"Fill 1",fillRule:"evenodd",clipRule:"evenodd",d:"M21.7861 8.84572H20.8997V8.79989H10.9999V13.1998H17.2175C16.3091 15.761 13.8727 17.5998 10.9999 17.5998C7.35524 17.5998 4.39994 14.6454 4.39994 10.9999C4.39994 7.35524 7.35524 4.39994 10.9999 4.39994C12.6819 4.39994 14.2127 5.03427 15.3787 6.07192L18.4899 2.95988C16.5255 1.12932 13.8983 0 10.9999 0C4.92519 0 0 4.92519 0 10.9999C0 17.0745 4.92519 21.9997 10.9999 21.9997C17.0745 21.9997 21.9997 17.0745 21.9997 10.9999C21.9997 10.262 21.9236 9.54238 21.7861 8.84572Z",fill:"#FFC107"}),c.createElement("g",{id:"Group 6"},c.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:1,y:0,width:18,height:9},c.createElement("path",{id:"Clip 5",fillRule:"evenodd",clipRule:"evenodd",d:"M1.26904 0H18.4902V8.53094H1.26904V0Z",fill:"white"})),c.createElement("g",{mask:"url(#mask0)"},c.createElement("path",{id:"Fill 4",fillRule:"evenodd",clipRule:"evenodd",d:"M1.26904 5.87985L4.8825 8.53082C5.86057 6.10902 8.22921 4.39946 11.0003 4.39946C12.6823 4.39946 14.2131 5.0347 15.3791 6.07144L18.4902 2.95939C16.5259 1.12883 13.8978 -0.000488281 11.0003 -0.000488281C6.77539 -0.000488281 3.11152 2.38465 1.26904 5.87985Z",fill:"#FF3D00"}))),c.createElement("path",{id:"Fill 7",fillRule:"evenodd",clipRule:"evenodd",d:"M11.0001 22.0001C13.8418 22.0001 16.4231 20.912 18.3746 19.1447L14.9702 16.2637C13.8665 17.0997 12.4934 17.6002 11.0001 17.6002C8.13927 17.6002 5.71013 15.776 4.79439 13.2305L1.20752 15.9933C3.028 19.5563 6.72487 22.0001 11.0001 22.0001Z",fill:"#4CAF50"}),c.createElement("path",{id:"Fill 9",fillRule:"evenodd",clipRule:"evenodd",d:"M21.7863 8.84564H20.8999V8.7998H11V13.1997H17.2177C16.7813 14.4299 15.9903 15.4914 14.9691 16.2632C14.9691 16.2632 14.97 16.2632 14.97 16.2623L18.3745 19.1433C18.1343 19.3624 21.9999 16.4997 21.9999 10.9998C21.9999 10.2619 21.9238 9.5423 21.7863 8.84564Z",fill:"#1976D2"}))),Ay=new rs,eV=({setError:e,onSuccess:n,redirectTo:s,isSignup:r=!1})=>{const{state:a={}}=mt(),i=a,[o,l]=c.useState(""),u=ko({onSuccess:({code:m})=>l(m),flow:"auth-code",scope:"profile email"}),{isLoading:d,error:p}=Zg({...i,authorizationCode:o||"",referralCode:Ay.get("referralCode")},r,s,{onSuccess:n});c.useEffect(()=>{p!=null&&p.statusCode&&e(p.statusCode)},[p,e]);const h=()=>{u()};return t.jsxs(k,{variant:"secondary",type:"button",disabled:d,onClick:h,size:{width:"100%"},children:[t.jsx(_y,{style:{marginRight:"8px",verticalAlign:"middle"}}),"Continue with Google"]})},Ny=e=>c.createElement("svg",{width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M10.4535 10.4535H0V0H10.4535V10.4535Z",fill:"#F1511B"}),c.createElement("path",{d:"M21.9964 10.4535H11.542V0H21.9955V10.4535H21.9964Z",fill:"#80CC28"}),c.createElement("path",{d:"M10.4535 21.9999H0V11.5464H10.4535V21.9999Z",fill:"#00ADEF"}),c.createElement("path",{d:"M21.9964 21.9999H11.542V11.5464H21.9955V21.9999H21.9964Z",fill:"#FBBC09"})),ky=new rs,tV=({redirectTo:e,setError:n,onSuccess:s,isSignup:r=!1})=>{const{state:a}=mt(),i=a,{getMicrosoftCodeUrl:o,isLoading:l}=qg(e),{isLoading:u,error:d}=Yg({...i,code:(i==null?void 0:i.code)??"",referralCode:ky.get("referralCode")},r,{onSuccess:s}),p=()=>{o()};return c.useEffect(()=>{d!=null&&d.statusCode&&n(d.statusCode)},[d,n]),t.jsxs(k,{variant:"secondary",type:"button",disabled:l||u,onClick:p,size:{
26width:"100%"},children:[t.jsx(Ny,{style:{marginRight:"8px",verticalAlign:"middle"}}),r?"Sign up":"Sign in"," with Microsoft"]})},_u=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M14.75 0.75L0.75 14.75",stroke:"#8A8A8A",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M0.75 0.75L14.75 14.75",stroke:"#8A8A8A",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ry=fr`
27  from {
28    transform: translateY(0);
29    max-height: 48px;
30    opacity: 1;
31  }
32  to {
33    transform: translateY(-100%);
34    max-height: 0;
35    opacity: 0;
36  }
37`,My=y(g,{target:"eryrwcs2"})("display:flex;align-items:center;justify-content:space-between;height:48px;gap:4px;padding:0 12px;overflow:hidden;background:linear-gradient(90deg, #1b4ed2 0%, #741ac9 100%);animation:",({isClosing:e})=>e?Ry:"none"," 0.3s ease-out forwards;"),Py=y(k,{target:"eryrwcs1"})({name:"rt7kus",styles:"height:32px!important;padding:6px 12px!important;font-weight:600;border:none;border-radius:6px;color:#092059"}),Oy=y(g,{target:"eryrwcs0"})({name:"r76z5f",styles:"width:16px;height:16px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin-left:4px;svg{width:13px;height:13px;}svg path{stroke:#ffffff!important;}"}),Dy=({onAccept:e})=>{const[n,s]=c.useState(!0),[r,a]=c.useState(!1),i=()=>{xu(),a(!0),setTimeout(()=>{s(!1)},300)};return n?t.jsxs(My,{isClosing:r,children:[t.jsx(g,{}),t.jsxs(g,{display:"flex",alignItems:"center",gap:"12px",children:[t.jsxs(S,{color:"#ffffff",fontSize:"14px",lineHeight:"20px",fontWeight:400,children:["Enjoyed your 3+3 deal? Keep the momentum going!"," ",t.jsx(S,{inline:!0,color:"#ffffff",fontSize:"14px",lineHeight:"20px",fontWeight:600,children:"Renew now for 3 months and get another 3 months FREE"})]}),t.jsx(Py,{variant:"white",onClick:e,children:"Accept the Deal"})]}),t.jsx(Oy,{onClick:i,children:t.jsx(_u,{})})]}):null},Uy=e=>c.createElement("svg",{width:22,height:22,viewBox:"0 0 22 22",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.9428 0.75H11.0572C13.2479 0.749987 14.9686 0.749976 16.312 0.930594C17.6886 1.11568 18.7809 1.50272 19.6391 2.36091C20.4973 3.21911 20.8843 4.31137 21.0694 5.68802C21.25 7.03144 21.25 8.75212 21.25 10.9428V11.0572C21.25 13.2479 21.25 14.9686 21.0694 16.312C20.8843 17.6886 20.4973 18.7809 19.6391 19.6391C18.7809 20.4973 17.6886 20.8843 16.312 21.0694C14.9686 21.25 13.2479 21.25 11.0572 21.25H10.9428C8.75212 21.25 7.03144 21.25 5.68802 21.0694C4.31137 20.8843 3.21911 20.4973 2.36091 19.6391C1.50271 18.7809 1.11568 17.6886 0.930594 16.312C0.749976 14.9686 0.749987 13.2479 0.75 11.0572V10.9428C0.749987 8.75212 0.749976 7.03144 0.930594 5.68802C1.11568 4.31137 1.50272 3.21911 2.36091 2.36091C3.21911 1.50271 4.31137 1.11568 5.68802 0.930594C7.03144 0.749976 8.75212 0.749987 10.9428 0.75ZM5.8879 2.41722C4.67757 2.57994 3.95462 2.88853 3.42157 3.42157C2.88853 3.95462 2.57994 4.67757 2.41722 5.8879C2.25159 7.11979 2.25 8.73963 2.25 11C2.25 13.2604 2.25159 14.8802 2.41722 16.1121C2.57994 17.3224 2.88853 18.0454 3.42157 18.5784C3.95462 19.1115 4.67757 19.4201 5.88789 19.5828C6.15602 19.6188 6.44252 19.6471 6.75 19.6693V2.33071C6.44252 2.35289 6.15602 2.38117 5.8879 2.41722ZM8.25 2.26709V19.7329C9.04633 19.7497 9.95467 19.75 11 19.75C12.0453 19.75 12.9537 19.7497 13.75 19.7329V2.26709C12.9537 2.25034 12.0453 2.25 11 2.25C9.95467 2.25 9.04633 2.25034 8.25 2.26709ZM15.25 2.33071V19.6693C15.5575 19.6471 15.844 19.6188 16.1121 19.5828C17.3224 19.4201 18.0454 19.1115 18.5784 18.5784C19.1115 18.0454 19.4201 17.3224 19.5828 16.1121C19.7484 14.8802 19.75 13.2604 19.75 11C19.75 8.73963 19.7484 7.1198 19.5828 5.8879C19.4201 4.67757 19.1115 3.95462 18.5784 3.42157C18.0454 2.88853 17.3224 2.57994 16.1121 2.41722C15.844 2.38117 15.5575 2.35289 15.25 2.33071Z",fill:"currentColor"})),By=y(Jt,{target:"en3kxcc0"})({name:"cd7580",styles:"width:36px;height:32px;border-radius:8px;background:#ffffff1a"}),Hy=({shown:e,columns:n,onSaveColumns:s})=>{const[r,a]=c.useState(e.map(d=>d.key)),{whitelabel:i}=Je(),o=d=>{var p;return i.isActive&&((p=i.theme)==null?void 0:p.navigationTextColor)||d},l=(d,p)=>{if(d.target.checked){a(h=>[...h,p]);return}a(h=>h.filter(m=>m!==p))},u=()=>{const d=n.filter(p=>r.includes(p.key)).map(p=>p.key);s(d)};
37return t.jsx(_b,{showActionsPanel:!0,noControlActiveStyle:!0,onApply:u,control:t.jsx(g,{p:"5px 4px",display:"flex",alignItems:"center",children:t.jsx(By,{children:t.jsx(Uy,{color:o("#ffffff"),height:"20px",width:"20px"})})}),slotProps:{paper:{style:{borderRadius:"8px"}}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:t.jsx(g,{width:"200px",p:"8px",maxHeight:"300px",overflow:"auto",children:n.map(d=>{const p=r.some(h=>h===d.key);return t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",py:"4px",children:[t.jsx($e,{type:"checkbox",onChange:h=>l(h,d.key),checked:p}),t.jsx(S,{children:d.label})]},d.key)})})})},Vy=y(g,{shouldForwardProp:e=>On(e),target:"e6ttdu41"})("position:fixed;right:0;bottom:0;top:0;left:0;background-color:",({isOpen:e})=>e?"rgba(0, 0, 0, 0.5)":"transparent",";z-index:",({isOpen:e})=>e?1e3:-1,";transition:opacity 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,z-index 0ms ",({isOpen:e})=>e?"0ms":"300ms",";opacity:",({isOpen:e})=>e?1:0,";"),Fy=y(g,{shouldForwardProp:e=>On(e),target:"e6ttdu40"})("background-color:#ffffff;height:100%;z-index:1200;position:fixed;top:0;outline:0;right:0;transform:",({isOpen:e})=>e?"translateX(0)":"translateX(100%)",";transition:transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94) 0ms;box-shadow:",({isOpen:e})=>e?"-4px 0 20px rgba(0, 0, 0, 0.15)":"none",";display:flex;flex-direction:column;overflow:hidden;"),$y={name:"1sy9iaq",styles:"body{overflow:hidden;}"},Hs=({isOpen:e,onClose:n,closeOnBackdropClick:s=!0,children:r,...a})=>{if(typeof document>"u")return null;const i=()=>{s&&n()};return Ro.createPortal(t.jsx(Vy,{isOpen:e,onClick:i,children:t.jsxs(Fy,{isOpen:e,onClick:o=>o.stopPropagation(),...a,children:[e&&t.jsx(Mo,{styles:$y}),r]})}),document.body)},Au=({children:e,...n})=>t.jsx(g,{p:"20px",boxSizing:"border-box",bgcolor:"bg.greyBlue",flexGrow:"1",minHeight:0,overflow:"auto",...n,children:t.jsx(g,{borderRadius:"12px",bgcolor:"#ffffff",p:"16px",boxSizing:"border-box",children:e})}),Gy=y(g,{target:"e8ektfm0"})({name:"rxubfw",styles:"height:68px;display:flex;align-items:center;justify-content:space-between;padding:22px 24px;box-sizing:border-box;border-top:1px solid #ebebeb"}),Nu=({title:e,onClose:n})=>t.jsxs(g,{height:"68px",display:"flex",alignItems:"center",justifyContent:"space-between",p:"21px 24px",boxSizing:"border-box",borderBottom:"1px solid #ebebeb",children:[t.jsx(S,{fontSize:"20px",lineHeight:"26px",medium:!0,crop:!0,children:e}),t.jsx(Jt,{onClick:n,width:"24px",height:"24px",flexShrink:"0",children:t.jsx(Xt,{})})]}),zy=y(g,{target:"e19e1nja2"})("border-width:1px;border-style:solid;border-radius:8px;cursor:pointer;box-sizing:border-box;transition:0.2s;&:hover{border-color:",({theme:e})=>e.palette.blue.extradark,";background-color:",({theme:e})=>e.palette.bg.blue,";}&.disabled{cursor:default;}"),Wy=y($6,{target:"e19e1nja1"})("& .MuiPaper-root{border-radius:8px;}& .MuiMenu-paper{transform:translateY(6px)!important;width:",({menuWidth:e})=>e||"auto",";max-height:500px;box-shadow:0 4px 13px 0 #00000014,0 0 4px 0 #0000000f;}& .MuiList-root{background-color:#ffffff;padding:4px;border-radius:8px;}"),bs=y(Po,{target:"e19e1nja0"})("color:",({theme:e,color:n})=>n||e.palette.greyBlue[100],";font-size:14px;font-family:'Inter',sans-serif;border-radius:6px;padding:6px 8px;&.chosen,&:hover{background-color:",({theme:e})=>e.palette.greyNeutral[10],";}svg{vertical-align:middle;margin-right:6px;}"),gr=({controlContent:e,controlProps:n={},menuProps:s={},centralizeControl:r=!1,noControlBorder:a=!1,noStyleControl:i=!1,tooltip:o={title:""},disabled:l=!1,children:u,menuWidth:d,lockOutsideClose:p=!1})=>{const{palette:h}=Ve(),[m,f]=c.useState(null),C=T=>{if(!l){if(m){f(null);return}f(T.currentTarget)}},E=(T,j)=>{p&&(j==="backdropClick"||j==="escapeKeyDown")||(document.activeElement instanceof HTMLElement&&document.activeElement.blur(),f(null))},b=()=>f(null),w=a?"transparent":h.greyBlue[30],I=i?{borderColor:"transparent !important"}:{borderColor:m?h.blue.extradark:w,bgcolor:m?h.bg.blue:"transparent",padding:"10px 12px",height:"40px"};return t.jsxs(t.Fragment,{children:[t.jsx(we,{...o,children:t.jsx(zy,{...m?{"aria-controls":"basic-menu","aria-expanded":"true"}:{},...I,...n,...r?{display:"flex",justifyContent:"center",alignItems:"center"}:{},className:Ee(n==null?void 0:n.className,{disabled:l}),onClick:C,translate:"no",children:e})}),t.jsx(Wy,{...s,menuWidth:d,anchorEl:m,open:!!m,onClose:E,onBlur:p?void 0:b,disableAutoFocusItem:!0,disableRestoreFocus:!0,translate:"no",className:"notranslate",children:u})]})},qy=y(g,{target:"e152k90x1"})("border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:12px;background-color:#ffffff;padding:16px;margin:24px auto;width:460px;max-width:100%;box-sizing:border-box;align-self:flex-start;"),Zy=y(g,{target:"e152k90x0"})({name:"1s7kqrt",styles:"display:flex;justify-content:center;width:428px;max-width:100%;height:240px;border-radius:8px;overflow:hidden"}),Yy=({src:e,title:n,description:s,videoText:r="Watch this quick video tutorial to learn how to do it step by step.",children:a})=>{const{whitelabel:i}=Je();return t.jsxs(g,{height:"100%",bgcolor:"#ffffff",display:"flex",flexDirection:"column",justifyContent:"center",borderRadius:"12px",p:"16px",children:[t.jsx(S,{semibold:!0,fontSize:"20px",lineHeight:"28px",color:"greyNeutral.100",mb:"8px",textAlign:"center",children:n}),s&&t.jsx(S,{color:"greyNeutral.60",textAlign:"center",children:s}),a&&t.jsx(g,{mt:"8px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",children:a}),!(i!=null&&i.isWhiteLabelUser)&&t.jsxs(qy,{children:[t.jsx(Zy,{children:t.jsx("iframe",{className:"vimeo-frame",src:`${e}?h=453bfddb4e&color=527ceb&title=0&byline=0&portrait=0`,width:"428",height:"240",allowFullScreen:!0,style:{flexShrink:0,border:0}})}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyNeutral.60",mt:"12px",textAlign:"center",children:r})]})]})},Ky=y(k,{target:"eox9uiy0"})({name:"17f8xax",styles:"position:relative;display:flex;white-space:nowrap;align-items:center;gap:8px"}),oc=e=>t.jsx(Ky,{...e}),Ga=y(g,{target:"er3rzpp0"})({name:"lhyimz",styles:"display:flex;align-items:center;padding:20px 20px 16px 20px;gap:16px;height:76px;box-sizing:border-box"}),ku=y("span",{target:"e9c2il1"})("padding:6px 10px;color:",({theme:e})=>e.palette.greyBlue[60],";border-radius:4px;margin-right:-4px;min-width:9px;text-align:center;font-size:12px;line-height:16px;font-weight:600;box-sizing:border-box;height:28px;border:1px solid rgba(21, 40, 61, 0.1);background:",({theme:e})=>e.palette.bg.blue,";display:flex;align-items:center;transition:background-color 0.2s ease,color 0.2s ease,border-color 0.2s ease;"),Qy=y(At,{target:"e9c2il0"})("font-size:14px;line-height:28px;font-weight:500;padding:4px 8px;border-radius:6px;color:",({theme:e})=>e.palette.greyBlue[60],";display:flex;align-items:center;gap:6px;width:max-content;transition:background-color 0.2s ease,color 0.2s ease,box-shadow 0.2s ease;&.active{background-color:",({theme:e})=>e.palette.blue.dark,";color:#ffffff;",ku,"{background-color:#ffffff;color:",({theme:e})=>e.palette.blue.medium,";}}&.disabled{cursor:not-allowed;opacity:0.7;}"),Nl=({children:e,pathname:n=location.pathname,to:s,isActive:r,disabled:a,tooltip:i,tooltipProps:o,count:l,...u})=>{const d=p=>{var h;if(a){p.preventDefault();return}(h=u.onClick)==null||h.call(u,p)};return t.jsx(we,{title:i,...o,children:t.jsxs(Qy,{to:s,className:Ee({disabled:a,active:ao(r)?n===s:r}),...u,onClick:d,children:[e,!ao(l)&&t.jsx(ku,{children:l})]})})},Ru=y(g,{target:"e1uzaboj0"})({name:"ughfeg",styles:"background-color:#ffffff;padding:2px;border-radius:8px;display:flex;align-items:center;gap:4px"}),za=({children:e,...n})=>t.jsx(S,{semibold:!0,fontSize:"24px",lineHeight:"30px",color:"whitelabel.title",...n,children:e}),Xy=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M10.7501 5C10.7501 4.58579 10.4143 4.25 10.0001 4.25C9.58587 4.25 9.25008 4.58579 9.25008 5L10.7501 5ZM9.25008 16.6667C9.25008 17.0809 9.58587 17.4167 10.0001 17.4167C10.4143 17.4167 10.7501 17.0809 10.7501 16.6667H9.25008ZM10.0001 5.01357L9.44236 5.51502C9.5846 5.67322 9.78734 5.76357 10.0001 5.76357C10.2128 5.76357 10.4156 5.67322 10.5578 5.51502L10.0001 5.01357ZM4.98388 2.73786L4.8436 3.47463L4.98388 2.73786ZM8.53273 16.8192L8.17655 17.4793L8.53273 16.8192ZM4.98388 15.6108L4.8436 16.3476L4.98388 15.6108ZM15.0163 2.73786L15.1566 3.47463L15.0163 2.73786ZM11.4674 16.8192L11.8236 17.4793L11.4674 16.8192ZM15.0163 15.6108L15.1566 16.3476L1
375.0163 15.6108ZM9.25008 5L9.25008 16.6667H10.7501L10.7501 5L9.25008 5ZM10.5578 4.51212C9.84667 3.72119 8.02096 2.55265 5.12416 2.0011L4.8436 3.47463C7.51545 3.98335 9.00868 5.03266 9.44236 5.51502L10.5578 4.51212ZM8.88891 16.1592C7.96426 15.6602 6.71021 15.176 5.12416 14.874L4.8436 16.3476C6.28384 16.6218 7.39164 17.0557 8.17655 17.4793L8.88891 16.1592ZM0.916748 5.87176L0.916748 11.8791H2.41675L2.41675 5.87176H0.916748ZM5.12416 14.874C4.25927 14.7094 3.66731 14.5957 3.23975 14.4687C2.80757 14.3402 2.6818 14.2347 2.63563 14.1775L1.46887 15.1202C1.80819 15.5402 2.29952 15.7541 2.81243 15.9065C3.32996 16.0603 4.01107 16.1891 4.8436 16.3476L5.12416 14.874ZM0.916748 11.8791C0.916748 12.6261 0.915693 13.2476 0.969358 13.7396C1.02395 14.2401 1.1443 14.7185 1.46887 15.1202L2.63563 14.1775C2.5747 14.1021 2.50229 13.9599 2.46051 13.5769C2.4178 13.1854 2.41675 12.6606 2.41675 11.8791H0.916748ZM5.12416 2.0011C4.44636 1.87205 3.83889 1.75343 3.32685 1.75008C2.76272 1.74638 2.24717 1.87935 1.77939 2.28019L2.75541 3.41922C2.88828 3.30536 3.0257 3.24813 3.31701 3.25004C3.66041 3.2523 4.11085 3.33511 4.8436 3.47463L5.12416 2.0011ZM2.41675 5.87176C2.41675 5.01149 2.41887 4.45353 2.4829 4.04228C2.54164 3.66502 2.63738 3.52036 2.75541 3.41922L1.77939 2.28019C1.29677 2.69374 1.09218 3.22432 1.00076 3.81152C0.914624 4.36474 0.916748 5.06046 0.916748 5.87176H2.41675ZM10.5578 5.51502C10.9915 5.03266 12.4847 3.98335 15.1566 3.47463L14.876 2.0011C11.9792 2.55265 10.1535 3.72119 9.44236 4.51212L10.5578 5.51502ZM11.8236 17.4793C12.6085 17.0557 13.7163 16.6218 15.1566 16.3476L14.876 14.874C13.29 15.176 12.0359 15.6602 11.1112 16.1592L11.8236 17.4793ZM17.5834 5.87176V11.8791H19.0834L19.0834 5.87176L17.5834 5.87176ZM15.1566 16.3476C15.9891 16.1891 16.6702 16.0603 17.1877 15.9065C17.7006 15.7541 18.192 15.5402 18.5313 15.1202L17.3645 14.1775C17.3184 14.2347 17.1926 14.3402 16.7604 14.4687C16.3329 14.5957 15.7409 14.7094 14.876 14.874L15.1566 16.3476ZM17.5834 11.8791C17.5834 12.6606 17.5824 13.1854 17.5396 13.5769C17.4979 13.9599 17.4255 14.1021 17.3645 14.1775L18.5313 15.1202C18.8559 14.7185 18.9762 14.2401 19.0308 13.7396C19.0845 13.2476 19.0834 12.6261 19.0834 11.8791H17.5834ZM15.1566 3.47463C15.8893 3.33511 16.3398 3.2523 16.6832 3.25004C16.9745 3.24813 17.1119 3.30536 17.2448 3.41922L18.2208 2.28019C17.753 1.87935 17.2374 1.74638 16.6733 1.75008C16.1613 1.75343 15.5538 1.87205 14.876 2.0011L15.1566 3.47463ZM19.0834 5.87176C19.0834 5.06046 19.0855 4.36474 18.9994 3.81152C18.908 3.22432 18.7034 2.69374 18.2208 2.28019L17.2448 3.41922C17.3628 3.52036 17.4585 3.66502 17.5173 4.04228C17.5813 4.45353 17.5834 5.01149 17.5834 5.87176L19.0834 5.87176ZM8.17655 17.4793C8.58995 17.7023 8.92394 17.8828 9.1796 18.0057C9.30828 18.0676 9.43545 18.1239 9.55573 18.1658C9.6674 18.2046 9.82498 18.25 10.0001 18.25V16.75C10.0723 16.75 10.1001 16.767 10.0487 16.7491C10.006 16.7342 9.9369 16.7055 9.82959 16.6539C9.61328 16.5499 9.31651 16.39 8.88891 16.1592L8.17655 17.4793ZM11.1112 16.1592C10.6836 16.39 10.3869 16.5499 10.1706 16.6539C10.0633 16.7055 9.99416 16.7342 9.95142 16.7491C9.90006 16.767 9.9279 16.75 10.0001 16.75V18.25C10.1752 18.25 10.3328 18.2046 10.4444 18.1658C10.5647 18.1239 10.6919 18.0676 10.8206 18.0057C11.0762 17.8828 11.4102 17.7023 11.8236 17.4793L11.1112 16.1592Z",fill:"#092059"})),Eo=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M10.5448 14.042L10.1503 13.4041L10.5448 14.042ZM12.4608 12.4125L13.1899 12.5887V12.5887L12.4608 12.4125ZM10.5448 10.125L10.1503 10.7628L10.5448 10.125ZM12.4608 11.7545L13.1899 11.5783L12.4608 11.7545ZM7.84143 14.6419L8.39607 14.137L8.39607 14.137L7.84143 14.6419ZM8.34986 14.9689L8.12873 15.6855L8.34986 14.9689ZM7.84143 9.52512L8.39607 10.03L7.84143 9.52512ZM8.34986 9.1981L8.57099 9.91476L8.34986 9.1981ZM2.08334 7.00016L17.9167 7.00016V5.50016L2.08334 5.50016L2.08334 7.00016ZM13.5236 1.69762L11.0236 5.86429L12.3098 6.63603L14.8098 2.46937L13.5236 1.69762ZM7.69022 1.69762L5.19022 5.86429L6.47646 6.63603L8.97646 2.46937L7.69022 1.69762ZM9.99992 17.1668C8.11274 17.1668 6.77281 17.1652 5.75649 17.0286C4.76174 16.8949 4.19006 16.6442 3.77295 16.2271L2.71229 17.2878C3.45455 18.0301 4.39554 18.3591 5.55662 18.5152C6.69612 18.6684 8.15515 18.6668 9.99992 18.6668V17.1668ZM1.33325 10.0002C1.33325 11.8449 1.33166 13.304 1.48486 14.4435C1.64096 15.6045 1.97003 16.5455 2.71229 17.2878L3.77295 16.2271C3.35584 15.81 3.10522 15.2383 2.97149 14.2436C2.83484 13.2273 2.83325 11.8873 2.83325 10.0002H1.33325ZM17.1666 10.0002C17.1666 11.8873 17.165 13.2273 17.0284 14.2436C16.8946 15.2383 16.644 15.81 16.2269 16.2271L17.2875 17.2878C18.0298 16.5455 18.3589 15.6045 18.515 14.4435C18.6682 13.304 18.6666 11.8449 18.6666 10.0002H17.1666ZM9.99992 18.6668C11.8447 18.6668 13.3037 18.6684 14.4432 18.5152C15.6043 18.3591 16.5453 18.0301 17.2875 17.2878L16.2269 16.2271C15.8098 16.6442 15.2381 16.8949 14.2434 17.0286C13.227 17.1652 11.8871 17.1668 9.99992 17.1668V18.6668ZM9.99992 2.8335C11.8871 2.8335 13.227 2.83509 14.2434 2.97173C15.2381 3.10547 15.8098 3.35609 16.2269 3.7732
37L17.2875 2.71253C16.5453 1.97027 15.6043 1.64121 14.4432 1.48511C13.3037 1.3319 11.8447 1.3335 9.99992 1.3335V2.8335ZM18.6666 10.0002C18.6666 8.15539 18.6682 6.69636 18.515 5.55686C18.3589 4.39578 18.0298 3.4548 17.2875 2.71253L16.2269 3.7732C16.644 4.1903 16.8946 4.76199 17.0284 5.75673C17.165 6.77305 17.1666 8.11298 17.1666 10.0002H18.6666ZM9.99992 1.3335C8.15515 1.3335 6.69612 1.3319 5.55662 1.48511C4.39554 1.64121 3.45455 1.97027 2.71229 2.71253L3.77295 3.7732C4.19006 3.35609 4.76174 3.10547 5.75649 2.97173C6.77281 2.83509 8.11274 2.8335 9.99992 2.8335V1.3335ZM2.83325 10.0002C2.83325 8.11298 2.83484 6.77305 2.97149 5.75673C3.10522 4.76199 3.35584 4.1903 3.77295 3.7732L2.71229 2.71253C1.97003 3.4548 1.64096 4.39578 1.48486 5.55686C1.33166 6.69636 1.33325 8.15539 1.33325 10.0002H2.83325ZM10.9394 14.6798C11.5196 14.3208 12.0127 14.0173 12.3698 13.7333C12.731 13.446 13.0682 13.092 13.1899 12.5887L11.7318 12.2363C11.7272 12.2553 11.7031 12.3469 11.4361 12.5593C11.165 12.7749 10.7632 13.025 10.1503 13.4041L10.9394 14.6798ZM10.1503 10.7628C10.7632 11.142 11.165 11.3921 11.4361 11.6077C11.7031 11.82 11.7272 11.9117 11.7318 11.9307L13.1899 11.5783C13.0682 11.075 12.731 10.721 12.3698 10.4337C12.0127 10.1497 11.5196 9.84615 10.9394 9.4872L10.1503 10.7628ZM13.1899 12.5887C13.2699 12.2573 13.2699 11.9097 13.1899 11.5783L11.7318 11.9307C11.7559 12.0305 11.7559 12.1365 11.7318 12.2363L13.1899 12.5887ZM6.74992 12.0835C6.74992 12.7942 6.74895 13.3865 6.79663 13.8453C6.84355 14.2969 6.94906 14.7757 7.2868 15.1467L8.39607 14.137C8.3923 14.1329 8.32704 14.0602 8.28859 13.6903C8.25089 13.3275 8.24992 12.8283 8.24992 12.0835H6.74992ZM10.1503 13.4041C9.55645 13.7715 9.16941 14.0094 8.87389 14.1462C8.57524 14.2846 8.531 14.2399 8.57099 14.2522L8.12873 15.6855C8.6335 15.8413 9.11001 15.6899 9.50428 15.5073C9.90169 15.3233 10.3797 15.026 10.9394 14.6798L10.1503 13.4041ZM7.2868 15.1467C7.51417 15.3965 7.80283 15.585 8.12873 15.6855L8.57099 14.2522C8.51258 14.2342 8.45109 14.1975 8.39607 14.137L7.2868 15.1467ZM8.24992 12.0835C8.24992 11.3387 8.25089 10.8395 8.28859 10.4767C8.32704 10.1068 8.3923 10.0341 8.39607 10.03L7.2868 9.02027C6.94906 9.39131 6.84355 9.87014 6.79663 10.3217C6.74895 10.7805 6.74992 11.3728 6.74992 12.0835H8.24992ZM10.9394 9.4872C10.3797 9.14099 9.90169 8.84371 9.50428 8.65965C9.11001 8.47704 8.6335 8.32569 8.12873 8.48145L8.57099 9.91476C8.531 9.9271 8.57524 9.88244 8.87389 10.0208C9.16941 10.1576 9.55645 10.3955 10.1503 10.7628L10.9394 9.4872ZM8.39607 10.03C8.45108 9.96954 8.51258 9.93279 8.57099 9.91476L8.12873 8.48145C7.80283 8.582 7.51418 8.77047 7.2868 9.02027L8.39607 10.03Z",fill:"#092059"})),Jy=({videoLink:e,title:n,categoryName:s,enabled:r=!0})=>{const a=!!(r&&e),{data:i}=mf({enabled:a}),{data:o}=xf(void 0,{enabled:a});return c.useMemo(()=>{const l=W5(e,o==null?void 0:o.videos,i==null?void 0:i.categories);return{title:n||l.title,categoryName:s||l.categoryName}},[e,n,s,o==null?void 0:o.videos,i==null?void 0:i.categories])},eE="modulepreload",tE=function(e){return"/"+e},lc={}
37,ee=function(n,s,r){let a=Promise.resolve();if(s&&s.length>0){let o=function(d){return Promise.all(d.map(p=>Promise.resolve(p).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),u=(l==null?void 0:l.nonce)||(l==null?void 0:l.getAttribute("nonce"));a=o(s.map(d=>{if(d=tE(d),d in lc)return;lc[d]=!0;const p=d.endsWith(".css"),h=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${h}`))return;const m=document.createElement("link");if(m.rel=p?"stylesheet":eE,p||(m.as="script"),m.crossOrigin="",m.href=d,u&&m.setAttribute("nonce",u),document.head.appendChild(m),p)return new Promise((f,C)=>{m.addEventListener("load",f),m.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${d}`)))})}))}function i(o){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=o,window.dispatchEvent(l),!l.defaultPrevented)throw o}return a.then(o=>{for(const l of o||[])l.status==="rejected"&&i(l.reason);return n().catch(i)})},Mu=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_1709_8877)"},c.createElement("path",{d:"M5.83367 11.6672L8.33368 14.1672M15.8337 5.41718C15.8337 4.72682 15.274 4.16718 14.5837 4.16718C13.8933 4.16718 13.3337 4.72682 13.3337 5.41718C13.3337 6.10754 13.8933 6.66718 14.5837 6.66718C15.274 6.66718 15.8337 6.10754 15.8337 5.41718ZM17.4505 2.55011C18.6213 3.72089 18.3389 8.03198 18.2014 9.52835C18.1703 9.86673 18.0317 10.1826 17.8102 10.4403C15.5699 13.0469 13.2486 15.4188 10.7137 17.6885C9.78008 18.5244 8.37149 18.5424 7.3806 17.7752C5.41427 16.2527 3.74792 14.5864 2.22546 12.6201C1.45824 11.6292 1.47623 10.2206 2.31218 9.28693C4.58183 6.75208 6.95376 4.43071 9.56037 2.19042C9.81807 1.96893 10.1339 1.83039 10.4723 1.7993C11.9687 1.6618 16.2798 1.37933 17.4505 2.55011Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_1709_8877"},c.createElement("rect",{width:20,height:20,fill:"white"})))),nE=y("button",{target:"e7ruxdb1"})("display:inline-flex;align-items:center;gap:6px;width:fit-content;max-width:100%;padding:4px 10px;border-radius:999px;background:",({theme:e})=>e.palette.greyBlue[10],";border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";color:",({theme:e})=>e.palette.blue.primary,";font-size:12px;font-weight:600;line-height:16px;cursor:pointer;transition:background-color 120ms ease,border-color 120ms ease,color 120ms ease;svg{flex-shrink:0;width:12px;height:12px;}&:hover{background:",({theme:e})=>e.palette.blue.extralight,";border-color:",({theme:e})=>e.palette.blue.light,";}&:focus-visible{outline:2px solid ",({theme:e})=>e.palette.blue.primary,";outline-offset:2px;}"),sE=y("span",{target:"e7ruxdb0"})({name:"1h52dri",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap"}),rE=({categoryName:e,onNavigate:n})=>{const s=Rt(),r=()=>{n==null||n(),s(G2(e))};return t.jsxs(nE,{type:"button","data-testid":"video-tutorial-category",onClick:r,children:[t.jsx(Mu,{"aria-hidden":!0}),t.jsx(sE,{children:e})]})},aE=({categoryName:e,onNavigate:n})=>{const s=Rt(),r=()=>{n==null||n(),s(G2(e))};return t.jsxs(S,{fontSize:"13px",lineHeight:"18px",color:"greyBlue.80",children:["Browse more tutorials in"," ",t.jsx(je,{variant:"primary",semibold:!0,onClick:r,children:"Video Library"})]})},iE=c.lazy(()=>ee(()=>import("./zMQZ3vqD.js").then(e=>e.bw),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.default}))),oE=y("div",{target:"eagvr0c6"})("position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) ",({isOpening:e,isClosing:n})=>e||n?"scale(0.96) translateY(-8px)":"scale(1) translateY(0)",";width:calc(100% - 32px);max-width:920px;display:flex;flex-direction:column;overflow:hidden;background:",({theme:e})=>e.palette.common.white,";border-radius:16px;box-shadow:0 24px 48px rgba(0, 14, 51, 0.28),0 0 0 1px rgba(0, 14, 51, 0.06);opacity:",({isOpening:e,isClosing:n})=>e||n?0:1,";transition:opacity ",an,"ms ",gn,",transform ",an,"ms ",gn,";@media (prefers-reduced-motion: reduce){transition:opacity ",an,"ms ",gn,";transform:translate(-50%, -50%);}"),lE=y(g,{target:"eagvr0c5"})("display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid ",({theme:e})=>e.palette.greyBlue[20],";background:linear-gradient(180deg, ",({theme:e})=>e.palette.greyBlue[10]," 0%, #ffffff 100%);"),cE=y(g,{target:"eagvr0c4"})({name:"1cvn0y9",styles:"display:flex;align-items:center;gap:10px;min-width:0"}),dE=y(g,{target:"eagvr0c3"})("display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;border-radius:8px;background:",({theme:e})=>e.palette.blue.extralight,";color:",({theme:e})=>e.palette.blue.primary,";svg{width:16px;height:16px;}"),uE=y("button",{target:"eagvr0c2"})("display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:36px;height:36px;margin:-4px -6px 0 0;border:0;border-radius:10px;background:transparent;color:",({theme:e})=>e.palette.greyBlue[80],";cursor:pointer;transition:background-color 120ms ease,color 120ms ease;&:hover{background:",({theme:e})=>e.palette.greyBlue[20],";color:",({theme:e})=>e.palette.greyBlue[100],";}&:focus-visible{outline:2px solid ",({theme:e})=>e.palette.primary.main,";outline-offset:2px;}"),pE=y(g,{target:"eagvr0c1"})({name:"1dmtywm",styles:"position:relative;width:100%;aspect-ratio:16/9;background:#0b1220;iframe{display:block;width:100%;height:100%;border:0;}"}),hE=y(g,{target:"eagvr0c0"})("display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 20px 14px;border-top:1px solid ",({theme:e})=>e.palette.greyBlue[20],";background:",({theme:e})=>e.palette.common.white,";"),mE=()=>t.jsx(g,{position:"fixed",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",bgcolor:"rgba(0, 14, 51, 0.55)",zIndex:1300,children:t.jsx(Pe,{})}),gE=({src:e,open:n,isOpening:s,isClosing:r,onClose:a,title:i="Tutorial video",categoryName:o,showLibraryFooter:l=!0,footerHint:u})=>
37{if(!n)return null;const d=u!==void 0||!!o||l;return t.jsx(c.Suspense,{fallback:t.jsx(mE,{}),children:t.jsx(iE,{open:n,closeAfterTransition:!0,onClose:a,"aria-labelledby":"video-tutorial-modal-title",sx:{overflowY:"overlay"},slotProps:{backdrop:{sx:{backgroundColor:"rgba(0, 14, 51, 0.55)",opacity:s||r?0:1,transition:`opacity ${an}ms ${gn}`}}},children:t.jsxs(oE,{isOpening:s,isClosing:r,"data-testid":"video-tutorial-modal",children:[t.jsxs(lE,{children:[t.jsxs(cE,{children:[t.jsx(dE,{"aria-hidden":!0,children:t.jsx(Eo,{})}),t.jsx(S,{id:"video-tutorial-modal-title",medium:!0,fontSize:"16px",lineHeight:"24px",color:"#000E33",crop:!0,children:i})]}),t.jsx(uE,{type:"button","aria-label":"Close video",onClick:a,children:t.jsx(yt,{icon:Ep})})]}),t.jsx(pE,{children:t.jsx("iframe",{className:"vimeo-frame",title:i,src:`${e}?h=453bfddb4e&color=527ceb&title=0&byline=0&portrait=0`,allowFullScreen:!0})}),d?t.jsx(hE,{children:u!==void 0?u:t.jsxs(t.Fragment,{children:[o?t.jsx(rE,{categoryName:o,onNavigate:a}):t.jsx("span",{}),l?t.jsx(aE,{categoryName:o,onNavigate:a}):null]})}):null]})})})},xE=y(jt,{target:"e1e1cuds0"})({name:"e0dnmk",styles:"cursor:pointer"}),cc=({src:e,onOpen:n,disableModalOpen:s=!1,title:r,categoryName:a,tooltipConfig:i})=>{const[o,l]=c.useState(!1),[u,d]=c.useState(!1),[p,h]=c.useState(!1),{title:m,categoryName:f}=Jy({videoLink:e,title:r,categoryName:a,enabled:!!e&&!i}),C=()=>{n==null||n(),!(s||!e)&&(l(!0),d(!0),requestAnimationFrame(()=>{d(!1)}))},E=()=>{h(!0),setTimeout(()=>{l(!1),h(!1)},yr)};return i?t.jsx(we,{title:i.text,placement:"top",children:t.jsxs(xE,{fontSize:"14px",lineHeight:"20px",fontWeight:"600",color:"blue.black",fontFamily:'"Inter", sans-serif',children:[t.jsx(Eo,{style:{verticalAlign:"bottom",marginRight:"8px"}}),"Watch a video"]})}):t.jsxs(t.Fragment,{children:[t.jsxs(je,{variant:"primary",external:!0,semibold:!0,lineHeight:"20px",onClick:C,children:[t.jsx(Eo,{style:{verticalAlign:"bottom",marginRight:"8px"}}),"Watch a video"]}),e?t.jsx(gE,{src:e,open:o,isOpening:u,isClosing:p,onClose:E,title:m,categoryName:f}):null]})},Pu=({articleLink:e,videoLink:n,videoTitle:s,videoCategoryName:r,videoTooltip:a,onVideoOpen:i,disableVideoModalOpen:o})=>{const{whitelabel:l}=Je();return l.isWhiteLabelUser?t.jsx(g,{ml:"auto"}):t.jsxs(g,{display:"flex",gap:"16px",ml:"auto",children:[t.jsxs(je,{variant:"primary",external:!0,openNewTab:!0,to:e,semibold:!0,lineHeight:"20px",children:[t.jsx(Xy,{style:{verticalAlign:"bottom",marginRight:"8px"}}),"Learn how it works"]}),a&&!n&&t.jsx(cc,{tooltipConfig:{text:a}}),n&&t.jsx(cc,{src:n,title:s,categoryName:r,onOpen:i,disableModalOpen:o})]})},dc=y(g,{shouldForwardProp:e=>On(e),target:"ec0f6sq0"})("word-break:normal;overflow-wrap:anywhere;height:",({crop:e})=>e&&"1rem",";",({crop:e})=>e&&`white-space: nowrap;
38    text-overflow: ellipsis;
39    overflow: hidden;`," p{",({crop:e})=>e&&`white-space: nowrap;
40    text-overflow: ellipsis;
41    overflow: hidden;`,";}&>p:first-of-type{margin-top:0;}ul,ol{margin-left:20px;p{margin-top:5px;}}b,strong{font-weight:700!important;color:inherit!important;}pre{white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word;max-width:100%;}img{max-width:100%;height:auto;display:block;margin:8px 0;}"),fE=async()=>{const[e,n]=await Promise.all([ee(()=>import("./zMQZ3vqD.js").then(s=>s.bx),__vite__mapDeps([0,1,2,3])),ee(()=>import("./zMQZ3vqD.js").then(s=>s.i),__vite__mapDeps([0,1,2,3]))]);return{parse:e.default,sanitize:n.default||n}},CE=(e,n,s)=>{if(!s)return n;const{allowedTags:r,allowedAttributes:a,allowedSchemesByTag:i}=e.defaults,o=n.allowedTags??r;return{...n,allowedTags:o.includes("img")?o:[...o,"img"],allowedAttributes:{...n.allowedAttributes??a,img:["src","alt","width","height","style"]},allowedSchemesByTag:{...n.allowedSchemesByTag??i,img:["http","https","data"]}}},cn=({parseText:e,crop:n,options:s={},allowImages:r=!1})=>{const[a]=Bn(Cn.sequenceTree),i=r&&a,[o,l]=c.useState(null);c.useEffect(()=>{if(!e||o)return;let d=!0;return fE().then(p=>{d&&l(p)}).catch(p=>{console.error("Error loading HTML parser:",p)}),()=>{d=!1}},[e,o]);const u=c.useMemo(()=>
41{if(!e||typeof e!="string"||!o)return null;try{const d=CE(o.sanitize,s,i);return o.parse(o.sanitize(e,d))}catch(d){return console.error("Error parsing HTML:",d),e}},[i,e,o,s]);return!e||typeof e!="string"?null:o?t.jsx(dc,{"data-testid":"html-parser",crop:n,children:u}):t.jsx(dc,{"data-testid":"html-parser",crop:n,display:"inline-flex",alignItems:"center",children:t.jsx(Pe,{type:"dots",size:"14px",inline:!0})})},ir="cubic-bezier(0.2, 0, 0, 1)",or=400,So=120,yE=280,EE=18,SE=240,nV=320,bE=40,Ou="--row-stagger-base-delay",Du=(e,{stepMs:n,capMs:s})=>{const r=Math.max(e,0)*n;return s==null?r:Math.min(r,s)},LE=e=>Du(e,{stepMs:EE,capMs:SE}),sV=e=>Du(e,{stepMs:bE}),ws=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M15.8335 9.99984L3.3335 9.99984",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12.5 5.83325L15.9596 9.29281C16.2929 9.62615 16.4596 9.79281 16.4596 9.99992C16.4596 10.207 16.2929 10.3737 15.9596 10.707L12.5 14.1666",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),wE=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M12 16.5V14.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),c.createElement("path",{d:"M4.26781 18.8447C4.49269 20.515 5.87613 21.8235 7.55966 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.879 17.7547 20 16.6376 20 15.5C20 14.3624 19.879 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55966 9.09909C5.87613 9.17649 4.49269 10.485 4.26781 12.1553C4.12104 13.2453 4 14.3624 4 15.5C4 16.6376 4.12104 17.7547 4.26781 18.8447Z",stroke:"currentColor",strokeWidth:1.5}),c.createElement("path",{d:"M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C14.4853 2 16.5 4.01472 16.5 6.5V9",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}));function bo(e,n=8){if(!e)return null;const s=e.getBoundingClientRect();return s.width===0&&s.height===0?null:{top:s.top-n,left:s.left-n,width:s.width+n*2,height:s.height+n*2}}function TE(e,n,s={width:320,height:140}){if(n!=="auto")return n;const r=window.innerWidth,a=window.innerHeight,i={top:e.top,bottom:a-(e.top+e.height),left:e.left,right:r-(e.left+e.width)};return i.bottom>=s.height?"bottom":i.top>=s.height?"top":i.right>=s.width?"right":i.left>=s.width?"left":"bottom"}function jE(e,n,s={width:320,height:140},r=16,a=12){const i=window.innerWidth,o=window.innerHeight;let l=0,u=0;switch(n){case"bottom":l=e.top+e.height+r,u=e.left+e.width/2-s.width/2;break;case"top":l=e.top-s.height-r,u=e.left+e.width/2-s.width/2;break;case"right":l=e.top+e.height/2-s.height/2,u=e.left+e.width+r;break;case"left":l=e.top+e.height/2-s.height/2,u=e.left-s.width-r;break}return u=Math.max(a,Math.min(u,i-s.width-a)),l=Math.max(a,Math.min(l,o-s.height-a)),{top:l,left:u}}function Uu(e){const n=e.filter(o=>o!=null);if(n.length===0)return null;if(n.length===1)return n[0];const s=Math.min(...n.map(o=>o.top)),r=Math.min(...n.map(o=>o.left)),a=Math.max(...n.map(o=>o.left+o.width)),i=Math.max(...n.map(o=>o.top+o.height));return{top:s,left:r,width:a-r,height:i-s}}function vE(e,n=8){return e.map(s=>document.querySelector(s)).map(s=>bo(s,n)).filter(s=>s!=null)}function IE(e,n,s){return!s||n.length===0?e:Uu([e,...n])}function _E(e,n=8,s){const[r,a]=c.useState([]);return c.useEffect(()=>{if(!(e!=null&&e.length)){a([]);return}const i=()=>{a(vE(e,n))};i();const o=new MutationObserver(i);return o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tutorial","class","style"]}),window.addEventListener("scroll",i,!0),window.addEventListener("resize",i),()=>{o.disconnect(),window.removeEventListener("scroll",i,!0),window.removeEventListener("resize",i)}},[e,n,s]),r}function AE({step:e,target:n,enabled:s,onComplete:r,onInputChange:a}){c.useEffect(()=>{if(!e||!s)return;const i=e.action??{type:"click"};if(i.type==="manual")return;if(i.type==="auto"){const l=i.delayMs??2500,u=window.setTimeout(r,l);return()=>window.clearTimeout(u)}if(i.type==="custom"){const l=new AbortController;let u=!1;return i.wait({step:e,target:n,signal:l.signal}).then(()=>{u||r()}).catch(()=>{}),()=>{u=!0,l.abort()}}if(!n)return;const o=l=>l instanceof Element?l===n||n.contains(l):!1;if(i.type==="click"){const l=u=>{o(u.target)&&r()};return document.addEventListener("click",l,!0),()=>document.removeEventListener("click",l,!0)}if(i.type==="hover"){let u=null;const d=()=>{u===null&&(u=window.setTimeout(()=>{r()},400))},p=()=>{u!==null&&(window.clearTimeout(u),u=null)};return n.addEventListener("mousemove",d),n.addEventListener("mouseleave",p),()=>{n.removeEventListener("mousemove",d),n.removeEventListener("mouseleave",p),u!==null&&window.clearTimeout(u)}}if(i.type==="input"){const l=u=>{if(!o(u.target))return;const d="value"in u.target?u.target.value:"";a==null||a(d)};return n.addEventListener("input",l),()=>n.removeEventListener("input",l)}},[e,n,s,r,a])}const NE=150;function kE(e,n){const[s,r]=c.useState(()=>n?e?n(e):!1:!0);return c.useEffect(()=>{if(!n){r(!0);return}if(!e){r(!1);return}let a=!0;const i=()=>{a&&r(n(e))};i();const o=new MutationObserver(i);o.observe(e,{attributes:!0,childList:!0,subtree:!0,attributeFilter:["disabled","aria-disabled","class"]});const l=window.setInterval(()=>{a&&r(n(e))},NE);return()=>{a=!1,o.disconnect(),window.clearInterval(l)}},[e,n]),s}function tr(e,n={}){const{timeoutMs:s=8e3,signal:r}=n;return new Promise(a=>{if(r!=null&&r.aborted){a(null);return}const i=document.querySelector(e);
41if(i){a(i);return}const o=new MutationObserver(()=>{const p=document.querySelector(e);p&&(l(),a(p))}),l=()=>{o.disconnect(),window.clearTimeout(d),r==null||r.removeEventListener("abort",u)},u=()=>{l(),a(null)};r==null||r.addEventListener("abort",u),o.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tutorial","class","id"]});const d=window.setTimeout(()=>{l(),a(null)},s)})}function RE({selector:e,padding:n=8,refreshKey:s}){const[r,a]=c.useState(null),[i,o]=c.useState(null),[l,u]=c.useState(!1),[d,p]=c.useState(!1);return c.useEffect(()=>{if(!e){a(null),o(null),u(!1),p(!1);return}const h=new AbortController;return u(!0),p(!1),tr(e,{signal:h.signal}).then(m=>{if(!h.signal.aborted){if(u(!1),!m){a(null),o(null),p(!0);return}a(m),o(bo(m,n))}}),()=>h.abort()},[e,n,s]),c.useEffect(()=>{if(!r)return;const h=()=>o(bo(r,n));h();const m=new ResizeObserver(h);m.observe(r),window.addEventListener("scroll",h,!0),window.addEventListener("resize",h);let f=0,C=0;const E=()=>{h(),C+=1,C<30&&(f=requestAnimationFrame(E))};return f=requestAnimationFrame(E),()=>{m.disconnect(),window.removeEventListener("scroll",h,!0),window.removeEventListener("resize",h),cancelAnimationFrame(f)}},[r,n]),{element:r,rect:i,isWaiting:l,notFound:d}}const kl=c.createContext(null);function ME(){const e=c.useContext(kl);if(!e)throw new Error("useTutorial must be used inside <TutorialProvider>");return e}function PE(){return c.useContext(kl)}const uc="#1b4ed2",OE="#527ceb",DE="#173c99",UE="#092059";function xs(e,n){return typeof document>"u"?n:getComputedStyle(document.documentElement).getPropertyValue(e).trim()||n}function BE(){const e=xs("--whitelabel-accent",xs("--blue-primary",uc)),n=xs("--blue-primary",uc),s=e.toLowerCase()!==n.toLowerCase();return{"--tut-accent":e,"--tut-accent-hover":s?kn(e,.1):xs("--blue-medium",OE),"--tut-accent-active":s?on(e,.1):xs("--blue-extradark",DE),"--tut-accent-contrast":Ra(e),"--tut-link":xs("--blue-black",UE)}}const HE="[data-tutorial='save-list-header']",pc="[data-tutorial='save-list-modal-name']",VE="[data-tutorial='save-list-modal-cancel']",Bu="[data-tutorial='saved-lists-menu']",Lo="[data-tutorial='saved-lists-create-campaign']",wo=new Set(["save-list-modal-name","save-list-modal-save"]),wa=e=>{!(e instanceof HTMLElement)||e.hasAttribute("disabled")||e.click()},FE=(e,n)=>{!e||!wo.has(e)||n&&wo.has(n)||wa(document.querySelector(VE))},$E=(e,n)=>{e!=="saved-lists-create-campaign"||n!=="saved-lists-menu"||document.querySelector(Lo)&&wa(document.querySelector(Bu))},GE=async e=>{if(wo.has(e)){if(document.querySelector(pc))return;const n=await tr(HE,{timeoutMs:5e3});wa(n),await tr(pc,{timeoutMs:5e3});return}if(e==="saved-lists-create-campaign"){if(document.querySelector(Lo))return;const n=await tr(Bu,{timeoutMs:5e3});wa(n),await tr(Lo,{timeoutMs:5e3})}},Hu=new Set(["trial-user"]),Vu=e=>new URLSearchParams(e.startsWith("?")?e.slice(1):e);function Fu(e,n,s){if(!s)return!0;const r=s.indexOf("?"),a=r===-1?s:s.slice(0,r),i=r===-1?"":s.slice(r+1);if(!(()=>
41{if(a.endsWith("/*")){const d=a.slice(0,-2);return e===d||e.startsWith(`${d}/`)}return e===a})())return!1;const l=Vu(n);if(!i){for(const[d]of l)if(!Hu.has(d))return!1;return!0}const u=new URLSearchParams(i);for(const[d,p]of u)if(l.get(d)!==p)return!1;return!0}function zE(e,n=""){const s=e.indexOf("?"),r=s===-1?e:e.slice(0,s),a=s===-1?"":e.slice(s+1),i=r.endsWith("/*")?r.slice(0,-2):r,o=new URLSearchParams(a),l=Vu(n);for(const d of Hu)!o.has(d)&&l.has(d)&&o.set(d,l.get(d)??"");const u=o.toString();return u?`${i}?${u}`:i}function WE(e){let n=e.parentElement;for(;n;){const{overflowY:s,overflowX:r}=getComputedStyle(n),a=(s==="auto"||s==="scroll")&&n.scrollHeight>n.clientHeight+1,i=(r==="auto"||r==="scroll")&&n.scrollWidth>n.clientWidth+1;if(a||i)return n;n=n.parentElement}return null}function qE(e,n){const s=WE(e);if(s){const r=s.getBoundingClientRect(),a=e.getBoundingClientRect(),i=n!=null&&n.footerSelector?s.querySelector(n.footerSelector):null,o=(n==null?void 0:n.footerGap)??16,l=i instanceof HTMLElement?i.getBoundingClientRect().height+o:0,u=r.height-l,d=a.top+a.height/2,p=r.top+u/2,h=d-p;s.scrollBy({top:h,behavior:"smooth"});return}e.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}function ZE(e,n){return!!(e!=null&&e.waitBeforeNextStep&&e.readyWhen&&!n)}function YE(e){if(e.length===0)return;const n=Uu(e);if(!n)return;
41const s=n.left+n.width,r=n.top+n.height,a="0px 0px, 100% 0px, 100% 100%, 0px 100%, 0px 0px",i=[`${n.left}px ${n.top}px`,`${s}px ${n.top}px`,`${s}px ${r}px`,`${n.left}px ${r}px`,`${n.left}px ${n.top}px`].join(", ");return`polygon(evenodd, ${a}, ${i})`}function KE({holes:e=[],blockHoles:n=!1}){const s={cursor:n?"wait":"default"};return e.length>0&&!n&&(s.clipPath=YE(e)),t.jsx("div",{className:"tut-interaction-blocker",style:s,"aria-hidden":!0,"data-testid":"tut-interaction-blocker"})}function QE({intro:e,onStart:n,onSkip:s}){return t.jsx(An.div,{className:"tut-modal-backdrop",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:t.jsxs(An.div,{className:"tut-modal",role:"dialog","aria-modal":"true",initial:{opacity:0,y:20,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.96},transition:{type:"spring",stiffness:260,damping:24},children:[e.emoji?t.jsx("div",{className:"tut-modal-emoji",children:e.emoji}):null,t.jsx("h2",{className:"tut-modal-title",children:e.title}),t.jsx("p",{className:"tut-modal-desc",children:e.description}),t.jsxs("div",{className:"tut-modal-actions",children:[t.jsx("button",{type:"button",className:"tut-btn tut-btn--ghost",onClick:s,children:e.skipLabel??"Skip"}),t.jsx("button",{type:"button",className:"tut-btn tut-btn--primary",onClick:n,autoFocus:!0,children:e.startLabel??"Start"})]})]})})}const hc={type:"spring",stiffness:260,damping:26};function XE({rect:e,onBackdropClick:n}){if(!e)return t.jsx(An.div,{className:"tut-backdrop",onClick:n,initial:{opacity:0}
41,animate:{opacity:1},exit:{opacity:0},transition:{duration:.2}});const s={top:e.top,left:e.left,width:e.width,height:e.height};return t.jsxs(t.Fragment,{children:[t.jsx(An.div,{className:"tut-spotlight-cutout",initial:{opacity:0,...s},animate:{opacity:1,...s},exit:{opacity:0},transition:hc,"aria-hidden":!0}),t.jsx(An.div,{className:"tut-spotlight-ring",animate:s,transition:hc,"aria-hidden":!0})]})}function JE({tutorial:e,onClose:n}){const s=e.summary;if(!s)return null;const r=s.showStepsList??!0,a=()=>{var i;(i=s.onCta)==null||i.call(s),n()};return t.jsx(An.div,{className:"tut-modal-backdrop",initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.2},children:t.jsxs(An.div,{className:"tut-modal",role:"dialog","aria-modal":"true",initial:{opacity:0,y:20,scale:.96},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:20,scale:.96},transition:{type:"spring",stiffness:260,damping:24},children:[t.jsx("h2",{className:"tut-modal-title",children:s.title}),t.jsx("p",{className:"tut-modal-desc",children:s.description}),r&&t.jsx("ul",{className:"tut-summary-list",children:e.steps.map(i=>t.jsxs("li",{children:[t.jsx("span",{className:"tut-summary-check",children:"✓"}),i.title]},i.id))}),t.jsx("div",{className:"tut-modal-actions tut-modal-actions--center",children:t.jsx("button",{type:"button",className:"tut-btn tut-btn--primary",onClick:a,autoFocus:!0,children:s.ctaLabel??"Done"})})]})})}const eS={click:"Click the highlighted element",hover:"Hover the highlighted element",input:"Type into the field, then click Next",auto:"",custom:"",manual:""};function tS({step:e,rect:n,stepIndex:s,totalSteps:r,onNext:a,onSkipStep:i,onBack:o,onSkip:l,isWaiting:u,waitingDescription:d,notFound:p,nextEnabled:h,isBlockingHost:m=!1}){const f=c.useRef(null),[C,E]=c.useState({width:320,height:160});c.useLayoutEffect(()=>{if(f.current){const _=f.current.getBoundingClientRect();E({width:_.width,height:_.height})}},[e.id]);const b=c.useMemo(()=>{if(!n)return{top:window.innerHeight/2-C.height/2,left:window.innerWidth/2-C.width/2};const _=TE(n,e.placement??"auto",C);return jE(n,_,C)},[n,e.placement,C]),w=e.action??{type:"click"},I=eS[w.type]??"",j=(typeof e.showSkip=="function"?e.showSkip():e.showSkip??!0)&&!u,L=e.showNext||w.type==="manual"||w.type==="auto"||w.type==="input"||p;return t.jsxs(An.div,{ref:f,className:"tut-tooltip",role:"dialog","aria-live":"polite",style:{top:b.top,left:b.left},initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.2},children:[t.jsxs("div",{className:"tut-tooltip-head",children:[t.jsxs("span",{className:"tut-tooltip-step",children:["Step ",s+1," of ",r]}),t.jsx("button",{type:"button",className:"tut-tooltip-close",onClick:l,"aria-label":"Skip tutorial",children:"×"})]}),t.jsx("h3",{className:"tut-tooltip-title",children:e.title}),t.jsx("p",{className:"tut-tooltip-desc",children:e.description}),u&&t.jsx("p",{className:"tut-tooltip-status",children:d??"Looking for the next thing…"}),p&&t.jsx("p",{className:"tut-tooltip-status tut-tooltip-status--warn",children:"Couldn't find that element. You can skip ahead."}),!u&&!p&&!m&&I&&t.jsx("p",{className:"tut-tooltip-hint",children:I}),t.jsxs("div",{className:"tut-tooltip-actions",children:[t.jsxs("div",{children:[t.jsx("button",{type:"button",className:"tut-btn tut-btn--ghost",onClick:o,disabled:s===0||e.disableBack,children:"Back"}),j?t.jsx("button",{type:"button",className:"tut-btn tut-btn--ghost",onClick:i,style:{marginLeft:"4px"},children:"Skip"}):t.jsx("span",{className:"tut-btn tut-btn--placeholder","aria-hidden":!0})]}),L?t.jsx("button",{type:"button",className:"tut-btn tut-btn--primary",onClick:a,disabled:!h,children:s===r-1?"Finish":"Next"}):t.jsx("span",{className:"tut-btn tut-btn--placeholder","aria-hidden":!0})]})]})}function nS(){const{status:e,activeTutorial:n,currentStep:s,currentStepIndex:r,totalSteps:a,beginSteps:i,next:o,back:l,skip:u,finish:d}=ME(),p=mt(),h=c.useMemo(()=>BE(),[]),[m,f]=c.useState({stepId:null,value:""}),C=c.useCallback(z=>{f({stepId:(s==null?void 0:s.id)??null,value:z})},[s==null?void 0:s.id]),E=m.stepId===(s==null?void 0:s.id)?m.value:"",b=Fu(p.pathname,p.search,s==null?void 0:s.page),{element:w,rect:I,isWaiting:T,n
41otFound:j}=RE({selector:e==="running"&&b&&s?s.target:null,padding:(s==null?void 0:s.spotlightPadding)??8,refreshKey:`${n==null?void 0:n.id}:${s==null?void 0:s.id}:${p.pathname}${p.search}`}),L=_E(e==="running"&&b?s==null?void 0:s.passthroughSelectors:void 0,(s==null?void 0:s.spotlightPadding)??8,`${n==null?void 0:n.id}:${s==null?void 0:s.id}:${p.pathname}${p.search}`),_=c.useMemo(()=>[I,...L].filter(z=>z!=null),[I,L]),N=c.useMemo(()=>IE(I,L,!!(s!=null&&s.includePassthroughInSpotlight)),[I,L,s==null?void 0:s.includePassthroughInSpotlight]),A=kE(w,s==null?void 0:s.readyWhen),R=!!(e==="running"&&b&&(s!=null&&s.readyWhen)&&!A),V=ZE(s,A),O=T||R,B=c.useMemo(()=>{const z=s==null?void 0:s.action;if((z==null?void 0:z.type)!=="input")return!0;const K=z.matches;return K?K(E):E.trim().length>0},[s==null?void 0:s.action,E]),D=c.useCallback(()=>{o()},[o]),M=c.useCallback(()=>{B&&D()},[B,D]),F=c.useCallback(()=>{if((s==null?void 0:s.id)==="save-list-modal-save"){const K=document.querySelector("[data-tutorial='save-list-modal-cancel']");K&&!K.hasAttribute("disabled")&&K.click(),D();return}if((s==null?void 0:s.id)==="saved-lists-menu"){const K=w instanceof HTMLElement?w:document.querySelector("[data-tutorial='saved-lists-menu']");if(K&&!K.hasAttribute("disabled")){K.click();return}D();return}if(((s==null?void 0:s.action)??{type:"click"}).type==="click"&&w instanceof HTMLElement&&!w.hasAttribute("disabled")){w.click();return}D()},[s==null?void 0:s.id,s==null?void 0:s.action,w,D]),W=c.useCallback(()=>{if(r<=0||s!=null&&s.disableBack)return;const z=n==null?void 0:n.steps[r-1],K=z==null?void 0:z.id,re=s==null?void 0:s.id;FE(re,K),$E(re,K),l(),K&&GE(K)},[n==null?void 0:n.steps,l,s==null?void 0:s.disableBack,s==null?void 0:s.id,r]);AE({step:e==="running"?s:null,target:w,enabled:e==="running"&&b&&A,onComplete:D,onInputChange:C});const ne=c.useRef(null);if(c.useEffect(()=>{if(e!=="running"||!w)return;const z=`${n==null?void 0:n.id}:${s==null?void 0:s.id}`;ne.current!==z&&(ne.current=z,requestAnimationFrame(()=>{requestAnimationFrame(()=>qE(w,s==null?void 0:s.scroll))}))},[e,w,n==null?void 0:n.id,s==null?void 0:s.id,s==null?void 0:s.scroll]),c.useEffect(()=>{if(e==="idle")return;const z=K=>{K.key==="Escape"&&u()};return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[e,u]),e==="idle"||!n)return null;const $=typeof document<"u"?document.body:null;return $?Ro.createPortal(t.jsx("div",{className:"tut-root","data-tutorial-root":!0,style:h,children:t.jsxs(G6,{mode:"wait",children:[e==="intro"&&n.intro&&t.jsx(QE,{intro:n.intro,onStart:i,onSkip:u},"intro"),e==="running"&&s&&t.jsxs("div",{children:[t.jsx(XE,{rect:N}),t.jsx(KE,{holes:_,blockHoles:V}),t.jsx(tS,{step:s,rect:N,stepIndex:r,totalSteps:a,onNext:M,onSkipStep:F,onBack:W,onSkip:u,isWaiting:O,waitingDescription:R?s.waitingDescription:void 0,notFound:j,nextEnabled:B&&!V&&(A||j),isBlockingHost:V})]},`run-${s.id}`),e==="summary"&&n.summary&&t.jsx(JE,{tutorial:n,onClose:d},"summary")]})}),$):null}function mc(e,n){E8({interactionTourId:e,status:n}).catch(()=>{})}const Rl="tutorial-state-v1",Zr={version:1,activeTutorialId:null,currentStepIndex:0,status:"idle",completed:[],skipped:[]};function sS(e){return e.status==="idle"?e:{...e,status:"idle",activeTutorialId:null,currentStepIndex:0}}function gc(){if(typeof window>"u")return{...Zr};try{const e=window.localStorage.getItem(Rl);if(!e)return{...Zr};const n=JSON.parse(e);return n.version!==1?{...Zr}:sS({version:1,activeTutorialId:n.activeTutorialId??null,currentStepIndex:typeof n.currentStepIndex=="number"?n.currentStepIndex:0,status:n.status??"idle",completed:Array.isArray(n.completed)?n.completed:[],skipped:Array.isArray(n.skipped)?n.skipped:[]})}catch{return{...Zr}}}function rS(e){if(!(typeof window>"u"))try{window.localStorage.setItem(Rl,JSON.stringify(e))}catch{}}function aS(){if(!(typeof window>"u"))try{window.localStorage.removeItem(Rl)}catch{}}function iS({tutorials:e,enabled:n=!0,children:s}){const r=Rt(),a=mt(),[i,o]=c.useState(()=>gc()),l=c.useMemo(()=>{const j=new Map;for(const L of e)j.set(L.id,L);return j},[e]),u=i.activeTutorialId?l.get(i.activeTutorialId)??null:null,d=(u==null?void 0:u.steps[i.currentStepIndex])??null,p=c.useRef(null);c.useEffect(()=>{rS(i)},[i]);const h=c.useRef(!1);c.useEffect(()=>{if(!n||h.current||i.status!=="idle")return;const j=e.find(L=>
41L.autoStart&&!i.completed.includes(L.id)&&!i.skipped.includes(L.id));j&&(h.current=!0,o(L=>({...L,activeTutorialId:j.id,currentStepIndex:0,status:j.intro?"intro":"running"})))},[n,e,i.status,i.completed,i.skipped]),c.useEffect(()=>{i.status!=="running"||!(d!=null&&d.page)||Fu(a.pathname,a.search,d.page)||r(zE(d.page,a.search))},[i.status,d,a.pathname,a.search,r]),c.useEffect(()=>{i.status!=="summary"||!(u!=null&&u.interactionTourId)||p.current!==u.interactionTourId&&(p.current=u.interactionTourId,mc(u.interactionTourId,"completed"))},[i.status,u==null?void 0:u.interactionTourId]);const m=c.useCallback(j=>{const L=l.get(j);L&&(p.current=null,o({version:1,activeTutorialId:j,currentStepIndex:0,status:L.intro?"intro":"running",completed:i.completed,skipped:i.skipped.filter(_=>_!==j)}))},[l,i.completed,i.skipped]),f=c.useCallback(()=>{u!=null&&u.interactionTourId&&mc(u.interactionTourId,"started"),o(j=>({...j,status:"running",currentStepIndex:0}))},[u==null?void 0:u.interactionTourId]),C=c.useCallback(()=>{o(j=>{if(!j.activeTutorialId)return j;const L=l.get(j.activeTutorialId);if(!L)return j;const _=j.currentStepIndex+1;if(_>=L.steps.length){const N=!!L.summary;return{...j,status:N?"summary":"completed",currentStepIndex:L.steps.length-1,completed:j.completed.includes(L.id)?j.completed:[...j.completed,L.id]}}return{...j,currentStepIndex:_}})},[l]),E=c.useCallback(()=>{o(j=>({...j,currentStepIndex:Math.max(0,j.currentStepIndex-1)}))},[]),b=c.useCallback(()=>{o(j=>j.activeTutorialId?{...j,status:"idle",activeTutorialId:null,currentStepIndex:0,skipped:j.skipped.includes(j.activeTutorialId)?j.skipped:[...j.skipped,j.activeTutorialId]}:j)},[]),w=c.useCallback(()=>{o(j=>({...j,status:"idle",activeTutorialId:null,currentStepIndex:0}))},[]),I=c.useCallback(j=>{if(!j){aS(),h.current=!1,o(gc());return}o(L=>({...L,completed:L.completed.filter(_=>_!==j),skipped:L.skipped.filter(_=>_!==j),activeTutorialId:null,status:"idle",currentStepIndex:0})),h.current=!1},[]),T=c.useMemo(()=>({status:i.status,activeTutorial:u,currentStep:d,currentStepIndex:i.currentStepIndex,totalSteps:(u==null?void 0:u.steps.length)??0,completed:i.completed,skipped:i.skipped,start:m,beginSteps:f,next:C,back:E,skip:b,finish:w,reset:I}),[i.status,i.currentStepIndex,i.completed,i.skipped,u,d,m,f,C,E,b,w,I]);return t.jsxs(kl.Provider,{value:T,children:[s,n&&i.status!=="idle"&&t.jsx(nS,{})]})}function xc(e){const n=e instanceof HTMLButtonElement?e:e.querySelector("button");return n instanceof HTMLButtonElement&&!n.disabled}const $u=()=>{const e=P(),{pathname:n}=mt(),{whitelabel:s}=Je(),r=PE(),a=!!(r&&r.status!=="idle"),i=Y7(),o=fe(B=>B.leadFinder.banners.isShowUpgradePlan),l=fe(B=>B.leadFinder.banners.isShowOnTheListModal),u=fe(B=>B.leadFinder.isBlurTable),d=fe(B=>B.leadFinder.totalSearchLeads),p=(i==null?void 0:i.totalSearchLeads)??d,h=n==="/lead-finder",{userMe:m}=st(),{billingInfo:f}=ot(),C=c.useMemo(()=>f==null?void 0:f.hasLifetimeDeal,[f]),E=s.isActive,{checkFeature:b,isEnterprise:w,isAgency:I,isTeams:T}=We(),[j,L]=b(X.leadFinderCampaign,!1,!0),_=c.useMemo(()=>!h||E?!1:[bt.starter,bt.middle].includes(Number(L))||C,[L,h,C,E]),N=c.useMemo(()=>E?!1:[bt.starter,bt.middle].includes(Number(L))||C,[L,C,E]),A=c.useMemo(()=>!E&&(j&&Number(p)>=Number(L)||C),[p,L,j,C,E]),R=()=>{if(!(E||a)){if(!w&&!I&&!T){e(vm(!0));return}if(m!=null&&m.isSeWaitlistCompleted){e(Im(!0));return}e(_m(!0)),localStorage.setItem("isWaitlistOpen","true"),e(jm(!0))}},V=i==null?void 0:i.dispatch,O=c.useCallback(()=>{e(Am()),V==null||V({type:Wn.SET_TOTAL_SEARCH_LEADS,payload:0})},[e,V]);return{isLimitContent:A,isShowUpgradePlan:E?!1:o,isShowOnTheListModal:E?!1:l,isBlurTable:E?!1:u,isDisablePerPageOptions:E?!1:_,isDisableFilters:E?!1:N,handleBlurContent:R,handleInitialStateOfMofals:O}},oS=y(g,{target:"exatopl3"})("width:100%;display:flex;align-items:center;background-color:",({theme:e})=>e.isBrandingApplied?e.palette.whitelabel.menu:e.palette.blue.dark,";position:sticky;inset-block-end:0;bottom:0;padding:8px 16px;box-sizing:border-box;border-top:1px solid ",({theme:e})=>e.palette.greyBlue[30],";height:50px;"),Gu=y(g,{target:"exatopl2"})({name:"702vnk",styles:"display:flex;align-items:center;justify-content:center;cursor:pointer;width:52px;height:32px;border:1px solid #4b5a6a;border-top-right-radius:5px;border-bottom-right-radius:5px;&.disabled{cursor:default;}"}),lS=y(Gu,{target:"exatopl1"})({name:"1j7gh9q",styles:"border-right:none;border-radius:5px 0 0 5px"}),cS=y(wE,{target:"exatopl0"})("width:16px;height:16px;margin-right:0px!important;& path{stroke:",({theme:e})=>e.palette.greyNeutral[50],";}"),dS=({page:e=1,perPage:n=Mt,total:s=0,planLimit:r,hideForSinglePageResults:a,onPaginationChange:i,hideRowsPerPage:o=!1,perPageOptions:l=F2,isLimitContent:u=!1})=>{const d=j=>{typeof i=="function"&&i({page:j,perPage:n})},p=j=>{typeof i=="function"&&i({page:1,perPage:Number(j)})},{whitelabel:h}=Je(),{handleBlurContent:m,isDisablePerPageOptions:f}=$u(),C=r==null?s:Math.min(r,s),E=Math.ceil(C/n)||1,b=e===1,w=e===E,I=j=>{var L;return h.isActive&&((L=h.theme)==null?void 0:L.navigationTextColor)||j},T=()=>u&&w?m():!w&&d(e+1);return a&&n>s||!s?null:t.jsxs(oS,{translate:"no",className:"notranslate",children:[o?null:t.jsxs(t.Fragment,{children:[t.jsx(S,{color:I("#ffffff"),inline:!0,mr:"16px",children:"Items per page:"}),t.jsx(gr,{controlContent:t.jsxs(S,{color:I("#ffffff"),children:[n,t.jsx(ln,{style:{verticalAlign:"bottom",marginLeft:"8px"}})]}),controlProps:{bgcolor:"transparent !important",borderColor:"#4b5a6a !important",padding:"6px 16px",height:"auto"},children:l.map(j=>f&&j>50?t.jsx("span",{children:t.jsx(we,{title:"You're seeing a limited set. Upgrade your subscription plan for full access.",children:t.jsx(bs,{color:"#8a8a8a",children:t.jsxs(g,{display:"flex",alignItems:"center",gap:"6px",children:[j," ",t.jsx(cS,{})]})})})},j):t.jsx("span",{children:t.jsx(bs,{onClick:()=>p(j),children:j})},j))})]}),t.jsxs(S,{color:I("#ffffff"),inline:!0,ml:"16px",mr:"auto",children:[(e-1)*n+1," - ",Math.min(e*n,C)," of ",Dn(s)," item",s>1?"s":""]}),t.jsx(gr,{controlContent:t.jsxs(S,{color:I("#ffffff"),children:[e,t.jsx(ln,{style:{verticalAlign:"bottom",marginLeft:"8px"}})]}),controlProps:{bgcolor:"transparent !important",borderColor:"#4b5a6a !important",padding:"6px 16px",height:"auto"},children:Array.from(Array(E)).map((j,L)=>t.jsx("span",{children:t.jsx(bs,{onClick:()=>d(L+1),children:L+1})},L+1))}),t.jsxs(S,{color:I("#ffffff"),inline:!0,mx:"16px",children:["of ",E," page",E>1?"s":""]}),t.jsx(lS,{onClick:()=>!b&&d(e-1),"aria-label":"Go to next page",role:"button",className:Ee({disabled:b}),children:t.jsx(ws,{style:{transform:"rotate(180deg)"},color:b?"#ffffff60":I("#ffffff")})}),t.jsx(Gu,{onClick:T,"aria-label":"Go to previous page",role:"button",className:Ee({disabled:w&&!u}),children:t.jsx(ws,{color:w&&!u?"#ffffff60":I("#ffffff")})})]})},fc=y(g,{target:"eap9r2d3"})("width:100%;max-width:100vw;overflow:hidden;border-radius:12px;border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";box-sizing:border-box;background-color:#ffffff;height:100%;position:relative;&::before{content:'';position:absolute;inset:0;backdrop-filter:blur(5px);opacity:0;transition:opacity 0.4s ease;z-index:998;pointer-events:none;}",({isBlurTableContent:e})=>e&&`
42    &::before {
43      opacity: 1;
44      pointer-events: all;
45    }
46  `,";"),uS=y(g,{target:"eap9r2d2"})("overflow-x:auto;box-sizing:border-box;height:",({height:e})=>e,";&::-webkit-scrollbar{height:24px;width:1px;}&::-webkit-scrollbar-track{border-radius:0 0 5px 5px;background-color:#fff;}&::-webkit-scrollbar-thumb{border-radius:100px;background-color:",({theme:e})=>e.palette.gray.main,";border:7px solid #fff;}"),pS=y(z6,{shouldForwardProp:e=>On(e),target:"eap9r2d1"})("table-layout:fixed;height:fit-content;border-collapse:separate;& tr:first-of-type th:first-of-type{border-top-left-radius:5px;}& tr:first-of-type th:last-of-type{border-top-right-radius:5px;}",({disabled:e})=>e&&"opacity: 0.5; pointer-events: none;"," ",({hideHead:e})=>e&&"& > thead th { padding: 0; border-bottom: none }"," &{td.sticky-left,th.sticky-left{box-shadow:",({highlightSticky:e})=>e!=null&&e.left?"4px 6px 10px 0 #00000014":"none",";}td.sticky-right,th.sticky-right{box-shadow:",({highlightSticky:e})=>e!=null&&e.right?"-4px 6px 10px 0 #00000014":"none",";}}"),hS=y(g,{target:"eap9r2d0"})("padding:30px 15px 20px;font-size:14px;color:",({theme:e})=>e.palette.gray.light,";text-align:center;"),vr=({children:e,processing:n,processingDescription:s="",placeholder:r,paginationProps:a=!1,scrollContainerHeight:i,isBlurTableContent:o=!1,scrollContainerRef:l,...u})=>{const d=c.useRef(null),[p,h]=c.useState({left:!1,right:!1}),m=l||d,f=!!a;let C="100%";i?C=i:f&&(C="calc(100% - 50px)");const E=c.useCallback(()=>{const b=m.current;return{left:!!b&&b.scrollLeft>0,right:!!b&&b.clientWidth<b.scrollWidth&&b.scrollLeft+b.clientWidth+1<=b.scrollWidth}},[m]);return c.useEffect(()=>{h(E())},[m,n]),n?t.jsx(fc,{display:"flex",alignItems:"center",justifyContent:"center",children:t.jsx(Pe,{marginTop:"0",description:s})}):r?t.jsx(hS,{children:r}):t.jsxs(fc,{isBlurTableContent:o,translate:"no",className:"notranslate",children:[t.jsx(uS,{ref:m,he
46ight:C,onScroll:()=>h(E()),children:t.jsx(pS,{...u,highlightSticky:p,children:e})}),f&&t.jsx(dS,{...a})]})},mS=y(S,{target:"e11raq3i2"})("width:1px;color:",({theme:e})=>e.palette.greyBlue[60],";display:flex;justify-content:center;"),gS=y("caption",{target:"e11raq3i1"})({name:"1w4i87v",styles:"height:76px;width:1px;box-sizing:border-box;text-align:center!important;padding-top:32px!important;position:sticky;left:50%;white-space:nowrap"}),xS=y(W6,{target:"e11raq3i0"})({name:"m1f7x1",styles:"background-color:#ffffff;overflow-y:auto"}),Ir=({children:e,placeholder:n,...s})=>n?t.jsx(gS,{children:t.jsx(mS,{children:n})}):t.jsx(xS,{...s,children:e}),fS=y(l2,{target:"e17etx1s1"})("font-family:Inter,sans-serif;background-clip:padding-box;padding:",({paddingBox:e})=>e||"16.5px 16px",";box-sizing:border-box;border-color:#e8e8e8;&.sticky{position:sticky;background-color:#ffffff;z-index:100;}&.sticky-right{right:0;}&.sticky-left{left:0;}"),CS=y(g,{shouldForwardProp:e=>On(e),target:"e17etx1s0"})("display:inline-block;font-size:14px;line-height:20px;letter-spacing:0;white-space:",({whiteSpace:e})=>e,";text-overflow:ellipsis;overflow:hidden;color:",({theme:e})=>e.palette.greyBlue[100],";"),ze=({children:e,tooltip:n,tooltipPlacement:s="top",preventClick:r,contentStyle:a,justifyContent:i,maxWidth:o,whiteSpace:l="nowrap",sticky:u=!1,stickyPosition:d="right",hasStaticTooltip:p=!1,...h})=>{const m=c.useRef(null),[f,C]=c.useState(!0);return c.useEffect(()=>{const E=m.current;E&&C(E.scrollWidth>E.offsetWidth)},[]),t.jsx(fS,{variant:"body",className:Ee({sticky:u,[`sticky-${d}`]:u}),...h,children:t.jsx(g,{display:"flex",alignItems:"center",justifyContent:i,maxWidth:o,height:"100%",boxSizing:"border-box",...r&&{onClick:E=>E.stopPropagation()},children:t.jsx(we,{title:(p||f)&&n,placement:s,children:t.jsx(CS,{maxWidth:o,whiteSpace:l,style:a,ref:m,children:e})})})})},yS=y(q6,{shouldForwardProp:e=>On(e),target:"e15yugm80"})("height:100%;box-sizing:border-box;cursor:",({cursor:e})=>e,";",({hoverBgColor:e})=>`
47  &:hover, 
48  &:hover > td {
49   background-color: ${e} 
50   }`," ",({bgColor:e})=>`
51  background-color: ${e||"inherit"};
52  `," ",({checked:e,theme:n})=>e?`
53      &,
54      & > td {
55       background-color: ${n.palette.bg.blue} !important; 
56      }`:"",";"),dn=({children:e,hoverBgColor:n,cursor:s,ref:r,...a})=>{const{palette:i}=Ve(),o=typeof n=="function"?n==null?void 0:n(i):n;return t.jsx(yS,{...a,ref:r,hoverBgColor:o,cursor:s,children:e})},ES=y(Z6,{target:"e2kkatz0"})("position:sticky;inset-block-start:0;z-index:101;background-color:",({theme:e,bgColor:n})=>n||(e.isBrandingApplied?e.palette.whitelabel.menu:e.palette.blue.dark),";border-bottom:1px solid ",({theme:e})=>e.palette.greyBlue[30],";"),_r=({children:e,sticky:n,bgColor:s,...r})=>t.jsx(ES,{"data-testid":"table-head",className:Ee({sticky:n}),bgColor:s,...r,children:e}),zu=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M12 18.9999L11.9998 3.99986",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M7 14.9999L11.2929 19.2928C11.6262 19.6261 11.7929 19.7928 12 19.7928C12.2071 19.7928 12.3738 19.6261 12.7071 19.2928L17 14.9999",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),SS=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.3334 2.1665C11.6096 2.1665 11.8334 2.39036 11.8334 2.6665V12.2107L12.9675 10.9926C13.1556 10.7905 13.472 10.7792 13.6741 10.9673C13.8762 11.1555 13.8875 11.4719 13.6994 11.674L12.1708 13.3159C12.1654 13.3217 12.16 13.3275 12.1546 13.3333C12.0579 13.4373 11.9541 13.5489 11.8545 13.6305C11.7395 13.7247 11.5671 13.8333 11.3334 13.8333C11.0997 13.8333 10.9273 13.7247 10.8123 13.6305C10.7128 13.5489 10.6089 13.4372 10.5122 13.3333C10.5068 13.3274 10.5014 13.3217 10.4961 13.3159L8.96746 11.674C8.7793 11.4719 8.79061 11.1555 8.99272 10.9673C9.19483 10.7792 9.51121 10.7905 9.69938 10.9926L10.8334 12.2107V2.6665C10.8334 2.39036 11.0573 2.1665 11.3334 2.1665ZM5.16675 3.78915L6.30079 5.00728C6.48895 5.20939 6.80533 5.22071 7.00744 5.03254C7.20956 4.84438 7.22087 4.528 7.03271 4.32589L5.50411 2.68394C5.49876 2.67819 5.49338 2.67241 5.48798 2.6666C5.39124 2.56261 5.2874 2.45098 5.18783 2.36938C5.07287 2.27517 4.90042 2.16659 4.66675 2.16659C4.43308 2.16659 4.26063 2.27517 4.14567 2.36938C4.0461 2.45098 3.94226 2.56261 3.84552 2.6666C3.84012 2.67241 3.83474 2.67819 3.82939 2.68394L2.30079 4.32589C2.11263 4.528 2.12394 4.84438 2.32605 5.03254C2.52817 5.22071 2.84455 5.20939 3.03271 5.00728L4.16675 3.78915V13.3333C4.16675 13.6094 4.39061 13.8333 4.66675 13.8333C4.94289 13.8333 5.16675 13.6094 5.16675 13.3333V3.78915Z",fill:"currentColor"})),Cc=y(l2,{target:"e1mo9gie2"})("font-family:Inter,sans-serif;border:none;padding:14px 16px;background-clip:padding-box;",({width:e})=>e?`width: ${e} !important; box-sizing: border-box;`:""," &::first-letter{text-transform:capitalize;}&.sortable{cursor:pointer;}&.sticky{position:sticky;background-color:inherit;z-index:101;}&.sticky-right{right:0;}&.sticky-left{left:0;}"),bS=["secondary"],LS=y(g,{shouldForwardProp:e=>!bS.includes(e),target:"e1mo9gie1"})("display:flex;align-items:center;font-weight:500;font-size:",e=>e.secondary?"10":"14","px;white-space:nowrap;height:100%;"),wS=y(zu,{target:"e1mo9gie0"})({name:"21xn5r",styles:"transform:rotate(180deg)"}),Qe=({children:e,width:n,name:s,sorting:r,tooltip:a,secondary:i,tooltipPlacement:o="top",justifyContent:l="flex-start",contentStyle:u,contentColor:d,sticky:p=!1,stickyPosition:h="right",empty:m=!1,...f})=>{const C=!!(s&&(r!=null&&r.onSortFieldChange)),E=s===(r==null?void 0:r.sortField),{whitelabel:b}=Je(),w=L=>{var _;return b.isActive&&((_=b.theme)==null?void 0:_.navigationTextColor)||L},I=()=>{s&&(r!=null&&r.onSortFieldChange)&&r.onSortFieldChange(s,E&&(r==null?void 0:r.sortOrder)==="ASC"?"DESC":"ASC")};if(m)return t.jsx(Cc,{variant:"head",width:"0",sx:{padding:"0 !important"},...f});let T=SS;E&&(T=(r==null?void 0:r.sortOrder)==="ASC"?wS:zu);const j=C?{onClick:I}:{};return t.jsx(Cc,{"data-testid":"table-head-cell",variant:"head",width:n,className:Ee({sortable:C,sticky:p,[`sticky-${h}`]:p}),...j,...f,children:t.jsx(we,{title:a,placement:o,children:t.jsxs(LS,{justifyContent:l,secondary:i,color:d||w("#ffffff"),fontWeight:"500",lineHeight:"20px",style:u,children:[e,C&&t.jsx(T,{color:w("#e8e8eb"),width:"16px",height:"16px","data-testid":`table-sorting-${s}`,style:{verticalAlign:"bottom",marginLeft:"8px"}})]})})})},TS=y(dn,{shouldForwardProp:e=>e!=="staggerDelayMs",target:"e1x461040"})("animation:animatedTableRowReveal ",yE,"ms ",ir," both;animation-delay:calc(var(",Ou,", 0ms) + ",({staggerDelayMs:e})=>e,"ms);@keyframes animatedTableRowReveal{from{opacity:0;transform:translateY(4px);}to{opacity:1;transform:translateY(0);}}@media (prefers-reduced-motion: reduce){animation:none;}"),jS=y(g,{target:"eb554642"})({name:"o34hfs",styles:"position:relative;flex:1;min-height:0;min-width:0;width:100%;display:flex"}),vS=y(g,{shouldForwardProp:e=>e!=="collapsed",target:"eb554641"})("display:flex;width:100%;height:100%;transform-origin:center center;opacity:",({collapsed:e})=>e?0:1,";transform:",({collapsed:e})=>e?"scale(0.97)":"scale(1)",";transition:opacity ",or,"ms ",ir,",transform ",or,"ms ",ir,";pointer-events:",({collapsed:e})=>e?"none":"auto",";@media (prefers-reduced-motion: reduce){transition:opacity ",or,"ms ",ir,";transform:none;}"),yc=y(g,{shouldForwardProp:e=>e!=="delayed",target:"eb554640"})("position:absolute;inset:0;display:flex;flex-direction:column;opacity:0;transform:scale(0.98);transform-origin:center center;",Ou,":",({delayed:e})=>e?`${So}ms`:"0ms",";
56animation:morphRevealIn ",or,"ms ",ir," ",({delayed:e})=>e?`${So}ms`:"0ms"," forwards;@keyframes morphRevealIn{from{opacity:0;transform:scale(0.98);}to{opacity:1;transform:scale(1);}}@media (prefers-reduced-motion: reduce){animation:none;opacity:1;transform:none;}&>*{width:100%;flex:1;min-height:0;min-width:0;box-sizing:border-box;}"),IS=({view:e,skeleton:n,emptyState:s,children:r,"data-testid":a="morph-stack"})=>{const[i,o]=c.useState(e==="skeleton"),l=e==="skeleton"||i,u=c.useRef(e==="skeleton");return c.useEffect(()=>{if(e==="skeleton"){o(!0);return}const d=setTimeout(()=>o(!1),or+So);return()=>clearTimeout(d)},[e]),t.jsxs(jS,{"data-testid":a,children:[l&&t.jsx(vS,{collapsed:e!=="skeleton","aria-hidden":e!=="skeleton",children:n}),e==="empty"&&t.jsx(yc,{delayed:u.current,children:s},"empty"),e==="data"&&t.jsx(yc,{delayed:u.current,children:r},"data")]})},_S=y(g,{target:"eqpgygx0"})("height:100%;min-height:100%;box-sizing:border-box;animation:pageContentFadeIn ",an,"ms ",gn," forwards;@keyframes pageContentFadeIn{from{opacity:0;}to{opacity:1;}}@media (prefers-reduced-motion: reduce){animation:none;}"),AS=({children:e})=>t.jsx(_S,{"data-testid":"page-content-reveal",children:e}),vi={bgcolor:"rgba(255, 255, 255, 0.18)","&::after":{background:"linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent)"}},NS=y(g,{target:"elafw71"})("display:flex;align-items:center;gap:12px;padding:14px 16px;background-color:",({theme:e})=>e.isBrandingApplied?e.palette.whitelabel.menu:e.palette.blue.dark,";"),kS=y(g,{target:"elafw70"})("display:flex;align-items:center;gap:12px;padding:10px 16px;min-height:52px;border-bottom:1px solid ",({theme:e})=>e.palette.greyNeutral[20],";&:last-of-type{border-bottom:none;}"),RS=y(g,{target:"ecwigb81"})({name:"1wbuc8y",styles:"width:100%;box-sizing:border-box;min-height:30px;line-height:20px;padding:15px;background-color:#ffe8a6;color:#b48e23;display:flex;align-items:center;justify-content:center"}),MS=y("button",{target:"ecwigb80"})({name:"1ln2eop",styles:"display:inline-flex;align-items:baseline;justify-content:center;width:100px;height:30px;padding:5px;cursor:pointer;background-color:#b48e23;color:#ffe8a6;border-radius:4px;margin-left:10px"}),PS=()=>{const{companyName:e}=Fe(),{realImpersonateUser:n}=pn(),{userMe:s}=st(),{stopImpersonateUser:r}=Z0();return n!=null&&n.id?t.jsxs(RS,{children:["You are managing ",e," for ",s==null?void 0:s.name,". To exit:"," ",t.jsx(MS,{onClick:()=>r(),children:t.jsx(jt,{fontSize:"15px",children:"click here"})})]}):null};se.extend(ss);const OS=y(g,{target:"e12nx5qn1"})("display:flex;justify-content:center;align-items:center;width:100%;background-color:",({theme:e})=>e.palette.success.main,";padding:5px;color:#ffffff;max-height:40px;box-sizing:border-box;"),DS=y(At,{target:"e12nx5qn0"})("color:",({theme:e})=>e.palette.success.main,";background-color:#ffffff;width:180px;border-radius:4px;font-size:14px;line-height:17px;text-align:center;padding:8px;box-sizing:border-box;"),US=e=>se(e).local().format("MM/DD/YY"),BS=e=>se.utc(e*1e3).local().format("MM/DD/YY"),HS=()=>{const{billingInfo:e}=ot(),n=cu(),[s,r]=c.useState(null);c.useEffect(()=>{const o=({trialEnd:l})=>{l&&r(l)};return n.on("trial-auto-extended",o),()=>{n.off("trial-auto-extended",o)}},[n]);const a=c.useMemo(()=>{if(s)return US(s);if(e!=null&&e.stripeSubscriptionObject){const o=e.stripeSubscriptionObject.trial_end||e.stripeSubscriptionObject.current_period_end;return BS(o)}return null},[e,s]),i=c.useMemo(()=>e!=null&&e.stripeTokenObject?"/billing/subscription/edit":"/billing/subscription/plans",[e]);return t.jsxs(OS,{children:[t.jsx(S,{mr:"20px",lineHeight:"30px",color:"#fff",children:a&&t.jsxs(t.Fragment,{children:["Trial ends on: ",a]})}),t.jsx(DS,{to:i,children:"Choose a plan"})]})};se.extend(ss);const VS=y(Cp,{target:"e1r82bpi8"})({name:"1evk2rk",styles:"min-height:40px;max-width:100vw;position:relative;overflow:hidden"}),FS=fr`
57  from {
58    max-height: 40px;
59    height: 40px;
60    opacity: 1;
61  }
62  to {
63    max-height: 0;
64    height: 0;
65    opacity: 0;
66  }
67`,$S=y(g,{target:"e1r82bpi7"})("max-height:40px;height:40px;overflow:hidden;animation:",({isClosing:e})=>e?FS:"none"," 0.3s ease-out forwards;"),GS=y(g,{target:"e1r82bpi6"})({name:"13udsys",styles:"height:100%"}),zS=y(g,{target:"e1r82bpi5"})({name:"13udsys",styles:"height:100%"}),Ec=y(g,{target:"e1r82bpi4"})({name:"okyep7",styles:"display:inline-flex;position:absolute;top:50%;transform:translate(0, -50%);color:white;height:16px;z-index:1;cursor:pointer"}),WS=y("span",{target:"e1r82bpi3"})({name:"uzb2se",styles:"padding:0 12px;text-decoration:underline;cursor:pointer;&:hover{font-weight:600;}"}),Wu=y(g,{target:"e1r82bpi2"})({name:"1y6aawe",styles:"height:40px;padding:5px 15px;text-align:center;line-height:30px;font-size:14px;font-weight:300;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;box-sizing:border-box;& a{font-family:inherit;text-decoration:underline;}"}),tn=y(Wu,{target:"e1r82bpi1"})(({theme:{palette:e},colorText:n})=>({backgroundColor:e.notification.warningBg,color:n||e.notification.warningText,"& a":{color:n||e.notification.warningText}}),""),Fn=y(Wu,{target:"e1r82bpi0"})(({theme:{palette:e},colorText:n})=>({backgroundColor:e.notification.errorBg,color:n||e.notification.errorText,"& a":{color:n||e.notification.errorText}}),""),qS=()=>{var M;const e=P(),{pathname:n}=mt(),s=c.useRef(null),[r,a]=c.useState(new Set),{userMe:i}=st(),{isStarter:o,isTrialStarted:l,checkFeature:u}=We(),{whitelabel:{isWhiteLabelUser:d,theme:p,isActive:h}}=Je(),{companyName:m}=Fe(),{billingInfo:f}=ot(),C=fe(Dm),{profile:E,isAppDeactivated:b,isAppPaused:w}=fe(F=>F.user),{isBlocked:I,isBlockedOwnerWithBillingAccess:T}=Tl(),[j]=u(X.notification),L=h&&(p!=null&&p.navigationTextColor)?p==null?void 0:p.navigationTextColor:null,_=({content:F,type:W,id:ne})=>{var K,re,ae;const $=()=>{a(pe=>new Set(pe).add(ne)),setTimeout(()=>{e(Om({notificationId:ne})),a(pe=>{const ie=new Set(pe);return ie.delete(ne),ie})},300)},z=()=>t.jsx(WS,{onClick:$,children:"(Close)"});
67if(!b)switch(W){case te.OUTSIDE_SCHEDULED:return t.jsxs(tn,{colorText:L,children:["Campaigns Paused. Outside of scheduled ",t.jsx(At,{to:"/settings/work-hours",children:"work hours."})," ",t.jsx(z,{})]});case te.LINKEDIN_MAX_PENDING_INVITES:return t.jsxs(tn,{colorText:L,children:["Detected more than 2,500 pending connection requests. To avoid getting your account restricted,"," ",t.jsx("a",{href:"https://www.linkedin.com/mynetwork/invitation-manager/sent/",target:"_blank",rel:"noopener noreferrer",children:"please withdraw to less than 500"}),". Invitations are disabled until this is resolved."]});case te.LINKEDIN_ERROR:return t.jsxs(Fn,{colorText:L,children:["There's something wrong connecting your Linkedin account. Please go to"," ",t.jsx(At,{to:"/integrations?tab=linkedin",children:"integrations settings"})," to check the issue.",t.jsx(z,{})]});case te.LIMITED_CONNECTIONS_REQUESTS:return t.jsxs(tn,{colorText:L,children:[o?t.jsxs(t.Fragment,{children:["Your LinkedIn Connection Requests Are Limited. Consider"," ",t.jsx(At,{to:"/billing/edit",children:"Upgrading Your Plan"})," to Unlock Alternatives."]}):t.jsxs(t.Fragment,{children:["Limited LinkedIn Connection Requests Detected. While ",m," works on bypassing limits, consider exploring Multichannel Alternatives to amplify your impact."]}),t.jsx(z,{})]});case te.LINKEDIN_PASSWORD_RESET:return t.jsxs(Fn,{colorText:L,children:["Action Required:"," ",t.jsx("a",{href:"https://www.linkedin.com/mypreferences/d/change-password",target:"_blank",rel:"noopener noreferrer",children:"Reset Your LinkedIn Password."})," ","Please reset your LinkedIn password and then proceed to reconnect ",m,"."]});case te.LIMIT_OF_LI_CONNECTIONS:return t.jsxs(tn,{colorText:L,children:["You are about to reach LinkedIn’s limit on number of connections. This can affect your ability to send new invitations.",t.jsx(z,{})]});case te.BOT_RECONNECT_STATUS:return((K=i==null?void 0:i.cloudBotStatus)==null?void 0:K.reconnectStatus)&&t.jsxs(tn,{colorText:L,children:[(re=i==null?void 0:i.cloudBotStatus)==null?void 0:re.reconnectStatus.replace("{appName}",m),t.jsx(z,{})]});case te.OUTLOOK_INTEGRATION_ERROR:return t.jsxs(tn,{colorText:L,children:["Oops! It looks like there’s a problem with your"," ",t.jsx(At,{to:"/integrations?tab=email",children:"Outlook email integration"}),". Just disconnect and then hit the connect button to set things right again.",t.jsx(z,{})]});case te.LI_INVITES_RESTRICTION:return t.jsxs(tn,{colorText:L,children:["Hey There! We've noticed a limit with connection request messages."," ",d?"Check your campaign activity to learn how to bypass your messaging limits.":t.jsxs(t.Fragment,{children:[t.jsx(At,{target:"_blank",rel:"noopener noreferrer",to:"https://help.meetalfred.com/en/articles/8688481-master-linkedin-s-connection-request-messages-changes",children:"Click here"})," ","to learn how to bypass your messaging limits with ",m,"."]}),t.jsx(z,{})]});case te.FACEBOOK_INTEGRATION_ERROR:return t.jsxs(tn,{colorText:L,children:["We've encountered an error. Please disconnect and reconnect your"," ",t.jsx(At,{to:"/integrations?tab=facebook",children:"Facebook account"}),".",t.jsx(z,{})]});case te.SUBSCRIPTION_CANCELLED:return t.jsxs(Fn,{colorText:L,children:["Your subscription is canceled. Your account will be inaccessible at the end of your billing cycle.",t.jsx(z,{})]});case te.SUBSCRIPTION_PAUSED:return t.jsxs(Fn,{colorText:L,children:["Account is paused. All campaigns are currently paused. To continue using ",m," please resume your subscription."]});case te.ACCOUNT_BLOCKED:return t.jsx(Fn,{colorText:L,children:"Your account is blocked until your pending invoice is completed. Please contact accounts regarding your subscription."});case te.SUBSCRIPTION_RENEWAL_REMINDER:{const pe=(ae=f==null?void 0:f.stripeSubscriptionObject)==null?void 0:ae.current_period_end;if(!pe)return null;const ie=se.utc(pe*1e3).local().format(G5);return t.jsxs(tn,{colorText:L,sx:{display:"flex",justifyContent:"center"},children:[t.jsxs(S,{lineHeight:"30px",color:"inherit",fontWeight:"300",whiteSpace:"nowrap",textAlign:"center",children:["Your subscription will automatically renew on ",ie,". To change your payment details"," ",t.jsx(At,{to:"/billing/subscription",children:"Click here."})]}),t.jsx(z,{})]})}}switch(W){case te.ERROR:return t.jsxs(Fn,{children:[F,t.jsx(z,{})]});case te.WARN:return t.jsxs(tn,{colorText:L,children:[F,t.jsx(z,{})]});case te.DEACTIVATED:return t.jsxs(Fn,{children:["Account deactivated. All campaigns are currently paused. To continue using ",m,", please subscribe."]});case te.TRIAL:return t.jsx(HS,{});default:return null}},N=c.useMemo(()=>C.filter(F=>I?T&&F.type===te.ACCOUNT_BLOCKED:!((b||w)&&[te.OUTSIDE_SCHEDULED,te.LINKEDIN_MAX_PENDING_INVITES,te.LINKEDIN_ERROR].some(W=>W===F.type)||l&&F.type===te.LIMITED_CONNECTIONS_REQUESTS||F.type===te.TRIAL&&(n.includes("walkthrough")||n.includes("/welcome")||!(E!=null&&E.isEmailVerified)))),[I,T,b,w,l,E==null?void 0:E.isEmailVerified,n,C]);if(!(j||T&&N.length>0)||!N.length)return null;const R=()=>{var F;return(F=s.current)==null?void 0:F.slickNext()},V=()=>{var F;return(F=s.current)==null?void 0:F.slickPrev()},O=()=>t.jsx(Ec,{right:25,children:t.jsx(yt,{onClick:R,icon:bp})}),B=()=>t.jsx(Ec,{left:25,children:t.jsx(yt,{onClick:V,icon:Sp})}),D=N.length>0&&r.has((M=N[0])==null?void 0:M.id);return t.jsx($S,{isClosing:D,children:t.jsx(VS,{nextArrow:t.jsx(O,{}),prevArrow:t.jsx(B,{}),ref:s,dots:!1,infinite:!0,speed:500,children:N.map((F,W)=>t.jsx(GS,{children:t.jsx(zS,{children:_(F)})},W))})})},ZS=y(g,{target:"e1w1samj0"})("position:absolute;top:-6px;right:-5px;min-width:",({isLarge:e})=>e?"17px":"16px",";height:",({isLarge:e})=>e?"17px":"16px",";background-color:#d3241d;border-radius:50%;display:flex;align-items:center;justify-content:center;z-index:1;"),YS=({count:e})=>
67{if(e===0)return null;const n=e>99;return t.jsx(ZS,{isLarge:n,children:t.jsx(S,{fontSize:"8px",fontWeight:"600",color:"white",children:e>99?"99+":e})})},KS=y(g,{target:"e1f4ahig3"})({name:"tpuys5",styles:"display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#6c757d;padding:60px 20px;background-color:white;border-radius:12px;margin:12px"}),QS=y(S,{target:"e1f4ahig2"})({name:"44lza9",styles:"font-size:16px;font-weight:600;color:#1a1a1a;margin-bottom:8px;line-height:24px"}),XS=y(S,{target:"e1f4ahig1"})({name:"1ofsthm",styles:"font-size:14px;color:#656f7d;line-height:20px"}),JS=y(S,{target:"e1f4ahig0"})({name:"1h1xbmu",styles:"font-size:14px;color:#6c757d;margin-top:2px"}),eb=({showUnreadOnly:e})=>t.jsxs(KS,{children:[t.jsx(QS,{children:e?"No unread notifications":"No notifications available"}),t.jsx(XS,{children:e?"You've already read all your updates.":"When you receive new updates, they'll appear here."}),e&&t.jsx(JS,{children:"Switch back to see your full history."})]}),tb=y(g,{shouldForwardProp:e=>e!=="active",target:"ev5a33f3"})("width:30px;height:20px;background-color:",({active:e})=>e?"#288637":"#B5B5B5",";border-radius:20px;position:relative;cursor:pointer;transition:background-color 0.2s;&::after{content:'';position:absolute;width:15px;height:15px;background-color:white;border-radius:50%;top:2.5px;left:",({active:e})=>e?"13px":"2px",";transition:left 0.2s;}"),nb=y(g,{target:"ev5a33f2"})({name:"bptc9s",styles:"display:flex;align-items:center;gap:4px;background-color:#ffffff;padding:2px;border-radius:8px"}),sb=y(g,{shouldForwardProp:e=>e!=="active",target:"ev5a33f1"})("padding:4px;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500;background-color:",({active:e})=>e?"#15283D":"transparent",";color:",({active:e})=>e?"white":"#656F7D",";transition:all 0.2s ease-in-out;display:flex;align-items:center;gap:8px;&:hover{background-color:",({active:e})=>e?"#15283D":"#f8f9fa",";}"),rb=y(g,{shouldForwardProp:e=>e!=="active",target:"ev5a33f0"})("background-color:",({active:e})=>e?"white":"#F2F5FF",";color:",({active:e})=>e?"#1B4ED2":"#656F7D",";padding:6px 10px;border-radius:4px;font-size:12px;font-weight:600;border:1px solid #e8e8eb;"),ab=({showUnreadOnly:e,onToggleUnreadOnly:n,onSeeAllNotifications:s,onOpenPopup:r,children:a,groupedCountData:i,activeTab:o=0,onTabChange:l,isTeamOwner:u=!1,showTabs:d=!0})=>{const p=m=>{let f=0;return m==="user"?f=(i==null?void 0:i.userCount)||0:m==="team"?f=(i==null?void 0:i.teamCount)||0:f=(i==null?void 0:i.totalCount)||0,Dn(f)},h=u?[{label:"All",count:p()},{label:"Personal",count:p("user")},{label:"Team",count:p("team")}]:[{label:"Personal",count:p("user")}];return t.jsx(g,{px:"20px",py:"16px",bgcolor:"#F7F7F9",children:t.jsxs(g,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[t.jsxs(g,{display:"flex",alignItems:"center",gap:"16px",children:[t.jsxs(g,{display:"flex",alignItems:"center",children:[t.jsx(tb,{active:e,onClick:n}),t.jsx(jt,{fontSize:"14px",color:"#121313",ml:"8px",children:"Only show unread"})]}),d&&l&&t.jsx(nb,{children:h.map((m,f)=>t.jsxs(sb,{active:o===f,onClick:()=>l(f),children:[t.jsx(jt,{fontSize:"14px",fontWeight:"500",ml:"8px",children:m.label}),t.jsx(rb,{active:o===f,children:m.count})]},m.label))})]}),t.jsxs(g,{display:"flex",alignItems:"center",gap:"12px",children:[t.jsx(je,{onClick:s,fontSize:"14px",fontWeight:"600",variant:"default",rightIcon:!0,children:"See all notifications"}),t.jsx(g,{position:"relative",onClick:r,children:a})]})]})})},Ar=e=>c.createElement("svg",{width:14,height:14,viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M11.0837 2.91699L2.91699 11.0837",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M2.91699 2.91699L11.0837 11.0837",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),ib=y(g,{target:"eoirrg00"})({name:"rhfyrk",styles:"padding:21px 24px;border-bottom:1px solid #ebebeb;display:flex;align-items:center;justify-content:space-between;background-color:white"}),Ii=({unreadCount:e,onClose:n})=>t.jsxs(ib,{children:[t.jsxs(g,{display:"flex",alignItems:"center",children:[t.jsx(S,{fontSize:"20px",fontWeight:"500",color:"##000E33",lineHeight:"25px",children:"Notifications"}),e>0&&t.jsx(g,{ml:"8px",width:e>99?"28px":"24px",height:e>99?"28px":"24px",borderRadius:"50%",bgcolor:"#D3241D",display:"flex",alignItems:"center",justifyContent:"center",children:t.jsx(S,{fontSize:"12px",fontWeight:"600",color:"white",children:e>99?"99+":e})})]}),t.jsx(c2,{onClick:n,size:"small",sx:{fontSize:"none"},children:t.jsx(Ar,{width:"18",height:"18",color:"#121313"})})]}),Sc=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_5778_30425)"},c.createElement("path",{d:"M9.99252 12.5001H10M10 10.0001V6.66675M18.3333 10.0001C18.3333 14.6025 14.6024 18.3334 10 18.3334C5.39763 18.3334 1.66667 14.6025 1.66667 10.0001C1.66667 5.39771 5.39763 1.66675 10 1.66675C14.6024 1.66675 18.3333 5.39771 18.3333 10.0001Z",stroke:"#D3241D",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_5778_30425"},c.createElement("rect",{width:20,height:20,fill:"white"})))),ob=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_5778_30418)"},c.createElement("path",{d:"M18.3333 9.99992C18.3333 5.39754 14.6024 1.66658 10 1.66658C5.39763 1.66658 1.66667 5.39754 1.66667 9.99992C1.66667 14.6023 5.39763 18.3333 10 18.3333C14.6024 18.3333 18.3333 14.6023 18.3333 9.99992Z",stroke:"#527CEB",strokeWidth:1.5}),c.createElement("path",{d:"M10.2018 14.1665V9.99984C10.2018 9.607 10.2018 9.41058 10.0798 9.28854C9.95774 9.1665 9.76133 9.1665 9.36849 9.1665",stroke:"#527CEB",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M9.99252 6.6665H10",stroke:"#527CEB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_5778_30418"},c.createElement("rect",{width:20,height:20,fill:"white"})))),lb=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_5778_30433)"},c.createElement("path",{d:"M18.3333 9.99992C18.3333 5.39754 14.6024 1.66658 10 1.66658C5.39763 1.66658 1.66667 5.39754 1.66667 9.99992C1.66667 14.6023 5.39763 18.3333 10 18.3333C14.6024 18.3333 18.3333 14.6023 18.3333 9.99992Z",stroke:"#288637",strokeWidth:1.5}),c.createElement("path",{d:"M6.66667 10.4167L8.75 12.5L13.3333 7.5",stroke:"#288637",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_5778_30433"},c.createElement("rect",{width:20,height:20,fill:"white"})))),cb=y(g,{target:"e1wgfgjy2"})("background-color:",({isRead:e})=>e?"white":"#F1F5FF",";border-radius:8px;padding:16px;cursor:pointer;transition:all 0.2s ease-in-out;opacity:0;transform:translateY(10px);animation:slideIn 0.3s ease-out forwards;animation-delay:",({index:e})=>e*.05,"s;&:hover{background-color:",({isRead:e})=>e?"#f8f9fa":"#E8F0FE",";transform:translateY(-2px);box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);}&:not(:last-child){margin-bottom:12px;}@keyframes slideIn{to{opacity:1;transform:translateY(0);}}"),db=y(g,{target:"e1wgfgjy1"}
67)({name:"11nvjwd",styles:"width:40px;height:40px;display:flex;align-items:center;justify-content:center;margin-right:12px;position:relative;background-color:#ffffff;border-radius:12px;border:0.5px solid #e8e8eb;box-shadow:0px 1px 5px 0px rgba(0, 0, 0, 0.06),0px -2px 2px 0px rgba(0, 0, 0, 0.05)"}),ub=y(g,{target:"e1wgfgjy0"})({name:"185cbbj",styles:"position:absolute;top:0;right:0;width:6px;height:6px;background-color:#e33326;border-radius:50%;z-index:1"}),pb=e=>{switch(e){case it.SUCCESS:return t.jsx(lb,{width:"20",height:"20"});case it.ERROR:return t.jsx(Sc,{width:"20",height:"20"});case it.WARNING:return t.jsx(Sc,{width:"20",height:"20"});case it.NOTICE:default:return t.jsx(ob,{width:"20",height:"20"})}},bc=(e,n)=>e===M5.LINKEDIN_DISCONNECTED?t.jsx(g,{onClick:n,sx:{fontWeight:600,fontSize:"14px",lineHeight:"20px",color:"#1B4ED2",cursor:"pointer",textDecoration:"none",display:"inline-block","&:hover":{textDecoration:"underline"}},children:"Connect LinkedIn"}):null,hb=({notification:e,index:n,onNotificationClick:s,onLinkClick:r,notificationType:a})=>t.jsx(cb,{isRead:e.isRead||!1,index:n,onClick:()=>s(e),children:t.jsxs(g,{display:"flex",alignItems:"flex-start",gap:"12px",children:[t.jsxs(db,{children:[pb(e.level||it.NOTICE),!e.isRead&&t.jsx(ub,{})]}),t.jsxs(g,{flex:"1",minWidth:0,children:[t.jsx(S,{fontSize:"14px",color:"#212529",lineHeight:"1.4",children:e.content||"New notification received."}),bc(a,r)&&t.jsx(g,{children:bc(a,r)}),t.jsxs(g,{mt:"4px",children:[t.jsx(S,{sx:{color:"rgb(18, 19, 19)",fontFamily:"Inter, sans-serif",fontSize:"14px",lineHeight:"20px",fontWeight:400,letterSpacing:"0px"},children:Ms(se.utc(e.createdAt).local(),"MMMM Do YYYY")}),t.jsx(S,{sx:{color:"rgb(102, 102, 102)",fontFamily:"Inter, sans-serif",fontSize:"12px",lineHeight:"16px",fontWeight:400,letterSpacing:"0px"},children:se.utc(e.createdAt).local().format("h:mm a")})]})]})]})}),mb=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M2.5 11.1111C2.5 11.1111 3.75 11.6667 5.41667 14.1667C5.41667 14.1667 5.65404 13.766 6.10111 13.1272M14.1667 5C12.2571 5.95481 10.2599 7.95984 8.65659 9.8519",stroke:"#15283D",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M6.66663 11.1111C6.66663 11.1111 7.91663 11.6667 9.58329 14.1667C9.58329 14.1667 14.1666 7.08333 18.3333 5",stroke:"#15283D",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),gb=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M16.6667 9.87113C16.7191 9.96909 16.7784 10.066 16.8454 10.1617C17.2443 10.7252 17.7829 11.3022 17.8918 11.9951C18.069 13.1226 17.2767 13.9052 16.3067 14.2953C12.5877 15.7906 7.41238 15.7906 3.69342 14.2953C2.72337 13.9052 1.9311 13.1226 2.10831 11.9951C2.21722 11.3022 2.75574 10.7252 3.15471 10.1617C3.67731 9.41468 3.72924 8.59984 3.72931 7.73292C3.72931 4.38267 6.53681 1.66675 10 1.66675C10.4281 1.66675 10.8461 1.70824 11.25 1.78728",stroke:"#141B34",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M14.1667 8.51182V9.58325M14.1667 8.51182C13.2027 8.51182 12.3534 8.03832 11.8553 7.31935M14.1667 8.51182C15.1307 8.51182 15.98 8.03832 16.4781 7.31935M14.1667 3.15468C15.1308 3.15468 15.9801 3.62826 16.4782 4.34731M14.1667 3.15468C13.2027 3.15468 12.3533 3.62826 11.8552 4.34731M14.1667 3.15468V2.08325M17.5 3.69039L16.4782 4.34731M10.8337 7.97611L11.8553 7.31935M10.8334 3.69039L11.8552 4.34731M17.4997 7.97611L16.4781 7.31935M16.4782 4.34731C16.7728 4.77251 16.9445 5.28354 16.9445 5.83325C16.9445 6.38303 16.7727 6.89412 16.4781 7.31935M11.8552 4.34731C11.5607 4.77251 11.3889 5.28354 11.3889 5.83325C11.3889 6.38303 11.5607 6.89412 11.8553 7.31935",stroke:"#141B34",strokeWidth:1.5,strokeLinecap:"round"}),c.createElement("path",{d:"M6.25 15.4167C6.66667 17.5001 9.03956 18.3334 10 18.3334C10.9604 18.3334 12.9167 17.9167 13.75 15.4167",stroke:"#141B34",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),xb=y(g,{target:"ew3jodf3"})({name:"uh1w8b",styles:"position:absolute;top:100%;right:0;background-color:white;border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.15);padding:4px 0;
67min-width:200px;z-index:1000;margin-top:4px;border:1px solid #e8e8eb"}),Lc=y(g,{target:"ew3jodf2"})({name:"qiom78",styles:"display:flex;align-items:center;padding:6px 8px;cursor:pointer;transition:background-color 0.2s;&:hover{background-color:#f8f9fa;}"}),wc=y(g,{target:"ew3jodf1"})({name:"1abbxs4",styles:"margin-right:12px;display:flex;align-items:center;justify-content:center"}),Tc=y(S,{target:"ew3jodf0"})({name:"z1wodd",styles:"font-size:14px;color:#212529;font-weight:400"}),fb=({isOpen:e,onToggle:n,onMarkAllAsRead:s,onNotificationSettings:r,unreadCount:a})=>t.jsxs(t.Fragment,{children:[t.jsx(c2,{size:"small",onClick:n,sx:{marginLeft:"20px",height:"32px",width:"32px",border:"1px solid #E8E8EB",borderRadius:"6px",backgroundColor:"white","&:hover, &:active":{backgroundColor:"#F1F5FF",border:"1px solid #1B4ED2"}},children:t.jsx(yt,{icon:Lp,style:{transform:"rotate(90deg)"}})}),e&&t.jsxs(xb,{children:[a>0&&t.jsxs(Lc,{onClick:s,children:[t.jsx(wc,{children:t.jsx(mb,{width:"20",height:"20"})}),t.jsxs(Tc,{children:["Mark all as read (",Dn(a),")"]})]}),t.jsxs(Lc,{onClick:r,children:[t.jsx(wc,{children:t.jsx(gb,{width:"20",height:"20"})}),t.jsx(Tc,{children:"Notifications Settings"})]})]})]}),Cb=y(g,{target:"e7jwylz4"})({name:"1nskzv4",styles:"background-color:#f1f5ff;border:0.5px solid #c7d7fe;border-radius:8px;padding:12px;display:flex;align-items:center;justify-content:space-between;margin-top:8px"}),yb=y(jt,{target:"e7jwylz3"})({name:"qxrekw",styles:"color:#121313;font-family:'Inter',sans-serif;font-size:12px;font-weight:400;line-height:1.4"}),Eb=y(g,{target:"e7jwylz2"})({name:"pwym29",styles:"display:flex;align-items:normal;gap:4px;padding:8px 12px;background-color:white;border:1px solid #1b4ed2;border-radius:6px;cursor:pointer;transition:all 0.2s ease-in-out;&:hover{background-color:#f8f9fa;}"}),Sb=y(jt,{target:"e7jwylz1"})({name:"gm3y38",styles:"color:#1b4ed2;font-family:'Inter',sans-serif;font-size:14px;font-weight:600"}),bb=y(g,{target:"e7jwylz0"})({name:"1nkdbss",styles:"color:#1b4ed2;svg{width:100%;height:100%;}"}),jc=({onSeeAllClick:e})=>t.jsxs(Cb,{children:[t.jsxs(yb,{children:["These are your last 50 notifications.",t.jsx("br",{}),"Click 'See all' to view all others."]}),t.jsxs(Eb,{onClick:e,children:[t.jsx(Sb,{children:"See all"}),t.jsx(bb,{children:t.jsx(mr,{width:"15",height:"15"})})]})]}),_i=y(g,{shouldForwardProp:e=>e!=="isOpen",target:"en1k3ns3"})("position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0, 0, 0, 0.5);z-index:1300;display:flex;justify-content:flex-end;overflow:hidden;opacity:",({isOpen:e})=>e?1:0,";pointer-events:",({isOpen:e})=>e?"auto":"none",";transition:opacity 300ms cubic-bezier(0.4, 0, 0.2, 1),pointer-events 0ms ",({isOpen:e})=>e?"0ms":"300ms",";"),Ai=y(g,{shouldForwardProp:e=>e!=="isOpen",target:"en1k3ns2"})("width:480px;height:100vh;background-color:#f8f9fa;display:flex;flex-direction:column;box-shadow:",({isOpen:e})=>e?"-4px 0 20px rgba(0, 0, 0, 0.15)":"none",";overflow:hidden;transform:translateX(",({isOpen:e})=>e?"0":"100%",");transition:transform 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94),box-shadow 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);"),Ni=y(g,{target:"en1k3ns1"})("flex:1;min-height:0;overflow-y:auto;margin:",({hasFixedStatus:e})=>e?"0 20px 0 20px":"0 20px 16px 20px",";padding:8px;background-color:white;border-radius:",({hasFixedStatus:e})=>e?"16px 16px 0 0":"16px",";&::-webkit-scrollbar{width:6px;}&::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px;}&::-webkit-scrollbar-thumb{background:#c1c1c1;border-radius:3px;}&::-webkit-scrollbar-thumb:hover{background:#a8a8a8;}"),Lb=y(g,{target:"en1k3ns0"})({name:"1ungglu",styles:"margin:0 20px 16px 20px;padding:0 8px 8px 8px;background-color:white;border-radius:0 0 16px 16px"}),wb=({isOpen:e,onClose:n})=>{const s=c.useRef(null),r=Rt(),{isNotificationShown:a}=La(),[i,o]=c.useState(!1),[l,u]=c.useState(!1),{data:d,refetch:p}=hu(),{data:h,isLoading:m,error:f}=Mx(e?{page:1,perPage:50}:null),C=Ox(),E=Dx(),b=(h==null?void 0:h.notifications)||[],w=i?b.filter(R=>!R.readAt):b,I=()=>{((d==null?void 0:d.unreadCount)||0)>0?C.mutate(void 0,{onSuccess:()=>{u(!1),p(),i&&o(!1)},onError:V=>{console.error("Failed to mark all notifications as read:",V)}}):u(!1)},T=()=>{u(!1),n(),r("/notification-settings")},j=R=>{const V=typeof R.id=="string"?parseInt(R.id,10):R.id;R.isRead||E.mutate(V,{onSuccess:()=>{p()},onError:O=>{console.error("Failed to mark notification as read:",O)}})},L=()=>{o(!i)},_=R=>{R.stopPropagation(),r("/integrations?tab=linkedin")},N=()=>{r("/notifications"),n()};if(c.useEffect(()=>{const R=V=>{s.current&&!s.current.contains(V.target)&&u(!1)};return l&&document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}},[l]),c.useEffect(()=>{if(!e)return;const R=window.scrollY;return document.body.style.position="fixed",document.body.style.top=`-${R}px`,document.body.style.width="100%",document.body.style.overflow="hidden",document.body.style.transition="none",()=>{document.body.style.position="",document.body.style.top="",document.body.style.width="",document.body.style.overflow="",document.body.style.transition="",window.scrollTo(0,R)}},[e]),!a)return null;const A=(d==null?void 0:d.unreadCount)||0;return m?t.jsx(_i,{isOpen:e,onClick:n,children:t.jsxs(Ai,{isOpen:e,onClick:R=>R.stopPropagation(),children:[t.jsx(Ii,{unreadCount:0,onClose:n}),t.jsx(Ni,{hasFixedStatus:!1,children:t.jsx(g,{display:"flex",justifyContent:"center",alignItems:"center",height:"200px",children:t.jsx(Pe,{})})})]})}):f?t.jsx(_i,{isOpen:e,onClick:n,children:t.jsxs(Ai,{isOpen:e,onClick:R=>R.stopPropagation(),children:[t.jsx(Ii,{unreadCount:0,onClose:n}),t.jsx(Ni,{hasFixedStatus:!1,children:t.jsx(g,{display:"flex",justifyContent:"center",alignItems:"center",height:"200px",children:"Error loading notifications. Please try again."})})]})}):t.jsx(_i,{isOpen:e,onClick:n,children:t.jsxs(Ai,{isOpen:e,onClick:R=>R.stopPropagation(),children:[t.jsx(Ii,{unreadCount:A,onClose:n}),t.jsx(ab,{showUnreadOnly:i,onToggleUnreadOnly:L,onSeeAllNotifications:N,onOpenPopup:()=>u(!l),showTabs:!1,children:t.jsx(g,{position:"relative",ref:s,children:t.jsx(fb,{isOpen:l,onToggle:()=>u(!l),onMarkAllAsRead:I,onNotificationSettings:T,unreadCount:A})})}),t.jsx(Ni,{hasFixedStatus:w.length<=5,children:w.length===0?t.jsx(eb,{showUnreadOnly:i}
67):t.jsxs(t.Fragment,{children:[w.map((R,V)=>t.jsx(hb,{notification:{id:R.id.toString(),type:te.WARN,level:R.level,content:R.message,isRead:!!R.readAt,createdAt:R.createdAt},index:V,onNotificationClick:j,onLinkClick:_,notificationType:R.type},R.id)),w.length>5&&t.jsx(g,{mt:"8px",children:t.jsx(jc,{onSeeAllClick:N})})]})}),w.length<=5&&t.jsx(Lb,{children:t.jsx(jc,{onSeeAllClick:N})})]})})},Tb=(e,n=!1)=>n?"#E0E0E0":e?"#288637":"#B5B5B5",jb=y(g,{target:"e19bsajx0"})("width:30px;height:20px;background-color:",({active:e,disabled:n})=>Tb(e,n),";border-radius:20px;position:relative;cursor:",({disabled:e})=>e?"not-allowed":"pointer",";transition:background-color 0.2s;opacity:",({disabled:e})=>e?.6:1,";&::after{content:'';position:absolute;width:15px;height:15px;background-color:white;border-radius:50%;top:2.5px;left:",({active:e})=>e?"13px":"2px",";transition:left 0.2s;}"),vb=y(Y6,{target:"etku5pw1"})({name:"gadbi0",styles:"& .MuiPaper-root{border-radius:8px;box-shadow:0 6px 16px 0 #00000021,0 0 4px 0 #0000000f;}"}),Ib=y(g,{target:"etku5pw0"})("border-radius:6px;cursor:pointer;border:1px solid transparent;&.focused{border-color:",({theme:e})=>e.palette.blue.medium,";background-color:",({theme:e})=>e.palette.blue.extralight,";}"),_b=({control:e,children:n,noControlActiveStyle:s=!1,showActionsPanel:r=!1,onApply:a,open:i,onClose:o,anchorEl:l,onOpen:u,...d})=>{const{palette:p}=Ve(),[h,m]=c.useState(null),f=i!==void 0,C=f?l:h,E=f?!!i:!!h,b=T=>{f?u==null||u(T):m(T.currentTarget)},w=()=>{f?o==null||o():m(null)},I=()=>{a==null||a(),w()};return t.jsxs(t.Fragment,{children:[t.jsx(Ib,{onClick:b,className:Ee({focused:!s&&E}),children:e}),t.jsxs(vb,{...d,open:E,onClose:w,anchorEl:C,children:[n,r&&t.jsxs(g,{bgcolor:"greyNeutral.10",p:"6px 12px",display:"flex",justifyContent:"flex-end",gap:"8px",borderTop:`1px solid ${p.greyBlue[30]}`,children:[t.jsx(k,{scale:"s",onClick:w,children:"Cancel"}),t.jsx(k,{scale:"s",onClick:I,children:"Apply"})]})]})]})},Nr=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M5 12.5L9.41074 8.08927C9.68852 7.8115 9.82741 7.67261 10 7.67261C10.1726 7.67261 10.3115 7.8115 10.5893 8.08927L15 12.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Ab=y("label",{target:"e1513whl0"})("font-weight:600;font-size:12px;line-height:16px;color:",({theme:e})=>e.palette.greyBlue[100],";display:block;margin-bottom:4px;"),Nb=e=>({control:(n,s)=>({...n,backgroundColor:s.isDisabled?e.greyBlue[10]:"#ffffff",borderColor:s.menuIsOpen?e.blue.primary:e.greyBlue[30],boxShadow:"none",borderRadius:"8px",minHeight:"32px",cursor:s.isDisabled?"not-allowed":"pointer",maxWidth:"100%","&.m":{padding:s.isMulti&&s.hasValue?"6px":"9px 12px",minHeight:"40px",paddingLeft:"12px",paddingRight:"12px"},"&.s":{paddingLeft:"8px",paddingRight:"8px"},"&.l":{height:"40px",minWidth:"220px",paddingLeft:"12px",paddingRight:"12px"}}),valueContainer:n=>({...n,padding:"0",fontSize:"14px",gap:"4px",flexWrap:"wrap",maxWidth:"100%"}),input:n=>({...n,color:e.greyBlue[100],margin:0,padding:0}),singleValue:n=>({...n,margin:0,"&.semibold":{fontWeight:600}}),multiValue:(n,s)=>({...n,margin:0,height:"24px",maxWidth:"100%",minWidth:0,overflow:"hidden",border:`1px solid ${s.data.color||e.blue.light}`,color:s.data.color||e.blue.primary,borderRadius:"4px",backgroundColor:s.data.color?kn(s.data.color,.9):e.blue.extralight,padding:"2px 6px",alignItems:"center",gap:"4px","& > div:first-of-type":{padding:0,minWidth:0,overflow:"hidden",flex:"1 1 auto"}}),multiValueRemove:()=>({width:"14px",height:"14px",flexShrink:0}),indicatorSeparator:n=>({...n,display:"none"}),indicatorsContainer:n=>({...n,flexShrink:0,"& > div":{padding:0}}),placeholder:n=>({...n,fontSize:"14px",lineHeight:"20px",color:e.greyBlue[60],margin:0}),menu:n=>({...n,borderRadius:"6px",marginTop:"6px",boxShadow:"0px 4px 13px 0px #00000014, 0px 0px 4px 0px #0000000F",zIndex:9999}),menuList:n=>({...n,padding:"4px"}),multiValueLabel:(n,s)=>({...n,color:s.data.color||e.blue.primary,fontSize:"14px",lineHeight:"20px",padding:"1px 4px",minWidth:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}),option:(n,s)=>({...n,display:"flex",alignItems:"center",backgroundColor:s.isSelected||s.isFocused?e.greyNeutral[10]:"#ffffff",color:e.greyBlue[100],fontSize:"14px",fontWeight:"500",cursor:"pointer",borderRadius:"6px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",":active":{backgroundColor:e.greyNeutral[10],color:e.greyBlue[100]},...s.data.color?{padding:"5px 8px","&::before":{content:'""',dis
67play:"inline-block",boxSizing:"border-box",width:"22px",height:"22px",borderRadius:"4px",backgroundColor:s.data.color,border:`1px solid ${on(s.data.color,.3)}`,marginRight:"7px",flexShrink:0}}:{}}),clearIndicator:n=>({...n,marginLeft:"8px"}),noOptionsMessage:n=>({...n,color:e.greyBlue[100],fontSize:"14px",lineHeight:"20px",padding:"12px"}),dropdownIndicator:n=>({...n,color:e.greyBlue[60],marginLeft:"8px"})}),kb=()=>({MultiValueLabel:({children:e,...n})=>t.jsx(vn.MultiValueLabel,{...n,children:t.jsx(S,{crop:!0,color:n.data.color||"blue.primary",maxWidth:"100%",children:e})}),MultiValueRemove:({...e})=>t.jsx(vn.MultiValueRemove,{...e,children:t.jsx(Ar,{})})}),Rb=(e,n)=>e?d2:n?K6:Q6,Xe=({options:e,isMulti:n=!1,isAsync:s=!1,isCreatable:r=!1,onChange:a,defaultValue:i,value:o,label:l="",placeholder:u="",controlLabel:d,searchable:p=!1,additionalProps:h={},wrapperProps:m={},size:f="m",styles:C,...E})=>{const{palette:b}=Ve(),{components:w={},styles:I,...T}=h,j=Rb(s,r);return t.jsxs(g,{width:"100%",minWidth:0,...m,children:[l&&t.jsx(Ab,{children:l}),t.jsx(j,{...E,isMulti:n,options:e,onChange:a,styles:{...Nb(b),...C,...I},defaultValue:i,placeholder:u,isSearchable:p,value:o,classNames:{control:()=>Ee({[f]:!0})},...T,components:{Control:({children:L,..._})=>t.jsxs(vn.Control,{..._,children:[!u&&d,L]}),SingleValue:({children:L,..._})=>t.jsx(vn.SingleValue,{..._,className:Ee(_.className,{semibold:!u&&d}),children:L}),IndicatorSeparator:()=>null,DropdownIndicator:({...L})=>{var _;return t.jsx(vn.DropdownIndicator,{...L,children:(_=L.selectProps)!=null&&_.menuIsOpen?t.jsx(Nr,{}):t.jsx(ln,{})})},ClearIndicator:({...L})=>t.jsx(vn.ClearIndicator,{...L,children:t.jsx(Xt,{color:b.greyNeutral[100]})}),Option:({children:L,..._})=>t.jsx(vn.Option,{..._,children:t.jsx(S,{crop:!0,children:L})}),...w,...n?kb():{}}})]})},Mb=({onSnippetClick:e,snippetOptions:n,showLinkedinSnippet:s})=>{const{checkFeature:r}=We(),[a,i]=r(X.CSVSnippets),o=u=>{e(u)},l=c.useMemo(()=>{const u=[];return s&&u.push({label:"From LinkedIn",options:zo}),n!=null&&n.length&&u.push({label:"From CSV",tooltip:i,options:n.map(d=>({...d,disabled:!a}))}),u},[]);return t.jsx(Ob,{groupedSnippetOptions:l,onSnippetClick:o})},Pb=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M14.5351 9.32624L15.0718 8.80237L15.0718 8.80237L14.5351 9.32624ZM14.8638 9.66296L14.3271 10.1868V10.1868L14.8638 9.66296ZM14.8638 10.3364L15.4005 10.8603L14.8638 10.3364ZM14.5351 10.6731L15.0718 11.197L14.5351 10.6731ZM13.3333 12.583C12.919 12.583 12.5833 12.9188 12.5833 13.333C12.5833 13.7472 12.919 14.083 13.3333 14.083V12.583ZM13.3333 5.91634C12.919 5.91634 12.5833 6.25213 12.5833 6.66634C12.5833 7.08055 12.919 7.41634 13.3333 7.41634V5.91634ZM5.46472 9.32624L4.92801 8.80237V8.80237L5.46472 9.32624ZM5.13605 9.66296L4.59934 9.13909H4.59934L5.13605 9.66296ZM5.13605 10.3364L4.59934 10.8603H4.59934L5.13605 10.3364ZM5.46472 10.6731L4.92801 11.197H4.92801L5.46472 10.6731ZM6.66658 14.083C7.0808 14.083 7.41658 13.7472 7.41658 13.333C7.41658 12.9188 7.0808 12.583 6.66658 12.583V14.083ZM6.66658 7.41634C7.0808 7.41634 7.41658 7.08055 7.41658 6.66634C7.41658 6.25213 7.0808 5.91634 6.66658 5.91634V7.41634ZM8.33325 9.24967C7.91904 9.24967 7.58325 9.58546 7.58325 9.99967C7.58325 10.4139 7.91904 10.7497 8.33325 10.7497V9.24967ZM8.34072 10.7497C8.75493 10.7497 9.09072 10.4139 9.09072 9.99967C9.09072 9.58546 8.75493 9.24967 8.34072 9.24967V10.7497ZM11.6591 9.24967C11.2449 9.24967 10.9091 9.58546 10.9091 9.99967C10.9091 10.4139 11.2449 10.7497 11.6591 10.7497V9.24967ZM11.6666 10.7497C12.0808 10.7497 12.4166 10.4139 12.4166 9.99967C12.4166 9.58546 12.0808 9.24967 11.6666 9.24967V10.7497ZM9.99992 17.1663C8.11274 17.1663 6.7728 17.1647 5.75649 17.0281C4.76174 16.8944 4.19006 16.6437 3.77295 16.2266L2.71229 17.2873C3.45455 18.0296 4.39554 18.3586 5.55662 18.5147C6.69612 18.6679 8.15514 18.6663 9.99992 18.6663V17.1663ZM1.33325 9.99967C1.33325 11.8444 1.33166 13.3035 1.48486 14.443C1.64096 15.6041 1.97003 16.545 2.71229 17.2873L3.77295 16.2266C3.35584 15.8095 3.10522 15.2378 2.97149 14.2431C2.83484 13.2268 2.83325 11.8869 2.83325 9.99967H1.33325ZM17.1666 9.99967C17.1666 11.8869 17.165 13.2268 17.0284 14.2431C16.8946 15.2378 16.644 15.8095 16.2269 16.2266L17.2875 17.2873C18.0298 16.545 18.3589 15.6041 18.515 14.443C18.6682 13.3035 18.6666 11.8444 18.6666 9.99967H17.1666ZM9.99992 18.6663C11.8447 18.6663 13.3037 18.6679 14.4432 18.5147C15.6043 18.3586 16.5453 18.0296 17.2875 17.2873L16.2269 16.2266C15.8098 16.6437 15.2381 16.8944 14.2434 17.0281C13.227 17.1647 11.8871 17.1663 9.99992 17.1663V18.6663ZM9.99992 2.83301C11.8871 2.83301 13.227 2.8346 14.2434 2.97124C15.2381 3.10498 15.8098 3.3556 16.2269 3.77271L17.2875 2.71205C16.5453 1.96979 15.6043 1.64072 14.4432 1.48462C13.3037 1.33141 11.8447 1.33301 9.99992 1.33301V2.83301ZM18.6666 9.99967C18.6666 8.1549 18.6682 6.69587 18.515 5.55637C18.3589 4.3953 18.0298 3.45431 17.2875 2.71205L16.2269 3.77271C16.644 4.18981 16.8946 4.7615 17.0284 5.75624C17.165 6.77256 17.1666 8.1125 17.1666 9.99967H18.6666ZM9.99992 1.33301C8.15514 1.33301 6.69612 1.33141 5.55662 1.48462C4.39554 1.64072 3.45455 1.96979 2.71229 2.71205L3.77295 3.77271C4.19006 3.3556 4.76174 3.10498 5.75649 2.97124C6.7728 2.8346 8.11274 2.83301 9.99992 2.83301V1.33301ZM2.83325 9.99967C2.83325 8.1125 2.83484 6.77256 2.97149 5.75624C3.10522 4.7615 3.35584 4.18981 3.77295 3.77271L2.71229 2.71205C1.97003 3.45431 1.64096 4.3953 1.48486 5.55637C1.33166 6.69587 1.33325 8.1549 1.33325 9.99967H2.83325ZM13.5128 7.61872V8.6528H15.0128V7.61872H13.5128ZM13.9984 9.85011L14.3271 10.1868L15.4005 9.13909L15.0718 8.80237L13.9984 9.85011ZM14.3271 9.81252L13.9984 10.1492L15.0718 11.197L15.4005 10.8603L14.3271 9.81252ZM13.5128 11.3465V12.3806H15.0128V11.3465H13.5128ZM13.5128 12.3806C13.5128 12.5096 13.4154 12.583 13.3333 12.583V14.083C14.2779 14.083 15.0128 13.3036 15.0128 12.3806H13.5128ZM13.9984 10.1492C13.6855 10.4698 13.5128 10.9008 13.5128 11.3465H15.0128C15.0128 11.2871 15.0361 11.2336 15.0718 11.197L13.9984 10.1492ZM14.3271 10.1868C14.2242 10.0814 14.2242 9.91791 14.3271 9.81252L15.4005 10.8603C15.8664 10.3829 15.8664 9.61641 15.4005 9.13909L14.3271 10.1868ZM13.5128 8.6528C13.5128 9.09852 13.6855 9.52953 13.9984 9.85011L15.0718 8.80237C15.0361 8.76573 15.0128 8.71226 15.0128 8.6528H13.5128ZM13.3333 7.41634C13.4154 7.41634 13.5128 7.48973 13.5128 7.61872H15.0128C15.0128 6.69575 14.2779 5.91634 13.3333 5.91634V7.41634ZM4.98699 7.61872V8.6528H6.48699V7.61872H4.98699ZM4.92801 8.80237L4.59934 9.13909L5.67277 10.1868L6.00143 9.85011L4.92801 8.80237ZM4.59934 10.8603L4.92801 11.197L6.00143 10.1492L5.67277 9.81252L4.59934 10.8603ZM4.98699 11.3465V12.3806H6.48699V11.3465H4.98699ZM4.98699 12.3806C4.98699 13.3036 5.72195 14.083 6.666
6758 14.083V12.583C6.58441 12.583 6.48699 12.5096 6.48699 12.3806H4.98699ZM4.92801 11.197C4.96376 11.2336 4.98699 11.2871 4.98699 11.3465H6.48699C6.48699 10.9008 6.31434 10.4698 6.00143 10.1492L4.92801 11.197ZM4.59934 9.13909C4.13344 9.61641 4.13344 10.3829 4.59934 10.8603L5.67277 9.81252C5.77564 9.91791 5.77564 10.0814 5.67277 10.1868L4.59934 9.13909ZM4.98699 8.6528C4.98699 8.71226 4.96376 8.76573 4.92801 8.80237L6.00143 9.85011C6.31434 9.52953 6.48699 9.09852 6.48699 8.6528H4.98699ZM6.66658 5.91634C5.72195 5.91634 4.98699 6.69575 4.98699 7.61872H6.48699C6.48699 7.48973 6.58441 7.41634 6.66658 7.41634V5.91634ZM8.33325 10.7497H8.34072V9.24967H8.33325V10.7497ZM11.6591 10.7497H11.6666V9.24967H11.6591V10.7497Z",fill:"currentColor"})),Ob=({disabled:e,onSnippetClick:n,snippetOptions:s=zo,groupedSnippetOptions:r})=>{const a=r||[{label:"Snippets",options:s}];return t.jsx(gr,{noStyleControl:!0,disabled:e,controlContent:t.jsx(k,{scale:"s",disabled:e,leftIcon:t.jsx(Pb,{}),children:"Personalize"}),children:a.map(i=>t.jsx(we,{title:i.tooltip,children:t.jsxs(g,{children:[i.label&&t.jsx(S,{semibold:!0,textTransform:"uppercase",fontSize:"10px",lineHeight:"14px",letterSpacing:"0.1em",color:"greyBlue.60",p:"8px 8px 6px 8px",children:i.label}),i.options.map(o=>t.jsx("span",{children:t.jsxs(bs,{onClick:()=>n==null?void 0:n(o.value),sx:{minWidth:"240px",maxWidth:"480px"},disabled:o.disabled,children:[t.jsx(S,{mr:"8px",crop:!0,children:o.label}),t.jsxs(S,{color:"blue.primary",ml:"auto",medium:!0,children:["{{",o.value,"}}"]})]})},o.label))]})},i.label))})},Db=300,Ub=y("p",{target:"es8ocwa1"})("display:-webkit-box;-webkit-box-orient:vertical;word-break:break-word;line-height:16px;overflow:hidden;max-height:",({$maxHeight:e})=>e==null?"none":`${e}px`,";transition:max-height ",Db,"ms ease;",({$isClamped:e,$maxLines:n})=>e&&`
68    -webkit-line-clamp: ${n};
69    line-clamp: ${n};
70    text-overflow: ellipsis;
71  `,";"),Bb=y(S,{target:"es8ocwa0"})({name:"e0dnmk",styles:"cursor:pointer"}),qu=({maxLines:e=2,children:n,hideShowMore:s=!1,contentStyle:r})=>{const{palette:a}=No(),i=c.useRef(null),o=c.useRef(0),[l,u]=c.useState(!1),[d,p]=c.useState(!1),[h,m]=c.useState(!1),[f,C]=c.useState(null),E=!d&&!h,b=c.useCallback(()=>{const T=i.current;!T||d||h||(u(T.scrollHeight>T.clientHeight+1),o.current=T.clientHeight)},[h,d]);c.useLayoutEffect(()=>{b()},[b,n]),c.useEffect(()=>{const T=i.current;if(!T)return;const j=typeof ResizeObserver<"u"?new ResizeObserver(()=>b()):null;j==null||j.observe(T);const L=typeof MutationObserver<"u"?new MutationObserver(()=>b()):null;return L==null||L.observe(T,{childList:!0,subtree:!0,characterData:!0}),()=>{j==null||j.disconnect(),L==null||L.disconnect()}},[b]),c.useEffect(()=>{!l&&d&&(p(!1),m(!1),C(null))},[l,d]);const w=T=>{T.stopPropagation();const j=i.current;if(!j)return;if(d){const N=j.scrollHeight,A=o.current||N;C(N),m(!0),p(!1),requestAnimationFrame(()=>{requestAnimationFrame(()=>{C(A)})});return}const L=j.clientHeight;o.current=L,j.style.setProperty("-webkit-line-clamp","unset");const _=j.scrollHeight;j.style.removeProperty("-webkit-line-clamp"),C(L),p(!0),m(!0),requestAnimationFrame(()=>{requestAnimationFrame(()=>{C(_)})})},I=T=>{T.propertyName==="max-height"&&(m(!1),C(null))};return t.jsxs(t.Fragment,{children:[t.jsx(Ub,{ref:i,style:r,$isClamped:E,$maxLines:e,$maxHeight:f,onTransitionEnd:I,children:n}),l&&!s&&t.jsxs(Bb,{component:"span",onClick:w,color:"blue.primary",hoverColor:a.blue.dark,mt:"10px",children:["Show ",d?"less":"more"]})]})},Ml=y(g,{target:"e1xkyys11"})("color:",({theme:e})=>e.palette.primary.main,";"),Hb=y(g,{target:"e1xkyys10"})({name:"8usj60",styles:"display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;box-sizing:border-box"}),Pt=e=>{const{palette:n}=Ve(),{tag:s,color:r,height:a="24px",width:i="auto",bgColor:o,children:l,sharp:u=!1,border:d="none",withBorder:p=!1,borderColor:h,wrapperProps:m}=e;return t.jsx(Hb,{height:a,width:i,bgcolor:o||r&&`${r}12`||`${n.gray[50]}80`,borderRadius:u?"6px":"20px",border:p?`1px solid ${r}`:d,borderColor:h,p:"2px 10px",...m,children:s?t.jsx(S,{color:r||n.gray[600],crop:!0,children:s}):l})},Vb=({ids:e,withTooltip:n,cursor:s="pointer",tooltip:r,...a})=>{const{tags:i}=is(),o=c.useMemo(()=>b2(i,"id"),[i]),l=e.map(d=>
71o[d]).filter(Boolean),u=l.map(({tag:d})=>d).join(", ");return t.jsx(we,{hidden:!n,title:u,...r,children:t.jsx(g,{height:"24px",width:"100%",display:"flex",flexWrap:"wrap",overflow:"hidden",gap:"8px",sx:{cursor:s},...a,children:l.map(d=>t.jsx(Pt,{...d,withBorder:!0,sharp:!0},d.id))})})},he=y(g,{target:"eolao2t0"})("padding:",({padding:e})=>e||"24px",";"),Hn=y(g,{target:"e1xrlgj90"})({name:"k129ag",styles:"position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);width:600px;background-color:#ffffff;border-radius:6px;box-shadow:0 5px 15px rgb(0 0 0 / 50%)"}),ge=({children:e,alignToTheEnd:n=!1,...s})=>t.jsx(g,{display:"flex",alignItems:"center",justifyContent:n?"flex-end":"space-between",gap:"10px",padding:"16px",borderTop:"1px solid #ebebeb",...s,children:e}),Zu=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M23 12C23 18.0751 18.0751 23 12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12ZM17.0517 9.57931C17.3717 9.2746 17.384 8.76822 17.0793 8.44828C16.7746 8.12833 16.2682 8.11598 15.9483 8.42069L10.2 13.8952L8.05172 11.8493C7.73178 11.5446 7.2254 11.5569 6.92069 11.8768C6.61598 12.1968 6.62833 12.7032 6.94828 13.0079L9.64828 15.5793C9.95724 15.8736 10.4428 15.8736 10.7517 15.5793L17.0517 9.57931Z",fill:"currentColor"})),Yu=y(g,{target:"e166dzzh2"})({name:"bcffy2",styles:"display:flex;align-items:center;justify-content:space-between"}),Fb=y(Yu,{target:"e166dzzh1"})("&>h4{text-transform:uppercase;font-weight:600;}&.success{background-color:",({theme:e})=>e.palette.success[100],"80;&>h4{color:",({theme:e})=>e.palette.success[500],";}}&.error{background-color:",({theme:e})=>e.palette.error[100],";&>h4{color:",({theme:e})=>e.palette.error[500],";}}"),$b=y(g,{target:"e166dzzh0"})({name:"n1h8ln",styles:"display:flex;align-items:center;justify-content:center;cursor:pointer;margin-left:5px"}),Gb={primary:Yu,secondary:Fb},et=({children:e,onClose:n,wrapperProps:s={},variant:r="primary",headerType:a="success",...i})=>{const o=Gb[r];return t.jsxs(o,{className:Ee({[a]:!0}),padding:(s==null?void 0:s.padding)||"16px 24px",borderBottom:"1px solid #ebebeb",...s,children:[t.jsxs(S,{component:"h4","data-testid":"modal-title",mr:"auto",medium:!0,fontSize:"20px",lineHeight:"26px",sx:{wordBreak:"break-word"},...i,children:[r==="secondary"&&t.jsx(Zu,{style:{marginRight:"8px",verticalAlign:"middle"}}),e]}),typeof n=="function"&&t.jsx($b,{onClick:n,children:t.jsx(Xt,{})})]})},vc="/DKwOKxdb.svg",zb=y(g,{target:"e1eg4o6m1"})("width:100%;background-color:",({theme:e})=>e.palette.bg.blue,";mask-image:url(",vc,");mask-size:cover;mask-position:bottom;mask-repeat:no-repeat;-webkit-mask-image:url(",vc,");-webkit-mask-size:cover;-webkit-mask-position:bottom;-webkit-mask-repeat:no-repeat;display:flex;justify-content:center;align-items:center;position:relative;border-top-left-radius:6px;border-top-right-radius:6px;"),Wb=y(Xt,{target:"e1eg4o6m0"})("position:absolute;top:24px;right:24px;color:",({theme:e})=>e.palette.gray[600],";cursor:pointer;width:20px;height:20px;"),Ku=({children:e,height:n="200px",onClose:s})=>{const r=P(),a=()=>{s==null||s(),r(Q())};return t.jsxs(zb,{height:n,children:[e," ",t.jsx(Wb,{onClick:a})]})},qb=e=>c.createElement("svg",{width:25,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M19.5 6.5L9 17.5L5.5 14",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Pl=y(e=>t.jsx(g,{...e,children:t.jsx(qb,{color:"#1B8D2D"})}),{target:"e1x0ulnp0"})({name:"flc42m",styles:"background-color:#ebf8f1;width:48px;height:48px;display:flex;justify-content:center;align-items:center;border-radius:50%;margin:0 auto 16px auto"}),Zb=y("div",{target:"epn78w11"})({name:"1yydxi7",styles:"display:flex;align-items:center;gap:8px"}),Yb=y("label",{target:"epn78w10"})("font-size:14px;line-height:20px;color:",({theme:e})=>e.palette.greyBlue[100],";"),Kb=({onCancel:e})=>{const n=P(),[s,r]=c.useState(""),{changeAlias:a,isLoading:i}=ax({onSuccess:()=>{e&&e(),n(Q())}}),{data:o=[],isLoading:l}=ux();c.useEffect(()=>{if(o){const d=o==null?void 0:o.find(({isDefault:h})=>h),p=o==null?void 0:o.find(({alfredDefault:h})=>h);r((p==null?void 0:p.sendAsEmail)||(d==null?void 0:d.sendAsEmail)||"")}},[o]);const u=()=>{a(s)};return l?t.jsx(he,{display:"flex",justifyContent:"center",children:t.jsx(Pe,{marginTop:"0"})}):t.jsxs(t.Fragment,{children:[t.jsx(he,{display:"flex",flexDirection:"column",gap:"20px",children:o==null?void 0:o.map(({sendAsEmail:d})=>t.jsxs(Zb,{children:[t.jsx($e,{type:"checkbox",checked:d===s,onChange:()=>r(d)}),t.jsx(Yb,{children:d})]},d))}),t.jsx(ge,{alignToTheEnd:!0,children:t.jsx(k,{processing:i,onClick:u,children:"Update"})})]})},Qu=e=>c.createElement("svg",{width:36,height:50,viewBox:"0 0 36 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M30.0459 0.521782C29.7508 0.0550001 29.1331 -0.0841131 28.6663 0.211066C28.1995 0.506244 28.0604 1.12394 28.3556 1.59072L30.0459 0.521782ZM10.1871 34.024L9.53992 34.7863C9.56055 34.8038 9.58188 34.8204 9.60386 34.8362L10.1871 34.024ZM9.04243 26.7252L9.58313 27.5665L9.04243 26.7252ZM15.1117 38.5853L16.0289 38.9839L15.1117 38.5853ZM2.6542 44.8087C2.10665 44.8808 1.72123 45.3832 1.79335 45.9308C1.86547 46.4783 2.36782 46.8637 2.91537 46.7916L2.6542 44.8087ZM4.55928 43.7249C4.9026 43.2923 4.83021 42.6633 4.3976 42.32C3.96498 41.9766 3.33597 42.049 2.99266 42.4816L4.55928 43.7249ZM1.50954 45.9592L0.726228 45.3376C0.383888 45.769 0.454767 46.3959 0.884771 46.74L1.50954 45.9592ZM3.86185 49.1221C4.29307 49.4672 4.92237 49.3973 5.26742 48.9661C5.61248 48.5349 5.54262 47.9056 5.11139 47.5605L3.86185 49.1221ZM28.3556 1.59072C33.6414 9.94954 34.3223 20.1301 31.7286 27.4303C30.4335 31.0754 28.3523 33.9234 25.7132 35.5126C23.1067 37.0822 19.8468 37.4917 15.9984 36.0743L15.3072 37.9511C19.6683 39.5573 23.569 39.1384 26.7449 37.2259C29.8883 35.3331 32.2113 32.0455 33.6132 28.0999C36.4133 20.2187 35.6587 9.39749 30.0459 0.521782L28.3556 1.59072ZM15.9984 36.0743C14.3634 35.4722 12.6165 34.5373 10.7704 33.2117L9.60386 34.8362C11.5719 36.2494 13.477 37.277 15.3072 37.9511L1
715.9984 36.0743ZM10.8343 33.2616C10.0036 32.5563 9.01402 31.414 8.61103 30.2847C8.41536 29.7364 8.38081 29.2568 8.49847 28.8478C8.61155 28.4547 8.89953 28.0059 9.58313 27.5665L8.50172 25.884C7.48887 26.5351 6.84729 27.3532 6.57641 28.2949C6.3101 29.2207 6.43717 30.1437 6.72738 30.9569C7.29615 32.5508 8.57541 33.9674 9.53992 34.7863L10.8343 33.2616ZM9.58313 27.5665C10.2909 27.1116 10.9593 27.0819 11.593 27.3262C12.2684 27.5865 12.9751 28.1913 13.582 29.1264C14.7964 30.9975 15.4229 33.9096 14.6847 36.7622L16.6209 37.2632C17.5005 33.8643 16.7772 30.3758 15.2596 28.0376C14.5006 26.8681 13.4957 25.9161 12.3123 25.46C11.0871 24.9878 9.74935 25.0821 8.50172 25.884L9.58313 27.5665ZM14.6847 36.7622C14.5607 37.2412 14.3985 37.7176 14.1946 38.1867L16.0289 38.9839C16.2755 38.4163 16.4714 37.8407 16.6209 37.2632L14.6847 36.7622ZM14.1946 38.1867C11.8652 43.5463 7.24414 44.2042 2.6542 44.8087L2.91537 46.7916C7.39832 46.2011 13.2032 45.4853 16.0289 38.9839L14.1946 38.1867ZM2.99266 42.4816L0.726228 45.3376L2.29286 46.5808L4.55928 43.7249L2.99266 42.4816ZM0.884771 46.74L3.86185 49.1221L5.11139 47.5605L2.13431 45.1784L0.884771 46.74Z",fill:"#A1B9F7"})),Qb=e=>c.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("rect",{width:40,height:40,rx:4,fill:"#0072C6"}),c.createElement("path",{d:"M7.83398 28.75L16.4753 22.8631C19.6323 20.7123 21.0357 20.7123 24.1927 22.8631L32.834 28.75",stroke:"white",strokeWidth:1.5,strokeLinejoin:"round"}),c.createElement("path",{d:"M7.85388 23.1887C7.93631 26.9803 7.97753 28.8761 9.39162 30.2801C10.8057 31.6841 12.7738 31.7328 16.7099 31.8301C19.1331 31.89 21.5349 31.89 23.9581 31.8301C27.8942 31.7328 29.8623 31.6841 31.2764 30.2801C32.6905 28.8761 32.7317 26.9803 32.8141 23.1887C32.8545 21.3311 32.8334 19.4918 32.7508 17.6151C32.6995 16.4496 32.6738 15.8668 32.3782 15.3498C32.0827 14.8328 31.5731 14.4992 30.554 13.8319L25.853 10.7536C23.1768 9.00119 21.8387 8.125 20.334 8.125C18.8293 8.125 17.4912 9.00119 14.815 10.7536L10.1139 13.8319C9.09485 14.4992 8.5853 14.8328 8.28972 15.3498C7.99413 15.8668 7.96848 16.4496 7.91718 17.6151C7.83459 19.4918 7.81349 21.3311 7.85388 23.1887Z",stroke:"white",strokeWidth:1.5,strokeLinejoin:"round"}),c.createElement("path",{d:"M32.834 16.875L27.5023 20.759C26.2095 21.7007 25.147 22.5 23.459 22.5M7.83398 16.875L13.1657 20.759C14.4584 21.7007 15.521 22.5 17.209 22.5",stroke:"white",strokeWidth:1.5,strokeLinejoin:"round"})),Xb=y("div",{target:"e17e98te15"})({name:"upmsx0",styles:"padding:10px;border-radius:5px;background:#fff;margin:10px 0;display:block;flex:1 0 auto;align-items:center;align-content:space-between;max-width:100%;justify-content:space-between"}),Jb=y("div",{target:"e17e98te14"})({name:"pw8u7y",styles:"display:inline-block;text-overflow:ellipsis;overflow:hidden;margin-right:auto"}),eL=y("span",{target:"e17e98te13"})("color:",({theme:e})=>e.palette.gray.dark,";font-weight:600;font-size:15px!important;"),tL=y("span",{target:"e17e98te12"})({name:"vapl0t",styles:"display:block;font-size:12px!important"}),Wa=y(S,{target:"e17e98te9"})({name:"1af2je1",styles:"font-size:16px;font-weight:500;line-height:24px"}),Ts=y(g,{target:"e17e98te7"})({name:"86uzuv",styles:"height:100%;min-width:300px"}),qa=y(X6,{target:"e17e98te5"})({name:"hjtz9i",styles:"background-color:#2e7d32;border-radius:4px;& .MuiLinearProgress-bar{background-color:#afcdb1;}"}),rV=y(g,{target:"e17e98te1"})("padding:16px;border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:12px;"),Za=y(g,{target:"e17e98te0"})("display:flex;align-items:center;justify-content:center;border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:8px;width:48px;height:48px;"),To="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M10.4535%2010.4535H0V0H10.4535V10.4535Z'%20fill='%23F1511B'/%3e%3cpath%20d='M21.9964%2010.4535H11.542V0H21.9955V10.4535H21.9964Z'%20fill='%2380CC28'/%3e%3cpath%20d='M10.4535%2021.9999H0V11.5464H10.4535V21.9999Z'%20fill='%2300ADEF'/%3e%3cpath%20d='M21.9964%2021.9999H11.542V11.5464H21.9955V21.9999H21.9964Z'%20fill='%23FBBC09'/%3e%3c/svg%3e",Xu=e=>c.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_638_132852)"},c.createElement("path",{d:"M38.3333 20.8332C38.3353 20.553 38.1872 20.2922 37.9428 20.1457H37.9385L37.9231 20.1373L25.2177 12.7873C25.1629 12.7511 25.1059 12.718 25.0472 12.6882C24.5566 12.4409 23.9739 12.4409 23.4833 12.6882C23.4245 12.718 23.3676 12.7511 23.3127 12.7873L10.6074 20.1373L10.592 20.1457C10.2037 20.3817 10.0847 20.8806 10.3261 21.2601C10.3973 21.3719 10.4953 21.4651 10.6116 21.5315L23.3171 28.8815C23.3721 28.9174 23.429 28.9505 23.4876 28.9807C23.9782 29.228 24.5609 29.228 25.0515 28.9807C25.1101 28.9505 25.167 28.9174 25.222 28.8815L37.9274 21.5315C38.1813 21.3869 38.3362 21.1203 38.3333 20.8332Z",fill:"#0A2767"}),c.createElement("path",{d:"M12.0891 15.9257H20.427V23.3949H12.0891V15.9257ZM36.6285 8.33325V4.91658C36.6485 4.06233 35.9566 3.35372 35.0825 3.33325H13.4458C12.5717 3.35372 11.8798 4.06233 11.8998 4.91658V8.33325L24.6905 11.6666L36.6285 8.33325Z",fill:"#0364B8"}
71),c.createElement("path",{d:"M11.8994 8.33325H20.4265V15.8332H11.8994V8.33325Z",fill:"#0078D4"}),c.createElement("path",{d:"M28.9539 8.33325H20.4268V15.8332L28.9539 23.3332H36.6283V15.8332L28.9539 8.33325Z",fill:"#28A8EA"}),c.createElement("path",{d:"M20.4268 15.8333H28.9539V23.3332H20.4268V15.8333Z",fill:"#0078D4"}),c.createElement("path",{d:"M20.4268 23.3333H28.9539V30.8332H20.4268V23.3333Z",fill:"#0364B8"}),c.createElement("path",{d:"M12.0889 23.395H20.4267V30.185H12.0889V23.395Z",fill:"#14447D"}),c.createElement("path",{d:"M28.9541 23.3333H36.6285V30.8332H28.9541V23.3333Z",fill:"#0078D4"}),c.createElement("path",{d:"M37.9433 21.4858L37.9271 21.4941L25.2217 28.4774C25.1663 28.5107 25.11 28.5424 25.0511 28.5707C24.8353 28.6712 24.601 28.7279 24.3621 28.7374L23.668 28.3407C23.6094 28.312 23.5524 28.28 23.4975 28.2449L10.6215 21.0633H10.6156L10.1943 20.8333V34.9699C10.2009 35.9131 10.9884 36.6726 11.9535 36.6666H36.602C36.6165 36.6666 36.6293 36.6599 36.6446 36.6599C36.8485 36.6472 37.0494 36.6062 37.2415 36.5382C37.3245 36.5039 37.4046 36.4632 37.4811 36.4166C37.5382 36.3849 37.6363 36.3158 37.6363 36.3158C38.0731 35.9999 38.3317 35.501 38.3338 34.9699V20.8333C38.3335 21.1036 38.1843 21.353 37.9433 21.4858Z",fill:"url(#paint0_linear_638_132852)"}),c.createElement("path",{opacity:.5,d:"M37.6519 20.7775V21.6441L24.3666 30.5833L10.6123 21.0691C10.6123 21.0645 10.6085 21.0608 10.6038 21.0608L9.3418 20.3191V19.6941L9.86195 19.6858L10.9619 20.3025L10.9875 20.3108L11.0813 20.3691C11.0813 20.3691 24.0084 27.5775 24.0425 27.5941L24.5371 27.8774C24.5797 27.8608 24.6224 27.8441 24.6735 27.8274C24.6991 27.8108 37.5069 20.7691 37.5069 20.7691L37.6519 20.7775Z",fill:"#0A2767"}),c.createElement("path",{d:"M37.9433 21.4858L37.9271 21.4949L25.2217 28.4782C25.1662 28.5116 25.11 28.5432 25.0511 28.5716C24.5577 28.8071 23.9807 28.8071 23.4872 28.5716C23.4288 28.5433 23.3719 28.5121 23.3167 28.4782L10.6113 21.4949L10.596 21.4858C10.3507 21.3558 10.1969 21.1059 10.1943 20.8333V34.9699C10.2004 35.9129 10.9876 36.6725 11.9526 36.6666C11.9526 36.6666 11.9526 36.6666 11.9526 36.6666H36.5755C37.5405 36.6726 38.3277 35.913 38.3338 34.97C38.3338 34.97 38.3338 34.97 38.3338 34.9699V20.8333C38.3335 21.1036 38.1843 21.353 37.9433 21.4858Z",fill:"#1490DF"}),c.createElement("path",{opacity:.1,d:"M25.4069 28.375L25.2167 28.4792C25.1616 28.5135 25.1047 28.5449 25.0462 28.5733C24.8367 28.6738 24.6089 28.7327 24.376 28.7467L29.21 34.3333L37.6425 36.3192C37.8735 36.1486 38.0573 35.9243 38.1771 35.6667L25.4069 28.375Z",fill:"#15283D"}),c.createElement("path",{opacity:.05,d:"M26.2681 27.9016L25.2167 28.4791C25.1616 28.5134 25.1047 28.5448 25.0462 28.5733C24.8367 28.6738 24.6089 28.7327 24.376 28.7466L26.6408 34.8491L37.645 36.3166C38.0785 35.9985 38.3338 35.4997 38.334 34.9699V34.7874L26.2681 27.9016Z",fill:"#15283D"}),c.createElement("path",{d:"M11.9765 36.6666H36.573C36.9515 36.6684 37.3206 36.5516 37.6261 36.3332L23.6672 28.3424C23.6085 28.3137 23.5516 28.2817 23.4966 28.2466L10.6207 21.0649H10.6147L10.1943 20.8333V34.9216C10.1934 35.8844 10.9913 36.6656 11.9765 36.6666Z",fill:"#28A8EA"}),c.createElement("path",{opacity:.1,d:"M22.1323 11.5275V29.3025C22.1308 29.9257 21.743 30.4859 21.1517 30.7192C20.9685 30.7961 20.7712 30.8358 20.5718 30.8358H10.1943V10.8333H11.8998V10H20.5719C21.4333 10.0032 22.1305 10.6856 22.1323 11.5275Z",fill:"#15283D"}),c.createElement("path",{opacity:.2,d:"M21.2796 12.3608V30.1358C21.2818 30.3371 21.2381 30.5364 21.1517 30.7191C20.9149 31.2896 20.349 31.6638 19.7191 31.6666H10.1943V10.8333H19.7191C19.9666 10.8309 20.2104 10.8912 20.4269 11.0083C20.9496 11.2657 21.2794 11.7888 21.2796 12.3608Z",fill:"#15283D"}),c.createElement("path",{opacity:.2,d:"M21.2796 12.3608V28.4691C21.2754 29.3106 20.5802 29.9927 19.7192 30H10.1943V10.8333H19.7191C19.9666 10.8309 20.2104 10.8912 20.4269 11.0083C20.9496 11.2657 21.2794 11.7888 21.2796 12.3608Z",fill:"#15283D"}),c.createElement("path",{opacity:.2,d:"M20.4269 12.3607V28.4691C20.426 29.3119 19.7288 29.9958 18.8664 29.9999H10.1943V10.8333H18.8664C19.7287 10.8337 20.4273 11.5172 20.4269 12.3599C20.4269 12.3602 20.4269 12.3605 20.4269 12.3607Z",fill:"#15283D"}),c.createElement("path",{d:"M3.23001 10.8333H18.8636C19.7269 10.8333 20.4267 11.5171 20.4267 12.3607V27.6391C20.4267 28.4827 19.7269 29.1666 18.8636 29.1666H3.23001C2.36677 29.1666 1.66699 28.4827 1.66699 27.6391V12.3607C1.
7166699 11.5171 2.36679 10.8333 3.23001 10.8333Z",fill:"url(#paint1_linear_638_132852)"}),c.createElement("path",{d:"M6.5526 17.2399C6.93784 16.4378 7.55964 15.7665 8.33819 15.3124C9.20039 14.83 10.1821 14.5895 11.1752 14.6174C12.0956 14.5979 13.0038 14.8259 13.8007 15.2766C14.5499 15.7132 15.1533 16.353 15.5376 17.1182C15.9562 17.9615 16.1649 18.8895 16.1465 19.8266C16.1668 20.8059 15.9521 21.7762 15.5197 22.6599C15.1262 23.4525 14.5037 24.1151 13.729 24.5657C12.9015 25.0302 11.9595 25.2642 11.0055 25.2424C10.0654 25.2646 9.13713 25.034 8.32199 24.5757C7.56631 24.1385 6.95534 23.498 6.56199 22.7307C6.14092 21.8997 5.92982 20.9821 5.94634 20.0549C5.9288 19.0839 6.13605 18.1216 6.5526 17.2399ZM8.45586 21.7649C8.66125 22.272 9.00956 22.7118 9.46035 23.0332C9.91951 23.3469 10.4693 23.5087 11.0293 23.4949C11.6257 23.518 12.2136 23.3506 12.7041 23.0182C13.1492 22.6978 13.4883 22.2568 13.6796 21.7499C13.8934 21.1838 13.9989 20.5841 13.9908 19.9807C13.9974 19.3716 13.8982 18.7658 13.6975 18.1891C13.5201 17.6684 13.1919 17.2092 12.7527 16.8674C12.2745 16.5193 11.6882 16.3427 11.0924 16.3674C10.5203 16.3529 9.95816 16.516 9.48678 16.8332C9.02836 17.1561 8.67344 17.5997 8.46353 18.1124C7.99786 19.2875 7.99543 20.5898 8.4567 21.7666L8.45586 21.7649Z",fill:"white"}),c.createElement("path",{d:"M28.9541 8.33325H36.6285V15.8332H28.9541V8.33325Z",fill:"#50D9FF"})),c.createElement("defs",null,c.createElement("linearGradient",{id:"paint0_linear_638_132852",x1:24.2641,y1:20.8333,x2:24.2641,y2:36.6666,gradientUnits:"userSpaceOnUse"},c.createElement("stop",{stopColor:"#35B8F1"}),c.createElement("stop",{offset:1,stopColor:"#28A8EA"})),c.createElement("linearGradient",{id:"paint1_linear_638_132852",x1:4.92593,y1:9.6397,x2:16.7505,y2:30.5956,gradientUnits:"userSpaceOnUse"},c.createElement("stop",{stopColor:"#1784D9"}),c.createElement("stop",{offset:.5,stopColor:"#107AD5"}),c.createElement("stop",{offset:1,stopColor:"#0A63C9"})),c.createElement("clipPath",{id:"clip0_638_132852"},c.createElement("rect",{width:36.6667,height:33.3333,fill:"white",transform:"translate(1.66699 3.33325)"})))),nL=e=>c.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_638_132845)"},c.createElement("path",{d:"M4.16699 33.3334H10.0003V18.7375L1.66699 12.2981V30.7577C1.66699 32.1829 2.78783 33.3334 4.16699 33.3334Z",fill:"#4285F4"}),c.createElement("path",{d:"M30 33.3334H35.8333C37.2167 33.3334 38.3333 32.1786 38.3333 30.7577V12.2981L30 18.7375",fill:"#34A853"}),c.createElement("path",{d:"M30 7.57574V18.7374L38.3333 12.298V8.86362C38.3333 5.67827 34.8042 3.86236 32.3333 5.77271",fill:"#FBBC04"}),c.createElement("path",{d:"M10 18.7373V7.57568L20 15.303L30 7.57568V18.7373L20 26.4646",fill:"#EA4335"}),c.createElement("path",{d:"M1.66699 8.86362V12.298L10.0003 18.7374V7.57574L7.66699 5.77271C5.19199 3.86236 1.66699 5.67827 1.66699 8.86362Z",fill:"#C5221F"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_638_132845"},c.createElement("rect",{width:36.6667,height:28.3333,fill:"white",transform:"translate(1.66699 5)"})))),Ic="data:image/svg+xml,%3csvg%20width='22'%20height='22'%20viewBox='0%200%2022%2022'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%2011%20Copy%202'%3e%3cpath%20id='Fill%201'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.7861%208.84572H20.8997V8.79989H10.9999V13.1998H17.2175C16.3091%2015.761%2013.8727%2017.5998%2010.9999%2017.5998C7.35524%2017.5998%204.39994%2014.6454%204.39994%2010.9999C4.39994%207.35524%207.35524%204.39994%2010.9999%204.39994C12.6819%204.39994%2014.2127%205.03427%2015.3787%206.07192L18.4899%202.95988C16.5255%201.12932%2013.8983%200%2010.9999%200C4.92519%200%200%204.92519%200%2010.9999C0%2017.0745%204.92519%2021.9997%2010.9999%2021.9997C17.0745%2021.9997%2021.9997%2017.0745%2021.9997%2010.9999C21.9997%2010.262%2021.9236%209.54238%2021.7861%208.84572Z'%20fill='%23FFC107'/%3e%3cg%20id='Group%206'%3e%3cmask%20id='mask0'%20mask-type='alpha'%20maskUnits='userSpaceOnUse'%20x='1'%20y='0'%20width='18'%20height='9'%3e%3cpath%20id='Clip%205'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.26904%200H18.4902V8.53094H1.26904V0Z'%20fill='white'/%3e%3c/mask%3e%3cg%20mask='url(%23mask0)'%3e%3cpath%20id='Fill%204'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M1.26904%205.87985L4.8825%208.53082C5.86057%206.10902%208.22921%204.39946%2011.0003%204.39946C12.6823%204.39946%2014.2131%205.0347%2015.3791%206.07144L18.4902%202.95939C16.5259%201.12883%2013.8978%20-0.000488281%2011.0003%20-0.000488281C6.77539%20-0.000488281%203.11152%202.38465%201.26904%205.87985Z'%20fill='%23FF3D00'/%3e%3c/g%3e%3c/g%3e%3cpath%20id='Fill%207'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.0001%2022.0001C13.8418%2022.0001%2016.4231%2020.912%2018.3746%2019.1447L14.9702%2016.2637C13.8665%2017.0997%2012.4934%2017.6002%2011.0001%2017.6002C8.13927%201
717.6002%205.71013%2015.776%204.79439%2013.2305L1.20752%2015.9933C3.028%2019.5563%206.72487%2022.0001%2011.0001%2022.0001Z'%20fill='%234CAF50'/%3e%3cpath%20id='Fill%209'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M21.7863%208.84564H20.8999V8.7998H11V13.1997H17.2177C16.7813%2014.4299%2015.9903%2015.4914%2014.9691%2016.2632C14.9691%2016.2632%2014.97%2016.2632%2014.97%2016.2623L18.3745%2019.1433C18.1343%2019.3624%2021.9999%2016.4997%2021.9999%2010.9998C21.9999%2010.2619%2021.9238%209.5423%2021.7863%208.84564Z'%20fill='%231976D2'/%3e%3c/g%3e%3c/svg%3e",sL=y(g,{target:"e184zvn51"})("padding:20px;background-color:",({theme:e})=>e.palette.bg.greyBlue,";border-radius:12px;display:flex;align-items:center;justify-content:space-between;"),rL=y(S,{target:"e184zvn50"})("background-color:",({theme:e})=>e.palette.primary.main,";box-shadow:0 1px 1px 0 ",({theme:e})=>e.palette.lightGray.light,";text-align:center;font-weight:bold;color:#fff;border-radius:5px;line-height:15px;margin:0 5px;padding:3px 5px;font-size:10px;"),Ju=({email:e,isEmailAlias:n,name:s,type:r,avatar:a,onDisconnectClick:i,isDisconnectLoading:o})=>{const l=P(),{userMe:u}=st(),{toggleIncludeUnsubscribeEmailLink:d}=dl(),p=()=>l(Ne({type:Y.USE_EMAIL_ALIAS,headerText:"Select the address you want to use to send emails from",params:{emails:[e]}})),h=()=>l(Ne({type:Y.SIGNATURE,headerText:"Setup your Email Signature"})),m=()=>l(Ne({type:Y.EXPORT_UNSUBSCRIBED_EMAILS_CSV}));return t.jsxs(g,{children:[t.jsxs(sL,{children:[t.jsxs(g,{display:"flex",alignItems:"center",children:[t.jsx(ht,{width:"48px",height:"48px",src:a,firstLatter:(s||"")[0]}),t.jsxs(g,{display:"flex",flexDirection:"column",justifyContent:"space-around",ml:"10px",mr:"90px",children:[t.jsx(S,{semibold:!0,color:"greyNeutral.100",mb:"4px",children:s}
71),t.jsxs(S,{color:"blue.black",children:[e," ",n&&t.jsx(rL,{inline:!0,children:"alias"})]})]})]}),t.jsxs(k,{variant:"warning-secondary",onClick:i,processing:o,children:["Disconnect this ",r==="google"?"Gmail":"Microsoft"," account"]})]}),r==="google"&&t.jsx(g,{mt:"16px",display:"flex",gap:"16px",children:t.jsx(k,{onClick:p,children:"Use alias for sending emails"})}),t.jsxs(g,{marginTop:"16px",display:"flex",gap:"16px",children:[t.jsxs(k,{onClick:h,children:[t.jsx(yt,{icon:wp})," Update signature"]}),t.jsx(k,{onClick:m,children:"Export unsubscribed emails"})]}),t.jsxs(g,{display:"flex",mt:"24px",alignItems:"center",children:[t.jsx(Us,{checked:u==null?void 0:u.includeUnsubscribeEmailLink,onChange:()=>d()}),t.jsx(S,{mr:"3px",ml:"10px",semibold:!0,fontSize:"12px",lineHeight:"16px",children:"Include unsubscribe link to all email campaigns"})]})]})},Ol=y(k,{target:"e1792e3u1"})("&,&:hover{background:white;border-color:",({theme:e})=>e.palette.greyNeutral[30],";color:",({theme:e})=>e.palette.greyNeutral[100],";}"),Dl=y(g,{target:"e1792e3u0"})("background-color:#ffffff;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:8px;border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";"),aL=()=>{const e=P(),{whitelabel:n}=Je(),{companyName:s}=Fe(),{postGmailSingIn:r}=fl(),{checkFeature:a}=We(),[i,o]=a(X.integrations),{deleteGmail:l,isDeleteGmailLoading:u}=au(),{userEmail:d}=Ps(),{gmailEnabled:p,alias:h,email:m,name:f,pic:C}=d||{},E=ko({onSuccess:({code:w})=>{r(w)},scope:"profile email https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.readonly",flow:"auth-code"}),b=()=>e(Ne({headerText:"Are you sure you want to remove Email credentials ?",descriptionText:"This means that your Email Campaigns stop to working. Once another Email is connected leads who already got email from previous email box won’t receive any emails.",onConfirm:l}));return p?t.jsxs(g,{children:[t.jsxs(g,{display:"flex",alignItems:"center",mb:"16px",children:[t.jsx("img",{width:"20px",src:Ic}),t.jsx(S,{ml:"8px",color:"greyBlue.100",fontSize:"16px",lineHeight:"24px",medium:!0,children:"Gmail Authorized"})]}),t.jsx(He,{type:"success",messageProps:{medium:!0},wrapperProps:{mb:"16px"},message:`You have authorized your Gmail account for sending emails from ${s}.`}),t.jsx(Ju,{type:"google",isEmailAlias:(h==null?void 0:h.sendAsEmail)!==m,avatar:C,name:(h==null?void 0:h.displayName)||f,email:(h==null?void 0:h.sendAsEmail)||m,isDisconnectLoading:u,onDisconnectClick:b})]}):n.isWhiteLabelUser?null:t.jsx(Ot,{children:t.jsx(Dt,{height:"80px",bgcolor:"#ffffff",children:t.jsxs(g,{display:"flex",width:"100%",alignItems:"center",children:[t.jsx(Dl,{mr:"16px",children:t.jsx(nL,{})}),t.jsx(S,{semibold:!0,fontSize:"16px",mr:"auto",children:"Gmail"}),t.jsx(Ol,{disabled:!i,tooltip:{title:o},onClick:E,padding:"10px 32px 10px 20px",leftIcon:t.jsx("img",{width:"20px",src:Ic}),children:"Sign in with Google"})]})})})},iL=({redirectTo:e})=>{const n=P(),{whitelabel:s}=Je(),{companyName:r}=Fe(),{userMe:a}=st(),{getMicrosoftOutlookCodeUrl:i}=xl(e),{deleteMicrosoftOutlook:o,isLoading:l}=iu(),{checkFeature:u}=We(),[d,p]=u(X.integrations),{userEmail:h}=Ps(),{outlookEnabled:m,email:f,name:C,pic:E}=h||{},b=()=>i(),w=()=>n(Ne({headerText:"Are you sure you want to remove Email credentials ?",descriptionText:"This means that your Email Campaigns stop to working. Once another Email is connected leads who already got email from previous email box won’t receive any emails.",onConfirm:o}));return m?t.jsxs(g,{children:[t.jsxs(g,{display:"flex",alignItems:"center",mb:"16px",children:[t.jsx("img",{width:"20px",src:To}),t.jsx(S,{ml:"8px",color:"greyBlue.100",fontSize:"16px",lineHeight:"24px",medium:!0,children:"Microsoft Authorized"})]}),t.jsx(He,{type:"success",messageProps:{medium:!0},wrapperProps:{mb:"16px"},message:`You have authorized your Outlook account for sending emails from ${r}.`}),t.jsx(Ju,{type:"microsoft",avatar:E,name:C,email:f,isDisconnectLoading:l,onDisconnectClick:w}),(a==null?void 0:a.outlookError)&&t.jsx(He,{type:"error",wrapperProps:{mt:"24px"},message:"We've encountered an error. Please disconnect and reconnect your Outlook account."})]}):s.isWhiteLabelUser?null:t.jsx(Ot,{children:t.jsx(Dt,{height:"80px",bgcolor:"#ffffff",children:t.jsxs(g,{display:"flex",width:"100%",alignItems:"center",children:[t.jsx(Dl,{mr:"16px",children:t.jsx(Xu,{})}),t.jsx(S,{semibold:!0,fontSize:"16px",mr:"auto",children:"Microsoft Outlook"}),t.jsx(Ol,{disabled:!d,tooltip:{title:p},onClick:b,padding:"10px 20px",leftIcon:t.jsx("img",{width:"20px",src:To,alt:"Microsoft"}),children:"Sign in with Microsoft"})]})})})},Ul=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M1.33325 4.00017L5.94194 6.61149C7.64098 7.57418 8.35886 7.57418 10.0579 6.61149L14.6666 4.00017M6.0658 2.35787C7.35946 2.32537 8.64038 2.32537 9.93404 2.35788C12.033 2.41061 13.0825 2.43698 13.8366 3.19394C14.5907 3.95089 14.6125 4.97274 14.6561 7.01643C14.6701 7.67355 14.6701 8.32679 14.6561 8.98391C14.6125 11.0276 14.5907 12.0494 13.8366 12.8064C13.0825 13.5634 12.033 13.5897 9.93404 13.6425C8.64038 13.675 7.35946 13.675 6.0658 13.6425C3.96681 13.5897 2.91731 13.5634 2.16322 12.8064C1.40914 12.0494 1.38735 11.0276 1.34376 8.98391C1.32975 8.32679 1.32975 7.67354 1.34376 7.01642C1.38734 4.97273 1.40913 3.95088 2.16322 3.19393C2.91731 2.43697 3.9668 2.41061 6.0658 2.35787Z",stroke:"currentColor",strokeLinejoin:"round"})),oL=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_3025_3829)"},c.createElement("path",{d:"M18.3337 10.5285C15.0003 13.4552 14.5236 8.85067 12.7916 9.18027C10.8337 9.5529 9.58366 13.7035 10.8337 13.7035C12.0837 13.7035 10.417 8.74984 8.75033 10.4628C7.08366 12.1758 6.5498 14.412 5.19638 12.7519C-1.24967 4.84522 4.16698 -0.958444 6.80301 2.88055C8.47138 5.3103 5.41699 14.1473 1.66699 18.3332",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M7.5 17.4998H15.8333",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_3025_3829"},c.createElement("rect",{width:20,height:20,fill:"white"})))),lL=y(g,{target:"eb8ztl50"})({name:"mp7lvw",styles:"display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px"}),cL=({form:e})=>{const{register:n,setValue:s,getValues:r,formState:{errors:a}}=e,i=Object.values(a).find(o=>o==null?void 0:o.message);return t.jsxs(g,{children:[t.jsxs(lL,{mt:"24px",children:[t.jsx(Ce,{label:"IMAP Server",n
71ame:"imapServer",type:"email",placeholder:"imap.gmail.com",parameters:{required:"Please enter an IMAP Server",onBlur:()=>s("imapServer",r("imapServer").trim())},register:n,className:Ee({error:a.imapServer})}),t.jsx(Ce,{label:"IMAP Username",name:"username",placeholder:"imap-username",parameters:{required:"Please enter an IMAP Username",onBlur:()=>s("username",r("username").trim())},register:n,className:Ee({error:a.username})}),t.jsx(Ce,{label:"IMAP Password ",name:"password",type:"password",autoComplete:"on",placeholder:"Set Your Password",parameters:{required:"Please enter a Password",onBlur:()=>s("password",r("password").trim())},register:n,className:Ee({error:a.password})}),t.jsx(Ce,{label:"Port",name:"port",placeholder:"993",maxLength:5,parameters:{required:"Please enter a Port",pattern:{value:/[1-9]*/,message:"Please enter a valid number Port"},onBlur:()=>{var l;const o=r("port");s("port",o&&(Number((l=String(o))==null?void 0:l.trim())||0))},validate:o=>Number(o)>=0&&Number(o)<=65535||"Please enter a valid port"},register:n,className:Ee({error:a.port})}),t.jsxs(g,{display:"flex",alignItems:"flex-end",pb:"10px",children:[t.jsx($e,{type:"checkbox",register:n,name:"isTlsEnabled"}),t.jsx(S,{ml:"8px",children:"Enable start TLS/SSL"})]})]}),!!(i!=null&&i.message)&&t.jsx(g,{mt:"12px",children:t.jsx($a,{children:i==null?void 0:i.message})})]})},dL=y(g,{target:"e1rrt6fr0"})({name:"mp7lvw",styles:"display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px"}),uL=({form:e})=>{var o;const{register:n,setValue:s,getValues:r,formState:{errors:a}}=e,i=(o=Object.entries(a).find(([l,u])=>l!=="root"&&(u==null?void 0:u.message)))==null?void 0:o[1];return t.jsxs(g,{children:[t.jsxs(dL,{mt:"24px",children:[t.jsx(Ce,{label:"Reply to Email",name:"replyToEmail",type:"email",placeholder:"[email protected]",parameters:{required:"Please enter an Email",minLength:{value:6,message:"Please enter an Email at least 6 characters long"},pattern:{value:yn,message:"Please enter a valid Email"},onBlur:()=>s("replyToEmail",r("replyToEmail").trim())},register:n,className:Ee({error:a.replyToEmail})}),t.jsx(Ce,{label:"From (sender) Name",name:"senderName",placeholder:"Your App Name Team",parameters:{required:"Please enter a Sender Name",onBlur:()=>s("senderName",r("senderName").trim())},register:n,className:Ee({error:a.senderName})}),t.jsx(g,{}),t.jsx(Ce,{label:"SMTP Server",name:"smtpServer",placeholder:"smtp.gmail.com",parameters:{required:"Please enter a SMTP server",onBlur:()=>s("smtpServer",r("smtpServer").trim())},register:n,className:Ee({error:a.smtpServer})}),t.jsx(Ce,{label:"SMTP Username",name:"username",placeholder:"e.g. John Doe",parameters:{required:"Please enter a User Name",onBlur:()=>s("username",r("username").trim())},register:n,className:Ee({error:a.username})}),t.jsx(Ce,{label:"SMTP Password",name:"password",type:"password",autoComplete:"on",placeholder:"Set Your Password",parameters:{required:"Please enter a Password",onBlur:()=>s("password",r("password").trim())},register:n,className:Ee({error:a.password})}),t.jsx(Ce,{label:"Port",name:"port",placeholder:"587",maxLength:5,parameters:{required:"Please enter a Port",pattern:{value:/[1-9]*/,message:"Please enter a valid number Port"},onBlur:()=>{var u;const l=r("port");s("port",l&&(Number((u=String(l))==null?void 0:u.trim())||0))},validate:l=>Number(l)>=0&&Number(l)<=65535||"Please enter a valid port"},register:n,className:Ee({error:a.port})}),t.jsxs(g,{display:"flex",alignItems:"flex-end",pb:"10px",children:[t.jsx($e,{type:"checkbox",register:n,name:"isTlsEnabled"}),t.jsx(S,{mx:"8px",children:"Enable start TLS/SSL"}),t.jsx(we,{title:"To test sending an email, mark the checkbox for this option. If you don’t receive a test email, unmark the checkbox and try again.",children:t.jsx(g,{width:"20px",height:"20px",children:t.jsx(es,{width:"20px",height:"20px"})})})]})]}),!!(i!=null&&i.message)&&t.jsx(g,{mt:"12px",children:t.jsx($a,{children:i==null?void 0:i.message})})]})},pL=y(g,{target:"e10te4r10"})("background-color:#ffffff;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:8px;border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";"),_c={isTlsEnabled:!1,password:"",port:"",replyToEmail:"",senderName:"",smtpServer:"",username:""},Ac={imapServer:"",isTlsEnabled:!1,password:"",port:"",username:""},hL=()=>{var O,B,D,M,F,W;const e=P(),{checkFeature:n}=We(),{palette:s}=Ve(),[r]=Bn(Cn.wlDirectOutlookConnect),[a,i]=c.useState(!1),o=lt({defaultValues:_c}),l=lt({defaultValues:Ac}),{userMe:u}=st(),{mailSettings:d}=Ua(),{setMailSettings:p,isLoading:h}=c7(),{toggleIncludeUnsubscribeEmailLink:m}=dl(),{testSMTP:f,isTestLoading:C,isError:E,isSuccess:b}=zx({onError:ne=>{o.setError("root",{message:ne.message})}}),{deleteMailSettings:w,isDeleteLoading:I}=Xg({onMutate:()=>i(!1),onError:()=>i(!0),onSuccess:()=>{o.reset(_c),l.reset(Ac)}}),[T,j]=n(X.SMTPIntegration);c.useEffect(()=>{var ne;d.isConnected&&(i(!0),o.reset({...d==null?void 0:d.smtpSettings,password:((ne=d==null?void 0:d.smtpSettings)==null?void 0:ne.password)||""}),l.reset(d==null?void 0:d.imapSettings))},[d==null?void 0:d.smtpSettings,d==null?void 0:d.imapSettings]);const L=()=>
71{if(o.getValues().username!==l.getValues().username){l.setError("username",{message:"IMAP username should match SMTP username"},{shouldFocus:!0});return}p({imapSettings:{...l.getValues(),port:Number(l.getValues("port"))},smtpSettings:{...o.getValues(),port:Number(o.getValues("port"))}})},_=()=>{e(Ne({headerText:"Remove SMTP + IMAP Settings",descriptionText:"Are you sure you want to remove SMTP + IMAP Settings",onConfirm:w}))},N=async()=>{const[ne,$]=await Promise.all([o.trigger(),l.trigger()]);!ne||!$||e(Ne({headerText:"Test SMTP",type:Y.TEST_SMTP,params:{validateEmail:z=>z!==o.getValues().username},onConfirm:z=>f({receiverEmail:z,imapSettings:{...l.getValues(),port:Number(l.getValues("port"))},smtpSettings:{...o.getValues(),port:Number(o.getValues("port"))}})}))},A=()=>e(Ne({type:Y.SIGNATURE,headerText:"Setup your Email Signature"})),R=()=>e(Ne({type:Y.EXPORT_UNSUBSCRIBED_EMAILS_CSV})),V=()=>d.isConnected?"Authorized via SMTP + IMAP":r?"Other Email Provider":"Email Provider";return t.jsxs(Ot,{expanded:a,children:[t.jsxs(Dt,{height:"80px",...a?{}:{bgcolor:"#ffffff"},children:[t.jsx(pL,{mr:"16px",children:t.jsx(Ul,{width:"30px",height:"30px",color:s.blue.primary})}),t.jsx(S,{semibold:!0,fontSize:"16px",mr:"auto",children:V()}),d.isConnected?t.jsx(k,{variant:"warning-secondary",processing:I,onClick:_,children:"Disconnect SMTP + IMAP"}):t.jsx(k,{disabled:!T,tooltip:{title:j},onClick:()=>i(ne=>!ne),children:a?"Cancel":"Connect via SMTP + IMAP"})]}),t.jsxs(un,{children:[r&&t.jsx(He,{type:"error",wrapperProps:{mb:"16px",width:"395px"},message:"Outlook/Office 365 is no longer available for SMTP/IMAP servers.",messageProps:{medium:!0},noDivider:!0}),t.jsx(S,{medium:!0,fontSize:"16px",lineHeight:"24px",mb:"16px",children:"SMTP for Sending"}),t.jsx(uL,{form:o}),t.jsx(Ue,{my:"24px"}),t.jsx(S,{medium:!0,fontSize:"16px",lineHeight:"24px",mb:"16px",children:"IMAP for Receiving"}),t.jsx(cL,{form:l}),d.isConnected&&t.jsxs(g,{marginTop:"30px",display:"flex",gap:"16px",children:[t.jsx(k,{onClick:A,leftIcon:t.jsx(oL,{}),children:"Update signature"}),t.jsx(k,{onClick:R,children:"Export unsubscribed emails"})]}),t.jsxs(g,{display:"flex",mt:"24px",alignItems:"center",children:[t.jsx(Us,{checked:u==null?void 0:u.includeUnsubscribeEmailLink,onChange:()=>m()}),t.jsx(S,{mr:"3px",ml:"10px",semibold:!0,fontSize:"12px",lineHeight:"16px",children:"Include unsubscribe link to all email campaigns"})]}),E&&!C&&((D=(B=(O=o==null?void 0:o.formState)==null?void 0:O.errors)==null?void 0:B.root)==null?void 0:D.message)&&t.jsx(He,{type:"error",wrapperProps:{mt:"16px"},message:(W=(F=(M=o==null?void 0:o.formState)==null?void 0:M.errors)==null?void 0:F.root)==null?void 0:W.message}),t.jsx(Ue,{mx:"-16px",my:"16px"}),t.jsxs(g,{display:"flex",children:[t.jsxs(g,{mr:"auto",display:"flex",alignItems:"center",gap:"20px",children:[t.jsx(k,{scale:"s",processing:C,onClick:N,children:"Test SMTP and IMAP"}),b&&!C&&t.jsx(S,{children:"We sent test email to your inbox"})]}),t.jsx(k,{scale:"s",processing:h,onClick:o.handleSubmit(()=>l.handleSubmit(L)()),children:"Save Settings"})]})]})]})},mL=({redirectTo:e})=>{const{state:n}=mt(),[s,r]=c.useState(""),{userMe:a}=st(),{userEmail:i,isLoading:o,isFetching:l}=Ps(),{googleError:u}=fl(),{mailSettings:d,isMailLoading:p}=Ua(),{microsoftError:h}=du((n==null?void 0:n.code)||""),{getMicrosoftOutlookCodeUrl:m}=xl(e),[f]=Bn(Cn.wlDirectOutlookConnect),{whitelabel:C}=Je(),E=c.useMemo(()=>{switch(!0){case(i==null?void 0:i.gmailEnabled):return"google";case(i==null?void 0:i.outlookEnabled):return"microsoft";case!!(d!=null&&d.isConnected):return"smtp";default:return null}},[i,d]);return c.useEffect(()=>{const b=(u==null?void 0:u.message)||(h==null?void 0:h.message);if(!b)return;r(b);const w=as(5e3,()=>r(""));return()=>{clearTimeout(w)}},[u,h]),o||l||p?t.jsx(Ts,{children:t.jsx(Pe,{size:"24px",mb:"40px"})}):t.jsxs(Ts,{children:[t.jsxs(g,{display:"flex",alignItems:"flex-start",justifyContent:"space-between",children:[t.jsx(Za,{mb:"8px",children:t.jsx(Qb,{})}),((i==null?void 0:i.outlookEnabled)&&!(a!=null&&a.outlookError)||(i==null?void 0:i.gmailEnabled)||!!(d!=null&&d.isConnected))&&t.jsx(Pt,{bgColor:"#ebf8f1",color:"#1b8d2d",tag:"Connected"}),(i==null?void 0:i.outlookEnabled)&&(a==null?void 0:a.outlookError)&&t.jsx(Pt,{bgColor:"#fce9e8",color:"#d3241d",tag:"Broken"})]}),t.jsx(Wa,{children:"Authorize Email"}),t.jsx(S,{mt:"4px",fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",children:"Connect your account to start automating emails and monitor replies."}),t.jsx(Ue,{mx:"-16px",my:"16px"}),t.jsxs(g,{display:"grid",gap:"8px",mt:"16px",children:[(!E||E==="google")&&t.jsx(aL,{}),(!E||E==="microsoft")&&t.jsx(iL,{redirectTo:e}),f&&C.isWhiteLabelUser&&!(d!=null&&d.isConnected)&&!(i!=null&&i.outlookEnabled)&&t.jsx(Ot,{children:t.jsx(Dt,{height:"80px",bgcolor:"#ffffff",children:t.jsxs(g,{display:"flex",width:"100%",alignItems:"center",children:[t.jsx(Dl,{mr:"16px",children:t.jsx(Xu,{})}),t.jsx(S,{semibold:!0,fontSize:"16px",mr:"auto",children:"Microsoft Outlook"}),t.jsx(Ol,{onClick:()=>m(),padding:"10px 20px",leftIcon:t.jsx("img",{width:"20px",src:To,alt:"Microsoft"}),children:"Sign in with Microsoft"})]})})}),(!E||E==="smtp")&&t.jsx(hL,{})]}),!!s&&t.jsx(g,{mt:"12px",children:t.jsx($a,{children:s})})]})},gL=({redirectTo:e})=>{P(),Fe();const[n,s]=c.useState(""),{state:r}=mt(),[a,i]=c.useState(null),{refetch:o}=Ps({onSuccess:p=>i(p)});st();const{microsoftError:l}=du((r==null?void 0:r.code)||""),{postGmailSingIn:u,googleError:d}=fl();return au(),iu(),xl(e),dl(),c.useEffect(()=>{o()},[]),c.useEffect(()=>{const p=(d==null?void 0:d.message)||(l==null?void 0:l.message);p&&(s(p),as(5e3,()=>{s("")}))},[d,l]),ko({onSuccess:({code:p})=>{u(p)},scope:"profile email https://www.googleapis.com/auth/gmail.send https://www.googleapis.com/auth/gmail.readonly",flow:"auth-code"}),t.jsx(mL,{redirectTo:e})},e3=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M17.0833 4.58325H7.91667C4.82227 4.58325 2.5 6.82078 2.5 9.99992",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M2.91667 15.4167H12.0833C15.1777 15.4167 17.5 13.1792 17.5 10.0001",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M15.4165 6.66667L17.0455 5.17259C17.3484 4.89481 17.4998 4.75592 17.4998 4.58333C17.4998 4.41074 17.3484 4.27186 17.0455 3.99408L15.4165 2.5",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4.58333 13.3333L2.9543 14.8273C2.65143 15.1051 2.5 15.244 2.5 15.4166C2.5 15.5892 2.65143 15.7281 2.9543 16.0058L4.58333 17.4999",stroke:"currentColor",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),xL=y(g,{target:"erlwi8w3"})("width:100%;margin-top:10px;border-radius:6px;border:1px solid rgba(224, 224, 224, 0.36);background:",({theme:e})=>e.palette.bg.blue,";display:grid;grid-template-columns:25px 60px 1fr;padding:0 10px;box-sizing:border-box;"),fL=y("div",{target:"erlwi8w2"})({name:"znx5hr",styles:"display:inline-block;border-radius:50%;overflow:hidden;width:40px;height:40px;margin:6px 10px"}),ki=y("span",{target:"erlwi8w1"})({name:"6ro7lf",styles:"display:inline-flex;flex:1;justify-content:space-between"}),CL=y("div",{target:"erlwi8w0"})({name:"1833l23",styles:"float:left;margin-top:17px"}),yL=({page:e,checkedPages:n,onCheckPage:s,onGetInstagramDetails:r,checkedInstagramPages:a,toggleInstagramSelect:i})=>t.jsxs(Xb,{children:[t.jsxs(g,{display:"flex",alignItems:"center",children:[t.jsx(g,{marginRight:"15px",children:t.jsx($e,{type:"checkbox",checked:n.indexOf(e.id)>-1,onChange:s},"checked")}),t.jsxs(Jb,{children:[t.jsx(eL,{children:e.name}),t.jsx(tL,{children:e.category})]}
71),t.jsx("div",{children:e.ig&&e.ig.id&&t.jsx(k,{title:"Click to display Instagram account connected to this page.",onClick:r,children:"Get Instagram Details"})})]}),t.jsx("div",{children:e.ig&&e.ig.id&&e.ig.username&&t.jsx(t.Fragment,{children:t.jsxs(xL,{children:[t.jsx(CL,{children:t.jsx(g,{mr:"5px",children:t.jsx($e,{checked:a.indexOf(e.ig.id)>-1,onChange:i,type:"checkbox"},"checked")})}),t.jsx(fL,{children:t.jsx("img",{src:e.ig.profile_pic||"",alt:"Facebook profile image",width:"40"})}),t.jsxs(g,{display:"block",mx:"10px",mt:"5px",children:[t.jsx("a",{href:`https://www.instagram.com/${e.ig.username}`,target:"_blank",rel:"noopener noreferrer",children:t.jsx(S,{color:"primary.wlLight",fontSize:"15px",semibold:!0,children:e.ig.username})}),t.jsxs(g,{display:"flex",children:[t.jsxs(ki,{children:[e.ig.media_count||0," posts"]}),t.jsxs(ki,{children:[e.ig.followers_count||0," followers"]}),t.jsxs(ki,{children:[e.ig.follows_count||0," following"]})]})]})]})})})]}),EL=y(k,{target:"etvozoz4"})("position:relative;width:auto;height:auto;border-radius:6px;padding:10px 12px;color:",({theme:e})=>e.palette.greyNeutral[100],";font-weight:600;border:1px solid ",({theme:e})=>e.palette.greyNeutral[30],";&:disabled{opacity:0.9;border-color:transparent;cursor:default;}"),Nc=y("div",{target:"etvozoz3"})("background-color:",({theme:e})=>e.palette.light.light,";padding:10px;border-radius:10px;margin-top:10px;span{font-size:14px;}"),kc=y(g,{target:"etvozoz2"})({name:"3gp33v",styles:"display:flex;align-items:center;span{font-size:14px;}"}),SL=y("img",{target:"etvozoz1"})({name:"d6xk3y",styles:"border-radius:50%;margin-right:10px;height:48px;width:48px"}),bL=y("span",{target:"etvozoz0"})("color:",({theme:e})=>e.palette.additional.success,";margin-right:15px;display:block;float:left;font-size:14px;"),LL=e=>c.createElement("svg",{width:41,height:40,viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("rect",{x:.333008,width:40,height:40,rx:4,fill:"#1877F2"}),c.createElement("path",{d:"M28.1182 25.7812L29.0049 20H23.458V16.25C23.458 14.668 24.2314 13.125 26.7158 13.125H29.2393V8.20312C29.2393 8.20312 26.9502 7.8125 24.7627 7.8125C20.1924 7.8125 17.208 10.582 17.208 15.5938V20H12.1299V25.7812H17.208V39.7578C18.2275 39.918 19.2705 40 20.333 40C21.3955 40 22.4385 39.918 23.458 39.7578V25.7812H28.1182Z",fill:"white"})),t3=({showConnectedTag:e,title:n})=>t.jsxs(t.Fragment,{children:[t.jsxs(g,{display:"flex",alignItems:"flex-start",justifyContent:"space-between",children:[t.jsx(Za,{mb:"8px",children:t.jsx(LL,{})}),e&&t.jsx(Pt,{bgColor:"#ebf8f1",color:"#1b8d2d",tag:"Connected"})]}),t.jsx(Wa,{children:n})]}),wL=({title:e,companyName:n,facebookDetails:s,facebookPages:r,isClearLoginLoading:a,checkedPages:i,checkedInstagramPages:o,pagesLoading:l,optionsSavedStatus:u,isUnauthorized:d,onLogout:p,getFBPages:h,toggleCheckSelect:m,onGetInstagramDetails:f,toggleCheckInstagramSelect:C,sendFacebookData:E})=>{var b,w;return t.jsxs(Ts,{children:[t.jsx(t3,{showConnectedTag:!0,title:e}),t.jsxs(S,{mt:"4px",fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",children:["Authorize your Facebook account to allow ",n," to post on your Pages."]}),t.jsx(Ue,{mx:"-16px",my:"16px"}),t.jsx(Nc,{children:t.jsxs(kc,{children:[t.jsx(SL,{src:((w=(b=s.picture)==null?void 0:b.data)==null?void 0:w.url)||""}),t.jsxs(g,{display:"flex",flexDirection:"column",justifyContent:"space-around",mr:"auto",children:[t.jsx("b",{children:s==null?void 0:s.name}),t.jsx("span",{children:s==null?void 0:s.email})]}),t.jsx(k,{variant:"warning-secondary",disabled:a,onClick:p,children:"Logout from Facebook"})]})}),t.jsxs(Nc,{children:[t.jsxs(kc,{justifyContent:"space-between",children:[t.jsxs(g,{display:"flex",gap:"10px",alignItems:"center",children:[t.jsx(S,{children:"Facebook pages you manage will be displayed here."}),t.jsx(je,{external:!0,openNewTab:!0,to:"https://www.facebook.com/help/1148909221857370",color:"greyBlue.100",tooltip:t.jsxs("p",{children:["To post content on your Instagram account, you need to connect Facebook page with Instagram account.",t.jsx("br",{}),"Click here to know more."]}),children:t.jsx(es,{width:"20px",height:"20px",style:{verticalAlign:"bottom"}})})]}),t.jsx(k,{onClick:h,processing:l,iconOnly:!0,leftIcon:t.jsx(e3,{})})]}),r.map(I=>t.jsx(yL,{page:I,checkedPages:i,checkedInstagramPages:o,onCheckPage:()=>m(I.id),onGetInstagramDetails:()=>f(I),toggleInstagramSelect:()=>{var T;return C((T=I==null?void 0:I.ig)==null?void 0:T.id)}},I.id))]}),t.jsx(S,{my:"8px",children:"To publish your content on Facebook pages and Instagram, please connect them to Alfred."}),t.jsxs(g,{display:"flex","flex-direction":"column",justifyContent:"space-between",alignItems:"center",mr:"auto",children:[t.jsx(g,{children:u&&t.jsx(bL,{children:u})}),t.jsx(k,{onClick:E,children:"Save"})]}),d&&t.jsx(He,{wrapperProps:{mt:"12px"},type:"error",message:"We've encountered an error. Please disconnect and reconnect your Facebook account"})]})},TL=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("rect",{width:20,height:20,rx:10,fill:"#1877F2"}
71),c.createElement("path",{d:"M13.8926 12.8906L14.3359 10H11.5625V8.125C11.5625 7.33398 11.9492 6.5625 13.1914 6.5625H14.4531V4.10156C14.4531 4.10156 13.3086 3.90625 12.2148 3.90625C9.92969 3.90625 8.4375 5.29102 8.4375 7.79688V10H5.89844V12.8906H8.4375V19.8789C8.94727 19.959 9.46875 20 10 20C10.5312 20 11.0527 19.959 11.5625 19.8789V12.8906H13.8926Z",fill:"white"})),jL=({title:e,companyName:n,isFacebookIntegrationAllowed:s,unavailableTooltip:r,signInWithFacebook:a})=>t.jsxs(Ts,{children:[t.jsx(t3,{showConnectedTag:!1,title:e}),t.jsxs(S,{mt:"4px",fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",children:["Authorize your Facebook account to allow ",n," to post on your Pages."]}),t.jsx(Ue,{mx:"-16px",my:"16px"}),t.jsx(g,{display:"inline-block",children:t.jsxs(EL,{disabled:!s,tooltip:{title:r},onClick:a,children:[t.jsx(TL,{}),"Login with Facebook"]})})]}),vL=()=>{const e=P(),{isFetchingData:n,isFetchingOptions:s,facebookLongLiveToken:r,facebookDetails:a,facebookPages:i,signInWithFacebook:o,isClearLoginLoading:l,sessionLogout:u,getFBPages:d,pagesLoading:p,checkedPages:h,checkedInstagramPages:m,toggleCheckSelect:f,onGetInstagramDetails:C,toggleCheckInstagramSelect:E,optionsSavedStatus:b,sendFacebookData:w,isUnauthorized:I}=Vf(),{checkFeature:T}=We(),[j,L]=T(X.integrations),{companyName:_}=Fe(),N=()=>{e(Ne({headerText:"Are you sure you want to remove Facebook credentials?",descriptionText:"This means that your scheduled posts for Facebook Pages, and Instagram will not be published.",onConfirm:u}))};return n||s?t.jsx(g,{textAlign:"center",mt:"20px",children:t.jsx(Pe,{marginTop:"0"})}):!r||!a||!i?t.jsx(jL,{title:r?"Facebook authorized":"Authorize Facebook",companyName:_,isFacebookIntegrationAllowed:j,unavailableTooltip:L,signInWithFacebook:o}):t.jsx(wL,{title:r?"Facebook authorized":"Authorize Facebook",companyName:_,facebookDetails:a,facebookPages:i,isClearLoginLoading:l,checkedPages:h,checkedInstagramPages:m,pagesLoading:p,optionsSavedStatus:b,isUnauthorized:!!I,onLogout:N,getFBPages:()=>d(),toggleCheckSelect:f,onGetInstagramDetails:C,toggleCheckInstagramSelect:E,sendFacebookData:w})},IL=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M21.2573 1.19922H2.73823C1.88966 1.19922 1.2002 1.89833 1.2002 2.75654V21.2419C1.2002 22.1001 1.88966 22.7992 2.73823 22.7992H21.2573C22.1059 22.7992 22.8002 22.1001 22.8002 21.2419V2.75654C22.8002 1.89833 22.1059 1.19922 21.2573 1.19922ZM7.72841 19.7135H4.52698V9.40529H7.73323V19.7135H7.72841ZM6.1277 7.99743C5.10073 7.99743 4.27145 7.16333 4.27145 6.14118C4.27145 5.11904 5.10073 4.28493 6.1277 4.28493C7.14984 4.28493 7.98395 5.11904 7.98395 6.14118C7.98395 7.16815 7.15466 7.99743 6.1277 7.99743ZM19.7289 19.7135H16.5275V14.6992C16.5275 13.5035 16.5034 11.9655 14.8641 11.9655C13.1959 11.9655 12.9404 13.2673 12.9404 14.6124V19.7135H9.73895V9.40529H12.8102V10.8131H12.8536C13.2827 10.0031 14.3289 9.14975 15.8863 9.14975C19.1263 9.14975 19.7289 11.2856 19.7289 14.0628V19.7135Z",fill:"currentColor"})),_L=e=>c.createElement("svg",{width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("rect",{width:48,height:48,rx:24,fill:"white"}),c.createElement("path",{d:"M14 20V34",stroke:"#1B4ED2",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M22 26V34M22 26C22 22.6863 24.6863 20 28 20C31.3137 20 34 22.6863 34 26V34M22 26V20",stroke:"#1B4ED2",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M14.016 14L13.998 14",stroke:"#1B4ED2",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),AL=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M8.00008 14.6654C8.00008 14.6654 2.66675 10.6654 2.66675 6.66537C2.66675 3.33203 5.33342 1.33203 8.00008 1.33203C10.6667 1.33203 13.3334 3.33203 13.3334 6.66537C13.3334 10.6654 8.00008 14.6654 8.00008 14.6654ZM8.00008 8.66537C8.53052 8.66537 9.03922 8.45465 9.4143 8.07958C9.78937 7.70451 10.0001 7.1958 10.0001 6.66537C10.0001 6.13493 9.78937 5.62622 9.4143 5.25115C9.03922 4.87608 8.53052 4.66536 8.00008 4.66536C7.46965 4.66536 6.96094 4.87608 6.58587 5.25115C6.2108 5.62622 6.00008 6.13493 6.00008 6.66537C6.00008 7.1958 6.2108 7.70451 6.58587 8.07958C6.96094 8.45465 7.46965 8.66537 8.00008 8.66537Z",stroke:"currentColor",strokeWidth:1.5})),NL=y(g,{target:"eb7sh500"})("display:flex;align-items:center;opacity:",({visible:e})=>e?1:.5,";"),Bl=({tryDelete:e,isLoading:n,isConnected:s=!1,hasCustomProxy:r=!1})=>{const{userMe:a}=st(),i=c.useMemo(()=>{var o,l;return a?(l=(o=Object.entries(E2()).find(([u])=>u===(a==null?void 0:a.country)))==null?void 0:o[1])==null?void 0:l.name:""},[a==null?void 0:a.country]);return t.jsxs(g,{display:"flex",alignItems:"center",p:"8px 12px",bgcolor:"bg.greyBlue",borderRadius:"12px",gap:"16px",justifyContent:"space-between",minWidth:"max-content",children:[t.jsxs(NL,{visible:s,children:[t.jsx(_L,{}),t.jsxs(g,{ml:"16px",children:[t.jsx(S,{color:"blue.black",mb:"4px",crop:!0,children:a==null?void 0:a.linkedInEmail}),t.jsx(S,{display:"flex",alignItems:"center",color:"greyBlue.100",gap:"4px",crop:!0,children:t.jsxs(t.Fragment,{children:[t.jsx(AL,{}),r?t.jsx(S,{inline:!0,color:"greyBlue.60",fontSize:"12px",lineHeight:"16px",children:"Country is managed by your proxy settings"}):i]})})]})]}),t.jsx(k,{variant:"warning-secondary",disabled:n,onClick:e,children:"Remove"})]})},kL=({isConnectedSuccessfully:e,isLoadingUpdateCredentials:n,isLoadingDeleteCredentials:s,isLinkedInRestrictionWarningDetected:r,hasCustomProxy:a,hideErrorBlock:i=!1,tryDelete:o,tryAgain:l,errorMessage:u})=>{const{companyName:d}=Fe(),p=n||s;return t.jsxs(t.Fragment,{children:[t.jsx(S,{semibold:!0,fontSize:"16px",lineHeight:"24px",color:"greyNeutral.100",mb:"16px",children:"LinkedIn account"}),t.jsx(Bl,{tryDelete:o,isConnected:e,isLoading:p,hasCustomProxy:a}),e||i?null:!p&&t.jsx(He,{type:"error",wrapperProps:{mt:"24px"},message:u||(r?"We can't seem to connect with your LinkedIn Profile. To confirm it's active and reachable, please open your LinkedIn profile in a new tab to check its status.":`${d} is no longer connected to your LinkedIn account. Please click "Try to Reconnect" button to try again.`)}),p&&t.jsx(He,{type:"success",noIcon:!0,wrapperProps:{mt:"24px",pb:"12px"},messageProps:{mb:"8px",color:"greyBlue.100",medium:!0},message:n&&"Almost there! We’re connecting your account for a seamless experience. This may take a couple of minutes."||s&&`${d} is removing your LinkedIn account. May take a few minutes.`,noDivider:!0,bottomContent:t.jsx(qa,{})}),!p&&!e&&t.jsxs(t.Fragment,{children:[t.jsx(Ue,{mx:"-16px",my:"16px"}),t.jsx(k,{scale:"s",type:"submit","data-testid":"button",disabled:p,onClick:l,children:"Try to Reconnect"})]})]})},RL=({register:e,countries:n,trySubmit:s,errors:r,control:a,isLoading:i,isLinkedinActive:o,errorMessage:l,isConnectDisabled:u,hasCu
71stomProxy:d})=>{var C;const{companyName:p}=Fe(),h=o||d,f=d?"Country is managed by your proxy settings":o?"In order to change the country remove the LinkedIn connection":"";return t.jsxs(t.Fragment,{children:[t.jsxs(g,{children:[t.jsx(S,{semibold:!0,fontSize:"16px",lineHeight:"24px",color:"greyNeutral.100",mb:"8px",children:"Country"}),t.jsx(S,{color:"greyNeutral.100",mb:"16px",children:"Select your country to connect from a nearby location for a secure and reliable experience."}),t.jsx(g,{width:"50%",children:t.jsx(we,{title:f,children:t.jsx("span",{children:t.jsx(rn,{control:a,name:"countryCode",render:({field:{onChange:E,value:b}})=>t.jsx(t.Fragment,{children:t.jsx(Xe,{isDisabled:h,label:"Country",value:b&&{label:b.label,value:b.value},placeholder:"Select Country",options:n,additionalProps:{isSearchable:!0},onChange:w=>{E(w)}})})})})})}),t.jsx(Ue,{my:"24px",mx:"-16px"}),t.jsxs(g,{children:[t.jsx(S,{semibold:!0,fontSize:"16px",lineHeight:"24px",color:"greyNeutral.100",mb:"8px",children:"LinkedIn account"}),t.jsxs(S,{color:"greyNeutral.100",mb:"16px",children:["Please enter your LinkedIn credentials so ",p," can work its magic."]})]}),t.jsxs(g,{display:"flex",width:"100%",gap:"16px",children:[t.jsxs(g,{width:"50%",children:[t.jsx(Ce,{label:"LinkedIn Account Email",type:"email",placeholder:"Email","data-testid":"email-field",autoComplete:"off",register:e,name:"email",className:Ee({error:r.email}),parameters:{required:!0,pattern:{value:B5,message:"Please enter valid email address"}}}),r.email&&t.jsx(S,{color:"error.light",fontSize:"12px",mt:"5px",children:r.email.message})]}),t.jsxs(g,{width:"50%",children:[t.jsx(Ce,{label:"LinkedIn Password",type:"password",placeholder:"Password","data-testid":"password-field",autoComplete:"off",register:e,name:"password",className:Ee({error:r.password}),parameters:{required:!0}}),r.password&&t.jsx(S,{color:"error.light",fontSize:"12px",mt:"5px","data-testid":"password-error-message",children:(C=r.password)==null?void 0:C.message})]})]})]}),l&&t.jsx(He,{type:"error",wrapperProps:{mt:"24px"},messageProps:{medium:!0},message:l}),i&&t.jsx(He,{type:"success",noIcon:!0,wrapperProps:{mt:"24px",pb:"12px"},messageProps:{mb:"8px",color:"greyBlue.100",medium:!0},message:"Almost there! We’re connecting your account for a seamless experience. This may take a couple of minutes.",noDivider:!0,bottomContent:t.jsx(qa,{})}),!i&&t.jsxs(t.Fragment,{children:[t.jsx(Ue,{mx:"-16px",my:"16px"}),t.jsx(k,{scale:"s",type:"submit","data-testid":"button",disabled:u||i,onClick:s,children:"Connect"})]})]})},ML=y(g,{target:"ebqhul71"})({name:"j3va44",styles:"border-radius:8px;padding:16px;background:#e8e8eb"}),PL=y(S,{target:"ebqhul70"})({name:"5lzf5a",styles:"display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word"}),n3=({values:e,valueColor:n,name:s,mb:r,mt:a})=>t.jsxs(ML,{mb:r,mt:a,children:[!!(s!=null&&s.trim())&&t.jsx(PL,{mb:"8px",color:"#000E33",fontSize:"14px",lineHeight:"20px",fontWeight:400,children:s.trim()}),t.jsx(S,{mb:"4px",color:"greyBlue.60",fontSize:"10px",lineHeight:"12px",semibold:!0,children:"PREVIEW"}),t.jsxs(S,{color:"#040207",mr:"4px",children:[t.jsx(S,{inline:!0,color:n,children:e.domain}),t.jsx(S,{inline:!0,semibold:!0,color:"#040207",mr:"4px",ml:"4px",children:":"}),t.jsx(S,{inline:!0,color:n,children:e.port}),t.jsx(S,{inline:!0,semibold:!0,color:"#040207",mr:"4px",ml:"4px",children:":"}),t.jsx(S,{inline:!0,color:n,children:e.userName}),t.jsx(S,{inline:!0,semibold:!0,color:"#040207",mr:"4px",ml:"4px",children:":"}),t.jsx(S,{inline:!0,color:n,children:e.password})]})]}),OL=(e,n)=>{const s=al(e,n),r=Object.keys(s);return r.length?r.length===1&&r[0]==="name"?"update-name":"open-update-modal":"close"},DL=(e,n)=>e?"Hide":n?"Edit":"Setup",UL=({hasErrors:e,savedValues:n,values:s,savedProxyId:r,createProxy:a,updateProxy:i,showMissingProxyIdToast:o,onCloseWithoutChanges:l,onOpenUpdateModal:u})=>{if(e)return;if(!n){a(nm(s));return}const d=OL(n,s);if(d==="close"){l();return}if(d==="update-name"){if(!r){o();return}i(r,al(n,s));return}u()},BL=({savedValues:e,values:n,savedProxyId:s,updateProxy:r,showMissingProxyIdToast:a,onNoChanges:i})=>{if(!e)return;if(!s){a();return}const o=al(e,n);if(!Object.keys(o).length){i();return}r(s,o)},HL=({values:e,effectiveErrors:n,isSubmitted:s,onFieldChange:r})=>t.jsxs(t.Fragment,{children:[t.jsx(g,{mb:"16px",children:t.jsx(Ce,{label:"Name (just for you)",placeholder:"Type name",value:e.name,onChange:a=>r("name",a.target.value)})}),t.jsxs(g,{display:"flex",gap:"12px",mb:"16px",children:[t.jsxs(g,{width:"25%",children:[t.jsx(Ce,{label:"User Name",placeholder:"Enter user name",value:e.userName,className:s&&n.userName?"error":"",onChange:a=>r("userName",a.target.value)}),s&&n.userName&&t.jsx(S,{color:"error.light",fontSize:"12px",mt:"5px",children:n.userName})]}),t.jsxs(g,{width:"25%",children:[t.jsx(Ce,{label:"Password",type:"password",placeholder:"Enter password",value:e.password,className:s&&n.password?"error":"",onChange:a=>r("password",a.target.value)}),s&&n.password&&t.jsx(S,{color:"error.light",fontSize:"12px",mt:"5px",children:n.password})]}),t.jsxs(g,{width:"32%",children:[t.jsx(Ce,{label:"Domain",placeholder:"Enter domain",value:e.domain,className:s&&n.domain?"error":"",onChange:a=>r("domain",a.target.value)}),s&&n.domain&&t.jsx(S,{color:"error.light",fontSize:"12px",mt:"5px",children:n.domain})]}),t.jsxs(g,{width:"18%",children:[t.jsx(Ce,{label:"Port",placeholder:"Enter port",value:e.port,className:s&&n.port?"error":"",onChange:a=>r("port",a.target.value)}),s&&n.port&&t.jsx(S,{color:"error.light",fontSize:"12px",mt:"5px",children:n.port})]})]})]}),VL=t.jsxs(t.Fragment,{children:[t.jsx(g,{component:"span",sx:{fontWeight:600},children:"Note:"})," ","Save your settings first, then reconnect your LinkedIn account so this proxy is applied."]}),FL=({expanded:e,hasSavedValues:n,proxyNote:s,proxyError:r})=>({collapsedSummaryMessages:!e&&n&&(s||r)?t.jsxs(g,{mt:"16px",children:[s,r]}):null,expandedDetailsMessages:e&&(s||r)?t.jsxs(g,{mb:"16px",children:[s,r]}):null}),$L=({expanded:e,savedValues:n,previewValues:s,values:r,collapsedSummaryMessages:a,onRemove:i,onSetupClick:o})=>t.jsxs(g,{width:"100%",px:n?"0":void 0,children:[t.jsxs(g,{display:"flex",alignItems:"center",justifyContent:"space-between",gap:"12px",children:[t.jsx(S,{medium:!0,fontSize:"16px",lineHeight:"24px",color:"#000E33",children:"Proxy Setting"}),t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",children:[n&&t.jsx(k,{type:"button",variant:"warning-transparent",scale:"s",onClick:i,children:"Remove"}),t.jsx(k,{type:"button",variant:"secondary",scale:"s",onClick:o,children:DL(e,!!n)})]})]}),n&&t.jsxs(g,{sx:{maxHeight:e?0:"2000px",opacity:e?0:1,overflow:"hidden",transition:"max-height 220ms ease, opacity 180ms ease"},children:[t.jsx(n3,{values:s,valueColor:"#1B8D2D",name:r.name,mt:"16px"}),a]})]}),GL=({previewValues:e,values:n,effectiveErrors:s,isSubmitted:r,hasFilledRequiredFields:a,hasErrors:i,expandedDetailsMessages:o,isFormSaving:l,isUpdateModalOpen:u,onFieldChange:d,onCancel:p,onSave:h})=>t.jsxs(t.Fragment,{children:[t.jsx(S,{color:"greyBlue.60",mb:"16px",children:"Builds the URL as you type"}),t.jsx(n3,{values:e,valueColor:a&&!i?"#1B8D2D":"#040207",name:n.name,mb:"16px"}),t.jsx(HL,{values:n,effectiveErrors:s,isSubmitted:r,onFieldChange:d}),o,t.jsx(Ue,{my:"16px",mx:"-16px"}),t.jsxs(g,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[t.jsx(k,{scale:"s",type:"button",variant:"secondary",onClick:p,children:"Cancel"}),t.jsx(k,{scale:"s",type:"button",onClick:h,disabled:!a||l,processing:l&&!u,children:"Save"})]})]}),Rc=({customProxy:e,proxyErrorMessage:n})=>{const s=P(),[r,a]=c.useState(!1),[i,o]=c.useState(Br),[l,u]=c.useState(null),[d,p]=c.useState((e==null?void 0:e.id)??null),[h,m]=c.useState(!1),[f,C]=c.useState(!1),[E,b]=c.useState(!1),w=Ie=>{const _e=U1(Ie);p(Ie.id??null),u(_e),o(_e)},I=()=>{a(!1),m(!1)},T=()=>{s(Z({type:"error",message:"Proxy id is missing",autoCloseTime:3e3}))},{createProxy:j,updateProxy:L,removeProxy:_,isProxyDeleting:N,isProxyUpdating:A,isFormSaving:R}=dC({onCreateSuccess:Ie=>{w(Ie),I(),b(!1)},onUpdateSuccess:Ie=>{w(Ie),I(),b(!1)},onDeleteSuccess:()=>{p(null),u(null),o(Br),I(),C(!1)}}),V=!!l&&!i.password.trim(),O=c.useMemo(()=>em(i,{requirePassword:!V}),[i,V]),B=Object.keys(O).length>0,D=!!i.userName.trim()&&(!!i.password.trim()||V)&&!!i.domain.trim()&&!!i.port,M=tm(i,A5,{hasStoredPassword:V}),F=(Ie,_e)=>{o(Ke=>({...Ke,[Ie]:_e}))};c.useEffect(()=>{const Ie=e?U1(e):Br;p((e==null?void 0:e.id)??null),u(e?Ie:null),r||o(Ie)},[e,r]);const W=(Ie,_e)=>{a(_e)},ne=Ie=>{Ie.stopPropagation(),a(_e=>!_e)},$=()=>{a(!1),m(!1),o(l||Br)},z=()=>{m(!0),UL({hasErrors:B,savedValues:l,values:i,savedProxyId:d,createProxy:j,updateProxy:L,showMissingProxyIdToast:T,onCloseWithoutChanges:()=>{a(!1),m(!1)},onOpenUpdateModal:()=>b(!0)})},K=Ie=>{Ie.stopPropagation(),C(!0)},re=()=>{C(!1)},ae=()=>{b(!1)}
71,pe=()=>{if(!d){T();return}_(d)},ie=()=>{BL({savedValues:l,values:i,savedProxyId:d,updateProxy:L,showMissingProxyIdToast:T,onNoChanges:()=>{b(!1),I()}})},ke=r||!!l?t.jsx(He,{type:"info",message:VL,wrapperProps:{mb:n?"16px":0}}):null,Oe=n?t.jsx(He,{type:"error",message:n}):null,{collapsedSummaryMessages:Be,expandedDetailsMessages:De}=FL({expanded:r,hasSavedValues:!!l,proxyNote:ke,proxyError:Oe});return t.jsxs(t.Fragment,{children:[t.jsxs(Ot,{expanded:r,onChange:W,radius:"9px",children:[t.jsx(Dt,{component:"div",summaryRadius:"9px",expandedTopRadius:"9px",height:l?"auto":void 0,sx:{...l&&{minHeight:"unset !important",alignItems:"flex-start",".MuiAccordionSummary-content":{alignItems:"flex-start"},background:"#F7F7F9",p:"16px"}},children:t.jsx($L,{expanded:r,savedValues:l,previewValues:M,values:i,collapsedSummaryMessages:Be,onRemove:K,onSetupClick:ne})}),t.jsx(un,{children:t.jsx(GL,{previewValues:M,values:i,effectiveErrors:O,isSubmitted:h,hasFilledRequiredFields:D,hasErrors:B,expandedDetailsMessages:De,isFormSaving:R,isUpdateModalOpen:E,onFieldChange:F,onCancel:$,onSave:z})})]}),t.jsx(Pc,{open:f,onClose:re,onConfirm:pe,confirmButtonProcessing:N}),t.jsx(Pc,{open:E,onClose:ae,onConfirm:ie,mode:"update",confirmButtonProcessing:A})]})},zL=()=>{var E;const{companyName:e}=Fe(),{cloudBotStatus:n,selectedContractId:s}=fe(b=>b.user.profile),[r,a]=c.useState(s||""),[i,o]=c.useState(""),{setUserContractId:l,isLoading:u,isError:d,isSuccess:p,error:h}=d7(),m=b=>{const w=b;o(""),a((w==null?void 0:w.value)||null)},f=c.useMemo(()=>{var b;return(b=n==null?void 0:n.contracts)==null?void 0:b.find(w=>w.contractId===r)},[r]),C=()=>{if(!r||s===r){o("Please change contract before save");return}r&&l(r)};return t.jsxs(t.Fragment,{children:[t.jsx(Ue,{my:"16px"}),t.jsx(S,{semibold:!0,fontSize:"16px",lineHeight:"24px",color:"greyNeutral.100",mb:"8px",children:"Choose sales navigator contract"}),t.jsxs(S,{color:"greyBlue.60",mb:"8px",fontSize:"12px",lineHeight:"16px",children:[e," will use this selected contract to perform sales navigator searches, fetch lead lists and fetch saved searches."]}),t.jsx(He,{type:"info",message:t.jsxs(t.Fragment,{children:[t.jsx(S,{fontSize:"12px",lineHeight:"16px",semibold:!0,inline:!0,component:"span",children:"Note:"})," ",e," will take some time to update lists according to new contract"]})}),t.jsx(g,{my:"12px",children:t.jsx(Xe,{placeholder:"Select contract",value:f&&{value:f.contractId,label:f.name},onChange:m,options:(E=n==null?void 0:n.contracts)==null?void 0:E.map(b=>({value:b.contractId,label:b.name}))})}),t.jsx(k,{scale:"s",onClick:C,processing:u,children:"Save contract"}),p&&!i&&t.jsx(S,{fontSize:"14px",color:"additional.success",mt:"12px",children:"Contract updated successfully"}),(i||d)&&t.jsx(S,{fontSize:"14px",color:"additional.red50",mt:"12px",children:i||(h==null?void 0:h.message)||"Something went wrong. Please try later."})]})},WL=({isLoadingUpdateCredentials:e,isLoadingDeleteCredentials:n,tryAgain:s,tryDelete:r})=>{const{companyName:a}=Fe(),i=e||n;return t.jsxs(t.Fragment,{children:[t.jsx(Bl,{tryDelete:r,isLoading:i}),t.jsx(He,{type:"error",wrapperProps:{mt:"24px"},message:`Security process for account wasn't finished yet. If you have changed your LinkedIn credentials, please click "Remove Account" button and start process again.`}),i&&t.jsx(He,{type:"success",noIcon:!0,wrapperProps:{mt:"24px",pb:"12px"},messageProps:{mb:"8px",color:"greyBlue.100",medium:!0},message:e&&"Almost there! We’re connecting your account for a seamless experience. This may take a couple of minutes."||n&&`${a} is removing your LinkedIn account. May take a few minutes.`,noDivider:!0,bottomContent:t.jsx(qa,{})}),!i&&t.jsxs(t.Fragment,{children:[t.jsx(Ue,{mx:"-16px",my:"16px"}),t.jsx(k,{scale:"s",type:"submit","data-testid":"button",disabled:i,onClick:s,children:"Try to Reconnect"})]})]})},qL=({isLoadingVerifyCode:e,isLoadingDeleteCredentials:n,register:s,tryVerify:r,tryDelete:a,verificationCodeError:i})=>{const{companyName:o}=Fe(),l=e||n;return t.jsxs(t.Fragment,{children:[t.jsx(Bl,{tryDelete:a,isLoading:l}),t.jsx(S,{semibold:!0,fontSize:"16px",lineHeight:"24px",color:"greyNeutral.100",my:"16px",children:"Security Code"}),t.jsx(S,{color:"greyNeutral.100",mb:"4px",children:"Please insert the 6 digit code verification code."}),t.jsx(S,{color:"blue.primary",mb:"8px",children:"Check your email or phone for the security code sent by LinkedIn."}),t.jsx(g,{width:"50%",children:t.jsx(Ce,{label:"Verification Code",type:"text",placeholder:"Verification Code","data-testid":"verification-code-field",register:s,name:"verificationCode",parameters:{required:!0,minLength:{value:6,message:"Please make sure you enter a 6 digit code."},maxLength:{value:6,message:"Please make sure you enter a 6 digit code."}}})}),i?t.jsx(He,{wrapperProps:{mt:"24px"},type:"error",message:i}):t.jsx(He,{wrapperProps:{mt:"24px"},message:"Haven’t received verification code yet? Please wait a few more minutes and/or double check your spam folder."}),l&&t.jsx(He,{type:"success",noIcon:!0,wrapperProps:{mt:"24px",pb:"12px"},messageProps:{mb:"8px",color:"greyBlue.100",medium:!0},message:e&&"Almost there! We’re connecting your account for a seamless experience. This may take a couple of minutes."||n&&`${o} is removing your LinkedIn account. May take a few minutes.`,noDivider:!0,bottomContent:t.jsx(qa,{})}),!l&&t.jsxs(t.Fragment,{children:[t.jsx(Ue,{mx:"-16px",my:"16px"}),t.jsx(k,{scale:"s",type:"submit","data-testid":"button",disabled:l,onClick:r,children:"Verify code"})]})]})},Mc=Object.entries(E2()).map(([e,n])=>({value:e,label:n==null?void 0:n.name})).filter(({value:e})=>!["CN"].includes(e)).sort((e,n)=>e.label.localeCompare(n.label)),ZL=({removeContainer:e=!1})=>{const{country:n,linkedInEmail:s,isLi2FAActive:r,isLinkedinActive:a,isLinkedInLoginBeingVerified:i}=fe(ae=>{var pe;return(pe=ae==null?void 0:ae.user)==null?void 0:pe.profile}),{register:o,control:l,formState:{errors:u,isValid:d},setValue:p,handleSubmit:h,getValues:m}=lt({defaultValues:{email:s||"",password:"",countryCode:Mc.find(({value:ae})=>ae===n),verificationCode:""}}),{isShowTryAgainBlock:f,isShowVerificationBlock:C,isContractShown:E,isLinkedInConnected:b,isLinkedInConnectedSuccessfully:w,isLinkedInRestrictionWarningDetected:I,errorMessage:T,proxyConnectionErrorMessage:j,trySubmit:L,tryVerify:_,tryDelete:N,tryAgain:A,tryLIManualAgain:R,checkConnection:V,isCheckLoading:O,isLoadingUpdateCredentials:B,isLoadingVerifyCode:D,isLoadingDeleteCredentials:M,isPollingCloudBotStatus:F}=oC({setValue:p,getValues:m}),{realImpersonateUser:W}=pn(),[ne]=Bn(Cn.customProxy),{data:$}=hx({enabled:ne}),z=!!$&&$.source!=="managed",K=!!j&&z,re=()=>{var ae;return C?t.jsx(qL,{tryDelete:N,isLoadingVerifyCode:D,isLoadingDeleteCredentials:M,register:o,tryVerify:h(_),verificationCodeError:T||((ae=u.verificationCode)==null?void 0:ae.message)}):f?t.jsx(WL,{tryAgain:A,tryDelete:N,isLoadingUpdateCredentials:B,isLoadingDeleteCredentials:M}):b?t.jsx(kL,{is2FAActive:!!r,isLoadingUpdateCredentials:B,isLoadingDeleteCredentials:M,errorMessage:T,isConnectedSuccessfully:w,isLinkedInRestrictionWarningDetected:I,tr
71yDelete:N,tryAgain:A,hasCustomProxy:z,hideErrorBlock:K}):t.jsx(RL,{control:l,countries:Mc,errors:u,isLinkedinActive:a,isLoading:B||F,register:o,trySubmit:h(()=>L(z)),errorMessage:T,isConnectDisabled:!d,hasCustomProxy:z})};return t.jsxs(t.Fragment,{children:[t.jsxs(Ts,{children:[!e&&t.jsxs(t.Fragment,{children:[t.jsxs(g,{display:"flex",alignItems:"flex-start",justifyContent:"space-between",children:[t.jsx(Za,{mb:"8px",children:t.jsx(IL,{color:"#0072B1",width:"44px",height:"44px"})}),w&&t.jsx(Pt,{bgColor:"#ebf8f1",color:"#1b8d2d",tag:"Connected"}),b&&!w&&!C&&t.jsx(Pt,{bgColor:"#fce9e8",color:"#d3241d",tag:"Broken"})]}),t.jsx(Wa,{children:"LinkedIn"}),t.jsx(S,{mt:"4px",fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",children:"Connect LinkedIn to start automating actions. Your information is always secure."}),t.jsx(Ue,{mx:"-16px",my:"16px"}),ne&&t.jsxs(t.Fragment,{children:[t.jsx(Rc,{customProxy:z?$:null,proxyErrorMessage:K?j:""}),t.jsx(Ue,{mx:"-16px",my:"16px"})]})]}),e&&ne&&t.jsx(g,{mb:"16px",children:t.jsx(Rc,{customProxy:z?$:null,proxyErrorMessage:K?j:""})}),re(),(W==null?void 0:W.isAdminImpersonate)&&!i&&t.jsx(g,{mt:"30px",children:T||!w?t.jsx(oc,{processing:B||F,onClick:R,children:"Try LI Manual Login"}):t.jsx(oc,{onClick:()=>V(),processing:O,children:"Check LI Connection"})})]}),E&&t.jsx(zL,{})]})},YL=e=>c.createElement("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("rect",{width:40,height:40,rx:4,fill:"#121313"}),c.createElement("path",{d:"M9.51493 8.50293C9.1169 8.50293 8.87844 8.9454 9.0973 9.27786L16.824 21.015C16.9476 21.2028 16.9307 21.45 16.7826 21.6192L9.10981 30.3881C8.81213 30.7283 9.08289 31.2575 9.53296 31.2152L10.6728 31.1079C10.7967 31.0962 10.9117 31.0388 10.9955 30.9469L17.3085 24.0204C17.7317 23.5561 18.4733 23.5925 18.849 24.096L24.077 31.102C24.1714 31.2284 24.32 31.3029 24.4778 31.3029H30.4982C30.8981 31.3029 31.1362 30.8567 30.9135 30.5246L22.8709 18.525C22.7454 18.3377 22.7607 18.0896 22.9084 17.9192L30.0662 9.66025C30.3468 9.33646 30.1168 8.83278 29.6883 8.83278H28.4981C28.3609 8.83278 28.2297 8.88917 28.1353 8.98874L21.6697 15.8071C21.4524 16.0362 21.0798 16.009 20.898 15.7508L15.9447 8.7151C15.8511 8.58208 15.6986 8.50293 15.5359 8.50293H9.51493ZM11.4023 10.4858C11.1747 10.154 11.4122 9.70293 11.8146 9.70293H14.9004C15.0652 9.70293 15.2194 9.78417 15.3127 9.9201L28.6201 29.3201C28.8477 29.6519 28.6101 30.1029 28.2078 30.1029H25.122C24.9572 30.1029 24.8029 30.0217 24.7097 29.8858L11.4023 10.4858Z",fill:"white"})),KL=y(k,{target:"e1r3nic94"})("position:relative;width:auto;height:auto;border-radius:6px;padding:10px 12px;color:",({theme:e})=>e.palette.greyNeutral[100],";font-weight:600;border:1px solid ",({theme:e})=>e.palette.greyNeutral[30],";&:disabled{opacity:0.9;border-color:transparent;cursor:default;}"),QL=y("form",{target:"e1r3nic93"})({name:"ttlqdn",styles:"display:flex;align-items:center;margin-top:8px"}),XL=y(Ce,{target:"e1r3nic92"})({name:"118c42c",styles:"margin:0 10px 0 0;width:100%"}),JL=y("div",{target:"e1r3nic91"})("background-color:",({theme:e})=>e.palette.light.light,";padding:10px;border-radius:10px;display:flex;align-items:center;margin-top:20px;span{font-size:14px;}"),ew=y("img",{target:"e1r3nic90"})({name:"1x3u51g",styles:"border-radius:50%;margin-right:10px"}),tw=()=>{const e=P(),[n,s]=c.useState(null),[r,a]=c.useState(!1),{register:i,handleSubmit:o,setValue:l}=lt(),{isFetching:u}=Tx({onSuccess:L=>s(L)}),{checkFeature:d}=We(),[p,h]=d(X.integrations),{getTwitterAuthUrl:m,isLoading:f}=mx(),{verifyTwitterAuth:C,isLoading:E}=jx(),{logoutFromTwitter:b,isLoading:w}=gx({onSuccess:()=>s(null)}),I=()=>{m({},{onSuccess:()=>{l("pin",""),a(!0)}})},T=L=>{C(L.pin),a(!1)},j=()=>{e(Ne({headerText:"Are you sure you want to remove X (Twitter) credentials ?",descriptionText:"This means that your X (Twitter) Campaigns stop to working.",onConfirm:b}))};return u?t.jsx(g,{textAlign:"center",mt:"20px",children:t.jsx(Pe,{marginTop:"0"})}):t.jsxs(Ts,{children:[t.jsxs(g,{display:"flex",alignItems:"flex-start",justifyContent:"space-between",children:[t.jsx(Za,{mb:"8px",children:t.jsx(YL,{})}),n&&t.jsx(Pt,{bgColor:"#ebf8f1",color:"#1b8d2d",tag:"Connected"})]}),t.jsx(Wa,{children:n?"X (Twitter) authorized":"Authorize X (Twitter)"}),n?t.jsxs(t.Fragment,{children:[t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",children:"Connect your X (Twitter) account to automate follows and DMs."}),t.jsx(Ue,{mx:"-16px",my:"16px"}
71),t.jsxs(JL,{children:[t.jsx(ew,{src:n.imageUrl}),t.jsxs(g,{display:"flex",flexDirection:"column",justifyContent:"space-around",mr:"auto",children:[t.jsx(S,{semibold:!0,children:n.name}),t.jsxs("span",{children:["@",n.username]})]}),t.jsx(k,{variant:"warning-secondary",disabled:w,onClick:j,children:"Logout from X (Twitter)"})]})]}):t.jsxs(t.Fragment,{children:[t.jsx(S,{mt:"4px",fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",children:"To follow connections and send Direct messages in X (Twitter), we need you to authenticate X (Twitter)."}),t.jsx(Ue,{mx:"-16px",my:"16px"}),t.jsx(He,{type:"info",message:t.jsxs(t.Fragment,{children:[t.jsx(S,{fontSize:"12px",lineHeight:"16px",semibold:!0,inline:!0,component:"span",children:"Note:"})," ","When you click the below button, you'll be see a window to login to X (Twitter)"]})}),t.jsx(S,{my:"12px",fontSize:"12px",lineHeight:"16px",children:"After successful login, you will see a 7 digit code on the screen which you need to enter in below text box."}),t.jsx(g,{display:"inline-block",children:t.jsx(KL,{onClick:I,disabled:f||!p,tooltip:{title:h},leftIcon:t.jsx(fu,{width:"20px",height:"20px"}),children:"Sign in with X (Twitter)"})}),r&&t.jsxs(QL,{onSubmit:o(T),children:[t.jsx(XL,{register:i,name:"pin",parameters:{required:"Please enter a pin",minLength:{value:7,message:"Pin must 7 characters long"},pattern:{value:U5,message:"Please enter only numbers"}},placeholder:"Enter pin here"}),t.jsx(k,{disabled:E,type:"submit",children:"Validate"})]})]})]})},nw=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_1099_9028)"},c.createElement("path",{d:"M7.49984 12.4999C7.3652 12.5001 7.22637 12.5001 7.08317 12.5001C4.73611 12.5001 3.56258 12.5001 2.76466 11.8638C2.59391 11.7276 2.439 11.5727 2.30283 11.4019C1.6665 10.604 1.6665 9.43047 1.6665 7.08341C1.6665 4.73636 1.6665 3.56283 2.30283 2.7649C2.439 2.59415 2.59391 2.43924 2.76466 2.30307C3.56258 1.66675 4.73611 1.66675 7.08317 1.66675C9.43023 1.66675 10.6038 1.66675 11.4017 2.30307C11.5724 2.43924 11.7273 2.59415 11.8635 2.7649C12.4998 3.56283 12.4998 4.73636 12.4998 7.08341C12.4998 7.22661 12.4998 7.36544 12.4997 7.50008",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),c.createElement("path",{d:"M7.5 12.4999C7.50222 10.4277 7.53868 9.34725 8.13618 8.59801C8.27235 8.42726 8.42726 8.27235 8.59801 8.13618C9.34725 7.53868 10.4277 7.50222 12.4999 7.5",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),c.createElement("path",{d:"M18.3333 12.0833V13.75M13.75 18.3333H12.0833M18.3333 10C18.2788 9.26637 18.1485 8.77073 17.8373 8.38158C17.7227 8.23833 17.5924 8.10836 17.4487 7.99412C17.0598 7.68484 16.5649 7.55473 15.8333 7.5H15.4167M18.3333 15.8333C18.2786 16.5649 18.1485 17.0598 17.8392 17.4487C17.725 17.5924 17.595 17.7227 17.4518 17.8373C17.0626 18.1485 16.567 18.2788 15.8333 18.3333M10 18.3333C9.26847 18.2786 8.77351 18.1485 8.38461 17.8392C8.24095 17.725 8.11062 17.595 7.99606 17.4518C7.68485 17.0626 7.55455 16.567 7.5 15.8333L7.5 15.4167",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_1099_9028"},c.createElement("rect",{width:20,height:20,fill:"white"})))),sw=y(Qu,{target:"ed71kec0"})({name:"18nau6l",styles:"position:absolute;bottom:25px;right:210px"}),rw=({params:{integrationType:e="email",customLinkedInHeader:n}})=>{const s=P(),r=()=>s(Q()),a=()=>e==="linkedIn"&&n?t.jsx(Ku,{children:t.jsxs(g,{children:[t.jsx(S,{color:"#ffffff",fontSize:"44px",textAlign:"center",children:"Like what you see?"}),t.jsx(S,{color:"#ffffff",fontSize:"26px",textAlign:"center",children:"Connect your LinkedIn to generate millions of leads!"}),t.jsx(sw,{})]})}):t.jsxs(et,{onClose:r,children:[In(e)," Connection"]}),i=()=>{switch(e){case"email":return t.jsx(gL,{redirectTo:"/walkthrough"});case"facebook":return t.jsx(vL,{});case"twitter":return t.jsx(tw,{});case"linkedIn":return t.jsxs(t.Fragment,{children:[n&&t.jsx(He,{noBorder:!0,noPadding:!0,wrapperProps:{mt:"10px",px:"20px",bgcolor:"transparent"},messageProps:{color:"gray.600",fontSize:"15px"},message:t.jsxs(t.Fragment,{children:["The campaign you’re seeing is just a sample — nothing is live yet.",t.jsx("br",{}),"Once you’re ready, you can activate it from the “paused” tab by toggling it on."]})}),t.jsx(ZL,{removeContainer:!0})]});default:return t.jsx(t.Fragment,{})}};return t.jsxs(g,{children:[a(),t.jsx(he,{children:i()})]})},aw=y(k,{target:"e23wj2v1"})({name:"1dm7wa4",styles:"&:hover,&:active,&:focus{background:transparent!important;border-color:transparent!important;}"}),iw=y(g,{shouldForwardProp:e=>e!=="isOpening"&&e!=="isClosing",target:"e23wj2v0"})("width:480px;max-width:100%;border-radius:12px;background-color:#ffffff;overflow:hidden;opacity:",({isOpening:e,isClosing:n})=>e||n?0:1,";transition:opacity ",an,"ms ",gn,";@media (prefers-reduced-motion: reduce){transition:none;}"),Pc=({open:e,onClose:n,onConfirm:s,mode:r="remove",confirmButtonProcessing:a=!1})=>{const[i,o]=c.useState(!0),[l,u]=c.useState(!1);c.useEffect(()=>{if(!e)return;o(!0),u(!1);const b=requestAnimationFrame(()=>o(!1));return()=>cancelAnimationFrame(b)},[e]);const d=b=>{u(!0),setTimeout(()=>{u(!1),b()},yr)},p=()=>d(n),h=()=>d(s),m=r==="update",f=m?"Update Proxy Settings":"Remove Proxy Settings",C=m?"Are you sure you want to update proxy settings?":"Are you sure you want to remove proxy settings?",E=m?"Your LinkedIn connection will use the previous proxy until you reconnect.":"Your LinkedIn connection will use the removed proxy until you reconnect. Once reconnected, a new system proxy will be assigned automatically.";return t.jsx(J6,{open:e,onClose:p,closeAfterTransition:!0,slotProps:{backdrop:{sx:{backgroundColor:"rgba(0, 0, 0, 0.5)",opacity:i||l?0:1,transition:`opacity ${an}ms ${gn}`}}},children:t.jsx(g,{sx:{height:"100%",display:"flex",alignItems:"center",justifyContent:"center",px:2},onClick:p,children:t.jsxs(iw,{isOpening:i,isClosing:l,onClick:b=>b.stopPropagation(),children:[t.jsxs(g,{sx:{padding:"16px 24px",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[t.jsx(S,{color:"#000E33",fontSize:"20px",lineHeight:"26px",children:f}
71),t.jsx(aw,{scale:"s",variant:"transparent",noPadding:!0,onClick:p,children:t.jsx(Xt,{color:"#121313"})})]}),t.jsx(Ue,{}),t.jsxs(g,{sx:{padding:"24px",display:"flex",flexDirection:"column",gap:"8px"},children:[t.jsx(S,{color:"#22252C",fontSize:"14px",lineHeight:"20px",children:C}),t.jsx(He,{type:"info",message:t.jsxs(t.Fragment,{children:[t.jsx(S,{inline:!0,semibold:!0,children:"Note:"})," ",E]})})]}),t.jsx(Ue,{}),t.jsxs(ge,{children:[t.jsx(k,{onClick:p,children:"Cancel"}),t.jsx(k,{variant:"warning",onClick:h,processing:a,children:m?"Update":"Remove"})]})]})})})},Hl=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.27126 4.00796C7.09398 2.83068 5.18524 2.83068 4.00796 4.00796C2.83068 5.18524 2.83068 7.09398 4.00796 8.27126L5.29476 9.55806C5.53883 9.80214 5.53883 10.1979 5.29476 10.4419C5.05068 10.686 4.65495 10.686 4.41087 10.4419L3.12408 9.15514C1.45864 7.48971 1.45864 4.78951 3.12408 3.12408C4.78951 1.45864 7.48971 1.45864 9.15514 3.12408L16.8759 10.8449C18.5414 12.5103 18.5414 15.2105 16.8759 16.8759C15.2105 18.5414 12.5103 18.5414 10.8449 16.8759L7.94956 13.9806C6.81714 12.8482 6.81714 11.0122 7.94956 9.87976C9.08199 8.74733 10.918 8.74733 12.0504 9.87976L13.6589 11.4883C13.903 11.7323 13.903 12.1281 13.6589 12.3721C13.4149 12.6162 13.0191 12.6162 12.775 12.3721L11.1666 10.7636C10.5223 10.1194 9.47772 10.1194 8.83345 10.7636C8.18918 11.4079 8.18918 12.4525 8.83345 13.0967L11.7287 15.992C12.906 17.1693 14.8148 17.1693 15.992 15.992C17.1693 14.8148 17.1693 12.906 15.992 11.7287L8.27126 4.00796Z",fill:"currentColor"})),ow=1,lw=()=>{const e=P(),[n,s]=c.useState(""),[r,a]=c.useState([]),[i,o]=c.useState(!1),l=c.useRef(null),{signature:u,isFetching:d}=r7(),{updateUserSignature:p,isLoading:h}=h7();c.useEffect(()=>{s((u==null?void 0:u.emailSignature)||""),a((u==null?void 0:u.emailAttachments)||[]),o(!!(u!=null&&u.isExcludedSignatureDash))},[u]);const m=()=>{var E;return(E=l.current)==null?void 0:E.click()},f=()=>{var w;const E=(((w=l==null?void 0:l.current)==null?void 0:w.files)??[])[0],b=(I,T)=>e(Z({type:I,message:T,autoCloseTime:3e3}));return r.length>=ow?b("info","You can only add one image!"):(b("info","Uploading start"),Q2({file:E,onSuccess(I){a(T=>[...T,I]),b("success","File has been added")},onUrlError(){b("error","Uploading failed! Please contact support!")},onUploadError(){b("error","Couldn't upload the file!")}}))},C=()=>{const E=$0(n);p({emailSignature:E,emailAttachments:r,isExcludedSignatureDash:i}),e(Q())};return d?t.jsx(g,{display:"flex",justifyContent:"center",alignItems:"center",height:"200px",children:t.jsx(Pe,{marginTop:"0"})}):t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(wu,{value:n,onChange:s,editorProps:{buttonList:[["undo","redo"],["list"],["underline","italic","bold"]]},control:t.jsx(t.Fragment,{children:t.jsx(k,{scale:"s",variant:"secondary",onClick:m,leftIcon:t.jsx(Hl,{}),iconOnly:!0})})}),t.jsx(Al,{ref:l,type:"file",accept:"image/gif,image/jpeg,image/jpg,image/png,image/bmp,image/webp",onChange:f}),!!r.length&&t.jsx(g,{display:"flex",flexWrap:"wrap",gap:"8px",mt:"8px",children:r.map(E=>t.jsx(os,{name:E.file_name,fileId:E.file_uri,onDeleteClick:()=>a([]),margin:"0px"},E.file_uri))}),t.jsx(g,{mt:"16px",children:t.jsx(we,{title:t.jsxs(g,{textAlign:"left",children:["This option will add separator which includes two dashes and new-line. For example:",t.jsx("br",{})," Email text",t.jsx("br",{})," --",t.jsx("br",{})," Signature"]}),children:t.jsxs(g,{display:"inline-flex",alignItems:"center",children:[t.jsx($e,{type:"checkbox",checked:!i,onChange:()=>o(E=>!E)}),t.jsx(S,{ml:"8px",children:"Add separator"})]})})})]}),t.jsx(ge,{alignToTheEnd:!0,children:t.jsx(k,{disabled:h,onClick:C,children:"Update"})})]})},Ta=({price:e,newPrice:n,currency:s,size:r="20px",isLoading:a,label:i,singleLine:o=!1,displayPromoStyles:l=!1})=>a?t.jsx(Pe,{type:"dots",width:"22px",height:r}):t.jsxs(g,{children:[!o&&t.jsxs(g,{mb:"8px",display:"flex",height:"24px",children:[!!n&&t.jsxs(S,{lineHeight:"24px",height:"24px",medium:!0,fontSize:"24px",color:"#c8c8d0",style:{textDecoration:"line-through"},children:[ur(s),St(e,{minimumFractionDigits:0})]}),i&&t.jsx(Pt,{bgColor:"success.50",wrapperProps:{ml:"auto"},borderColor:"success.150",sharp:!0,children:t.jsx(S,{color:"success.550",medium:!0,fontSize:"12px",lineHeight:"16px",children:i})})]}),t.jsxs(S,{display:"inline-block",lineHeight:r,height:r,bold:!0,fontSize:r,...l?{color:"#ffffff"}:{},children:[ur(s),St(n||e,{minimumFractionDigits:0}),"/"]}),t.jsx(S,{display:"inline-block",fontSize:r,lineHeight:r,inline:!0,...l?{color:"#ffffff"}:{},children:"mo"})]}),kr=y(g,{target:"e1l0bdw94"})({name:"1a2rrrr",styles:"background-color:#ffffff;border-radius:12px;padding:24px;min-height:100%;overflow-y:auto;box-sizing:border-box"}),aV=y(g,{target:"e1l0bdw92"})("display:inline-flex;align-items:center;padding:2px;border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:8px;background-color:",({theme:e})=>e.palette.bg.greyBlue,";"),iV=y(g,{target:"e1l0bdw91"})("padding:8px 25px;border-radius:6px;box-sizing:border-box;position:relative;cursor:pointer;color:",({theme:e,chosen:n})=>n==="true"?e.palette.greyNeutral[100]:e.palette.greyBlue[60],";background-color:",({chosen:e})=>
71e==="true"?"#ffffff":"transparent",";box-shadow:",({chosen:e})=>e==="true"?"0 0 2px 0 #0000001f, 0 2px 5px 0 #00000017;":"none",";transition:0.2s;p:last-of-type:not(:first-of-type){font-weight:",({chosen:e})=>e==="true"?600:300,";}"),oV=y(S,{target:"e1l0bdw90"})("color:",({theme:e,percentageColor:n})=>n||e.palette.blue.primary,";font-size:12px;line-height:14.5px;position:absolute;top:0;right:4px;"),cw=y(g,{target:"exbv0b52"})("display:flex;align-items:center;justify-content:flex-end;height:44px;border-radius:8px;box-sizing:border-box;border:1px solid ",({theme:e})=>e.palette.greyNeutral[20],";width:100%;"),s3=y(g,{target:"exbv0b51"})("display:flex;align-items:center;justify-content:center;cursor:pointer;width:52px;border-left:1px solid ",({theme:e})=>e.palette.greyNeutral[20],";height:100%;&.disabled{cursor:default;}"),dw=y(s3,{target:"exbv0b50"})({name:"1717xqz",styles:"border-right:none;border-radius:0"}),uw=({page:e=1,onPaginationChange:n,hasMore:s=!1})=>{const{palette:r}=Ve(),a=l=>{typeof n=="function"&&n({page:l,perPage:Mt})},i=e===1,o=!s;return t.jsxs(cw,{children:[t.jsx(dw,{onClick:()=>!i&&a(e-1),"aria-label":"Go to next page",role:"button",className:Ee({disabled:i}),children:t.jsx(ws,{style:{transform:"rotate(180deg)"},color:i?r.greyNeutral[40]:r.greyNeutral[100]})}),t.jsx(s3,{onClick:()=>!o&&a(e+1),"aria-label":"Go to previous page",role:"button",className:Ee({disabled:o}),children:t.jsx(ws,{color:o?r.greyNeutral[40]:r.greyNeutral[100]})})]})},Ri=5,Ya=({onSuccess:e})=>{const{palette:n}=Ve(),[s,r]=c.useState(Ea),{data:a=[],isLoading:i}=m7({onSuccess:p=>{e==null||e(p,Ea)},refetchOnMount:!0}),o=a.slice((s-1)*Ri,s*Ri),l=s*Ri<a.length,u=({page:p})=>{r(p)},d=p=>{switch(p){case da.PAID:return t.jsx(Pt,{bgColor:"#EBF8F1",children:t.jsx(S,{color:"#1B8D2D",lineHeight:"15px",children:"Paid"})});case da.OPEN:return t.jsx(Pt,{bgColor:n.blueLight[50],children:t.jsx(S,{color:n.blueLight[700],lineHeight:"15px",children:"Open"})});case da.UNCOLLECTIBLE:return t.jsx(Pt,{bgColor:n.error[100],children:t.jsx(S,{color:n.error[600],lineHeight:"15px",children:"Failed"})});default:return t.jsx(Pt,{bgColor:`${n.gray[50]}80`,children:t.jsx(S,{color:"gray.600",lineHeight:"15px",children:In(String(p))})})}};return t.jsx(kr,{display:"flex",flexDirection:"column",alignItems:"center",children:t.jsxs(Ot,{expanded:!0,sx:{width:"754px"},children:[t.jsx(Dt,{children:"Billing History"}),t.jsx(un,{children:t.jsxs(vr,{processing:i,children:[t.jsx(_r,{children:t.jsxs(dn,{children:[t.jsx(Qe,{children:"Invoice ID"}),t.jsx(Qe,{children:"Date "}),t.jsx(Qe,{children:"Amount"}),t.jsx(Qe,{children:"Status"})]})}),t.jsx(Ir,{placeholder:!a.length&&"No billings yet",children:o.map(({invoice_id:p,date:h,currency:m,hosted_invoice_url:f,amount:C,status:E})=>t.jsxs(dn,{children:[t.jsx(ze,{children:t.jsx(je,{external:!0,openNewTab:!0,to:f,children:p})}),t.jsx(ze,{children:se.unix(h).format("MMM DD, YYYY")}),t.jsx(ze,{children:t.jsxs(t.Fragment,{children:[ur(m),C/100]})}),t.jsx(ze,{sx:{padding:"18px 16px !important"},children:d(E)})]},p))})]})}),t.jsx(w2,{children:t.jsx(uw,{page:s,onPaginationChange:u,hasMore:l})})]})})},pw=({params:{preOpenFirstOpenedInvoice:e=!1}})=>{const n=P(),{companyName:s}=Fe(),[r,a]=c.useState(e),i=()=>n(Q()),o=(l,u)=>{if(u===1&&e){const d=[...l].shift();(d==null?void 0:d.status)===da.OPEN&&as(2e3,()=>{window.open(d.hosted_invoice_url,"_blank","noopener,noreferrer"),a(!1)})}};return t.jsxs(t.Fragment,{children:[t.jsx(et,{onClose:i,children:"Billing history"}),r&&t.jsxs(he,{display:"flex",alignItems:"center",children:[t.jsx(Pe,{type:"dots",mr:"10px"}),t.jsxs(S,{children:[s," is opening the pending invoice in a new tab."]})]}),t.jsx(he,{display:r?"none":"block",padding:"0",children:t.jsx(Ya,{onSuccess:o})}),t.jsx(ge,{children:t.jsx(k,{onClick:i,children:"Close"})})]})},hw=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("rect",{y:.5,width:24,height:24,rx:6,fill:"#EFF3FF"}),c.createElement("path",{d:"M6.75 14.375C6.75 14.375 7.875 14.375 9.375 17C9.375 17 13.5441 10.125 17.25 8.75",stroke:"#1B4ED2",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),mw=y(Qu,{target:"e131v3882"})({name:"1mh9m8a",styles:"position:absolute;bottom:20px;right:115px"}),gw=y(S,{target:"e131v3881"})("position:absolute;bottom:50px;right:130px;font-family:'Kalam',sans-serif;color:",({theme:e})=>e.palette.blue.medium,";font-size:18px;"),xw=["LinkedIn Automation","Smart Inbox","CRM","Templates","Message Personalization","Automated Greetings"],fw=y(g,{target:"e131v3880"})("border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:12px;padding:20px;
71"),Cw=({discount:e,cancelParams:n})=>{const s=P(),{closeCancelModal:r}=wr(),a=()=>s(Q()),{cancelSubscription:i,isCancelLoading:o}=W0({onSuccess:()=>{a(),s(Ne({type:Y.SUBSCRIPTION_CANCELED,size:"medium",closable:!1}))}}),{applyDiscount:l,isLoading:u}=Kg({onSuccess:()=>{a(),s(Ne({type:Y.CANCELLATION_DISCOUNT_APPLIED,size:"medium",params:{discount:e}}))}}),d=()=>{i(n)},p=()=>{l()};return t.jsxs(t.Fragment,{children:[t.jsxs(Ku,{onClose:r,children:[t.jsxs(S,{fontSize:"48px",lineHeight:"62.4px",bold:!0,children:["Want to save"," ",t.jsxs(S,{component:"span",fontFamily:"'Kalam', sans-serif",bold:!0,fontSize:"52px",lineHeight:"67.6px",color:"blue.medium",inline:!0,children:[e,"%"]})," ","off?"]}),t.jsx(mw,{}),t.jsx(gw,{children:"Best Offer"})]}),t.jsxs(he,{mt:"-38px",children:[t.jsx(S,{fontSize:"20px",lineHeight:"28px",mb:"8px",semibold:!0,px:"20px",children:"Stay with Us and Save!"}),t.jsxs(S,{color:"blue.medium",mb:"8px",semibold:!0,px:"20px",children:["Enjoy"," ",t.jsxs(S,{component:"span",fontFamily:"'Kalam', sans-serif",fontSize:"18px",color:"inherit",inline:!0,children:[e,"%"]})," ","off, starting with your next billing cycle,",t.jsx("br",{}),"for as long as you’re on your current plan."]}),t.jsxs(S,{color:"gray.600",fontSize:"12px",lineHeight:"16px",px:"20px",mb:"24px",children:["* Exclusive one-time discount just for you! ",t.jsx("br",{})," Applying this offer will replace any previous discounts."]}),t.jsxs(fw,{children:[t.jsx(S,{fontSize:"16px",lineHeight:"24px",mb:"12px",children:"Keep these key features:"}),t.jsx(g,{display:"grid",gridTemplateColumns:"1fr 1fr",rowGap:"10px",children:xw.map(h=>t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",color:"success.500",children:[t.jsx(hw,{})," ",t.jsx(S,{children:h})]},h))})]})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:d,processing:o,disabled:u,children:"No, Cancel Subscription"}),t.jsx(k,{onClick:p,disabled:o,processing:u,children:"I'll take the discount"})]})]})},yw=y(g,{target:"e961zuw3"})("border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";background-color:",({theme:e})=>e.palette.bg.greyBlue,";padding:16px;border-radius:12px;"),$t=y(g,{target:"e961zuw2"})({name:"rcj3va",styles:"display:flex;justify-content:space-between;align-items:center;margin-bottom:8px"}),Ut=y(S,{target:"e961zuw1"})("color:",({theme:e,color:n})=>n||e.palette.greyBlue[100],";font-size:16px;line-height:24px;font-weight:",({fontWeight:e})=>e||500,";"),Gt=y(S,{target:"e961zuw0"})("color:",({theme:e,color:n})=>n||e.palette.greyBlue[100],";font-size:16px;line-height:24px;font-weight:",({fontWeight:e})=>e||500,";"),Ew=e=>{var n;return!!(e!=null&&e.discount&&((n=e==null?void 0:e.total_discount_amounts)!=null&&n.length))},r3=({invoiceDetails:e,currency:n})=>{const s=c.useMemo(()=>ur(n),[n]),r=c.useMemo(()=>{var h,m,f,C;if(Ew(e)){const E=(m=(h=e==null?void 0:e.discount)==null?void 0:h.coupon)==null?void 0:m.percent_off,b=(C=(f=e==null?void 0:e.discount)==null?void 0:f.coupon)==null?void 0:C.amount_off,w=e.total_discount_amounts[0].amount;if(E)return{label:`${E}% off`,total:w};if(b)return{label:`${s} ${(b/100).toFixed(2)} off`,total:w}}return null},[s,e]),{referral:a,first:i,extra:o,users:l,prorata:u,remaining:d,graduated:p}=c.useMemo(()=>Ch(e),[e]);return t.jsxs(yw,{children:[t.jsx(S,{fontSize:"16px",lineHeight:"24px",mb:"16px",medium:!0,children:"Invoice details"}),i&&t.jsxs($t,{children:[t.jsx(Ut,{children:p?`First ${p} seats`:"First seat"}),t.jsxs(Gt,{children:[s,St(i.total)]})]}),o&&o.quantity>0&&t.jsxs($t,{children:[t.jsxs(Ut,{children:["Extra seat",o.quantity>1&&"s"," ",o.quantity>1&&t.jsxs("span",{children:[s,St(o.price)," × ",o.quantity]})]}),t.jsxs(Gt,{children:[s,St(o.total)]})]}),!!l&&t.jsxs($t,{children:[t.jsxs(Ut,{children:["User seat",l.quantity>1&&"s"," ",l.quantity>1&&t.jsxs("span",{children:[s,St(l.price)," × ",l.quantity]})]}),t.jsxs(Gt,{children:[s,St(l.total)]})]}),!!u&&t.jsxs($t,{children:[t.jsx(Ut,{semibold:!0,children:"Unused time of current billing cycle"}),t.jsxs(Gt,{color:"success.500",children:["- ",s,St(Math.abs(u))]})]}),!!d&&t.jsxs(t.Fragment,{children:[t.jsxs($t,{children:[t.jsx(Ut,{semibold:!0,children:"Remaining time of current billing cycle"}),t.jsxs(Gt,{children:[s,St(Math.abs(d))]})]}),t.jsx(Ue,{my:"16px"})]}),!!a&&t.jsxs($t,{children:[t.jsx(Ut,{color:"success.500",children:"Referral Discount"}),t.jsxs(Gt,{color:"success.500",children:["- ",s,St(Math.abs(a.total))]})]}),t.jsx(Ue,{my:"16px"}),t.jsxs($t,{children:[t.jsx(Ut,{children:"Subtotal"}
71),t.jsxs(Gt,{children:[Math.sign(e.subtotal)===-1&&"-",s,St(Math.abs(e.subtotal))]})]}),!!(r!=null&&r.total)&&t.jsxs($t,{children:[t.jsxs(Ut,{color:"success.500",children:["Discount ",r.label]}),t.jsxs(Gt,{color:"success.500",children:["- ",s,St(r.total)]})]}),!!e&&(e==null?void 0:e.amount_due)<(e==null?void 0:e.total)&&t.jsxs($t,{children:[t.jsx(Ut,{color:"success.500",children:"Pro-rata balance"}),t.jsxs(Gt,{color:"success.500",children:["- ",s,St((e==null?void 0:e.total)-(e==null?void 0:e.amount_due))]})]}),t.jsx(Ue,{my:"16px"}),t.jsxs($t,{mb:"0 !important",children:[t.jsx(Ut,{fontWeight:"600",children:"Total"}),t.jsxs(Gt,{fontWeight:"600",children:[s,St(e.amount_due)]})]}),r&&!r.total&&t.jsxs(t.Fragment,{children:[t.jsx(He,{topContent:!!(e!=null&&e.subtotal)&&e.subtotal<0&&t.jsxs($t,{mb:"0 !important",children:[t.jsx(Ut,{medium:!0,children:"Pro-rata Balance for next invoices"}),t.jsxs(Gt,{children:[s,St(Math.abs(e.subtotal))]})]}),wrapperProps:{mt:"16px"},messageProps:{color:"greyBlue.60"},message:r&&!r.total&&"Please note that the discount has already been applied to the remaining time of current billing cycle"}),t.jsx(Ut,{fontStyle:"italic"})]})]})},Sw=({discount:e})=>{const{billingInfo:n}=ot(),{invoiceDetails:s}=K0();return t.jsx(t.Fragment,{children:t.jsxs(he,{borderRadius:"16px",children:[t.jsx(Pl,{}),t.jsx(S,{semibold:!0,mb:"8px",textAlign:"center",children:"Your discount has been applied!"}),t.jsxs(S,{fontSize:"12px",lineHeight:"16px",color:"gray.800",mb:"24px",textAlign:"center",children:["Your ",e,"% discount will take effect starting with your next billing cycle.",t.jsx("br",{}),"Thanks for being a valued customer!"]}),s&&n?t.jsx(r3,{invoiceDetails:s,currency:n==null?void 0:n.currency}):t.jsx(Pe,{})]})})},bw=()=>{const e=P(),{companyName:n}=Fe(),{closeCancelModal:s}=wr(),r=()=>e(Q()),a=()=>{s(),r()},i=()=>{r(),e(Ne({closable:!1,size:"large",type:Y.CANCEL_SUBSCRIPTION_OPTIONS,onCancel:s}))};return t.jsxs(t.Fragment,{children:[t.jsx(et,{onClose:a,children:"Delete Meet Alfred account"}),t.jsxs(he,{children:[t.jsx(S,{fontSize:"16px",color:"greyNeutral.100",mb:"16px",lineHeight:"22px",children:"Deleting your Alfred account will result in it becoming completely inaccessible at the end of your billing cycle."}),t.jsx(S,{inline:!0,semibold:!0,fontSize:"16px",color:"greyNeutral.100",lineHeight:"22px",children:"All of your campaigns, connections, leads, history, notes, and tags will be permanently deleted."}),t.jsxs(S,{inline:!0,fontSize:"16px",color:"greyNeutral.100",lineHeight:"22px",children:[" ","Once this happens,"," "]}),t.jsx(S,{inline:!0,semibold:!0,fontSize:"16px",color:"greyNeutral.100",lineHeight:"22px",children:"it will not be possible to recover any of your data"}),t.jsxs(S,{inline:!0,fontSize:"16px",color:"greyNeutral.100",lineHeight:"22px",children:[", and your account will"," "]}),t.jsx(S,{inline:!0,semibold:!0,fontSize:"16px",color:"greyNeutral.100",lineHeight:"22px",children:"stop functioning entirely."})]}),t.jsxs(ge,{sx:{"*":{flexShrink:"1"}},children:[t.jsxs(k,{onClick:a,children:["Nevermind, Keep using ",n]}),t.jsx(k,{variant:"warning",onClick:i,children:"Cancel Subscription"})]})]})},Lw=[nn.TECHNICAL_ISSUES,nn.DIFFICULTY_OF_USE,nn.MISSING_FUNCTIONALITY,nn.COST,nn.USING_OTHER_PRODUCT,nn.SOMETHING_ELSE],ww=()=>{var V,O,B,D;const e=P(),{companyName:n}=Fe(),{billingInfo:s}=ot(),{closeCancelModal:r}=wr(),a=()=>e(Q()),[i,o]=c.useState(!1),[l,u]=c.useState(!1),d=lt({mode:"all"}),{watch:p,setValue:h,register:m,handleSubmit:f,formState:{errors:C},trigger:E}=d,b=p("reason"),w=p("value"),{cancelSubscription:I,isCancelLoading:T}=W0({onSuccess:()=>{a(),e(Ne({type:Y.SUBSCRIPTION_CANCELED,size:"medium",closable:!1}))}}),{getCancelCouponDiscount:j,isLoading:L}=g7({onSuccess:({discount:M})=>{const F=d.getValues();M?(a(),e(Ne({type:Y.CANCELLATION_DISCOUNT,closable:!1,onCancel:r,size:"medium",params:{discount:M,cancelParams:F}}))):I(F)}}),_=c.useMemo(()=>!i||!l?!0:!(b&&(b===nn.COST||w.length>=20)),[i,l,b,w]),N=M=>{if(!_){if(s!=null&&s.isCancelCouponApplied){I(M);return}if(s!=null&&s.freePhasePromo){I(M);return}if(_h(s==null?void 0:s.plan,s==null?void 0:s.billingType,s==null?void 0:s.stripeSubscriptionObject)){I(M);return}j()}},A=()=>{r(),a()},R=M=>{const F=M.target.value;h("reason",F),(F===nn.COST&&w||w)&&E("value")};return t.jsxs(t.Fragment,{children:[t.jsx(et,{onClose:A,children:"Cancel Subscription"}),t.jsxs(he,{maxHeight:"calc(100vh - 300px)",overflow:"auto",children:[t.jsxs(S,{mb:"8px",fontSize:"15px",color:"gray.800",children:["Canceling your subscription will make your account inaccessible after your billing cycle ends on"," ",((V=s==null?void 0:s.stripeSubscriptionObject)==null?void 0:V.current_period_end)&&` ${se.unix((O=s==null?void 0:s.stripeSubscriptionObject)==null?void 0:O.current_period_end).format("MM/DD/YYYY")}`,"."]}),t.jsx(S,{fontSize:"15px",color:"gray.800",mb:"24px",children:"All your campaigns, connections, leads, history, notes, tags, and other data will be permanently deleted at the end of your billing cycle and cannot be recovered."}),t.jsxs(g,{display:"flex",flexDirection:"column",gap:"12px",mb:"24px",children:[t.jsx(S,{fontSize:"18px",color:"gray.800",semibold:!0,children:"Please select a reason for canceling your subscription"}),Lw.map(M=>t.jsx(_n,{id:M,label:M,value:M,checked:b===M,onChange:R},M))]}),t.jsxs(g,{display:"flex",flexDirection:"column",gap:"12px",mb:"24px",children:[t.jsx(S,{fontSize:"18px",color:"gray.800",semibold:!0,children:"Provide more details about your reason"}),t.jsx(Tr,{register:m,name:"value",parameters:{required:b&&b!==nn.COST,validate:(M,F)=>F.reason===nn.COST||M.trim().length>=20||"Provide more information (at least 20 characters)."},placeholder:"Type here...",style:{minHeight:"70px",maxWidth:"100%",minWidth:"100%"},className:Ee({error:C.value})}),((B=C.value)==null?void 0:B.message)&&t.jsx(S,{fontSize:"14px",color:"error.main",children:(D=C.value)==null?void 0:D.message})]}),t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",mb:"12px",children:[t.jsx($e,{type:"checkbox",checked:i,onChange:M=>o(M.target.checked)}),t.jsxs(S,{color:"black.base",children:["I accept ",n," ",t.jsx(je,{semibold:!0,external:!0,openNewTab:!0,to:"https://meetalfred.com/terms",children:"Terms of Use"})]})]}),t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",children:[t.jsx($e,{type:"checkbox",checked:l,onChange:M=>u(M.target.checked)}),t.jsxs(S,{color:"black.base",children:["I accept ",n," ",t.jsx(je,{semibold:!0,external:!0,openNewTab:!0,to:"https://help.meetalfred.com/en/articles/3338757-refund-policy",children:"No Refund Policy"})]})]})]}),t.jsxs(ge,{sx:{"*":{flexShrink:"1"}},children:[t.jsxs(k,{onClick:A,children:["Keep using ",n]}),t.jsx(k,{onClick:f(N),disabled:_,processing:T||L,children:"Cancel Subscription"})]})]})},Tw=y(g,{target:"e928t191"})({name:"jxsm8r",styles:"display:grid;gap:16px;grid-auto-rows:1fr;&:has(div:nth-child(3)):not(:has(div:nth-child(4))){grid-template-columns:repeat(3, 1fr);}&:has(div:nth-child(4)){grid-template-columns:repeat(2, 1fr);}"}),Yr=y(g,{target:"e928t190"})("display:flex;flex-direction:column;padding:20px;border-radius:6px;border:1px solid ",({theme:e})=>e.palette.gray[100],";"),jw=()=>{var b,w;const e=P(),n=Rt(),{billingInfo:s}=ot(),r=s==null?void 0:s.freePhasePromo,{isBasic:a,isPro:i}=We(),{companyName:o}=Fe(),{closeCancelModal:l,closeCancelModalTrigger:u}=wr(),d=!!r&&(s==null?void 0:s.billingType)===G.QUARTERLY&&(a||i)||a0(s==null?void 0:s.plan,s==null?void 0:s.billingType,s==null?void 0:s.stripeSubscriptionObject),p=()=>e(Q()),h=()=>{l(),p()},m=()=>{u(sr.pauseSubscriptionClicked),p(),e(Ne({type:Y.PAUSE_SUBSCRIPTION,onCancel:l}))},f=()=>{p(),e(Ne({type:Y.CANCEL_SUBSCRIPTION_FORM,closable:!1,onCancel:l,size:"medium"}))},C=()=>{u(sr.changeNumberOfUsersClicked),p(),n("/team/manage-team")},E=()=>{u(sr.changePlanClicked),p(),n("/billing/subscription/plans")};return t.jsxs(t.Fragment,{children:[t.jsx(et,{onClose:h,children:"Cancel Subscription"}),t.jsx(he,{children:t.jsxs(Tw,{children:[!d&&t.jsxs(Yr,{children:[t.jsx(S,{color:"gray.800",fontSize:"20px",mb:"12px",medium:!0,children:"Pause My Subscription"}),t.jsx(S,{color:"gray.700",mb:"12px",children:"Temporarily pause your subscription and resume it anytime without losing your data or settings."}),s!=null&&s.pausedSubscriptionAt?t.jsx(He,{type:"info",message:"You've reached the pause limit; this option is no longer available.",wrapperProps:{mt:"auto"}}):t.jsx(k,{scale:"s",onClick:m,margin:"auto 0 0 0",children:"Pause Subscription"})]}),!!s&&s.seats>1&&t.jsxs(Yr,{children:[t.jsx(S,{color:"gray.800",fontSize:"20px",mb:"12px",medium:!0,children:"Reduce Number of Seats or Users"}),t.jsx(S,{color:"gray.700",mb:"12px",children:"We understand your needs may change. You can easily lower your subscription cost by adjusting your team size and removing unused seats or users."}),t.jsx(k,{scale:"s",onClick:C,margin:"auto 0 0 0",children:"Change Number of Users"})]}),t.jsxs(Yr,{children:[t.jsx(S,{color:"gray.800",fontSize:"20px",mb:"12px",medium:!0,children:"Change My Plan"}),t.jsx(S,{color:"gray.700",mb:"12px",children:"Find the perfect plan to achieve your goals."}),t.jsx(k,{scale:"s",onClick:E,margin:"auto 0 0 0",children:"Change Plan"})]}),t.jsxs(Yr,{children:[t.jsx(S,{color:"gray.800",fontSize:"20px",mb:"12px",medium:!0,children:"Cancel My Subscription"}),t.jsxs(S,{color:"gray.700",mb:"12px",children:["Canceling your ",o," subscription will make it completely inaccessible at the end of your billing cycle on",((b=s==null?void 0:s.stripeSubscriptionObject)==null?void 0:b.current_period_end)&&` ${se.unix((w=s==null?void 0:s.stripeSubscriptionObject)==null?void 0:w.current_period_end).format("MM/DD/YYYY")}`,"."]}),t.jsx(k,{variant:"warning-secondary",scale:"s",onClick:f,margin:"auto 0 0 0",children:"Cancel Subscription"})]})]})}),t.jsx(ge,{sx:{"*":{flexShrink:"1"}},alignToTheEnd:!0,children:t.jsxs(k,{onClick:h,children:["Keep using ",o]})})]})},vw=[zs.TAKING_BREAK,zs.REDUCING_EXPENSES,zs.ENOUGH_LEADS,zs.CHANGED_JOBS,zs.SOMETHING_ELSE],Kr=Xp.map(e=>({value:e,label:`${e} days`})),Oc="error-block",Iw=()=>{const e=P(),{companyName:n}=Fe(),[s,r]=c.useState(!1),[a,i]=c.useState(!1),o=lt({defaultValues:{period:Kr[0].value}}),{watch:l,setValue:u,setError:d,register:p,handleSubmit:h,control:m,formState:{errors:f}}=o,C=l("period"),E=l("reason"),b=l("description"),{pauseSubscription:w,isLoading:I}=C7({onSuccess:()=>{e(Q()),e(Ne({type:Y.SUBSCRIPTION_PAUSED,size:"medium"}))},onError:A=>{A.message==="outstanding_invoice_requires_action"&&d("period",{message:A.message})}}),T=c.useMemo(()=>!s||!a?!0:!E||!C||!b||!!(f!=null&&f.period),[s,a,E,C,b]),j=()=>!I&&e(Q()),L=A=>{T||w(A)},_=A=>{const R=A.target.value;u("reason",R)},N=()=>{e(Ne({type:Y.BILLING_HISTORY,size:"auto",params:{preOpenFirstOpenedInvoice:!0}}))};return c.useLayoutEffect(()=>{if(f.period){const A=document.getElementById(Oc);A&&A.scrollIntoView({behavior:"smooth",block:"end"})}},[f.period]),t.jsxs(t.Fragment,{children:[t.jsx(et,{onClose:j,children:"Pause Subscription"}),t.jsxs(he,{maxHeight:"calc(100vh - 300px)",overflow:"auto",children:[t.jsx(S,{mb:"8px",color:"gray.800",children:"Pause your subscription for a specific period. Once the pause period ends and your subscription renews, any remaining balance will be credited towards your renewed subscription."}),t.jsx(He,{type:"info",message:"Please note, you can only pause your subscription once.",messageProps:{semibold:!0},wrapperProps:{mb:"24px"}}),t.jsx(rn,{name:"period",control:m,render:({field:A})=>
71t.jsx(Xe,{label:"Choose pause duration",value:Kr.find(({value:R})=>R===A.value),options:Kr,defaultValue:Kr[0],onChange:R=>{A.onChange(R==null?void 0:R.value)}})}),t.jsxs(g,{display:"flex",flexDirection:"column",gap:"8px",my:"24px",children:[t.jsx(S,{fontSize:"12px",lineHeight:"16px",semibold:!0,children:"Why are you pausing? (Please choose a reason):"}),vw.map(A=>t.jsx(_n,{id:A,label:A,value:A,checked:E===A,onChange:_},A))]}),t.jsx(Tr,{label:"Tell us more:",register:p,name:"description",parameters:{required:!0},placeholder:"Type here...",style:{minHeight:"70px",maxWidth:"100%",minWidth:"100%"},className:Ee({error:f.description})}),t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",mb:"12px",mt:"24px",children:[t.jsx($e,{type:"checkbox",checked:s,onChange:A=>r(A.target.checked)}),t.jsxs(S,{color:"black.base",children:["I accept ",n," ",t.jsx(je,{semibold:!0,external:!0,openNewTab:!0,to:"https://meetalfred.com/terms",children:"Terms of Use"})]})]}),t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",children:[t.jsx($e,{type:"checkbox",checked:a,onChange:A=>i(A.target.checked)}),t.jsxs(S,{color:"black.base",children:["I accept ",n," ",t.jsx(je,{semibold:!0,external:!0,openNewTab:!0,to:"https://help.meetalfred.com/en/articles/3338757-refund-policy",children:"No Refund Policy"})]})]}),f.period&&t.jsx(He,{type:"error",wrapperProps:{id:Oc,mt:"24px"},message:t.jsxs(S,{color:"gray.600",children:["Subscription can not be updated due to"," ",t.jsx(je,{onClick:N,children:"outstanding invoices requiring attention"}),"."]})})]}),t.jsxs(ge,{children:[t.jsx(k,{disabled:I,onClick:j,children:"Cancel"}),t.jsx(k,{onClick:h(L),disabled:T,processing:I,children:"Pause Subscription"})]})]})},_w=y(g,{target:"e1sz31i72"})({name:"8py8rr",styles:"position:relative;background:linear-gradient(70deg, #00070d 0%, #000b16 18%, #10358f 48%, #1b4ed2 68%, #741ac9 100%);border-radius:6px"}),Aw=y(g,{target:"e1sz31i71"})({name:"1fa57ts",styles:"position:relative;display:inline-block;border-radius:6px;padding:2px 12px;margin-bottom:22px;background:linear-gradient(90deg, #1b4ed2 0%, #741ac9 100%);border:1px solid #f8f8ff"}),Nw=y(g,{target:"e1sz31i70"})({name:"12uwaf6",styles:"position:absolute;top:16px;right:16px;width:16px;height:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;svg{width:16px;height:16px;}svg path{stroke:#ffffff!important;fill:#ffffff!important;}"}),kw=({onRequestClose:e})=>{const n=Os(),s=()=>e==null?void 0:e(),r=()=>{e==null||e(),window.setTimeout(()=>{n("/billing/subscription")},yr)};return t.jsxs(_w,{children:[t.jsx(Nw,{onClick:s,children:t.jsx(_u,{})}),t.jsxs(he,{padding:"48px 24px 24px 24px",children:[t.jsx(Aw,{children:t.jsx(S,{color:"#ffffff",fontSize:"12px",lineHeight:"20px",fontWeight:500,children:"SPECIAL OFFER FOR YOU!"})}),t.jsx(S,{color:"#ffffff",fontSize:"24px",lineHeight:"26px",fontWeight:700,mb:"16px",children:"Enjoyed your 3+3 deal?"}),t.jsxs(S,{color:"#A6ABB6",fontSize:"30px",lineHeight:"40px",fontWeight:300,children:["Renew Subscription For ",t.jsx("b",{style:{color:"#ffffff",fontWeight:600},children:"3 Months"}),t.jsx("br",{}),"And Get ",t.jsx("b",{style:{color:"#ffffff",fontWeight:600},children:"+3 Months FREE"})]}),t.jsx(g,{mt:"16px",children:t.jsx(k,{variant:"white",color:"#17171C",style:{border:"none"},onClick:r,children:"Accept the Deal"})}),t.jsxs(S,{fontSize:"12px",lineHeight:"16px",color:"#c8c8d0",mt:"24px",children:["Exclusively for users who claimed our Black Friday & Cyber Monday deal.",t.jsx("br",{}),"Please see the full"," ",t.jsx(je,{to:"https://meetalfred.com/terms-holidays-bf-cm-2025",color:"#e8e8eb",underline:!0,underlineColor:"#e8e8eb",hoverColor:"#c8c8d0",fontSize:"12px",lineHeight:"18px",external:!0,openNewTab:!0,children:"Terms and Conditions"})," ","for all promotion details and restrictions."]})]})]})},Rw=({onRequestClose:e})=>{const n=P(),{optInPromoProlongation:s,isLoading:r}=f7({onSuccess:()=>{e==null||e(),window.setTimeout(()=>{n(Ne({type:Y.RENEWAL_PROMO_SUCCESS,size:"medium"}))},yr)}}),a=()=>e==null?void 0:e(),i=()=>{s()};return t.jsxs(t.Fragment,{children:[t.jsx(et,{onClose:a,children:"Renew your 3+3 deal"}),t.jsx(he,{children:t.jsx(S,{color:"gray.800",children:"By proceeding, you will receive 3 bonus months at no extra cost. Your account will be billed for 3 months, and your service will be extended by 6 months total."})}),t.jsxs(ge,{children:[t.jsx(k,{onClick:a,disabled:r,variant:"white",children:"Cancel"}),t.jsx(k,{onClick:i,disabled:r,processing:r,children:"Accept"})]})]})},Mw=e=>
71c.createElement("svg",{width:30,height:31,viewBox:"0 0 30 31",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M6.25 18.625C6.25 18.625 8.125 18.625 10.625 23C10.625 23 17.5735 11.5417 23.75 9.25",stroke:"#54A25D",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),Pw=y(g,{target:"e1pfgr802"})({name:"150ldw",styles:"width:44px;height:44px;border-radius:50%;background:#eaf8f0;display:flex;align-items:center;justify-content:center"}),Ow=y(Mw,{target:"e1pfgr801"})({name:"1hcx7ev",styles:"width:24px;height:24px;path{stroke:#1b8d2d!important;}"}),Dw=y(g,{target:"e1pfgr800"})({name:"24ta07",styles:"height:1px;width:100%;background-color:#f0f0f0;margin-top:24px;margin-bottom:16px"}),Uw=({onRequestClose:e})=>t.jsxs(he,{textAlign:"center",padding:"0",children:[t.jsx(g,{paddingTop:"24px",paddingBottom:"16px",display:"flex",justifyContent:"center",alignItems:"center",children:t.jsx(Pw,{children:t.jsx(Ow,{})})}),t.jsxs(g,{paddingLeft:"24px",paddingRight:"24px",children:[t.jsx(S,{fontSize:"14px",lineHeight:"20px",fontWeight:600,color:"#000e33",mb:"8px",children:"You've successfully renewed your subscription!"}),t.jsxs(S,{color:"#040207",fontSize:"12px",lineHeight:"16px",fontWeight:400,children:["Your special 3+3 deal is now active.",t.jsx("br",{}),"Your plan will automatically renew once the promo period ends."]}),t.jsx(S,{color:"#040207",mt:"14px",mb:"24px",fontSize:"12px",lineHeight:"16px",fontWeight:400,children:"You can manage your billing details and view your invoices at any time in your settings."})]}),t.jsx(Dw,{}),t.jsx(g,{paddingBottom:"16px",display:"flex",justifyContent:"center",alignItems:"center",children:t.jsx(k,{onClick:()=>e==null?void 0:e(),children:"Got It"})})]}),Bw=({onConfirm:e,params:{percentage:n,billingType:s}})=>{const r=P(),a=()=>r(Q()),i=()=>{e&&e({}),a()};return t.jsxs(Hn,{children:[t.jsx(et,{onClose:a,children:"Billing cycle update"}),t.jsx(he,{children:t.jsxs(S,{children:[n," by keeping the ",In(s)," plan."]})}),t.jsxs(ge,{children:[t.jsx(k,{onClick:i,children:"No, I'd rather pay more"}),t.jsxs(k,{onClick:a,children:["Yes, ",n]})]})]})},Hw=()=>{var r,a;const e=P(),{billingInfo:n}=ot(),s=()=>e(Q());return t.jsxs(t.Fragment,{children:[t.jsxs(he,{borderRadius:"16px 16px 0 0",children:[t.jsx(Pl,{}),t.jsx(S,{semibold:!0,textAlign:"center",mb:"8px",children:"Your subscription has been canceled"}),t.jsxs(S,{fontSize:"12px",lineHeight:"16px",color:"greyNeutral.100",mb:"8px",textAlign:"center",children:["You have successfully canceled your Meet Alfred subscription. You can continue to use the services included in your plan until the end of your billing cycle on"," ",((r=n==null?void 0:n.stripeSubscriptionObject)==null?void 0:r.current_period_end)&&` ${se.unix((a=n==null?void 0:n.stripeSubscriptionObject)==null?void 0:a.current_period_end).format("MM/DD/YYYY")}`,"."]}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyNeutral.100",textAlign:"center",children:"At the end of your billing cycle, your account will be inaccessible, and your data will be permanently deleted."})]}),t.jsx(ge,{justifyContent:"center",children:t.jsx(k,{onClick:s,children:"Got it"})})]})},Vw=()=>{const e=P(),{billingInfo:n}=ot(),s=()=>e(Q());return t.jsxs(t.Fragment,{children:[t.jsxs(he,{borderRadius:"16px 16px 0 0",children:[t.jsx(Pl,{}),t.jsx(S,{semibold:!0,textAlign:"center",mb:"8px",children:"You've successfully paused your subscription!"}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyNeutral.100",textAlign:"center",children:"Once the pause period ends, your plan will automatically renew, and any remaining balance will be applied."}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyNeutral.100",textAlign:"center",mb:"8px",children:"You can resume your subscription at any time!"}),t.jsxs(S,{medium:!0,fontSize:"12px",lineHeight:"16px",color:"greyNeutral.100",textAlign:"center",children:["Subscription paused till: ",se(n==null?void 0:n.autoResumeSubscriptionAt).format("MM.DD.YYYY")]})]}),t.jsx(ge,{justifyContent:"center",children:t.jsx(k,{onClick:s,children:"Got it"})})]})},Fw=()=>{const e=P(),{unpauseSubscription:n,isLoading:s}=S7({onSuccess:()=>{e(Q())}}
71),r=()=>!s&&e(Q()),a=()=>{n()};return t.jsxs(t.Fragment,{children:[t.jsx(et,{onClose:r,children:"Ready to Resume ?"}),t.jsxs(he,{children:[t.jsx(S,{mb:"8px",color:"gray.800",children:"Are you sure you want to resume your subscription? This will reactivate your account and use the remaining credits."}),t.jsx(He,{type:"info",message:"Please note that you will not be able to pause your account again",messageProps:{semibold:!0}})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:r,disabled:s,children:"Stay Paused"}),t.jsx(k,{onClick:a,disabled:s,processing:s,children:"Resume Subscription Now"})]})]})},$w=()=>{const e=P(),n=C2(),s=y2(),[r,a]=c.useState(""),i=()=>e(Q()),{updateCreditCard:o,isLoading:l}=b7({onSuccess:()=>{i()},onError:d=>a(d.message)}),u=async d=>{if(d.preventDefault(),!n||!s)return;const p=s.getElement(Uo),{error:h,paymentMethod:m}=await n.createPaymentMethod({type:"card",card:p});h?a(h.message||""):o(m)};return t.jsxs("form",{onSubmit:u,children:[t.jsxs(he,{children:[t.jsx(Iu,{onChange:()=>a("")}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"additional.red50",my:"16px",children:r}),t.jsxs(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",mt:"16px",textAlign:"center",children:[t.jsx(yt,{icon:Tp})," This is a secure 128-bit SSL encryption."]})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:i,children:"Cancel"}),t.jsx(k,{type:"submit",disabled:!n,processing:l,children:"Update"})]})]})},Gw=y(g,{target:"eh33gjz0"})("margin-left:20px;padding:5px 15px;cursor:pointer;color:",({theme:e})=>e.palette.primary.wlLight,";border:1px solid ",({theme:e})=>e.palette.light.dark,";font-size:10px;border-radius:4px;transition:0.2s;&:hover{background:",({theme:e})=>e.palette.primary.wlLight,";border:1px solid ",({theme:e})=>e.palette.primary.wlLight,";color:#fff;}"),zw={control:()=>({fontSize:"14px",borderRadius:"4px",border:"2px solid #eee",position:"relative",display:"flex",backgroundColor:"#fff"}),indicatorSeparator:()=>({display:"none"}),multiValue:()=>({display:"flex",lineHeight:"22px",margin:"3px 5px 3px 0",backgroundColor:"rgba(0,126,255,.08)",border:"1px solid #ccc",borderRadius:"2px",padding:"2px 0",color:"#0071e6"}),multiValueLabel:()=>({order:2,padding:"0 5px"}),multiValueRemove:e=>({...e,borderRight:"1px solid gray",borderRadius:0,cursor:"pointer","&:hover":{backgroundColor:"rgba(0,113,230,.08)",color:"var(--gray-main)"}}),option:e=>({...e,display:"flex",alignItems:"center",cursor:"pointer",fontSize:"14px",padding:"15px",backgroundColor:"transparent !important",transition:"0.2s","&:hover":{color:"#007eff"}})},Ww=({route:e,query:n},s)=>{Y2({query:n,route:e}).then(r=>s(r))},qw=vs(Ww,500),Zw=({headerText:e,route:n,values:s,setValues:r})=>{const[a,i]=c.useState(s),o=P(),l=()=>{o(Q())},u=!!a.length,d=m=>{i(m)},p=m=>{i(f=>f.filter(C=>C.id!==m))},h=()=>i([]);return c.useEffect(()=>{r(a)},[a]),t.jsxs(t.Fragment,{children:[t.jsxs(g,{py:"30px",px:"40px",display:"flex",alignItems:"center",fontSize:"14px",height:"20px",children:[e,u&&t.jsx(Gw,{onClick:h,children:"X CLEAR ALL"})]}),t.jsxs(g,{py:"30px",px:"40px",display:"flex",justifyContent:"space-between",flexWrap:"wrap",bgcolor:"light.light",children:[a.map(m=>t.jsxs(g,{display:"flex",alignItems:"center",width:"50%",my:"14px",children:[t.jsx($e,{id:m.id,type:"checkbox",checked:!0,onChange:()=>p(m.id)}),t.jsx("label",{htmlFor:m.id,children:m.name})]},m.id)),t.jsx(g,{width:"100%",children:t.jsx(d2,{placeholder:e,isMulti:!0,cacheOptions:!0,value:a,loadOptions:(m,f)=>qw({route:n,query:m},f),onChange:d,styles:zw,noOptionsMessage:()=>t.jsx(S,{margin:"5px",fontSize:"16px",color:"#999",children:"Type to search"})})})]}),t.jsx(g,{py:"20px",px:"40px",display:"flex",justifyContent:"flex-end",children:t.jsx(k,{onClick:l,children:"Save"})})]})},Yw=y(g,{target:"eb7vfwu1"})("margin-left:20px;padding:5px 15px;cursor:pointer;color:",({theme:e})=>e.palette.primary.wlLight,";border:1px solid ",({theme:e})=>e.palette.light.dark,";font-size:10px;border-radius:4px;transition:0.2s;&:hover{background:",({theme:e})=>e.palette.primary.wlLight,";border:1px solid ",({theme:e})=>e.palette.primary.wlLight,";color:#fff;}"),Qs=y(Ce,{target:"eb7vfwu0"})({name:"1m1xs6j",styles:"padding:5px 10px;margin:20px 0;
71height:auto"}),Kw=({values:e,setValues:n})=>{const[s,r]=c.useState(e),a=P(),i=()=>{a(Q())},o=(d,p)=>{const h={...s,[p]:d.target.value};r(h),n(h)},l=!!Object.values(s).find(d=>d),u=()=>{const d={firstName:"",lastName:"",title:"",company:"",school:""};r(d),n(d)};return t.jsxs(t.Fragment,{children:[t.jsxs(g,{py:"30px",px:"40px",display:"flex",alignItems:"center",fontSize:"14px",height:"20px",children:["Specify keywords",l&&t.jsx(Yw,{onClick:u,children:"X CLEAR ALL"})]}),t.jsxs(g,{py:"30px",px:"40px",bgcolor:"light.light",children:[t.jsx(Qs,{placeholder:"First name",name:"firstName",value:s.firstName||"",onChange:d=>o(d,"firstName")}),t.jsx(Qs,{placeholder:"Last name",name:"lastName",value:s.lastName||"",onChange:d=>o(d,"lastName")}),t.jsx(Qs,{placeholder:"Title",name:"title",value:s.title||"",onChange:d=>o(d,"title")}),t.jsx(Qs,{placeholder:"Company",name:"company",value:s.company||"",onChange:d=>o(d,"company")}),t.jsx(Qs,{placeholder:"School",name:"school",value:s.school||"",onChange:d=>o(d,"school")})]}),t.jsx(g,{py:"20px",px:"40px",display:"flex",justifyContent:"flex-end",children:t.jsx(k,{onClick:i,children:"Save"})})]})},Qw=({onCancel:e,params:n})=>{const s=P(),r=/^Campaign draft \(\d+\)$/i,[a,i]=c.useState(!(n!=null&&n.name)||r.test(n.name)?"":n.name),[o,l]=c.useState(""),u=()=>{l(""),e&&e(),s(Q())},{updateCampaignName:d,isLoading:p}=P7(n.id,{onSuccess:u}),h=()=>{const f=a.trim();if(!f){l("Please enter name");return}l(""),d({name:f})},m=f=>{i(f.target.value),o&&l("")};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(Ce,{label:"Campaign name",onChange:m,value:a,placeholder:"Campaign name",className:Ee({error:!!o})}),o&&t.jsx(S,{color:"additional.red50",mt:"6px",fontSize:"14px",children:o})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:u,children:"Cancel"}),t.jsx(k,{onClick:h,processing:p,children:"Save"})]})]})},Xw=({onCancel:e,params:n})=>{const s=P(),r=(n==null?void 0:n.blockLabel)??"this block",a=()=>{e==null||e(),s(Q())},i=()=>{var o;(o=n==null?void 0:n.onConfirm)==null||o.call(n),s(Q())};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsxs(S,{color:"greyBlue.60",children:["Are you sure you want to delete ",t.jsx("strong",{children:r}),"?"]}),t.jsx(S,{color:"greyBlue.60",children:"There are steps after this block. Deleting it will also remove all following steps in this branch. This action cannot be undone."})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:a,children:"Cancel"}),t.jsx(k,{onClick:i,children:"Delete block"})]})]})},Jw=({params:e})=>{const n=P(),{description:s="",buttonText:r="",onConfirm:a}=e??{},i=()=>{a&&a(),n(Q())};return t.jsxs(t.Fragment,{children:[t.jsx(he,{pb:"24px !important",children:t.jsx(S,{children:s})}),t.jsx(ge,{alignToTheEnd:!0,children:t.jsx(k,{onClick:i,children:r})})]})},Dc=y(g,{target:"e5vxht80"})("background:",({theme:e})=>e.palette.light.main,";padding:15px 10px;margin:5px 0;border-radius:5px;display:flex;align-items:center;"),eT=[U.LINKEDIN_CONNECTIONS,U.EMAIL_CONNECTIONS,U.TWITTER_CONNECTIONS,U.LINKEDIN_CSV_UPLOAD,U.TWITTER_CSV_UPLOAD,U.EMAIL_CSV_UPLOAD,U.ZAPIER_LEADS,U.INTERACTIVE_QUESTIONS,U.LEAD_FINDER,U.SAVED_LIST],tT=[U.LINKEDIN_CONNECTIONS,U.EMAIL_CONNECTIONS,U.TWITTER_CONNECTIONS,U.LEAD_FINDER,U.SAVED_LIST],nT=({campaignId:e})=>{const n=P(),{companyName:s}=Fe(),[r,a]=c.useState(!1),[i,o]=c.useState([]),{campaign:l,isLoading:u}=ul(e,{refetchOnMount:!0}),{data:d,isLoading:p}=X0(e,{refetchOnMount:!0}),{restartSearch:h,isLoading:m}=pl({campaignId:e,category:l==null?void 0:l.category}),f=!eT.includes(l==null?void 0:l.campaignType),C={[U.LINKEDIN_SEARCH]:"Linkedin Search",[U.LINKEDIN_CSV_UPLOAD]:"LinkedIn URLs uploaded via CSV file",[U.EMAIL_CSV_UPLOAD]:"LinkedIn URLs uploaded via CSV file",[U.TWITTER_CSV_UPLOAD]:"X (Twitter) URLs uploaded via CSV file",[U.LINKEDIN_CONNECTIONS]:"1st degree connections",[U.EMAIL_CONNECTIONS]:"1st degree connections",[U.LINKEDIN_SN_SEARCH]:"Sales Navigator search via URL",[U.LINKEDIN_SN_SAVED_SEARCH]:"Sales Navigator saved search via URL",[U.RECRUITER_SEARCH]:"Recruiter search via URL",[U.LINKEDIN_GROUP]:"LinkedIn Group",[U.LINKEDIN_POST]:"LinkedIn Post",[U.TWITTER_CONNECTIONS]:"X (Twitter) connections",[U.LINKEDIN_EVENT]:"Linkedin Event",[U.ZAPIER]:`Send LinkedIn URLs to ${s} through Zapier`,[U.LEAD_FINDER]:"Lead Finder Contacts",[U.SAVED_LIST]:"Saved List Contacts",[U.LINKEDIN_NEWSLETTER]:"Linkedin Newsletter",[U.LINKEDIN_ADVERTISEMENT]:"LinkedIn Advert
71isement Post",[U.LINKEDIN_COMPANY]:"LinkedIn Company",[U.ZAPIER_LEADS]:"Zapier Leads",[U.INTERACTIVE_QUESTIONS]:"Interactive Questions"},E=(T,j)=>{o(j?L=>[...L,T]:L=>L.filter(_=>_!==T))},b=(T="Lead Source",j)=>j?t.jsx("a",{target:"_blank",href:j,rel:"noopener noreferrer",children:T}):t.jsx("span",{children:T}),w=()=>{n(Q())},I=()=>{h({restartCampaign:r,leadSourceIds:i}),w()};return t.jsxs(t.Fragment,{children:[t.jsx(et,{children:"Select what sources should restart"}),t.jsxs(he,{children:[(u||p)&&t.jsx(g,{textAlign:"center",children:t.jsx(Pe,{})}),!u&&!p&&t.jsxs(t.Fragment,{children:[t.jsxs(Dc,{children:[t.jsxs(g,{flexGrow:1,children:[t.jsxs(S,{fontSize:"15px",children:[b("Initial Search",l==null?void 0:l.searchUrl)," ",l&&f&&!l.isSearchEnded&&t.jsx(S,{component:"span",fontWeight:"bold",inline:!0,fontSize:"15px",children:"(running)"})]}),t.jsx(S,{color:"#8a8a8a",fontSize:"13px",children:f?"Restart initial search":"Initial search of this campaign type cannot be restarted"})]}),t.jsx($e,{type:"checkbox",disabled:!(l!=null&&l.isSearchEnded)||!f,checked:r,onChange:T=>a(T.target.checked)})]}),d==null?void 0:d.map(T=>t.jsxs(Dc,{children:[t.jsxs(g,{flexGrow:1,children:[t.jsxs(S,{fontSize:"15px",children:[b(C[T.searchType],T.searchUrl)," ",!T.isSearchEnded&&![U.LINKEDIN_CONNECTIONS,U.EMAIL_CONNECTIONS,U.TWITTER_CONNECTIONS].some(j=>j===T.searchType)&&t.jsx(S,{component:"span",fontWeight:"bold",inline:!0,fontSize:"15px",children:"(running)"})]}),t.jsxs(S,{color:"#8a8a8a",fontSize:"13px",children:["Lead Source created on ",Ms(T.createdAt,"Do MMMM YYYY"),", at"," ",se(T.createdAt).format("HH:mm")]})]}),t.jsx($e,{type:"checkbox",disabled:!(T!=null&&T.isSearchEnded)||tT.includes(T.searchType),checked:i.includes(T.id),onChange:j=>E(T.id,j.target.checked)})]},T.id))]})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:w,children:"Cancel"}),t.jsx(k,{onClick:I,processing:m,disabled:!r&&!i.length,children:"Confirm"})]})]})},sT=y(g,{target:"e7ym7n50"})("margin-left:20px;padding:5px 15px;cursor:pointer;color:",({theme:e})=>e.palette.primary.wlLight,";border:1px solid ",({theme:e})=>e.palette.light.dark,";font-size:10px;border-radius:4px;transition:0.2s;&:hover{background:",({theme:e})=>e.palette.primary.wlLight,";border:1px solid ",({theme:e})=>e.palette.primary.wlLight,";color:#fff;}"),rT=({values:e,setValues:n})=>{const[s,r]=c.useState(e),a=P(),i=()=>{a(Q())},o=(d,p)=>{const h={...s,[p]:d.target.checked};r(h),n(h)},l=!!Object.values(s).find(d=>d),u=()=>{const d={first:!1,second:!1,third:!1};r(d),n(d)};return t.jsxs(t.Fragment,{children:[t.jsxs(g,{py:"30px",px:"40px",display:"flex",alignItems:"center",fontSize:"14px",height:"20px",children:["Connections",l&&t.jsx(sT,{onClick:u,children:"X CLEAR ALL"})]}),t.jsxs(g,{py:"30px",px:"40px",display:"flex",justifyContent:"space-between",bgcolor:"light.light",children:[t.jsxs(g,{display:"flex",alignItems:"center",children:[t.jsx($e,{id:"first",type:"checkbox",checked:s.first,onChange:d=>o(d,"first")}),t.jsx("label",{htmlFor:"first",children:"1st degree"})]}),t.jsxs(g,{display:"flex",alignItems:"center",children:[t.jsx($e,{id:"second",type:"checkbox",checked:s.second,onChange:d=>o(d,"second")}),t.jsx("label",{htmlFor:"second",children:"2nd degree"})]}),t.jsxs(g,{display:"flex",alignItems:"center",children:[t.jsx($e,{id:"third",type:"checkbox",checked:s.third,onChange:d=>o(d,"third")}),t.jsx("label",{htmlFor:"third",children:"3rd+ degree"})]})]}),t.jsx(g,{py:"20px",px:"40px",display:"flex",justifyContent:"flex-end",children:t.jsx(k,{onClick:i,children:"Save"})})]})},aT=y(g,{target:"e1t9e5o00"})("margin-left:20px;padding:5px 15px;cursor:pointer;color:",({theme:e})=>e.palette.primary.wlLight,";border:1px solid ",({theme:e})=>e.palette.light.dark,";font-size:10px;border-radius:4px;transition:0.2s;&:hover{background:",({theme:e})=>e.palette.primary.wlLight,";border:1px solid ",({theme:e})=>e.palette.primary.wlLight,";color:#fff;}"),iT=["english","french","spanish","portuguese","russian","polish"],oT=({values:e,setValues:n})=>{const[s,r]=c.useState(e),a=P(),i=()=>{a(Q())},o=(d,p)=>{const h={...s,[p]:d.target.checked};r(h),n(h)},l=!!Object.values(s).find(d=>d),u=()=>{const d={english:!1,french:!1,spanish:!1,portuguese:!1,russian:!1,polish:!1};r(d),n(d)};return t.jsxs(t.Fragment,{children:[t.jsxs(g,{py:"30px",px:"40px",display:"flex",alignItems:"center",fontSize:"14px",height:"20px",children:["Profile languages",l&&t.jsx(aT,{onClick:u,children:"X CLEAR ALL"})]}),t.jsx(g,{py:"30px",px:"40px",display:"flex",justifyContent:"space-between",flexWrap:"wrap",bgcolor:"light.light",children:iT.map(d=>t.jsxs(g,{display:"flex",alignItems:"center",width:"50%",my:"14px",children:[t.jsx($e,{id:d,type:"checkbox",checked:s[d],onChange:p=>o(p,d)}),t.jsx("label",{htmlFor:d,children:d})]},d))}),t.jsx(g,{py:"20px",px:"40px",display:"flex",justifyContent:"flex-end",children:t.jsx(k,{onClick:i,children:"Save"})})]})},lT=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_757_23860)"},c.createElement("path",{d:"M12.714 12.7142C13.9204 11.5078 14.6666 9.84111 14.6666 8.00016C14.6666 4.31826 11.6818 1.3335 7.99992 1.3335C6.15897 1.3335 4.4923 2.07969 3.28587 3.28612M12.714 12.7142C11.5075 13.9206 9.84087 14.6668 7.99992 14.6668C4.31802 14.6668 1.33325 11.6821 1.33325 8.00016C1.33325 6.15921 2.07944 4.49255 3.28587 3.28612M12.714 12.7142L3.28587 3.28612",stroke:"white",strokeWidth:1.5})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_757_23860"},c.createElement("rect",{width:16,height:16,fill:"white"})))),lV=y(g,{target:"e1aabnsp11"})({name:"1nxk8z5",styles:"display:flex;flex-direction:column;width:280px;flex-shrink:0;background-color:#ffffff;max-height:100%;border-radius:12px;overflow-x:hidden;overflow-y:auto"}),cV=y(g,{target:"e1aabnsp10"})("background-color:#ffffff;border-top-right-radius:12px;border-top-left-radius:12px;position:sticky;top:0;padding:12px 16px;z-index:5;border-bottom:1px solid ",({theme:e})=>e.palette.greyNeutral[20],";"),dV=y(g,{target:"e1aabnsp9"})("position:sticky;bottom:0;padding:12px;background-color:#ffffff;border-top:1px solid ",({theme:e})=>e.palette.greyNeutral[20],";border-bottom-left-radius:12px;border-bottom-right-radius:12px;"),cT=y(g,{target:"e1aabnsp8"})({name:"1mz5o01",styles:"flex:1 1 auto;display:flex;flex-direction:column;gap:8px;background-color:#ffffff;padding:16px"}),dT=y(g,{target:"e1aabnsp6"})({name:"1fq1uxf",styles:"display:flex;flex-wrap:wrap;height:24px;width:100%;overflow:hidden;cursor:pointer;gap:8px"}),uV=y(S,{target:"e1aabnsp5"})({name:"1ozkgka",styles:"color:inherit;&:hover{color:inherit;}"}),pV=y(g,{shouldForwardProp:e=>On(e),target:"e1aabnsp4"})("display:flex;justify-content:center;align-items:center;height:calc(100% - 90px);background-image:url(",e=>e.url,");background-repeat:no-repeat;background-size:cover;"),uT=y(g,{target:"e1aabnsp3"})("border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:6px;padding:4px;"),Mi=y(g,{target:"e1aabnsp2"})("display:flex;cursor:",({disabled:e})=>e?"not-allowed":"pointer",";align-items:center;padding:8px;width:fit-content;"),a3=y(g,{target:"e1aabnsp1"})("display:flex;justify-content:center;align-items:center;border-radius:4px 0 0 4px;border-color:",({theme:e})=>e.palette.blue.light,";border-width:1px 0 1px 1px;border-style:solid;background-color:",({theme:e})=>e.palette.bg.blue,";color:",({theme:e})=>e.palette.blue.primary,";font-size:12px;line-height:18px;height:20px;width:20px;overflow:hidden;box-sizing:border-box;text-align:center;"),pT=y(a3,{target:"e1aabnsp0"})({name:"x3a2gr",styles:"border-radius:0 4px 4px 0;border-width:1px"}),hT=y(g,{target:"e1ategzp3"})("border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:6px;"),mT=y(g,{target:"e1ategzp2"})("flex-wrap:nowrap;display:inline-flex;align-items:center;justify-content:flex-start;width:min-content;max-width:100%;border-radius:4px;padding:2px 4px;color:#ffffff;box-sizing:border-box;background-color:",({theme:e})=>e.palette.additional.success,";border:1px solid #cde5d54d;transition:0.2s;cursor:pointer;&.exclude{background-color:",({theme:e})=>e.palette.additional.red50,";border-color:#ffdbda4d;}& svg{flex-shrink:0;display:block;width:16px;height:16px;min-width:16px;min-height:16px;opacity:1;visibility:visible;}"),gT=y("span",{target:"e1ategzp1"})({name:"1rpri57",styles:"margin:0 4px;font-size:14px;line-height:20px;
71display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle"}),xT=y(g,{target:"e1ategzp0"})({name:"f7l23o",styles:"display:flex;align-items:center;justify-content:center;width:16px;height:16px;flex-shrink:0;min-width:16px;min-height:16px"}),zt=({valueName:e,label:n,placeholder:s,parsedValue:r,options:a,onParsedValueChange:i,isAsync:o,disableExclude:l=!1,loadDefaultOptions:u,...d})=>{const{palette:p}=Ve(),[h,m]=c.useState(!1),f=E=>{i(e,E)},C=({children:E,...b})=>{const{getValue:w,options:I}=b,T=({value:L,exclude:_},N)=>{var O;const A=_?lT:ju,R=((O=I==null?void 0:I.find(B=>B&&(B==null?void 0:B.value)===L))==null?void 0:O.label)||L,V=`${L}-${_}-${N}`;return t.jsxs(mT,{className:Ee({exclude:_}),onClick:B=>{if(l)return;B.stopPropagation();const D=[...r].map((M,F)=>F===N?{...M,exclude:!(M!=null&&M.exclude)}:M);f(D)},children:[t.jsx(we,{title:!l&&"Click to include / exclude",children:t.jsxs(g,{display:"flex",alignItems:"center",overflow:"hidden",children:[t.jsx(xT,{children:t.jsx(A,{cursor:"pointer",style:{color:"#ffffff",fill:"none",stroke:"#ffffff",strokeWidth:"1.5"}},V)}),t.jsx(gT,{children:R})]})}),t.jsx(Xt,{height:"14px",width:"14px",cursor:"pointer",onClick:B=>{B.stopPropagation();const D=w().filter((M,F)=>F!==N);f(D)}})]})},j=w();return t.jsxs(vn.SelectContainer,{...b,children:[E,t.jsx(g,{display:"flex",flexWrap:"wrap",gap:"6px",mt:j.length&&"8px",children:j.map(T)})]})};return t.jsxs(hT,{children:[t.jsxs(g,{display:"flex",justifyContent:"space-between",alignItems:"center",onClick:()=>m(E=>!E),sx:{cursor:"pointer"},p:"12px",children:[t.jsx(S,{medium:!0,fontSize:"12px",lineHeight:"16px",children:n}),t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",children:[(r==null?void 0:r.length)>0&&t.jsxs(g,{display:"flex",alignItems:"center",children:[t.jsx(a3,{children:r.length}),t.jsx(pT,{onClick:E=>{E.stopPropagation(),f([])},children:t.jsx(Xt,{height:"14px",width:"14px",cursor:"pointer"})})]}),h?t.jsx(Nr,{color:p.gray[400]}):t.jsx(ln,{color:p.gray[400]})]})]}),t.jsx(Oo,{in:h,timeout:"auto",children:t.jsx(g,{padding:"12px",borderTop:`1px solid ${p.greyBlue[30]}`,children:t.jsx(Xe,{isMulti:!0,isAsync:o,isCreatable:!(a!=null&&a.length),placeholder:s,searchable:!0,additionalProps:{value:r,controlShouldRenderValue:!1,components:{SelectContainer:C,DropdownIndicator:()=>null,MultiValue:()=>null,ClearIndicator:()=>null},...!a&&{noOptionsMessage:()=>"Type and hit Return"},...u&&{defaultOptions:!0},formatCreateLabel:E=>t.jsxs(t.Fragment,{children:['Add "',E,'"']}),...d},...a&&{options:a},onChange:E=>{const b=E||[],w=Array.isArray(b)?b==null?void 0:b.slice(-1).pop():b;w&&f([...S2(d.isMulti)&&!d.isMulti?[]:r,{...w,exclude:!1}])}})})})]})},fT=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_4203_167088)"},c.createElement("path",{d:"M1.33325 9.33333C1.33325 6.99557 1.33325 5.82669 1.93856 5.03995C2.04937 4.89592 2.17318 4.76386 2.3082 4.64566C3.04577 4 4.1416 4 6.33325 4H9.66659C11.8582 4 12.9541 4 13.6916 4.64566C13.8267 4.76386 13.9505 4.89592 14.0613 5.03995C14.6666 5.82669 14.6666 6.99557 14.6666 9.33333C14.6666 11.6711 14.6666 12.84 14.0613 13.6267C13.9505 13.7707 13.8267 13.9028 13.6916 14.021C12.9541 14.6667 11.8582 14.6667 9.66659 14.6667H6.33325C4.1416 14.6667 3.04577 14.6667 2.3082 14.021C2.17318 13.9028 2.04937 13.7707 1.93856 13.6267C1.33325 12.84 1.33325 11.6711 1.33325 9.33333Z",stroke:"#666666"}),c.createElement("path",{d:"M10.6666 3.99992C10.6666 2.74284 10.6666 2.1143 10.2761 1.72378C9.88554 1.33325 9.257 1.33325 7.99992 1.33325C6.74284 1.33325 6.1143 1.33325 5.72378 1.72378C5.33325 2.1143 5.33325 2.74284 5.33325 3.99992",stroke:"#666666",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M7.99984 7.33317C7.26346 7.33317 6.6665 7.78089 6.6665 8.33317C6.6665 8.88546 7.26346 9.33317 7.99984 9.33317C8.73622 9.33317 9.33317 9.78089 9.33317 10.3332C9.33317 10.8855 8.73622 11.3332 7.99984 11.3332M7.99984 7.33317C8.58038 7.33317 9.07426 7.61144 9.2573 7.99984M7.99984 7.33317V6.6665M7.99984 11.3332C7.4193 11.3332 6.92541 11.0549 6.74237 10.6665M7.99984 11.3332V11.9998",stroke:"#666666",strokeLinecap:"round"}),c.createElement("path",{d:"M4 8H1.33333",stroke:"#666666",strokeLinecap:"round"}),c.createElement("path",{d:"M14.6665 8L11.9998 8",stroke:"#666666",strokeLinecap:"round"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_4203_167088"},c.createElement("rect",{width:16,height:16,fill:"white"})))),CT=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M10 14.6668L10 3.3335C10 1.67883 9.65467 1.3335 8 1.3335L4 1.3335C2.34533 1.3335 2 1.67883 2 3.3335L2 14.6668L10 14.6668ZM10 14.6668L10 5.3335L12 5.3335C13.6547 5.3335 14 5.67883 14 7.3335L14 14.6668L10 14.6668ZM5.33333 4.00016L6.66667 4.00016M5.33333 6.00016L6.66667 6.00016M5.33333 8.00016H6.66667M7.66667 14.6668L7.66667 12.0002C7.66667 11.3716 7.66667 11.0574 7.4714 10.8621C7.27614 10.6668 6.96187 10.6668 6.33333 10.6668H5.66667C5.03813 10.6668 4.72386 10.6668 4.5286 10.8621C4.33333 11.0574 4.33333 11.3716 4.33333 12.0002L4.33333 14.6668",stroke:"#666666",strokeLinejoin:"round"})),yT=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_4202_167057)"},c.createElement("path",{d:"M7.99992 14.6666C11.6818 14.6666 14.6666 11.6818 14.6666 7.99992C14.6666 4.31802 11.6818 1.33325 7.99992 1.33325C4.31802 1.33325 1.33325 4.31802 1.33325 7.99992C1.33325 11.6818 4.31802 14.6666 7.99992 14.6666Z",stroke:"#666666"}),c.createElement("path",{d:"M4 3.14008C4.52 3.61408 5.592 4.90875 5.71667 6.29808C5.83333 7.59741 6.69 8.65341 8 8.66675C8.50333 8.67208 9.012 8.30875 9.01067 7.80541C9.01067 7.65008 8.98467 7.49075 8.94467 7.34408C8.87734 7.11937 8.89709 6.87755 9 6.66675C9.40667 5.82875 10.2067 5.60341 10.84 5.14808C11.1207 4.94608 11.3773 4.73275 11.49 4.56141C11.8027 4.08808 12.1147 3.14075 11.9587 2.66675M14.6667 8.66675C14.4467 9.28741 14.292 10.9167 11.812 10.9427C11.812 10.9427 9.61667 10.9427 8.958 12.1841C8.43067 13.1774 8.738 14.2527 8.958 14.6667",stroke:"#666666"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_4202_167057"},c.createElement("rect",{width:16,height:16,fill:"white"})))),ET=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M1.33325 5.33333C1.33325 6.22785 6.73736 8.66667 7.99992 8.66667C9.26247 8.66667 14.6666 6.22785 14.6666 5.33333C14.6666 4.43881 9.26247 2 7.99992 2C6.73736 2 1.33325 4.43881 1.33325 5.33333Z",stroke:"#666666",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M4 7.33325L4.16117 11.03C4.16609 11.1428 4.17708 11.2561 4.21439 11.3627C4.28485 11.5638 4.40387 11.7447 4.57804 11.8695C6.06108 12.9323 9.93892 12.9323 11.422 11.8695C11.5961 11.7447 11.7152 11.5638 11.7856 11.3627C11.8229 11.2561 11.8339 11.1428 11.8388 11.03L12 7.33325",stroke:"#666666",strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M14.1665 6.33325C14.1665 6.05711 13.9426 5.83325 13.6665 5.83325C13.3904 5.83325 13.1665 6.05711 13.1665 6.33325H14.1665ZM12.7141 13.1755L13.2006 13.2911L12.7141 13.1755ZM14.6189 13.1755L15.1053 13.06L14.6189 13.1755ZM13.1665 6.33325V11.0047H14.1665V6.33325H13.1665ZM13.2006 13.2911C13.2972 12.8846 13.4633 12.5131 13.6411 12.1651C13.804 11.8464 14.0173 11.4775 14.1315 11.1884L13.2015 10.8211C13.1102 11.0522 12.9575 11.3053 12.7506 11.7101C12.5586 12.0858 12.3513 12.5396 12.2277 13.06L13.2006 13.2911ZM15.1053 13.06C14.9817 12.5396 14.7744 12.0858 14.5824 11.7101C14.3755 11.3053 14.2228 11.0522 14.1315 10.8211L13.2015 11.1884C13.3157 11.4775 13.529 11.8464 13.6919 12.1651C13.8
71697 12.5131 14.0358 12.8846 14.1324 13.2911L15.1053 13.06ZM13.8768 13.4999H13.4562V14.4999H13.8768V13.4999ZM12.2277 13.06C12.1454 13.4062 12.096 13.8642 12.4222 14.1913C12.5749 14.3445 12.7632 14.4164 12.9291 14.4532C13.0944 14.4899 13.2758 14.4999 13.4562 14.4999V13.4999C13.304 13.4999 13.2066 13.4904 13.1456 13.4769C13.0852 13.4635 13.0998 13.4546 13.1303 13.4852C13.1688 13.5238 13.1693 13.5598 13.1674 13.5396C13.1645 13.5083 13.1667 13.4335 13.2006 13.2911L12.2277 13.06ZM14.1324 13.2911C14.1663 13.4335 14.1685 13.5083 14.1656 13.5396C14.1637 13.5598 14.1642 13.5238 14.2027 13.4852C14.2332 13.4546 14.2479 13.4635 14.1874 13.4769C14.1264 13.4904 14.029 13.4999 13.8768 13.4999V14.4999C14.0572 14.4999 14.2386 14.4899 14.4039 14.4532C14.5698 14.4164 14.7581 14.3445 14.9109 14.1913C15.237 13.8642 15.1876 13.4062 15.1053 13.06L14.1324 13.2911Z",fill:"#666666"})),ST=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M2.51846 7.96173C1.88644 6.8597 1.58127 5.95982 1.39727 5.04764C1.12512 3.69855 1.74791 2.3807 2.77963 1.53981C3.21567 1.18442 3.71553 1.30584 3.97338 1.76843L4.5555 2.81277C5.0169 3.64054 5.2476 4.05443 5.20184 4.49322C5.15608 4.93202 4.84495 5.2894 4.22269 6.00417L2.51846 7.96173ZM2.51846 7.96173C3.79771 10.1923 5.80527 12.201 8.03847 13.4817M8.03847 13.4817C9.1405 14.1138 10.0404 14.4189 10.9526 14.6029C12.3017 14.8751 13.6195 14.2523 14.4604 13.2206C14.8158 12.7845 14.6944 12.2847 14.2318 12.0268L13.1874 11.4447C12.3597 10.9833 11.9458 10.7526 11.507 10.7984C11.0682 10.8441 10.7108 11.1553 9.99604 11.7775L8.03847 13.4817Z",stroke:"#666666",strokeWidth:1.2,strokeLinejoin:"round"})),bT=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8 1.8335C4.90437 1.8335 2.5 3.9799 2.5 7.00016C2.5 9.45413 3.5896 11.2459 4.84375 12.4333C5.47271 13.0288 6.13961 13.4682 6.72205 13.7569C7.32103 14.0538 7.78049 14.1667 8 14.1667C8.21951 14.1667 8.67897 14.0538 9.27795 13.7569C9.86039 13.4682 10.5273 13.0288 11.1562 12.4333C12.4104 11.2459 13.5 9.45413 13.5 7.00016C13.5 3.9799 11.0956 1.8335 8 1.8335ZM1.5 7.00016C1.5 3.35376 4.42896 0.833496 8 0.833496C11.571 0.833496 14.5 3.35376 14.5 7.00016C14.5 9.78074 13.2563 11.8222 11.8438 13.1595C11.1394 13.8263 10.3896 14.322 9.72205 14.6529C9.07103 14.9756 8.44715 15.1667 8 15.1667C7.55285 15.1667 6.92897 14.9756 6.27795 14.6529C5.61039 14.322 4.86063 13.8263 4.15625 13.1595C2.74373 11.8222 1.5 9.78074 1.5 7.00016ZM8 5.8335C7.17157 5.8335 6.5 6.50507 6.5 7.3335C6.5 8.16192 7.17157 8.8335 8 8.8335C8.82843 8.8335 9.5 8.16192 9.5 7.3335C9.5 6.50507 8.82843 5.8335 8 5.8335ZM5.5 7.3335C5.5 5.95278 6.61929 4.8335 8 4.8335C9.38071 4.8335 10.5 5.95278 10.5 7.3335C10.5 8.71421 9.38071 9.8335 8 9.8335C6.61929 9.8335 5.5 8.71421 5.5 7.3335Z",fill:"#666666"})),LT=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M10 6.66683C10 5.93045 9.10457 5.3335 8 5.3335C6.89543 5.3335 6 5.93045 6 6.66683C6 7.40321 6.89543 8.00016 8 8.00016C9.10457 8.00016 10 8.59712 10 9.3335C10 10.0699 9.10457 10.6668 8 10.6668C7.01394 10.6668 6.19454 10.1911 6.03007 9.56513",stroke:"#666666",strokeLinecap:"round"}),c.createElement("path",{d:"M11.9999 13.3337C13.4727 13.3337 14.6666 12.1398 14.6666 10.667C14.6666 9.9742 14.4024 9.34312 13.9693 8.86898C13.5194 8.37649 13.3707 8.17417 13.3116 7.51858C13.2034 6.31838 12.6899 5.14783 11.7712 4.22909C10.3182 2.77616 8.23556 2.33677 6.40174 2.91093C5.77308 3.10776 5.52806 3.04772 4.89945 2.82252C4.61842 2.72184 4.31558 2.66699 3.99992 2.66699C2.52716 2.66699 1.33325 3.8609 1.33325 5.33366C1.33325 6.02645 1.59744 6.65753 2.03056 7.13167C2.48046 7.62416 2.62915 7.82648 2.68825 8.48207C2.79646 9.68227 3.30994 10.8528 4.22868 11.7716C5.68161 13.2245 7.76428 13.6639 9.59809 13.0897C10.2268 12.8929 10.4718 12.9529 11.1004 13.1781C11.3814 13.2788 11.6843 13.3337 11.9999 13.3337Z",stroke:"#666666"})),wT=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M11.3334 3.33333L14.6667 3.33333M11.3334 5.33333L14.6667 5.33333M13.3334 7.33333H14.6667M3.38717 10.
711976C5.29172 9.04525 7.70836 9.04525 9.61291 10.1976C10.4251 10.689 12.5546 11.6924 11.2576 12.948C10.624 13.5613 9.91837 14 9.03121 14H3.96887C3.08171 14 2.37607 13.5613 1.74249 12.948C0.445491 11.6924 2.57498 10.689 3.38717 10.1976ZM9.00004 4.66667C9.00004 6.13943 7.80613 7.33333 6.33337 7.33333C4.86061 7.33333 3.66671 6.13943 3.66671 4.66667C3.66671 3.19391 4.86061 2 6.33337 2C7.80613 2 9.00004 3.19391 9.00004 4.66667Z",stroke:"#666666",strokeLinecap:"round"})),i3=e=>c.createElement("svg",{width:1200,height:1227,viewBox:"0 0 1200 1227",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z",fill:"currentColor"})),TT=y(CT,{target:"e1aqbt4s11"})("width:16px;height:16px;path{stroke:",({theme:e})=>e.palette.greyNeutral[60],";}"),jT=y(wT,{target:"e1aqbt4s10"})("width:16px;height:16px;path{stroke:",({theme:e})=>e.palette.greyNeutral[60],";}"),vT=y(bT,{target:"e1aqbt4s9"})("width:16px;height:16px;path{fill:",({theme:e})=>e.palette.greyNeutral[60],";}"),Uc=y(Ul,{target:"e1aqbt4s8"})("width:16px;height:16px;path{stroke:",({theme:e})=>e.palette.greyNeutral[60],";}"),IT=y(ST,{target:"e1aqbt4s7"})("width:16px;height:16px;path{stroke:",({theme:e})=>e.palette.greyNeutral[60],";}"),_T=y(i3,{target:"e1aqbt4s6"})("width:13px;height:13px;path{fill:",({theme:e})=>e.palette.greyNeutral[60],";}"),AT=y(LT,{target:"e1aqbt4s5"})("width:16px;height:16px;path{stroke:",({theme:e})=>e.palette.greyNeutral[60],";}"),Wt=y(g,{target:"e1aqbt4s4"})({name:"cbl2zs",styles:"width:max-content;display:flex;align-items:center;gap:6px"}),qt=y(S,{target:"e1aqbt4s3"})("color:",({theme:e})=>e.palette.greyNeutral[60],";"),Zt=y(S,{target:"e1aqbt4s2"})("color:",({theme:e})=>e.palette.greyBlue[100],";overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:300px;font-weight:500;"),NT=y(g,{target:"e1aqbt4s1"})({name:"1g292aw",styles:"display:flex;flex-direction:column;gap:12px;width:max-content"}),kT=y(g,{target:"e1aqbt4s0"})({name:"30c7c0",styles:"display:flex;flex-direction:column;gap:12px;width:max-content;overflow:hidden"}),RT="No available in your plan",Bt=e=>!(!e||e===RT||Array.isArray(e)&&!e.length),o3=(e,n,{hideLinkedin:s=!1,hideEmail:r=!1,hidePhone:a=!1,isAdvancedDetailsAllowed:i=!0,linkedInUrnFallback:o}={})=>{var L,_;const{currentEmployer:l,location:u,email:d,twitterHandle:p,linkedInData:h,skype:m,phone:f,linkedInUrn:C=o,key:E,linkedInHandle:b,industryName:w,languages:I=[]}=e||{},T=C||b||Ma(E)&&E,j={isShowLinkedin:!s&&!!T,isShowRole:Bt(e==null?void 0:e.currentTitle),isShowEmployer:Bt(l),isShowSchool:Bt(h==null?void 0:h.school),isShowEmail:Bt(d)&&i&&!r,isShowCSVEmail:(Bt((L=n==null?void 0:n.csvColumns)==null?void 0:L.csv_email)||Bt((_=n==null?void 0:n.csvColumns)==null?void 0:_.csv_emailaddress))&&i&&!r,isShowLocation:Bt(u),isShowPhone:Bt(f)&&i&&!a,isShowSkype:Bt(m)&&i,isShowTwitter:Bt(p)&&i,isShowIndustry:Bt(w)&&i,isShowLanguages:Bt(I)&&i};return{showList:j,isHidePersonalDetails:!Object.values(j).some(Boolean)}},Vl=({person:e,onShowChange:n,hideLinkedin:s=!1,hidePhone:r=!1,hideEmail:a=!1,noDivider:i=!1,leadInfo:o})=>{var m,f,C,E,b,w,I,T;const{checkFeature:l}=We(),[u]=l(X.connection),{selectedConversation:d}=fe(j=>j.conversation),{showList:p,isHidePersonalDetails:h}=o3(e,o,{hideLinkedin:s,hideEmail:a,hidePhone:r,isAdvancedDetailsAllowed:u,linkedInUrnFallback:d==null?void 0:d.entityUrn});return c.useEffect(()=>{n==null||n(h)},[h,n]),h?null:t.jsxs(t.Fragment,{children:[t.jsxs(g,{"data-testid":"personal_details",display:"flex",gap:"8px",mt:"12px",children:[t.jsxs(NT,{children:[p.isShowRole&&t.jsxs(Wt,{children:[t.jsx(jT,{}),t.jsx(qt,{children:"Job Title:"})]}),p.isShowEmployer&&t.jsxs(Wt,{children:[t.jsx(TT,{}),t.jsx(qt,{children:"Company:"})]}),p.isShowLocation&&t.jsxs(Wt,{children:[t.jsx(vT,{}),t.jsx(qt,{children:"Location:"})]}),p.isShowIndustry&&t.jsxs(Wt,{children:[t.jsx(fT,{}),t.jsx(qt,{children:"Industry:"})]}),p.isShowSchool&&t.jsxs(Wt,{children:[t.jsx(ET,{}),t.jsx(qt,{children:"School:"})]}),p.isShowCSVEmail&&t.jsxs(Wt,{children:[t.jsx(Uc,{}),t.jsx(qt,{children:"CSV Email:"})]}),p.isShowEmail&&t.jsxs(Wt,{children:[t.jsx(Uc,{}),t.jsx(qt,{children:"Email:"})]}),p.isShowPhone&&t.jsxs(Wt,{children:[t.jsx(IT,{}),t.jsx(qt,{children:"Phone:"})]}),p.isShowSkype&&t.jsxs(Wt,{children:[t.jsx(AT,{}),t.jsx(qt,{children:"Skype:"})]}),p.isShowTwitter&&t.jsxs(Wt,{children:[t.jsx(_T,{}),t.jsx(qt,{children:"X (Twitter):"})]}),p.isShowLanguages&&t.jsxs(Wt,{children:[t.jsx(yT,{}),t.jsx(qt,{children:"Languages:"})]})]}),t.jsxs(kT,{children:[p.isShowRole&&t.jsx(Zt,{children:e==null?void 0:e.currentTitle}),p.isShowEmployer&&t.jsx(Zt,{children:e==null?void 0:e.currentEmployer}),p.isShowLocation&&t.jsx(Zt,{children:e==null?void 0:e.location}),p.isShowIndustry&&t.jsx(Zt,{children:e==null?void 0:e.industryName}),p.isShowSchool&&t.jsx(Zt,{children:(m=e==null?void 0:e.linkedInData)==null?void 0:m.school}),p.isShowCSVEmail&&t.jsx(Zt,{children:t.jsx(je,{to:`mailto:${(f=o==null?void 0:o.csvColumns)!=null&&f.csv_emailaddress?(C=o==null?void 0:o.csvColumns)==null?void 0:C.csv_emailaddress:(E=o==null?void 0:o.csvColumns)==null?void 0:E.
71csv_email}`,external:!0,openNewTab:!0,fontSize:"14px",color:"blue.primary",crop:!0,children:(b=o==null?void 0:o.csvColumns)!=null&&b.csv_emailaddress?(w=o==null?void 0:o.csvColumns)==null?void 0:w.csv_emailaddress:(I=o==null?void 0:o.csvColumns)==null?void 0:I.csv_email})}),p.isShowEmail&&t.jsx(Zt,{children:t.jsx(je,{to:`mailto:${e==null?void 0:e.email}`,external:!0,openNewTab:!0,fontSize:"14px",color:"blue.primary",crop:!0,children:e==null?void 0:e.email})}),p.isShowPhone&&t.jsx(Zt,{children:t.jsx(je,{cursor:"pointer",to:`tel:${e==null?void 0:e.phone}`,external:!0,openNewTab:!0,fontSize:"14px",variant:"lightBlue",color:"greyBlue.100",crop:!0,children:e==null?void 0:e.phone})}),p.isShowSkype&&t.jsx(Zt,{children:e==null?void 0:e.skype}),p.isShowTwitter&&t.jsx(Zt,{children:t.jsx(je,{to:`https://twitter.com/${e==null?void 0:e.twitterHandle}`,external:!0,openNewTab:!0,fontSize:"14px",color:"blue.primary",crop:!0,children:e==null?void 0:e.twitterHandle})}),p.isShowLanguages&&t.jsx(Zt,{children:(T=e==null?void 0:e.languages)==null?void 0:T.join(", ")})]})]}),!i&&t.jsx(Ue,{my:"16px"})]})},Fl=({entityUrn:e,isExcluded:n,tooltipPlacement:s="left"})=>{const r=P(),{exportData:{selectedLeads:a}}=fe(d=>d.lead),{exportData:{selectedLeads:i}}=fe(d=>d.blacklistLeads),{companyName:o}=Fe(),{updateLead:l}=kx(e,{onMutate:()=>{a.find(d=>d.entityUrn===e)&&r(T0(a.map(d=>d.entityUrn===e?{...d,isExcluded:!n}:d))),i.find(d=>d.entityUrn===e)&&r(om(i.map(d=>d.entityUrn===e?{...d,isExcluded:!n}:d)))}}),{palette:u}=Ve();return t.jsx(Us,{tooltip:{title:`Toggle to exclude this lead from all ${o} actions across your campaigns`,placement:s},checked:!n,name:e,checkedBgColor:u.additional.success,uncheckedBgColor:u.additional.redDark,onChange:d=>{l({isExcluded:!d.currentTarget.checked})}})};se.extend(x2);const MT=y(jr,{target:"e19wqafz4"})({name:"1aynuae",styles:"width:20px;height:20px"}),PT=y(ht,{target:"e19wqafz3"})("height:74px;width:74px;background-color:",({theme:e})=>e.palette.lightGray.main,";vertical-align:middle;border-radius:125px;overflow:hidden;"),Bc=y(S,{target:"e19wqafz2"})("color:",({theme:e})=>e.palette.greyNeutral[60],";font-size:14px;font-weight:500;"),Pi=y(S,{target:"e19wqafz1"})("color:",({theme:e})=>e.palette.greyNeutral[80],";font-size:14px;"),Hc=y(S,{target:"e19wqafz0"})("color:",({theme:e})=>e.palette.greyNeutral[60],";text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:calc(480px - 150px);font-size:14px;margin-top:2px;margin-bottom:8px;"),OT=({onCancel:e,params:n})=>{var _,N,A,R,V;const s=P(),{companyName:r}=Fe(),{campaignId:a,entityUrn:i}=n??{},[o,l]=c.useState(!0),{leadInfo:u,isLeadLoading:d}=Un(i),{person:p}=u||{},h=(p==null?void 0:p.key)||i,{leadActions:m=[],isLoading:f}=uu(a,i,{enabled:!!a&&!!i}),{leadActivitiesData:C,isLoading:E}=hl({entityUrn:h,perPage:10},{enabled:!a&&!!h}),b=(p==null?void 0:p.name)||(p==null?void 0:p.workEmail)||`${(p==null?void 0:p.firstName)||""} ${(p==null?void 0:p.lastName)||""}`,w=!!((_=u==null?void 0:u.lead)!=null&&_.isExcluded)||!!((N=u==null?void 0:u.userNetwork)!=null&&N.isExcluded),I=(a?m:C==null?void 0:C.actions)||[],T=(p==null?void 0:p.linkedInUrn)||(p==null?void 0:p.linkedInHandle)||Ma(p==null?void 0:p.key)&&(p==null?void 0:p.key),j=()=>{e&&e(),s(Q())},L=c.useMemo(()=>p!=null&&p.name?p.name[0]:p!=null&&p.email?p.email[0]:p!=null&&p.workEmail?p.workEmail[0]:"",[p]);return t.jsxs(t.Fragment,{children:[t.jsx(et,{onClose:j,wrapperProps:{alignItems:"flex-start !important",padding:"16px !important",borderColor:"greyBlue.20"},marginRight:"0",width:"calc(100% - 20px)",children:t.jsxs(g,{display:"flex",flexDirection:"row",alignItems:"flex-start",gap:"16px",width:"100%",children:[t.jsx(PT,{firstLatter:L,src:(p==null?void 0:p.picture)||"",fallbackSrc:((A=p==null?void 0:p.linkedInData)==null?void 0:A.pic)||"",width:"74px",height:"74px",letterFontSize:"24px"}),t.jsxs(g,{display:"flex",flexDirection:"column",width:"calc(100% - 104px)",children:[t.jsx(we,{title:`See profile on ${r}`,children:t.jsx(je,{to:`/contacts/leads?person=${i}&tab=personal_details`,onClick:j,children:t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",children:[t.jsx(S,{fontSize:"18px",color:"inherit",width:"calc()",crop:!0,children:b}),t.jsx(g,{width:"20px",height:"20px",children:(p==null?void 0:p.isPremium)&&t.jsx(MT,{})})]})})}),t.jsx(Hc,{children:(R=u==null?void 0:u.person)==null?void 0:R.currentTitle}),T?t.jsx(je,{tooltip:"View profile on Linkedin",to:`https://www.linkedin.com/in/${T}`,openNewTab:!0,external:!0,leftIcon:!0,fontSize:"14px",variant:"lightBlue",display:"inline-flex",alignItems:"center",width:"max-content",color:"blue.primary",fontWeight:"500",children:"View on 
71LinkedIn"}):null,o&&t.jsx(Hc,{fontSize:"16px",mt:"6px",children:(V=u==null?void 0:u.person)==null?void 0:V.location})]})]})}),t.jsxs(he,{padding:"16px !important",children:[d?t.jsx(Pe,{mt:"15px"}):t.jsx(Vl,{leadInfo:u==null?void 0:u.lead,onShowChange:l,person:p}),t.jsxs(g,{children:[t.jsxs(g,{display:"flex",justifyContent:"space-between",mb:"12px",children:[t.jsx(Bc,{children:"Activity"}),t.jsx(Bc,{children:"Time"})]}),t.jsx(g,{maxHeight:"300px",overflow:"auto",display:"flex",flexDirection:"column",gap:"4px",width:"100%",children:f||E?t.jsx(Pe,{mt:"15px"}):I.map(({description:O,message:B,createdAt:D,id:M,sentEmailLead:F})=>t.jsxs(g,{width:"100%",display:"flex",justifyContent:"space-between",children:[t.jsx(Pi,{maxWidth:"calc(100% - 100px)",crop:!0,children:Yo(O,B,F==null?void 0:F.email)}),t.jsx(Pi,{children:se(D).fromNow()})]},M))})]}),!I.length&&!f&&!E&&t.jsx(g,{display:"flex",justifyContent:"center",children:t.jsx(Pi,{children:a?"No activity in this campaign.":"No activity yet."})})]}),t.jsxs(ge,{borderColor:"greyBlue.20",children:[t.jsxs(g,{display:"flex",alignItems:"center",gap:"10px",children:[t.jsx(Fl,{entityUrn:i,isExcluded:w,tooltipPlacement:"top"}),t.jsx(S,{children:"Exclude lead"})]}),t.jsx(k,{onClick:j,children:"Close"})]})]})},l3="/C_ZscM9S.png",c3=y(g,{target:"euqmgat1"})("width:130px;height:130px;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;background-image:url(",l3,");background-size:cover;background-position:center;background-repeat:no-repeat;"),DT=y(g,{target:"euqmgat0"})("background-color:",({theme:e})=>e.palette.greyBlue[10]||"#f5f5f5",";border-radius:8px;padding:9px 12px;border:1px solid ",({theme:e})=>e.palette.greyBlue[30]||"#e0e0e0",";max-height:40px;display:flex;align-items:center;"),UT=({params:{entityUrns:e,onAddToCampaign:n,onClose:s}})=>{const[r,a]=c.useState(null),[i,o]=c.useState(null),{data:l,isLoading:u}=J0(),{addLeadsToCampaign:d,isLoading:p}=w7({onSuccess:()=>{s==null||s()}}),h=(l==null?void 0:l.some(L=>L.campaigns&&L.campaigns.length>0))??!1,m=!u&&!h,f=()=>{if(!l)return[];const L={linkedin:"LinkedIn Campaign","multi-channel":"Multi-channel Campaign",company:"Company Campaign",inmail:"InMail Campaign"};return l.filter(_=>_.campaigns&&_.campaigns.length>0).map(_=>({value:_.category,label:L[_.category]||_.category.charAt(0).toUpperCase()+_.category.slice(1).replace("-"," ")}))};c.useEffect(()=>{if(l&&r===null){const L=f();L.length>0&&a(L[0].value)}else if(l&&r){const L=f();L.length>0&&!L.find(_=>_.value===r)&&a(L[0].value)}},[l]);const C=L=>{if(!l||!L)return[];const _=l.find(N=>N.category===L);return!_||!_.campaigns?[]:_.campaigns.map(N=>({value:String(N.id),label:N.name}))},E=()=>{s==null||s()},b=()=>{if(!i)return;const L=Number(i.value);Number.isNaN(L)||(d({campaignId:L,body:{entityUrns:e}}),n==null||n(i.value))},w=L=>{L&&(a(L.value),o(null))},I=L=>{o(L)},j=vs((L,_)=>{if(!r){_([]);return}const N=C(r);if(!L){setTimeout(()=>{_(N)},300);return}const A=N.filter(R=>R.label.toLowerCase().includes(L.toLowerCase()));setTimeout(()=>{_(A)},300)},500);return t.jsxs(t.Fragment,{children:[t.jsx(et,{onClose:E,children:"Choose Campaign"}),t.jsxs(he,{children:[u&&t.jsx(g,{display:"flex",justifyContent:"center",alignItems:"center",height:"135px",children:t.jsx(Pe,{marginTop:"0"})}),m&&t.jsx(g,{display:"flex",justifyContent:"center",alignItems:"center",height:"136px",children:t.jsxs(c3,{children:[t.jsx(S,{semibold:!0,fontSize:"16px",lineHeight:"24px",mb:"8px",width:"max-content",children:"No campaign yet"}),t.jsx(S,{color:"greyNeutral.60",width:"max-content",children:"It looks like you don't have campaign yet."})]})}),!u&&h&&t.jsxs(g,{display:"grid",gridTemplateColumns:"1fr 1fr",columnGap:"16px",children:[t.jsxs(g,{display:"flex",flexDirection:"column",gap:"16px",children:[t.jsx(Xe,{label:"Category*",options:f(),value:r?f().find(L=>L.value===r):null,onChange:w,searchable:!0}),r&&t.jsx(Xe,{label:"Campaign Name*",placeholder:"Search Campaign",isAsync:!0,onChange:I,value:i,searchable:!0,additionalProps:{defaultOptions:!0,cacheOptions:!0,loadOptions:(L,_)=>j(L||"",_)}},r)]}),t.jsxs(g,{display:"flex",flexDirection:"column",children:[t.jsx(S,{color:"greyNeutral.100",fontSize:"12px",children:"Number of selected leads:"}),t.jsx(DT,{children:t.jsx(S,{color:"greyNeutral.100",fontSize:"14px",lineHeight:"20px",children:Dn(e.length)})})]})]})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:E,disabled:p,children:"Cancel"}),t.jsx(k,{onClick:b,disabled:!i||p||!h,processing:p,children:"Confirm"})]})]})},Vc=e=>({...e,zIndex:"var(--app-select-menu-z-index, calc(var(--modal-z-index, 999999999) + 1))"}),Fc={menuPortal:Vc,menu:Vc},$c={menuPortalTarget:typeof document<"u"?document.body:null,menuPosition:"fixed"},Gc=y(g,{target:"edawn3m0"})("background-color:",({theme:e})=>e.palette.greyBlue[10]||"#f5f5f5",";border-radius:8px;padding:9px 12px;border:1px solid ",({theme:e})=>e.palette.greyBlue[30]||"#e0e0e0",";max-height:40px;
71display:flex;align-items:center;"),BT={linkedin:"LinkedIn Campaign","multi-channel":"Multi-channel Campaign",company:"Company Campaign",inmail:"InMail Campaign"},HT=({params:{seListId:e,listName:n,totalLeads:s,onClose:r}})=>{const[a,i]=c.useState(null),[o,l]=c.useState(null),{data:u,isLoading:d}=J0(),{addLeadsToCampaign:p,isLoading:h}=T7({onSuccess:()=>{r==null||r()}}),m=c.useMemo(()=>(u??[]).filter(N=>i5.includes(N.category)&&(N.campaigns??[]).length>0),[u]),f=c.useMemo(()=>m.map(N=>({value:N.category,label:BT[N.category]||N.category.charAt(0).toUpperCase()+N.category.slice(1).replace("-"," ")})),[m]),C=c.useMemo(()=>{if(!a)return[];const N=m.find(A=>A.category===a);return((N==null?void 0:N.campaigns)??[]).map(A=>({value:String(A.id),label:A.name}))},[m,a]),E=f.length>0;c.useEffect(()=>{if(!f.length)return;!!a&&f.some(A=>A.value===a)||(i(f[0].value),l(null))},[f,a]);const b=()=>{r==null||r()},w=()=>{if(!o)return;const N=Number(o.value);Number.isNaN(N)||p({campaignId:N,body:{seListIds:[e]}})},I=N=>{l(N)},T=N=>{N&&(i(N.value),l(null))},L=vs((N,A)=>{if(!N){setTimeout(()=>{A(C)},300);return}const R=C.filter(V=>V.label.toLowerCase().includes(N.toLowerCase()));setTimeout(()=>{A(R)},300)},500),_=()=>d?t.jsx(g,{display:"flex",justifyContent:"center",alignItems:"center",height:"135px",children:t.jsx(Pe,{marginTop:"0"})}):E?t.jsxs(g,{display:"grid",gridTemplateColumns:"1fr 1fr",columnGap:"16px",children:[t.jsxs(g,{display:"flex",flexDirection:"column",gap:"16px",children:[t.jsx(Xe,{label:"Category*",options:f,value:a?f.find(N=>N.value===a):null,onChange:T,searchable:!0,additionalProps:{...$c,styles:Fc}}),a&&t.jsx(Xe,{label:"Campaign Name*",placeholder:"Search Campaign",isAsync:!0,onChange:I,value:o,searchable:!0,additionalProps:{...$c,styles:Fc,defaultOptions:!0,cacheOptions:!0,loadOptions:(N,A)=>L(N||"",A)}},a)]}),t.jsxs(g,{display:"flex",flexDirection:"column",gap:"16px",children:[t.jsxs(g,{display:"flex",flexDirection:"column",children:[t.jsx(S,{color:"greyNeutral.100",fontSize:"12px",children:"Saved list:"}),t.jsx(Gc,{children:t.jsx(S,{color:"greyNeutral.100",fontSize:"14px",lineHeight:"20px",crop:!0,children:n})})]}),t.jsxs(g,{display:"flex",flexDirection:"column",children:[t.jsx(S,{color:"greyNeutral.100",fontSize:"12px",children:"Number of leads in saved list:"}),t.jsx(Gc,{children:t.jsx(S,{color:"greyNeutral.100",fontSize:"14px",lineHeight:"20px",children:Dn(s)})})]})]})]}):t.jsx(g,{display:"flex",justifyContent:"center",alignItems:"center",height:"136px",children:t.jsxs(c3,{children:[t.jsx(S,{semibold:!0,fontSize:"16px",lineHeight:"24px",mb:"8px",width:"max-content",children:"No campaign yet"}),t.jsx(S,{color:"greyNeutral.60",width:"max-content",children:"It looks like you don't have a LinkedIn, InMail, Multi-channel or Company campaign yet."})]})});return t.jsxs(t.Fragment,{children:[t.jsx(et,{onClose:b,children:"Choose Campaign"}),t.jsx(he,{"data-tutorial":"add-to-campaign-modal",children:_()}),t.jsxs(ge,{children:[t.jsx(k,{onClick:b,disabled:h,"data-tutorial":"add-to-campaign-cancel",children:"Cancel"}),t.jsx(k,{onClick:w,disabled:!o||h||!E,processing:h,children:"Confirm"})]})]})},VT=y(Ce,{target:"e1u7ielt0"})({name:"zwe5g6",styles:"height:34px"}),FT=({onCancel:e,onConfirm:n})=>{var d;const s=P(),{profile:r}=fe(p=>p.user),{register:a,formState:{errors:i},handleSubmit:o}=lt({defaultValues:{email:r.email??""}}),l=({email:p})=>{n&&n(p),s(Q())},u=()=>{e&&e(),s(Q())};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(VT,{register:a,name:"email",label:"Please type the email you want to use for receiving the preview email",placeholder:"Email",parameters:{required:"Please enter email",pattern:{value:yn,message:"Please enter a valid email"}}}),i.email&&t.jsx(S,{color:"#f62713",mt:"5px",children:(d=i.email)==null?void 0:d.message})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:u,children:"Cancel"}),t.jsx(k,{onClick:o(l),children:"Submit"})]})]})},$T=({onConfirm:e,onCancel:n,params:s})=>{const r=P(),[a,i]=c.useState((s==null?void 0:s.initialName)||""),[o,l]=c.useState(!1),u=!(s!=null&&s.isEdit),d=()=>{n==null||n(),r(Q())},p=async()=>{const h=a.trim();if(h){u?r(Q()):l(!0);try{await(e==null?void 0:e({name:h}))}finally{u||(l(!1),r(Q()))}}};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(S,{color:"#22252C",fontWeight:"400",fontSize:"14px",lineHeight:"20px",mb:"8px",children:"Enter the name of your leads list"}),t.jsx(Ce,{value:a,onChange:h=>i(h.target.value),placeholder:"Enter Name",className:"notranslate",translate:"no","data-tutorial":"save-list-modal-name"})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:d,disabled:o,variant:"secondary","data-tutorial":"save-list-modal-cancel",children:"Cancel"}),t.jsx(k,{onClick:p,disabled:!a.trim()||o,processing:o,"data-tutorial":"save-list-modal-save",children:"Save"})]})]})},GT=({onCancel:e,onConfirm:n,params:s})=>{const r=P(),a=()=>{n==null||n(s),r(Q())},i=()=>{e==null||e(),r(Q())},l=`Are you sure you want to delete${s!=null&&s.filterName?` "${s.filterName}"`:""}?`;return t.jsxs(t.Fragment,{children:[t.jsx(he,{children:t.jsx(S,{color:"violet.dark",children:l})}),t.jsxs(ge,{children:[t.jsx(k,{onClick:i,variant:"secondary",children:"Cancel"}),t.jsx(k,{onClick:a,"data-testid":"delete-saved-filter-confirm",children:"Confirm"})]})]})},zT=({onCancel:e,onConfirm:n,params:s})=>{const r=P(),a=()=>{n==null||n(s),r(Q())},i=()=>{e&&e(),r(Q())};return t.jsxs(t.Fragment,{children:[t.jsx(he,{children:t.jsx(S,{color:"violet.dark",children:"Are you sure you want to delete this tag?"})}),t.jsxs(ge,{children:[t.jsx(k,{onClick:i,children:"Cancel"}),t.jsx(k,{onClick:a,children:"Confirm"})]})]})},WT=({onCancel:e,onConfirm:n,params:s})=>{const r=P(),a=()=>{n==null||n(s),r(Q())},i=()=>{e==null||e(),r(Q())},l=`Are you sure you want to delete${s!=null&&s.listName?` "${s.listName}"`:""}?`;return t.jsxs(t.Fragment,{children:[t.jsx(he,{children:t.jsx(S,{color:"violet.dark",children:l})}),t.jsxs(ge,{children:[t.jsx(k,{onClick:i,variant:"secondary",children:"Cancel"}),t.jsx(k,{onClick:a,"data-tutorial":"delete-saved-list-confirm",children:"Confirm"})]})]})},qT=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M17 6C19.3456 6 20.0184 6 20.8263 6.61994C21.0343 6.77954 21.2205 6.96572 21.3801 7.17372C22 7.98164 22 9.15442 22 11.5V16C22 18.8284 22 20.2426 21.12
7113 21.1213C20.2426 22 18.8284 22 16 22H8C5.17157 22 3.75736 22 2.87868 21.1213C2 20.2426 2 18.8284 2 16V11.5C2 9.15442 2 7.98164 2.61994 7.17372C2.77954 6.96572 2.96572 6.77954 3.17372 6.61994C3.98164 6 4.65442 6 7 6",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"}),c.createElement("path",{d:"M17 7L16.1142 4.78543C15.732 3.82996 15.3994 2.7461 14.4166 2.25955C13.8924 2 13.2616 2 12 2C10.7384 2 10.1076 2 9.58335 2.25955C8.6006 2.7461 8.26801 3.82996 7.88583 4.78543L7 7",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M15.5 14C15.5 15.933 13.933 17.5 12 17.5C10.067 17.5 8.5 15.933 8.5 14C8.5 12.067 10.067 10.5 12 10.5C13.933 10.5 15.5 12.067 15.5 14Z",stroke:"currentColor",strokeWidth:1.5}),c.createElement("path",{d:"M11.9998 6H12.0088",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),Oi={fontSize:"12px",lineHeight:"18px"},Di=(e=!1)=>e?"greyNeutral.50":"inherit",ZT=(e,n)=>{U8(e).then(s=>n(s))},YT=vs(ZT,500),KT=({watch:e,onFilterChange:n,isDisableFilters:s,filtersBoxPadding:r})=>{const a=c.useCallback((i,o)=>{n(i,o)},[n]);return t.jsxs(cT,{sx:r!==void 0?{padding:r}:void 0,children:[t.jsx(zt,{disableExclude:!0,valueName:"firstNames",label:"First Name",placeholder:"Search for first name",parsedValue:e("firstNames")||[],onParsedValueChange:a}),t.jsx(zt,{disableExclude:!0,valueName:"lastNames",label:"Last Name",placeholder:"Search for last name",parsedValue:e("lastNames")||[],onParsedValueChange:a}),t.jsx(zt,{disableExclude:!0,valueName:"companies",label:"Company",placeholder:"Search for company",parsedValue:e("companies")||[],onParsedValueChange:a}),t.jsx(zt,{disableExclude:!0,valueName:"positions",label:"Job Title",placeholder:"Search for job title",parsedValue:e("positions")||[],onParsedValueChange:a}),t.jsx(zt,{disableExclude:!0,valueName:"countries",label:"Country",placeholder:"Search for country",parsedValue:e("countries")||[],options:T5,onParsedValueChange:a}),t.jsx(zt,{disableExclude:!0,valueName:"cities",label:"City",placeholder:"Search for city",parsedValue:e("cities")||[],onParsedValueChange:a}),t.jsx(zt,{isAsync:!0,disableExclude:!0,loadOptions:(i,o)=>YT(i,o),valueName:"industries",label:"Industry",placeholder:"Search for industry",parsedValue:e("industries")||[],onParsedValueChange:a,loadDefaultOptions:!0}),t.jsx(zt,{disableExclude:!0,valueName:"companySizes",label:"Employees",placeholder:"Search for employees",parsedValue:e("companySizes")||[],onParsedValueChange:a,options:w5}),t.jsx(zt,{disableExclude:!0,valueName:"languages",label:"Language",placeholder:"Search for language",options:N5.map(i=>({value:i,label:i})),parsedValue:e("languages")||[],onParsedValueChange:a}),t.jsx(zt,{disableExclude:!0,valueName:"skills",label:"Skill",placeholder:"Search for skill",parsedValue:e("skills")||[],onParsedValueChange:a}),t.jsx(zt,{disableExclude:!0,valueName:"schoolNames",label:"School",placeholder:"Search for school",parsedValue:e("schoolNames")||[],onParsedValueChange:a}),t.jsxs(uT,{children:[t.jsx(Mi,{disabled:s,checked:e("withLinkedinPremium"),onClick:()=>!s&&a("withLinkedinPremium",!e("withLinkedinPremium")),children:t.jsx(we,{title:s?xe.premium:"Select to filter with LinkedIn premium",children:t.jsxs(g,{display:"flex",alignItems:"center",gap:"4px",children:[t.jsx($e,{disabled:s,enablePropagation:!0,readOnly:!0,checked:e("withLinkedinPremium"),"data-testid":"isPremium-checkbox"}),t.jsx(S,{color:Di(s),...Oi,children:"LinkedIn Premium"}),t.jsx(jr,{opacity:s?"0.6":"1"})]})})}),t.jsx(Mi,{disabled:s,checked:e("isOpenLink"),onClick:()=>!s&&a("isOpenLink",!e("isOpenLink")),children:t.jsx(we,{title:s?xe.premium:"Select to filter connections with Open Link",children:t.jsxs(g,{display:"flex",alignItems:"center",gap:"4px",children:[t.jsx($e,{disabled:s,enablePropagation:!0,readOnly:!0,checked:e("isOpenLink"),"data-testid":"isOpenLink-checkbox"}),t.jsx(S,{color:Di(s),...Oi,children:"with Openlink"}),t.jsx(er,{opacity:s?"0.6":"1"})]})})}),t.jsx(Mi,{disabled:s,checked:e("withPicture"),onClick:()=>!s&&a("withPicture",!e("withPicture")),"data-tutorial":"lead-finder-with-picture",children:t.jsx(we,{title:s?xe.premium:"Select to filter with picture",children:t.jsxs(g,{display:"flex",alignItems:"center",gap:"4px",children:[t.jsx($e,{disabled:s,enablePropagation:!0,readOnly:!0,checked:e("withPicture"),"data-testid":"withPicture-checkbox"}),t.jsx(S,{color:Di(s),...Oi,children:"with Picture"}
71),t.jsx(qT,{width:"16px",height:"16px",opacity:s?"0.6":"1"})]})})})]})]})},QT=y(g,{target:"e1rte0mi1"})({name:"18uqayh",styles:"margin-bottom:16px"}),XT=y(g,{target:"e1rte0mi0"})({name:"njg4z6",styles:"max-height:55vh;overflow-y:auto"}),JT=({onConfirm:e,onCancel:n,params:s})=>{const r=P(),{isDisableFilters:a}=$u(),{watch:i,setValue:o,handleSubmit:l}=lt({defaultValues:s==null?void 0:s.initialCriteria}),u=c.useCallback((f,C)=>{o(f,C,{shouldDirty:!0})},[o]),d=()=>{n==null||n(),r(Q())},p=l(async f=>{await(e==null?void 0:e({criteria:f})),r(Q())}),h=i(),m=O0(h);return s?t.jsxs(t.Fragment,{children:[t.jsxs(g,{padding:"24px",children:[t.jsxs(QT,{children:[t.jsx(S,{semibold:!0,fontSize:"12px",lineHeight:"16px",color:"greyNeutral.100",children:s.filterName}),t.jsx(S,{color:"#656F7D",fontSize:"12px",lineHeight:"16px",mt:"4px",children:f9(s.createdAt)})]}),t.jsx(XT,{children:t.jsx(KT,{watch:i,onFilterChange:u,isDisableFilters:a,filtersBoxPadding:0})})]}),t.jsxs(g,{px:"24px",pb:"24px",pt:"16px",display:"flex",justifyContent:"space-between",gap:"12px",children:[t.jsx(k,{onClick:d,variant:"secondary",children:"Cancel"}),t.jsx(k,{onClick:p,disabled:m,"data-testid":"edit-filter-modal-update",children:"Update Filter"})]})]}):null},ej=({onConfirm:e,onCancel:n,params:s})=>{const r=P(),[a,i]=c.useState((s==null?void 0:s.initialName)||""),[o,l]=c.useState(!1),u=a.trim(),d=u.length>ci,p=()=>{n==null||n(),r(Q())},h=async()=>{if(!(!u||d)){l(!0);try{await(e==null?void 0:e({name:u}))}finally{l(!1),r(Q())}}};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(S,{color:"#22252C",fontWeight:"400",fontSize:"14px",lineHeight:"20px",mb:"8px",children:(s==null?void 0:s.description)||"Enter the name of your filter"}),t.jsx(Ce,{value:a,onChange:m=>i(m.target.value),placeholder:"Enter Name",maxLength:ci,className:"notranslate",translate:"no","data-testid":"save-filter-modal-name"}),d&&t.jsx(S,{color:"error.500",fontSize:"12px",lineHeight:"16px",mt:"4px",children:`Filter name must be ${ci} characters or fewer`})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:p,disabled:o,variant:"secondary",children:"Cancel"}),t.jsx(k,{onClick:h,disabled:!u||d||o,processing:o,"data-testid":"save-filter-modal-save",children:(s==null?void 0:s.confirmLabel)||"Save"})]})]})},tj=({onConfirm:e,params:{name:n}})=>{const s=P(),r=()=>{s(Q())},a=()=>{e==null||e(),r()};return t.jsxs(t.Fragment,{children:[t.jsx(et,{onClose:r,children:"Delete conversation"}),t.jsx(he,{children:t.jsxs(S,{children:["Are you sure you want to delete your entire conversation history with"," ",t.jsx(S,{component:"span",semibold:!0,inline:!0,children:n}),"?"]})}),t.jsxs(ge,{children:[t.jsx(k,{onClick:r,children:"Cancel"}),t.jsx(k,{onClick:a,children:"Confirm"})]})]})},nj=({onCancel:e,params:n})=>{var C;const s=P(),{profile:r}=fe(E=>E.user),{campaignId:a,filters:i}=n||{},{register:o,formState:{errors:l},handleSubmit:u}=lt({defaultValues:{email:r.email??""}}),{exportCampaignActivity:d,isLoading:p,isSuccess:h}=A7(a),m=({email:E})=>{d({email:E,filters:i})},f=()=>{e&&e(),s(Q())};return t.jsxs(Hn,{children:[t.jsx(et,{onClose:f,children:h?"Export confirmation":"Email confirmation"}),t.jsx(he,{children:h?t.jsx(S,{color:"violet.dark",children:"We are processing your request. You will receive the exported file on an email shortly."}):t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:"Please type the email you want to use for receiving export",register:o,name:"email",parameters:{required:"Please enter email",pattern:{value:yn,message:"Please enter a valid email"}},placeholder:"email"}),l.email&&t.jsx(S,{color:"additional.red50",mt:"6px",children:(C=l.email)==null?void 0:C.message})]})}),t.jsxs(ge,{alignToTheEnd:h,children:[t.jsx(k,{onClick:f,children:h?"Close":"Cancel"}),!h&&t.jsx(k,{disabled:p,processing:p,onClick:u(m),children:"Confirm"})]})]})},sj=({onCancel:e,params:n})=>{var L;const s=P(),{profile:r}=fe(_=>_.user),{isConnectionsExport:a,isLeadsExport:i,isBlacklist:o=!1,isExportAll:l=!1}=n??{},{register:u,formState:{errors:d},handleSubmit:p}=lt({defaultValues:{email:r.email??""}}),{exportLeadsCsv:h,isLoading:m,isSuccess:f}=Ix(o,l),{exportConnectionsCsv:C,isLoading:E,isSuccess:b}=U7(o,l),w=f||b,I=m||E,T=({email:_})=>{i&&h(_),a&&C(_)},j=()=>{e&&e(),s(Q())};return t.jsxs(Hn,{children:[t.jsx(et,{onClose:j,children:w?"Export confirmation":"Email confirmation"}),t.jsx(he,{children:w?t.jsx(S,{color:"violet.dark",children:"We are processing your request. You will receive the exported file on an email shortly."}):t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:"Please type the email you want to use for receiving export",register:u,name:"email",parameters:{required:"Please enter email",pattern:{value:yn,message:"Please enter a valid email"}},placeholder:"email"}),d.email&&t.jsx(S,{color:"additional.red50",mt:"6px",children:(L=d.email)==null?void 0:L.message})]})}),t.jsxs(ge,{alignToTheEnd:w,children:[t.jsx(k,{onClick:j,children:w?"Close":"Cancel"}),!w&&t.jsx(k,{disabled:I,processing:I,onClick:p(T),children:"Confirm"})]})]})},rj=({onCancel:e,params:n})=>{var C;const s=P(),{profile:r}=fe(E=>E.user),{campaignId:a,...i}=n??{},{register:o,formState:{errors:l},handleSubmit:u}=lt({defaultValues:{email:r.email??""}}),{exportCSV:d,isLoading:p,isSuccess:h=!1}=_7(a),m=({email:E})=>d({...i,email:E}),f=()=>{e&&e(),s(Q())};return t.jsxs(Hn,{children:[t.jsx(et,{onClose:f,children:h?"Export confirmation":"Email confirmation"}),t.jsx(he,{children:h?t.jsx(S,{color:"violet.dark",children:"We are processing your request. You will receive the exported file on an email shortly."}):t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:"Please type the email you want to use for receiving export",register:o,name:"email",parameters:{required:"Please enter email",pattern:{value:yn,message:"Please enter a valid email"}},placeholder:"email"}),l.email&&t.jsx(S,{color:"additional.red50",mt:"6px",children:(C=l.email)==null?void 0:C.message})]})}),t.jsxs(ge,{alignToTheEnd:h,children:[t.jsx(k,{onClick:f,children:h?"Close":"Cancel"}),!h&&t.jsx(k,{disabled:p,processing:p,onClick:u(m),children:"Confirm"})]})]})},aj=({providerLabel:e="Salesforce"})=>{const n=P(),s=()=>{n(Q())};return t.jsxs(Hn,{children:[t.jsx(et,{onClose:s,children:"Export confirmation"}),t.jsx(he,{children:t.jsxs(S,{color:"violet.dark",children:["We are processing your request. The records are being exported to ",e," and will appear there shortly."]})}),t.jsx(ge,{alignToTheEnd:!0,children:t.jsx(k,{onClick:s,children:"Close"})})]})},ij=({onCancel:e})=>{var h;const n=P(),{profile:s}=fe(m=>m.user),{register:r,formState:{errors:a},handleSubmit:i}=lt({defaultValues:{email:s.email??""}}),{exportReplies:o,isLoading:l,isSuccess:u=!1}=N7(),d=({email:m})=>o({email:m,offset:new Date().getTimezoneOffset(),filename:`Replies Export ${Ms(se(),"MMMM Do YYYY, h:mm a")}`}),p=()=>{e&&e(),n(Q())};return t.jsxs(Hn,{children:[t.jsx(et,{onClose:p,children:u?"Export confirmation":"Email confirmation"}),t.jsx(he,{children:u?t.jsx(S,{color:"greyNeutral.60",children:"We are processing your request. You will receive the exported file on an email shortly."}):t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:"Please type the email you want to use for receiving export",register:r,name:"email",parameters:{required:"Please enter email",pattern:{value:yn,message:"Please enter a valid email"}},placeholder:"email"}),a.email&&t.jsx(S,{color:"additional.red50",mt:"6px",children:(h=a.email)==null?void 0:h.message})]})}),t.jsx(ge,{justifyContent:u?"flex-end":"space-between",children:u?t.jsx(t.Fragment,{children:t.jsx(k,{onClick:p,children:"Close"})}):t.jsxs(t.Fragment,{children:[t.jsx(k,{onClick:p,children:"Cancel"}),t.jsx(k,{disabled:l,processing:l,onClick:i(d),children:"Confirm"})]})})]})},oj=({onCancel:e,params:n})=>{var m;const s=P(),{profile:r}=fe(f=>f.user),{register:a,formState:{errors:i},handleSubmit:o}=lt({defaultValues:{email:r.email??""}}),{exportTeamStats:l,isLoading:u,isSuccess:d}=Kx(),p=({email:f})=>
71{l({receiverEmail:f,timeFilter:n.timeFilter,customFromDate:n.customFromDate,customToDate:n.customToDate,sortField:"role",sortOrder:"ASC"})},h=()=>{e&&e(),s(Q())};return t.jsxs(Hn,{children:[t.jsx(et,{onClose:h,children:d?"Export confirmation":"Email confirmation"}),t.jsx(he,{children:d?t.jsx(S,{color:"violet.dark",children:"We are processing your request. You will receive the exported file on an email shortly."}):t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:"Please type the email you want to use for receiving export",register:a,name:"email",parameters:{required:"Please enter email",pattern:{value:yn,message:"Please enter a valid email"}},placeholder:"email"}),i.email&&t.jsx(S,{color:"additional.red50",mt:"6px",children:(m=i.email)==null?void 0:m.message})]})}),t.jsxs(ge,{alignToTheEnd:d,children:[t.jsx(k,{onClick:h,children:d?"Close":"Cancel"}),!d&&t.jsx(k,{disabled:u,processing:u,onClick:o(p),children:"Confirm"})]})]})},lj=({onCancel:e})=>{var h;const n=P(),{profile:s}=fe(m=>m.user),{register:r,formState:{errors:a},handleSubmit:i}=lt({defaultValues:{email:s.email??""}}),{exportEmails:o,isLoading:l,isSuccess:u}=Jg(),d=({email:m})=>{o({receiverEmail:m})},p=()=>{e&&e(),n(Q())};return t.jsxs(Hn,{children:[t.jsx(et,{onClose:p,children:u?"Export confirmation":"Email confirmation"}),t.jsx(he,{children:u?t.jsx(S,{color:"violet.dark",children:"We are processing your request. You will receive the exported file on an email shortly."}):t.jsxs(t.Fragment,{children:[t.jsx(Ce,{label:"Please type the email you want to use for receiving export",register:r,name:"email",parameters:{required:"Please enter email",pattern:{value:yn,message:"Please enter a valid email"}},placeholder:"email"}),a.email&&t.jsx(S,{color:"additional.red50",mt:"6px",children:(h=a.email)==null?void 0:h.message})]})}),t.jsxs(ge,{alignToTheEnd:u,children:[t.jsx(k,{onClick:p,children:u?"Close":"Cancel"}),!u&&t.jsx(k,{disabled:l,processing:l,onClick:i(d),children:"Confirm"})]})]})},cj=y("h4",{target:"e1ijngx53"})("font-weight:500;color:",({theme:e})=>e.palette.greyNeutral[200],";line-height:30px;font-size:20px;"),dj=y("div",{target:"e1ijngx52"})({name:"mmdt3g",styles:"font-size:14px"}),uj=y("div",{target:"e1ijngx51"})({name:"1u61boi",styles:"font-size:12px;color:#8a8a8a"}),pj=y("div",{target:"e1ijngx50"})("color:",({theme:e})=>e.palette.greyBlue[60],";font-size:14px;margin-top:16px;"),hj=({onConfirm:e,params:n})=>{const s=P(),r=fe(l=>l.user.profile),[a,i]=c.useState("You"),{palette:o}=Ve();return t.jsxs(t.Fragment,{children:[t.jsx(et,{wrapperProps:{padding:"16px 24px"},onClose:()=>s(Q()),children:t.jsx(cj,{children:"Post by"})}),t.jsxs(he,{children:[t.jsx(g,{mb:"16px",fontSize:"14px",children:"With which account you want to post by"}),t.jsxs(g,{children:[t.jsx(u2,{name:"postAs",defaultValue:(n==null?void 0:n.postAs)||"You",onChange:l=>{i(l.target.value)},children:t.jsxs(g,{width:"100%",display:"flex",flexDirection:"column",gap:"12px",children:[t.jsxs(g,{display:"flex",gap:"8px",alignItems:"center",children:[t.jsx(Zn,{style:{padding:"0"},value:"You"}),t.jsx(g,{fontSize:"14px",children:"You"})]}),r.companies&&!!r.companies.length&&r.companies.map(l=>t.jsxs(g,{display:"flex",gap:"8px",alignItems:"center",children:[t.jsx(Zn,{style:{padding:"0"},value:l.entityUrn}),t.jsxs(g,{children:[t.jsx(dj,{children:l.name}),t.jsx(uj,{children:l.universalName})]})]},l.entityUrn))]})}),(!r.companies||r.companies&&!r.companies.length)&&t.jsx(pj,{children:" • No Company found."})]})]}),t.jsx(ge,{alignToTheEnd:!0,borderColor:o.greyNeutral[30],children:t.jsx(k,{onClick:()=>{typeof e=="function"&&e({postAs:a}),s(Q())},children:"Close"})})]})},d3=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M7.5 3.70263C8.24915 3.47351 9.08248 3.33325 10 3.33325C14.1421 3.33325 17.5 6.69112 17.5 10.8333C17.5 14.9754 14.1421 18.3333 10 18.3333C5.85786 18.3333 2.5 14.9754 2.5 10.8333C2.5 9.29146 2.96523 7.85833 3.76296 6.66659M7.5 3.70263L10 0.833252M7.5 3.70263L10.4167 5.83325",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),mj=y("h4",{target:"e1dr0ns06"})("font-weight:500;color:",({theme:e})=>e.palette.greyNeutral[200],";line-height:30px;font-size:20px;"),gj=y(u2,{target:"e1dr0ns05"})({name:"4zleql",styles:"display:block"}),Qr=y(g,{target:"e1dr0ns04"})("background:#ffffff;border:1px solid ",({theme:e})=>e.palette.greyBlue[20],";padding:12px;margin:5px 0;border-radius:8px;font-size:18px;"),Xr=y("div",{target:"e1dr0ns03"})("font-size:14px;color:",({theme:e})=>e.palette.greyNeutral[200],";margin-bottom:4px;"),Jr=y("div",{target:"e1dr0ns02"})("font-size:12px;color:",({theme:e})=>e.palette.greyBlue[60],";"),xj=y("span",{target:"e1dr0ns01"})({name:"1ghzqoo",styles:"font-weight:600;line-height:20px;vertical-align:middle;background:red;color:white;border-radius:5px;margin-left:5px;padding:3px;font-size:12px"}),fj=y("div",{target:"e1dr0ns00"})("display:flex;align-items:center;justify-content:center;width:34px;height:34px;font-size:18px;border-radius:6px;border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";background:#ffffff;cursor:pointer;flex-shrink:0;"),Cj=({onConfirm:e,params:n})=>{var h,m;const s=P(),{groups:r}=t7(),{refreshLIGroups:a}=o7(),i=(n==null?void 0:n.audience)||"anyone",[o,l]=c.useState({value:i,label:w1[i]}),[u,d]=c.useState((n==null?void 0:n.selectedGroup)||null),{palette:p}=Ve();return t.jsxs(t.Fragment,{children:[t.jsx(et,{wrapperProps:{padding:"16px 24px"},onClose:()=>s(Q()),children:t.jsx(mj,{children:"Audience"})}),t.jsxs(he,{children:[t.jsx(jt,{color:p.greyBlue[100],mb:"16px",fontSize:"14px",fontFamily:"'Inter', sans-serif",children:"Who can see your post?"}),t.jsx(g,{children:t.jsxs(gj,{name:"audience",defaultValue:(n==null?void 0:n.audience)||"anyone",onChange:f=>{const C=f.target.value;l({label:w1[C],value:C})},children:[t.jsxs(Qr,{display:"flex",gap:"8px",alignItems:"center",children:[t.jsx(Zn,{style:{padding:"0"},value:"anyone"}),t.jsxs(g,{children:[t.jsx(Xr,{children:"Anyone"}),t.jsx(Jr,{children:"Anyone on or off LinkedIn"})]})]}),(n==null?void 0:n.postAs)==="You"?t.jsxs(t.Fragment,{children:[t.jsxs(Qr,{display:"flex",gap:"8px",alignItems:"center",children:[t.jsx(Zn,{style:{padding:"0"},value:"connections_only"}),t.jsxs(g,{children:[t.jsx(Xr,{children:"Connections only"}),t.jsx(Jr,{children:"Connection on LinkedIn"})]})]}),t.jsxs(Qr,{display:"flex",flexDirection:"column",children:[t.jsxs(g,{display:"flex",flexDirection:"row",gap:"8px",alignItems:"center",children:[t.jsx(Zn,{style:{padding:"0"},value:"group"}),t.jsxs(g,{children:[t.jsx(Xr,{children:"Group members"}),t.jsx(Jr,{children:"Only visible to members of selected group"})]})]}),o.value==="group"&&t.jsxs(g,{display:"flex",alignItems:"center",mt:"10px",gap:"8px","data-testid":"group-select",children:[t.jsx(Xe,{styles:{container:f=>({...f,flexGrow:1})},defaultValue:{value:(h=n==null?void 0:n.selectedGroup)==null?void 0:h.savedSearchId,label:(m=n==null?void 0:n.selectedGroup)==null?void 0:m.name},options:r==null?void 0:r.map(f=>({label:f.name,value:f.savedSearchId})),onChange:f=>{const C=r==null?void 0:r.find(E=>E.savedSearchId===f.value);d(C||null)}}),t.jsx(we,{title:"Refresh Linkedin Groups",children:t.jsx(fj,{onClick:()=>a(),children:t.jsx(d3,{})})})]})]})]}):t.jsx(t.Fragment,{children:t.jsxs(Qr,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[t.jsx(Zn,{style:{padding:"0"},disabled:!0}),t.jsxs(g,{maxWidth:"calc(100% - 32px)",children:[t.jsxs(Xr,{children:["Targeted Audience ",t.jsx(xj,{children:"Coming soon"})]}),t.jsx(Jr,{children:"Choose target audience (using Industry / Location / Job function / Language / Seniority)"})]})]})})]})})]}),t.jsx(ge,{alignToTheEnd:!0,borderColor:p.greyNeutral[30],children:t.jsx(g,{display:"flex",justifyContent:"flex-end",id:"here",children:t.jsx(k,{onClick:()=>
71{typeof e=="function"&&e({audience:o,selectedGroup:u}),s(Q())},children:"Close"})})})]})},yj=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.00001 1.04175C5.34519 1.04175 5.62501 1.32157 5.62501 1.66675V3.33342C5.62501 3.67859 5.34519 3.95842 5.00001 3.95842C4.65483 3.95842 4.37501 3.67859 4.37501 3.33342V1.66675C4.37501 1.32157 4.65483 1.04175 5.00001 1.04175ZM15 1.04175C15.3452 1.04175 15.625 1.32157 15.625 1.66675V3.33342C15.625 3.67859 15.3452 3.95842 15 3.95842C14.6548 3.95842 14.375 3.67859 14.375 3.33342V1.66675C14.375 1.32157 14.6548 1.04175 15 1.04175Z",fill:"#000E33"}),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.83334 10.8334C5.83334 10.3732 6.20644 10.0001 6.66668 10.0001H6.67415C7.13439 10.0001 7.50749 10.3732 7.50749 10.8334C7.50749 11.2937 7.13439 11.6667 6.67415 11.6667H6.66668C6.20644 11.6667 5.83334 11.2937 5.83334 10.8334ZM9.16294 10.8334C9.16294 10.3732 9.53603 10.0001 9.99627 10.0001H10.0037C10.464 10.0001 10.8371 10.3732 10.8371 10.8334C10.8371 11.2937 10.464 11.6667 10.0037 11.6667H9.99627C9.53603 11.6667 9.16294 11.2937 9.16294 10.8334ZM12.4925 10.8334C12.4925 10.3732 12.8656 10.0001 13.3259 10.0001H13.3333C13.7936 10.0001 14.1667 10.3732 14.1667 10.8334C14.1667 11.2937 13.7936 11.6667 13.3333 11.6667H13.3259C12.8656 11.6667 12.4925 11.2937 12.4925 10.8334ZM5.83334 14.1668C5.83334 13.7065 6.20644 13.3334 6.66668 13.3334H6.67415C7.13439 13.3334 7.50749 13.7065 7.50749 14.1668C7.50749 14.627 7.13439 15.0001 6.67415 15.0001H6.66668C6.20644 15.0001 5.83334 14.627 5.83334 14.1668ZM9.16294 14.1668C9.16294 13.7065 9.53603 13.3334 9.99627 13.3334H10.0037C10.464 13.3334 10.8371 13.7065 10.8371 14.1668C10.8371 14.627 10.464 15.0001 10.0037 15.0001H9.99627C9.53603 15.0001 9.16294 14.627 9.16294 14.1668Z",fill:"#000E33"}),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.29168 6.66675C2.29168 6.32157 2.5715 6.04175 2.91668 6.04175H17.0833C17.4285 6.04175 17.7083 6.32157 17.7083 6.66675C17.7083 7.01193 17.4285 7.29175 17.0833 7.29175H2.91668C2.5715 7.29175 2.29168 7.01193 2.29168 6.66675Z",fill:"#000E33"}),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.15771 1.87508H10.8423C12.4787 1.87507 13.7756 1.87505 14.7906 2.02258C15.8394 2.17502 16.6774 2.49597 17.3321 3.20372C17.9803 3.90454 18.2685 4.79002 18.4065 5.89967C18.5417 6.98701 18.5417 8.38048 18.5417 10.1585V10.675C18.5417 12.453 18.5417 13.8465 18.4065 14.9338C18.2685 16.0435 17.9803 16.929 17.3321 17.6298C16.6774 18.3375 15.8394 18.6585 14.7906 18.8109C13.7756 18.9584 12.4787 18.9584 10.8423 18.9584H9.15771C7.5213 18.9584 6.22444 18.9584 5.20941 18.8109C4.16065 18.6585 3.32263 18.3375 2.66796 17.6298C2.0197 16.929 1.73155 16.0435 1.59355 14.9338C1.45833 13.8465 1.45833 12.453 1.45834 10.6751V10.1584C1.45833 8.38047 1.45833 6.987 1.59355 5.89967C1.73155 4.79002 2.0197 3.90454 2.66796 3.20372C3.32263 2.49597 4.16065 2.17502 5.20941 2.02258C6.22444 1.87505 7.5213 1.87507 9.15771 1.87508ZM5.38921 3.25959C4.49774 3.38916 3.97435 3.63223 3.58559 4.05252C3.19041 4.47973 2.95685 5.06604 2.83399 6.05394C2.70948 7.05514 2.70834 8.37087 2.70834 10.2028V10.6307C2.70834 12.4626 2.70948 13.7784 2.83399 14.7796C2.95685 15.7675 3.19041 16.3538 3.58559 16.781C3.97435 17.2013 4.49774 17.4443 5.38921 17.5739C6.30397 17.7069 7.50991 17.7084 9.20834 17.7084H10.7917C12.4901 17.7084 13.696 17.7069 14.6108 17.5739C15.5023 17.4443 16.0257 17.2013 16.4144 16.781C16.8096 16.3538 17.0432 15.7675 17.166 14.7796C17.2905 13.7784 17.2917 12.4626 17.2917 10.6307V10.2028C17.2917 8.37087 17.2905 7.05514 17.166 6.05394C17.0432 5.06604 16.8096 4.47973 16.4144 4.05252C16.0257 3.63223 15.5023 3.38916 14.6108 3.25959C13.696 3.12663 12.4901 3.12508 10.7917 3.12508H9.20834C7.50991 3.12508 6.30397 3.12663 5.38921 3.25959Z",fill:"#000E33"}),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.87501 6.66675C1.87501 6.32157 2.15483 6.04175 2.50001 6.04175H17.5C17.8452 6.04175 18.125 6.32157 18.125 6.66675C18.125 7.01193 17.8452 7.29175 17.5 7.29175H2.50001C2.15483 7.29175 1.87501 7.01193 1.87501 6.66675Z",fill:"#000E33"})),Ej=(e,n,s)=>{const r=ce(),a=P(),i=["get-posts",JSON.stringify(n)],{mutate:o,...l}=J("reschedule-post",u=>D8(e,u),{...s,onMutate:async u=>{var p;(p=s==null?void 0:s.onMutate)==null||p.call(s,u),await r.cancelQueries({queryKey:i});const d=r.getQueryData(i);return r.setQueryData(i,h=>h&&{...h,posts:h.posts.map(m=>m.id===e?{...m,status:hn.PENDING,scheduledAt:u!=null&&u.timestamp?new Date(u.timestamp).toISOString():new Date().toISOString()}:m)}),{prevData:d}},onSuccess:async(u,d,p)=>{var h;p&&((h=s==null?void 0:s.onSuccess)==null||h.call(s,u,d,p)),r.invalidateQueries({queryKey:i})},onError:(u,d,p)=>{var h;p&&((h=s==null?void 0:s.onError)==null||h.call(s,u,d,p)),p!=null&&p.prevData&&r.setQueryData(i,p.prevData),a(Z({type:"error",message:(u==null?void 0:u.message)??"Oops, something has gone wrong!",autoCloseTime:3e3}))}});return{reschedulePost:o,...l}};se.extend(ss);se.extend(Cr);se.extend(g2);const ea="YYYY-MM-DD",zc="YYYY-MM-DD h:mm A",Ui="MuiSelect-iconOpen",Wc=e=>String(e).padStart(2,"0"),Sj=y(ey,{target:"ewx2s0w10"})({name:"10sgxdd",styles:"max-width:250px;width:250px"}),pt=y(Po,{target:"ewx2s0w9"})("background-color:#ffffff;color:",({theme:e})=>e.palette.greyBlue[100],";font-size:14px;font-weight:500;cursor:pointer;border-radius:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:'Inter',sans-serif;&.Mui-selected.MuiMenuItem-root{background-color:",({theme:e})=>e.palette.greyNeutral[10],";}&:active{background-color:",({theme:e})=>e.palette.greyNeutral[10],";color:",({theme:e})=>e.palette.greyBlue[100],";}"),bj=y(yj,{target:"ewx2s0w8"})("width:20px;height:20px;path{fill:",({theme:e})=>e.palette.greyBlue[60],";}"),Bi=y(ln,{target:"ewx2s0w7"})({name:"fx2rqy",styles:"position:absolute;width:20px;height:20px;right:10px"}),Hi=y(Nr,{target:"ewx2s0w6"})({name:"fx2rqy",styles:"position:absolute;width:20px;height:20px;right:10px"}),Vi=y(p2,{target:"ewx2s0w5"})("height:40px;border-radius:8px;background:#ffffff;display:flex;gap:8px;font-size:14px;font-family:'Inter',sans-serif;& .MuiOutlinedInput-notchedOutline{border-width:1px!important;border-color:",({theme:e})=>e.palette.greyBlue[30],";}& .MuiSelect-select.MuiOutlinedInput-input{padding:10px 40px 10px 12px;width:calc(100% - 20px);position:relative;z-index:1;}"),Lj=y("div",{target:"ewx2s0w4"})({name:"1x42zbr",styles:"width:100%;font-size:15px;margin-top:16px"}),wj=y("div",{target:"ewx2s0w3"})("color:",({theme:e})=>e.palette.greyBlue[100],";font-size:12px;font-weight:600;line-height:16px;margin-bottom:4px;"),Tj=y("div",{target:"ewx2s0w2"})("font-size:14px;font-weight:600;color:",({theme:e})=>e.palette.blue.primary,";"),qc=y("div",{target:"ewx2s0w1"})({name:"vifs8c",styles:"margin:0 4px"}),jj=y("div",{target:"ewx2s0w0"})("margin-top:12px;font-size:14px;color:",({theme:e})=>e.palette.additional.red50,";"),vj=({params:e,onCancel:n})=>{var E;const s=P(),{postId:r=-1,getPostsQueryKeys:a}=e??{},[i,o]=c.useState({date:se(se()).format(ea),hour:se(se()).get("h")>12?se(se()).get("h")-12:se(se()).get("h"),minute:0,place:se(se()).format("A")}),{profile:l}=fe(b=>b.user),u=((E=l==null?void 0:l.timezone)==null?void 0:E.name)||se.tz.guess(),{reschedulePost:d,isLoading:p}=Ej(r,a,{onSuccess:()=>{s(Q())}}),h=()=>{n&&n(),s(Q())},m=c.useMemo(()=>se.tz(`${i.date} ${i.hour}:${Wc(i.minute)} ${i.place}`,zc,u),[i,u]),f=b=>{const w=se.tz(`${b.date} ${b.hour}:${Wc(b.minute)} ${b.place}`,zc,u),I=w.get("h")||12;o({hour:I>12?I-12:I,minute:w.get("m"),place:w.format("A"),date:w.format(ea)})},C=()=>
71{if(se().tz(u).isAfter(m)){s(Z({type:"info",message:`Post time should be after the current time ${se().tz(u).format("hh:mm A")}`}));return}d({timestamp:Number(se(m).format("x"))})};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{p:"20px",children:[t.jsx(S,{semibold:!0,color:"primary.wlLight",children:"Post At"}),t.jsx(S,{mt:"5px",children:"When do you want to schedule your post?"}),t.jsxs(g,{display:"flex",flexDirection:"column",gap:"10px",mt:"12px",children:[t.jsxs(g,{display:"flex",gap:"4px",flexDirection:"column",children:[t.jsx(S,{fontSize:"12px",semibold:!0,children:"Schedule Date"}),t.jsx(g,{"data-testid":"date-select",children:t.jsx(Sj,{selected:se(i==null?void 0:i.date).toDate(),dateFormat:"dd.MM.yyyy",minDate:se().toDate(),icon:t.jsx(bj,{}),placeholderText:"Select a date",showIcon:!0,onChange:b=>{if(i){if(!b){f({...i,date:se().format(ea)});return}f({...i,date:se(b).format(ea)})}}})})]}),t.jsxs(g,{children:[t.jsxs(g,{display:"flex",gap:"49px",children:[t.jsx(S,{fontSize:"12px",mb:"4px",semibold:!0,children:"Hour"}),t.jsx(S,{fontSize:"12px",mb:"4px",semibold:!0,children:"Minutes"})]}),t.jsxs(g,{display:"flex",alignItems:"center",children:[t.jsxs(Vi,{"data-testid":"hour-select",value:i.hour,IconComponent:b=>b.className.includes(Ui)?t.jsx(Hi,{}):t.jsx(Bi,{}),onChange:b=>{i&&f({...i,hour:b.target.value})},children:[t.jsx(pt,{value:1,children:"01"}),t.jsx(pt,{"data-testid":"hour-02",value:2,children:"02"}),t.jsx(pt,{value:3,children:"03"}),t.jsx(pt,{value:4,children:"04"}),t.jsx(pt,{value:5,children:"05"}),t.jsx(pt,{value:6,children:"06"}),t.jsx(pt,{value:7,children:"07"}),t.jsx(pt,{value:8,children:"08"}),t.jsx(pt,{value:9,children:"09"}),t.jsx(pt,{value:10,children:"10"}),t.jsx(pt,{value:11,children:"11"}),t.jsx(pt,{value:12,children:"12"})]}),t.jsx(qc,{children:":"}),t.jsxs(Vi,{"data-testid":"minute-select",value:i.minute,IconComponent:b=>b.className.includes(Ui)?t.jsx(Hi,{}):t.jsx(Bi,{}),onChange:b=>{i&&f({...i,minute:b.target.value})},children:[t.jsx(pt,{value:0,children:"00"}),t.jsx(pt,{value:15,children:"15"}),t.jsx(pt,{"data-testid":"minute-30",value:30,children:"30"}),t.jsx(pt,{value:45,children:"45"})]}),t.jsx(qc,{}),t.jsxs(Vi,{"data-testid":"place-select",value:i.place,IconComponent:b=>b.className.includes(Ui)?t.jsx(Hi,{}):t.jsx(Bi,{}),onChange:b=>{i&&f({...i,place:b.target.value})},children:[t.jsx(pt,{value:"AM",children:"AM"}),t.jsx(pt,{"data-testid":"place-PM",value:"PM",children:"PM"})]})]}),se().tz(u).isAfter(m)&&t.jsxs(jj,{children:["Post time should be after the current time (",se().tz(u).format("hh:mm A"),")"]}),t.jsxs(Lj,{children:[t.jsx(wj,{children:"Scheduling this post at:"}),t.jsxs(Tj,{children:[se.tz(m,u).format("dddd, MMMM D, YYYY h:mm A"),", ",u," time."]})]})]})]})]}),t.jsxs(ge,{children:[t.jsx(k,{processing:p,onClick:h,children:"Cancel"}),t.jsx(k,{processing:p,onClick:C,children:"Update"})]})]})},u3=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.04849 1.04175L12.9512 1.04175C13.7296 1.04174 14.3639 1.04173 14.8805 1.0979C15.4199 1.15655 15.8883 1.28106 16.3166 1.56659C16.7449 1.85213 17.04 2.23662 17.3016 2.71196C17.5521 3.16717 17.7961 3.75271 18.0955 4.47122L18.9582 6.54175L18.9582 11.2394C18.9582 12.8816 18.9582 14.18 18.8166 15.1957C18.6707 16.2418 18.364 17.0798 17.6822 17.7373C17.0036 18.3917 16.1439 18.6833 15.0701 18.8225C14.0214 18.9584 12.6787 18.9584 10.9717 18.9584H9.02799C7.32096 18.9584 5.97831 18.9584 4.92959 18.8225C3.85576 18.6833 2.9961 18.3917 2.31746 17.7373C1.63563 17.0798 1.32894 16.2418 1.18309 15.1957C1.04148 14.18 1.04149 12.8816 1.0415 11.2394L1.0415 6.54175L1.9042 4.47128C2.20358 3.75274 2.44755 3.16718 2.69807 2.71196C2.95967 2.23662 3.25477 1.85213 3.68307 1.56659C4.11137 1.28106 4.57978 1.15655 5.11918 1.0979C5.63573 1.04173 6.27008 1.04174 7.04849 1.04175ZM9.37484 2.29175H7.08317C6.26171 2.29175 5.69542 2.2926 5.2543 2.34057C4.82838 2.38689 4.57795 2.47231 4.37644 2.60665C4.17493 2.74099 3.99976 2.9393 3.79319 3.31465C3.57925 3.70339 3.36066 4.22578 3.04471 4.98406L2.604 6.04175L9.37484 6.04175L9.37484 2.29175ZM10.6248 6.04175L10.6248 2.29175H12.9165C13.738 2.29175 14.3043 2.2926 14.7454 2.34057C15.1713 2.38689 15.4217 2.47231 15.6232 2.60665C15.8247 2.74099 15.9999 2.9393 16.2065 3.31465C16.4204 3.70339 16.639 4.22578 16.955 4.98406L17.3957 6.04175L10.6248 6.04175ZM2.2915 7.29175L2.2915 11.1906C2.2915 12.8925 2.29293 14.1037 2.42112 15.0231C2.54646 15.9221 2.78217 16.4489 3.18513 16.8375C3.59128 17.2291 4.14699 17.4606 5.0903 17.5828C6.04932 17.7072 7.31092 17.7084 9.07391 17.7084H10.9258C12.6888 17.7084 13.9504 17.7072 14.9094 17.5828C15.8527 17.4606 16.4084 17.2291 16.8145 16.8375C17.2175 16.4489 17.4532 15.9221 17.5786 15.0231C17.7067 14.1037 17.7082 12.8924 17.7082 11.1906L17.7082 7.29175L2.2915 7.29175ZM7.70817 10.0001C7.70817 9.6549 7.98799 9.37508 8.33317 9.37508H11.6665C12.0117 9.37508 12.2915 9.6549 12.2915 10.0001C12.2915 10.3453 12.0117 10.6251 11.6665 10.6251H8.33317C7.98799 10.6251 7.70817 10.3453 7.70817 10.0001Z",fill:"currentColor"})),ls=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M4.33324 18.9167C3.91658 18.9167 3.49991 18.9167 2.91658 18.9167H2.66658C2.08324 18.9167 1.58324 18.9167 1.24991 18.5C0.9
7116576 18.1667 0.916576 17.6667 0.99991 17.0834V16.8334C1.08324 15.25 1.16658 14.5 1.49991 13.75C1.83324 13 2.33324 12.4167 3.41658 11.25L11.1666 2.83337L11.6666 3.25003L11.2499 2.83337C11.9166 2.08337 12.2499 1.75003 12.6666 1.50003C13.6666 0.916699 14.9166 0.916699 15.9166 1.4167C16.3332 1.6667 16.6666 2.00003 17.3332 2.75003C17.9999 3.4167 18.3332 3.75003 18.5832 4.1667C19.0832 5.1667 19.0832 6.4167 18.4999 7.4167C18.2499 7.83336 17.9166 8.1667 17.2499 8.83337L9.41658 16.4167C8.08324 17.6667 7.41658 18.3334 6.58324 18.6667C5.91658 18.9167 5.24991 18.9167 4.33324 18.9167ZM2.24991 17.6667C2.33324 17.6667 2.49991 17.6667 2.66658 17.6667H2.91658C4.58324 17.75 5.33324 17.75 5.99991 17.5C6.66658 17.25 7.24991 16.6667 8.41658 15.5L16.2499 7.9167C16.8332 7.33336 17.1666 7.00003 17.3332 6.75003C17.6666 6.1667 17.6666 5.33336 17.3332 4.75003C17.1666 4.50003 16.9166 4.1667 16.3332 3.58337C15.8332 3.00003 15.4999 2.6667 15.2499 2.50003C14.6666 2.1667 13.9166 2.1667 13.2499 2.50003C12.9999 2.6667 12.6666 3.00003 12.1666 3.58337L4.41658 12.0834C3.41658 13.0834 2.99991 13.6667 2.74991 14.25C2.49991 14.8334 2.41658 15.5 2.33324 17V17.25C2.33324 17.3334 2.33324 17.5 2.24991 17.6667Z",fill:"currentColor"}),c.createElement("path",{d:"M11.3339 2.89131L10.45 3.77518L16.2836 9.60876L17.1675 8.72488L11.3339 2.89131Z",fill:"currentColor"})),p3=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.03327 1.98174C6.08939 2.32233 5.85878 2.64392 5.51819 2.70003C4.64404 2.84406 4.09856 3.0967 3.68709 3.51291C3.24161 3.96353 2.98361 4.5753 2.84772 5.59763C2.70955 6.63721 2.70825 8.00376 2.70825 9.90873C2.70825 10.1564 2.70827 10.395 2.70862 10.625H6.18797C7.25479 10.625 7.96752 11.4915 8.3096 12.1769C8.55144 12.6616 9.02109 13.125 9.99992 13.125C10.9787 13.125 11.4484 12.6616 11.6902 12.1769C12.0323 11.4915 12.745 10.625 13.8119 10.625H17.2912C17.2916 10.395 17.2916 10.1564 17.2916 9.90873C17.2916 8.00376 17.2903 6.63721 17.1521 5.59763C17.0162 4.5753 16.7582 3.96353 16.3127 3.51291C15.9013 3.0967 15.3558 2.84406 14.4816 2.70003C14.1411 2.64392 13.9104 2.32233 13.9666 1.98174C14.0227 1.64116 14.3443 1.41055 14.6849 1.46666C15.7142 1.63626 16.5418 1.96661 17.2017 2.63411C17.9156 3.35623 18.2373 4.27458 18.3912 5.43293C18.5416 6.56442 18.5416 8.01406 18.5416 9.86156V9.9559C18.5416 11.8034 18.5416 13.253 18.3912 14.3845C18.2373 15.5429 17.9156 16.4612 17.2017 17.1833C16.4868 17.9065 15.576 18.2332 14.4275 18.3894C13.3075 18.5417 11.8733 18.5417 10.0481 18.5417H9.95173C8.12662 18.5417 6.69229 18.5417 5.57233 18.3894C4.4238 18.2332 3.51302 17.9065 2.79815 17.1833C2.08427 16.4612 1.76258 15.5429 1.60862 14.3845C1.45823 13.253 1.45824 11.8034 1.45825 9.95594V9.86153C1.45824 8.01405 1.45823 6.56441 1.60862 5.43293C1.76258 4.27458 2.08427 3.35623 2.79815 2.63411C3.45805 1.96661 4.28564 1.63626 5.31498 1.46666C5.65557 1.41055 5.97716 1.64116 6.03327 1.98174ZM17.2834 11.875H13.8119C13.4752 11.875 13.0851 12.1812 12.8087 12.7351C12.3786 13.597 11.5025 14.375 9.99992 14.375C8.49729 14.375 7.62127 13.597 7.19114 12.7351C6.91468 12.1812 6.52466 11.875 6.18797 11.875H2.71648C2.72938 12.8139 2.76255 13.579 2.84772 14.2198C2.98361 15.2422 3.24161 15.8539 3.68709 16.3045C4.13159 16.7542 4.73349 17.0138 5.74077 17.1508C6.76678 17.2903 8.11608 17.2917 9.99992 17.2917C11.8838 17.2917 13.2331 17.2903 14.2591 17.1508C15.2663 17.0138 15.8682 16.7542 16.3127 16.3045C16.7582 15.8539 17.0162 15.2422 17.1521 14.2198C17.2373 13.579 17.2705 12.8139 17.2834 11.875Z",fill:"currentColor"}),c.createElement("path",{d:"M8.82436 4.04944C8.66417 4.25338 8.49565 4.46764 8.36476 4.6023C8.12418 4.84982 7.72849 4.85544 7.48097 4.61486C7.23345 4.37427 7.22782 3.97858 7.46841 3.73106C7.54233 3.65501 7.66368 3.5035 7.84134 3.27732L7.88055 3.22738C8.03894 3.02559 8.22475 2.78887 8.4162 2.56294C8.62137 2.32081 8.85101 2.06931 9.08057 1.8738C9.19561 1.77582 9.32528 1.67917 9.46477 1.60453C9.5993 1.53253 9.78468 1.45835 9.99992 1.45835C10.2152 1.45835 10.4005 1.53253 10.5351 1.60453C10.6746 1.67917 10.8042 1.7
717582 10.9193 1.8738C11.1488 2.06931 11.3785 2.32081 11.5836 2.56294C11.7751 2.78887 11.9609 3.02559 12.1193 3.22738L12.1585 3.27732C12.3362 3.5035 12.4575 3.65501 12.5314 3.73106C12.772 3.97858 12.7664 4.37427 12.5189 4.61486C12.2713 4.85544 11.8757 4.84982 11.6351 4.6023C11.5042 4.46764 11.3357 4.25338 11.1755 4.04944L11.1382 4.00198C10.9774 3.7972 10.8055 3.57823 10.63 3.37103L10.6249 3.36507V8.75002C10.6249 9.09519 10.3451 9.37502 9.99992 9.37502C9.65474 9.37502 9.37492 9.09519 9.37492 8.75002V3.36508L9.36987 3.37103C9.19434 3.57818 9.02247 3.7971 8.86174 4.00183L8.82436 4.04944Z",fill:"currentColor"})),Ij=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M4.31656 12.7471C3.26858 13.3613 0.520848 14.6156 2.1944 16.1851C3.01192 16.9518 3.92242 17.5001 5.06715 17.5001H11.5992C12.7439 17.5001 13.6544 16.9518 14.4719 16.1851C16.1455 14.6156 13.3978 13.3613 12.3498 12.7471C9.89229 11.3066 6.77405 11.3066 4.31656 12.7471Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M11.6667 5.83333C11.6667 7.67428 10.1743 9.16667 8.33333 9.16667C6.49238 9.16667 5 7.67428 5 5.83333C5 3.99238 6.49238 2.5 8.33333 2.5C10.1743 2.5 11.6667 3.99238 11.6667 5.83333Z",stroke:"currentColor",strokeWidth:1.5}),c.createElement("path",{d:"M16.2498 3.33325V7.49992M18.3332 5.41659L14.1665 5.41659",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),_j="/C-YSDhdo.svg",h3="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_757_21631)'%3e%3cpath%20d='M7.14667%200.0585832C4.33579%200.351917%201.82421%202.20248%200.682455%204.82125C-0.0533318%206.51192%20-0.175785%208.45858%200.346668%2010.2507C0.992002%2012.4852%202.66133%2014.3731%204.82134%2015.3174C6.512%2016.0531%208.45867%2016.1756%2010.2509%2015.6531C12.9333%2014.8798%2015.0454%2012.6774%2015.7388%209.94114C16.8212%205.65325%2014.1653%201.26893%209.86667%200.24525C8.92245%200.0212498%208.09088%20-0.0375235%207.14667%200.0585832ZM7.25333%205.01325C7.93579%205.91992%208.512%206.66658%208.53333%206.66658C8.55467%206.66658%209.26421%205.91992%2010.1013%205.01325L11.632%203.35992H12.5013L12.3147%203.55746C12.208%203.66904%2011.5147%204.42114%2010.7733%205.22658C10.032%206.03192%209.30667%206.8157%209.16246%206.95992L8.90667%207.23192L10.9067%209.89325C12.0053%2011.3599%2012.9067%2012.5757%2012.9067%2012.5975C12.9067%2012.6241%2012.2509%2012.6399%2011.4558%2012.6399L10%2012.6346L8.64534%2010.8212C7.712%209.56792%207.27467%209.02893%207.232%209.06125C7.2%209.08792%206.44246%209.90413%205.54667%2010.8746L3.92%2012.6399H3.50912C3.28%2012.6399%203.09333%2012.629%203.09333%2012.6132C3.09333%2012.5975%203.94133%2011.669%204.97579%2010.5546C6.00544%209.43992%206.85878%208.50658%206.86912%208.4908C6.87467%208.46904%206.02667%207.31192%204.98667%205.91992C3.94667%204.53325%203.09333%203.38658%203.09333%203.3757C3.09333%203.36536%203.74912%203.35992%204.55467%203.35992H6.01579L7.25333%205.01325Z'%20fill='black'/%3e%3cpath%20d='M4.41087%204.07467C4.4321%204.112%205.77576%205.91467%207.38662%208.06912L10.3199%2011.9946L10.9757%2012C11.3811%2012%2011.6266%2011.9787%2011.6157%2011.9467C11.6108%2011.92%2010.272%2010.1175%208.65081%207.94667L5.69576%204H5.03465C4.48554%204%204.37333%204.01088%204.41087%204.07467Z'%20fill='black'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_757_21631'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Aj=y(g,{target:"ecxj2l10"})({name:"73vl0f",styles:"border-radius:4px;cursor:pointer;&.disabled{cursor:not-allowed;}&.dragging{background:white;cursor:grabbing;}"}),Nj=e=>{switch(e){case"multi-channel":return{color:"transparent",svgIcon:_j};case"group":case"event":case"linkedin":case"company":return{color:"#0077b5",svgIcon:nl};case"email":return{color:"#ffae33",svgIcon:Pa};case"twitter":return{color:"#000000",svgIcon:h3};case"inmail":return{color:"#0077b5",svgIcon:i0};default:return{color:"transparent"}}},kj=e=>{switch(e){case"large":return{width:"50px",height:"50px",iconSize:"lg"};case"medium":return{width:"30px",height:"30px",iconSize:"lg"};case"small":return{width:"25px",height:"25px",iconSize:"sm"};default:return{width:"30px",height:"30px",iconSize:"lg"}}},m3=({type:e,tooltip:n,size:s,disabled:r,className:a,...i})=>{const{svgIcon:o}=Nj(e),{height:l}=kj(s??"large");return t.jsx(we,{title:n,children:t.jsx(Aj,{id:`${e}-step`,"data-intercom-target":`${e}-step`,height:l,className:Ee(a,{disabled:r}),...i,children:o&&t.jsx("img",{width:"100%",height:"100%",src:o,alt:""})})})},Rj=y(g,{target:"eiv9wgp1"})({name:"dut3zz",styles:"background-color:#f2dede;border:1px solid #ebccd1;color:#a94442;border-radius:4px;padding:15px;font-size:16px;line-height:16px;text-align:start"}),hV=y(g,{target:"eiv9wgp0"})({name:"1nleo2i",styles:"background:#ffffff;min-height:100%;padding:24px;border-radius:12px;box-sizing:border-box;overflow-y:auto"}),Mj=7,Pj=4,Oj=y(g,{target:"e63o7l66"})("flex:1;min-width:0;height:100%;display:flex;flex-direction:column;border-radius:12px;border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";background-color:#ffffff;overflow:hidden;"),Dj=y(g,{target:"e63o7l65"})({name:"1qcgktf",styles:"flex:1;min-height:0;overflow:hidden"}),Zc=y(g,{target:"e63o7l64"})({name:"dx6xlz",styles:"flex:0 0 256px;min-width:0;display:flex;align-items:center;gap:16px"}),Uj=y(g,{target:"e63o7l63"})({name:"89y6mi",styles:"flex:1;min-width:0;display:flex;flex-direction:column;gap:6px"}),Yc=y(g,{target:"e63o7l62"})({name:"9bq0s1",styles:"flex:0 0 110px;min-width:0;display:flex;justify-content:flex-end"}),Kc=y(g,{target:"e63o7l61"})({name:"1fa5djg",styles:"flex:0 0 125px;min-width:0;display:flex;justify-content:flex-end"}),Qc=y(g,{target:"e63o7l60"})({name:"1qf94wi",styles:"flex:0 0 110px;min-width:0;display:flex;justify-content:flex-end;
71gap:8px"}),Bj=({metricColumnCount:e=Pj,"data-testid":n="campaigns-table-skeleton"})=>t.jsxs(Oj,{"data-testid":n,children:[t.jsxs(NS,{children:[t.jsx(Zc,{children:t.jsx(en,{variant:"rounded",width:48,height:18,sx:vi})}),t.jsx(Yc,{children:t.jsx(en,{variant:"rounded",width:40,height:18,sx:vi})}),Array.from({length:e},(s,r)=>t.jsx(Kc,{children:t.jsx(en,{variant:"rounded",width:60,height:18,sx:vi})},r)),t.jsx(Qc,{})]}),t.jsx(Dj,{children:Array.from({length:Mj},(s,r)=>t.jsxs(kS,{sx:{minHeight:72},children:[t.jsxs(Zc,{children:[t.jsx(en,{variant:"circular",width:24,height:24}),t.jsxs(Uj,{children:[t.jsx(en,{variant:"rounded",width:"72%",height:16}),t.jsx(en,{variant:"rounded",width:"48%",height:12})]})]}),t.jsx(Yc,{children:t.jsx(en,{variant:"rounded",width:28,height:16})}),Array.from({length:e},(a,i)=>t.jsx(Kc,{children:t.jsx(en,{variant:"rounded",width:32,height:16})},i)),t.jsxs(Qc,{children:[t.jsx(en,{variant:"rounded",width:36,height:20}),t.jsx(en,{variant:"rounded",width:28,height:28})]})]},r))})]}),Hj=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M4.66659 14.5835C4.66659 14.9977 5.00237 15.3335 5.41659 15.3335C5.8308 15.3335 6.16658 14.9977 6.16658 14.5835H4.66659ZM6.16658 12.0835C6.16658 11.6693 5.8308 11.3335 5.41659 11.3335C5.00237 11.3335 4.66659 11.6693 4.66659 12.0835H6.16658ZM8.83325 14.5835C8.83325 14.9977 9.16904 15.3335 9.58325 15.3335C9.99747 15.3335 10.3333 14.9977 10.3333 14.5835H8.83325ZM10.3333 7.0835C10.3333 6.66928 9.99747 6.3335 9.58325 6.3335C9.16904 6.3335 8.83325 6.66928 8.83325 7.0835H10.3333ZM12.9999 14.5835C12.9999 14.9977 13.3357 15.3335 13.7499 15.3335C14.1641 15.3335 14.4999 14.9977 14.4999 14.5835H12.9999ZM14.4999 11.2502C14.4999 10.8359 14.1641 10.5002 13.7499 10.5002C13.3357 10.5002 12.9999 10.8359 12.9999 11.2502H14.4999ZM9.99992 2.08352V2.83352H9.99994L9.99992 2.08352ZM3.24262 3.24289L2.71229 2.71256L3.24262 3.24289ZM18.6628 9.15697C18.6574 8.74279 18.3172 8.41145 17.903 8.41689C17.4888 8.42234 17.1575 8.76251 17.1629 9.17669L18.6628 9.15697ZM10.8333 2.8335C11.2475 2.83348 11.5833 2.49769 11.5833 2.08347C11.5832 1.66926 11.2474 1.33348 10.8332 1.3335L10.8333 2.8335ZM6.16658 14.5835V12.0835H4.66659V14.5835H6.16658ZM10.3333 14.5835V7.0835H8.83325V14.5835H10.3333ZM14.4999 14.5835V11.2502H12.9999V14.5835H14.4999ZM17.1666 4.5835C17.1666 5.54999 16.3831 6.3335 15.4166 6.3335V7.8335C17.2115 7.8335 18.6666 6.37842 18.6666 4.5835H17.1666ZM15.4166 6.3335C14.4501 6.3335 13.6666 5.54999 13.6666 4.5835H12.1666C12.1666 6.37842 13.6217 7.8335 15.4166 7.8335V6.3335ZM13.6666 4.5835C13.6666 3.617 14.4501 2.8335 15.4166 2.8335V1.3335C13.6217 1.3335 12.1666 2.78857 12.1666 4.5835H13.6666ZM15.4166 2.8335C16.3831 2.8335 17.1666 3.617 17.1666 4.5835H18.6666C18.6666 2.78857 17.2115 1.3335 15.4166 1.3335V2.8335ZM9.99992 17.1669C8.11274 17.1669 6.7728 17.1653 5.75649 17.0286C4.76174 16.8949 4.19006 16.6443 3.77295 16.2272L2.71229 17.2878C3.45455 18.0301 4.39554 18.3591 5.55662 18.5152C6.69612 18.6684 8.15514 18.6669 9.99992 18.6669V17.1669ZM1.33325 10.0002C1.33325 11.845 1.33166 13.304 1.48486 14.4435C1.64096 15.6046 1.97003 16.5456 2.71229 17.2878L3.77295 16.2272C3.35584 15.81 3.10522 15.2384 2.97149 14.2436C2.83484 13.2273 2.83325 11.8874 2.83325 10.0002H1.33325ZM17.1666 10.0002C17.1666 11.8874 17.165 13.2273 17.0284 14.2436C16.8946 15.2384 16.644 15.81 16.2269 16.2272L17.2875 17.2878C18.0298 16.5456 18.3589 15.6046 18.515 14.4435C18.6682 13.304 18.6666 11.845 18.6666 10.0002H17.1666ZM9.99992 18.6669C11.8447 18.6669 13.3037 18.6684 14.4432 18.5152C15.6043 18.3591 16.5453 18.0301 17.2875 17.2878L16.2269 16.2272C15.8098 16.6443 15.2381 16.8949 14.2434 17.0286C13.227 17.1653 11.8871 17.1669 9.99992 17.1669V18.6669ZM9.99992 1.33352C8.15514 1.33352 6.69612 1.33193 5.55662 1.48513C4.39554 1.64123 3.45455 1.9703 2.71229 2.71256L3.77295 3.77322C4.19006 3.35611 4.76174 3.10549 5.75649 2.97175C6.7728 2.83511 8.11274 2.83352 9.99992 2.83352V1.33352ZM2.83325 10.0002C2.83325 8.11301 2.83484 6.77307 2.97149 5.75676C3.10522 4.76201 3.35584 4.19033 3.77295 3.77322L2.71229 2.71256C1.97003 3.45482 1.64096 4.39581 1.48486 5.55689C1.33166 6.69639 1.33325 8.15541 1.33325 10.0002H2.83325ZM18.6666 10.0002C18.6666 9.72329 18.6656 9.51329 18.6647 9.37211C18.6642 9.30152 18.6638 9.24813 18.6634 9.2122C18.6632 9.19423 18.6631 9.18062 18.663 9.17141C18.6629 9.1668 18.6629 9.16329 18.6628 9.16088C18.6628 9.15968 18.6628 9.15875 18.6628 9.1581C18.6628 9.15777 18.6628 9.15752 18.6628 9.15733C18.6628 9.15723 18.6628 9.15716 18.6628 9.1571C18.6628 9.15707 18.6628 9.15704 18.6628 9.15702C18.6628 9.15701 18.6628 9.157 18.6628 9.15699C18.6628 9.15698 18.6628 9.15697 17.9129 9.16683C17.1629 9.17669 17.1629 9.17668 17.1629 9.17667C17.1629 9.17667 17.1629 9.17667 17.1629 9.17666C17.1629 9.17666 17.1629 9.17666 17.1629 9.17666C17.1629 9.17667 17.1629 9.1767 17.1629 9.17674C17.1629 9.17683 17.1629 9.17699 17.1629 9.17722C17.1629 9.17767 17.163 9.1784 17.163 9.1794C17.163 9.18141 17.163 9.18451 17.1631 9.18872C17.1632 9.19713 17.1633 9.20993 17.1635 9.22708C17.1638 9.2614 17.1643 9.31315 17.1647 9.3821C17.1657 9.52 17.1666 9.72667 17.1666 10.0002H18.6666ZM9.99994 2.83352L10.8333 2.8335L10.8332 1.3335L9.9999 1.33352L9.99994 2.83352Z",fill:"#121313"})),Vj=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.99992 8.95825C4.42462 8.95825 3.95825 9.42462 3.95825 9.99992C3.95825 10.5752 4.42462 11.0416 4.99992 11.0416H5.0074C5.5827 11.0416 6.04907 10.5752 6.04907 9.99992C6.04907 9.42462 5.5827 8.95825 5.0074 8.95825H4.99992ZM8.955 9.99992C8.955 9.42462 9.42137 8.95825 9.99666 8.95825H10.0041C10.5794 8.95825 11.0458 9.42462 11.0458 9.99992C11.0458 10.5752 10.5794 11.0416 10.0041 11.0416H9.99666C9.42137 11.0416 8.955 10.5752 8.955 9.99992ZM13.9583 9.99992C13.9583 9.42462 14.4246 8.95825 14.9999 8.95825H15.0074C15.5827 8.95825 16.0491 9.42462 16.0491 9.99992C16.0491 10.5752 15.5827 11.0416 15.0074 11.0416H14.9999C14.4246 11.0416 13.9583 10.5752 13.9583 9.99992Z",fill:"#121313"})),Fj=y("div",{target:"e1iu7xfm0"})({name:"1d6g5kf",styles:"text-align:center;white-space:pre-wrap;max-width:500px"}),$j="Your campaign search is now finished, however, your, campaign will continue to run. If you were expecting more results, try creating a new campaign with less stringent search f
71ilters or you can restart the search clicking here.",Gj=({campaign:e,campaignStatus:n,openStatsChart:s})=>{const r=Rt(),a=mt(),i=P(),{palette:o}=Ve(),{id:l,isSearchEnded:u,leadSourcesSearchEnded:d,leadSourcesCount:p,campaignType:h}=e,{category:m,isConnectionsCampaign:f,isZapierCampaign:C,isInteractiveQuestionsCampaign:E}=Da(e),b=n==="active",{checkFeature:w}=We(),[I,T]=w(X.addMoreLeads),{deleteCampaign:j}=v7({campaignId:l,category:m}),{duplicateCampaign:L}=I7(l),{restartSearch:_}=pl({campaignId:l,category:m}),{archiveCampaign:N}=j7(l,{onSuccess:(F,W)=>{W.toArchive||r(`/campaign/stats/${e.category}/${F.status===Jp.DRAFT?"draft":"paused"}`)}}),A=[U.LINKEDIN_CONNECTIONS,U.EMAIL_CONNECTIONS,U.TWITTER_CONNECTIONS,U.LINKEDIN_CSV_UPLOAD,U.EMAIL_CSV_UPLOAD,U.TWITTER_CSV_UPLOAD,U.ZAPIER,U.ZAPIER_LEADS,U.INTERACTIVE_QUESTIONS,U.LEAD_FINDER,U.SAVED_LIST],{data:R=[]}=X0(l,{enabled:b&&h===U.SAVED_LIST}),V=R.some(F=>!A.includes(F.searchType)),O=()=>{const{path:F,state:W}=Hh(e,{redirectTo:`${a.pathname}${a.search}`});r(F,{state:W})},B=()=>p?i(Ne({type:Y.RESTART_CAMPAIGN_SEARCH,closable:!1,params:{campaignId:l}})):_({restartCampaign:!0}),D=m===ue.TWITTER,M=[{label:"Details",onClick:()=>r(`/campaign/details/overview/${l}`),Icon:bu},{label:"Edit Sequence",isShow:b,Icon:ls,onClick:()=>r(`/campaign/${l}/sequence`,{state:{isEdit:!0,canPublish:!1}}),disabled:D,tooltip:D?Ws:""},{label:"Recent Activity",isShow:!!s,Icon:Hj,onClick:s},{label:"Duplicate",isShow:b,Icon:nw,onClick:()=>L(),disabled:D,tooltip:D?Ws:""},{label:b?"Archive":"Unarchive",onClick:()=>N({toArchive:b}),Icon:b?u3:p3,disabled:!b&&D,tooltip:!b&&D?Ws:""},{label:"Restart Search",isShow:b&&(u&&!f||!!d)&&(p||!C&&!E)&&(h!==U.SAVED_LIST||V),Icon:e3,onClick:()=>B(),disabled:D,tooltip:D?Ws:$j},{label:"Add More Leads",isShow:b&&![U.LINKEDIN_GROUP,U.LINKEDIN_POST,U.LINKEDIN_EVENT].some(F=>F===h),Icon:Ij,onClick:()=>O(),disabled:!I||D,tooltip:T||D&&Ws||"You can add more leads to this campaign from different sources."},{label:"Delete",isShow:!b,Icon:Ds,onClick:()=>j(),color:o.additional.red50}];return t.jsx(g,{children:t.jsx(gr,{controlContent:t.jsx(Vj,{}),controlProps:{height:"32px",width:"32px",padding:"6px"},noControlBorder:!0,centralizeControl:!0,tooltip:{title:"Click here to view options"},children:M.map(({disabled:F,label:W,onClick:ne,tooltip:$,isShow:z=!0,Icon:K,color:re})=>z&&t.jsx(we,{title:$&&t.jsx(Fj,{children:$}),arrow:!0,placement:"top",children:t.jsx("span",{children:t.jsxs(bs,{className:Ee({disabled:F}),disabled:F,onClick:()=>{!F&&ne&&typeof ne=="function"&&ne()},...re?{color:re}:{},children:[t.jsx(K,{color:o.greyBlue[100]}),W]})})},W))})})},Fi=y(g,{target:"e1ri53pg0"})({name:"17j8qz4",styles:"display:flex;margin-left:calc(13%)"}),zj=({campaign:e,campaignStatus:n,columns:s})=>{const r=Rt(),a=P(),{palette:i}=No(),{id:o,leadSourcesCount:l,isSearchEnded:u,leadsFound:d,category:p}=e,{restartSearch:h}=pl({campaignId:o,category:p}),{isZapierCampaign:m,isInteractiveQuestionsCampaign:f}=Da(e),{isInactive:C,inactiveLabel:E,inactiveNoLeads:b}=jl(p),w=c.useMemo(()=>{switch(p){case ue.EMAIL:return"email";case ue.TWITTER:return"twitter";default:return"linkedin"}},[p]),I=n==="active",T=()=>l?a(Ne({type:Y.RESTART_CAMPAIGN_SEARCH,closable:!1,params:{campaignId:o}})):h({restartCampaign:!0});return C&&(b||!u&&!d||f)?t.jsx(ze,{colSpan:s.length+1,contentStyle:{width:"100%"},children:t.jsx(Fi,{children:t.jsxs(S,{color:"error.main",children:[t.jsx(Pe,{type:"dots",size:"14px",color:"text.primary",inline:!0}),"  ",t.jsx(je,{variant:"error",semibold:!0,underline:!0,to:`/integrations?tab=${w}`,children:"Click here"})," to connect your ",E," account to run this campaign"]})})}):I&&!u&&!d&&!m?t.jsx(ze,{colSpan:s.length+1,contentStyle:{overflow:"visible",width:"100%"},children:t.jsx(Fi,{children:t.jsxs(S,{children:[t.jsx(Pe,{type:"dots",size:"14px",inline:!0}),"  Preparing your campaign.",t.jsx("br",{}),"Allow 8-12 mins during scheduled"," ",t.jsx(je,{variant:"darkBlue",to:"/settings/work-hours",children:"work hours"})]})})}):!d&&!m?t.jsx(ze,{colSpan:s.length+1,contentStyle:{width:"100%"},children:I&&t.jsx(Fi,{children:t.jsxs(g,{children:[t.jsx(S,{children:"We couldn't find any leads. Leads may be removed or in other campaign"}),t.jsxs(S,{children:["If you think this is a mistake please"," ",t.jsx(S,{component:"a",inline:!0,pointer:!0,color:"primary.wlLight",onClick:T,children:"click here"})," ","to restart your search."]})]})})}):t.jsxs(t.Fragment,{children:[t.jsx(ze,{justifyContent:"flex-end",children:t.jsxs(g,{display:"flex",alignItems:"center",children:[t.jsx(S,{color:i.brand[300],hoverColor:i.brand[400],pointer:!!e.leadsApproved,onClick:()=>e.leadsApproved&&r(`/campaign/details/leads/${o}`),fontSize:"15px",children:e.leadsApproved}),!!e.leadsMoved&&t.jsx(Mn,{tooltip:{title:`${e.leadsMoved} profile${e.leadsMoved>1?"s":""} moved to another campaign.`,placement:"right",arrow:!0}})]})}),s==null?void 0:s.map(({getValue:j,color:L="greyBlue.100",withNull:_,getTooltip:N,getLink:A},R)=>{const V=j(e),B=_?V:V||typeof V=="string"?V:"-",D=N&&N(e),M=B!=="-"&&!!A,F=()=>{M&&(a(f0({campaignId:o,entityUrns:[]})),r(A(e),{state:{campaignId:o}}))};return t.jsx(ze,{justifyContent:"flex-end",children:t.jsxs(g,{display:"flex",alignItems:"center",children:[t.jsx(S,{color:M?i.brand[300]:L,pointer:M,onClick:F,...M&&{hoverColor:i.brand[400]},children:B}),D&&t.jsx(Mn,{tooltip:{title:D,placement:"right",arrow:!0}})]})},R)})]})},Wj=({campaign:e,campaignStatus:n,columns:s,openStatsChart:r,rowIndex:a=0})=>{const{runState:i,name:o,id:l,category:u}=e,{updateRunningState:d}=D7(l,{campaignType:e.campaignType,isLinkedInOnly:e.isLinkedinOnly,category:e.category}),{isMultichannelCampaign:p}=Da(e),{Icon:h}=jl(u),m=c.useMemo(()=>i==="running",[i]),f=n==="active",C=(e==null?void 0:e.category)===ue.TWITTER,E=()=>{d(m?"paused":"running")};return t.jsx(t.Fragment,{children:t.jsxs(TS,{staggerDelayMs:LE(a),hoverBgColor:({light:b})=>b.main,children:[t.jsxs(ze,{tooltip:o,sticky:!0,stickyPosition:"left",paddingBox:"12px 16px",contentStyle:{display:"flex",alignItems:"center"},children:[t.jsx(h,{width:p?"60px":"24px",height:"24px",style:{verticalAlign:"middle",flexShrink:0}}),t.jsxs(g,{ml:"24px",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",children:[t.jsx(je,{semibold:!0,crop:!0,to:`/campaign/details/overview/${l}`,children:o||`Campaign draft (${l})`}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",crop:!0,mt:"2px",children:Bh(e.campaignType)})]})]}),t.jsx(zj,{campaign:e,campaignStatus:n,columns:s}),t.jsx(ze,{justifyContent:"flex-end",sticky:!0,sx:{padding:"17px 16px !important"},children:t.jsxs(g,{display:"flex",alignItems:"center",gap:"16px",children:[f&&t.jsx(Us,{name:"toggle",onCh
71ange:E,checked:m,disabled:!m&&C,tooltip:{title:!m&&C&&"Feature under Maintenance"||(m?"Click to pause campaign":"Click to resume campaign"),placement:"top"}}),t.jsx(Gj,{campaign:e,campaignStatus:n,openStatsChart:r})]})})]})})},qj=c.lazy(()=>ee(()=>import("./CP9inigw.js"),__vite__mapDeps([4,0,1,2,3,5,6,7,8,9,10,11,12,13])).then(e=>({default:e.StatsChart}))),Zj=y(g,{target:"eiv9k550"})({name:"1pajyl6",styles:"position:relative;flex:1;min-height:0;display:flex;flex-direction:column"}),mV=({interval:e,search:n,category:s,runState:r,campaignStatus:a,campaignTab:i})=>{const o=P(),[l,u]=c.useState(!1),[d,p]=c.useState(null),{page:h,perPage:m,sortField:f,sortOrder:C}=fe(({campaign:oe})=>oe.statsParams[s][i]),E=oe=>o(um({status:i,category:s,params:oe})),{columnConfig:b,columnSwitchesType:w,generateDataset:I}=jl(s),{columns:T,setColumns:j}=vf({type:w,columns:b}),L=d==null?void 0:d.id,{campaign:_}=ul(L??0,{enabled:l&&!!L}),N=Oa(_??d),{data:A,isLoading:R,isFetching:V,isPlaceholderData:O,error:B}=k7({status:a,category:s,runState:r,page:h,perPage:m,sortOrder:C,sortField:f,filter:i==="paused"?"all":e,search:n},{keepPreviousData:!0}),D=[511,401].includes((B==null?void 0:B.statusCode)??0),{campaigns:M=[],total:F=0}=A||{},W=a==="active",ne=`${s}/${i}`,z=qf(R||V&&O,ne),re=z||V&&O&&!z?"skeleton":"data";c.useEffect(()=>{A&&(M==null?void 0:M.length)===0&&h>1&&E({page:1})},[A]);const ae=(oe,ke)=>E({sortField:oe,sortOrder:ke}),pe=oe=>{p(oe),u(!0)},ie=()=>{u(!1),p(null)};return t.jsxs(t.Fragment,{children:[D&&t.jsx(Rj,{p:"15px",children:B==null?void 0:B.message}),t.jsx(Zj,{children:t.jsx(IS,{view:re,skeleton:t.jsx(Bj,{metricColumnCount:(T==null?void 0:T.length)||void 0}),children:t.jsxs(vr,{paginationProps:{page:h,perPage:m,total:F,onPaginationChange:E},children:[t.jsx(_r,{children:t.jsxs(dn,{children:[t.jsx(Qe,{width:"256px",name:"name",sorting:{sortOrder:C,sortField:f,onSortFieldChange:ae},sticky:!0,stickyPosition:"left",contentStyle:{paddingLeft:s===ue.MULTICHANNEL?"84px":"48px"},children:"Name"}),t.jsx(Qe,{width:"110px",justifyContent:"flex-end",children:"Leads"}),T==null?void 0:T.map(({label:oe,columnTooltip:ke,width:Oe="125px"},Be)=>t.jsx(Qe,{tooltip:ke,width:Oe,justifyContent:"flex-end",children:oe},Be)),t.jsx(Qe,{width:W?"110px":"65px",sticky:!0,justifyContent:"flex-end",sx:{p:"8px !important"},children:W?t.jsx(Hy,{shown:T,columns:b,onSaveColumns:j}):null})]})}),t.jsx(Ir,{placeholder:!M.length&&"No campaigns meet your search criteria",children:M==null?void 0:M.map((oe,ke)=>t.jsx(Wj,{campaign:oe,campaignStatus:a,columns:T,rowIndex:ke,openStatsChart:()=>pe(oe)},oe.id))})]})})}),t.jsxs(Hs,{isOpen:l,onClose:ie,width:"75%",children:[t.jsx(Nu,{onClose:ie,title:(d==null?void 0:d.name)||""}),t.jsx(Au,{containerHeight:"100%",children:d&&!!I&&t.jsx(c.Suspense,{fallback:t.jsx(g,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",children:t.jsx(Pe,{})}
71),children:t.jsx(qj,{campaignId:d.id,generateDataset:oe=>{const ke=I(oe);return N?ke.filter(({label:Oe})=>Oe!==io):ke}})})})]})]})},$l=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_572_41763)"},c.createElement("path",{d:"M10.75 6.66699C10.75 6.25278 10.4142 5.91699 10 5.91699C9.58581 5.91699 9.25002 6.25278 9.25002 6.66699H10.75ZM10 10.0003H9.25002C9.25002 10.1992 9.32904 10.39 9.46969 10.5307L10 10.0003ZM11.1364 12.1973C11.4293 12.4902 11.9041 12.4902 12.197 12.1973C12.4899 11.9044 12.4899 11.4296 12.197 11.1367L11.1364 12.1973ZM17.5834 10.0003C17.5834 14.1885 14.1882 17.5837 10 17.5837V19.0837C15.0166 19.0837 19.0834 15.0169 19.0834 10.0003H17.5834ZM10 17.5837C5.81186 17.5837 2.41669 14.1885 2.41669 10.0003H0.916687C0.916687 15.0169 4.98343 19.0837 10 19.0837V17.5837ZM2.41669 10.0003C2.41669 5.81217 5.81186 2.41699 10 2.41699V0.916992C4.98343 0.916992 0.916687 4.98374 0.916687 10.0003H2.41669ZM10 2.41699C14.1882 2.41699 17.5834 5.81217 17.5834 10.0003H19.0834C19.0834 4.98374 15.0166 0.916992 
7110 0.916992V2.41699ZM9.25002 6.66699V10.0003H10.75V6.66699H9.25002ZM9.46969 10.5307L11.1364 12.1973L12.197 11.1367L10.5304 9.47L9.46969 10.5307Z",fill:"currentColor"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_572_41763"},c.createElement("rect",{width:20,height:20,fill:"white"})))),Yj=({index:e=0,sequence:n,showCompletedLeads:s,completedLeads:r})=>{const{type:a,auto_endorse:i,auto_post_like:o,auto_follow:l,view:u,delay_time_unit:d,delay_number:p,tags:h,attachments:m,posts_count:f,endorsements_count:C,useCredits:E}=n,{icon:b,title:w,messages:I,chainedMessages:T}=Oh(a,n)??{},j=`${p} ${d}`,L=I&&(I==null?void 0:I.map(({key:D,title:M,description:F})=>({title:M,description:M&&D&&n[D]||F}))),_=T&&(T==null?void 0:T.map(({key:D,title:M},F)=>{var W;return{title:M,description:M&&D&&((W=n.chainedMessages[F])==null?void 0:W.message)||""}})),N=I?L:_,A=[{label:"View LinkedIn Profile",isShow:u},{label:`Endorse their first skill (${C})`,isShow:i},{label:`Like their last post (${f})`,isShow:o},{label:"Follow their LinkedIn profile",isShow:l}],R=A==null?void 0:A.some(({isShow:D})=>D),V=![de.LINKED_IN_CONNECT,de.IN_MAIL_MESSAGE,de.LINKED_IN_MESSAGE,de.LINKED_IN_CHAINED_MESSAGE,de.TWITTER_DM,de.EVENT_MESSAGE,de.GROUP_MESSAGE].some(D=>D===n.type),{tags:O}=is(),B=c.useMemo(()=>!O||!h?[]:h.map(D=>O.find(M=>M.id===D.key)).filter(D=>!!D),[h,O]);return t.jsxs(Ot,{expanded:!0,radius:"5px",sx:{width:"100%"},children:[t.jsxs(Dt,{height:"48px",expandedTopRadius:"4px",children:[t.jsx(m3,{type:b,size:"medium"}),t.jsxs(S,{ml:"8px",semibold:!0,mr:"auto",children:["Step ",e+1," - ",w]}),!!e&&t.jsxs(g,{display:"flex",alignItems:"center",children:[t.jsx($l,{}),t.jsxs(S,{fontSize:"12px",lineHeight:"16px",medium:!0,ml:"6px",mr:"4px",children:[j," from previous step"]})]})]}),t.jsxs(un,{children:[R||N||B.length?t.jsxs(t.Fragment,{children:[R&&(A==null?void 0:A.map(({label:D,isShow:M})=>M&&t.jsxs(S,{color:"greyNeutral.100",mb:"8px",children:["• ",D]},D))),t.jsx(g,{display:"flex",flexDirection:"column",gap:"16px",children:N==null?void 0:N.map(({title:D,description:M})=>M&&t.jsxs(g,{children:[D&&t.jsx(S,{semibold:!0,fontSize:"12px",lineHeight:"16px",mb:"6px",children:D}),V?t.jsx(S,{component:"div",color:"greyNeutral.100",children:t.jsx(cn,{parseText:M,allowImages:!0})}):t.jsx(S,{color:"greyNeutral.100",whiteSpace:"pre-wrap",children:F0(M)})]},D+M))}),!!(m!=null&&m.length)&&t.jsxs(g,{mt:"16px",children:[t.jsx(S,{semibold:!0,fontSize:"12px",lineHeight:"16px",mb:"6px",children:"Attachments:"}),t.jsx(g,{display:"flex",flexWrap:"wrap",gap:"8px",children:m==null?void 0:m.map(({file_uri:D,file_name:M})=>t.jsx(os,{margin:"0",name:M},D))})]}),a===de.IN_MAIL_MESSAGE&&t.jsxs(g,{mt:"16px",mb:"16px",children:[t.jsx(S,{semibold:!0,fontSize:"12px",lineHeight:"16px",mb:"6px",children:"Send InMail using credits:"}),t.jsx(S,{color:"greyNeutral.100",fontSize:"14px",lineHeight:"16px",children:E?"Yes":"No"})]}),!!B.length&&t.jsxs(g,{mt:"8px",children:[t.jsx(S,{semibold:!0,fontSize:"12px",lineHeight:"16px",mb:"6px",children:"Tags:"}),t.jsx(g,{display:"flex",flexWrap:"wrap",gap:"8px",children:B==null?void 0:B.map(D=>t.jsx(Pt,{sharp:!0,tag:D.tag,color:D.color,withBorder:!0},D.id))})]}),a===de.TWITTER_DM&&t.jsx(S,{color:"additional.red50",children:"Warning: X (Twitter) DM feature is under maintenance. The step won’t be completed as expected."})]}
71):null,s&&t.jsxs(t.Fragment,{children:[t.jsx(Ue,{my:"12px"}),t.jsxs(S,{color:"greyBlue.80",fontSize:"12px",lineHeight:"16px",children:["Leads that have passed this step: ",Dn(r)]})]})]})]})},g3=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_11830_71843)"},c.createElement("path",{d:"M10.0001 6.66669V10M10.0001 10H7.50008C5.92873 10 5.14306 10 4.6549 10.4882C4.16675 10.9763 4.16675 11.762 4.16675 13.3334M10.0001 10H12.5001C14.0714 10 14.8571 10 15.3453 10.4882C15.8334 10.9763 15.8334 11.762 15.8334 13.3334",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M1.66675 15.8333C1.66675 14.6548 1.66675 14.0655 2.03286 13.6994C2.39898 13.3333 2.98824 13.3333 4.16675 13.3333C5.34526 13.3333 5.93452 13.3333 6.30063 13.6994C6.66675 14.0655 6.66675 14.6548 6.66675 15.8333C6.66675 17.0118 6.66675 17.6011 6.30063 17.9672C5.93452 18.3333 5.34526 18.3333 4.16675 18.3333C2.98824 
7118.3333 2.39898 18.3333 2.03286 17.9672C1.66675 17.6011 1.66675 17.0118 1.66675 15.8333Z",stroke:"white",strokeWidth:1.5}),c.createElement("path",{d:"M13.3335 15.8333C13.3335 14.6548 13.3335 14.0655 13.6996 13.6994C14.0657 13.3333 14.655 13.3333 15.8335 13.3333C17.012 13.3333 17.6013 13.3333 17.9674 13.6994C18.3335 14.0655 18.3335 14.6548 18.3335 15.8333C18.3335 17.0118 18.3335 17.6011 17.9674 17.9672C17.6013 18.3333 17.012 18.3333 15.8335 18.3333C14.655 18.3333 14.0657 18.3333 13.6996 17.9672C13.3335 17.6011 13.3335 17.0118 13.3335 15.8333Z",stroke:"white",strokeWidth:1.5}),c.createElement("path",{d:"M8.57151 1.66669H11.4287C13.1574 1.66669 13.3334 2.59163 13.3334 4.16669C13.3334 5.74175 13.1574 6.66669 11.4287 6.66669H8.57151C6.84274 6.66669 6.66675 5.74175 6.66675 4.16669C6.66675 2.59163 6.84274 1.66669 8.57151 1.66669Z",stroke:"white",strokeWidth:1.5})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_11830_71843"},c.createElement("rect",{width:20,height:20,fill:"white"})))),Kj=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M17.6712 1H2.32875C1.97634 1 1.63837 1.13999 1.38918 1.38918C1.13999 1.63837 1 1.97634 1 2.32875V17.6712C1 18.0237 1.13999 18.3616 1.38918 18.6108C1.63837 18.86 1.97634 19 2.32875 19H17.6712C18.0237 19 18.3616 18.86 18.6108 18.6108C18.86 18.3616 19 18.0237 19 17.6712V2.32875C19 1.97634 18.86 1.63837 18.6108 1.38918C18.3616 1.13999 18.0237 1 17.6712 1ZM6.365 16.3337H3.65875V7.7375H6.365V16.3337ZM5.01 6.54625C4.70302 6.54452 4.40344 6.4519 4.14905 6.28007C3.89466 6.10823 3.69688 5.8649 3.58066 5.58077C3.46444 5.29664 3.43499 4.98444 3.49602 4.68359C3.55706 4.38274 3.70585 4.10671 3.92362 3.89034C4.14138 3.67396 4.41836 3.52695 4.7196 3.46785C5.02084 3.40874 5.33283 3.4402 5.61621 3.55824C5.89959 3.67628 6.14165 3.87563 6.31185 4.13111C6.48204 4.38659 6.57274 4.68677 6.5725 4.99375C6.5754 5.19928 6.53688 5.40328 6.45926 5.5936C6.38163 5.78393 6.26649 5.95668 6.12068 6.10155C5.97487 6.24643 5.80139 6.36046 5.61057 6.43686C5.41975 6.51326 5.2155 6.55047 5.01 6.54625ZM16.34 16.3412H13.635V11.645C13.635 10.26 13.0463 9.8325 12.2863 9.8325C11.4838 9.8325 10.6962 10.4375 10.6962 11.68V16.3412H7.99V7.74375H10.5925V8.935H10.6275C10.8888 8.40625 11.8038 7.5025 13.2 7.5025C14.71 7.5025 16.3412 8.39875 16.3412 11.0238L16.34 16.3412Z",fill:"#C37D17"}),c.createElement("path",{d:"M16.34 16.3412H13.635V11.645C13.635 10.26 13.0463 9.8325 12.2863 9.8325C11.4838 9.8325 10.6962 10.4375 10.6962 11.68V16.3412H7.99V7.74375H10.5925V8.935H10.6275C10.8888 8.40625 11.8038 7.5025 13.2 7.5025C14.71 7.5025 16.3412 8.39875 16.3412 11.0238L16.34 16.3412Z",fill:"white"}),c.createElement("path",{d:"M6.365 16.3337H3.65875V7.7375H6.365V16.3337Z",fill:"white"}),c.createElement("path",{d:"M5.01 6.54625C4.70302 6.54452 4.40344 6.4519 4.14905 6.28007C3.89466 6.10823 3.69688 5.8649 3.58066 5.58077C3.46444 5.29664 3.43499 4.98444 3.49602 4.68359C3.55706 4.38274 3.70585 4.10671 3.92362 3.89034C4.14138 3.67396 4.41836 3.52695 4.7196 3.46785C5.02084 3.40874 5.33283 3.4402 5.61621 3.55824C5.89959 3.67628 6.14165 3.87563 6.31185 4.13111C6.48204 4.38659 6.57274 4.68677 6.5725 4.99375C6.5754 5.19928 6.53688 5.40328 6.45926 5.5936C6.38163 5.78393 6.26649 5.95668 6.12068 6.10155C5.97487 6.24643 5.80139 6.36046 5.61057 6.43686C5.41975 6.51326 5.2155 6.55047 5.01 6.54625Z",fill:"white"})),Qj=y(g,{target:"e1vjkf4o4"})({name:"jkwb8s",styles:"border:1px solid #e5e5e5;border-radius:12px;background-color:#ffffff;overflow:hidden"}),Xj=y(g,{target:"e1vjkf4o3"})("display:flex;align-items:center;gap:8px;padding:12px;cursor:pointer;background-color:",({isExpanded:e})=>e?"#F7F7F9":"#ffffff",";"),Jj=y(S,{target:"e1vjkf4o2"})({name:"1tx1l5v",styles:"margin-right:auto"}),ev=y(ln,{target:"e1vjkf4o1"})("color:#292d32;transform:",({isExpanded:e})=>e?"rotate(180deg)":"rotate(0deg)",";transition:transform 0.2s ease;flex-shrink:0;"),tv=y(g,{target:"e1vjkf4o0"})({name:"n5zdhl",styles:"padding:8px 12px;border-top:1px solid #e5e5e5;background-color:#ffffff"}),Xc=({title:e,icon:n,children:s,defaultExpanded:r=!1})=>{const[a,i]=c.useState(r);return t.jsxs(Qj,{children:[t.jsxs(Xj,{isExpanded:a,onClick:()=>i(o=>!o),children:[n,t.jsx(Jj,{semibold:!0,children:e}),t.jsx(ev,{width:"20px",height:"20px",isExpanded:a})]}),t.jsx(Oo,{in:a,children:t.jsx(tv,{children:s})})]})},nv=y(g,{target:"e1oesy510"})({name:"13zqnlt",styles:"padding:20px;background-color:#f7f7f9;width:100%;box-sizing:border-box;flex:1 1 auto;min-height:0;overflow-y:auto;display:flex;flex-direction:column;gap:16px"}),x3=y(g,{target:"e1oesy59"})({name:"ob9bwc",styles:"border-radius:12px;background-color:#ffffff;overflow:hidden"}),sv=y(x3,{target:"e1oesy58"})({name:"t1q5ny",styles:"position:relative;padding:16px;flex-shrink:0;overflow:visible"}),rv=y(g,{target:"e1oesy57"})({name:"1uf0n5v",styles:"position:absolute;top:12px;right:12px;z-index:2;display:flex;align-items:center;gap:8px"}),av=y("div",{target:"e1oesy56"})({name:"pqnfj",styles:"width:1px;height:20px;background:#e8e8eb;flex-shrink:0"}),iv=y("div",{target:"e1oesy55"})({name:"d1zan8",styles:"height:1px;background:#e8e8eb;margin:12px 0 0"}),ov=y("button",{target:"e1oesy54"})({name:"1tb15z5",styles:"width:32px;height:32px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:8px;background:transparent;color:#000e33;cursor:pointer;&:hover{background:#f7f7f9;}svg{width:24px;height:24px;}"}),lv=y(x3,{target:"e1oesy53"})({name:"16f53j2",styles:"padding:12px;display:flex;flex-direction:column;gap:8px;flex-shrink:0;overflow:visible"}),f3=y("div",{target:"e1oesy52"})({name:"1r1ayk7",styles:"width:16px;height:16px;display:flex;align-items:center;justify-content:center;flex:0 0 16px;color:#666666;svg{width:16px;height:16px;}"}),cv=y(f3,{target:"e1oesy51"})({name:"njgaid",styles:"svg *{stroke:currentColor!important;fill:none!important;}"}),dv=f3,uv=y(g,{target:"e1oesy50"})({name:"r7tu8m",styles:"display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:6px 0"}),pv=e=>c.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M12.0789 4.13184L5.40376 11.1249L3.17871 8.8998",stroke:"white",strokeWidth:1.43039,strokeLinecap:"round",strokeLinejoin:"round"})),$i=e=>
71e.toLocaleString("de-DE"),vt=240,En=56,Gl=40,Ka=vt*2+Gl,Pn=vt/2,cs=vt+Gl+vt/2,zl=y("div",{target:"ejdey6417"})("position:relative;width:",vt,"px;"),Qa=y("div",{target:"ejdey6416"})("position:relative;box-sizing:border-box;width:",({$variant:e})=>e==="start"?"auto":`${vt}px`,";min-width:",({$variant:e})=>e==="start"?"160px":`${vt}px`,";height:",({$variant:e})=>e==="start"?"auto":`${En}px`,";display:flex;flex-direction:",({$variant:e})=>e==="start"?"column":"row",";align-items:center;gap:",({$variant:e})=>e==="start"?"2px":"8px",";padding:",({$variant:e})=>e==="start"?"12px 24px":"12px",";border-radius:",({$variant:e})=>e==="start"?"12px":"6px",";border:1px solid ",({$selected:e})=>e?"#1B4ED2":"#e8e8eb",";background:",({$variant:e,$selected:n})=>e==="start"?"#ffffff":n?"#F0F4FF":"#f7f7f9",";box-shadow:",({$variant:e})=>e==="start"?"0px 2px 3px rgba(0, 0, 0, 0.04)":"0px 2px 6px rgba(0, 0, 0, 0.04)",";cursor:",({$variant:e})=>e==="action"?"pointer":"default",";"),hv=y("span",{target:"ejdey6415"})({name:"1cjvfd9",styles:"position:absolute;top:4px;right:4px;width:8px;height:8px;border-radius:50%;background:#1b4ed2;pointer-events:none"}),C3=y("div",{target:"ejdey6414"})({name:"1k5g7yd",styles:"display:flex;flex:1;flex-direction:column;gap:4px;min-width:0"}),y3=y("div",{target:"ejdey6413"})("width:30px;height:30px;display:flex;align-items:center;justify-content:center;flex:0 0 30px;border-radius:50%;background:",({$tone:e})=>e==="condition"?"#15283d":e==="end"?"#1b4ed2":"#0a66c2",";color:#ffffff;svg{width:",({$tone:e})=>e==="condition"?"16px":"14px",";height:",({$tone:e})=>e==="condition"?"16px":"14px",";}",({$tone:e})=>e==="condition"||e==="end"?`
72    svg,
73    svg * {
74      fill: none !important;
75      stroke: #ffffff !important;
76    }
77  `:`
78    svg * {
79      fill: #ffffff !important;
80      color: #ffffff !important;
81    }
82  `,";"),Wl=y(S,{target:"ejdey6412"})({name:"2us96s",styles:"color:#000e33;font-size:14px;font-weight:600;line-height:20px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"}),mv=y("div",{target:"ejdey6411"})({name:"1h7yl15",styles:"display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;max-width:178px"}),Jc=y(S,{target:"ejdey6410"})({name:"k56kvv",styles:"color:#656f7d;font-size:10px;font-weight:600;line-height:14px;white-space:nowrap"}),ql=vt+Gl,ts=10,Vs=ql-10,Xa=24,E3=24,ed=8,qn=1.5,lr="#c7cbd6",S3=En+Xa,Zl=S3+E3,gv=y("div",{target:"ejdey649"})("position:relative;width:",({$compact:e})=>e?`${ql}px`:`${Ka}px`,";overflow:visible;min-height:",En+Xa+60,"px;"),xv=y("div",{target:"ejdey648"})({name:"zl1inp",styles:"display:flex;justify-content:center"}),fv=y("div",{target:"ejdey647"})("position:absolute;top:",En,"px;left:50%;width:",qn,"px;height:",Xa,"px;transform:translateX(-50%);background:",lr,";"),Cv=y("div",{target:"ejdey646"})("position:absolute;top:",S3,"px;left:",({$compact:e,$yesHandleX:n})=>`${(n??(e?ts:Pn))-qn/2}px`,";width:",({$compact:e,$yesHandleX:n,$noHandleX:s})=>`${(s??(e?Vs:cs))-(n??(e?ts:Pn))+qn}px`,";height:",E3,"px;box-sizing:border-box;border-top:",qn,"px solid ",lr,";border-left:",qn,"px solid ",lr,";border-right:",qn,"px solid ",lr,";border-top-left-radius:",ed,"px;border-top-right-radius:",ed,"px;"),td=y("div",{target:"ejdey645"})("position:absolute;top:",En+Xa+14,"px;left:",({$side:e,$compact:n,$yesHandleX:s,$noHandleX:r})=>e==="yes"?`${(s??(n?ts:Pn))-24}px`:`${(r??(n?Vs:cs))-24}px`,";width:48px;display:flex;flex-direction:column;align-items:center;"),nd=y("span",{target:"ejdey644"})("padding:2px 10px;border-radius:20px;background:",({$branch:e})=>e==="yes"?"#ebf8f1":"#fce9e8",";color:",({$branch:e})=>e==="yes"?"#1b8d2d":"#d3241d",";font-size:12px;font-weight:500;line-height:16px;text-transform:uppercase;"),sd=y("div",{target:"ejdey643"})("width:",qn,"px;height:14px;background:",lr,";"),b3=y(Do,{target:"ejdey642"})({name:"1lwgnbc",styles:"width:1px!important;height:1px!important;min-width:1px!important;min-height:1px!important;border:0!important;background:transparent!important;opacity:0"}),yv=y(Do,{target:"ejdey641"})("left:",({$compact:e,$yesHandleX:n})=>`${n??(e?ts:Pn)}px`,"!important;top:",Zl,"px!important;bottom:auto!important;opacity:0;"),Ev=y(Do,{target:"ejdey640"}
82)("left:",({$compact:e,$noHandleX:n})=>`${n??(e?Vs:cs)}px`,"!important;top:",Zl,"px!important;bottom:auto!important;opacity:0;"),Ja={[de.LINKED_IN_VIEW]:"Engage with Profile",[de.INVITE_TO_EVENT]:"Invite to Attend Event",[de.LINKED_IN_CONNECT]:"Send Connection Request",[de.LINKED_IN_MESSAGE]:"Send Linkedin Message",[de.LINKED_IN_CHAINED_MESSAGE]:"Chained Linkedin Messages",[de.IN_MAIL_MESSAGE]:"Send InMail",[de.EVENT_MESSAGE]:"Send Event Message",[de.GROUP_MESSAGE]:"Send Group Message",[de.INVITE_TO_COMPANY]:"Invite to Company",[de.EMAIL]:"Send email",[de.TWITTER_DM]:"Send X (Twitter) Direct Message",[de.TWITTER_FOLLOW]:"Follow Lead on X (Twitter)"},Sv={[de.GROUP_MESSAGE]:"Send a message to Group member",[de.EVENT_MESSAGE]:"Send a message to Event members"},gV=e=>e?Sv[e]??Ja[e]:void 0,L3=e=>{if(!e.delay_number)return;const n=e.delay_time_unit===$o.HOURS?"hour":"day",s=e.delay_number===1?n:`${n}s`;return`Wait: ${e.delay_number} ${s} from previous step`},Rr=(e,n=!1,s)=>{const r=s!=null&&s.previousStep?[s.previousStep]:[],a={type:e,...Dh({isFirstStep:n,sequenceType:e,sequenceForm:{getValues:()=>({sequence:r})},usePlaceholderContent:(s==null?void 0:s.usePlaceholderContent)??!0})};return(s==null?void 0:s.includeFollowUp)===!1&&e===de.LINKED_IN_CONNECT?{...a,connect_followup:!1,followup_message:""}:a},w3=e=>{switch(e){case de.IN_MAIL_MESSAGE:return ue.INMAIL;case de.GROUP_MESSAGE:return ue.GROUP;case de.EVENT_MESSAGE:return ue.EVENT;case de.INVITE_TO_COMPANY:return ue.COMPANY;case de.EMAIL:return ue.EMAIL;case de.TWITTER_DM:case de.TWITTER_FOLLOW:return ue.TWITTER;default:return ue.LINKEDIN}},bv=({stepType:e})=>t.jsx(m3,{type:w3(e),size:"medium"}),Yl=()=>t.jsx(b3,{type:"target",position:qe.Top}),T3=()=>t.jsx(b3,{type:"source",position:qe.Bottom}),Kl=({currentLeads:e,branchLeads:n,percentage:s,isStart:r})=>t.jsxs(mv,{children:[t.jsx(Jc,{children:r?`${$i(e)} Leads`:`${$i(e)} / ${$i(n)}`}),t.jsxs(Jc,{children:[s,"%"]})]}),Lv=({data:e})=>t.jsx(zl,{style:{display:"flex",justifyContent:"center"},"data-testid":"sequence-tree-preview-start-wrap",children:t.jsxs(Qa,{$variant:"start","data-testid":"sequence-tree-preview-start",children:[t.jsx(S,{medium:!0,fontSize:"16px",lineHeight:"24px",color:"#000E33",children:e.label}),e.stats?t.jsx(Kl,{currentLeads:e.stats.currentLeads,branchLeads:e.stats.branchLeads,percentage:e.stats.percentage,isStart:!0}):null,t.jsx(T3,{})]})}),wv=({data:e,selected:n})=>{var s;return t.jsx(zl,{"data-testid":"sequence-tree-preview-action-wrap",children:t.jsxs(Qa,{$variant:"action",$selected:n,"data-testid":"sequence-tree-preview-action","aria-selected":n,children:[n?t.jsx(hv,{"data-testid":"sequence-tree-preview-selection-dot"}):null,t.jsx(Yl,{}),t.jsx(bv,{stepType:e.stepType??((s=e.step)==null?void 0:s.type)}),t.jsxs(C3,{children:[t.jsx(Wl,{children:e.label}),e.stats?t.jsx(Kl,{currentLeads:e.stats.currentLeads,branchLeads:e.stats.branchLeads,percentage:e.stats.percentage}):null]}),t.jsx(T3,{})]})})},Tv=({data:e})=>t.jsx(zl,{"data-testid":"sequence-tree-preview-end-wrap",children:t.jsxs(Qa,{$variant:"end","data-testid":"sequence-tree-preview-end",children:[t.jsx(Yl,{}),t.jsx(y3,{$tone:"end",children:t.jsx(pv,{})}),t.jsxs(C3,{children:[t.jsx(Wl,{children:e.label}),e.stats?t.jsx(Kl,{currentLeads:e.stats.currentLeads,branchLeads:e.stats.branchLeads,percentage:e.stats.percentage}):null]})]})}),jv=({data:e})=>{const n=!!e.compact,s=e.forkYesHandleX??(n?ts:Pn),r=e.forkNoHandleX??(n?Vs:cs);return t.jsxs(gv,{$compact:n,"data-testid":"sequence-tree-preview-condition-wrap",children:[t.jsx(xv,{children:t.jsxs(Qa,{$variant:"condition","data-testid":"sequence-tree-preview-condition",children:[t.jsx(Yl,{}),t.jsx(y3,{$tone:"condition",children:t.jsx(g3,{})}),t.jsx(Wl,{children:e.label})]})}),t.jsx(fv,{}),t.jsx(Cv,{$compact:n,$yesHandleX:s,$noHandleX:r}),t.jsxs(td,{$side:"yes",$compact:n,$yesHandleX:s,$noHandleX:r,children:[t.jsx(nd,{$branch:"yes",children:"Yes"}),t.jsx(sd,{})]}),t.jsxs(td,{$side:"no",$compact:n,$yesHandleX:s,$noHandleX:r,children:[t.jsx(nd,{$branch:"no",children:"No"}),t.jsx(sd,{})]}),t.jsx(yv,{type:"source",position:qe.Bottom,id:"yes",$compact:n,$yesHandleX:s}),t.jsx(Ev,{type:"source",position:qe.Bottom,id:"no",$compact:n,$noHandleX:r})]})},Vn=460,j3=512,Ql=165,Xl=46,v3=j3/2,xV="#C7CBD6",fV=1.5,I3=14,ds=24,Mr=56,vv=48,Iv=30,_v=16,Jl=Iv+_v,Av=j3-Vn,e1=Jl,Nv=56,kv=e1+Nv,_3=Xl+Vn/2,A3=(Vn+Av)/2,t1=_3-A3,n1=_3+A3,Rv=24,Mv=24,Pv=8,Ov=Pv,N3=kv+Rv,CV=N3+14,Dv=N3+Mv,yV=48,EV=48,SV=48,bV=.35,LV=1,k3=Mr+ds,Uv=Jl+Mr+I3+ds,Bv=Mr+I3+ds,rd=e=>e?Uv:Bv,Hv=Dv+ds,Vv=Jl+Mr+ds-e1,Fv=Mr+ds-e1,ad=e=>e?Vv:Fv,R3=vv+ds,s1=350,id=2,$v=520,Gv=(e,n)=>{const s=(n==null?void 0:n.actionNodeWidth)??e.actionNodeWidth,r=(n==null?void 0:n.conditionCenterX)??e.conditionCenterX,a=(n==null?void 0:n.branchGap)??40,i=s+a,o=(n==null?void 0:n.actionStepOffsetY)??e.actionStepOffsetY,l=(n==null?void 0:n.actionToConditionOffsetY)??e.actionToConditionOffsetY;return{horizontalSpacing:(n==null?void 0:n.horizontalSpacing)??$v,keepMainColumnAligned:(n==null?void 0:n.keepMainColumnAligned)??!0,actionNodeWidth:s,actionRootY:(n==null?void 0:n.actionRootY)??e.actionRootY,actionStepOffsetY:o,actionToConditionOffsetY:l,actionToConditionOffsetYNoDelay:(n==null?void 0:n.actionToConditionOffsetYNoDelay)??e.actionToConditionOffsetYNoDelay??l,conditionBranchOffsetY:(n==null?void 0:n.conditionBranchOffsetY)??e.conditionBranchOffsetY,actionChainOffsetY:(n==null?void 0:n.actionChainOffsetY)??rd(!0),actionChainOffsetYNoDelay:(n==null?void 0:n.actionChainOffsetYNoDelay)??rd(!1),branchYesCenterX:(n==null?void 0:n.conditionYesHandleX)??r-i/2,branchNoCenterX:(n==null?void 0:n.conditionNoHandleX)??r+i/2,actionToConditionOffsetX:(n==null?void 0:n.conditionOffsetFromAction)??s/2-r,includeEndNodes:!!(n!=null&&n.includeEndNodes),alignStartWithRoot:!!(n!=null&&n.alignStartWithRoot),startNodeWidth:n==null?void 0:n.startNodeWidth}},M3=(e,n)=>n?e.actionToConditionOffsetY:e.actionToConditionOffsetYNoDelay,zv=({queue:e,graphNode:n,current:s,layout:r,nodePositions:a,rootNodeId:i})=>{if(!n.condition){if(n.next&&!a.has(n.next)){const d=s.id!==i&&(n.delay_number??0)>0;e.push({id:n.next,x:s.x,y:s.y+(d?r.actionChainOffsetY:r.actionChainOffsetYNoDelay),depth:s.depth+1})}return}const o=s.id!==i&&(n.delay_number??0)>0,l=s.x+r.actionToConditionOffsetX,u=s.y+M3(r,o)+r.conditionBranchOffsetY;
82n.condition.yes&&!a.has(n.condition.yes)&&e.push({id:n.condition.yes,x:l+r.branchYesCenterX-r.actionNodeWidth/2,y:u,depth:s.depth+id}),n.condition.no&&!a.has(n.condition.no)&&e.push({id:n.condition.no,x:l+r.branchNoCenterX-r.actionNodeWidth/2,y:u,depth:s.depth+id})},Wv=(e,n)=>{const s=new Map,r=e.root;if(!r||!e.nodes[r])return s;const a=[{id:r,x:s1,y:n.actionRootY,depth:0}];for(;a.length;){const i=a.shift();if(!i||s.has(i.id))continue;const o=e.nodes[i.id];o&&(s.set(i.id,{x:i.x,y:i.y,depth:i.depth}),zv({queue:a,graphNode:o,current:i,layout:n,nodePositions:s,rootNodeId:r}))}return s},qv=(e,n)=>{const s=e.root;if(!s)return;const r=[];let a=s;for(;a;){const i=e.nodes[a];if(!i||(r.push(a),i.condition||!i.next))break;a=i.next}r.forEach(i=>{const o=n.get(i);o&&n.set(i,{...o,x:s1})})},Zv=({fallbackIndex:e,layout:n})=>({x:s1+e*n.horizontalSpacing,y:n.actionRootY+e*n.actionStepOffsetY,depth:e}),ft={type:"smoothstep",style:{stroke:"#C7CBD6",strokeWidth:1.5},pathOptions:{borderRadius:Ov}},ja={id:"start",type:"start",position:{x:350+Vn/2-Ql/2,y:0},data:{label:"Sequence start",kind:"start"},sourcePosition:qe.Bottom},P3=(e,n)=>{const s=new Set,r=[e];for(;r.length;){const a=r.shift();!a||s.has(a)||(s.add(a),n.filter(i=>i.source===a).forEach(i=>r.push(i.target)))}return s},wV=(e,n)=>P3(e,n).size>1,TV=e=>!!(e&&e.data.kind==="condition"),jV=e=>!!(e&&e.data.kind==="action"),Yv=(e,n)=>{const s=e.map((r,a)=>{const i=`seq-${a+1}`,o=a===0,l={...Rr(r.type,o,{includeFollowUp:n}),...r,...n?{}:{connect_followup:!1,followup_message:""},...o?{delay_number:0}:{}},u={label:Ja[r.type]??r.type,kind:"action",stepType:r.type,step:l,delay:L3(l)};return{id:i,type:"action",dragHandle:".sequence-node-drag-handle",position:{x:350,y:R3+a*k3},data:u,sourcePosition:qe.Bottom,targetPosition:qe.Top}});return[ja,...s]},Kv=e=>{if(!e.length)return[];const n=[{id:"e-start-seq-1",source:"start",target:"seq-1",...ft}];for(let s=1;s<e.length;s+=1)n.push({id:`e-seq-${s}-seq-${s+1}`,source:`seq-${s}`,target:`seq-${s+1}`,...ft});return n},Qv={if_connected:"If Connected",if_replied:"If Replied"},Xv=(e,n,s)=>({id:e.id,type:"action",dragHandle:".sequence-node-drag-handle",position:{x:n,y:s},data:{label:Ja[e.type]??e.type,kind:"action",stepType:e.type,step:e,delay:L3(e)},sourcePosition:qe.Bottom,targetPosition:qe.Top}),Jv=(e,n,s,r)=>{var a,i,o,l,u;return{id:n,type:"condition",dragHandle:".condition-node-drag-handle",position:{x:s,y:r},data:{label:Qv[((a=e.condition)==null?void 0:a.type)||""]||"Condition",kind:"condition",conditionType:(i=e.condition)==null?void 0:i.type,withinDays:((o=e.condition)==null?void 0:o.within.number)||1,withinUnit:((l=e.condition)==null?void 0:l.within.unit)==="hour(s)"?"hour":"day",conditionId:(u=e.condition)==null?void 0:u.id},sourcePosition:qe.Bottom,targetPosition:qe.Top}},O3=e=>`end-${e}`,eI=(e,n,s)=>({id:e,type:"end",position:{x:n,y:s},data:{label:"End",kind:"end"},sourcePosition:qe.Bottom,targetPosition:qe.Top}),tI=(e,n,s)=>({...Rr(e.type,n,{includeFollowUp:s}),...e,...s?{}:{connect_followup:!1,followup_message:""},...n?{delay_number:0}:{}}),nI=({nodes:e,graphNode:n,positionX:s,positionY:r,layout:a,parentHasDelay:i})=>{if(!n.condition)return;const o=M3(a,i),l=s+a.actionToConditionOffsetX;e.push(Jv(n,`condition-${n.id}`,l,r+o)),a.includeEndNodes&&n.condition.type==="if_replied"&&!n.condition.yes&&e.push(eI(O3(n.id),l+a.branchYesCenterX-a.actionNodeWidth/2,r+o+a.conditionBranchOffsetY))},sI=({nodes:e,rootNodeId:n,layout:s})=>{if(!s.alignStartWithRoot)return;const r=e.find(o=>o.id==="start"),a=e.find(o=>o.id===n);if(!r||!a)return;const i=s.startNodeWidth??s.actionNodeWidth;r.position={...r.position,x:a.position.x+s.actionNodeWidth/2-i/2}},D3=(e,n,s)=>{const r=Gv({actionNodeWidth:Vn,conditionCenterX:v3,actionRootY:R3,actionStepOffsetY:k3,actionToConditionOffsetY:ad(!0),actionToConditionOffsetYNoDelay:ad(!1),conditionBranchOffsetY:Hv},{conditionOffsetFromAction:-Xl,conditionYesHandleX:t1,conditionNoHandleX:n1,...s}),a=Object.keys(e.nodes).toSorted((u,d)=>Number(u)-Number(d)),i=Wv(e,r),o=e.root;o&&r.keepMainColumnAligned&&qv(e,i);const l=[{...ja}];return a.forEach((u,d)=>{const p=e.nodes[u];if(!p)return;const h=i.get(u)||Zv({fallbackIndex:d,layout:r}),f=tI(p,u===o,n),C=(f.delay_number??0)>0;l.push(Xv({...p,...f},h.x,h.y)),nI({nodes:l,graphNode:p,positionX:h.x,positionY:h.y,layout:r,parentHasDelay:C})}),o&&sI({nodes:l,rootNodeId:o,layout:r}),l},U3=(e,n)=>{const s=[];return e.root&&s.push({id:`e-start-${e.root}`,source:"start",target:e.root,...ft}
82),Object.values(e.nodes).forEach(r=>{const a=`condition-${r.id}`;if(r.condition){if(s.push({id:`e-${r.id}-${a}`,source:r.id,target:a,...ft}),r.condition.yes)s.push({id:`e-${a}-${r.condition.yes}-yes`,source:a,sourceHandle:"yes",target:r.condition.yes,...ft});else if(n!=null&&n.includeEndNodes&&r.condition.type==="if_replied"){const i=O3(r.id);s.push({id:`e-${a}-${i}-yes`,source:a,sourceHandle:"yes",target:i,...ft})}r.condition.no&&s.push({id:`e-${a}-${r.condition.no}-no`,source:a,sourceHandle:"no",target:r.condition.no,...ft});return}r.next&&s.push({id:`e-${r.id}-${r.next}`,source:r.id,target:r.next,...ft})}),s},vV=(e,n)=>{if(!e)return{nodes:[ja],edges:[]};if(xn(e)){const r=U3(e);return{nodes:V3(D3(e,n,{actionNodeWidth:Vn,conditionCenterX:v3,conditionOffsetFromAction:-Xl,conditionYesHandleX:t1,conditionNoHandleX:n1,startNodeWidth:Ql,alignStartWithRoot:!0,keepMainColumnAligned:!0}),r),edges:r}}const s=e.sequence;return s!=null&&s.length?{nodes:Yv(s,n),edges:Kv(s)}:{nodes:[ja],edges:[]}},od=8,rI=8,aI=16,r1=e=>e.type==="condition"||e.type==="previewCondition"||e.data.kind==="condition",iI=e=>e.type==="action"||e.type==="previewAction"||e.data.kind==="action",jo=e=>{var n;return!!((n=e.type)!=null&&n.startsWith("preview"))},B3=e=>e.type==="start"||e.type==="previewStart"?jo(e)?vt:Ql:jo(e)?vt:Vn,ld=.5,H3=e=>jo(e)?{actionWidth:vt,yesHandleX:e.data.compact?ts:Pn,noHandleX:e.data.compact?Vs:cs}:{actionWidth:Vn,yesHandleX:t1,noHandleX:n1},oI=e=>{const n=H3(e);return{actionWidth:n.actionWidth,yesHandleX:e.data.forkYesHandleX??n.yesHandleX,noHandleX:e.data.forkNoHandleX??n.noHandleX}},cd=e=>e.position.x+B3(e)/2,lI=(e,n)=>e.map(s=>{if(!r1(s))return s;const r=n.find(m=>m.source===s.id&&m.sourceHandle==="yes"),a=n.find(m=>m.source===s.id&&m.sourceHandle==="no"),i=r?e.find(m=>m.id===r.target):void 0,o=a?e.find(m=>m.id===a.target):void 0;if(!i&&!o)return s;const l=H3(s),u=i?cd(i)-s.position.x:l.yesHandleX,d=o?cd(o)-s.position.x:l.noHandleX,p=Math.abs(u-(s.data.forkYesHandleX??l.yesHandleX))<ld,h=Math.abs(d-(s.data.forkNoHandleX??l.noHandleX))<ld;return p&&h?s:{...s,data:{...s.data,forkYesHandleX:u,forkNoHandleX:d}}}),dd=e=>{if(r1(e)){const{actionWidth:s,yesHandleX:r,noHandleX:a}=oI(e);return{left:e.position.x+r-s/2,right:e.position.x+a+s/2}}const n=B3(e);return{left:e.position.x,right:e.position.x+n}},cI=(e,n,s)=>{const r=n.find(a=>a.target===s);return r?e.find(a=>a.id===r.source):void 0},ud=(e,n,s)=>{const r=cI(n,s,e.id),a=r&&iI(r)?r.id:e.id;return P3(a,s)},pd=({nodeIds:e,deltaX:n,nodes:s})=>n===0?s:s.map(r=>e.has(r.id)?{...r,position:{...r.position,x:r.position.x+n}}:r),dI=({rowNodes:e,nodes:n,edges:s})=>{let r=n;const a=[...e].sort((i,o)=>i.position.x-o.position.x).map(i=>i.id);for(let i=0;i<rI;i+=1){let o=!1;for(let l=0;l<a.length-1;l+=1){const u=a[l],d=a[l+1];if(!u||!d)continue;const p=r.find(C=>C.id===u),h=r.find(C=>C.id===d);if(!p||!h)continue;const m=dd(p).right-dd(h).left;if(m<=0)continue;const f=m/2+aI/2;r=pd({nodeIds:ud(p,r,s),deltaX:-f,nodes:r}),r=pd({nodeIds:ud(h,r,s),deltaX:f,nodes:r}),o=!0}if(!o)break}return r},V3=(e,n)=>{const s=new Map;e.forEach(a=>{if(!r1(a))return;const i=Math.round(a.position.y/od)*od,o=s.get(i)??[];o.push(a),s.set(i,o)});let r=e;return[...s.entries()].sort(([a],[i])=>a-i).forEach(([,a])=>{a.length<2||(r=dI({rowNodes:a,nodes:r,edges:n}))}),lI(r,n)},F3=24,a1=160,Cs=Ka/2,wn=e=>e-vt/2,i1=e=>e-Ka/2,Gi=e=>e-ql/2,uI=e=>i1(e)+Pn,pI=e=>i1(e)+cs;let hd=0;const Fs=e=>{const n=hd;return hd+=e+F3,n},hI=Fs(64),mI=Fs(En),gI=Fs(En),xI=Fs(a1),md=Fs(En),o1=Fs(a1),fI=o1,$3=o1+a1+F3,CI=$3,ta=uI(Cs),gd=pI(Cs),zi={...Rr(de.LINKED_IN_VIEW,!0),view:!0,auto_follow:!0,auto_endorse:!0,endorsements_count:1,auto_post_like:!0,posts_count:1,tags:[{key:1,value:"Design"},{key:2,value:"Graphic Design"}]},yI={...Rr(de.LINKED_IN_CONNECT),message:"Looks like we have similar connections, let's connect :)",connect_followup:!0,followup_message:"Thanks for connecting with me."},xd={...Rr(de.LINKED_IN_MESSAGE),message:"Hi there! Would love to connect and share ideas.",tags:[{key:1,value:"Design"}]},Wi="Engage with profile",fd={currentLeads:140,branchLeads:140,percentage:100},EI=[{id:"start",type:"previewStart",position:{x:wn(Cs),y:hI},data:{label:"Sequence start",kind:"start",stats:fd},sourcePosition:qe.Bottom},{id:"n1",type:"previewAction",position:{x:wn(Cs),y:mI},data:{label:Wi,kind:"action",stepType:de.LINKED_IN_VIEW,step:zi,stats:fd},sourcePosition:qe.Bottom,targetPosition:qe.Top},{id:"n2",type:"previewAction",position:{x:wn(Cs),y:gI},data:{label:"Send Connection Request",kind:"action",stepType:de.LINKED_IN_CONNECT,step:yI,stats:{currentLeads:120,branchLeads:140,percentage:90}},sourcePosition:qe.Bottom,targetPosition:qe.Top},{id:"c1",type:"previewCondition",position:{x:i1(Cs),y:xI},data:{label:"If Connected",kind:"condition",conditionType:"if_connected"},sourcePosition:qe.Bottom,targetPosition:qe.Top},{id:"n3",type:"previewAction",position:{x:wn(ta),y:md},data:{label:"Send a message",kind:"action",stepType:de.LINKED_IN_MESSAGE,step:xd,stats:{currentLeads:80,branchLeads:120,percentage:60}},sourcePosition:qe.Bottom,targetPosition:qe.Top},{id:"n5",type:"previewAction",position:{x:wn(gd),y:md},data:{label:Wi,kind:"action",stepType:de.LINKED_IN_VIEW,step:zi,stats:{currentLeads:40,branchLeads:120,percentage:40}},sourcePosition:qe.Bottom,targetPosition:qe.Top},{id:"c2",type:"previewCondition",position:{x:Gi(ta),y:o1},data:{label:"If Replied",kind:"condition",conditionType:"if_replied",compact:!0},sourcePosition:qe.Bottom,targetPosition:qe.Top},{id:"n6",type:"previewAction",position:{x:wn(gd),y:fI},data:{label:Wi,kind:"action",stepType:de.LINKED_IN_VIEW,step:zi,stats:{currentLeads:20,branchLeads:120,percentage:20}},sourcePosition:qe.Bottom,targetPosition:qe.Top},{id:"n4",type:"previewAction",position:{x:wn(Gi(ta)+Vs),y:$3},data:{label:"Send a message",kind:"action",stepType:de.LINKED_IN_MESSAGE,step:xd,stats:{currentLeads:14,branchLeads:80,percentage:12}},sourcePosition:qe.Bottom,targetPosition:qe.Top},{id:"end-n3",type:"previewEnd",position:{x:wn(Gi(ta)+ts),y:CI},data:{label:"End",kind:"end",stats:{currentLeads:60,branchLeads:80,percentage:35}},targetPosition:qe.Top}],SI=[{id:"e-start-n1",source:"start",target:"n1",...ft},{id:"e-n1-n2",source:"n1",target:"n2",...ft},{id:"e-n2-c1",source:"n2",target:"c1",...ft},{id:"e-c1-n3",source:"c1",target:"n3",sourceHandle:"yes",...ft},{id:"e-c1-n5",source:"c1",target:"n5",sourceHandle:"no",...ft},{id:"e-n3-c2",source:"n3",target:"c2",...ft},{id:"e-n5-n6",source:"n5",target:"n6",...ft},{id:"e-c2-end-n3",source:"c2",target:"end-n3",sourceHandle:"yes",...ft},{id:"e-c2-n4",source:"c2",target:"n4",sourceHandle:"no",...ft}],G3=vt,z3=Ka/2,bI=vt/2-z3,W3=24,fs=En+W3,q3={actionRootY:fs,actionStepOffsetY:fs,actionToConditionOffsetY:fs,actionToConditionOffsetYNoDelay:fs,conditionBranchOffsetY:Zl+W3,actionChainOffsetY:fs,actionChainOffsetYNoDelay:fs},Z3={conditionCenterX:z3,conditionOffsetFromAction:bI,conditionYesHandleX:Pn,conditionNoHandleX:cs},IV={...q3,...Z3,horizontalSpacing:320,keepMainColumnAligned:!0,actionNodeWidth:vt,branchGap:40,alignStartWithRoot:!0,startNodeWidth:G3,includeEndNodes:!0},LI={...q3,...Z3,horizontalSpacing:280,keepMainColumnAligned:!0,actionNodeWidth:vt,branchGap:40,alignStartWithRoot:!0,startNodeWidth:G3,includeEndNodes:!0},wI=e=>e.map(n=>n.type==="start"?{...n,type:"previewStart"}:n.type==="condition"?{...n,type:"previewCondition"}:n.type==="action"?{...n,type:"previewAction"}:n.type==="end"?{...n,type:"previewEnd"}:n),TI=(e,n)=>{if(!e||!xn(e))return{nodes:EI,edges:SI};const s=U3(e,{includeEndNodes:n.includeEndNodes});return{nodes:V3(wI(D3(e,!0,n)),s),edges:s}},jI=y(g,{target:"e15f8woy0"})({name:"1n0own9",styles:"width:100%;height:360px;overflow:hidden;background:#ffffff;border-radius:8px"}),vI={previewStart:Lv,previewAction:wv,previewCondition:jv,previewEnd:Tv},II=({nodesKey:e})=>{const{fitView:n}=rp();return c.useEffect(()=>{n({padding:.15})},[n,e]),null},_I=({touchSequence:e,activeStepId:n})=>{const s=c.useMemo(()=>TI(e,LI),[e]),r=c.useMemo(()=>s.nodes.map(i=>({...i,selected:!!n&&i.id===n})),[s.nodes,n]),a=c.useMemo(()=>r.map(i=>i.id).join(","),[r]);return t.jsx(jI,{"data-testid":"lead-sequence-tree-mini",children:t.jsxs(tp,{nodes:r,edges:s.edges,nodeTypes:vI,nodesDraggable:!1,nodesConnectable:!1,elementsSelectable:!1,panOnDrag:!0,zoomOnScroll:!0,fitView:!0,fitViewOptions:{padding:.15},minZoom:.25,maxZoom:1,proOptions:{hideAttribution:!0},children:[t.jsx(np,{variant:sp.Dots,gap:16,size:1,color:"#D6D9E5"}),t.jsx(II,{nodesKey:a})]})})},AI=({touchSequence:e,activeStepId:n})=>t.jsx(ep,{children:t.jsx(_I,{touchSequence:e,activeStepId:n})});se.extend(x2);const NI=e=>e!=null&&e.name?e.name[0]:e!=null&&e.email?e.email[0]:e!=null&&e.workEmail?e.workEmail[0]:"",kI=e=>(e==null?void 0:e.name)||(e==null?void 0:e.workEmail)||`${(e==null?void 0:e.firstName)||""} ${(e==null?void 0:e.lastName)||""}`.trim(),RI=e=>(e==null?void 0:e.linkedInUrn)||(e==null?void 0:e.linkedInHandle)||(Ma(e==null?void 0:e.key)?e==null?void 0:e.key:void 0),MI=(e,n)=>{const s=ks(n);return e??(s!=null?String(s):null)},PI=({isActionsLoading:e,leadActions:n})=>e?t.jsx(g,{display:"flex",justifyContent:"center",py:"12px",children:t.jsx(Pe,{})}):n.length?t.jsx(t.Fragment,{children:n.map(({description:s,message:r,createdAt:a,id:i,sentEmailLead:o})=>t.jsxs(uv,{children:[t.jsx(S,{fontSize:"14px",lineHeight:"20px",color:"greyNeutral.80",maxWidth:"calc(100% - 90px)",crop:!0,children:Yo(s,r,o==null?void 0:o.email)}),t.jsx(S,{fontSize:"14px",lineHeight:"20px",color:"greyNeutral.80",whiteSpace:"nowrap",children:se(a).fromNow()})]},i))}):t.jsx(S,{fontSize:"14px",lineHeight:"20px",color:"greyBlue.80",textAlign:"center",py:"8px",children:"No activity in this campaign."}),OI=({entityUrn:e,person:n,leadInfo:s,firstLetter:r,isLeadLoading:a,showPersonalDetails:i,onClose:o})=>{var p;const{companyName:l}=Fe();if(a)return t.jsx(g,{display:"flex",justifyContent:"center",py:"24px",children:t.jsx(Pe,{})});const u=kI(n),d=RI(n);return t.jsxs(t.Fragment,{children:[t.jsx(g,{mb:"12px",pr:"88px",children:t.jsx(ht,{width:"74px",height:"74px",src:(n==null?void 0:n.picture)||"",fallbackSrc:((p=n==null?void 0:n.linkedInData)==null?void 0:p.pic)||"",firstLatter:r,letterFontSize:"24px"})}),t.jsx(g,{display:"flex",alignItems:"center",gap:"8px",mb:"2px",children:t.jsx(we,{title:`See profile on ${l}`,children:t.jsx(je,{to:`/contacts/leads?person=${e}&tab=personal_details`,onClick:o,children:t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",maxWidth:"100%",children:[t.jsx(S,{crop:!0,semibold:!0,fontSize:"18px",lineHeight:"24px",color:"inherit",children:u}),n!=null&&n.isPremium?t.jsx(Kj,{width:"20px",height:"20px"}):null]})})})}),n!=null&&n.currentTitle?t.jsx(S,{color:"greyBlue.60",mb:"8px",children:n.currentTitle}):null,d?t.jsx(g,{children:t.jsx(je,{tooltip:"View profile on Linkedin",to:`https://www.linkedin.com/in/${d}`,openNewTab:!0,external:!0,leftIcon:!0,semibold:!0,children:"LinkedIn Account"})}):null,i?t.jsx(iv,{"data-testid":"campaign-lead-profile-divider"}):null,t.jsx(Vl,{leadInfo:s==null?void 0:s.lead,person:n,hideLinkedin:!0,noDivider:!0})]})},DI=({campaign:e,entityUrn:n,activeStepId:s,onClose:r})=>{var w,I,T;const a=!!n,{leadInfo:i,isLeadLoading:o}=Un(n||"",void 0,{enabled:a}),{leadActions:l=[],isLoading:u}=uu(e.id,n||"",{enabled:a&&!!e.id&&!!n}),d=i==null?void 0:i.person,p=!!((w=i==null?void 0:i.lead)!=null&&w.isExcluded)||!!((I=i==null?void 0:i.userNetwork)!=null&&I.isExcluded),h=Oa(e),m=MI(s,(T=i==null?void 0:i.lead)==null?void 0:T.nextTouchIndex),f=c.useMemo(()=>NI(d),[d]),{checkFeature:C}=We(),[E]=C(X.connection),b=c.useMemo(()=>!o3(d,i==null?void 0:i.lead,{hideLinkedin:!0,isAdvancedDetailsAllowed:E}).isHidePersonalDetails,[d,i==null?void 0:i.lead,E]);return t.jsx(Hs,{isOpen:a,onClose:r,width:"480px","aria-label":"Campaign lead details",children:n?t.jsxs(nv,{"data-testid":"campaign-lead-drawer",children:[t.jsxs(sv,{children:[t.jsxs(rv,{children:[t.jsx(Fl,{entityUrn:n,isExcluded:p,tooltipPlacement:"bottom"}),t.jsx(av,{}),t.jsx(ov,{type:"button","aria-label":"Close campaign lead details",onClick:r,children:t.jsx(Xt,{})})]}),t.jsx(OI,{entityUrn:n,person:d,leadInfo:i,firstLetter:f,isLeadLoading:o,showPersonalDetails:b,onClose:r})]}),t.jsxs(lv,{children:[h?t.jsx(Xc,{title:"Sequence",defaultExpanded:!0,icon:t.jsx(cv,{"aria-hidden":!0,"data-testid":"campaign-lead-sequence-icon",children:t.jsx(g3,{})}),children:t.jsx(AI,{touchSequence:e.touchSequence,activeStepId:m})}):null,t.jsx(Xc,{title:"Activity",defaultExpanded:!1,icon:t.jsx(dv,{"aria-hidden":!0,"data-testid":"campaign-lead-activity-icon",children:t.jsx($l,{})}),children:t.jsx(PI,{isActionsLoading:u,leadActions:l})})]})]}):null})},l1=({campaign:e,enabled:n,entityUrn:s,activeStepId:r,onClose:a})=>n?t.jsx(DI,{campaign:e,entityUrn:s,activeStepId:r,onClose:a}):null,c1=e=>{const[n,s]=c.useState(null),r=c.useMemo(()=>
82{if(!n)return null;const a=e.find(o=>o.entityUrn===n);if(!a)return null;const i=ks(a.nextTouchIndex);return i!=null?String(i):null},[n,e]);return{entityUrn:n,activeStepId:r,openLeadDrawer:s,closeLeadDrawer:()=>s(null)}},UI=Object.entries(L5).map(([e,n])=>({label:n,value:e})),_V=({searchFields:e,onSearchFieldChange:n,campaignType:s})=>{const{campaignId:r}=_a(),a=Number(r),[i,o]=c.useState(!1),l=s===U.EMAIL_CSV_UPLOAD,{data:u=[]}=M7(a,{refetchOnMount:!0,select:h=>h==null?void 0:h.map(({id:m,name:f})=>({label:f,value:m}))}),d=h=>n("campaignIds",(h==null?void 0:h.map(({value:m})=>m))||[]),p=h=>{const m=(h==null?void 0:h.map(({value:C})=>C))||[],f=m.some(C=>[_t.IN_OTHER_MEMBER_CAMPAIGN,_t.IN_OTHER_CAMPAIGN].some(E=>E===C));o(f),f||n("campaignIds",[]),n("statuses",m)};return t.jsxs($C,{children:[t.jsx(Ce,{name:"name",placeholder:`Search by ${l?"email":"name"}`,value:e.name,onChange:h=>n("name",h.target.value),leftIcon:t.jsx(jC,{})}),t.jsx(Xe,{isMulti:!0,onChange:p,options:UI,additionalProps:{isSearchable:!0},placeholder:"Select reasons"}),i&&t.jsx(Xe,{isMulti:!0,onChange:d,options:u,additionalProps:{isSearchable:!0},placeholder:"Select campaigns"})]})},d1=({campaignId:e,entityUrn:n,isSequenceTreeEnabled:s,onOpenLeadDrawer:r,dispatch:a})=>{if(r){r==null||r(n);return}a(Ne({type:Y.VIEW_LEAD,closable:!1,params:{campaignId:e,entityUrn:n}}))},u1=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M3.27931 20C2.12285 16.3064 4.43465 7.6865 12.5243 7.6865V5.22448C12.5145 5.00196 12.5673 4.78122 12.6764 4.5881C12.7856 4.39498 12.9467 4.23748 13.1407 4.13404C13.3348 4.03061 13.5538 3.98552 13.7722 4.00407C13.9906 4.02262 14.1992 4.10402 14.3737 4.23876L20.5374 9.16393C20.6818 9.28271 20.7984 9.43281 20.8784 9.60327C20.9585 9.77372 21 9.9602 21 10.1491C21 10.338 20.9585 10.5244 20.8784 10.6949C20.7984 10.8654 20.6818 11.0155 20.5374 11.1342L14.3726 16.0594C14.198 16.1932 13.9897 16.2739 13.7718 16.2921C13.5539 16.3102 13.3354 16.2651 13.1418 16.1619C12.9481 16.0588 12.7873 15.9019 12.6779 15.7094C12.5686 15.5169 12.5153 15.2969 12.5243 15.0748V12.6117C4.43465 13.8432 3.27931 20 3.27931 20Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),BI=e=>c.createElement("svg",{width:17,height:17,viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M15.282 0H1.21802C0.894982 0 0.585173 0.128327 0.35675 0.35675C0.128327 0.585173 0 0.894982 0 1.21802V15.282C0 15.605 0.128327 15.9148 0.35675 16.1433C0.585173 16.3717 0.894982 16.5 1.21802 16.5H15.282C15.605 16.5 15.9148 16.3717 16.1433 16.1433C16.3717 15.9148 16.5 15.605 16.5 15.282V1.21802C16.5 0.894982 16.3717 0.585173 16.1433 0.35675C15.9148 0.128327 15.605 0 15.282 0ZM4.91792 14.0559H2.43719V6.17604H4.91792V14.0559ZM3.67583 5.08406C3.39444 5.08248 3.11982 4.99757 2.88663 4.84006C2.65344 4.68255 2.47214 4.45949 2.3656 4.19904C2.25907 3.93858 2.23207 3.65241 2.28802 3.37663C2.34397 3.10084 2.48036 2.84782 2.67998 2.64947C2.8796 2.45113 3.1335 2.31637 3.40963 2.26219C3.68577 2.20801 3.97177 2.23685 4.23153 2.34505C4.49129 2.45326 4.71318 2.63599 4.86919 2.87018C5.02521 3.10438 5.10835 3.37954 5.10813 3.66094C5.11078 3.84934 5.07548 4.03634 5.00432 4.2108C4.93316 4.38527 4.82761 4.54362 4.69396 4.67642C4.5603 4.80922 4.40127 4.91376 4.22635 4.98379C4.05144 5.05383 3.86421 5.08793 3.67583 5.08406ZM14.0617 14.0628H11.5821V9.75792C11.5821 8.48833 11.0424 8.09646 10.3457 8.09646C9.61011 8.09646 8.88823 8.65104 8.88823 9.79V14.0628H6.4075V6.18177H8.79313V7.27375H8.82521C9.06469 6.78906 9.90344 5.96063 11.1833 5.96063C12.5675 5.96063 14.0628 6.78219 14.0628 9.18844L14.0617 14.0628Z",fill:"white"})),HI=y(g,{target:"emkm3sq3"})({name:"13p02l1",styles:"display:flex;align-items:center;gap:8px;min-width:0;max-width:100%"}),VI=y("div",{target:"emkm3sq2"})({name:"10uo962",styles:"width:20px;height:20px;display:flex;align-items:center;justify-content:center;flex:0 0 20px;border-radius:50%;background:#0a66c2;svg{width:11px;height:11px;}svg *{fill:#ffffff!important;color:#ffffff!important;}"}),Cd=y("img",{target:"emkm3sq1"})({name:"1r2pwdu",styles:"width:20px;height:20px;flex:0 0 20px;display:block"}),FI=y(S,{target:"emkm3sq0"})({name:"nm6pvw",styles:"color:#000e33;font-size:14px;font-weight:400;line-height:20px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap"}),$I=({touchSequence:e,stepNumber:n})=>{const s=ks(n);if(!xn(e)||s==null)return"—";const r=e.nodes[String(s)];return r?Ja[r.type]??r.type:"—"},GI=({touchSequence:e,stepNumber:n})=>{var r;const s=ks(n);if(!(!xn(e)||s==null))return(r=e.nodes[String(s)])==null?void 0:r.type},zI=e=>e===ue.EMAIL?t.jsx(Cd,{src:Pa,alt:"","aria-hidden":!0}):e===ue.TWITTER?t.jsx(Cd,{src:h3,alt:"","aria-hidden":!0,"data-testid":"sequence-tree-twitter-icon"}):t.jsx(VI,{"aria-hidden":!0,"data-testid":"sequence-tree-linkedin-icon",children:t.jsx(BI,{})}),Y3=({stepNumber:e,touchSequence:n})=>{const s=$I({touchSequence:n,stepNumber:e}),r=GI({touchSequence:n,stepNumber:e}),a=w3(r);return t.jsxs(HI,{"data-testid":"sequence-tree-step-cell",children:[zI(a),t.jsx(we,{title:s!=="—"?s:"",children:t.jsx(FI,{component:"span",children:s})})]})};se.extend(ss);const na=y("p",{target:"evai8ub0"})("white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:",({color:e,checked:n,theme:s})=>n?"inherit":e||s.palette.text.primary,";"),WI=["emailOpened","emailed"],qI=({campaign:e,config:n,selectProps:s,columnKeys:r,getLeadKeys:a,lead:i,onOpenLeadDrawer:o})=>{var ae;const{palette:l}=Ve(),u=P(),{isSequenceTreeEnabled:d}=Il(e),p=d&&Oa(e),{plan:h}=fe(pe=>{var ie;return(ie=pe==null?void 0:pe.team)==null?void 0:ie.data})??{},{entityUrn:m,status:f,csvColumns:C={},isReturnToCampaign:E,createdAt:b,message:w,isExcluded:I,nextTouchIndex:T,person:j}=i,{isAllFilter:L,repliesFilter:_,showActions:N,showDate:A,showMessages:R}=n,V=(C==null?void 0:C.email)||(j==null?void 0:j.workEmail)||"",O=f==="approved",B=s.selectLeads.includes(m),D=rl(e==null?void 0:e.touchSequence)||1,{skipCampaignLead:M,isSkipLoading:F}=yl(e==null?void 0:e.id,a),{returnCampaignReplies:W,isReturnLoading:ne}=Cl({campaignId:e==null?void 0:e.id}),$=["replies","allReplies","inmailReplies","userInteraction","emailReplies"].includes(a==null?void 0:a.type)&&(i==null?void 0:i.isReturnToCampaign),z=Object.entries((i==null?void 0:i.csvColumns)??{}).reduce((pe,ie)=>pe==null?void 0:pe.replaceAll(`{{${ie[0]}}}`,ie[1]),w||""),K=[{isShow:L,icon:t.jsx(Ds,{width:"20px",height:"20px"}),title:"Remove Lead",isLoading:F,onClick:()=>M([m])},{isShow:_,icon:t.jsx(u1,{width:"20px",height:"20px"}),title:h===x.PERSONAL?xe.premium:o0({isApproved:O,isReturnToCampaign:E,isCampaignRemoved:e==null?void 0:e.isRemoved}),disabled:!O||E||h===x.PERSONAL||(e==null?void 0:e.isRemoved),isLoading:ne,onClick:()=>W([m])}],re=()=>{d1({campaignId:e.id,entityUrn:m,isSequenceTreeEnabled:d,onOpenLeadDrawer:o,dispatch:u})};return t.jsxs(dn,{checkedBgColor:l.primary.main,checked:B,sx:{cursor:"pointer"},onClick:re,children:[t.jsx(ze,{sticky:!0,stickyPosition:"left",paddingBox:"13px 16px",children:t.jsxs(g,{display:"flex",alignItems:"center",gap:"28px",flexShrink:"0",children:[t.jsx($e,{onClick:pe=>pe.stopPropagation(),checked:B,onChange:()=>s.toggleLead(m)}),t.jsxs(g,{display:"flex",alignItems:"center",width:"100%",minWidth:0,children:[t.jsx(ht,{margin:"0 17px 0 0",cursor:"pointer",firstLatter:(V??"")[0]}),t.jsxs(g,{display:"flex",flexDirection:"column",flex:"1",minWidth:0,mr:"8px",children:[t.jsx(S,{component:"div",semibold:!0,children:t.jsx(na,{color:`${l.blue.primary} !important`,children:V})}),$&&t.jsx(S,{color:"violet.dark",fontSize:"12px",children:"(Returned to campaign)"})]}),I&&t.jsx(g,{flexShrink:0,children:t.jsx(Mn,{tooltip:{title:t.jsxs(t.Fragment,{children:[t.jsx("b",{children:"Excluded lead:"})," This lead was excluded from the campaign. Update their status in the CRM to make changes."]}),placement:"right"}})})]})]})}),R&&t.jsx(ze,{paddingBox:"13px 16px",children:t.jsx(na,{checked:B,children:WI.includes(a==null?void 0:a.type)?t.jsx(cn,{parseText:(ae=z||"")==null?void 0:ae.replace(/<img[^>]*>/g,"")}):z})}),A&&t.jsx(ze,{paddingBox:"13px 16px",children:t.jsx(na,{checked:B,children:Ms(se.utc(b).local(),"MMMM Do YYYY h:mm a")})}),r==null?void 0:r.map(pe=>
82{const ie=[...pe.split("")].pop(),oe=i[`customcolumn${ie}`];return L?t.jsx(ze,{paddingBox:"13px 16px",children:t.jsx(na,{checked:B,children:(C||{})[pe]||oe})},pe):null}),t.jsx(ze,{sticky:!0,stickyPosition:"right",justifyContent:"center",paddingBox:"13px 16px",sx:{minWidth:n.showActions?"320px":"260px",width:n.showActions?"320px":"260px"},contentStyle:{width:"100%",padding:"0 20px"},children:t.jsxs(g,{display:"flex",alignItems:"center",justifyContent:n.showActions?"space-between":"flex-end",gap:"28px",width:"100%",children:[p?t.jsx(Y3,{stepNumber:T,touchSequence:e.touchSequence}):Ko({stepNumber:T,totalSteps:D}),N&&t.jsx(g,{display:"flex",gap:"16px",px:"8px",children:K==null?void 0:K.map(({icon:pe,onClick:ie,title:oe,isLoading:ke,disabled:Oe,isShow:Be})=>Be&&t.jsx(we,{title:oe,children:t.jsx(Jt,{className:Ee({disabled:Oe,processing:ke}),onClick:De=>{De.stopPropagation(),!Oe&&!ke&&ie()},children:pe})},oe))})]})})]},m)},AV=c.memo(({campaign:e,getLeadKeys:n,selectProps:s,leads:r,isLoading:a,sortingProps:i,paginationProps:o})=>{var j;const{companyName:l}=Fe(),{customSnippets:u}=e??{},{entityUrn:d,activeStepId:p,openLeadDrawer:h,closeLeadDrawer:m}=c1(r.map(L=>({entityUrn:L.entityUrn,nextTouchIndex:L.nextTouchIndex}))),f=L=>L==null?void 0:L.includes(n==null?void 0:n.type),C=(j=Object.keys(u))==null?void 0:j.filter(L=>{var _;return L&&((_=u[L])==null?void 0:_.toLowerCase())!=="email"}),E=f(["approved"]),b=f(["replies","allReplies","inmailReplies","userInteraction","emailReplies"]),w=f(["emailOpened","emailReplies","emailed"]),I=f(["emailOpened"]),T=E||b;return t.jsxs(t.Fragment,{children:[t.jsxs(vr,{processing:a,disabled:a,paginationProps:o,children:[t.jsx(_r,{children:t.jsxs(dn,{children:[t.jsx(Qe,{width:"384px",sticky:!0,stickyPosition:"left",children:t.jsxs(g,{display:"flex",alignItems:"center",gap:"28px",flexShrink:"0",children:[t.jsx($e,{checkIcon:s.selectLeads.length>0&&s.isSelectedAll?"check-mark":"dash",checked:s.selectLeads.length>0,onChange:()=>s.toggleAllLeads()}),"Lead"]})}),w&&t.jsx(Qe,{children:"Message"}),I&&t.jsx(Qe,{children:"Date"}),C==null?void 0:C.map(L=>E&&t.jsx(Qe,{width:"250px",children:u[L]},L)),t.jsx(Qe,{sticky:!0,stickyPosition:"right",name:"touchIndex",sorting:i,width:T?"320px":"260px",sx:{minWidth:T?"320px":"260px"},justifyContent:T?"flex-start":"flex-end",children:"Steps"})]})}),t.jsx(Ir,{placeholder:!(r!=null&&r.length)&&!a&&sl(e==null?void 0:e.campaignType,l),children:r==null?void 0:r.map((L,_)=>t.jsx(qI,{lead:L,campaign:e,columnKeys:C,getLeadKeys:n,config:{isAllFilter:E,repliesFilter:b,showActions:T,showDate:I,showMessages:w},selectProps:s,onOpenLeadDrawer:h},_))})]}),t.jsx(l1,{campaign:e,enabled:!0,entityUrn:d,activeStepId:p,onClose:m})]})},Ho),ZI=()=>t.jsxs(g,{m:"auto",textAlign:"center",bgcolor:"#fff",py:"50px","data-testid":"connect-email-placeholder",children:[t.jsx(S,{textAlign:"center",mb:"16px",children:"Please connect your email account to send a direct reply."}),t.jsxs(S,{inline:!0,children:[t.jsx(je,{semibold:!0,to:"/integrations?tab=email",inline:!0,children:"Click here"})," ","to connect your Email account."]})]}),vo="emailReply",p1="meetalfred:emailDirectReply:",YI={isOpen:!1,entityUrn:"",campaignId:0,campaignName:"",isCampaignRemoved:!1,isLeadRemoved:!1,replyMessage:"",actionKey:""},KI=e=>{const n=e.get(vo);if(!n)return null;const s=Number(n);return Number.isFinite(s)&&s>0?s:null},yd=(e,n)=>{const s=new URLSearchParams(e);return n?s.set(vo,String(n)):s.delete(vo),s},QI=e=>{if(typeof sessionStorage>"u"||!e.actionKey||!e.entityUrn)return;const n={entityUrn:e.entityUrn,campaignId:e.campaignId,campaignName:e.campaignName,isCampaignRemoved:e.isCampaignRemoved,isLeadRemoved:e.isLeadRemoved,replyMessage:e.replyMessage};sessionStorage.setItem(`${p1}${e.actionKey}`,JSON.stringify(n))},XI=e=>{if(typeof sessionStorage>"u")return null;try{const n=sessionStorage.getItem(`${p1}${e}`);return n?JSON.parse(n):null}catch{return null}},JI=e=>{typeof sessionStorage>"u"||!e||sessionStorage.removeItem(`${p1}${e}`)},e_=({incomingBody:e,incomingCreatedAt:n,attachmentNames:s,directReplyBody:r,directReplyCreatedAt:a})=>{const i=[{id:"incoming-reply",fromSelf:!1,body:e,createdAt:n||new Date().toISOString(),attachmentNames:s}];return r&&i.push({id:"direct-reply",fromSelf:!0,body:r,createdAt:a||new Date().toISOString()}),i},t_=y(g,{target:"eqw5woo1"})("margin:12px auto 16px auto;padding:6px 8px;border-radius:8px;width:fit-content;max-width:min(370px, 100%);background-color:",({theme:e})=>e.palette.bg.greyBlue,";border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";display:flex;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;"),n_=y(g,{target:"eqw5woo0"})({name:"y9xop",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%"}),K3=({campaignName:e,campaignId:n,isCampaignRemoved:s,isLeadRemoved:r})=>{const a=c.useRef(null),[i,o]=c.useState(!1),l=c.useMemo(()=>Uh({isCampaignRemoved:s,isLeadRemoved:r}),[s,r]);return c.useEffect(()=>{const u=a.current;u&&o(u.scrollWidth>u.offsetWidth)},[e]),t.jsx(we,{title:i?e:"",children:t.jsxs(t_,{"data-testid":"campaign-title-chip",children:[t.jsx(n_,{ref:a,children:t.jsxs(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.80",component:"span",children:["Campaign:"," ",t.jsx(je,{medium:!0,fontSize:"12px",lineHeight:"16px",to:`/campaign/details/overview/${n}`,disabled:s,cursor:s?"default":"pointer",children:e})]})}),l&&t.jsx(Mn,{tooltip:{title:l}})]})})},s_=y(g,{target:"ei31y5x2"})({name:"1qpwn3a",styles:"display:flex;align-items:center;height:44px;border-radius:8px;box-sizing:border-box;border:1px solid #e8ecf2;width:100%"}),Q3=y(g,{target:"ei31y5x1"})({name:"brd1th",styles:"display:flex;align-items:center;justify-content:center;cursor:pointer;width:52px;border-left:1px solid #e8ecf2;height:100%;&.disabled{cursor:default;}"}),r_=y(Q3,{target:"ei31y5x0"})({name:"1717xqz",styles:"border-right:none;border-radius:0"}),a_=({page:e=Ea,perPage:n=Mt,perPageOptions:s=F2,onPaginationChange:r,total:a=0})=>{const{palette:i}=Ve(),o=h=>{typeof r=="function"&&r({page:h,perPage:n})},l=h=>{typeof r=="function"&&r({page:1,perPage:Number(h)})},u=Math.ceil(a/n)||1,d=e===1,p=e===u;return t.jsxs(s_,{children:[t.jsx(gr,{controlContent:t.jsxs(S,{color:"greyNeutral.100",children:[n,t.jsx(ln,{style:{verticalAlign:"bottom",marginLeft:"8px"}})]}),noStyleControl:!0,controlProps:{bgcolor:"transparent !important",height:"100%",p:"12px 16px",borderRight:"1px solid #e8ecf2 !important",borderRadius:"0 !important"},children:s.map(h=>t.jsx("span",{children:t.jsx(bs,{onClick:()=>l(h),children:h})},h))}),t.jsxs(S,{color:"greyNeutral.100",mr:"auto",ml:"16px",children:[(e-1)*n+1," - ",Math.min(e*n,a)," of ",Dn(a)," item",a>1?"s":""]}),t.jsx(r_,{onClick:()=>!d&&o(e-1),"aria-label":"Go to next page",role:"button",className:Ee({disabled:d}),children:t.jsx(ws,{style:{transform:"rotate(180deg)"},color:d?i.greyNeutral[40]:i.greyNeutral[100]})}),t.jsx(Q3,{onClick:()=>!p&&o(e+1),"aria-label":"Go to previous page",role:"button",className:Ee({disabled:p}),children:t.jsx(ws,{color:p?i.greyNeutral[40]:i.greyNeutral[100]})})]})},Ed=y("li",{target:"e101frtd6"})({name:"mybyhy",styles:"display:flex;flex-direction:row;list-style-type:none;width:100%"}),i_=y("ul",{target:"e101frtd5"})({name:"q67ovq",styles:"height:calc(100% - 76px);overflow-y:auto"}),Sd=y(g,{target:"e101frtd4"})("display:flex;flex:1;flex-direction:column;background-color:",({theme:e})=>e.palette.greyBlue[30],";width:1px;"),o_=y(g,{target:"e101frtd3"})("width:8px;height:8px;border-radius:50%;background-color:",({theme:e})=>e.palette.greyBlue[50],";"),bd=y(g,{target:"e101frtd2"})({name:"wymg6",styles:"align-items:center;display:flex;flex-direction:column;justify-content:flex-start;width:8px;margin-right:10px;transform:translateY(16px);flex-shrink:0"}),l_=y(g,{target:"e101frtd1"})("border-radius:12px;padding:12px;border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";width:100%;margin-bottom:12px;"),c_=y(g,{target:"e101frtd0"})("overflow-wrap:break-word;border-radius:8px;padding:11px 12px;background-color:",({theme:e})=>e.palette.bg.greyBlue,";border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";"),d_=({entityUrn:e})=>{const{palette:n}=Ve(),[s,r]=c.useState(1),[a,i]=c.useState(5),{leadActivitiesData:o,isLoading:l}=hl({entityUrn:e,page:s,perPage:a},{refetchOnMount:!0}),{actions:u=[],total:d}=o??{},p=h=>{r(h.page),i(h.perPage)};return l?t.jsx(g,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",children:t.jsx(Pe,{})}):d?t.jsxs(g,{"data-testid":"activities",display:"flex",flexDirection:"column",height:"100%",children:[t.jsx(i_,{children:u==null?void 0:u.map((h,m,f)=>{var M;const C=m===f.length-1,E=m===0,{campaignId:b,campaignName:w,createdAt:I,description:T,id:j,message:L,isCampaignRemoved:_,isLeadRemoved:N,sentEmailLead:A}=h??{},R=((M=f[m-1])==null?void 0:M.campaignName)===w,V=Ms(se(I),"MMMM Do YYYY h:mm a"),O=Yo(T,null,A==null?void 0:A.email),B=[le.EMAILED,le.EMAIL_OPENED].some(F=>F===T),D=!!L&&ap.decode(L);return t.jsxs(c.Fragment,{children:[t.jsxs(Ed,{children:[t.jsx(bd,{children:!E&&t.jsx(Sd,{})}),!!w&&!R&&t.jsx(K3,{campaignId:b,campaignName:w,isCampaignRemoved:_,isLeadRemoved:N})]}),t.jsxs(Ed,{children:[t.jsxs(bd,{children:[t.jsx(o_,{}),!C&&t.jsx(Sd,{})]}),t.jsxs(l_,{children:[t.jsxs(g,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[t.jsx(S,{fontSize:"12px",lineHeight:"16px",semibold:!0,children:O}),t.jsxs(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",display:"flex",alignItems:"center",gap:"4px",children:[t.jsx($l,{width:"16px",height:"16px",style:{flexShrink:0}}),V]})]}),D&&t.jsxs(t.Fragment,{children:[t.jsx(Ue,{my:"12px",mx:"-12px"}),t.jsx(c_,{children:t.jsx(S,{fontSize:"12px",lineHeight:"16px",children:B?t.jsx(cn,{parseText:D}):t0(T,D)})})]})]})]})]},j)})}),t.jsx(Ue,{mx:"-16px",mb:"16px",mt:"auto"}),t.jsx(a_,{page:s,perPage:a,total:d,onPaginationChange:p})]}):t.jsx(S,{color:n.gray[400],fontSize:"15px",py:"48px",textAlign:"center",children:"No history of activities found for this person."})},u_=y(Ar,{target:"eu28b9z0"})({name:"15xfg6m",styles:"cursor:pointer;width:20px;height:20px;path{stroke-width:1.2;}"}),p_={display:"flex",height:"calc(100% - 57px)",maxWidth:"860px",paddingBottom:"10px",boxSizing:"border-box"},h_=({isOpen:e,setDrawerState:n,...s})=>{var o,l,u,d,p,h;const{leadInfo:r}=Un(s==null?void 0:s.entityUrn),a=()=>{n(m=>({...m,isOpen:!1}))},i=J2({linkedInPic:(l=(o=r==null?void 0:r.person)==null?void 0:o.linkedInData)==null?void 0:l.pic,picture:(u=r==null?void 0:r.person)==null?void 0:u.picture});return t.jsxs(Hs,{isOpen:!!e,onClose:a,children:[t.jsxs(g,{p:"16px",display:"flex",alignItems:"center",width:"860px",boxSizing:"border-box",borderBottom:"1px solid #EBEBEB",children:[t.jsx(S,{fontWeight:"500",fontSize:"20px",lineHeight:"26px",color:"greyBlue.100",children:"Direct reply"}),t.jsx(g,{ml:"auto",children:t.jsx(u_,{onClick:a})})]}),t.jsx(e6,{conversationData:{conversationId:s.conversationId||s.entityUrn,participants:[{entityUrn:s.entityUrn,imageUrl:i,firstName:((d=r==null?void 0:r.person)==null?void 0:d.firstName)||"",lastName:((p=r==null?void 0:r.person)==null?void 0:p.lastName)||"",objectUrn:((h=r==null?void 0:r.person)==null?void 0:h.objectUrn)||"",headline:""}],from:"",isGroup:!1,isSponsored:!1,isLinkedinOffer:!1,lastActivityAt:0,content:"",unreadCount:0},filterType:Nt.ALL,hideConversationActions:!0,containerStyle:p_,showRefetch
82Messages:!0,directReplyConversation:{bgcolor:"#fff",borderRadius:"12px",height:"calc(100% - 60px)",padding:"12px 16px",marginTop:"20px"}})]})},m_=y("a",{target:"enjyyti1"})({name:"ljfsng",styles:"display:flex;justify-content:center;align-items:center;width:100%;height:100%;z-index:100;position:absolute;left:0;transition:0.2s;opacity:0"}),g_=y(g,{target:"enjyyti0"})({name:"12ntpl1",styles:"display:flex;align-items:center;background-color:#ffffff;box-shadow:0 0 0 1px rgb(0 0 0 / 15%);position:relative;cursor:pointer;&>div{transition:0.2s;}&:hover{div{opacity:0.3;}a{opacity:1;}}"}),x_=({content:e})=>{var s;const n=e.customContent;return t.jsxs(t.Fragment,{children:[(n==null?void 0:n.media)&&t.jsx("img",{src:n.media.previewgif.url,alt:n.title,width:n.media.previewgif.originalWidth}),!!((s=e==null?void 0:e.attachments)!=null&&s.length)&&e.attachments.map(r=>{const a=r.reference.string,i=r.mediaType,o=r.byteSize,l=r.name;if(i.indexOf("image")>-1)return o&&t.jsx("img",{src:a,alt:l,width:"90%"},a);const u=ah(l);return t.jsxs(g_,{children:[t.jsx(g,{py:"15px",pl:"15px",children:t.jsx(yt,{size:"2x",icon:jp})}),t.jsxs(g,{width:"220px",ml:"25px",py:"5px",children:[t.jsx(S,{color:"gray.dark",mb:"8px",title:l,children:u}),t.jsx(S,{color:"gray.dark",children:`${Math.ceil(o/1024)} KB`})]}),t.jsx(m_,{target:"_blank",rel:"noopener noreferrer",download:l,href:a,children:t.jsx(yt,{size:"lg",color:"#000",icon:vp})})]},a)})]})},f_=y("img",{target:"eychrua0"})({name:"qhxz92",styles:"max-width:100%"}),C_=e=>{var p;const{palette:n}=Ve(),{avatar:s,content:r,date:a,authorUrl:i,image:o,name:l,headline:u,degree:d}=((p=e.content)==null?void 0:p.postPreview)||{};return t.jsxs(t.Fragment,{children:[t.jsxs(g,{display:"flex",width:"100%",alignItems:"flex-start",gap:"10px",mb:"15px",children:[t.jsx(je,{external:!0,to:i,openNewTab:!0,children:t.jsx(ht,{src:s||"",firstLatter:(l==null?void 0:l[0])||"",width:"30px",height:"30px"})}),t.jsxs(g,{width:"calc(100% - 40px)",children:[t.jsx(je,{external:!0,to:i,openNewTab:!0,color:"text.primary",hoverColor:"info.main",children:l}),t.jsx(je,{external:!0,to:i,openNewTab:!0,color:"gray.light",hoverColor:n.gray.light,ml:"4px",children:d}),t.jsx(je,{display:"block",external:!0,to:i,openNewTab:!0,variant:"primary",fontSize:"12px",color:"gray.light",hoverColor:n.gray.light,maxWidth:"100%",crop:!0,children:u}),t.jsx(g,{children:t.jsxs(je,{external:!0,to:i,openNewTab:!0,variant:"primary",fontSize:"12px",color:"gray.light",hoverColor:n.gray.light,children:[a==null?void 0:a.trim()," ",t.jsx(yt,{icon:Ip})]})})]})]}),t.jsx(qu,{children:t.jsx(g,{children:t.jsx(cn,{parseText:r})})}),!!o&&t.jsx(f_,{src:o})]})},y_=()=>{const{companyName:e}=Fe();return t.jsx(Yy,{src:"https://player.vimeo.com/video/622864427",title:"Your LinkedIn contacts are not synced",description:t.jsxs(t.Fragment,{children:[e," gives you access all your LinkedIn inbox data.",t.jsx("br",{}),"Please connect your linkedin credentials to sync your data."]}),children:t.jsxs(S,{fontSize:"15px",color:"gray.800",children:[t.jsx(je,{underline:!0,to:"/integrations?tab=linkedin",fontSize:"15px",children:"Click here"})," ","to connect your LinkedIn account."]})})},qi=y(g,{target:"e1948uqo0"})("width:70%;margin:10px auto;text-align:center;font-size:12px;color:",({theme:e})=>e.palette.gray.light,";"),E_=({name:e,participantChanges:n={added:[],removed:[]},content:s})=>{const r=c.useMemo(()=>{const i=[...n.added],o=i.pop();return`${e} added ${i.join(", ")}${i.length?" and ":" "}${o} to this conversation`},[n.added]),a=c.useMemo(()=>{const i=[...n.removed],o=i.pop();return`${e} removed ${i.join(", ")}${i.length?" and ":""}${o} from this conversation`},[n.added]);return t.jsxs(t.Fragment,{children:[s&&t.jsx(qi,{children:s}),!!n.added.length&&t.jsx(qi,{children:r}),!!n.removed.length&&t.jsx(qi,{children:a})]})},ga=y(g,{target:"e123cl7i2"})("display:flex;flex-direction:column;align-items:flex-start;white-space:pre-wrap;padding:10px 16px;border-radius:",({self:e})=>e?"8px 8px 0 8px":"8px 8px 8px 0",";color:",({theme:e})=>e.palette.greyNeutral[300],";font-size:14px;background-color:",({self:e,theme:n})=>e?n.palette.bg.blue:n.palette.greyNeutral[20],";overflow:hidden;b{color:",({theme:e})=>e.palette.gray.dark,";}strong{color:",({theme:e})=>e.palette.primary.wlLight,";}ul{list-style:none;}a{color:",({theme:e})=>e.palette.primary.wlLight,";border-bottom:1px solid ",({theme:e})=>e.palette.lightGray.light,";&:hover{color:",({theme:e})=>e.palette.info.main,";}}"),S_=y(g,{target:"e123cl7i1"})("display:flex;align-items:flex-end;margin:10px 0;max-width:84%;",e=>e.self?"margin-left: auto;
82":"margin-right: auto;",";flex-direction:",e=>e.self?"row-reverse":"row",";"),b_=y(ga,{target:"e123cl7i0"})({name:"15a09qs",styles:"border-radius:0;background-color:#cccccc"}),L_=({msg:e,self:n,content:s})=>{var u,d;const r=e.content.customContent,a=[Rn.sponsoredMessage,Rn.sponsoredInmail].some(p=>p===e.subtype),i=!n&&a&&(!!e.name||!!e.headline),o=((d=(u=e.name)==null?void 0:u.trim())==null?void 0:d[0])||"",l=()=>{var p,h;return(h=(p=e.content)==null?void 0:p.postPreview)!=null&&h.authorUrl?t.jsxs(t.Fragment,{children:[!!s&&t.jsx(ga,{self:n,mb:"10px",children:t.jsx(cn,{parseText:s})}),t.jsx(ga,{self:n,children:t.jsx(C_,{...e})})]}):s||!e.recalledAt?t.jsxs(ga,{self:n,children:[e.content.subject&&t.jsxs(t.Fragment,{children:[t.jsx("b",{children:e.content.subject}),t.jsx("br",{})]}),t.jsx(cn,{parseText:s}),(r==null?void 0:r.action)&&(r==null?void 0:r.actionText)&&t.jsx(je,{external:!0,openNewTab:!0,to:r.action,children:r.actionText}),t.jsx(x_,{...e})]}):t.jsx(b_,{self:n,children:"This message has been deleted."})};return t.jsxs(S_,{self:n,children:[t.jsx(g,{...n?{ml:"8px"}:{mr:"8px"},pb:"22px",height:"40px",alignSelf:"flex-end",children:t.jsx(ht,{src:e.imageUrl||"",firstLatter:o,width:"40px",height:"40px"})}),t.jsxs(g,{maxWidth:"100%",children:[i&&t.jsxs(g,{mb:"4px",children:[!!e.name&&t.jsx(S,{medium:!0,fontSize:"12px",lineHeight:"16px",children:e.name}),!!e.headline&&t.jsx(S,{fontSize:"11px",lineHeight:"14px",color:"greyNeutral.60",children:e.headline})]}),l(),t.jsx(S,{fontSize:"10px",color:"greyNeutral.60",mt:"3px",textAlign:n?"right":"left",children:J4(e.createdAt)})]})]})},w_=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M18.9333 9.63893C18.9333 9.30756 18.6647 9.03893 18.3333 9.03893C18.0019 9.03893 17.7333 9.30756 17.7333 9.63893H18.9333ZM9.99996 17.6112V17.0112L9.9992 17.0112L9.99996 17.6112ZM8.38781 17.462L8.49855 16.8724L8.38781 17.462ZM3.45922 18.2441L2.99367 17.8656C2.86012 18.0299 2.82302 18.2524 2.89604 18.4511C2.96905 18.6498 3.14137 18.7953 3.3495 18.834L3.45922 18.2441ZM4.36477 16.2873L4.95418 16.3996L4.95437 16.3986L4.36477 16.2873ZM3.93237 15.1026L4.35989 14.6816L4.35987 14.6816L3.93237 15.1026ZM6.97911 17.697L6.69739 17.1672H6.69739L6.97911 17.697ZM11.5522 2.41518C11.8775 2.47836 12.1924 2.26588 12.2556 1.94059C12.3188 1.6153 12.1063 1.30038 11.781 1.23719L11.5522 2.41518ZM9.99622 9.4C9.66485 9.4 9.39622 9.66863 9.39622 10C9.39622 10.3314 9.66485 10.6 9.99622 10.6V9.4ZM10.0037 10.6C10.3351 10.6 10.6037 10.3314 10.6037 10C10.6037 9.66863 10.3351 9.4 10.0037 9.4V10.6ZM13.3258 9.4C12.9944 9.4 12.7258 9.66863 12.7258 10C12.7258 10.3314 12.9944 10.6 13.3258 10.6V9.4ZM13.3333 10.6C13.6647 10.6 13.9333 10.3314 13.9333 10C13.9333 9.66863 13.6647 9.4 13.3333 9.4V10.6ZM6.66663 9.4C6.33526 9.4 6.06663 9.66863 6.06663 10C6.06663 10.3314 6.33526 10.6 6.66663 10.6V9.4ZM6.6741 10.6C7.00547 10.6 7.2741 10.3314 7.2741 10C7.2741 9.66863 7.00547 9.4 6.6741 9.4V10.6ZM17.7333 9.63893C17.7333 13.6854 14.2958 17.0112 9.99996 17.0112V18.2112C14.9078 18.2112 18.9333 14.3977 18.9333 9.63893H17.7333ZM9.9992 17.0112C9.4956 17.0118 8.9934 16.9653 8.49855 16.8724L8.27706 18.0517C8.84526 18.1584 9.42213 18.2119 10.0007 18.2112L9.9992 17.0112ZM3.92477 18.6226C4.44486 17.9829 4.79836 17.2176 4.95418 16.3996L3.77537 16.175C3.65613 16.8011 3.38629 17.3827 2.99367 17.8656L3.92477 18.6226ZM4.95437 16.3986C5.08672 15.6972 4.75164 15.0794 4.35989 14.6816L3.50485 15.5236C3.73162 15.7539 3.8095 15.9942 3.77518 16.1761L4.95437 16.3986ZM4.35987 14.6816C3.05863 13.3603 2.26663 11.5868 2.26663 9.63893H1.06663C1.06663 11.9217 1.99684 13.9923 3.50487 15.5236L4.35987 14.6816ZM2.26663 9.63893C2.26663 5.59246 5.70415 2.26667 9.99996 2.26667V1.06667C5.09207 1.06667 1.06663 4.88016 1.06663 9.63893H2.26663ZM6.69739 17.1672C5.74418 17.6742 4.63345 17.8523 3.56894 17.6543L3.3495 18.834C4.68639 19.0827 6.07263 18.8586 7.26083 18.2267L6.69739 17.1672ZM8.49855 16.8724C8.31338 16.8376 8.15275 16.8072 8.02227 16.7893C7.89502 16.7719 7.74429 16.758 7.58981 16.7816L7.77099 17.9678C7.75005 17.971 7.76173 17.9648 7.85916 17.9782C7.95335 17.9911 8.07966 18.0147 8.27706 18.0517L8.49855 16.8724ZM7.26083 18.2267C7.45524 18.1234 7.58295 18.0556 7.67903 18.01C7.78186 17.9611 7.79603 17.964 7.77099 17.9678L7.58981 16.7816C7.43122 16.8058 7.284 16.8691 7.1642 16.926C7.03764 16.9861 6.88148 17.0693 6.69739 17.1672L7.26083 18.2267ZM9.99996 2.26667C10.5322 2.26667 11.0512 2.3
821786 11.5522 2.41518L11.781 1.23719C11.205 1.1253 10.6093 1.06667 9.99996 1.06667V2.26667ZM18.5666 4.58333C18.5666 5.86279 17.5294 6.9 16.25 6.9V8.1C18.1922 8.1 19.7666 6.52554 19.7666 4.58333H18.5666ZM16.25 6.9C14.9705 6.9 13.9333 5.86279 13.9333 4.58333H12.7333C12.7333 6.52554 14.3078 8.1 16.25 8.1V6.9ZM13.9333 4.58333C13.9333 3.30387 14.9705 2.26667 16.25 2.26667V1.06667C14.3078 1.06667 12.7333 2.64113 12.7333 4.58333H13.9333ZM16.25 2.26667C17.5294 2.26667 18.5666 3.30387 18.5666 4.58333H19.7666C19.7666 2.64113 18.1922 1.06667 16.25 1.06667V2.26667ZM9.99622 10.6H10.0037V9.4H9.99622V10.6ZM13.3258 10.6H13.3333V9.4H13.3258V10.6ZM6.66663 10.6H6.6741V9.4H6.66663V10.6Z",fill:"currentColor"})),T_=y(g,{target:"e1ou4lqy1"})("display:flex;align-items:flex-start;padding:6px 16px;border-bottom:1px solid ",({theme:e})=>e.palette.greyNeutral[20],";background-color:#ffffff;",({isDirectReply:e})=>e&&`
83    padding: 20px;
84    padding-bottom: 16px;
85    border-bottom: none;
86    background: inherit;
87  `,";"),j_=y(jr,{target:"e1ou4lqy0"})({name:"1aynuae",styles:"width:20px;height:20px"}),v_=({conversationData:e,isLoadingMessages:n,isSNConversation:s,hideConversationActions:r=!1,filterType:a,isDirectReply:i=!1})=>{var V,O,B,D;const o=P(),{palette:l}=Ve(),{conversationId:u,participants:d,isGroup:p,groupTitle:h,isSponsored:m}=e,{entityUrn:f,objectUrn:C,firstName:E,lastName:b,headline:w}=((V=e.participants)==null?void 0:V[0])||{},I=`${E||""} ${b||""}`.trim()||E||b||"",{companyName:T}=Fe(),{leadInfo:j}=Un(f,C),{modifyConversation:L}=Q7(u,a),_=c.useMemo(()=>{const M=(d==null?void 0:d.slice(2).length)||0;if(d){if(d.length>4)return`${d.slice(0,2).map(F=>`${F.firstName}`).join(", ")} and ${M} others`;if(M<=4)return`${d.slice(0,-1).map(F=>`${F.firstName}`).join(", ")} and ${d.slice(-1)[0].firstName}`}return""},[d,h]),N=a===Nt.ARCHIVED,A=M=>{L(M)},R=()=>{o(Ne({type:Y.DELETE_CONVERSATION,closable:!1,onConfirm:()=>A(mn.DELETE),params:{name:p?_:I,conversationId:u}}))};return t.jsxs(T_,{maxWidth:"100%",isDirectReply:i,children:[t.jsx(ry,{children:d==null?void 0:d.map(M=>{var F,W;return t.jsx(ht,{firstLatter:((F=M.firstName)==null?void 0:F[0])||((W=M.lastName)==null?void 0:W[0])||(m?I==null?void 0:I[0]:"")||"",src:M.imageUrl||"",width:"40px",height:"40px"},M.entityUrn)})}),t.jsxs(g,{ml:"10px",display:"flex",flexWrap:"wrap",gap:"2px",maxWidth:"calc(100% - 173px)",mr:"8px",children:[p?t.jsx(je,{semibold:!0,fontSize:"16px",lineHeight:"24px",external:!0,to:`https://www.linkedin.com/messaging/thread/${u}`,crop:!0,children:h}):t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",width:"100%",children:[t.jsx(je,{component:"div",crop:!0,semibold:!0,fontSize:"16px",lineHeight:"24px",title:`See profile on ${T}`,to:`${location.pathname}?person=${f}&tab=personal_details`,children:I}),!m&&((O=j==null?void 0:j.person)==null?void 0:O.isPremium)&&t.jsx(g,{width:"20px",height:"20px",children:t.jsx(j_,{})})]}),t.jsx(S,{color:"greyBlue.60",width:"100%",crop:!0,children:p?_:w||!m&&(((B=j==null?void 0:j.person)==null?void 0:B.headline)||((D=j==null?void 0:j.person)==null?void 0:D.currentTitle))})]}),t.jsx(g,{display:"flex",alignItems:"center",ml:"auto",gap:"8px",height:"100%",children:!r&&t.jsxs(t.Fragment,{children:[t.jsx(ar,{iconComponent:t.jsx(w_,{}),tooltip:"Mark as unread",color:l.greyNeutral[60],disabled:n,onClick:()=>A(mn.UNREAD)}),t.jsx(ar,{iconComponent:N?t.jsx(p3,{}):t.jsx(u3,{}),tooltip:N?"Unarchive":"Archive",color:l.greyNeutral[60],disabled:n,onClick:()=>A(N?mn.UNARCHIVE:mn.ARCHIVE)}),!s&&t.jsx(ar,{iconComponent:t.jsx(Ds,{}),tooltip:"Delete this conversation",color:l.additional.red50,disabled:n,onClick:R})]})}),t.jsx(t6,{})]})},X3=e=>c.createElement("svg",{width:31,height:30,viewBox:"0 0 31 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M25.7267 5.06616C23.0041 2.1342 2.5251 9.3165 2.542 11.9388C2.56117 14.9123 10.5396 15.8271 12.751 16.4476C14.0809 16.8207 14.437 17.2031 14.7437 18.5976C16.1324 24.9131 16.8296 28.0543 18.4187 28.1245C20.9517 28.2365 28.3837 7.9275 25.7267 5.06616Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M13.2617 16.3447C12.9688 16.6376 12.9688 17.1124 13.2617 17.4053C13.5546 17.6982 14.0294 17.6982 14.3223 17.4053L13.2617 16.3447ZM18.6973 13.0303C18.9902 12.7374 18.9902 12.2626 18.6973 11.9697C18.4044 11.6768 17.9296 11.6768 17.6367 11.9697L18.6973 13.0303ZM14.3223 17.4053L18.6973 13.0303L17.6367 11.9697L13.2617 16.3447L14.3223 17.4053Z",fill:"currentColor"})),J3=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{id:"task-02"},c.createElement("path",{id:"Vector (Stroke)",fillRule:"evenodd",clipRule:"evenodd",d:"M6.47406 1.0719C6.10486 1.08935 5.76808 1.11685 5.46194 1.16017C4.59234 1.28324 3.8788 1.54475 3.31771 2.13537C2.76092 2.72147 2.5183 3.45924 2.40339 4.35895C2.29154 5.23461 2.29155 6.35289 2.29157 7.76233V12.2375C2.29155 13.647 2.29154 14.7653 2.40339 15.6409C2.5183 16.5406 2.76092 17.2784 3.31771 17.8645C3.8788 18.4551 4.59234 18.7166 5.46194 18.8397C6.29998 18.9583 7.36763 18.9583 8.7013 18.9583H11.2985C12.6322 18.9583 13.6998 18.9583 14.5379 18.8397C15.4075 18.7166 16.121 18.4551 16.6821 17.8645C17.2389 17.2784 17.4815 16.5406 17.5964 15.6409C17.7083 14.7653 17.7082 13.647 17.7082 12.2375V7.76233C17.7082 6.35289 17.7083 5.23461 17.5964 4.35895C17.4815 3.45924 17.2389 2.72147 16.6821 2.13537C16.121 1.54475 15.4075 1.28324 
8714.5379 1.16017C14.2317 1.11685 13.8949 1.08935 13.5257 1.0719C13.4968 1.06258 13.4669 1.05525 13.436 1.05011C13.3505 1.03585 13.2661 1.03969 13.1869 1.05882C12.6274 1.04158 11.9997 1.04159 11.2985 1.0416H8.70133C8.00009 1.04159 7.37239 1.04158 6.81294 1.05882C6.73367 1.03969 6.64933 1.03585 6.56382 1.05011C6.53294 1.05525 6.50298 1.06258 6.47406 1.0719ZM12.5941 2.29682C12.1937 2.29179 11.7483 2.2916 11.2499 2.2916H8.7499C8.2515 2.2916 7.80613 2.29179 7.40574 2.29682C7.46346 2.6338 7.50948 2.8727 7.56486 3.05871C7.63146 3.2824 7.69095 3.3535 7.73816 3.39349C7.78536 3.43348 7.86528 3.48047 8.09687 3.50939C8.34578 3.54047 8.67927 3.5416 9.20105 3.5416H10.7987C11.3205 3.5416 11.654 3.54047 11.9029 3.50939C12.1345 3.48047 12.2144 3.43348 12.2616 3.39349C12.3088 3.3535 12.3683 3.2824 12.4349 3.05871C12.4903 2.8727 12.5363 2.6338 12.5941 2.29682ZM13.854 2.34385C13.7846 2.75837 13.7206 3.12098 13.633 3.41538C13.529 3.76459 13.3721 4.09103 13.0696 4.34726C12.7671 4.6035 12.4193 4.70462 12.0578 4.74976C11.7222 4.79165 11.3098 4.79163 10.8356 4.7916H9.16416C8.69 4.79163 8.27758 4.79165 7.94201 4.74976C7.58045 4.70462 7.23267 4.6035 6.93019 4.34726C6.62771 4.09103 6.47079 3.76459 6.36683 3.41538C6.27918 3.12098 6.21523 2.75837 6.14584 2.34385C5.96423 2.3578 5.79522 2.37546 5.6371 2.39784C4.9182 2.49958 4.51715 2.68769 4.22396 2.9963C3.92649 3.30944 3.74197 3.74493 3.64331 4.51732C3.54277 5.30454 3.54157 6.34285 3.54157 7.80695V12.1929C3.54157 13.657 3.54277 14.6953 3.64331 15.4826C3.74197 16.2549 3.92649 16.6904 4.22396 17.0036C4.51715 17.3122 4.9182 17.5003 5.6371 17.602C6.37741 17.7068 7.3564 17.7083 8.7499 17.7083H11.2499C12.6434 17.7083 13.6224 17.7068 14.3627 17.602C15.0816 17.5003 15.4827 17.3122 15.7758 17.0036C16.0733 16.6904 16.2578 16.2549 16.3565 15.4826C16.457 14.6953 16.4582 13.657 16.4582 12.1929V7.80695C16.4582 6.34285 16.457 5.30454 16.3565 4.51732C16.2578 3.74493 16.0733 3.30944 15.7758 2.9963C15.4827 2.68769 15.0816 2.49958 14.3627 2.39784C14.2046 2.37546 14.0356 2.3578 13.854 2.34385ZM6.04157 9.1666C6.04157 8.82142 6.32139 8.5416 6.66657 8.5416H13.3332C13.6784 8.5416 13.9582 8.82142 13.9582 9.1666C13.9582 9.51178 13.6784 9.7916 13.3332 9.7916H6.66657C6.32139 9.7916 6.04157 9.51178 6.04157 9.1666ZM6.04157 13.3333C6.04157 12.9881 6.32139 12.7083 6.66657 12.7083H9.9999C10.3451 12.7083 10.6249 12.9881 10.6249 13.3333C10.6249 13.6784 10.3451 13.9583 9.9999 13.9583H6.66657C6.32139 13.9583 6.04157 13.6784 6.04157 13.3333Z",fill:"currentColor"}))),I_=y(X3,{target:"e2uvbox3"})({name:"1aynuae",styles:"width:20px;height:20px"}),__=y(Hl,{target:"e2uvbox2"})("path{fill:",({theme:e})=>e.palette.greyNeutral[60],";}"),A_=y(J3,{target:"e2uvbox1"})("path{fill:",({theme:e})=>e.palette.greyNeutral[60],";}"),N_=y(g,{target:"e2uvbox0"})("cursor:",({disabled:e})=>e?"not-allowed":"default",";"),k_=10*1024*1024,R_=8e3,M_=1900,P_=({conversationData:e,isInmailFilter:n,sendMessagesStyle:s})=>{var $;const r=P(),[a,i]=c.useState(""),[o,l]=c.useState([]),{isTrialStarted:u,isTrial:d,checkFeature:p}=We(),[h,m]=p(X.inboxAttachments),[f,C]=p(X.inboxTemplate),{conversationId:E="",isSponsored:b=!1,isLinkedinOffer:w=!1}=e||{},{entityUrn:I,objectUrn:T,firstName:j,lastName:L,headline:_}=(($=e.participants)==null?void 0:$[0])||{},N=u?I5:_5,A=`Maximum ${N} file${N>1?"s":""} can be attached`,{leadInfo:R}=Un(I,T),{sendLIMessage:V,isSendLiLoading:O}=ru({conversationId:E,entityUrn:I}),{sendLIAttachmentMessage:B,isSendLiAttachmentLoading:D}=X7({conversationId:E,entityUrn:I});c.useEffect(()=>{i(""),l([])},[e==null?void 0:e.conversationId]);const M=()=>{if(o.length){if(o.length>N){r(Z({message:A,type:"info",autoCloseTime:3e3}));return}B({message:a,files:o})}else V({message:a,isGroup:!!(e!=null&&e.isGroup)});i(""),l([])},F=z=>{var ae;if(!((ae=z.currentTarget)!=null&&ae.files))return;if(d&&o.length===1){r(Z({message:"Upgrade your subscription to PROFESSIONAL plans to attach more files",type:"info",autoCloseTime:3e3}));return}if(o.length>=N){r(Z({message:A,type:"info",autoCloseTime:3e3}));return}const K=z.currentTarget.files[0];if(!K)return;if(K.size>k_){r(Z({message:"You cannot upload file of size more than 10 Mb",type:"error",autoCloseTime:3e3}));return}if(v5.includes(K.type)){r(Z({message:"Download error. Try again.",type:"error",autoCloseTime:3e3}));return}r(Z({type:"info",message:"Uploading file! Please wait!",autoCloseTime:3e3}));const re=new FileReader;re.onload=pe=>{var oe;const ie=(oe=pe.target)==null?void 0:oe.result;l(ke=>[...ke,{file:K,fileSrc:ie,fileId:fa()}]),Ao.dismiss(),r(Z({type:"success",message:"File uploaded!",autoCloseTime:3e3,delay:500})),z.target.value=""}
87,re.readAsDataURL(K)},W=z=>{l(K=>K.filter(re=>re.fileId!==z))},ne=()=>{var K,re,ae,pe,ie;const z={first_name:((K=R==null?void 0:R.person)==null?void 0:K.firstName)||j,last_name:((re=R==null?void 0:R.person)==null?void 0:re.lastName)||L,company:(ae=R==null?void 0:R.person)==null?void 0:ae.currentEmployer,position:((pe=R==null?void 0:R.person)==null?void 0:pe.currentTitle)||_,industry:(ie=R==null?void 0:R.person)==null?void 0:ie.industryName};r(Ne({type:Y.CHOOSE_TEMPLATE,closable:!1,headerText:"Choose Message Template",size:"medium",params:{noTemplatesMessage:"You don't have Inbox templates created",preselectCategory:"Inbox",onConfirm:async(oe,ke,Oe=[])=>{i(Object.entries(z).reduce((De,[Ie,_e])=>De.replaceAll(`{{${Ie}}}`,_e||""),oe));const Be=[];if(Oe)for(const De of Oe){const Ie=await rh(De.file_uri,De.file_name,De.file_type);Be.push({file:Ie,fileSrc:De.file_uri,fileId:fa()})}l(De=>[...De,...Be])}}}))};return t.jsx(t.Fragment,{children:t.jsx(Tr,{"data-testid":"textarea",value:a,onChange:z=>i(z.target.value),placeholder:"Write a message...",rows:5,parameters:{maxLength:n?M_:R_},control:t.jsxs(g,{display:"flex",justifyContent:"space-between",width:"100%",alignItems:"flex-end",children:[!(R!=null&&R.userNetwork.isExcluded)&&!b&&!w?t.jsxs(g,{display:"flex",gap:"8px",flexWrap:"wrap",children:[t.jsx(Al,{id:"attachment",type:"file",accept:"image/*,.ai,.psd,.pdf,.doc,.docx,.csv,.zip,.rar,.ppt,.pptx,.pps,.ppsx,.odt,.rtf,.xls,.xlsx,.txt,.pub,.html,.7z,.eml",onChange:F,disabled:!h}),t.jsx("label",{htmlFor:"attachment",children:t.jsx(ar,{iconComponent:t.jsx(__,{}),borderRadius:"4px",size:"l",disabled:!h,tooltip:m})}),t.jsx(we,{title:C,children:t.jsx(ar,{iconComponent:t.jsx(A_,{}),borderRadius:"4px",size:"l",disabled:!f,onClick:ne})}),!!(o!=null&&o.length)&&t.jsx(g,{display:"flex",flexWrap:"wrap",gap:"8px",sx:s,children:o.map(z=>t.jsx(os,{fileId:z.fileId,name:z.file.name,onDeleteClick:W},z.fileId))})]}):null,t.jsx(we,{title:(R==null?void 0:R.userNetwork.isExcluded)&&"You can't send a message to the excluded connection."||b&&"Reply for sponsored message couldn't be sent, please check you LinkedIn conversation directly."||w&&"Reply for LinkedIn offer message couldn't be sent, please check you LinkedIn conversation directly.",children:t.jsx(N_,{disabled:!a&&!o.length||(R==null?void 0:R.userNetwork.isExcluded)||b||w,children:t.jsx(k,{disabled:O||D||!a&&!o.length||(R==null?void 0:R.userNetwork.isExcluded)||b||w,onClick:M,rightIcon:t.jsx(I_,{}),children:"Send"})})})]})})})};se.extend(h2);const Ld=y(g,{target:"et1u6752"})("display:flex;flex-direction:column;flex-grow:1;background-color:",({theme:e})=>e.palette.greyNeutral[10],";&>*{flex-shrink:0;}"),O_=y(g,{target:"et1u6751"})("overflow-y:auto;display:flex;flex-direction:column-reverse;margin-bottom:auto;flex-shrink:1;min-height:145px;&::-webkit-scrollbar{width:6px;}&::-webkit-scrollbar-thumb{border-radius:100px;background-color:",({theme:e})=>e.palette.greyBlue[30],";border:7px solid ",({theme:e})=>e.palette.greyBlue[30],";}"),D_=y(g,{target:"et1u6750"})("display:flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:12px;margin:0 5px;font-size:14px;color:#000000;border:1px solid ",({theme:e})=>e.palette.light.main,";cursor:pointer;transition:0.2s;background:#ffffff;&:hover{background-color:",({theme:e})=>e.palette.light.main,";}"),e6=({conversationData:e,filterType:n,containerStyle:s,sendMessagesStyle:r,isLeadMessages:a,hideConversationActions:i=!1,showRefetchMessages:o=!1,directReplyConversation:l})=>{var ne,$,z,K,re,ae,pe;const{linkedInEntityUrn:u,isLinkedInLoginValid:d}=fe(ie=>ie.user.profile),[p,h]=c.useState(!1),m=((ne=e==null?void 0:e.participants)==null?void 0:ne[0].entityUrn)||"",f=(($=e==null?void 0:e.participants)==null?void 0:$[0].objectUrn)||"",C=(e==null?void 0:e.conversationId)||"",E=n===Nt.INMAIL,{leadInfo:b,isLeadLoading:w}=Un(m,f),I=C||((z=b==null?void 0:b.userNetwork)==null?void 0:z.conversationId)||((K=b==null?void 0:b.lead)==null?void 0:K.conversationUrn)||(b==null?void 0:b.conversationUrn)||"",{dispatch:T}=Ba(),j=ce(),L=ie=>{T({type:Es.SET_CONVERSATION,payload:{...e,conversationId:ie}})},{sendLIMessage:_}=ru({conversationId:I,entityUrn:m}),{messages:N,isLoading:A,fetchNextPage:R,isFetchingNextPage:V,refetch:O}
87=H7({filterType:n,conversationId:I,entityUrn:m,updateConversationId:L}),B=c.useMemo(()=>D1(e,N),[e,N]);c.useEffect(()=>{const ie=l0(N);if(!ie||Wh(e,ie))return;const oe=D1(e,N);T({type:Es.SET_CONVERSATION,payload:oe}),qh(j,oe)},[e,T,N,j]),c.useEffect(()=>{!A&&N.length>0&&h(!1)},[A,N]);const D=((re=N[0])==null?void 0:re.replyRecommendations)||[],M=async ie=>{const oe=ie.currentTarget.scrollHeight+ie.currentTarget.scrollTop-ie.currentTarget.offsetHeight<30;!V&&oe&&(N==null?void 0:N.length)>0&&R().catch(console.error)},F=(ie,oe)=>{_({message:ie,objectUrn:oe,isGroup:!!(e!=null&&e.isGroup)})},W=()=>{h(!0),O()};return d?a&&((ae=b==null?void 0:b.userNetwork)==null?void 0:ae.degree)!==1&&!A&&!N.length?t.jsx(Ld,{style:s,children:t.jsx(g,{display:"flex",justifyContent:"center",pt:"55px",pb:"120px",px:"24px",children:t.jsx(S,{color:"greyBlue.60",textAlign:"center",children:"You can't send a message to a person who is not in your LinkedIn network."})})}):t.jsxs(Ld,{style:s,children:[!!N.length&&!a&&t.jsx(v_,{isLoadingMessages:A,conversationData:B,hideConversationActions:i,filterType:n,isDirectReply:!!l}),t.jsx(g,{pb:"16px",px:"16px",flexGrow:"1",maxHeight:N.length&&!a?"calc(100% - 68px)":"100%",height:"100%",children:A||w||p?t.jsx(g,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",children:t.jsx(Pe,{})}):t.jsxs(g,{display:"flex",flexDirection:"column",height:"100%",...l,children:[t.jsxs(O_,{onScroll:M,height:"100%",children:[!N.length&&t.jsxs(g,{display:"flex",alignItems:"center",flexDirection:"column",mb:"10px",py:"48px",gap:"5px",children:[t.jsx(S,{color:"greyNeutral.60",fontSize:"14px",children:"No history of messages found with this person."}),t.jsx(S,{color:"greyNeutral.60",fontSize:"14px",children:"You can initiate the conversation."})]}),N==null?void 0:N.map(ie=>{var Oe,Be,De,Ie;const oe=ie.entityUrn===u?1:0,ke=((Be=(Oe=ie.content)==null?void 0:Oe.attributedBody)==null?void 0:Be.text)||((De=ie.content.customContent)==null?void 0:De.body)||((Ie=ie.content)==null?void 0:Ie.placeholder);return[Rn.systemMessage,Rn.participantChange].some(_e=>_e===ie.subtype)?t.jsx(E_,{name:oe?"You":ie.name,content:ke,participantChanges:ie.participantsChanges},ie.createdAt):t.jsx(L_,{msg:ie,self:oe,content:ke},ie.createdAt)}),V&&t.jsx(Pe,{size:"12px",marginTop:"24px"})]}),!!D.length&&!((pe=b==null?void 0:b.userNetwork)!=null&&pe.isExcluded)&&t.jsx(g,{display:"flex",justifyContent:"center",mb:"12px",children:D.map(ie=>t.jsx(D_,{onClick:()=>F(ie.content.text,ie.objectUrn),children:ie.content.text},ie.objectUrn))}),o&&!!N.length&&t.jsx(g,{mb:"12px",mx:"auto",children:t.jsx(we,{title:"Update Conversation",children:t.jsx(yt,{icon:_p,cursor:"pointer",color:"#545753",onClick:W})})}),t.jsx(g,{mt:"16px",children:t.jsx(P_,{conversationData:B,isInmailFilter:E,sendMessagesStyle:r})})]})})]}):t.jsx(y_,{})},U_={backgroundColor:"#ffffff",padding:0,height:"100%"},B_=({entityUrn:e,conversationId:n,firstName:s,lastName:r,objectUrn:a,imageUrl:i})=>{const o={conversationId:n||e,participants:[{entityUrn:e,imageUrl:i,firstName:s,lastName:r,objectUrn:a,headline:""}],from:"",isGroup:!1,isSponsored:!1,isLinkedinOffer:!1,lastActivityAt:0,content:"",unreadCount:0};return t.jsx(g,{"data-testid":"messages",height:"100%",children:t.jsx(e6,{isLeadMessages:!0,conversationData:o,filterType:Nt.ALL,containerStyle:U_})})},H_=({notes:e,entityUrn:n,userNetwork:s})=>{const[r,a]=c.useState(e||""),[i,o]=c.useState(!1),{checkFeature:l}=We(),[u,d]=l(X.connectionNote),{updateNotes:p,isLoading:h}=B7(n,{onSuccess:()=>{o(!1)}});c.useEffect(()=>{a(e||"")},[e]);const m=()=>p(r),C=u?Qt(s)?"Notes feature is available just for your connections.":"":d;return t.jsxs(t.Fragment,{children:[t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",mb:"12px","data-testid":"notes",children:[t.jsx(S,{color:"greyNeutral.80",children:"Note"}),!i&&t.jsx(we,{title:d,children:t.jsx(Jt,{color:"greyNeutral.60","data-testid":"edit-notes",onClick:()=>u&&o(!0),children:t.jsx(ls,{width:"16px",height:"16px"})})})]}),i?t.jsxs(t.Fragment,{children:[t.jsx(we,{title:C,children:t.jsx(Tr,{value:r,onChange:E=>a(E.target.value),name:"notes",placeholder:"Add notes",wrapperProps:{mb:"8px"},disabled:!u||Qt(s),"data-testid":"notes-textarea"})}),t.jsx(k,{scale:"s",onClick:m,processing:h,children:"Save"})]}):t.jsx(S,{fontSize:"12px",lineHeight:"16px",whiteSpace:"pre-wrap",children:e})]})},sa=e=>({label:e.tag,value:e.id,color:e.color}),V_=({tags:e,entityUrn:n})=>{const[s,r]=c.useState(!1),[a,i]=c.useState([]),{tags:o}=is(),{setLeadTags:l,isLoading:u}=pu({entityUrn:n},{onSuccess:()=>r(!1)}),{createAddLeadTag:d}=vx(n),{checkFeature:p}=We(),[h,m]=p(X.leadsTags);c.useEffect(()=>{i(Vo(e,"tag").map(sa))},[e]);const f=w=>{if(!Array.isArray(w)||!w.length&&!a.length)return null;if(w.length>a.length){const I=w.reduce((T,j)=>{let L=j;return j.value!==-1&&(L=o==null?void 0:o.find(_=>_.id===j.value)),L?[...T,sa(L)]:T},[]);return i(I)}return i([...w])},C=w=>{d({tag:w,color:Er()})},E=()=>
87{if(!h)return;const w=new Set((e==null?void 0:e.map(I=>I.id))||[]);i((o==null?void 0:o.filter(({id:I})=>w.has(I)).map(sa))||[]),r(!0)},b=()=>{const w=new Set((a==null?void 0:a.map(({value:I})=>I))||[]);l((o==null?void 0:o.filter(I=>w.has(I.id)))||[])};return t.jsxs(t.Fragment,{children:[t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",mb:"12px","data-testid":"tags",children:[t.jsx(S,{color:"greyNeutral.80",children:"Tags"}),!s&&t.jsx(we,{title:m,children:t.jsx(Jt,{"data-testid":"edit-tags",color:"greyNeutral.60",onClick:E,children:t.jsx(ls,{width:"16px",height:"16px"})})})]}),s?t.jsxs(t.Fragment,{children:[t.jsx(we,{title:m,children:t.jsx(Xe,{isMulti:!0,isCreatable:!0,placeholder:"Select Tags",value:a,options:(o==null?void 0:o.map(sa))||[],onChange:f,additionalProps:{isSearchable:!0,isClearable:!1,onCreateOption:C,formatCreateLabel:w=>t.jsxs(Ml,{children:['Create option "',w,'"']})},wrapperProps:{mb:"8px"},isDisabled:!h})}),t.jsx(k,{scale:"s",onClick:b,processing:u,children:"Save"})]}):t.jsx(g,{display:"flex",flexWrap:"wrap",gap:"8px",children:e==null?void 0:e.map(w=>t.jsx(Pt,{sharp:!0,withBorder:!0,tag:w.tag,color:w.color},w.id))})]})},F_=y(g,{target:"e134a8994"})("padding:20px;background-color:",({theme:e})=>e.palette.bg.greyBlue,";width:480px;box-sizing:border-box;height:100%;overflow-y:auto;display:flex;flex-direction:column;"),$_=y(g,{target:"e134a8993"})({name:"db3vit",styles:"border-radius:12px;background-color:#ffffff;flex-grow:1;height:100%;overflow:hidden"}),G_=y(g,{target:"e134a8992"})("display:flex;border-bottom:1px solid ",({theme:e})=>e.palette.greyBlue[20],";padding:16px;height:70px;box-sizing:border-box;"),z_=y(Nl,{target:"e134a8991"})("font-weight:600;color:",({theme:e})=>e.palette.greyBlue[60],";border-bottom:1px solid ",({theme:e})=>e.palette.greyBlue[30],";padding:8px 16px;border-radius:0;line-height:20px;&.active{background:transparent;color:",({theme:e})=>e.palette.blue.primary,";border-bottom:2px solid ",({theme:e})=>e.palette.blue.primary,";}"),W_=y("div",{target:"e134a8990"})({name:"c99t6m",styles:"width:1px;height:20px;background-color:#00000033"}),t6=()=>{var F,W,ne,$;const[e,n]=ns(),s=Su(),[r,a]=c.useState(!1),i=e.get("person")||"",{leadInfo:o}=Un(i),l=((F=o==null?void 0:o.person)==null?void 0:F.key)||i,{leadActivitiesData:u}=hl({entityUrn:l},{enabled:!!l}),{userPreferences:d}=cl(),{userMe:p}=st(),{realImpersonateUser:h}=pn(),m=fe(z=>z.conversation.selectedConversation),{isImpersonate:f}=fe(z=>z.user),{currentTitle:C,picture:E,linkedInData:b,name:w="",workEmail:I,twitterHandle:T}=(o==null?void 0:o.person)??{},j=w||I||T,L=e.get("tab"),{key:_,linkedInUrn:N,linkedInHandle:A}=(o==null?void 0:o.person)||{},R=N||A||Ma(_)&&_,V=window.location.href.indexOf("inbox")!==-1,O=!!((W=o==null?void 0:o.lead)!=null&&W.isExcluded)||!!((ne=o==null?void 0:o.userNetwork)!=null&&ne.isExcluded),B=[{label:"Personal details",name:"personal_details"},{label:"Activities",name:"activities",total:u==null?void 0:u.total},{label:"Messages",name:"messages",isHide:V,isDisabled:f&&!(d!=null&&d.enableMembersInbox)&&!(p!=null&&p.isGhostUser)&&!(h!=null&&h.isAlfredAdmin),tooltip:"You are only allowed to view your own messages inbox."}],D=c.useMemo(()=>{var z,K,re,ae,pe,ie;switch(L){case"personal_details":return t.jsxs(g,{p:"12px 16px",height:"calc(100% - 70px)",boxSizing:"border-box",children:[t.jsx(Vl,{leadInfo:o==null?void 0:o.lead,person:o==null?void 0:o.person,hideLinkedin:!0}),t.jsx(V_,{tags:(o==null?void 0:o.tags)??[],entityUrn:i}),(o==null?void 0:o.userNetwork.degree)===1&&t.jsx(Ue,{my:"16px"}),(o==null?void 0:o.userNetwork.degree)===1&&t.jsx(H_,{"data-testid":"notes",notes:o==null?void 0:o.userNetwork.notes,entityUrn:i,userNetwork:o==null?void 0:o.userNetwork})]});case"activities":return t.jsx(g,{p:"12px 16px 16px 16px",height:"calc(100% - 70px)",boxSizing:"border-box",children:t.jsx(d_,{entityUrn:l})});case"messages":return t.jsx(g,{pb:"16px",height:"calc(100% - 70px)",boxSizing:"border-box",children:t.jsx(B_,{conversationId:((z=o==null?void 0:o.userNetwork)==null?void 0:z.conversationId)||((K=o==null?void 0:o.lead)==null?void 0:K.conversationUrn)||(m==null?void 0:m.conversationId)||"",entityUrn:i,objectUrn:((re=o==null?void 0:o.person)==null?void 0:re.objectUrn)??"",imageUrl:((ae=o==null?void 0:o.person)==null?void 0:ae.linkedInData.pic)??"",firstName:((pe=o==null?void 0:o.person)==null?void 0:pe.firstName)??"",lastName:((ie=o==null?void 0:o.person)==null?void 0:ie.lastName)??""})});default:return null}},[L,o,i,m]),M=()=>{a(!0),setTimeout(()=>{n(z=>{const K=new URLSearchParams(z);return K.delete("person"),K.delete("tab"),K},{replace:!0,state:s}),a(!1)},300)};return t.jsx(Hs,{isOpen:!!i&&!r,onClose:M,children:i?t.jsxs(F_,{children:[t.jsxs(g,{display:"flex",gap:"16px",alignItems:"center",mb:"16px",children:[t.jsx(ht,{width:"74px",height:"74px",src:E,fallbackSrc:b==null?void 0:b.pic,firstLatter:j==null?void 0:j[0]}),t.jsxs(g,{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",maxWidth:"calc(100% - 180px)",children:[t.jsxs(g,{display:"flex",alignItems:"center",gap:"9px",mb:"2px",children:[!!j&&t.jsx(S,{crop:!0,semibold:!0,fontSize:"18px",lineHeight:"24px",children:j}),(($=o==null?void 0:o.person)==null?void 0:$.isPremium)&&t.jsx(jr,{width:"20px",height:"20px",style:{flexShrink:0}})]}),!!C&&t.jsx(S,{inline:!0,crop:!0,color:"greyBlue.60",mb:"8px",children:C}),!Qt(b)&&t.jsx(je,{tooltip:"View profile on Linkedin",to:`https://www.linkedin.com/in/${R}
87`,openNewTab:!0,external:!0,leftIcon:!0,semibold:!0,children:"View on LinkedIn"})]}),t.jsxs(g,{display:"flex",flex:"1",justifyContent:"flex-end",alignSelf:"flex-start",gap:"10px",children:[t.jsx(Fl,{entityUrn:i,isExcluded:O}),t.jsx(W_,{}),t.jsx(Xt,{cursor:"pointer",onClick:M,width:"20px",height:"20px"})]})]}),t.jsxs($_,{children:[t.jsx(G_,{children:B.map(({label:z,name:K,isDisabled:re,tooltip:ae,isHide:pe,total:ie})=>(re||pe)&&L===K?t.jsx(Le,{to:`${location.pathname}?person=${i}&tab=personal_details`,replace:!0,state:s},K):pe?null:t.jsx(we,{title:re&&ae,children:t.jsxs(z_,{"data-testid":`tab-${K}`,disabled:re,to:`${location.pathname}?person=${i}&tab=${re?L:K}`,state:s,className:Ee({active:K===L}),children:[z," ",ie&&t.jsx("span",{children:ie})]})},K))}),D]})]}):null})},va="image/",n6=[".ai",".psd",".pdf",".doc",".docx",".csv",".zip",".rar",".ppt",".pptx",".pps",".ppsx",".odt",".rtf",".xls",".xlsx",".txt",".pub",".html",".7z",".eml"],q_=[va.concat("*"),...n6].join(","),Z_=va.concat("*"),Xs=y("p",{target:"edg8ms80"})({name:"1azakc",styles:"text-align:center"}),Y_=({index:e,setValue:n,setError:s,watch:r,clearErrors:a})=>{const i=P(),o=c.useRef(0),l=c.useRef(null),{isTrial:u,checkFeature:d}=We(),p=r(`sequence.${e}.attachments`)??[],h=r(`sequence.${e}.type`)??"",m=p.length,f=["Twitter DM","Twitter Follow"].includes(h),[C,E]=d(X.attachmentInSequenceStep),[b]=d(X.attachmentsUploadLimit),w=c.useMemo(()=>u||f?1:C?5:0,[C]),I=c.useMemo(()=>b?25e6:Number.MAX_VALUE,[b]),T=c.useMemo(()=>C?m?t.jsxs(t.Fragment,{children:[t.jsxs(Xs,{children:[m," file(s) are added."]}),t.jsx(Xs,{children:"Click here to choose again"})]}):t.jsxs(t.Fragment,{children:[t.jsx(Xs,{children:"Select file(s) as attachment(s) to this message."}),t.jsx(Xs,{children:"Max file size limit is 10MB"})]}):t.jsx(t.Fragment,{children:t.jsx(Xs,{children:E})}),[m,C,E]),j=()=>{var N;return C&&((N=l.current)==null?void 0:N.click())},L=(N,A)=>i(Z({type:N,message:A,autoCloseTime:3e3})),_=async()=>{var O;const N=Array.from(((O=l==null?void 0:l.current)==null?void 0:O.files)??[]),A=N.filter(B=>h==="Twitter DM"?B.type.startsWith(va):B.type.startsWith(va)||n6.some(D=>B.name.toLowerCase().endsWith(D)));if(N.length&&!A.length)return L("info","File upload failed, file type is not supported!");const R=[...A,...p].length+o.current;if(!w)return L("info",xe.premium);if(R>w)return L("info",`Maximum ${w} file${w>1?"s":""} can be attached`);if(A.some(B=>B.size>I))return L("info","File upload failed, exceeds file limit!");s(`sequence.${e}.attachments`,{type:"custom",message:"Uploading files"}),L("info","UPLOADING FILES! PLEASE WAIT!"),o.current+=A.length,await Promise.all(A.map(B=>Q2({file:B,isLinkedIn:!0,onUrlError:()=>{o.current-=1,L("error","Uploading failed! Please contact support!")},onUploadError:()=>{o.current-=1,L("error","Couldn't upload the file!")},onSuccess(D){o.current-=1;const M=r(`sequence.${e}.attachments`)??[];a(`sequence.${e}.message`),n(`sequence.${e}.attachments`,[...M,D]),L("success","FILE UPLOADED!")}}))),a(`sequence.${e}.attachments`)};return t.jsxs(t.Fragment,{children:[t.jsx(Al,{ref:l,type:"file",accept:h==="Twitter DM"?Z_:q_,onChange:_,multiple:!0}),t.jsx(we,{title:T,placement:"top",children:t.jsx(k,{scale:"s",onClick:j,leftIcon:t.jsx(Hl,{}),iconOnly:!0})})]})},K_=e=>e?`Enter ${e}...`:void 0,Q_={textMaxLength:0,withUploadFile:!1,withTemplates:!0,withPersonalize:!0,showMaxLength:!0,type:"textarea",inputProps:{},actionButtonConfig:{text:null,onClick:()=>{}}},wd=({title:e,index:n,config:s,watchField:r,description:a,snippetOptions:i,registerOptions:o={},...l})=>{var Ae,Ge,gt;const u=P(),{campaignId:d}=_a(),{checkFeature:p}=We(),[h]=p(X.CSVSnippets),m={...Q_,...s},{watch:f,setValue:C,register:E,formState:{errors:b},trigger:w}=l,{campaign:I}=ul(Number(d),{enabled:!isNaN(Number(d))}),[T,j]=c.useState(null),L=f(`sequence.${n}.${r}`),_=f(`sequence.${n}.attachments`)??[],N=f(`sequence.${n}.type`),A=c.useMemo(()=>(L==null?void 0:L.replaceAll(`
88`,"<br>"))||"",[L]),R=(L==null?void 0:L.length)??0,V=c.useRef(R),O=![U.EMAIL_CSV_UPLOAD,U.TWITTER_CSV_UPLOAD].some(ye=>ye===(I==null?void 0:I.campaignType)),B=[U.EMAIL_CSV_UPLOAD,U.TWITTER_CSV_UPLOAD].some(ye=>ye===(I==null?void 0:I.campaignType)),[D,M]=p(X.templatesInSequenceStep);c.useEffect(()=>{m.textMaxLength&&R>m.textMaxLength&&C(`sequence.${n}.${r}`,L.slice(0,m.textMaxLength),{shouldValidate:!0})},[f(`sequence.${n}.${r}`)]);const F=c.useCallback(ye=>{C(`sequence.${n}.attachments`,_.filter(Re=>Re.file_uri!==ye)),w(`sequence.${n}.message`)},[C,w,n,_]),W=c.useCallback((ye="")=>{if(h)return!1;const Re=ye==null?void 0:ye.match(/{{.*?}}/g),me=i||[];return Re==null?void 0:Re.some(Me=>me.map(({value:Ze})=>Ze).includes(Me.replace(/{{/g,"").replace(/}}/g,"")))},[i]),ne=c.useMemo(()=>W(L),[L,W]),$=c.useCallback((ye="")=>{const Me=[...O?zo:B?V5:[],...i||[]].map(({value:dt})=>dt),Ze=ye==null?void 0:ye.match(/{{.*?}}/g);return Ze==null?void 0:Ze.some(dt=>!Me.includes(dt.replace(/{{/g,"").replace(/}}/g,"")))},[B,O,i]),z=c.useMemo(()=>$(L),[L,$]),re=ne?" Found snippets that are unavailable for current subscription Plan":` Found snippets that are unavailable from${B&&!O?" CSV file":" LinkedIn"}`,ae=c.useCallback(ye=>{var Me,Ze;const Re=((Me=ye==null?void 0:ye.match(/\b[A-Za-z0-9]+(?:_[A-Za-z0-9]+)+\b/gm))==null?void 0:Me.length)||0,me=((Ze=ye==null?void 0:ye.match(/\{\{\s*[A-Za-z0-9]+(?:_[A-Za-z0-9]+)+\s*\}\}/gm))==null?void 0:Ze.length)||0;return Re>me},[B,O,i]),pe=c.useMemo(()=>ae(L),[L,ae]),ie=ye=>{var Me;const Re=ye.split(".");let me=(Me=b==null?void 0:b.sequence)==null?void 0:Me[n];for(const Ze of Re)if(me&&typeof me=="object"&&Ze in me)me=me[Ze];else return null;return me},oe=c.useCallback(ye=>{const Re=`{{${ye}}}`;if(T&&m.type==="editField")return T.insertHTML(Re);const me=V.current,Me=L.slice(0,me)+Re,Ze=Me+L.slice(me);return V.current=Me.length,C(`sequence.${n}.${r}`,Ze,{shouldValidate:!0,shouldDirty:!0,shouldTouch:!0})},[T,m.type,L,C,n,r]),ke=c.useCallback(()=>
88{D&&u(Ne({type:Y.CHOOSE_TEMPLATE,closable:!1,headerText:"Choose Message Template",size:"medium",params:{type:N,field:r,onConfirm:(ye,Re,me)=>{ye&&(T&&m.type==="editField"&&T.setContents(ye.replaceAll(`
89`,"<br>")),C(`sequence.${n}.${r}`,ye,{shouldValidate:!0})),Re&&C(`sequence.${n}.subject`,Re,{shouldValidate:!0}),me&&C(`sequence.${n}.attachments`,me,{shouldValidate:!0})}}}))},[D,u,N,r,T,m.type,C,n]),Oe=c.useMemo(()=>{var ye;return t.jsxs(t.Fragment,{children:[m.withUploadFile&&t.jsx(Y_,{...l,index:n}),m.withTemplates&&t.jsx(we,{title:M,children:t.jsx(k,{scale:"s",onClick:ke,leftIcon:t.jsx(J3,{}),children:"Templates"})}),m.withPersonalize&&t.jsx(g,{position:"relative",children:t.jsx(Mb,{onSnippetClick:oe,snippetOptions:i,showLinkedinSnippet:O})}),m.withUploadFile&&!!_.length&&t.jsx(g,{mt:"4px",width:"100%",children:t.jsx(g,{display:"flex",flexWrap:"wrap",gap:"8px",children:_.map(Re=>t.jsx(os,{name:Re.file_name,fileId:Re.file_uri,onDeleteClick:F,margin:"0px"},Re.file_uri))})}),((ye=m.actionButtonConfig)==null?void 0:ye.text)&&t.jsx(g,{flexGrow:"1",display:"flex",justifyContent:"flex-end",children:t.jsx(k,{variant:"primary",scale:"s",onClick:m.actionButtonConfig.onClick,children:m.actionButtonConfig.text})})]})},[m.withUploadFile,m.withTemplates,m.withPersonalize,(Ae=m.actionButtonConfig)==null?void 0:Ae.text,(Ge=m.actionButtonConfig)==null?void 0:Ge.onClick,n,M,ke,oe,i,O,_.length,_.map(ye=>ye.file_uri).join(","),F]),Be=c.useCallback(ye=>{const Re=$0(ye);C(`sequence.${n}.${r}`,Re),w(`sequence.${n}.${r}`)},[C,w,n,r]),De=c.useCallback(ye=>j(ye),[]),Ie=ie(String(r)),_e=Ie&&typeof Ie=="object"&&"message"in Ie&&Ie.message?String(Ie.message):null,Ke=!!Ie,tt=((gt=m.inputProps)==null?void 0:gt.placeholder)??K_(e),rt=(ye,Re)=>{if(typeof o.validate=="function"){const Me=o.validate(ye,Re);if(Me!==!0)return Me}const me=typeof ye=="string"?ye:"";return!W(me)&&!$(me)},be=()=>{switch(m.type){case"textarea":return t.jsx(Tr,{...m.inputProps,placeholder:tt,label:e,minHeight:m.minHeight,className:Ee({error:z||ne||Ke}),showMaxLength:!!m.textMaxLength&&m.showMaxLength,name:`sequence.${n}.${r}`,register:E,resizable:!0,parameters:{...o,...m.textMaxLength?{maxLength:m.textMaxLength}:{},validate:rt,onBlur:ye=>{V.current=ye.target.selectionStart}},control:Oe});case"editField":return t.jsx(g,{mb:"0px",children:t.jsx(wu,{label:e,placeholder:tt,resizable:!0,className:Ee({error:z||ne||Ke}),...E(`sequence.${n}.${r}`,{...o,validate:(ye,Re)=>typeof ye!="string"?!0:rt(ye,Re)}),onChange:Be,getEditorInstance:De,value:A,editorProps:{value:A,buttonList:[["undo","redo"],["link","codeView"],["list"],["underline","italic","bold"]]},control:Oe})});default:return null}};return t.jsxs(t.Fragment,{children:[be(),_e&&t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"additional.red50",mt:"6px",mb:"6px",children:_e}),(z||ne)&&t.jsxs(S,{fontSize:"12px",lineHeight:"16px",color:"additional.red50",mt:"6px",mb:"6px",children:[t.jsx("b",{children:"Warning:"}),re]}),pe&&t.jsxs(S,{fontSize:"12px",lineHeight:"16px",color:"additional.red50",mt:"6px",mb:"6px",children:[t.jsx("b",{children:"Warning: "}),"Your message contains words separated by underscores. Please verify that these are not snippets. If they are, enclose them in double curly braces like this: ","{{snippet_name}}","."]}),a&&t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",mt:"6px",children:a})]})},X_=y(g,{target:"ea3zdnx1"})({name:"s5xdrg",styles:"display:flex;align-items:center"}),J_=y(S,{target:"ea3zdnx0"})("display:inline-block;color:",({theme:e})=>e.palette.greyNeutral[100],";margin-left:8px;"),eA=({index:e,watch:n,setValue:s})=>{const r=P(),a=n(`sequence.${e}.tags`),[i,o]=c.useState(!!(a!=null&&a.length)),[l,u]=c.useState([]),d=c.useRef(l);d.current=l;const{checkFeature:p}=We(),[h,m]=p(X.leadsTags),f=L=>{u(L),s(`sequence.${e}.tags`,L.map(_=>({key:_.id,value:_.tag})))},C=L=>{f(L||[])},{tags:E}=is(),{createTag:b}=Ha({onMutate:({color:L,tag:_})=>{f([...d.current.filter(N=>N.id!==-1&&N.tag!==_),{color:L,tag:_,id:-1,snId:null,leadsCount:0,connectionsCount:0}])},onSuccess:L=>{f([...d.current.filter(_=>_.id!==-1&&_.tag!==L.tag),L]),r(Z({type:"info",message:"tag created",autoCloseTime:3e3}))},onError:(L,_)=>{f(d.current.filter(N=>N.id!==-1&&N.tag!==_.tag))}}),w=c.useMemo(()=>(E==null?void 0:E.map(L=>({label:L.tag,...L,value:L.tag}
89)))||[],[E]),I=JSON.stringify(a??[]);c.useEffect(()=>{if(!(a!=null&&a.length))return;const L=a.reduce((N,A)=>{const R=(A.key>0?E==null?void 0:E.find(O=>O.id===A.key):void 0)||(E==null?void 0:E.find(O=>O.tag===A.value&&O.id>0)),V={key:(R==null?void 0:R.id)??A.key,value:(R==null?void 0:R.tag)??A.value};return N.some(O=>O.key===V.key||O.value===V.value)?N:[...N,V]},[]);if((L.length!==a.length||L.some((N,A)=>{var R;return N.key!==((R=a[A])==null?void 0:R.key)}))&&s(`sequence.${e}.tags`,L),!(E!=null&&E.length))return;const _=L.map(N=>E.find(A=>A.id===N.key)||E.find(A=>A.tag===N.value)).filter(N=>!!N).map(N=>({label:N.tag,...N,value:N.tag}));u(N=>N.length===_.length&&N.every((A,R)=>{var V;return A.id===((V=_[R])==null?void 0:V.id)})?N:_),o(!0)},[e,s,E,a,I]);const T=()=>{i?s(`sequence.${e}.tags`,[]):s(`sequence.${e}.tags`,l.map(L=>({key:L.id,value:L.tag}))),o(L=>!L)},j=L=>{b({tag:L,color:Er()})};return t.jsxs(t.Fragment,{children:[t.jsxs(X_,{mb:"8px",children:[t.jsx(Us,{checked:i||!1,name:"Show tags",onChange:T}),t.jsx(J_,{children:"Add tags"})]}),i&&t.jsx(we,{title:m,children:t.jsx("span",{children:t.jsx(Xe,{isMulti:!0,isCreatable:!0,label:"Select tags:",placeholder:"Select Tags",value:(l==null?void 0:l.map(L=>({label:L.tag,...L,value:L.tag})))||[],options:w,onChange:L=>C(L),additionalProps:{isSearchable:!0,isDisabled:!h,onCreateOption:j}})})})]})},tA=y(g,{target:"e1n30vuw3"})({name:"s5xdrg",styles:"display:flex;align-items:center"}),nA=y(S,{target:"e1n30vuw2"})("display:inline-block;color:",({theme:e})=>e.palette.greyNeutral[100],";margin-left:8px;"),sA=y(g,{target:"e1n30vuw1"})("margin:16px -16px -16px -16px;background-color:",({theme:e})=>e.palette.bg.greyBlue,";padding:16px;display:flex;align-items:center;gap:12px;border-radius:0 0 12px 12px;"),rA=y(g,{target:"e1n30vuw0"})("border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:12px;padding:16px;background:",({theme:e})=>e.palette.common.white,";box-sizing:border-box;"),Td=e=>({sequence:[{type:de.EMAIL,subject:e,message:"",delay_time_unit:$o.DAYS,delay_number:1,proceed_to_next:!1,followup_message:"",days_til_revoke:0,chainedMessages:[],connect_followup:!1,revoke_invite:!1,auto_follow_twitter:!1,gmail_signature:!1,is_editing:!0,auto_endorse:!1,auto_post_like:!1,view:!1,endorsements_count:1,posts_count:1,tags:[],attachments:[],auto_follow:!1}]}),aA=({actionKey:e,subject:n,canReply:s,disabledReason:r,isLocked:a,customSnippets:i={},onSent:o})=>{const l=P(),u=lt({defaultValues:Td(n)}),{watch:d,setValue:p,getValues:h,reset:m}=u,{userEmail:f,isLoading:C}=Ps(),{mailSettings:E,isMailLoading:b}=Ua(),{sendTestEmail:w}=l7(),{sendEmailDirectReply:I,isLoading:T}=ex({onSuccess:M=>{if(M!=null&&M.sent){const F=h("sequence.0.message")||"";o({message:F,messageId:M.messageId})}}});c.useEffect(()=>{m(Td(n))},[n,e,m]);const j=!!d("sequence.0.gmail_signature"),L=d("sequence.0.message")||"",_=Object.keys(i).map(M=>({label:i[M],value:M})),N=C||b,A=N||!(f!=null&&f.gmailEnabled)&&!(f!=null&&f.outlookEnabled)&&!(E!=null&&E.isConnected),R=a||!s||T,V=a?"Reply already sent":s?L.trim()?e?"":"Missing reply action key":"Message is required":r||"Direct reply is unavailable",O=()=>{l(Ne({type:Y.SIGNATURE,headerText:"Setup your Email Signature"}))},B=()=>{l(Ne({type:Y.SEND_TEST_EMAIL,headerText:"Send test email",onConfirm:M=>{const{attachments:F,message:W,subject:ne,gmail_signature:$}=h("sequence.0");w({sendTo:M,attachments:F,message:W,subject:ne,includeSignature:$})}}))},D=()=>{if(R||!L.trim()||!e)return;const{attachments:M,message:F,gmail_signature:W}=h("sequence.0");I({actionKey:e,message:F,includeSignature:!!W,attachments:M??[]})};return a?t.jsx(g,{"data-testid":"email-direct-reply-sent-lock",children:t.jsx(S,{color:"greyNeutral.100",textAlign:"center",children:"Your reply has been sent."})}):s?t.jsxs(g,{children:[t.jsxs(rA,{children:[t.jsx(wd,{title:"Subject",watchField:"subject",config:{withTemplates:!1,withPersonalize:!1,type:"textarea",inputProps:{rows:1,disabled:!0,readOnly:!0},minHeight:"84px"},index:0,snippetOptions:_,...u}),t.jsx(g,{my:"12px",children:t.jsx(wd,{title:"Message",watchField:"message",description:"*Sequence stops if a reply is detected from the lead.",config:{withUploadFile:!0,withTemplates:!1,withPersonalize:!1,type:"editField"},index:0,snippetOptions:_,...u})}),t.jsxs(tA,{mb:"12px",children:[t.jsx(Us,{checked:j,name:"sequence.0.gmail_signature",setValue:p}),t.jsx(nA,{children:"Include Email Signature"}),j&&t.jsx(je,{ml:"12px",onClick:O,children:"Setup your signature"})]}),t.jsx(eA,{index:0,watch:d,setValue:p}),t.jsxs(sA,{children:[t.jsx(k,{onClick:B,disabled:A,tooltip:{title:!N&&A&&"Connect your Email account to test this email"},children:"Test this email"}),t.jsx(S,{color:"greyNeutral.60",children:"See the preview of the set email"})]})]}),t.jsx(g,{mt:"16px",width:"100%",children:t.jsx(k,{size:{width:"100%"},wrapperStyle:{width:"100%"},onClick:D,disabled:R||!L.trim()||!e,processing:T,tooltip:{title:V},children:"Send"})})]}):t.jsx(g,{"data-testid":"email-direct-reply-disabled",children:t.jsx(S,{color:"greyNeutral.100",textAlign:"center",children:r||"Direct reply is unavailable for this email."})})},iA=({message:e,avatarSrc:n,avatarLetter:s})=>{var i;const r=e.fromSelf,a=((i=e.attachmentNames)==null?void 0:i.filter(
89Boolean))??[];return t.jsxs(g,{display:"flex",alignItems:"flex-end",gap:"8px",mb:"12px",flexDirection:r?"row-reverse":"row",maxWidth:"90%",ml:r?"auto":0,mr:r?0:"auto",children:[!r&&t.jsx(ht,{firstLatter:s,src:n||"",width:"32px",height:"32px",flexShrink:0}),t.jsxs(g,{px:"12px",py:"10px",borderRadius:r?"8px 8px 0 8px":"8px 8px 8px 0",bgcolor:r?"bg.blue":"greyNeutral.20",color:"greyNeutral.300",fontSize:"14px",lineHeight:"20px",minWidth:0,width:"100%",sx:{wordBreak:"break-word",overflowWrap:"anywhere",a:{color:"inherit"}},"data-testid":"email-direct-reply-message-body",children:[t.jsx(qu,{children:t.jsx(cn,{parseText:e.body})}),a.length>0&&t.jsx(g,{mt:"8px",display:"flex",flexWrap:"wrap",gap:"8px","data-testid":"email-direct-reply-attachments",children:a.map(o=>t.jsx(os,{name:o,margin:"0"},o))})]})]})},oA=y(Ar,{target:"e14kvk9p0"})({name:"15xfg6m",styles:"cursor:pointer;width:20px;height:20px;path{stroke-width:1.2;}"}),lA=({drawerState:e,setDrawerState:n})=>{var ie,oe,ke,Oe,Be,De,Ie,_e,Ke,tt,rt;const{companyName:s}=Fe(),[r,a]=ns(),i=!!r.get("person"),{leadInfo:o}=Un(e.entityUrn),{userMe:l}=st(),{userEmail:u,isLoading:d}=Ps({enabled:e.isOpen}),{mailSettings:p,isMailLoading:h}=Ua({enabled:e.isOpen}),[m,f]=c.useState(!1),[C,E]=c.useState(null),b=!!(u&&u.gmailEnabled||u!=null&&u.outlookEnabled&&!(l!=null&&l.outlookError)||p!=null&&p.isConnected),w=()=>{i||(JI(e.actionKey),a(be=>yd(be,null),{replace:!0}),n(be=>({...be,isOpen:!1})))};c.useEffect(()=>{const be=KI(r);if(!be||e.isOpen&&e.actionKey===be&&e.entityUrn)return;const Ae=XI(be);n(Ge=>({...Ge,...Ae,isOpen:!0,actionKey:be,entityUrn:(Ae==null?void 0:Ae.entityUrn)||Ge.entityUrn,campaignId:(Ae==null?void 0:Ae.campaignId)??Ge.campaignId,campaignName:(Ae==null?void 0:Ae.campaignName)||Ge.campaignName,isCampaignRemoved:(Ae==null?void 0:Ae.isCampaignRemoved)??Ge.isCampaignRemoved,isLeadRemoved:(Ae==null?void 0:Ae.isLeadRemoved)??Ge.isLeadRemoved,replyMessage:(Ae==null?void 0:Ae.replyMessage)||Ge.replyMessage}))},[e.isOpen,e.actionKey,e.entityUrn,r,n]),c.useEffect(()=>{!e.isOpen||!e.actionKey||(QI(e),a(be=>{const Ae=yd(be,e.actionKey);return Ae.toString()===be.toString()?be:Ae},{replace:!0}))},[e.isOpen,e.actionKey,e.entityUrn,e.campaignId,e.campaignName,e.isCampaignRemoved,e.isLeadRemoved,e.replyMessage,a]),c.useEffect(()=>{e.isOpen||(f(!1),E(null))},[e.isOpen,e.actionKey]);const I=e.isOpen&&!!e.actionKey&&b,{emailThread:T,isLoading:j,isError:L,error:_}=J7(e.actionKey,{enabled:I}),N=J2({linkedInPic:(oe=(ie=o==null?void 0:o.person)==null?void 0:ie.linkedInData)==null?void 0:oe.pic,picture:(ke=o==null?void 0:o.person)==null?void 0:ke.picture}),A=((Oe=o==null?void 0:o.person)==null?void 0:Oe.firstName)||"",R=((Be=o==null?void 0:o.person)==null?void 0:Be.lastName)||"",O=`${A} ${R}`.trim()||((De=o==null?void 0:o.person)==null?void 0:De.name)||"",B=O||((Ie=o==null?void 0:o.person)==null?void 0:Ie.workEmail)||((_e=o==null?void 0:o.person)==null?void 0:_e.personalEmail)||((Ke=o==null?void 0:o.person)==null?void 0:Ke.email)||(T==null?void 0:T.leadEmail)||"Lead",D=((A==null?void 0:A[0])||(R==null?void 0:R[0])||(B==null?void 0:B[0])||"").toUpperCase(),M=((tt=o==null?void 0:o.person)==null?void 0:tt.currentTitle)||"",F=!O&&!!(T!=null&&T.leadEmail)&&T.leadEmail.toLowerCase()!==B.toLowerCase(),W=(T==null?void 0:T.subject)||"",ne=(T==null?void 0:T.canReply)??!1,$=T==null?void 0:T.disabledReason,z=!!((rt=T==null?void 0:T.directReply)!=null&&rt.body)||!!C,K=m||z,re=c.useMemo(()=>{var Ae,Ge,gt,ye,Re,me;if(!T&&!e.replyMessage)return[];const be=(Ge=(Ae=T==null?void 0:T.incomingReply)==null?void 0:Ae.attachments)==null?void 0:Ge.map(Me=>Me.name).filter(Boolean);return e_({incomingBody:((gt=T==null?void 0:T.incomingReply)==null?void 0:gt.body)||e.replyMessage,incomingCreatedAt:(ye=T==null?void 0:T.incomingReply)==null?void 0:ye.createdAt,attachmentNames:be,directReplyBody:(C==null?void 0:C.body)||((Re=T==null?void 0:T.directReply)==null?void 0:Re.body),directReplyCreatedAt:(C==null?void 0:C.createdAt)||((me=T==null?void 0:T.directReply)==null?void 0:me.createdAt)})},[T,e.replyMessage,C]),ae=d||h,pe=e.isOpen&&!ae&&!b;return t.jsxs(t.Fragment,{children:[t.jsxs(Hs,{isOpen:e.isOpen,onClose:w,closeOnBackdropClick:!i,children:[t.jsxs(g,{p:"16px",display:"flex",alignItems:"center",width:"860px",maxWidth:"100vw",boxSizing:"border-box",borderBottom:"1px solid #EBEBEB",children:[t.jsx(S,{fontWeight:"500",fontSize:"20px",lineHeight:"26px",color:"greyBlue.100",children:"Direct reply"}),t.jsx(g,{ml:"auto",children:t.jsx(oA,{onClick:w,"data-testid":"email-direct-reply-close"})})]}),t.jsx(g,{display:"flex",flexDirection:"column",width:"860px",maxWidth:"100vw",height:"calc(100% - 57px)",boxSizing:"border-box",bgcolor:"greyNeutral.10",pb:"10px",children:pe?t.jsx(ZI,{}):t.jsxs(t.Fragment,{children:[t.jsxs(g,{display:"flex",alignItems:"center",p:"20px",pb:"16px",boxSizing:"border-box","data-testid":"email-direct-reply-lead-header",children:[t.jsx(ht,{firstLatter:D,src:N||"",width:"40px",height:"40px"}),t.jsxs(g,{ml:"10px",display:"flex",flexWrap:"wrap",gap:"2px",maxWidth:"calc(100% - 60px)",minWidth:0,children:[t.jsx(je,{component:"div",crop:!0,semibold:!0,fontSize:"16px",lineHeight:"24px",title:`See profile on ${s}`,to:`${location.pathname}?person=${e.entityUrn}&tab=personal_details`,"data-testid":"email-direct-reply-lead-name",children:B}),M&&t.jsx(S,{color:"greyBlue.60",width:"100%",crop:!0,"data-testid":"email-direct-reply-job-title",children:M}),F&&t.jsx(S,{color:"greyBlue.60",width:"100%",crop:!0,"data-testid":"email-direct-reply-lead-email",children:T.leadEmail})]})]}),t.jsx(g,{px:"16px",pb:"16px",flex:1,minHeight:0,boxSizing:"border-box",children:t.jsxs(g,{display:"flex",flexDirection:"column",height:"100%",bgcolor:"#fff",borderRadius:"12px",p:"12px 16px",boxSizing:"border-box","data-testid":"email-direct-reply-content-card",children:[t.jsxs(g,{flex:1,minHeight:0,overflow:"auto",boxSizing:"border-box",children:[e.campaignId>0&&t.jsx(K3,{campaignId:e.campaignId,campaignName:e.campaignName,isCampaignRemoved:e.isCampaignRemoved,isLeadRemoved:e.isLeadRemoved}),(ae||I&&j)&&t.jsx(g,{display:"flex",justifyContent:"center",py:"40px","data-testid":"email-direct-reply-loading",children:t.jsx(Pe,{})}),L&&t.jsx(g,{py:"24px","data-testid":"email-direct-reply-error",children:t.jsx(S,{color:"error.main",textAlign:"center",children:(_==null?void 0:_.message)||"Failed to load email thread"})}),!j&&!L&&b&&!e.actionKey&&t.jsx(g,{py:"24px","data-testid":"email-direct-reply-missing-key",children:t.jsx(S,{color:"error.main",textAlign:"center",children:"Missing reply action key. Please refresh the replies list and try again."})}),!j&&!L&&b&&!!e.actionKey&&t.jsx(g,{mt:"8px",children:re.map(be=>t.jsx(iA,{message:be,avatarSrc:N,avatarLetter:D},be.id))})]}),!j&&!L&&b&&!!e.actionKey&&t.jsx(g,{borderTop:"1px solid #EBEBEB",pt:"16px",mt:"12px",boxSizing:"border-box",flexShrink:0,maxHeight:"55%",overflow:"auto",children:t.jsx(aA,{actionKey:e.actionKey,subject:W,canReply:ne&&!K,disabledReason:$,isLocked:K,onSent:({message:be})=>{f(!0),E({body:be,createdAt:new Date().toISOString()})}})})]})})]})})]}),t.jsx(t6,{})]})},cA=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M8 22V19C8 17.1144 8 16.1716 8.58579 15.5858C9.17157 15 10.1144 15 12 15C13.8856 15 14.8284 15 15.4142 15.5858C16 16.1716 16 17.1144 16 19V22",stroke:"currentColor",strokeWidth:1.5,strokeLinejoin:"round"}),c.createElement("path",{d:"M10 7H14",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M3 11.8584C3 7.28199 3 4.99376 4.38674 3.54394C4.43797 3.49038 4.49038 3.43797 4.54394 3.38674C5.99376 2 8.28199 2 
8912.8584 2C13.943 2 14.4655 2.00376 14.9628 2.18936C15.4417 2.3681 15.8429 2.70239 16.6452 3.37099L18.8411 5.20092C19.9027 6.08561 20.4335 6.52795 20.7168 7.13266C21 7.73737 21 8.42833 21 9.81025V13C21 16.7497 21 18.6246 20.0451 19.9389C19.7367 20.3634 19.3634 20.7367 18.9389 21.0451C17.6246 22 15.7497 22 12 22C8.25027 22 6.3754 22 5.06107 21.0451C4.6366 20.7367 4.26331 20.3634 3.95491 19.9389C3 18.6246 3 16.7497 3 13V11.8584Z",stroke:"currentColor",strokeWidth:1.5})),dA=({lead:e,isEdit:n,setIsEdit:s,getLeadKeys:r,handleSubmit:a,campaign:i,setDrawerState:o,setEmailDrawerState:l})=>{const u=P(),{checkFeature:d}=We(),[p]=Bn(Cn.emailReply),[h,m]=d(X.directReply),[f,C]=d(X.returnToCampaign),E=i==null?void 0:i.id,{entityUrn:b,status:w,person:I,customData:T,conversationUrn:j,isReturnToCampaign:L,threadId:_,twitterConversationUrn:N,actionDescription:A,key:R,message:V}=e,{linkedInData:O,headline:B,currentTitle:D,currentEmployer:M}=I||{},F=tt=>tt.includes(r==null?void 0:r.type),{resetLeadColumn:W}=Ax({entityUrn:b,campaignId:E,getLeadKeys:r}),{returnCampaignReplies:ne}=Cl({campaignId:E}),{updateLeadColumn:$}=Nx({entityUrn:b,campaignId:E,getLeadKeys:r}),{skipCampaignLead:z}=yl(E,r),K=F(["replies","allReplies","emailReplies","inmailReplies"]),re=K||F(["userInteraction"]),ae=F(["replies","allReplies","inmailReplies","messaged","eventMessages","groupMessageSent","inmailed","userInteraction","chainedMessagesSent"]),pe=F(["approved"]),ie=w==="approved",oe=!!T,ke=c.useMemo(()=>_&&F(["inmailReplies"])?`https://www.linkedin.com/sales/inbox/${_}`:F(["eventMessages","eventMessages"])&&j?`https://www.linkedin.com/messaging/thread/${j}`:O!=null&&O.handle||j?j?`https://www.linkedin.com/messaging/thread/${j}`:`https://www.linkedin.com/messaging/compose/?recipient=${O==null?void 0:O.handle}`:"",[e]),Oe=c.useMemo(()=>{if(K)switch(!0){case sn.EMAIL_REPLY_DETECTED===A:return"Direct reply";case sn.INMAIL_REPLY_DETECTED===A:return"Direct reply is not available for Inmail reply";case sn.TWITTER_REPLY_DETECTED===A:return"Direct reply is not available for Inmail reply";default:return"Direct reply"}},[r==null?void 0:r.type,A]),Be=sn.EMAIL_REPLY_DETECTED===A,De=sn.LINKEDIN_REPLY_DETECTED===A,Ie=Be?!1:!h||!De,_e=Be||h?Oe:m,Ke=[{isShow:n&&pe,icon:t.jsx(cA,{width:"20px",height:"20px"}),title:"Save",onClick:a(({company:tt,firstName:rt,lastName:be,title:Ae})=>{const Ge={company:tt||M||"",firstName:(!be&&!rt?O==null?void 0:O.firstName:rt)||"",lastName:(!rt&&!be?O==null?void 0:O.lastName:be)||"",title:Ae||D||B||""};$(Ge),s(!1)})},{isShow:!n&&oe&&pe,icon:t.jsx(d3,{width:"20px",height:"20px"}),title:"Restore Lead Information",onClick:()=>W()},{isShow:!n&&pe,icon:t.jsx(ls,{width:"20px",height:"20px"}),title:"Edit Lead",onClick:()=>s(!0)},{isShow:!n&&pe,icon:t.jsx(Ds,{width:"20px",height:"20px"}),title:"Remove Lead",onClick:()=>u(Ne({headerText:"Remove Lead",descriptionText:"Are you sure you want to remove this lead?",onConfirm:()=>z([b])}))},{isShow:!n&&ke&&ae,icon:t.jsx(mr,{width:"20px",height:"20px"}),title:"View Conversation on Linkedin",onClick:()=>window.open(ke,"_blank","noopener,noreferrer")},{isShow:!n&&N&&ae,icon:t.jsx(mr,{width:"20px",height:"20px"}),title:"View Conversation on X (Twitter)",onClick:()=>window.open(N,"_blank","noopener,noreferrer")},{icon:t.jsx(X3,{width:"20px",height:"20px"}),title:_e,isShow:!n&&K&&(!Be||p),disabled:Ie,onClick:()=>{if(Be){l({isOpen:!0,entityUrn:b,campaignId:E,campaignName:(i==null?void 0:i.name)||"",isCampaignRemoved:!!(i!=null&&i.isRemoved),isLeadRemoved:!1,replyMessage:V||"",actionKey:R||""});return}o({isOpen:!0,entityUrn:b,conversationId:j})}},{isShow:!n&&re,icon:t.jsx(u1,{width:"20px",height:"20px"}),title:f?o0({isApproved:ie,isReturnToCampaign:L,isCampaignRemoved:i==null?void 0:i.isRemoved}):C,disabled:!ie||L||!f||(i==null?void 0:i.isRemoved),onClick:()=>ne([b])}];return t.jsx(ze,{preventClick:!0,justifyContent:"flex-end",children:t.jsx(g,{display:"flex",gap:"16px",px:"8px",children:Ke==null?void 0:Ke.map(({icon:tt,onClick:rt,title:be,disabled:Ae,isShow:Ge})=>Ge&&t.jsx(we,{title:be,children:t.jsx(Jt,{className:Ee({disabled:Ae}),onClick:gt=>!Ae&&rt(gt),children:tt})},be))})})},Js=y(g,{target:"e1ebtnlx1"})("white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:",({checked:e,theme:n})=>e?"inherit":n.palette.text.primary,";"),ra=y(Ce,{target:"e1ebtnlx0"})({name:"9wnglw",styles:"height:40px;margin:0;color:#000"}),uA=["emailed","emailsBounced","emailReplies"],pA=({lead:e,getLeadKeys:n,selectProps:s,setDrawerState:r,setEmailDrawerState:a,campaign:i,config:o,onOpenLeadDrawer:l})=>{var ye,Re,me,Me,Ze,dt;const u=P(),{palette:d}=Ve(),{isSequenceTreeEnabled:p}=Il(i),h=p&&Oa(i),m=p,[f,C]=c.useState(!1),{message:E,entityUrn:b,customData:w,csvColumns:I,tags:T,status:j,isExcluded:L,nextTouchIndex:_,person:N,actionDescription:A}=e,R=ks(_),{firstName:V,lastName:O,name:B,linkedInData:D,picture:M,currentTitle:F,currentEmployer:W,location:ne}=N||{},{hideActions:$,showLocation:z,showMessages:K,hideTagsAndSteps:re,disableTableRowClick:ae}=o,[pe,ie]=((Re=(ye=B||"")==null?void 0:ye.trim())==null?void 0:Re.split(/\s(.+)/))||[],oe={firstName:V||pe,lastName:O||ie,company:W,title:F??"",tags:T,...w},ke=c.useMemo(()=>Vo(T,"tag"),[T]),Oe=c.useMemo(()=>ke.map(({id:at})=>at),[ke]),Be=()=>{u(Ne({headerText:"Change tags",type:Y.ADD_LEADS_TAGS,params:{entityUrn:b,tagIds:Oe,campaignId:i.id,campaignKeys:n}}))},{register:De,handleSubmit:Ie,reset:_e}=lt({defaultValues:oe}),Ke=oe!=null&&oe.firstName||oe!=null&&oe.lastName?`${oe==null?void 0:oe.firstName} ${oe==null?void 0:oe.lastName}
89`:(I==null?void 0:I.email)||(I==null?void 0:I.name),tt=["replies","allReplies","inmailReplies","userInteraction","emailReplies"],rt=(tt==null?void 0:tt.includes(n==null?void 0:n.type))&&(e==null?void 0:e.isReturnToCampaign),be=(me=s==null?void 0:s.selectLeads)==null?void 0:me.includes(b),Ae=rl(i==null?void 0:i.touchSequence)||1,Ge=(Me=Object==null?void 0:Object.entries((e==null?void 0:e.csvColumns)||{}))==null?void 0:Me.reduce((at,Vt)=>at==null?void 0:at.replaceAll(`{{${Vt[0]}}}`,Vt[1]),E||"");c.useEffect(()=>{_e(oe)},[w]);const gt=()=>{ae||d1({campaignId:i.id,entityUrn:b,isSequenceTreeEnabled:m,onOpenLeadDrawer:l,dispatch:u})};return t.jsxs(dn,{cursor:ae?"default":"pointer",hoverBgColor:({light:at})=>at.main,checkedColor:"#fff",checkedBgColor:d.primary.main,checked:be,onClick:gt,children:[s&&t.jsx(ze,{onClick:at=>at.stopPropagation(),children:t.jsx($e,{checked:be,onChange:()=>s.toggleLead(b)})}),t.jsx(ze,{preventClick:f,paddingBox:"14px 16px",children:f?t.jsxs(g,{display:"flex",justifyContent:"space-between",gap:"10px",paddingRight:"5%",children:[t.jsx(ra,{name:"firstName",placeholder:"First Name",register:De}),t.jsx(ra,{name:"lastName",placeholder:"Last Name",register:De})]}):t.jsxs(g,{display:"flex",alignItems:"center",width:"100%",minWidth:0,children:[t.jsx(ht,{margin:"0 20px 0 0",cursor:"pointer",src:M,fallbackSrc:D==null?void 0:D.pic,firstLatter:(Ke||"")[0]}),t.jsxs(g,{display:"flex",flexDirection:"column",flex:"1",minWidth:0,mr:"8px",children:[t.jsx(Js,{checked:be,color:`${d.blue.primary} !important`,children:Ke}),rt&&t.jsx(S,{color:"violet.dark",fontSize:"12px",children:"(Returned to campaign)"})]}),j!==_t.APPROVED&&t.jsx(g,{flexShrink:0,children:t.jsx(Mn,{tooltip:{title:"Ignored lead",placement:"right"}})})||L&&t.jsx(g,{flexShrink:0,children:t.jsx(Mn,{tooltip:{title:t.jsxs(t.Fragment,{children:[t.jsx("b",{children:"Excluded lead:"})," This lead was excluded from the campaign. Update their status in the CRM to make changes."]}),placement:"right"}})})]})}),t.jsx(ze,{preventClick:f,paddingBox:"14px 16px",children:f?t.jsx(ra,{name:"title",placeholder:"Position",register:De}):t.jsx(we,{title:(((Ze=oe==null?void 0:oe.title)==null?void 0:Ze.length)||0)>30?oe.title:"",children:t.jsx(Js,{checked:be,children:oe==null?void 0:oe.title})})}),t.jsx(ze,{preventClick:f,paddingBox:"14px 16px",children:f?t.jsx(ra,{name:"company",placeholder:"Company",register:De}):t.jsx(Js,{checked:be,children:oe==null?void 0:oe.company})}),z&&t.jsx(ze,{preventClick:f,paddingBox:"14px 16px",children:t.jsx(Js,{checked:be,children:ne})}),K&&t.jsx(ze,{preventClick:f,paddingBox:"14px 16px",children:t.jsx(Js,{checked:be,children:uA.includes(n==null?void 0:n.type)?t.jsx(cn,{parseText:(dt=Ge??"")==null?void 0:dt.replace(/<img[^>]*>/g,"")}):t0(A,Ge)})}),!re&&t.jsxs(t.Fragment,{children:[t.jsx(ze,{maxWidth:"180px",onClick:at=>{at.stopPropagation(),Be()},contentStyle:{minWidth:" 100%"},children:t.jsx(dT,{children:t.jsx(Vb,{withTooltip:!0,ids:Oe})})}),t.jsx(ze,{sx:{minWidth:"260px",width:"260px"},children:h?t.jsx(Y3,{stepNumber:R,touchSequence:i.touchSequence}):Ko({stepNumber:R,totalSteps:Ae})})]}),$||t.jsx(dA,{lead:e,isEdit:f,setIsEdit:C,getLeadKeys:n,campaign:i,handleSubmit:Ie,setDrawerState:r,setEmailDrawerState:a})]},e==null?void 0:e.createdAt)},NV=c.memo(({campaign:e,getLeadKeys:n,selectProps:s,leads:r,isLoading:a,sortingProps:i,hideTagsAndSteps:o=!1,disableTableRowClick:l=!1,emptyTablePlaceholder:u="",paginationProps:d})=>{const{companyName:p}=Fe(),[h]=Bn(Cn.emailReply),{isLinkedinCampaign:m,isMultichannelCampaign:f}=Da(e),[C,E]=c.useState({conversationId:"",entityUrn:""}),[b,w]=c.useState(YI),{entityUrn:I,activeStepId:T,openLeadDrawer:j,closeLeadDrawer:L}=c1(r.map(D=>({entityUrn:D.entityUrn,nextTouchIndex:D.nextTouchIndex}))),{data:_}=_x(e.id,{refetchOnMount:!0}),{couldNotVerifyLeads:N,pendingLeads:A}=_??{},R=D=>D==null?void 0:D.includes(n==null?void 0:n.type),V=R(["replies","allReplies","inmailReplies","messaged","eventMessages","groupMessageSent","inmailed","noEmailFound","inmailSkipped","emailed","emailReplies","emailsBounced","chainedMessagesSent"]),O=!V,B=R(["viewed","alreadyConnected","inmailSkipped","emailed","emailOpened"]);return t.jsxs(t.Fragment,{children:[!!(N||A)&&(m||f)&&t.jsx(g,{mb:"12px",display:"flex",justifyContent:"flex-end",children:t.jsxs(g,{display:"flex",flexDirection:"column",alignItems:"flex-end",gap:"12px",children:[!!A&&t.jsxs(S,{children:[A," ",A>1?"leads":"lead"," waiting for verification."]}),!!N&&t.jsxs(S,{children:["Couldn't verify ",N," ",N>1?"leads":"lead","."]})]})}),t.jsxs(vr,{processing:a,disabled:a,paginationProps:d,children:[t.jsx(_r,{children:t.jsxs(dn,{children:[s&&t.jsx(Qe,{width:"58px",children:t.jsx($e,{checkIcon:s.selectLeads.length>0&&s.isSelectedAll?"check-mark":"dash",checked:s.selectLeads.length>0,onChange:()=>s.toggleAllLeads()})}),t.jsx(Qe,{name:"name",sorting:i,width:"25%",children:"Lead"}),t.jsx(Qe,{name:"title",sorting:i,width:"25%",children:"Job Title"}),t.jsx(Qe,{name:"company",sorting:i,width:"25%",children:"Company"}),V&&t.jsx(Qe,{children:"Messages"}),O&&t.jsx(Qe,{width:"20%",children:"Location"}
89),!o&&t.jsxs(t.Fragment,{children:[t.jsx(Qe,{name:"tags",width:"180px",children:"Tags"}),t.jsx(Qe,{width:"260px",sx:{minWidth:"260px"},name:"touchIndex",sorting:i,children:"Steps"})]}),B||t.jsx(Qe,{width:"150px"})]})}),t.jsx(Ir,{placeholder:!(r!=null&&r.length)&&!a&&(u||sl(e==null?void 0:e.campaignType,p)),children:r==null?void 0:r.map((D,M)=>t.jsx(pA,{lead:D,campaign:e,getLeadKeys:n,selectProps:s,config:{hideActions:B,showLocation:O,showMessages:V,hideTagsAndSteps:o,disableTableRowClick:l},setDrawerState:E,setEmailDrawerState:w,onOpenLeadDrawer:j},D.entityUrn+D.createdAt||M))})]}),t.jsx(h_,{...C,setDrawerState:E}),h&&t.jsx(lA,{drawerState:b,setDrawerState:w}),t.jsx(l1,{campaign:e,enabled:!0,entityUrn:I,activeStepId:T,onClose:L})]})},Ho),aa=y(g,{target:"ezg4py30"})("white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:",({checked:e,theme:n})=>e?"inherit":n.palette.text.primary,";"),hA=["twitterMessageSent","replies","allReplies"],mA=({lead:e,campaign:n,selectProps:s,getLeadKeys:r,config:a,onOpenLeadDrawer:i})=>{var Ie;const{palette:o}=Ve(),l=P(),{isSequenceTreeEnabled:u}=Il(n),{plan:d}=fe(_e=>{var Ke;return(Ke=_e==null?void 0:_e.team)==null?void 0:Ke.data})??{},{status:p,isReturnToCampaign:h,createdAt:m,message:f,isExcluded:C,nextTouchIndex:E,entityUrn:b,csvColumns:w,person:I}=e,{linkedInData:T,picture:j,workEmail:L,name:_,twitterHandle:N}=I||{},{isAllFilter:A,repliesFilter:R,showActions:V,showDate:O,showMessages:B}=a,{name:D="",twitter:M}=w??{},{skipCampaignLead:F,isSkipLoading:W}=yl(n==null?void 0:n.id,r),{returnCampaignReplies:ne,isReturnLoading:$}=Cl({campaignId:n==null?void 0:n.id}),z=p==="approved",K=s.selectLeads.includes(b),re=R&&(e==null?void 0:e.isReturnToCampaign),pe=z?h?"Returned to campaign":"Return to campaign":"The Lead is not in the campaign",ie=rl(n==null?void 0:n.touchSequence)||1,{avatarContent:oe,name:ke}=Fh({workEmail:L,twitterHandle:N,linkedInData:T,name:D||_,campaignCategory:n.category,picture:j}),Oe=Object.entries((e==null?void 0:e.csvColumns)??{}).reduce((_e,Ke)=>_e==null?void 0:_e.replaceAll(`{{${Ke[0]}}}`,Ke[1]),f||""),Be=[{isShow:A,icon:t.jsx(Ds,{width:"20px",height:"20px"}),title:"Remove Lead",isLoading:W,onClick:()=>F([b])},{isShow:R,icon:t.jsx(u1,{width:"20px",height:"20px"}),title:d===x.PERSONAL?xe.premium:pe,disabled:!z||h||d===x.PERSONAL,isLoading:$,onClick:()=>ne([b])}],De=()=>{d1({campaignId:n.id,entityUrn:b,isSequenceTreeEnabled:u,onOpenLeadDrawer:i,dispatch:l})};return t.jsxs(dn,{checkedBgColor:o.primary.main,checked:K,sx:{cursor:"pointer"},onClick:()=>De(),children:[t.jsx(ze,{onClick:_e=>_e.stopPropagation(),children:t.jsx($e,{checked:K,onChange:()=>s.toggleLead(b)})}),t.jsx(ze,{paddingBox:"14px 16px",children:t.jsxs(g,{display:"flex",alignItems:"center",width:"100%",minWidth:0,children:[t.jsx(g,{margin:"0 17px 0 0",flexShrink:0,children:oe}),t.jsxs(g,{display:"flex",flexDirection:"column",flex:"1",minWidth:0,mr:"8px",children:[t.jsx(aa,{checked:K,color:`${o.blue.primary} !important`,children:ke}),re&&t.jsx(S,{color:"violet.dark",fontSize:"12px",children:"(Returned to campaign)"})]}),C&&t.jsx(g,{flexShrink:0,children:t.jsx(Mn,{tooltip:{title:t.jsxs(t.Fragment,{children:[t.jsx("b",{children:"Excluded lead:"})," This lead was excluded from the campaign. Update their status in the CRM to make changes."]}),placement:"right"}})})]})}),t.jsx(ze,{children:t.jsx(aa,{checked:K,children:M||N})}),O&&t.jsx(ze,{children:t.jsx(aa,{children:Ms(se.utc(m).local(),"MMMM Do YYYY h:mm a")})}),B&&t.jsx(ze,{children:t.jsx(aa,{children:hA.includes(r==null?void 0:r.type)?t.jsx(cn,{parseText:(Ie=Oe??"")==null?void 0:Ie.replace(/<img[^>]*>/g,"")}):Oe})}),t.jsx(ze,{children:Ko({stepNumber:E,totalSteps:ie})}),V&&t.jsx(ze,{preventClick:!0,justifyContent:"flex-end",children:t.jsx(g,{display:"flex",gap:"16px",px:"8px",children:Be==null?void 0:Be.map(({icon:_e,onClick:Ke,title:tt,isLoading:rt,disabled:be,isShow:Ae})=>Ae&&t.jsx(we,{title:tt,children:t.jsx(Jt,{className:Ee({disabled:be,processing:rt}),onClick:()=>!be&&!rt&&Ke(),children:_e})},tt))})})]},b)},kV=c.memo(({campaign:e,selectProps:n,getLeadKeys:s,leads:r,isLoading:a,sortingProps:i,paginationProps:o})=>{const{companyName:l}=Fe(),{entityUrn:u,activeStepId:d,openLeadDrawer:p,closeLeadDrawer:h}=c1(r.map(I=>({entityUrn:I.entityUrn,nextTouchIndex:I.nextTouchIndex}))),m=I=>I==null?void 0:I.includes(s==null?void 0:s.type),f=m(["twitterMessageSent","replies","allReplies","inmailReplies","messaged","eventMessages","groupMessageSent","inmailed","emailed","emailReplies","emailsBounced"]),C=m(["replies","allReplies","inmailReplies","userInteraction","emailReplies"]),E=m(["followedTwitter"]),b=m(["approved"]),w=b||C;return t.jsxs(t.Fragment,{children:[t.jsxs(vr,{processing:a,disabled:a,paginationProps:o,children:[t.jsx(_r,{children:t.jsxs(dn,{children:[t.jsx(Qe,{width:"58px",children:t.jsx($e,{checkIcon:n.selectLeads.length>0&&n.isSelectedAll?"check-mark":"dash",checked:n.selectLeads.length>0,onChange:()=>n.toggleAllLeads()})}),t.jsx(Qe,{name:"name",sorting:i,width:"25%",children:"Lead"}),t.jsx(Qe,{children:"X (Twitter) Handle"}),f&&t.jsx(Qe,{children:"Message"}),E&&t.jsx(Qe,{children:"Date"}),t.jsx(Qe,{name:"touchIndex",sorting:i,width:"260px",sx:{minWidth:"260px"},children:"Steps"}),w&&t.jsx(Qe,{width:"150px"})]})}),t.jsx(Ir,{placeholder:!(r!=null&&r.length)&&!a&&sl(e==null?void 0:e.campaignType,l),children:r==null?void 0:r.map((I,T)=>t.jsx(mA,{lead:I,campaign:e,getLeadKeys:s,selectProps:n,config:{isAllFilter:b,repliesFilter:C,showActions:w,showDate:E,showMessages:f},onOpenLeadDrawer:p},T))})]}),t.jsx(l1,{campaign:e,enabled:!0,entityUrn:u,activeStepId:d,onClose:h})]})},Ho),gA=y(g,{target:"eq527xb1"})("display:flex;align-items:center;gap:3px;padding:3px;box-sizing:border-box;height:20px;border:1px solid ",({theme:e})=>e.palette.blue.light,";border-radius:4px;color:",({theme:e})=>e.palette.blue.primary,";"),xA=y(g,{target:"eq527xb0"})("background-color:",({theme:e})=>e.palette.blue.light,";height:20px;width:1px;"),fA=({count:e,onClear:n,...s})=>e?t.jsxs(gA,{...s,children:[t.jsx(S,{color:"inherit",px:"4px",children:e}),t.jsx(xA,{}),t.jsx(Jt,{onClick:r=>{r.stopPropagation(),n()},children:t.jsx(Ar,{})})]}):null,RV=y(g,{target:"e1k3gz3x2"})({name:"1nleo2i",styles:"background:#ffffff;min-height:100%;padding:24px;border-radius:12px;box-sizing:border-box;overflow-y:auto"}),jd=y(e=>t.jsx(g,{...e,children:t.jsx(S,{medium:!0,fontSize:"16px",lineHeight:"24px",children:e.children})}),{target:"e1k3gz3x1"})("border-radius:12px;border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";box-shadow:0 2px 6px 0 #0000000a;padding:12px 24px;background-color:#ffffff;"),Zi=y(g,{target:"e1k3gz3x0"})("width:1px;height:20px;background-color:",({theme:e})=>e.palette.greyBlue[50],";"),s6=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M19 12L5 12",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M12 5L12 19",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4.25C12.4142 4.25 12.75 4.58579 12.75 5V11.25H19C19.4142 11.25 19.75 11.5858 19.75 12C19.75 12.4142 19.4142 12.75 19 12.75H12.75V19C12.75 19.4142 12.4142 19.75 12 19.75C11.5858 19.75 11.25 19.4142 11.25 19V12.75H5C4.58579 12.75 4.25 12.4142 4.25 12C4.25 11.5858 4.58579 11.25 5 11.25H11.25V5C11.25 4.58579 11.5858 4.25 12 4.25Z",fill:"currentColor"})),CA=c.createContext(null),MV=()=>{const e=c.useContext(CA);if(!e)throw new Error("useSequenceTreeActions must be used inside SequenceTreeActionsContext");return e},yA=({route:e,query:n},s)=>{Y2({query:n,route:e}).then(r=>s(r))},EA=vs(yA,500),PV=({watch:e,control:n,setValue:s,fieldName:r,title:a,label:i,route:o})=>{const[l,u]=c.useState(!1),d=e(r);return t.jsxs(Ot,{expanded:l,onChange:()=>u(p=>!p),radius:"4px",children:[t.jsxs(Dt,{size:"s",withExpandIcon:!0,summaryRadius:"3px",expandedTo
89pRadius:"4px",children:[a,t.jsx(fA,{ml:"auto",count:d==null?void 0:d.length,onClear:()=>s(r,[])})]}),t.jsx(un,{size:"s",children:t.jsx(rn,{name:r,control:n,render:({field:p})=>t.jsx(Xe,{isAsync:!0,isMulti:!0,searchable:!0,label:i,value:d,onChange:p.onChange,additionalProps:{cacheOptions:!0,noOptionsMessage:()=>"Type to search",loadOptions:(h,m)=>EA({route:o,query:h},m)}})})})]})},SA=fr`
90  from {
91    transform: translateY(100%);
92    opacity: 0;
93  }
94  to {
95    transform: translateY(0);
96    opacity: 1;
97  }
98`,bA=fr`
99  from {
100    transform: translateY(0);
101    opacity: 1;
102  }
103  to {
104    transform: translateY(-100%);
105    opacity: 0;
106  }
107`,LA=y("span",{target:"e1vc71vm4"})("color:",({theme:e})=>e.palette.greyBlue[100],";gap:4px;display:inline-flex;align-items:center;white-space:nowrap;font-size:14px;line-height:20px;"),wA=y("span",{target:"e1vc71vm3"})({name:"1mdb0c2",styles:"display:inline-block;position:relative;overflow:hidden;height:20px;min-width:1ch"}),TA=y("span",{target:"e1vc71vm2"})({name:"1bvei5i",styles:"display:inline-block;font-weight:600"}),jA=y("span",{target:"e1vc71vm1"})("display:inline-block;font-weight:600;animation:",SA," 0.35s ease-out forwards;"),vA=y("span",{target:"e1vc71vm0"})("position:absolute;left:0;top:0;display:inline-block;font-weight:600;animation:",bA," 0.35s ease-out forwards;"),OV=({total:e})=>{const n=Dn(e),s=e===1?"lead":"leads",r=c.useRef(n),[a,i]=c.useState(null);return c.useEffect(()=>{if(n===r.current)return;i({from:r.current,to:n});const o=window.setTimeout(()=>{r.current=n,i(null)},350);return()=>window.clearTimeout(o)},[n]),t.jsxs(LA,{"data-testid":"selected-leads-total",children:[t.jsx(wA,{"aria-label":`${e} ${s}`,children:a?t.jsxs(t.Fragment,{children:[t.jsx(vA,{children:a.from}),t.jsx(jA,{children:a.to})]}):t.jsx(TA,{children:n})}),t.jsx("span",{children:s})]})},r6=({sequences:e,showStartEndBlock:n=!1,showCompletedLeads:s=!1})=>{const{campaignId:r}=_a(),a=Number(r),{data:i}=R7(a,{refetchOnMount:!0,enabled:s});return t.jsxs(g,{display:"flex",flexDirection:"column",gap:"4px",alignItems:"center",children:[n&&t.jsxs(t.Fragment,{children:[t.jsx(jd,{children:"Sequence start"}),t.jsx(Zi,{})]}),e==null?void 0:e.map((o,l)=>{var u;return t.jsxs(c.Fragment,{children:[!!l&&t.jsx(Zi,{}),t.jsx(Yj,{index:l,sequence:o,highlight:e.length!==1&&l!==e.length-1,showCompletedLeads:s,completedLeads:((u=i==null?void 0:i.sequenceProgress)==null?void 0:u[l+1])||0})]},l)}),n&&t.jsxs(t.Fragment,{children:[t.jsx(Zi,{}),t.jsx(jd,{children:"Sequence end"})]})]})},a6=({isPaused:e=!1})=>{const{companyName:n}=Fe(),{leaveTeam:s,isLoading:r}=ef();return t.jsxs(g,{display:"flex",flexDirection:"column",alignItems:"center",mt:"50px",children:[t.jsx(S,{color:"#A0A0A0",mb:"40px",children:e?`Your subscription is paused. Please, contact your team owner in order to continue using ${n}.`:`Your subscription period is over. Please contact your team owner in order to continue using ${n}.`}),t.jsx(k,{processing:r,onClick:()=>s(),children:"Leave team"})]})},i6=()=>{const{logout:e}=Lr(),{isAuth:n}=fe(({user:s})=>s);return t.jsxs(g,{display:"flex",flexDirection:"column",alignItems:"center",children:[t.jsx(S,{color:"gray.main",mt:"40px",textAlign:"center",children:"Your app is deactivated. Please contact your team owner in order to continue using app."}),n&&t.jsx(g,{mt:"20px",children:t.jsx(k,{onClick:e,children:"Back to login page"})})]})},vd="[email protected]",IA="My account access is restricted and I need assistance.",_A=()=>{const{showNewMessage:e}=Ia(),{companyName:n}=Fe(),{whitelabel:s}=Je();return t.jsx(g,{width:"100%",display:"flex",justifyContent:"center",textAlign:"center",mt:"120px",px:"24px",children:t.jsxs(g,{maxWidth:"480px",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px",children:[t.jsx("img",{src:"https://uploads-ssl.webflow.com/5c80baac065a7b8335eba635/5c80bf770119be49d3bcb3ed_icon-128.png",width:"64",height:"64",alt:""}),t.jsx(S,{fontSize:"24px",semibold:!0,children:"Your account access is temporarily restricted"}),t.jsxs(S,{color:"text.secondary",lineHeight:"24px",children:["Something is wrong with your ",n," account. Please contact our support team for further assistance."]}),!s.isWhiteLabelUser&&t.jsx(k,{size:{width:"220px"},onClick:()=>e(IA),children:"Contact Support"}),t.jsxs(S,{color:"text.secondary",lineHeight:"24px",children:["Or email us at"," ",t.jsx(je,{external:!0,openNewTab:!0,to:`mailto:${vd}`,children:vd})]})]})})},AA=e=>
107c.createElement("svg",{width:240,height:240,viewBox:"0 0 240 240",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("rect",{width:240,height:1,fill:"#D3D8E0"}),c.createElement("rect",{y:29.875,width:240,height:1,fill:"#D3D8E0"}),c.createElement("rect",{y:59.75,width:240,height:1,fill:"#D3D8E0"}),c.createElement("rect",{y:89.625,width:240,height:1,fill:"#D3D8E0"}),c.createElement("rect",{y:119.5,width:240,height:1,fill:"#D3D8E0"}),c.createElement("rect",{y:149.375,width:240,height:1,fill:"#D3D8E0"}),c.createElement("rect",{y:179.25,width:240,height:1,fill:"#D3D8E0"}),c.createElement("rect",{y:209.125,width:240,height:1,fill:"#D3D8E0"}),c.createElement("rect",{y:239,width:240,height:1,fill:"#D3D8E0"}),c.createElement("rect",{width:1,height:240,fill:"#D3D8E0"}),c.createElement("rect",{x:34.1428,width:1,height:240,fill:"#D3D8E0"}),c.createElement("rect",{x:68.2856,width:1,height:240,fill:"#D3D8E0"}),c.createElement("rect",{x:102.428,width:1,height:240,fill:"#D3D8E0"}),c.createElement("rect",{x:136.572,width:1,height:240,fill:"#D3D8E0"}),c.createElement("rect",{x:170.714,width:1,height:240,fill:"#D3D8E0"}),c.createElement("rect",{x:204.857,width:1,height:240,fill:"#D3D8E0"}),c.createElement("rect",{x:239,width:1,height:240,fill:"#D3D8E0"}),c.createElement("path",{d:"M0 0H240V240H0V0Z",fill:"url(#paint0_radial_12682_347804)"}),c.createElement("rect",{x:106.511,y:62.3209,width:87.5,height:87.5,rx:11.75,transform:"rotate(20.1833 106.511 62.3209)",fill:"white",fillOpacity:.84,stroke:"#B5B5B5",strokeWidth:.5,strokeDasharray:"2 2"}),c.createElement("g",{filter:"url(#filter0_di_12682_347804)"},c.createElement("rect",{x:76,y:83,width:88,height:88,rx:12,fill:"white",shapeRendering:"crispEdges"}),c.createElement("rect",{x:76.25,y:83.25,width:87.5,height:87.5,rx:11.75,stroke:"#E5E5E5",strokeWidth:.5,shapeRendering:"crispEdges"}),c.createElement("path",{d:"M115 146.37C116.598 146.781 118.274 147 120 147C131.046 147 140 138.046 140 127C140 115.954 131.046 107 120 107C108.954 107 100 115.954 100 127C100 127.675 100.033 128.342 100.099 129",stroke:"#000E33",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M106.042 131L101.72 135.165C99.3995 137.441 99.4395 141.105 101.76 143.341C104.121 145.578 107.923 145.54 110.244 143.303C112.605 141.027 112.565 137.364 110.244 135.127L106.042 131Z",stroke:"#000E33",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M112.018 119.885H112M128 119.885H127.982",stroke:"#000E33",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M126 135C124.329 133.744 122.251 133 120 133C118.179 133 116.471 133.487 115 134.338",stroke:"#000E33",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),c.createElement("defs",null,c.createElement("filter",{id:"filter0_di_12682_347804",x:71,y:79,width:98,height:98,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},c.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),c.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),c.createElement("feOffset",{dy:1}),c.createElement("feGaussianBlur",{stdDeviation:2.5}),c.createElement("feComposite",{in2:"hardAlpha",operator:"out"}),c.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"}),c.createElement("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_12682_347804"}),c.createElement("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_12682_347804",result:"shape"}),c.createElement("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),c.createElement("feOffset",{dy:-2}),c.createElement("feGaussianBlur",{stdDeviation:1}),c.createElement("feComposite",{in2:"hardAlpha",operator:"arithmetic",k2:-1,k3:1}),c.createElement("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0"}),c.createElement("feBlend",{mode:"normal",in2:"shape",result:"effect2_innerShadow_12682_347804"})),c.createElement("radialGradient",{id:"paint0_radial_12682_347804",cx:0,cy:0,r:1,gradientUnits:"userSpaceOnUse",gradientTransform:"translate(120 120) rotate(90) scale(120)"},c.createElement("stop",{stopColor:"white",stopOpacity:0}),c.createElement("stop",{offset:1,stopColor:"#F2F5FF"})))),NA=y(g,{target:"e60k5yx3"})("flex:1;min-height:0;width:100%;display:flex;justify-content:center;align-items:center;padding:20px 24px;box-sizing:border-box;overflow:hidden;background-color:",({theme:e})=>e.palette.bg.blue,";"),kA=y(g,{target:"e60k5yx2"})({name:"bb6c9l",styles:"display:flex;flex-direction:column;align-items:center;gap:24px;width:100%;max-width:1352px;text-align:center"}),RA=y(AA,{target:"e60k5yx1"})({name:"11li1ib",styles:"width:240px;height:240px;flex-shrink:0"}),MA=y(g,{target:"e60k5yx0"})({name:"1l64njb",styles:"display:flex;flex-direction:column;align-items:center;gap:12px;width:100%"}),PA=()=>t.jsx(NA,{children:t.jsxs(kA,{children:[t.jsx(RA,{}),t.jsxs(MA,{children:[t.jsx(S,{fontSize:"24px",lineHeight:"30px",semibold:!0,color:"greyNeutral.100",textAlign:"center",children:"Your account has been temporarily blocked."}),t.jsx(S,{fontSize:"14px",lineHeight:"20px",color:"greyNeutral.60",textAlign:"center",children:"Please contact your team administrator or owner to restore full access."})]})]})}),ut=()=>t.jsxs(g,{position:"absolute",bgcolor:K2().light.light,width:"100vw",height:"100vh",display:"flex",justifyContent:"center",alignItems:"center",children:[t.jsx(Pe,{type:"dots",mr:"5px"})," Loading app..."]}),o6=e=>c.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M3 5L6 8L9 5",stroke:"white",strokeOpacity:.7,strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),l6=y("ul",{target:"e1qy6ihf1"})("position:absolute;top:-99999px;left:",({position:e})=>`${e}px`||0,";list-style:none;border-bottom-left-radius:8px;border-bottom-right-radius:8px;box-shadow:0 4px 13px 0 #00000014,0 0 4px 0 #0000000f;overflow:hidden;overflow-y:auto;min-width:160px;user-select:none;background-color:#ffffff;padding:4px;color:",({theme:e})=>e.palette.greyNeutral[100],";&>li{border-radius:6px;transition:color 0.2s,background-color 0.2s;color:",({theme:e})=>e.palette.primary.wlLight,";&:hover,&.active{color:",({theme:e})=>e.palette.blue.medium,";background-color:",({theme:e})=>e.palette.bg.greyBlue,";}a{display:flex;align-items:center;color:inherit;padding:10px;&.disabled{filter:grayscale(1);opacity:0.8;cursor:not-allowed;}&>span{height:100%;display:block;line-height:20px;}}}"),c6=y(g,{target:"e1qy6ihf0"})("display:flex;justify-content:center;align-items:center;height:100%;cursor:pointer;box-sizing:border-box;color:#ffffff;transition:0.2s;position:relative;&:hover,&.active{background-color:#ffffff1a;border-bottom-color:#ffffff1a;&:after{content:'';position:absolute;bottom:0;display:block;width:100%;height:2px;background-color:#ffffff80;border-radius:4px 4px 0px 0px;}}&:hover>",l6,"{top:100%;}"),d6=c.forwardRef(({children:e,...n},s)=>{const[r,a]=c.useState(0),i=c.useRef(null),o=s||i;return c.useEffect(()=>{const l=()=>{if(o.current){const u=o.current.getBoundingClientRect(),d=Math.min(0,Math.ceil(window.innerWidth-u.left-u.width+1));a(d)}};return window.removeEventListener("resize",l),window.addEventListener("resize",l),l(),()=>window.removeEventListener("resize",l)},[s]),t.jsx(l6,{position:r,...n,ref:o,children:e})}),OA=y("nav",{target:"e1cdvoyu6"})("background-color:",({theme:e})=>e.palette.whitelabel.menu,";border-radius:0;border:0;position:sticky;top:0;z-index:999;width:100%;"),DA=y(g,{target:"e1cdvoyu5"})({name:"pn1904",styles:"display:flex;align-items:center;height:48px;padding:0 7px"}),UA=y(g,{target:"e1cdvoyu4"})({name:"jr3gai",styles:"height:48px;width:66px;margin-right:16px;&>a{display:flex;justify-content:center;align-items:center;height:100%;}"}),BA=y("img",{target:"e1cdvoyu3"})({name:"fgwtgb",styles:"width:34px"}),HA=y(g,{target:"e1cdvoyu2"})({name:"1gzt40d",styles:"display:flex;align-items:center;height:48px;flex-grow:1"}),u6=y(g,{target:"e1cdvoyu1"})("display:flex;align-items:center;height:",({height:e})=>e||"20px",";user-select:none;border-radius:8px;padding:12px;"),xa=y(g,{target:"e1cdvoyu0"})({name:"viv3xk",styles:"width:1px;height:22px;background-color:#ffffff33"}),VA=y("span",{target:"eznoljy0"})("display:flex;justify-content:center;align-items:center;transition:0.2s;border-radius:4px;width:32px;height:32px;color:#ffffff;cursor:pointer;& svg{width:20px;height:20px;}&:hover{background-color:",({theme:e})=>e.palette.greyBlue[40],"80;color:",({theme:e})=>Ra(e.palette.secondary.main),";}"),FA=()=>{const e=()=>{window.location.href=V2},{whitelabel:n}=Je(),s=c.useMemo(()=>{var r;return n.isActive&&((r=n.theme)==null?void 0:r.navigationTextColor)||"#ffffff"},[n]);return t.jsx(VA,{onClick:e,children:t.jsx(yt,{icon:Ap,color:s})})},$A=e=>c.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M11.9985 13.35C12.3299 13.35 12.5985 13.0814 12.5985 12.75C12.5985 12.4186 12.3299 12.15 11.9985 12.15V13.35ZM6.74854 12.15C6.41716 12.15 6.14854 12.4186 6.14854 12.75C6.14854 13.0814 6.41716 13.35 6.74854 13.35V12.15ZM11.9985 10.35C12.3299 10.35 12.5985 10.0814 12.5985 9.75C12.5985 9.41863 12.3299 9.15 11.9985 9.15V10.35ZM9.74854 9.15C9.41716 9.15 9.14854 9.41863 9.14854 9.75C9.14854 10.0814 9.41716 10.35 9.74854 10.35V9.15ZM13.3014 1.68915L13.5002 1.12302L13.3014 1.68915ZM15.174 3.45161L15.7318 3.23056L15.174 3.45161ZM2.9767 4.91531L3.5345 5.13636L2.9767 4.91531ZM6.25377 1.83101L6.45251 2.39715V2.39715L6.25377 1.83101ZM3.9023 15.9016L4.24788 15.4111L3.9023 15.9016ZM3.26078 15.2978L3.73035 14.9243L3.26078 15.2978ZM2.025 9C2.025 9.33137 2.29363 9.6 2.625 9.6C2.95637 9.6 3.225 9.33137 3.225 9H2.025ZM5.125 6.5V7.1H5.125L5.125 6.5ZM7.58241 5.57352L8.16196 5.72881L7.58241 5.57352ZM6.69852 6.45741L6.85382 7.03696V7.03696L6.69852 6.45741ZM10.125 2.1C10.4564 2.1 10.725 1.83137 10.725 1.5C10.725 1.16863 10.4564 0.9 10.125 0.9V2.1ZM11.9985 12.75V12.15H6.74854V12.75V13.35L11.9985 13.35V12.75ZM11.9985 9.75V9.15H9.74854V9.75V10.35H11.9985V9.75ZM9 16.5V15.9H8.42045V16.5V17.1H9V16.5ZM2.625 11.0455H3.225V9.13636H2.625H2.025V11.0455H2.625ZM15.375 5.86364H14.775V10.5H15.375H15.975V5.86364H15.375ZM10.7386 1.5V2.1C12.1387 2.1 12.6847 2.10857 13.1027 2.25528L13.3014 1.68915L13.5002 1.12302C12.8404 0.891434 12.0372 0.9 10.7386 0.9V1.5ZM15.375 5.86364H15.975C15.975 5.23658 15.9753 4.73728 15.9486 4.33208C15.9215 3.92153 15.8649 3.56624 15.7318 3.23056L15.174 3.45161L14.6162 3.67266C14.6842 3.8441 14.728 4.05987 14.7512 4.41106C14.7747 4.76761 14.775 5.22076 14.775 5.86364H15.375ZM13.3014 1.68915L13.1027 2.25528C13.8137 2.50486 14.3605 3.02742 14.6162 3.67266L15.174 3.45161L15.7318 3.23056C15.3413 2.24522 14.5217 1.48161 13.5002 1.12302L13.3014 1.68915ZM2.625 9.13636H3.225C3.225 8.01726 3.2253 7.20695 3.26766 6.56474C3.30967 5.92789 3.39119 5.49798 3.5345 5.13636L2.9767 4.91531L2.41891 4.69426C2.21051 5.22012 2.11618 5.78956 2.07026 6.48576C2.0247 7.17662 2.025 8.03308 2.025 9.13636H2.625ZM10.7386 1.5V0.9C8.42813 0.9 7.11887 0.891435 6.05504 1.26488L6.25377 1.83101L6.45251 2.39715C7.27457 2.10857 8.32658 2.1 10.7386 2.1V1.5ZM2.9767 4.91531L3.5345 5.13636C4.03252 3.87967 5.09185 2.87479 6.45251 2.39715L6.25377 1.83101L6.05504 1.26488C4.38385 1.85154 3.0517 3.09747 2.41891 4.69426L2.9767 4.91531ZM8.42045 16.5V15.9C7.18461 15.9 6.30415 15.8992 5.62485 15.8284C4.95512 15.7586 4.55331 15.6263 4.24788 15.4111L3.9023 15.9016L3.55673 16.3921C4.10059 16.7753 4.7349 16.9422 5.50045 17.022C6.25643 17.1008 7.2104 17.1 8.42045 17.1V16.5ZM2.625 11.0455H2.025C2.025 12.1819 2.02403 13.0867 2.10858 13.8053C2.19479 14.538 2.37648 15.1499 2.7912 15.6713L3.26078 15.2978L3.73035 14.9243C3.50929 14.6464 3.37309 14.2832 3.30036 13.665C3.22597 13.0328 3.225 12.211 3.225 11.0455H2.625ZM3.9023 15.9016L4.24788 15.4111C4.05042 15.272 3.87635 15.1079 3.73035 14.9243L3.26078 15.2978L2.7912 15.6713C3.00952 15.9458 3.26751 16.
1071883 3.55673 16.3921L3.9023 15.9016ZM9 16.5V17.1C10.4866 17.1 11.6584 17.1011 12.5729 16.9854C13.501 16.868 14.2547 16.621 14.8526 16.0582L14.4414 15.6213L14.0302 15.1844C13.6945 15.5003 13.2301 15.6927 12.4222 15.7949C11.6007 15.8989 10.5186 15.9 9 15.9V16.5ZM15.375 10.5H14.775C14.775 11.9322 14.7736 12.9423 14.6643 13.707C14.5581 14.4505 14.3607 14.8733 14.0302 15.1844L14.4414 15.6213L14.8526 16.0582C15.4557 15.4906 15.7251 14.767 15.8523 13.8767C15.9764 13.0075 15.975 11.8962 15.975 10.5H15.375ZM2.625 9H3.225C3.225 7.95066 4.07566 7.1 5.125 7.1V6.5V5.9C3.41292 5.9 2.025 7.28792 2.025 9H2.625ZM7.58241 5.57352L7.00285 5.41823C6.94275 5.64254 6.76754 5.81775 6.54323 5.87785L6.69852 6.45741L6.85382 7.03696C7.49224 6.8659 7.9909 6.36724 8.16196 5.72881L7.58241 5.57352ZM10.125 1.5V0.9C8.41292 0.9 7.025 2.28792 7.025 4H7.625H8.225C8.225 2.95066 9.07566 2.1 10.125 2.1V1.5ZM7.625 4H7.025C7.025 4.14029 7.03112 4.28328 7.03728 4.41605C7.04364 4.55304 7.05001 4.67894 7.05262 4.80441C7.0579 5.05891 7.0455 5.25907 7.00285 5.41823L7.58241 5.57352L8.16196 5.72881C8.2494 5.40248 8.2583 5.06555 8.25236 4.77949C8.24935 4.63469 8.24198 4.48944 8.23599 4.36044C8.22981 4.22723 8.225 4.10938 8.225 4H7.625ZM5.125 6.5L5.125 7.1C5.23438 7.1 5.35223 7.10481 5.48544 7.11099C5.61444 7.11698 5.75969 7.12435 5.9045 7.12736C6.19055 7.1333 6.52748 7.1244 6.85382 7.03696L6.69852 6.45741L6.54323 5.87785C6.38407 5.9205 6.18391 5.9329 5.92941 5.92762C5.80394 5.92501 5.67804 5.91864 5.54105 5.91228C5.40828 5.90612 5.26529 5.9 5.125 5.9L5.125 6.5Z",fill:"#1B4ED2"})),GA=e=>c.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_5275_159093)"},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.3116 0.937502H14.4384C14.9004 0.937466 15.306 0.937435 15.6323 0.984439C15.988 1.03568 16.3299 1.15241 16.6037 1.4457C16.8723 1.7335 16.9743 2.08356 17.0197 2.44554C17.0625 2.78712 17.0625 3.21457 17.0625 3.71491V3.7851C17.0625 4.28544 17.0625 4.71288 17.0197 5.05447C16.9743 5.41645 16.8723 5.76651 16.6037 6.0543C16.3299 6.3476 15.988 6.46433 15.6323 6.51557C15.306 6.56257 14.9004 6.56254 14.4384 6.56251H13.3116C12.8496 6.56254 12.444 6.56257 12.1177 6.51557C11.762 6.46433 11.4201 6.3476 11.1463 6.0543C10.8777 5.76651 10.7757 5.41645 10.7303 5.05447C10.707 4.86829 10.6963 4.65659 10.6915 4.4215C10.2999 4.52459 10.057 4.66731 9.90321 4.82516C9.69148 5.04243 9.5625 5.37787 9.5625 5.96394V12.0346C9.5625 12.6474 9.7106 12.9851 9.93062 13.1983C10.0895 13.3522 10.3291 13.4841 10.6915 13.5794C10.6963 13.3439 10.7069 13.132 10.7303 12.9455C10.7757 12.5836 10.8777 12.2335 11.1463 11.9457C11.4201 11.6524 11.762 11.5357 12.1177 11.4844C12.444 11.4374 12.8496 11.4375 13.3116 11.4375H14.4384C14.9004 11.4375 15.306 11.4374 15.6323 11.4844C15.988 11.5357 16.3299 11.6524 16.6037 11.9457C16.8723 12.2335 16.9743 12.5836 17.0197 12.9455C17.0625 13.2871 17.0625 13.7146 17.0625 14.2149V14.2851C17.0625 14.7854 17.0625 15.2129 17.0197 15.5545C16.9743 15.9164 16.8723 16.2665 16.6037 16.5543C16.3299 16.8476 15.988 16.9643 15.6323 17.0156C15.306 17.0626 14.9004 17.0625 14.4384 17.0625H13.3116C12.8496 17.0625 12.444 17.0626 12.1177 17.0156C11.762 16.9643 11.4201 16.8476 11.1463 16.5543C10.8777 16.2665 10.7757 15.9164 10.7303 15.5545C10.7009 15.3196 10.6917 15.0442 10.6888 14.7324C10.0722 14.6101 9.54324 14.3894 9.1478 14.0063C8.63334 13.5078 8.4375 12.8273 8.4375 12.0346V9.56197L7.30981 9.56232C7.30513 9.84506 7.29237 10.1003 7.25766 10.3216C7.19709 10.7077 7.05964 11.0664 6.73165 11.3476C6.41617 11.618 6.03515 11.7209 5.62957 11.7676C5.2398 11.8125 4.74871 11.8125 4.15868 11.8125H4.09133C3.5013 11.8125 3.0102 11.8125 2.62044 11.7676C2.21486 11.7209 1.83384 11.618 1.51836 11.3476C1.19037 11.0664 1.05292 10.7077 0.992352 10.3216C0.937422 9.9714 0.93746 9.53623 0.937502 9.04156V8.95845C0.93746 8.46378 0.937422 8.0286 0.992352 7.67841C1.05292 7.29226 1.19037 6.93356 1.51836 6.65243C1.83384 6.38202 2.21486 6.27913 2.62044 6.23239C3.0102 6.18747 3.5013 6.18749 4.09133 6.1875H4.15868C4.74871 6.18749 5.2398 6.18747 5.62957 6.23239C6.03515 6.27913 6.41617 6.38202 6.73165 6.65243C7.05964 6.93356 7.19709 7.29226 7.25766 7.67841C7.29235 7.89961 7.30512 8.15473 7.30981 8.43733L8.4375 8.43697L8.4375 5.96394C8.4375 5.22448 8.60066 4.54986 9.0975 4.04001C9.48894 3.63833 10.
1070294 3.39982 10.6888 3.26836C10.6916 2.95625 10.7008 2.68057 10.7303 2.44554C10.7757 2.08356 10.8777 1.7335 11.1463 1.4457C11.4201 1.15241 11.762 1.03568 12.1177 0.984439C12.444 0.937435 12.8496 0.937466 13.3116 0.937502ZM12.2781 2.09795C12.0619 2.12908 12.0026 2.1771 11.9688 2.21331C11.9298 2.25502 11.878 2.33488 11.8466 2.58561C11.8135 2.84877 11.8125 3.20481 11.8125 3.75C11.8125 4.2952 11.8135 4.65124 11.8466 4.9144C11.878 5.16513 11.9298 5.24498 11.9688 5.2867C12.0026 5.32291 12.0619 5.37093 12.2781 5.40206C12.5146 5.43614 12.838 5.4375 13.35 5.4375H14.4C14.912 5.4375 15.2354 5.43614 15.4719 5.40206C15.6881 5.37093 15.7475 5.32291 15.7812 5.2867C15.8202 5.24498 15.872 5.16513 15.9034 4.9144C15.9365 4.65124 15.9375 4.2952 15.9375 3.75C15.9375 3.20481 15.9365 2.84877 15.9034 2.58561C15.872 2.33488 15.8202 2.25502 15.7812 2.21331C15.7475 2.1771 15.6881 2.12908 15.4719 2.09795C15.2354 2.06387 14.912 2.0625 14.4 2.0625H13.35C12.838 2.0625 12.5146 2.06387 12.2781 2.09795ZM2.74923 7.34999C2.43998 7.38563 2.31944 7.4475 2.2505 7.50659C2.19406 7.55496 2.1393 7.62618 2.10376 7.85274C2.06412 8.10547 2.0625 8.45121 2.0625 9C2.0625 9.5488 2.06412 9.89453 2.10376 10.1473C2.1393 10.3738 2.19406 10.445 2.2505 10.4934C2.31944 10.5525 2.43998 10.6144 2.74923 10.65C3.0669 10.6866 3.49261 10.6875 4.125 10.6875C4.7574 10.6875 5.18311 10.6866 5.50078 10.65C5.81003 10.6144 5.93057 10.5525 5.99951 10.4934C6.05595 10.445 6.11071 10.3738 6.14625 10.1473C6.18589 9.89453 
1076.1875 9.5488 6.1875 9C6.1875 8.45121 6.18589 8.10547 6.14625 7.85274C6.11071 7.62618 6.05595 7.55496 5.99951 7.50659C5.93057 7.4475 5.81003 7.38563 5.50078 7.34999C5.18311 7.31339 4.7574 7.3125 4.125 7.3125C3.49261 7.3125 3.0669 7.31339 2.74923 7.34999ZM12.2781 12.5979C12.0619 12.6291 12.0026 12.6771 11.9688 12.7133C11.9298 12.755 11.878 12.8349 11.8466 13.0856C11.8135 13.3488 11.8125 13.7048 11.8125 14.25C11.8125 14.7952 11.8135 15.1512 11.8466 15.4144C11.878 15.6651 11.9298 15.745 11.9688 15.7867C12.0026 15.8229 12.0619 15.8709 12.2781 15.9021C12.5146 15.9361 12.838 15.9375 13.35 15.9375H14.4C14.912 15.9375 15.2354 15.9361 15.4719 15.9021C15.6881 15.8709 15.7475 15.8229 15.7812 15.7867C15.8202 15.745 15.872 15.6651 15.9034 15.4144C15.9365 15.1512 15.9375 14.7952 15.9375 14.25C15.9375 13.7048 15.9365 13.3488 15.9034 13.0856C15.872 12.8349 15.8202 12.755 15.7812 12.7133C15.7475 12.6771 15.6881 12.6291 15.4719 12.5979C15.2354 12.5639 14.912 12.5625 14.4 12.5625H13.35C12.838 12.5625 12.5146 12.5639 12.2781 12.5979Z",fill:"#1B4ED2"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_5275_159093"},c.createElement("rect",{width:18,height:18,fill:"white"})))),zA=e=>c.createElement("svg",{width:12,height:12,viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M1 4V11",stroke:"#1B4ED2",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M5 7V11M5 7C5 5.34315 6.34315 4 8 4C9.65685 4 11 5.34315 11 7V11M5 7V4",stroke:"#1B4ED2",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M1.00801 1L0.999023 1",stroke:"#1B4ED2",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),WA=e=>c.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_5275_159060)"},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.71107 0.937501H11.2891C11.9629 0.937479 12.5248 0.93746 12.9709 0.997435C13.4418 1.06074 13.8669 1.19999 14.2085 1.54159C14.5501 1.8832 14.6893 2.3083 14.7526 2.77914C14.8126 3.22523 14.8126 3.78714 14.8126 4.46101V4.94897L15.4967 5.40503C15.8069 5.61182 16.0712 5.78805 16.2779 5.95562C16.4981 6.13426 16.6847 6.3275 16.821 6.58322C16.947 6.81961 17.0048 7.06152 17.033 7.31963C17.0643 7.41189 17.0704 7.50885 17.0534 7.60132C17.0626 7.81615 17.0618 8.05964 17.0609 8.33263L17.0608 8.35731C17.0576 9.30205 17.0488 10.2671 17.0244 11.2446L17.0233 11.2885C16.9955 12.4042 16.9731 13.3043 16.8453 14.0285C16.7113 14.7885 16.4538 15.407 15.9257 15.9351C15.3965 16.4643 14.7731 16.7213 14.0065 16.8552C13.275 16.983 12.3637 17.0057 11.2322 17.034L11.1886 17.0351C9.72528 17.0716 8.27487 17.0716 6.81156 17.0351L6.76795 17.034C5.63647 17.0057 4.72516 16.983 3.99362 16.8552C3.22707 16.7213 2.60361 16.4643 2.07443 15.9351C1.54636 15.407 1.28887 14.7885 1.15482 14.0285C1.02709 13.3043 1.00464 12.4042 0.976813 11.2885L0.975719 11.2446C0.951318 10.2671 0.942529 9.30205 0.939355 8.35731L0.939272 8.33266C0.938345 8.05956 0.937519 7.816 0.946739 7.60111C0.929831 7.50878 0.935853 7.41196 0.967095 7.31983C0.995253 7.06165 1.05304 6.81968 1.17908 6.58322C1.31539 6.3275 1.50198 6.13426 1.72226 5.95562C1.92888 5.78806 2.19326 5.61182 2.50345 5.40504L3.18757 4.94895L3.18757 4.461C3.18755 3.78714 3.18753 3.22523 3.24751 2.77914C3.31081 2.3083 3.45006 1.8832 3.79167 1.54159C4.13327 1.19999 4.55837 1.06074 5.02921 0.997435C5.4753 0.93746 6.03721 0.937479 6.71107 0.937501ZM4.31257 5.25682C4.31264 5.25193 4.31264 5.24704 4.31257 5.24215V4.5C4.31257 3.77699 4.31377 3.29132 4.36247 2.92905C4.40901 2.58295 4.48942 2.43483 4.58716 2.33709C4.6849 2.23935 4.83302 2.15893 5.17912 2.1124C5.54139 2.0637 6.02706 2.0625 6.75007 2.0625H11.2501C11.9731 2.0625 12.4588 2.0637 12.821 2.1124C13.1671 2.15893 13.3152 2.23935 13.413 2.33709C13.5107 2.43483 13.5911 2.58295 13.6377 2.92905C13.6864 3.29132 13.6876 3.77699 13.6876 4.5V5.24043C13.6875 5.24647 13.6875 5.25251 13.6876 5.25854V8.53153L11.0259 10.1285C10.4522 10.4727 10.0573 10.7089 9.72908 10.8632C9.4124 11.0121 9.19995 11.0636 9.00009 11.0636C8.80022 11.0636 8.58777 11.0121 8.27109 10.8632C7.94287 10.7089 7.54794 10.4727 6.97426 10.1285L4.31257 8.53151V5.25682ZM3.18757 6.30104L3.14798 6.32743C2.81174 6.55159 2.59175 6.69893 2.43087 6.8294C2.27912 6.95247 2.21311 7.035 2.17185 7.1124C2.15537 7.14332 2.14044 7.17785 2.12734 7.22037L3.18757 7.85651V6.30104ZM2.06487 8.49485C2.06842 9.38994 2.07746 10.2987 2.10037 11.2166C2.12957 12.3865 2.15139 13.2018 2.26272 13.8331C2.3694 14.4379 2.55021 14.8
107199 2.86993 15.1396C3.18855 15.4582 3.57327 15.6397 4.18721 15.747C4.82679 15.8587 5.65427 15.8808 6.83967 15.9104C8.28424 15.9465 9.71591 15.9465 11.1605 15.9104C12.3459 15.8808 13.1734 15.8587 13.8129 15.747C14.4269 15.6397 14.8116 15.4582 15.1302 15.1396C15.4499 14.8199 15.6307 14.4379 15.7374 13.8331C15.8488 13.2018 15.8706 12.3865 15.8998 11.2166C15.9227 10.2987 15.9317 9.38996 15.9353 8.49488L11.5801 11.108C11.037 11.4338 10.5935 11.7 10.2077 11.8813C9.80459 12.0708 9.42343 12.1886 9.00009 12.1886C8.57674 12.1886 8.19558 12.0708 7.79245 11.8813C7.40667 11.7 6.96316 11.4338 6.42008 11.108L2.06487 8.49485ZM15.8728 7.2204C15.8597 7.17786 15.8448 7.14333 15.8283 7.1124C15.787 7.035 15.721 6.95247 15.5693 6.8294C15.4084 6.69893 15.1884 6.55159 14.8521 6.32743L14.8126 6.30105V7.85653L15.8728 7.2204ZM6.93759 4.5C6.93759 4.18934 7.18943 3.9375 7.50009 3.9375H10.5001C10.8107 3.9375 11.0626 4.18934 11.0626 4.5C11.0626 4.81066 10.8107 5.0625 10.5001 5.0625H7.50009C7.18943 5.0625 6.93759 4.81066 6.93759 4.5ZM6.93759 7.5C6.93759 7.18934 7.18943 6.9375 7.50009 6.9375H10.5001C10.8107 6.9375 11.0626 7.18934 11.0626 7.5C11.0626 7.81066 10.8107 8.0625 10.5001 8.0625H7.50009C7.18943 8.0625 6.93759 7.81066 6.93759 7.5Z",fill:"#1B4ED2"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_5275_159060"},c.createElement("rect",{width:18,height:18,fill:"white"})))),qA=e=>c.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M7.5 5.25037L4.5 5.25037C2.84315 5.25037 1.5 6.59351 1.5 8.25037V8.25037C1.5 9.90722 2.84315 11.2504 4.5 11.2504L7.5 11.2504M7.5 5.25037L7.5 11.2504M7.5 5.25037L10.0844 3.44115C11.6092 2.37374 12.3716 1.84004 13.0045 1.84147C13.6539 1.84293 14.2622 2.15962 14.6358 2.69079C15 3.2085 15 4.13912 15 6.00036V6.00036M7.5 11.2504L10.0848 13.0596C11.6093 14.1267 12.3716 14.6602 13.0045 14.6588C13.654 14.6574 14.2623 14.3406 14.6359 13.8094C15 13.2917 15 12.3613 15 10.5004V10.5004M4.5 11.2504L4.5 14.6254C4.5 15.2467 5.00368 15.7504 5.625 15.7504V15.7504C6.24632 15.7504 6.75 15.2467 6.75 14.6254L6.75 11.2504M15 6.00036V6.00036C16.2426 6.00036 17.25 7.00772 17.25 8.25036V8.25036C17.25 9.493 16.2426 10.5004 15 10.5004V10.5004M15 6.00036L15 10.5004",stroke:"#1B4ED2",strokeWidth:1.2,strokeLinecap:"round",strokeLinejoin:"round"})),ZA=e=>c.createElement("svg",{width:18,height:18,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M15.949 10.4344L15.5829 10.9098H15.5829L15.949 10.4344ZM16.9908 12.6519L16.525 12.2738L16.9908 12.6519ZM15.5805 12.9C15.2491 12.9 14.9805 13.1686 14.9805 13.5C14.9805 13.8314 15.2491 14.1 15.5805 14.1V12.9ZM14.304 9.15244C13.974 9.12258 13.6823 9.36592 13.6524 9.69594C13.6226 10.026 13.8659 10.3177 14.1959 10.3476L14.304 9.15244ZM2.05098 10.4344L2.41706 10.9098L2.05098 10.4344ZM1.00916 12.6519L1.47503 12.2738H1.47503L1.00916 12.6519ZM2.41947 14.1C2.75084 14.1 3.01947 13.8314 3.01947 13.5C3.01947 13.1686 2.75084 12.9 2.41947 12.9V14.1ZM3.80406 10.3476C4.13408 10.3177 4.37742 10.026 4.34756 9.69594C4.3177 9.36592 4.02596 9.12258 3.69594 9.15244L3.80406 10.3476ZM4.125 8.85C4.45637 8.85 4.725 8.58137 4.725 8.25C4.725 7.91863 4.45637 7.65 4.125 7.65V8.85ZM4.125 5.1C4.45637 5.1 4.725 4.83137 4.725 4.5C4.725 4.16863 4.45637 3.9 4.125 3.9V5.1ZM6.06283 11.3334L5.74727 10.8231L6.06283 11.3334ZM11.9371 11.3334L12.2527 10.8231L11.9371 11.3334ZM4.511 13.9856L4.08901 14.4121L4.511 13.9856ZM13.489 13.9856L13.067 13.559H13.067L13.489 13.9856ZM15.949 10.4344L15.5829 10.9098C15.9014 11.1551 16.2622 11.3829 16.5001 11.6841C16.6086 11.8213 16.6437 11.92 16.6491 11.9846C16.653 12.0303 16.649 12.1209 16.525 12.2738L16.9908 12.6519L17.4567 13.03C17.7434 12.6767 17.8789 12.2866 17.8449 11.8835C17.8124 11.4993 17.6322 11.1812 17.4418 10.9402C17.082 10.4848 16.5111 10.11 16.3151 9.95906L15.949 10.4344ZM16.9908 12.6519L16.525 12.2738C16.1554 12.7291 15.8627 12.9 15.5805 12.9V13.5V14.1C16.4223 14.1 17.0236 13.5636 17.4567 13.03L16.9908 12.6519ZM14.25 9.75L14.1959 10.3476C14.6687 10.3903 15.1455 10.573 15.5829 10.9098L15.949 10.4344L16.3151 9.95906C15.7065 9.49043 15.0154 9.21679 14.304 9.15244L14.25 9.75ZM15.375 6.375H14.775C14.775 7.07916 14.2042 7.65 13.5 7.65V8.25V8.85C14.8669 8.85 15.975 7.74191 15.975 6.375H15.375ZM13.5 4.5V5.1C14.2042 5.1 14.775 5.67084 14.775 6.375H15.375H15.975C15.975 5.0081 14.8669 3.9 13.5 3.9V4.5ZM2.05098 10.4344L1.68491 9.95906C1.48891 10.11 0.917984 10.4848 0.55823 10.9402C0.367805 11.1812 0.187592 11.4993 0.155118 11.8835C0.121049 12.2866 0.25654 12.6767 0.543292 
10713.03L1.00916 12.6519L1.47503 12.2738C1.35098 12.1209 1.34699 12.0303 1.35085 11.9846C1.35631 11.92 1.39144 11.8213 1.49986 11.6841C1.73779 11.3829 2.09858 11.1551 2.41706 10.9098L2.05098 10.4344ZM1.00916 12.6519L0.543292 13.03C0.976419 13.5636 1.57766 14.1 2.41947 14.1V13.5V12.9C2.13733 12.9 1.84458 12.7291 1.47503 12.2738L1.00916 12.6519ZM3.75 9.75L3.69594 9.15244C2.98459 9.21679 2.29348 9.49043 1.68491 9.95906L2.05098 10.4344L2.41706 10.9098C2.85448 10.573 3.33128 10.3903 3.80406 10.3476L3.75 9.75ZM2.25 6.375H1.65C1.65 7.74191 2.7581 8.85 4.125 8.85V8.25V7.65C3.42084 7.65 2.85 7.07916 2.85 6.375H2.25ZM4.125 4.5V3.9C2.7581 3.9 1.65 5.0081 1.65 6.375H2.25H2.85C2.85 5.67084 3.42084 5.1 4.125 5.1V4.5ZM6.06283 11.3334L6.37838 11.8437C7.98204 10.8521 10.0179 10.8521 11.6216 11.8437L11.9371 11.3334L12.2527 10.8231C10.2623 9.59231 7.73769 9.59231 5.74727 10.8231L6.06283 11.3334ZM6.61169 15V15.6H11.3883V15V14.4H6.61169V15ZM4.511 13.9856L4.93299 13.559C4.71795 13.3463 4.72199 13.2291 4.72613 13.1898C4.73381 13.1169 4.78718 12.9881 4.96833 12.8039C5.34628 12.4198 5.93032 12.1208 6.37838 11.8437L6.06283 11.3334L5.74727 10.8231C5.429 11.0199 4.62523 11.4416 4.1129 11.9624C3.84892 12.2307 3.58154 12.6004 3.53272 13.0642C3.48036 13.5616 3.69216 14.0195 4.08901 14.4121L4.511 13.9856ZM11.9371 11.3334L11.6216 11.8437C12.0696 12.1208 12.6537 12.4198 13.0316 12.8039C13.2128 12.9881 13.2661 13.1169 13.2738 13.1898C13.278 13.2291 13.282 13.3463 13.067 13.559L13.489 13.9856L13.9109 14.4121C14.3078 14.0195 14.5196 13.5616 14.4672 13.0642C14.4184 12.6004 14.151 12.2307 13.887 11.9624C13.3747 11.4416 12.5709 11.0199 12.2527 10.8231L11.9371 11.3334ZM13.489 13.9856L13.067 13.559C12.5208 14.0994 11.9987 14.4 11.3883 14.4V15V15.6C12.452 15.6 13.2615 15.0546 13.9109 14.4121L13.489 13.9856ZM4.511 13.9856L4.08901 14.4121C4.73846 15.0546 5.54793 15.6 6.61169 15.6V15V14.4C6.0013 14.4 5.47916 14.0994 4.93299 13.559L4.511 13.9856ZM11.625 5.625H11.025C11.025 6.74338 10.1184 7.65 8.99998 7.65V8.25V8.85C10.7811 8.85 12.225 7.40612 12.225 5.625H11.625ZM8.99998 8.25V7.65C7.8816 7.65 6.97497 6.74338 6.97497 5.625H6.37497H5.77497C5.77497 7.40612 7.21886 8.85 8.99998 8.85V8.25ZM6.37497 5.625H6.97497C6.97497 4.50662 7.8816 3.6 8.99998 3.6V3V2.4C7.21886 2.4 5.77497 3.84388 5.77497 5.625H6.37497ZM8.99998 3V3.6C10.1184 3.6 11.025 4.50662 11.025 5.625H11.625H12.225C12.225 3.84388 10.7811 2.4 8.99998 2.4V3Z",fill:"#1B4ED2"})),YA=y(Ul,{target:"e13ofwwp6"})("width:16px;height:16px;path{stroke:",({theme:e})=>e.palette.blue.primary,";}"),KA=y(i3,{target:"e13ofwwp5"})("width:16px;height:16px;path{fill:",({theme:e})=>e.palette.blue.primary,";}"),QA=y("ul",{target:"e13ofwwp4"})("position:absolute;top:43px;left:0;width:245px;border:1px solid rgba(0, 0, 0, 0.15);padding:4px;border-radius:8px;box-shadow:0 6px 12px rgba(0, 0, 0, 0.18);overflow:hidden;background-color:",({theme:e})=>e.palette.bg.white,";display:flex;flex-direction:column;gap:2px;"),Id=y(S,{target:"e13ofwwp3"})("color:",({theme:e})=>e.palette.greyBlue[70],";padding:8px;font-size:10px;font-style:normal;font-weight:600;line-height:14px;letter-spacing:1px;text-transform:uppercase;"),_d=y("div",{target:"e13ofwwp2"})("display:flex;width:22px;height:22px;justify-content:center;align-items:center;gap:10px;border-radius:6px;border:1px solid ",({theme:e})=>e.palette.blue.light,";background:",({theme:e})=>e.palette.blue.extralight,";"),Ad=y(S,{target:"e13ofwwp1"})({name:"1a8777q",styles:"font-size:14px;font-weight:400;line-height:20px;width:calc(100% - 24px - 6px)"}),Nd=y(At,{target:"e13ofwwp0"})("display:flex;align-items:center;gap:6px;padding:6px 8px;transition:color 0.2s,background-color 0.2s;color:",({theme:e})=>e.palette.greyBlue[100],";background-color:",({selected:e,theme:n})=>e?n.palette.bg.greyBlue:"#ffffff",";border-radius:6px;&:hover{background-color:",({theme:e})=>e.palette.bg.greyBlue,";}"),XA=()=>{const e=mt(),{whitelabel:n}=Je(),[s,r]=c.useState(!1),a=c.useRef(null),i=(u=!1)=>{r(u)};Fa(a,i);const o=[{name:"LinkedIn Campaign",path:`/campaign/new/${ue.LINKEDIN}`,state:{},icon:t.jsx(zA,{})},{name:"InMail Campaign",path:`/campaign/new/${ue.INMAIL}`,state:{},icon:t.jsx(WA,{})},{name:"LinkedIn Group Campaign",path:`/campaign/new/${ue.GROUP}/group`,state:{},icon:t.jsx(ZA,{})},{name:"LinkedIn Event Campaign",path:`/campaign/new/${ue.EVENT}/event`,state:{},icon:t.jsx(qA,{})},{name:"LinkedIn Company Campaign",path:`/campaign/new/${ue.COMPANY}`,state:{},icon:t.jsx($A,{})}],l=[{name:"Email Campaign",path:`/campaign/new/${ue.EMAIL}`,state:{},icon:t.jsx(YA,{})},{name:"X (Twitter) Campaign",path:`/campaign/new/${ue.TWITTER}`,state:{},hidden:n.isWhiteLabelUser,icon:t.jsx(KA,{})},{name:"Multi-channel Campaign",path:`/campaign/new/${ue.MULTICHANNEL}`,state:{},icon:t.jsx(GA,{})}];return t.jsxs(g,{ref:a,children:[t.jsxs(k,{scale:"s",onClick:()=>i(!s),variant:"primary",size:{width:"175px"},children:[t.jsx(s6,{}),t.jsx(S,{fontWeight:"600",lineHeight:"20px",color:"inherit",children:"Create Campaign"})]}),t.jsx(Oo,{in:s,timeout:{enter:200,exit:200},children:t.jsxs(QA,{onClick:()=>i(!1),children:[t.jsx(Id,{children:"LinkedIn"}),o.map(({name:u,path:d,state:p,icon:h})=>t.jsxs(Nd,{selected:e.pathname===d,to:d,state:p,children:[t.jsx(_d,{children:h}),t.jsx(Ad,{children:u})]},u)),t.jsx(Id,{children:"Other"}),l.map(({name:u,path:d,state:p,hidden:h,icon:m})=>!h&&t.jsxs(Nd,{selected:e.pathname===d,to:d,state:p,children:[t.jsx(_d,{children:m}),t.jsx(Ad,{children:u})]},u))]})})]})},JA=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.4812 3.1081C14.0118 3.91017 15.2184 5.21615 15.8972 6.80525C17.7175 7.02458 19.3945 7.90313 20.6111 9.27485C21.8277 10.6466 22.4996 12.4164 22.5 14.2499V20.4374C22.5 20.7855 22.3617 21.1194 22.1156 21.3655C21.8694 21.6117 21.5356 21.7499 21.1875 21.7499H15C13.5409 21.7483 12.1139 21.3219 10.8931 20.5228C9.67231 19.7237 8.71058 18.5865 8.12531 17.2499H2.8125C2.4644 17.2499 2.13056 17.1117 1.88442 16.8655C1.63828 16.6194 
1071.5 16.2855 1.5 15.9374V9.74994C1.5003 8.02195 2.09727 6.34707 3.19001 5.00845C4.28274 3.66984 5.80418 2.74961 7.49712 2.40335C9.19006 2.05709 10.9506 2.30604 12.4812 3.1081ZM15 20.2499H21V14.2499C21 12.8982 20.5436 11.5861 19.7048 10.5262C18.8659 9.46631 17.6937 8.72072 16.3781 8.41025C16.5636 9.4262 16.5371 10.4695 16.3003 11.4748C16.0634 12.48 15.6213 13.4254 15.0018 14.2517C14.3822 15.0779 13.5985 15.7672 12.6999 16.2762C11.8013 16.7852 10.8072 17.103 9.78 17.2096C10.3045 18.1319 11.0637 18.8989 11.9805 19.4329C12.8973 19.9668 13.939 20.2487 15 20.2499ZM4.24998 11.0603C4.43499 11.184 4.6525 11.2499 4.875 11.2499C5.17337 11.2499 5.45952 11.1314 5.6705 10.9204C5.88147 10.7095 6 10.4233 6 10.1249C6 9.90244 5.93402 9.68493 5.8104 9.49992C5.68679 9.31492 5.51109 9.17072 5.30552 9.08558C5.09995 9.00043 4.87375 8.97815 4.65552 9.02156C4.43729 9.06496 4.23684 9.17211 4.07951 9.32944C3.92217 9.48678 3.81503 9.68723 3.77162 9.90546C3.72821 10.1237 3.75049 10.3499 3.83564 10.5555C3.92078 10.761 4.06498 10.9367 4.24998 11.0603ZM8.37498 11.0603C8.55999 11.184 8.7775 11.2499 9 11.2499C9.29837 11.2499 9.58452 11.1314 9.7955 10.9204C10.0065 10.7095 10.125 10.4233 10.125 10.1249C10.125 9.90244 10.059 9.68493 9.9354 9.49992C9.81179 9.31492 9.63609 9.17072 9.43052 9.08558C9.22495 9.00043 8.99875 8.97815 8.78052 9.02156C8.5623 9.06496 8.36184 9.17211 8.20451 9.32944C8.04717 9.48678 7.94003 9.68723 7.89662 9.90546C7.85321 10.1237 7.87549 10.3499 7.96064 10.5555C8.04578 10.761 8.18998 10.9367 8.37498 11.0603ZM12.5 11.0603C12.685 11.184 12.9025 11.2499 13.125 11.2499C13.4234 11.2499 13.7095 11.1314 13.9205 10.9204C14.1315 10.7095 14.25 10.4233 14.25 10.1249C14.25 9.90244 14.184 9.68493 14.0604 9.49992C13.9368 9.31492 13.7611 9.17072 13.5555 9.08558C13.35 9.00043 13.1238 8.97815 12.9055 9.02156C12.6873 9.06496 12.4868 9.17211 12.3295 9.32944C12.1722 9.48678 12.065 9.68723 12.0216 9.90546C11.9782 10.1237 12.0005 10.3499 12.0856 10.5555C12.1708 10.761 12.315 10.9367 12.5 11.0603Z",fill:"white"})),eN=y(Jt,{target:"ehne2c50"})("width:40px;height:40px;background-color:",({theme:e})=>e.palette.blue.primary,";border-radius:50%;margin-left:24px;margin-right:9px;"),tN=()=>{const{show:e,hide:n,isOpen:s}=Ia(),r=()=>{if(s){n();return}e()};return t.jsx(eN,{onClick:r,children:t.jsx(JA,{})})},nN=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{id:"logout-02"},c.createElement("path",{id:"Vector",d:"M11 3L10.3374 3.23384C7.75867 4.144 6.46928 4.59908 5.73464 5.63742C5 6.67576 5 8.0431 5 10.7778V13.2222C5 15.9569 5 17.3242 5.73464 18.3626C6.46928 19.4009 7.75867 19.856 10.3374 20.7662L11 21M21 12H11M21 12C21 11.2998 19.0057 9.99153 18.5 9.5M21 12C21 12.7002 19.0057 14.0085 18.5 14.5",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}))),sN=y("span",{target:"e1niedzc1"})("display:flex;justify-content:center;align-items:center;transition:0.2s;border-radius:4px;width:32px;height:32px;color:#ffffff;cursor:pointer;&:hover{background-color:",({theme:e})=>e.palette.greyBlue[40],"80;color:",({theme:e})=>Ra(e.palette.secondary.main),";}"),rN=y(nN,{target:"e1niedzc0"})("& path{stroke:",({colorIcon:e})=>e,";}"),aN=()=>{const{logout:e}=Lr(),{whitelabel:n}=Je(),s=c.useMemo(()=>{var r;return n.isActive&&((r=n.theme)==null?void 0:r.navigationTextColor)||"#ffffff"},[n]);return t.jsx(sN,{onClick:e,children:t.jsx(rN,{colorIcon:s})})},iN=y(o6,{target:"e1dmktvf2"})("& path{stroke:",({colorIcon:e})=>e||"#ffffff",";}"),kd=y(yt,{target:"e1dmktvf1"})("animation:fa-spin 1s linear infinite;margin-left:4px;font-size:12px;color:",({colorIcon:e})=>e||"#ffffff",";"),oN=y("div",{target:"e1dmktvf0"})("display:flex;align-items:center;cursor:",({isLoading:e})=>e?"wait":"pointer",";max-width:200px;"),lN=()=>{var F;const{profile:e,isImpersonate:n}=fe(W=>W.user),{realImpersonateUser:s}=pn(),{impersonateUser:r,isLoading:a}=a7(),{stopImpersonateUser:i,isLoading:o}=Z0(),[l,u]=c.useState(null),{checkFeature:d}=We(),[p,h]=d(X.impersonate),{data:m=[]}=mu(),f=c.useMemo(()=>n?s:e,[n]),C=(F=m||[])==null?void 0:F.find(({userId:W})=>W===(f==null?void 0:f.id)),E=C==null?void 0:C.role,[b,w]=c.useState(!1),I=c.useRef(null),T=c.useRef(null),{whitelabel:j}=Je(),L=c.useMemo(()=>{var W;return j.isActive&&((W=j.theme)==null?void 0:W.navigationTextColor)||"#ffffff"},[j]),_=(m||[]).filter(W=>W.userId!==e.id&&W.userId!==(s==null?void 0:s.id)),[N,A]=c.useMemo(()=>Pp(_,W=>!(!p||E===Kt.ADMIN&&(W==null?void 0:W.role)===Kt.OWNER||!(f!=null&&f.isAlfredAdmin)&&(W!=null&&W.isAlfredAdmin))),[_,s]),R=W=>(W.stopPropagation(),w(!b)),V=()=>{w(!1)},O=(W,ne)=>{u(ne),r({teamIdToImpersonate:W,userIdToImpersonate:ne},{onError:()=>{u(null)}})},B=()=>{u("stop"),i({withAdminRedirect:!1},{onError:()=>{u(null)}})},D=c.useMemo(()=>!_.length&&!n,[_]),M=c.useMemo(()=>n?e:f,[n,e]);return Fa(I,V,T),E===Kt.MEMBER&&n?(i(),null):E===Kt.MEMBER||!n&&!_.length?null:t.jsxs(t.Fragment,{children:[t.jsxs(c6,{children:[t.jsxs(u6,{height:"100%",width:"auto",minWidth:"52px",display:"flex",justifyContent:"center",onClick:R,ref:T,children:[t.jsx(oN,{isLoading:a||o,children:t.jsx(S,{medium:!0,lineHeight:"20px",color:L,mr:"4px",crop:!0,maxWidth:"200px",children:t.jsx(we,{title:M==null?void 0:M.name,children:t.jsx("span",{children:t.jsx(ht,{src:M==null?void 0:M.profilePictureUrl,firstLatter:((M==null?void 0:M.name)??"")[0],width:"34px",height:"34px",borderStyle:"1px solid #f2f5ff",isCover:!0})})})})}),t.jsx(iN,{style:{marginLeft:"2px"},colorIcon:L})]}
107),D?null:t.jsxs(d6,{style:{height:"auto",maxHeight:"400px",width:"250px",boxSizing:"border-box",top:b?"100%":"-9999px"},ref:I,children:[n&&e.id!==(s==null?void 0:s.id)&&t.jsx("li",{onClick:B,children:t.jsxs("a",{style:{cursor:l==="stop"?"wait":"pointer"},children:[t.jsx(la,{src:s==null?void 0:s.profilePictureUrl,sx:{width:26,height:26,mr:"8px"}}),t.jsx(S,{medium:!0,component:"span",lineHeight:"20px",color:"inherit",inline:!0,crop:!0,children:s==null?void 0:s.name})," ",t.jsx(S,{medium:!0,component:"span",lineHeight:"20px",color:"inherit",inline:!0,children:"(me)"}),l==="stop"&&t.jsx(kd,{icon:ro.faSpinner,colorIcon:"inherit",style:{marginLeft:"4px"}})]})}),N==null?void 0:N.map(({name:W,userId:ne,profilePictureUrl:$,teamId:z})=>{const K=l===ne;return t.jsx("li",{onClick:()=>O(z,ne),children:t.jsxs("a",{style:{cursor:K?"wait":"pointer"},children:[t.jsx(la,{src:$,sx:{width:26,height:26,mr:"8px"}}),t.jsx(S,{medium:!0,component:"span",lineHeight:"20px",color:"inherit",inline:!0,crop:!0,children:W}),K&&t.jsx(kd,{icon:ro.faSpinner,colorIcon:"inherit",style:{marginLeft:"4px"}})]})},W+ne)}),!!(A!=null&&A.length)&&t.jsx(Ue,{}),A==null?void 0:A.map(({name:W,userId:ne,profilePictureUrl:$})=>t.jsx(we,{title:p?"This account cannot be impersonated":h,children:t.jsx("li",{children:t.jsxs("a",{className:Ee("disabled"),children:[t.jsx(la,{src:$,sx:{width:26,height:26,mr:"8px"}}),t.jsx(S,{medium:!0,component:"span",lineHeight:"20px",color:"inherit",inline:!0,crop:!0,children:W})]})})},W+ne))]})]}),t.jsx(xa,{mr:"12px"})]})},cN=y(o6,{target:"ew1uj9q0"})("& path{stroke:",({colorIcon:e})=>e||"#ffffff",";}"),h1=({setNavBarHeight:e,isEmpty:n,isHidden:s,showTopNotifications:r=!n})=>{const a=mt(),i=Os(),{realImpersonateUser:o}=pn(),l=fe($=>$.user.profile),{logoIconWhite:u,companyName:d}=Fe(),{navigationConfig:p,defineActive:h,isNotificationShown:m}=La(),f=(o==null?void 0:o.isAlfredAdmin)||(l==null?void 0:l.isAlfredAdmin),C=m,{data:E,refetch:b}=hu(),w=C&&(E==null?void 0:E.unreadCount)||0,{whitelabel:I}=Je(),[T,j]=c.useState(h()),[L,_]=c.useState(!1),{notification:N,user:{isImpersonate:A,isAppDeactivated:R,isAppPaused:V}}=fe($=>$),O=R||V||n,B=c.useRef(null),{shouldShowPromo:D}=Va(),M=a.pathname.includes("/walkthrough"),F=a.pathname.includes("/welcome"),W=M||F,ne=()=>{var $;e==null||e((($=B.current)==null?void 0:$.offsetHeight)??48)};return c.useEffect(()=>{ne()},[N]),c.useEffect(()=>{const $=new ResizeObserver(()=>ne());return B.current&&$.observe(B.current),()=>$.disconnect()},[]),c.useEffect(()=>{j(h()),C&&b()},[a.pathname,b,C]),t.jsxs(OA,{ref:B,children:[!!(o!=null&&o.isAdminImpersonate)&&t.jsx(PS,{}),D&&!n&&!W&&I.isAlfredDomain&&t.jsx(Dy,{onAccept:()=>i("/billing/subscription")}),r&&!F&&t.jsx(qS,{}),!s&&t.jsx(t.Fragment,{children:t.jsxs(DA,{justifyContent:O?"space-between":"",children:[t.jsx(UA,{children:t.jsx(At,{to:"/dashboard",children:t.jsx(BA,{src:u,alt:d})})}),!O&&t.jsx(HA,{children:p.map(({icon:$,id:z,title:K,linkTo:re,tabs:ae,noArrow:pe=!1,show:ie=!0,moveToEnd:oe=!1,isHideList:ke=!1,badge:Oe,external:Be=!1},De)=>{var rt;if(!ie)return null;const Ie=$||g,_e=I.isActive&&((rt=I.theme)==null?void 0:rt.navigationTextColor)||"#ffffff",Ke=()=>{z==="nav_notifications"&&(C&&b(),_(!0))},tt=()=>{const be=t.jsxs(g,{position:"relative",children:[t.jsx(Ie,{color:_e,style:re?{verticalAlign:"sub"}:void 0}),z==="nav_notifications"&&m&&t.jsx(YS,{count:w}),Oe]});return re?t.jsxs(je,{to:re,height:"100%",display:"flex",alignItems:"center",external:Be,openNewTab:Be,children:[be,t.jsx(S,{medium:!0,lineHeight:"20px",color:_e,hoverColor:_e,ml:$?"10px":0,mr:"2px",children:K})]}):t.jsxs(g,{display:"flex",alignItems:"center",height:"100%",onClick:Ke,sx:{cursor:z==="nav_notifications"?"pointer":"default"},children:[be,K&&t.jsx(S,{medium:!0,lineHeight:"20px",color:_e,ml:$?"10px":0,mr:"2px",children:K})]})};return t.jsxs(c6,{id:z,className:Ee({active:T===De}),...oe?{ml:"auto"}:{},children:[t.jsxs(u6,{height:"100%",...z==="nav_help"?{marginRight:"20px"}:{},children:[tt(),pe||t.jsx(cN,{colorIcon:_e})]}),!ke&&(ae!=null&&ae.length)?t.jsx(d6,{children:ae==null?void 0:ae.map(({title:be,id:Ae,to:Ge,external:gt=!1,show:ye=!0,activeRoutes:Re=[]})=>{if(!ye)return null;if(gt)return t.jsx("li",{children:t.jsx("a",{href:Ge,target:"_blank",rel:"noopener noreferrer",id:Ae,children:t.jsx(S,{medium:!0,component:"span",lineHeight:"20px",color:"inherit",children:be})})},be+Ge);const me=new RegExp(Ge).test(a.pathname)||Re.some(Me=>new RegExp(Me).test(a.pathname));return t.jsx("li",{className:Ee({active:me}),children:t.jsx(At,{to:Ge,id:Ae,children:t.jsx(S,{medium:!0,component:"span",lineHeight:"20px",color:"inherit",children:be})})},be+Ge)})}):null]},K)})}),t.jsxs(g,{display:"flex",alignItems:"center",height:"100%",children:[O?null:t.jsx(xa,{}),!O&&t.jsxs(t.Fragment,{children:[t.jsx(g,{display:"flex",alignItems:"center",height:"100%",mx:"12px",position:"relative",children:t.jsx(XA,{})}),t.jsx(xa,{mr:"12px"})]}),(!O&&!V||A)&&t.jsx(lN,{}),f&&!O?t.jsxs(t.Fragment,{children:[t.jsx(FA,{}),t.jsx(xa,{mx:"12px"})]}):null,t.jsx(aN,{}),!I.isWhiteLabelUser&&t.jsx(tN,{})]})]})}),t.jsx(wb,{isOpen:L,onClose:()=>{_(!1),C&&b()}})]})},p6=y(g,{target:"e1g92vps3"})("height:100dvh;background-color:",({theme:e})=>e.palette.bg.blue,";"),h6=y(p6,{target:"e1g92vps2"})({name:"jc8dhw",styles:"display:flex;flex-direction:column;overflow:hidden"}),dN=y("div",{target:"e1g92vps1"})("height:calc(100dvh - ",e=>e.offsetTop,"px);overflow-y:auto;overflow-x:hidden;"),uN=y("div",{target:"e1g92vps0"})({name:"f99114",styles:"display:flex;justify-content:center;align-items:center;height:calc(100dvh - 48px);width:100%"}),pN=()=>t.jsxs(h6,{children:[t.jsx(h1,{isEmpty:!0}),t.jsx(PA,{})]}),hN=()=>t.jsxs(h6,{children:[t.jsx(h1,{isEmpty:!0}),t.jsx(_A,{})]}),mN=({isAuth:e,isAlfredDomain:n,locationPathname:s,userMe:r,isLoading:a,isLoadingRealUser:i,isLoadingUserAccount:o,profile:l,isWhiteLabelLoading:u,isMembersLoading:d,isLoadingFeatureFlags:p,isWhiteLabelUser:h,isActive:m,domain:f,isAppDeactivated:C,isAppPaused:E,isBlockedOwnerWithBillingAccess:b,shouldShowBlockedScreen:w,shouldShowBlacklistedScreen:I,isImpersonate:T,isAdminImpersonate:j})=>{const L=!!(l!=null&&l.isBlocked),_=!!(l!=null&&l.isBlacklisted),N=s==="/app/verifyEmail",A=!Qt(r)&&!(r!=null&&r.isEmailVerified),R=j&&(L||_);if(!e)return n?(window.location.href=H2,null):t.jsx(Le,{to:"/auth/login"});if(T&&i)return t.jsx(ut,{});if(!R&&(o||Qt(l)||u))return t.jsx(ut,{});if(h&&(!m||l!=null&&l.isBlocked||l!=null&&l.isBlacklisted||C||E||Na!==f))return t.jsx(i6,{});if(A&&!R)return N?null:t.jsx(Le,{to:"/app/verifyEmail",replace:!0});if(L&&b)return s.startsWith("/billing/history")?null:t.jsx(Le,{to:"/billing/history",replace:!0});if(w)return pN();
107if(I)return hN();if(a||d||p||!j&&i)return t.jsx(ut,{});if(n&&e&&!Qt(r)&&(r!=null&&r.isEmailVerified)&&!(r!=null&&r.isWalkthroughCompleted)&&!C&&!E){const V=s===A1,O=s.includes("/walkthrough");return A9(r==null?void 0:r.id)?O?null:t.jsx(Le,{to:"/walkthrough",replace:!0}):V?null:t.jsx(Le,{to:A1,replace:!0})}return null},gN=(e,n,{isAlfredDomain:s=!1,isWalkthrough:r=!1,isWalkthroughCompleted:a=!1}={})=>{c.useEffect(()=>{n&&(Ef()||s&&(r||a&&e(Ne({type:Y.RENEWAL_PROMO,size:"medium",onCancel:xu}))))},[n,s,r,a,e])},Ye=({children:e,emptyNavBar:n,hideNavBar:s,ignoreMinWidth:r=!1})=>{const a=mt(),i=P(),{isAuth:o,isAppDeactivated:l,isAppPaused:u,isImpersonate:d,profile:p}=fe(W=>W.user),[h,m]=c.useState(s?0:48),{shouldShowPromo:f}=Va(),{isLoadingOrError:C,whitelabel:{isAlfredDomain:E,isWhiteLabelUser:b,isActive:w,domain:I}={}}=Je(),{isLoadingOrError:T}=mu(),{userMe:j,isLoadingOrError:L}=st(),{realImpersonateUser:_,isLoading:N}=pn(),{isBlockedOwnerWithBillingAccess:A,shouldShowBlockedScreen:R,shouldShowBlacklistedScreen:V}=Tl(),O=!!(_!=null&&_.isAdminImpersonate),{isLoading:B}=Tf(),{isLoadingOrError:D}=gl();lC(),cl(),xC(),Zf(),i7(),e7(),ou({refetchOnMount:!1}),gC(),c.useEffect(()=>{document.body.style.overflow="",document.body.style.position="",document.body.style.top="",document.body.style.width=""},[a.pathname]);const M=a.pathname.includes("/walkthrough");gN(i,f,{isAlfredDomain:E,isWalkthrough:M,isWalkthroughCompleted:j==null?void 0:j.isWalkthroughCompleted});const F=mN({isAuth:o,isAlfredDomain:E,locationPathname:a.pathname,userMe:j,isLoading:B,isLoadingRealUser:N,isLoadingUserAccount:L,profile:p,isWhiteLabelLoading:C,isMembersLoading:T,isLoadingFeatureFlags:D,isWhiteLabelUser:b,isActive:w,domain:I,isAppDeactivated:l,isAppPaused:u,isBlockedOwnerWithBillingAccess:A,shouldShowBlockedScreen:R,shouldShowBlacklistedScreen:V,isImpersonate:d,isAdminImpersonate:O});return F||t.jsxs(p6,{minWidth:r?"auto":"1200px",children:[t.jsx(h1,{setNavBarHeight:m,isEmpty:n,isHidden:s,showTopNotifications:!n||A}),t.jsx(c.Suspense,{fallback:t.jsx(uN,{children:t.jsx(Pe,{})}),children:t.jsx(dN,{offsetTop:h,children:t.jsx(AS,{children:e},ph(a.pathname))})})]})},xN=y(jt,{target:"eu55dg10"})({name:"1n8dcc",styles:"font-family:Inter;font-weight:400;font-size:14px;line-height:20px;color:#656f7d;text-align:center"}),fN=y(g,{target:"e1q3c7xy0"})({name:"19rzqeq",styles:"width:16px;height:16px;display:flex;align-items:center;justify-content:center;cursor:pointer;svg{width:100%;height:100%;color:#656f7d;}"}),CN=y(g,{target:"e1p6uzee0"})({name:"tcsg6e",styles:"width:calc(100% - 40px);height:calc(100% - 44px);background-color:#ffffff;border-radius:12px;margin:0 auto;overflow-y:auto;flex:1;min-height:0;z-index:1"}),Yi=({title:e,description:n,settings:s,isLoading:r=!1,onToggle:a})=>t.jsxs(wN,{children:[t.jsxs(TN,{children:[t.jsx(LN,{children:e}),t.jsx(bN,{})]}),t.jsx(Ki,{children:t.jsx(g,{display:"flex",justifyContent:"flex-start",children:t.jsx(xN,{children:n})})}),r?t.jsx(Ki,{children:t.jsx(g,{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",gridColumn:"1 / -1",children:t.jsx(Pe,{})})}):s.map(i=>t.jsxs(Ki,{children:[t.jsxs(yN,{children:[i.label,t.jsx(we,{title:i.tooltip,placement:"top",children:t.jsx(fN,{children:t.jsx(es,{width:"16",height:"16"})})})]}),t.jsx(jN,{children:t.jsx(jb,{active:i.enabled,onClick:()=>a(i.id)})})]},i.id))]}),yN=y(jt,{target:"e15pkha50"})({name:"cpobr3",styles:"font-family:Inter;font-weight:400;font-size:14px;line-height:20px;color:#121313;display:flex;align-items:center;gap:8px"}),EN=y(g,{shouldForwardProp:e=>e!=="hasBanner",target:"e29norv0"})({name:"zz5825",styles:"background-color:#f8f9fa;height:100%;display:flex;flex-direction:column;box-sizing:border-box;overflow:hidden;padding-bottom:20px"}),SN=y(g,{target:"e1nm61wt0"})({name:"7pm2lc",styles:"max-width:800px;margin:0 auto;padding:0 20px 20px 20px"}),bN=y(jt,{target:"ejrqrao0"})({name:"1tatk6x",styles:"font-family:Inter;font-weight:500;font-size:16px;line-height:24px;color:#102e50;text-align:center"}),LN=y(jt,{target:"e1b9lxtb0"})({name:"gy1fej",styles:"font-family:Inter;font-weight:500;font-size:16px;line-height:24px;color:#102e50;text-align:left"}),wN=y(g,{target:"e1bhzhiq0"})({name:"cujc16",styles:"border-radius:12px;border:1px solid #e8e8eb;background-color:white;overflow:hidden"}),TN=y(g,{target:"ervgcax0"})({name:"13x9vbq",styles:"background-color:#f7f7f9;border-bottom:1px solid #e8e8eb;padding:16px;display:grid;grid-template-columns:1fr 96px;gap:16px;align-items:center"}),Ki=y(g,{target:"e1t8ez6t0"})({name:"bn3ax2",styles:"padding:8px 16px;display:grid;grid-template-columns:1fr 96px;gap:16px;align-items:center;&:nth-child(2){padding-top:16px;}&:last-child{padding-bottom:16px;border-bottom:none;}"}),jN=y(g,{target:"enjs3a70"}
107)({name:"zl1inp",styles:"display:flex;justify-content:center"}),Rd=y(g,{target:"ewstnr10"})({name:"yz1nei",styles:"margin-top:16px"}),vN=c.memo(({hasActiveNotifications:e,notificationSettingsList:n,emailSettingsList:s,teamEmailSettingsList:r,isLoading:a,isEligibleForAlertSettings:i,isOwnerOrAdmin:o,isGhostUser:l,onNotificationToggle:u,onEmailToggle:d,onTeamEmailToggle:p})=>t.jsxs(EN,{hasBanner:e,children:[t.jsxs(Ga,{children:[t.jsx(za,{children:"Notifications Settings"}),t.jsx(Pu,{articleLink:"https://help.meetalfred.com/en/articles/12699723-manage-your-notifications"})]}),t.jsx(CN,{children:t.jsxs(SN,{children:[t.jsx(g,{pt:"16px",children:t.jsx(Yi,{title:"App Notifications",description:"Specify the type of notifications you would like to receive.",settings:n,isLoading:a,onToggle:u})}),i&&!l&&t.jsx(Rd,{children:t.jsx(Yi,{title:"Activity Reports",description:"Specify the frequency for your summary reports sent to your email.",settings:s,isLoading:a,onToggle:d})}),i&&!l&&o&&t.jsx(Rd,{children:t.jsx(Yi,{title:"Team Activity Reports",description:"Specify the frequency for your team summary reports sent to your email.",settings:r,isLoading:a,onToggle:p})})]})})]}));vN.displayName="NotificationSettingsContent";const IN=c.lazy(()=>ee(()=>import("./zMQZ3vqD.js").then(e=>e.by),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.SketchPicker}))),_N=y(Ce,{target:"e1csuqhl1"})("caret-color:transparent;color:",({theme:e})=>e.palette.greyBlue[60],";text-transform:uppercase;"),AN=y(g,{target:"e1csuqhl0"})({name:"nffb2y",styles:"position:absolute;z-index:1"}),DV=({label:e,onColorChange:n,typeOfBanner:s,color:r,...a})=>{const i=c.useRef(null),[o,l]=c.useState(!1),u=P(),d=()=>{o||l(!0)},p=()=>{const f=setTimeout(()=>{s===Gn.WARNING&&u(z1(!1))},5e3);return()=>clearTimeout(f)},h=()=>{const f=setTimeout(()=>{s===Gn.ERROR&&u(W1(!1))},5e3);return()=>clearTimeout(f)};return Fa(i,()=>{l(!1),s===Gn.WARNING&&p(),s===Gn.ERROR&&h()}),c.useEffect(()=>{o&&s&&(s===Gn.WARNING&&u(z1(!0)),s===Gn.ERROR&&u(W1(!0)))},[o]),t.jsxs(g,{...a,position:"relative",children:[t.jsx(_N,{label:e,value:r,readOnly:!0,onClick:d,leftIcon:t.jsx(Lu,{bgcolor:r,onClick:d})}),o&&t.jsx(AN,{ref:i,children:t.jsx(c.Suspense,{fallback:t.jsx(g,{width:"200px",height:"200px",bgcolor:"grey.100"}),children:t.jsx(IN,{onChange:f=>n(f.hex),color:r})})})]})},NN=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{d:"M18.5045 19H18.9457C19.9805 19 20.8036 18.5285 21.5427 17.8691C23.4202 16.1942 19.0067 14.4998 17.5 14.4998M15 5.06877C15.2271 5.02373 15.4629 5 15.7048 5C17.5247 5 19 6.34315 19 8C19 9.65685 17.5247 11 15.7048 11C15.4629 11 15.2271 10.9763 15 10.9312M4.78256 15.1112C7.36292 13.6296 10.6371 13.6296 13.2174 15.1112C14.3178 15.743 17.2029 17.0331 15.4457 18.6474C14.5873 19.436 13.6313 20 12.4293 20H5.57068C4.36872 20 3.41269 19.436 2.55429 18.6474C0.797061 17.0331 3.68218 15.743 4.78256 15.1112ZM13 7C13 9.20914 11.2091 11 9 11C6.79086 11 5 9.20914 5 7C5 4.79086 6.79086 3 9 3C11.2091 3 13 4.79086 13 7Z",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round"})),kN=e=>c.createElement("svg",{width:"128px",height:"24px",viewBox:"0 0 512 96",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",...e},c.createElement("g",{id:"Trustpilot_ratings_5star-RGB",stroke:"none",strokeWidth:1,fill:"none",fillRule:"evenodd"},c.createElement("g",{fillRule:"nonzero"},c.createElement("rect",{id:"Rectangle-path",fill:"#00B67A",x:0,y:0,width:96,height:96}),c.createElement("rect",{id:"Rectangle-path",fill:"#00B67A",x:104,y:0,width:96,height:96}),c.createElement("rect",{id:"Rectangle-path",fill:"#00B67A",x:208,y:0,width:96,height:96}),c.createElement("rect",{id:"Rectangle-path",fill:"#00B67A",x:312,y:0,width:96,height:96}),c.createElement("rect",{id:"Rectangle-path",fill:"#00B67A",x:416,y:0,width:96,height:96}),c.createElement("path",{d:"M48,64.7 L62.6,61 L68.7,79.8 L48,64.7 Z M81.6,40.4 L55.9,40.4 L48,16.2 L40.1,40.4 L14.4,40.4 L35.2,55.4 L27.3,79.6 L48.1,64.6 L60.9,55.4 L81.6,40.4 L81.6,40.4 L81.6,40.4 L81.6,40.4 Z",id:"Shape",fill:"#FFFFFF"}),c.createElement("path",{d:"M152,64.7 L166.6,61 L172.7,79.8 L152,64.7 Z M185.6,40.4 L159.9,40.4 L152,16.2 L144.1,40.4 L118.4,40.4 L139.2,55.4 L131.3,79.6 L152.1,64.6 L164.9,55.4 L185.6,40.4 L185.6,40.4 L185.6,40.4 L185.6,40.4 Z",id:"Shape",fill:"#FFFFFF"}),c.createElement("path",{d:"M256,64.7 L270.6,61 L276.7,79.8 L256,64.7 Z M289.6,40.4 L263.9,40.4 L256,16.2 L248.1,40.4 L222.4,40.4 L243.2,55.4 L235.3,79.6 L256.1,64.6 L268.9,55.4 L289.6,40.4 L289.6,40.4 L289.6,40.4 L289.6,40.4 Z",id:"Shape",fill:"#FFFFFF"}),c.createElement("path",{d:"M360,64.7 L374.6,61 L380.7,79.8 L360,64.7 Z M393.6,40.4 L367.9,40.4 L360,16.2 L352.1,40.4 L326.4,40.4 L347.2,55.4 L339.3,79.6 L360.1,64.6 L372.9,55.4 L393.6,40.4 L393.6,40.4 L393.6,40.4 L393.6,40.4 Z",id:"Shape",fill:"#FFFFFF"}),c.createElement("path",{d:"M464,64.7 L478.6,61 L484.7,79.8 L464,64.7 Z M497.6,40.4 L471.9,40.4 L464,16.2 L456.1,40.4 L430.4,40.4 L451.2,55.4 L443.3,79.6 L464.1,64.6 L476.9,55.4 L497.6,40.4 L497.6,40.4 L497.6,40.4 L497.6,40.4 Z",id:"Shape",fill:"#FFFFFF"})))),Io=100,RN=y(g,{target:"e1ac8u3a4"})("display:flex;gap:20px;background-color:",({theme:e})=>e.palette.light.light,";padding:0 55px;box-sizing:border-box;overflow:hidden;height:100%;width:calc(50% - 24px);flex-shrink:0;position:relative;border-radius:12px;@media only screen and (max-width: 1200px){display:none;}&:hover *{animation-play-state:paused;}&:before,&:after{content:'';position:absolute;width:100%;height:144px;left:0;z-index:1;}&:before{top:0;background:linear-gradient(180deg, #f3f4f6 13.86%, rgba(255, 255, 255, 0) 105.04%);}&:after{bottom:0;background:linear-gradient(0, #f3f4f6 13.86%, rgba(255, 255, 255, 0) 105.04%);}"),MN=fr`
108  0% {
109    transform: translateY(0);
110  }
111  
112  100% {
113    transform: translateY(calc(-100% - 20px));
114  }
115`,Md=y(g,{target:"e1ac8u3a3"})({name:"1qvsi09",styles:"width:50%;height:fit-content"}),ia=y(g,{target:"e1ac8u3a2"})("animation:",MN," ",Io,"s infinite linear;"),PN=y(g,{target:"e1ac8u3a1"})({name:"1jy2wzc",styles:"padding:16px;background-color:#ffffff;border-radius:12px;box-sizing:border-box;break-inside:avoid;margin-bottom:20px"}),ON=y("img",{target:"e1ac8u3a0"})({name:"1ihdugt",styles:"width:48px;height:48px;border-radius:50%"}),oa=({items:e})=>t.jsx(t.Fragment,{children:e.map(({name:n,country:s,picture:r,quote:a})=>t.jsxs(PN,{children:[t.jsxs(g,{display:"flex",alignItems:"center",gap:"6px",mb:"8px",children:[t.jsx(ON,{src:r,alt:n}),t.jsxs(g,{children:[t.jsx(S,{fontSize:"18px",color:"black.base",children:n}),t.jsxs(S,{fontSize:"14px",color:"gray.400",children:["from ",s]})]})]}),t.jsx(kN,{}),t.jsx(S,{mt:"8px",children:a})]},n))}),UV=()=>{const{whitelabel:e}=Je(),n=c.useRef(null),s=c.useRef(null),r=c.useMemo(()=>!n.current||!s.current?1:n.current.offsetHeight/s.current.offsetHeight,[n.current,s.current]);if(e.isWhiteLabelUser)return null;const a=ui.length,i=ui.slice(0,a/2-1),o=ui.slice(a/2,-1),l=Xn("animation-duration:",Io*r,"s!important;",""),u=Xn("animation-duration:",Io,"s;","");return t.jsxs(RN,{children:[t.jsxs(Md,{ref:n,children:[t.jsx(ia,{className:l,children:t.jsx(oa,{items:i})}),t.jsx(ia,{className:l,children:t.jsx(oa,{items:i})})]}),t.jsxs(Md,{ref:s,children:[t.jsx(ia,{className:u,children:t.jsx(oa,{items:o})}),t.jsx(ia,{className:u,children:t.jsx(oa,{items:o})})]})]})},DN=y(Po,{target:"ee2r6ij0"})(({disabled:e})=>e?"opacity: .7;
115 cursor: not-allowed;":""," font-size:14px;"),UN=({onChange:e,defaultValue:n,options:s,paperClassName:r,rootClassName:a,disabled:i,value:o})=>{const[l,u]=c.useState(!1),d=()=>u(!0),p=()=>u(!1),{palette:h}=Ve();return t.jsx(p2,{"data-testid":"role-select",MenuProps:{classes:{paper:r?`alf-select_paper ${r}`:"alf-select_paper"}},className:a?`alf-select ${a}`:"alf-select",defaultValue:n,onChange:e,onClose:p,onOpen:d,open:l,value:o,autoFocus:l,disabled:i,IconComponent:()=>l?t.jsx(Nr,{className:"role-select__icon selected"}):t.jsx(ln,{className:"role-select__icon"}),renderValue:m=>m,sx:{"&.MuiOutlinedInput-root":{height:"32px"},"&.Mui-focused":{borderColor:h.blue.primary}},children:s.map(m=>{const f=m.value===o;return t.jsx(DN,{"data-testid":m.value,disabled:m.disabled,value:m.value,className:Ee({"alf-select_menu-item__selected":f}),children:m.label},m.value)})})},BN=e=>c.createElement("svg",{id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",viewBox:"0 0 160.9 118.9",style:{enableBackground:"new 0 0 160.9 118.9"},xmlSpace:"preserve",...e},c.createElement("style",{type:"text/css"},`
116	.st0{fill:#231F20;}
117`),c.createElement("path",{className:"st0",d:"M136.3,84c-0.5,0.2-0.9,0.6-1.2,1c-0.3,0.3-0.2,0.9,0.1,1.2c0.1,0.1,0.2,0.1,0.3,0.2c0.6,0.1,1.2,0.1,1.7,0 c3.9-0.6,7.5,0.3,9.1,4c0.8,2.2,0.5,4.7-0.8,6.7c-2.4,3.2-6.3,3-9.6,1.2c-3.3-1.9-6.4-4-9.4-6.4c-6.2-4.7-12-10-18.5-14.2 c-8.9-5.7-18.1-7.2-26.6,0.6c-0.3,0.2-0.7,0.3-1,0.1c-8.7-6.4-16.5-7.1-25.8-1.3c-6.3,3.9-11.9,9-17.9,13.4 c-3.8,2.8-7.6,6.2-11.9,7.9c-2.5,1-6.3-0.2-9-1.6c-1.1-0.6-1.8-5.1-0.9-6c2.1-2.1,5.3-3.3,8.2-4.5c0.4-0.2,0.9-0.2,1.3-0.1 c0.5,0,0.9-0.3,0.9-0.7c0-0.4-0.2-0.7-0.5-0.8c-5.6-2.5-12.1-1.3-16.5,2.8c-4.9,4.8-5.3,13.3,0,18.3c4.2,3.7,9,6.7,14.1,9 c4.3,2,9.1,2.8,13.7,4.1l11.4,0.1c4-1,8.2-1.5,11.9-3.2c7.3-3.6,14.3-7.8,21.9-12.2c0.3-0.2,0.7-0.1,1,0.2c7.6,8.6,19,12.5,31,15.2 c0.1,0,0.1,0,0.2,0h10.8c0.1,0,0.1,0,0.2,0c1.4-0.4,2.8-0.8,4.2-1.1c8.4-1.7,16.3-4.6,22.8-10.3c5.8-5.1,7-11.8,3.3-17.8 C151.4,84.1,142.5,81.3,136.3,84z"}),c.createElement("path",{className:"st0",d:"M154.5,15.1c-0.8-0.
1171-1.7,0.4-2.6,0.9c-0.4,0.2-0.8,0.1-1-0.3C143.2,5.4,133,0,120.2,0.2s-22.7,6-30.1,16.2 c-0.2,0.3-0.7,0.4-1.1,0.2c-5.1-3-11.5-3.1-16.7-0.1c-0.3,0.2-0.8,0.1-1-0.2c-17.7-21.6-40-21.7-61.1-0.5C10,16,9.7,16.1,9.4,16 c-0.4-0.1-0.9-0.3-1.3-0.5c-2.8-1.2-5.6-1.5-7.4,1.6s0.5,4.5,2.2,6.7c1.7,2.1,2.6,4.7,2.7,7.4c0.2,15.5,8.8,27.5,23.7,32.3 c24.1,7.7,48.8-10.4,46.2-33.6c-0.4-3.8,1.4-6.3,5.2-6.3c4.3,0,5.1,3,5,6.9C85.2,50,100,65,119.9,65.2c20.8,0.2,35.8-14.4,35.8-34.2 c0-2.5,2.1-5.1,3.2-7.7c0.8-2,2.5-4.9,1.8-5.8C159.5,16,156.7,15.6,154.5,15.1z M40.6,55.8c-13.7,0-25.1-10.6-25-23.1 S27,9.6,40.6,9.6c13.9,0,25,10.1,25.1,22.9C65.8,45.6,54.7,55.8,40.6,55.8z M120.3,55.8C106.7,55.7,95.4,45,95.6,32.5 c0.2-13,11.5-23,25.7-22.9c13.7,0.1,24.5,10.6,24.3,23.6C145.4,45.9,134.3,55.9,120.3,55.8z"}),c.createElement("path",{className:"st0",d:"M48.1,15.4c-1.9-0.6-3.8-1.1-5.8-1.4h-0.2C30.4,13.9,21,21.7,20.8,30.7c0.1,1,0.5,1.9,1,2.7 c0.2,0.4,0.7,0.6,1.1,0.3c0.1,0,0.1-0.1,0.2-0.1c0.7-0.6,1.4-1.3,2-2c2.5-3.1,4.4-7,7.4-9.4c4.1-3.3,9.2-4,14.6-2.9 c1,0,1.9-0.2,2.8-0.7c0.4-0.2,0.6-0.6,0.4-1.1c0-0.1-0.1-0.1-0.1-0.2C49.7,16.5,48.9,15.8,48.1,15.4z"}),c.createElement("path",{className:"st0",d:"M128,15.5c-2-0.7-4.1-1.2-6.2-1.5h-0.2c-11.7,0.1-20.9,7.9-21,16.8c0.1,1,0.5,1.9,1,2.7 c0.2,0.4,0.7,0.6,1.1,0.3c0.1,0,0.1-0.1,0.1-0.1c0.8-0.5,1.5-1.3,1.9-2.1c1.8-5.9,6.5-10.4,12.5-11.8c3.1-0.8,6.5-0.2,9.8-0.4 c0.8-0.1,1.7-0.3,2.4-0.6c0.4-0.2,0.6-0.6,0.5-1.1c0-0.1-0.1-0.1-0.1-0.2C129.5,16.7,128.8,16,128,15.5z"})),HN=y(jt,{target:"e1ard8pu3"})("color:",({theme:e,color:n})=>n||e.palette.greyNeutral[200],";text-align:center;font-size:32px;font-weight:600;"),Pd=y(jt,{target:"e1ard8pu2"})("color:",({theme:e})=>e.palette.greyNeutral[60],";text-align:center;font-family:Inter;font-size:14px;font-weight:500;line-height:20px;"),VN=y(BN,{target:"e1ard8pu1"})({name:"ics10i",styles:"width:55px;height:40px"}),FN=y("button",{target:"e1ard8pu0"})("display:flex;width:320px;padding:10px 16px;justify-content:center;align-items:center;gap:10px;border-radius:8px;background:",({theme:e,bgColor:n})=>n||e.palette.blue.primary,";color:",({color:e})=>e||"#ffffff",";font-family:Inter;font-size:14px;font-style:normal;font-weight:600;line-height:20px;cursor:pointer;transition:background 0.3s ease;&:hover{background:",({theme:e,bgColor:n})=>kn(n||e.palette.blue.primary,.1),";}&:active{background:",({theme:e,bgColor:n})=>kn(n||e.palette.blue.primary,.2),";}&:disabled{background:",({theme:e})=>e.palette.greyNeutral[30],";cursor:not-allowed;}"),$N=({children:e,isLoading:n,...s})=>t.jsxs(FN,{...s,children:[n?t.jsx(Pe,{type:"dots",size:"lg"}):"",e]}),GN={verificationDataToken:null,isValidationExpired:!1,timeForExpired:null},m6=c.createContext({}),zN=(e,n)=>{switch(n.type){case rr.SET_VERIFICATION:return{...e,verificationDataToken:n.payload};case rr.SET_IS_VALIDATION_EXPIRED:{const s=eh(n.payload);return{...e,isValidationExpired:s.isExpiredTime,timeForExpired:s.diffTime}}case rr.CHANGE_DISPLAY_STATE:return e.verificationDataToken?{...e,verificationDataToken:{...e.verificationDataToken,pageTokenStatus:n.payload}}:e;default:return e}},BV=({children:e})=>{const[n,s]=c.useReducer(zN,GN);return t.jsx(m6.Provider,{value:{...n,dispatch:s},children:e})},WN=()=>c.useContext(m6),qN=js(g)`
118  display: flex;
119  flex-direction: column;
120  align-items: center;
121  gap: 32px;
122`,HV=()=>{var u,d,p,h,m,f;const{verificationToken:e}=_a(),{verificationDataToken:n,dispatch:s}=WN(),{handleReconnectLinkedin:r,isLoading:a}=pf(),i=ce(),o=()=>{var C,E;return(C=n==null?void 0:n.whiteLabel)!=null&&C.logoIcon?t.jsx("img",{src:(E=n==null?void 0:n.whiteLabel)==null?void 0:E.logoIcon,alt:"Logo",style:{width:"55px",height:"40px"}}):t.jsx(VN,{})},l=()=>{r({token:e||""}).then(C=>{if((C==null?void 0:C.status)===pi.LOGGED_IN){s({type:rr.CHANGE_DISPLAY_STATE,payload:v1.SUCCESS});return}if((C==null?void 0:C.status)===pi.LOGGED_IN_VERIFICATION||(C==null?void 0:C.status)===pi.LOGGED_IN_VERIFICATION_2FA){i.invalidateQueries({queryKey:["get-verification-token"]});return}}).catch(()=>{s({type:rr.CHANGE_DISPLAY_STATE,payload:v1.BAD_REQUEST})})};return t.jsxs(qN,{children:[o(),t.jsxs(g,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:"8px",children:[t.jsx(HN,{color:(d=(u=n==null?void 0:n.whiteLabel)==null?void 0:u.theme)==null?void 0:d.titleColor,children:"2 step Verification"}),t.jsx(Pd,{children:"It looks like your verification code has expired."}),t.jsx(Pd,{children:"Please connect your LinkedIn account and request a new link to continue."})]}),t.jsx($N,{bgColor:(h=(p=n==null?void 0:n.whiteLabel)==null?void 0:p.theme)==null?void 0:h.accentColor,color:(f=(m=n==null?void 0:n.whiteLabel)==null?void 0:m.theme)==null?void 0:f.navigationTextColor,disabled:a,isLoading:a,onClick:l,children:"Connect your LinkedIn account"})]})},ZN=y(g,{target:"e1o4ez4j0"})("width:130px;height:130px;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;background-image:url(",l3,");background-size:cover;background-position:center;background-repeat:no-repeat;"),YN=o5.reduce((e,n)=>(e[n.category]=n.name,e),{}),KN=({search:e,category:n},s)=>{z8({search:e,category:n}).then(r=>s(T4(r)))},QN=vs(KN,500),XN=({params:{category:e,onAddSequenceTemplate:n}})=>{const s=P(),[r,a]=c.useState([]),{data:i,isLoading:o}=$x({category:e,availability:Jn.personal}),l=()=>{s(Q())},u=()=>{n(r||[]),s(Q())},d=p=>{var h;p&&a((h=p.value)==null?void 0:h.sequence)};return o?t.jsxs(t.Fragment,{children:[t.jsx(he,{children:t.jsx(Pe,{marginTop:"0"})}),t.jsx(ge,{children:t.jsx(k,{onClick:l,children:"Cancel"})})]}):t.jsxs(t.Fragment,{children:[t.jsx(he,{children:i!=null&&i.total?t.jsxs(g,{display:"flex",gap:"24px",children:[t.jsxs(g,{display:"flex",flexDirection:"column",gap:"16px",width:"240px",children:[t.jsx(Xe,{label:"Category*",isDisabled:!0,value:{value:e,label:YN[e]}}),t.jsx(Xe,{label:"Template*",placeholder:"Search Template",isAsync:!0,onChange:d,searchable:!0,additionalProps:{defaultOptions:!0,cacheOptions:!0,loadOptions:(p,h)=>QN({search:p,category:e},h)}})]}),t.jsx(g,{width:"520px",maxHeight:"60vh",overflow:"auto",margin:"0 auto",p:"0 10px",children:!!r.length&&t.jsx(r6,{sequences:r,showStartEndBlock:!0})})]}):t.jsxs(ZN,{children:[t.jsx(S,{semibold:!0,fontSize:"16px",lineHeight:"24px",mb:"8px",width:"max-content",children:"No personal templates yet"}),t.jsx(S,{color:"greyNeutral.60",width:"max-content",children:"It looks like you don’t have personal templates yet."})]})}),t.jsxs(ge,{children:[t.jsx(k,{onClick:l,children:"Cancel"}),t.jsx(k,{onClick:u,disabled:!(r!=null&&r.length),children:"Add"})]})]})},JN=({params:{sequence:e,category:n}})=>{const s=P(),{createSequenceTemplate:r,isLoading:a}=Fx({onSuccess:()=>{s(Q())}}),{register:i,handleSubmit:o,setValue:l,watch:u}=lt({defaultValues:{name:"",category:n,isAvailableForTeam:!1,sequence:e}}),d=u("isAvailableForTeam"),p=f=>{l("isAvailableForTeam",f===Jn.team)},h=()=>{s(Q())},m=f=>{r(f)};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(Ce,{label:"Template Name",register:i,showRequiredIcon:!0,parameters:{required:"Please input a name for this template"},name:"name"}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",semibold:!0,mt:"16px",mb:"8px",children:"Availability*"}),t.jsx(yy,{isShared:d,onChange:p})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:h,children:"Cancel"}),t.jsx(k,{onClick:o(m),processing:a,children:"Save"})]})]})},ek=({params:{sequenceTemplate:e,availability:n}})=>{const s=Rt(),r=P(),{id:a,name:i,category:o,isAvailableForTeam:l,sequence:u}=e,d=()=>{r(Q())},p=()=>{const m=u.map(f=>({...f,is_editing:!0}));s(`/sequence-templates/${a}`,{state:{name:i,category:o,sequence:m,isAvailableForTeam:l}}),d()},h=()=>{s("/sequence-templates/new",{state:{name:`${i} (clone)`,category:o,sequence:u,isAvailableForTeam:l}}),d()};return t.jsxs(t.Fragment,{children:[t.jsx(he,{padding:"0",children:t.jsx(TC,{maxHeight:"calc(100vh - 300px)",border:"none !important",children:t.jsx(r6,{sequences:u})})}),t.jsxs(ge,{children:[t.jsx(k,{onClick:d,children:"Cancel"}),t.jsx(k,{onClick:h,margin:"0 16px 0 auto",children:"Clone"}),n===Jn.personal&&t.jsx(k,{onClick:p,children:"Edit"})]})]})},tk=({onCancel:e,params:n})=>{const s=P(),{onConfirm:r,value:a,setValue:i}=n??{},[o,l]=c.useState(a),[u,d]=c.useState(""),[p,h]=c.useState(!1),m=()=>{r&&(h(!0),r(u,{onSuccess:()=>s(Q()),onSettled:()=>h(!1)}))},f=()=>{e&&e(),s(Q())},C=E=>{l(E.target.value),i&&i(E.target.value)};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(Ce,{label:"Please confirm if this is your new email","data-testid":"change-modal-email-input",value:o,onChange:C,name:"email",type:"email",placeholder:"Email"}),t.jsx(g,{mt:"16px",children:t.jsx(Ce,{label:"Your current password","data-testid":"change-modal-password-input",value:u,onChange:E=>d(E.target.value),name:"currentPassword",type:"password",autoComplete:"current-password",placeholder:"Current password"})})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:f,children:"Cancel"}),t.jsx(k,{onClick:m,processing:p,disabled:!u||p,children:"Confirm"})]})]})},nk=()=>{var d;const e=P(),n=ce(),s=()=>{e(Q())},{changePassword:r,isLoading:a}=p7({onSuccess:()=>{n.setQueryData(["get-user-preferences"],p=>p&&{...p,userProfile:{...p.userProfile,havePassword:!0}}),s()}}),{handleSubmit:i,register:o,formState:{errors:l}}=lt(),u=async p=>{r({newPassword:p.password})};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(Ce,{register:o,parameters:{required:"Please enter a password",minLength:{value:Fp,message:zp},maxLength:{value:$p,message:Wp},pattern:{value:Gp,message:qp}},className:Ee({error:l==null?void 0:l.password}),type:"password",name:"password",label:"Password",placeholder:"Password"}),((d=l==null?void 0:l.password)==null?void 0:d.message)&&t.jsx($a,{children:l.password.message})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:s,children:"Cancel"}),t.jsx(k,{disabled:a,onClick:i(u),children:"Confirm"})]})]})},sk=({params:e,onCancel:n})=>{const s=P(),{type:r,entityUrns:a}=e,[i,o]=c.useState([]),{checkFeature:l}=We(),[u,d]=l(X.leadsTags),{tags:p}=is(),h=c.useMemo(()=>(p==null?void 0:p.map(T=>({label:T.tag,color:T.color,value:T.id}
122)))||[],[p]),{addLeadsTags:m}=Wx(r),{createTag:f,isLoading:C}=Ha({withNotCloseModal:!0,onMutate:({color:T,tag:j})=>{o(L=>[...L,{color:T,label:j,value:-1}])},onSuccess:T=>{o(j=>j.map(L=>L.value===-1&&L.label===T.tag?{color:T.color,label:T.tag,value:T.id}:L))},onError:(T,j)=>{o(L=>L.filter(({label:_})=>_!==j.tag))}}),E=T=>f({tag:T,color:Er()}),b=i.some(({value:T})=>T===-1),w=()=>{b||m({leadIds:a,tagIds:i.map(({value:T})=>T)})},I=()=>{n&&n(),s(Q())};return t.jsxs(t.Fragment,{children:[t.jsx(he,{children:t.jsx(we,{title:d,children:t.jsx("span",{children:t.jsx(Xe,{isMulti:!0,isCreatable:!0,label:"Select tags",placeholder:"Select Tags",value:i,options:h,onChange:T=>T&&o(T),additionalProps:{isClearable:!1,isSearchable:!0,onCreateOption:E,formatCreateLabel:T=>t.jsxs(Ml,{children:['Create option "',T,'"']})},isDisabled:!u||C})})})}),t.jsxs(ge,{children:[t.jsx(k,{onClick:I,children:"Cancel"}),t.jsx(k,{onClick:w,disabled:C||b,children:"Confirm"})]})]})},rk=({onCancel:e,params:n})=>{const s=P(),{entityUrn:r,tagIds:a=[],campaignId:i,campaignKeys:o}=n??{},[l,u]=c.useState(a),{checkFeature:d}=We(),[p,h]=d(X.leadsTags),{tags:m}=is(),f=c.useMemo(()=>b2(m,"id"),[m]),C=c.useMemo(()=>Vo(l.map(A=>f[A]).filter(Boolean),"tag"),[f,l]),E=c.useMemo(()=>(m==null?void 0:m.map(A=>({color:A.color,label:A.tag,value:A.id})))||[],[m])||[],{setLeadTags:b,isLoading:w}=pu({entityUrn:r,campaignId:i,campaignKeys:o},{onSuccess:()=>{s(Q())}}),{createTag:I,isLoading:T}=Ha({withNotCloseModal:!0}),j=A=>{I({tag:A,color:Er()},{onSuccess:R=>{u(V=>[...V,R.id].filter(O=>O!==-1))}})},L=()=>{b(C)},_=()=>{e&&e(),s(Q())},N=A=>{Array.isArray(A)&&u(A.map(R=>R==null?void 0:R.value))};return t.jsxs(t.Fragment,{children:[t.jsx(he,{children:t.jsx(we,{title:h,children:t.jsx("span",{children:t.jsx(Xe,{isMulti:!0,isCreatable:!0,label:"Select tags",placeholder:"Select Tags",value:C.map(A=>({label:A.tag,value:A.id,color:A.color})),options:E,onChange:N,additionalProps:{isClearable:!1,isSearchable:!0,onCreateOption:j,formatCreateLabel:A=>t.jsxs(Ml,{children:['Create option "',A,'"']})},isDisabled:!p||T})})})}),t.jsxs(ge,{children:[t.jsx(k,{onClick:_,children:"Cancel"}),t.jsx(k,{onClick:L,processing:w||T,disabled:!p,children:"Save tags"})]})]})},ak=c.lazy(()=>ee(()=>import("./zMQZ3vqD.js").then(e=>e.by),__vite__mapDeps([0,1,2,3])).then(e=>({default:e.SketchPicker}))),ik=y(g,{target:"en4tj1m1"})("position:fixed;z-index:1300;left:",({left:e})=>`${e}px`,";top:",({top:e})=>`${e}px`,";"),ok=y(Ce,{target:"en4tj1m0"})({name:"xep7y6",styles:"caret-color:transparent"}),Od=({params:e,onCancel:n,type:s})=>{const o=P(),l=c.useRef(null),u=c.useRef(null),[d,p]=c.useState((e==null?void 0:e.tag)??""),[h,m]=c.useState((e==null?void 0:e.color)??Er()),[f,C]=c.useState(!1),[E,b]=c.useState({left:0,top:0}
122),w=s===Y.UPDATE_TAG,{createTag:I}=Ha({onSuccess:()=>{o(Z({type:"info",message:"Tag created",autoCloseTime:3e3}))}}),{updateTag:T}=Zx({id:e==null?void 0:e.id,color:h,tag:d},{onSuccess:()=>{o(Z({type:"info",message:"Tag updated",autoCloseTime:3e3}))}}),j=()=>{d&&w?T():d?I({tag:d,color:h}):o(Z({type:"error",message:"Please enter a name",autoCloseTime:3e3}))},L=()=>{n&&n(),o(Q())},_=V=>{p(V.target.value)},N=V=>{m(V.hex)},A=()=>{if(!f){if(u.current){const V=u.current.getBoundingClientRect(),O=Math.max(8,window.innerWidth-220-8),B=Math.min(Math.max(V.left,8),O);b({left:B,top:V.bottom+8})}C(!0)}};return Fa(l,()=>{C(!1)}),t.jsxs(t.Fragment,{children:[t.jsxs(he,{position:"relative",children:[w&&t.jsx(S,{color:"greyBlue.60",mb:"16px",children:"Apply changes to the selected tag? The tag name will be changed across all of your contacts such as leads and connections."}),t.jsxs(g,{display:"flex",flexDirection:"column",gap:"16px",children:[t.jsx(Ce,{label:"Tag Name",onChange:_,value:d,placeholder:"Enter tag name"}),t.jsx(g,{ref:u,position:"relative","data-testid":"tag-color-input-anchor",children:t.jsx(ok,{label:"Select Color",placeholder:h,value:h,readOnly:!0,onClick:A,leftIcon:t.jsx(t.Fragment,{children:t.jsx(Lu,{bgcolor:h,onClick:A})})})})]})]}),f&&t.jsx(ik,{ref:l,"data-testid":"tag-color-picker",left:E.left,top:E.top,children:t.jsx(c.Suspense,{fallback:t.jsx(g,{width:"200px",height:"200px",bgcolor:"grey.100"}),children:t.jsx(ak,{onChange:N,color:h})})}),t.jsxs(ge,{children:[t.jsx(k,{onClick:L,children:"Cancel"}),t.jsx(k,{onClick:j,children:w?"Save":"Create"})]})]})},lk=({onCancel:e,params:n})=>{const s=P(),{deleteTag:r}=qx((n==null?void 0:n.id)??-1),a=()=>{r()},i=()=>{e&&e(),s(Q())};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(S,{color:"greyBlue.60",children:"Are you sure you want to delete this tag?"}),t.jsx(S,{color:"greyBlue.60",children:"This item will be deleted immediately across all of your contacts."}),t.jsx(S,{color:"greyBlue.60",children:"This includes leads and connections and cannot be undone."})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:i,children:"Cancel"}),t.jsx(k,{onClick:a,children:"Confirm"})]})]})},ck=y("span",{target:"ehwdltv1"})({name:"1j389vi",styles:"font-weight:700"}),Qi=y("label",{target:"ehwdltv0"})({name:"15ia4hw",styles:"color:#333;font-size:14px;cursor:pointer;margin-right:6px"}),dk=({teamName:e,userRole:n,inviteId:s,isInviteToCustomDomain:r})=>{const a=P(),{handleSubmit:i,register:o}=lt({defaultValues:{moveCampaigns:!1,moveMessagesTemplates:!1,moveSequenceTemplates:!1}}),{userPreferences:l}=cl(),u=!(l!=null&&l.userProfile.havePassword)&&r,{acceptInvitation:d}=Yx(),{rejectInvitation:p}=tf(),h=()=>{a(Q()),i(C=>{d({inviteId:s,moveCampaigns:C.moveCampaigns,moveMessagesTemplates:C.moveMessagesTemplates,moveSequenceTemplates:C.moveSequenceTemplates})})()},m=()=>{a(Q()),p({inviteId:s})},f=()=>{a(Ne({type:Y.SET_PASSWORD,headerText:"Set password"}))};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsxs(S,{color:"violet.dark",children:["You've have been invited to join ",t.jsx(ck,{children:e})," ",`as ${n==="member"?"a":"an"} ${n}`,"."]}),t.jsx(S,{color:"violet.dark",children:"You can only be part of one team in the app. Once you move to this new team, you will lose access to your current campaigns and leads unless you move them to your new team."}),u&&t.jsx(t.Fragment,{children:t.jsxs(S,{color:"violet.dark",inline:!0,children:["In order to accept this invitation, please"," ",t.jsx(je,{underline:!0,onClick:f,inline:!0,children:"set password"}),"."]})}),t.jsxs(g,{display:"flex",alignItems:"center",mt:"16px",gap:"8px",children:[t.jsx($e,{register:o,name:"moveCampaigns",type:"checkbox",id:"moveCampaigns"}),t.jsx(Qi,{htmlFor:"moveCampaigns",children:"Move campaigns and leads to my new team"})]}),t.jsxs(g,{display:"flex",alignItems:"center",mt:"5px",gap:"8px",children:[t.jsx($e,{register:o,name:"moveMessagesTemplates",type:"checkbox",id:"moveMessagesTemplates"}),t.jsx(Qi,{htmlFor:"moveMessagesTemplates",children:"Move messages templates to my new team"})]}),t.jsxs(g,{display:"flex",alignItems:"center",mt:"5px",gap:"8px",children:[t.jsx($e,{register:o,name:"moveSequenceTemplates",type:"checkbox",id:"moveSequenceTemplates"}),t.jsx(Qi,{htmlFor:"moveSequenceTemplates",children:"Move sequence templates to my new team"})]})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:m,children:"Reject"}),t.jsx(we,{title:u&&"In order to accept this invitation, please set password",children:t.jsx("span",{children:t.jsx(k,{onClick:h,disabled:u,children:"Accept"})})})]})]})},uk=({onCancel:e,onConfirm:n,confirmButtonLoading:s,params:r})=>{const a=P(),i=()=>{n==null||n(r)},o=()=>{e&&e(),a(Q())};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(S,{children:r==null?void 0:r.description}),!!(r!=null&&r.subDescription)&&t.jsx(S,{color:"greyBlue.60",fontSize:"12px",mt:"8px",children:r==null?void 0:r.subDescription})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:o,children:"Cancel"}),t.jsx(k,{onClick:i,processing:s,children:"Confirm"})]})]})},pk=({onCancel:e,params:n})=>{const s=P(),{palette:r}=Ve(),{roleFrom:a="",roleTo:i="",onConfirm:o,isUpdateLoading:l}=n??{},u=()=>{e&&e(),s(Q())},d=()=>{o&&o(),u()};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsxs(S,{color:r.greyNeutral[200],children:["Are you sure you want to change your own role from ",a," to ",i,"?"]}),t.jsxs(S,{color:"violet.dark",fontSize:"12px",mt:"20px",children:["This change is permanent and 
122you will lose the ability to change back to the ",a," role once you confirm"]})]}),t.jsxs(ge,{justifyContent:"space-between",children:[t.jsx(k,{onClick:u,children:"Cancel"}),t.jsx(k,{onClick:d,processing:l,children:"Confirm role change"})]})]})},Dd=y(Ce,{target:"eyxs78n3"})({name:"1d3w5wq",styles:"width:100%"}),hk=y("label",{target:"eyxs78n2"})("color:",({theme:e})=>e.palette.greyNeutral[200],";font-size:14px;cursor:pointer;margin:0 8px;"),mk=y(S,{target:"eyxs78n1"})("color:",({theme:e})=>e.palette.greyBlue[100],";font-size:12px;font-weight:600;line-height:16px;"),gk=Xn({name:"i7btlv",styles:"&.MuiInputBase-root{width:100%;max-height:40px;height:40px!important;}"}),Xi=3e3,xk={name:"",email:"",withoutEmail:!1},fk=y(es,{target:"eyxs78n0"})("width:15px;height:15px;& path{stroke:",({theme:e})=>e.palette.greyBlue[60],";}"),Ck=({seatNumLeft:e,onCloseModal:n,isUpdateLoading:s})=>{const r=P(),a=fe(A=>{var R;return((R=A.team.data)==null?void 0:R.id)??0}),{isAppDeactivated:i}=fe(A=>A.user),[o,l]=c.useState(Kt.OWNER),[u,d]=c.useState(!1),{palette:p}=Ve(),{clearErrors:h,formState:{errors:m},handleSubmit:f,register:C,reset:E,watch:b}=lt({defaultValues:xk}),w=!!b("withoutEmail"),I=()=>{n&&n(),E()},{inviteUserWithEmail:T,isLoading:j}=Xx({onSuccess:I}),{inviteUserWithoutEmail:L,isInviteLoading:_}=Jx({onSuccess:I});c.useEffect(()=>{Object.entries(m).length&&(r(Z({message:Object.values(m)[0].message??"",type:"info",autoCloseTime:Xi})),h())},[Object.values(m).length]),c.useEffect(()=>{w&&l(Kt.MEMBER)},[w]);const N=A=>{const R=ip.validate(A.email);return!w&&!R?r(Z({message:"Please enter a valid email",type:"info",autoCloseTime:Xi})):A.name.trim()?w?L({teamId:a,name:A.name}):T({role:o,teamId:a,name:A.name,email:A.email}):r(Z({message:"Please enter a valid name",type:"info",autoCloseTime:Xi}))};return c.useEffect(()=>{d&&d(j||_)},[j,_]),t.jsxs(g,{borderRadius:"5px 5px 0 0",display:"flex",flexDirection:"column",sx:{bgcolor:"#fff"},children:[t.jsxs(S,{color:"gray.dark",fontWeight:"400",lineHeight:"14px",mb:"16px",children:[e," ",e===1?"seat":"seats"," available"]}),!i&&t.jsxs(t.Fragment,{children:[t.jsxs(g,{width:"100%",display:"flex",flexDirection:"column",gap:"16px",children:[t.jsx(g,{width:"100%",display:"flex",alignItems:"center",children:t.jsx(Dd,{placeholder:"Name",name:"name",label:"User Name",register:C,parameters:{required:"Please add a name"}})}),!w&&t.jsx(g,{width:"100%",display:"flex",alignItems:"center",children:t.jsx(Dd,{placeholder:"E-mail address",name:"email",label:"E-mail",register:C})}),t.jsxs(g,{width:"100%",display:"flex",alignItems:"flex-start",marginTop:"5px",flexDirection:"column",gap:"4px",children:[t.jsx(mk,{children:"Invite as"}),t.jsx(UN,{options:H5,defaultValue:"owner",disabled:w,onChange:A=>l(A.target.value),value:o,rootClassName:gk})]})]}),t.jsxs(g,{mt:"16px",display:"flex",flexDirection:"column",gap:"4px",children:[t.jsxs(g,{display:"flex",height:"20px",alignItems:"center",children:[t.jsx($e,{type:"checkbox",name:"withoutEmail",id:"withoutEmail",register:C}),t.jsx(hk,{htmlFor:"withoutEmail",children:"Create user without email"}),t.jsx(we,{placement:"top",title:"You can create a user that you can impersonate and manage his account without the need of assigning login credentials.",children:t.jsx(fk,{})})]}),b("withoutEmail")&&t.jsx(S,{fontSize:"12px",color:p.greyNeutral[60],children:"* User will be added to team directly"})]}),t.jsx(Ue,{width:"calc(100% + 48px)",ml:"-24px",mt:"24px"}),t.jsxs(ge,{p:"0",mt:"16px",borderTop:"none",justifyContent:"space-between",children:[t.jsx(k,{onClick:n,children:"Cancel"}),t.jsx(k,{"data-testid":"invite",onClick:f(N),processing:s||j||_,disabled:u,children:"Invite"})]})]})]})},yk=({onCancel:e,params:n})=>{const s=P(),{isUpdateLoading:r}=n??{},a=fe(p=>p.team.data),{teamMembers:i}=Ll(),{teamInvites:o=[]}=bl(),l=((i==null?void 0:i.total)??0)+(o==null?void 0:o.filter(p=>!(p!=null&&p.isRejected)).length),u=((a==null?void 0:a.seats)??0)-l,d=()=>{e&&e(),s(Q())};return t.jsx(he,{children:t.jsx(Ck,{seatNumLeft:u,isUpdateLoading:r,onCloseModal:d})})},Ek=y(Ce,{target:"e1mw15gt0"})("color:",({theme:e})=>e.palette.greyNeutral[200],";line-height:19px;margin-top:2px;font-size:14px;line-height:20px;& input{padding:10px 12px;}"),Sk=({onCancel:e})=>{const n=P(),[s,r]=c.useState(""),{createGroup:a}=sx(),i=()=>
122{if(!(s!=null&&s.trim())){n(Z({type:"error",message:"Please enter a name"}));return}n(Q()),a({name:s})},o=()=>{e&&e(),n(Q())},l=u=>{r(u.target.value)};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(S,{color:"#000E33",fontWeight:"600",fontSize:"12px",lineHeight:"16px",children:"Group Name"}),t.jsx(Ek,{onChange:l,value:s,type:"text",placeholder:"Group Name"})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:o,children:"Cancel"}),t.jsx(k,{onClick:i,children:"Create"})]})]})},bk=({onCancel:e,onConfirm:n,params:s})=>{const r=P(),a=()=>{n==null||n(s),r(Q())},i=()=>{e&&e(),r(Q())};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(S,{children:"Are you sure you want to delete this group?"}),t.jsx(S,{color:"greyBlue.60",mt:"8px",children:"All the members of this group will remain in your team but without a group. You can assign a group later in the manage team page."})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:i,children:"Cancel"}),t.jsx(k,{onClick:a,"data-testid":"modal-group-delete",children:"Confirm"})]})]})},Lk=y(Ce,{target:"esffhje0"})("color:",({theme:e})=>e.palette.greyNeutral[200],";margin-top:2px;font-size:14px;line-height:20px;& input{padding:10px 12px;}"),wk=({onCancel:e,params:n})=>{const s=P(),{groupId:r,name:a}=n,[i,o]=c.useState(a),{palette:l}=Ve(),{updateGroup:u}=rx(),d=()=>{if(!(i!=null&&i.trim())){s(Z({type:"error",message:"Please enter a name"}));return}s(Q()),u({groupId:r,name:i})},p=()=>{e&&e(),s(Q())},h=m=>{o(m.target.value)};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(S,{color:l.greyNeutral[100],fontWeight:"600",fontSize:"12px",lineHeight:"16px",children:"Group Name"}),t.jsx(Lk,{width:"100%",onChange:h,value:i,type:"text",placeholder:"Group Name"})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:p,children:"Cancel"}),t.jsx(k,{onClick:d,children:"Save"})]})]})},Tk=({onCancel:e,params:n})=>{const s=P(),[r,a]=c.useState(n.teamName),{updateTeam:i}=nf(),o=()=>{e&&e(),s(Q())},l=()=>{i({teamId:(n==null?void 0:n.id)??-1,name:r}),o()};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(jt,{color:"#000E33",fontWeight:"600",fontSize:"12px",lineHeight:"16px",mb:"4px",children:"Team Name"}),t.jsx(Ce,{onChange:u=>a(u.target.value),value:r,type:"text",placeholder:"Team name"})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:o,"data-testid":"modal-team-cancel",children:"Cancel"}),t.jsx(k,{onClick:l,"data-testid":"modal-team-save",children:"Save"})]})]})},Ud=y(g,{target:"eyevn2s0"})("background-color:",({theme:e})=>e.palette.bg.blue,";border-radius:8px;padding:10px 16px;"),jk=({message:e,attachments:n,subject:s})=>t.jsxs(g,{display:"flex",flexDirection:"column",gap:"8px",maxHeight:"480px",overflow:"auto",children:[s&&t.jsxs(t.Fragment,{children:[t.jsx(S,{color:"greyBlue.60",semibold:!0,fontSize:"12px",lineHeight:"16px",children:"Subject:"}),t.jsx(Ud,{children:t.jsx(S,{color:"greyNeutral.100",children:s})})]}),e&&t.jsxs(t.Fragment,{children:[t.jsx(S,{color:"greyBlue.60",semibold:!0,fontSize:"12px",lineHeight:"16px",children:"Message:"}),t.jsx(Ud,{children:t.jsx(S,{color:"greyNeutral.100",children:F0(e)})})]}),!!(n!=null&&n.length)&&t.jsxs(t.Fragment,{children:[t.jsx(S,{color:"greyBlue.60",semibold:!0,fontSize:"12px",lineHeight:"16px",children:"Attachments:"}),t.jsx(g,{display:"flex",flexWrap:"wrap",gap:"8px",children:n.map(r=>t.jsx(os,{name:r.file_name},r.file_uri))})]})]}),vk=y("p",{target:"eizbeww0"})("color:",({theme:e})=>e.palette.additional.red50,";font-size:12px;line-height:16px;margin-top:16px;"),Ik=({onCancel:e,params:n})=>{var K;const s=P(),{onConfirm:r,field:a,type:i,preselectCategory:o,noTemplatesMessage:l}=n,[u,d]=c.useState(),[p,h]=c.useState(),[m,f]=c.useState(),[C,E]=c.useState(),{data:b,isLoading:w}=af({},{onSuccess:({categories:re})=>{if(o){const ae=re.find(({name:pe})=>pe===o);d(ae==null?void 0:ae.id),f({label:(ae==null?void 0:ae.name)||"",value:(ae==null?void 0:ae.id)||0})}}}),{categories:I=[],total:T}=b??{},{templates:j=[],isLoading:L}=rf(u),{withSubject:_,maxLength:N=0,withAttachments:A}=Ph(i,a),R=I.filter(({id:re})=>re).map(({name:re,totalTemplates:ae,id:pe})=>({label:`${re} (${ae})`,value:pe})),V=j.filter(({categoryId:re})=>!u||re===u).map(({name:re,id:ae})=>({label:re,value:ae})),O=j.find(({id:re})=>re===p),{subject:B="",message:D="",attachments:M}=((K=O==null?void 0:O.content)==null?void 0:K.sequence[0])??{},F=N===0?!1:(D==null?void 0:D.length)>=N,W=F?D.slice(0,N):D,ne=async()=>{r&&await r(W,_&&B,A&&M),s(Q())},$=()=>{e&&e(),s(Q())},z=()=>w||L?t.jsx(he,{children:t.jsx(Pe,{marginTop:"0"})}):T?V.length?t.jsx(he,{children:t.jsxs(g,{display:"grid",gridTemplateColumns:"1fr 1fr",columnGap:"16px",children:[t.jsxs(g,{display:"flex",flexDirection:"column",gap:"16px",children:[t.jsx(Xe,{label:"Category",value:m,options:R,placeholder:"Select Category",isDisabled:!!o,searchable:!0,onChange:re=>{f(re);const{value:ae}=re??{};d(ae),h(0),E(null)}}),t.jsx(Xe,{label:"Template*",value:C,options:V,placeholder:"Search Template",searchable:!0,onChange:re=>{E(re);const{value:ae}=re??{};h(ae)}})]}),t.jsxs(g,{children:[t.jsx(jk,{subject:_?B:"",message:D,attachments:M}),F&&t.jsx(vk,{children:"Template message is too long, shortened to 280 characters"})]})]})}):t.jsx(he,{children:t.jsx(S,{children:l||"No Category Templates"})}):t.jsx(he,{children:t.jsx(S,{children:"You don't have templates created"})});return t.jsxs(t.Fragment,{children:[z(),t.jsxs(ge,{children:[t.jsx(k,{onClick:$,children:"Cancel"}),t.jsx(k,{onClick:ne,disabled:!T,children:"Add"})]})]})},_k=({onCancel:e,params:n})=>{const s=P(),{deleteTemplate:r,isLoading:a}=sf((n==null?void 0:n.id)??-1,n==null?void 0:n.goBack),i=()=>{r()},o=()=>{e&&e(),s(Q())};return t.jsxs(t.Fragment,{children:[t.jsx(he,{children:t.jsx(S,{color:"greyBlue.60",children:"Are you sure to delete this template?"})}),t.jsxs(ge,{children:[t.jsx(k,{onClick:o,children:"Cancel"}),t.jsx(k,{processing:a,onClick:i,children:"Confirm"})]})]})},Ak=e=>c.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("g",{clipPath:"url(#clip0_1083_59034)"},c.createElement("path",{d:"M6.25 10H11.25M6.25 6.66667H8.75",stroke:"#527CEB",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M7.08325 16.6665C7.95857 17.3912 9.012 17.853 10.2195 17.9322C11.1709 
12217.9946 12.1642 17.9945 13.1137 17.9322C13.4406 17.9108 13.797 17.8338 14.1039 17.709C14.4454 17.5702 14.6162 17.5008 14.703 17.5113C14.7897 17.5219 14.9156 17.6135 15.1675 17.7967C15.6115 18.1198 16.1708 18.3519 17.0003 18.332C17.4197 18.3219 17.6295 18.3169 17.7234 18.1589C17.8172 18.0009 17.7003 17.7822 17.4664 17.3449C17.1421 16.7383 16.9366 16.0439 17.248 15.4875C17.7843 14.6928 18.2399 13.7516 18.3064 12.7351C18.3422 12.1889 18.3422 11.6233 18.3064 11.0771C18.2621 10.3998 18.0977 9.75589 17.8342 9.1665",stroke:"#527CEB",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),c.createElement("path",{d:"M10.2875 14.5721C13.2504 14.377 15.6106 12.0056 15.8048 9.02852C15.8428 8.44593 15.8428 7.84259 15.8048 7.25999C15.6106 4.28291 13.2504 1.91151 10.2875 1.71638C9.27662 1.64981 8.22124 1.64995 7.21245 1.71638C4.24948 1.91151 1.88933 4.28291 1.69513 7.25999C1.65712 7.84259 1.65712 8.44593 1.69513 9.02852C1.76586 10.1128 2.24989 11.1168 2.81973 11.9645C3.15059 12.5579 2.93224 13.2987 2.58761 13.9457C2.33912 14.4122 2.21488 14.6454 2.31464 14.8139C2.4144 14.9824 2.63723 14.9878 3.08289 14.9986C3.96422 15.0198 4.55853 14.7723 5.03027 14.4276C5.29783 14.2322 5.43161 14.1344 5.52381 14.1232C5.61601 14.112 5.79746 14.186 6.1603 14.3341C6.48641 14.4671 6.86506 14.5493 7.21245 14.5721C8.22124 14.6386 9.27662 14.6387 10.2875 14.5721Z",stroke:"#527CEB",strokeWidth:1.5,strokeLinejoin:"round"})),c.createElement("defs",null,c.createElement("clipPath",{id:"clip0_1083_59034"},c.createElement("rect",{width:20,height:20,fill:"white"})))),Nk=y(g,{target:"ewz75rm1"})({name:"zwwge2",styles:"background-color:#ffffff;border-top-left-radius:12px;border-top-right-radius:12px;padding:18px 16px;display:flex;align-items:center;gap:8px"}),kk=y(g,{target:"ewz75rm0"})({name:"1qpigqg",styles:"background-color:#ffffff;border-bottom-left-radius:12px;border-bottom-right-radius:12px;padding:16px;max-height:400px;overflow-y:auto"}),Rk=({onCancel:e,params:n})=>{const s=P(),r=Rt(),{template:a,categoryLabel:i,canEdit:o=!0,canClone:l=!0}=n,{content:u,isAvailableForTeam:d,name:p,categoryId:h,id:m}=a,{message:f,subject:C="",attachments:E}=u.sequence[0],b=()=>{e&&e(),s(Q())},w=T=>{const j={name:T?p:`${p} (clone)`,id:m,category:{label:i,value:String(h)},availability:d?"team":"personal",message:f,subject:C,isSubjectShown:!!C,attachments:E,isEdit:T};s(Q()),r("/templates/new",{state:j})},I=E&&E.slice(0,6);return t.jsxs(t.Fragment,{children:[t.jsxs(he,{bgcolor:"bg.greyBlue",children:[t.jsxs(Nk,{children:[t.jsx(Ak,{}),t.jsx(S,{fontSize:"16px",lineHeight:"24px",medium:!0,children:"Template Message"})]}),t.jsx(Ue,{}),t.jsxs(kk,{children:[C&&t.jsxs(t.Fragment,{children:[t.jsx(S,{mb:"2px",medium:!0,fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",children:"Subject:"}),t.jsx(S,{color:"blue.dark",mb:"24px",children:C})]}),f&&t.jsxs(t.Fragment,{children:[t.jsx(S,{mb:"2px",medium:!0,fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",children:"Message:"}),t.jsx(S,{color:"blue.dark",mb:"24px",whiteSpace:"pre-wrap",children:f})]}),!!(I!=null&&I.length)&&t.jsx(g,{display:"flex",flexWrap:"wrap",gap:"8px",children:I.map(T=>t.jsx(os,{name:T.file_name,fileId:T.file_uri,margin:"0px"},T.file_uri))})]})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:b,children:"Cancel"}),t.jsxs(g,{display:"flex",gap:"16px",children:[l&&t.jsx(k,{onClick:()=>w(!1),children:"Clone"}),o&&t.jsx(k,{onClick:()=>w(!0),children:"Edit"})]})]})]})},Mk=({params:e,onConfirm:n,onCancel:s})=>{const r=P(),[a,i]=c.useState(e!=null&&e.url?dr(e.url):""),[o,l]=c.useState((e==null?void 0:e.text)||""),u=()=>{if(!a.trim())return;const p=dr(a);n&&n({url:p,text:o.trim()||p,openInNewWindow:!1,download:!1}),r(Q())},d=()=>{s&&s(),r(Q())};return t.jsxs(t.Fragment,{children:[t.jsx(et,{onClose:d,children:"Insert Link"}),t.jsx(he,{children:t.jsxs(g,{display:"flex",flexDirection:"column",gap:"16px",children:[t.jsx(Ce,{label:"URL to link",value:a,onChange:p=>i(p.target.value),placeholder:"https://example.com"}),t.jsx(Ce,{label:"Text to display",value:o,onChange:p=>l(p.target.value),placeholder:"Link text"})]})}),t.jsxs(ge,{alignToTheEnd:!0,children:[t.jsx(k,{onClick:d,children:"Cancel"}),t.jsx(k,{variant:"primary",onClick:u,disabled:!a.trim(),children:"Submit"})]})]})},Pk=y(g,{target:"e191xy722"})({name:"1ac6y16",styles:"padding:10px 40px 0 40px"}),Ok=y(g,{target:"e191xy721"})({name:"1yxy5t5",styles:"display:flex;flex-direction:row;gap:8px"}),Bd=y(g,{target:"e191xy720"})({name:"1d3w5wq",styles:"width:100%"}),Ji=[{value:"3",label:"3 hours"},{value:"6",label:"6 hours"},{value:"12",label:"12 hours"},{value:"24",label:"24 hours"},{value:"custom_value",label:"Custom"}],Hd=[{value:lo.TOP_MATCH,label:"Top match"},{value:lo.LATEST,label:"Latests"}],Dk=({params:e})=>{var A,R,V;const n=P(),{trend:s}=e??{},r=((A=Ji.find(O=>O.value===String(s==null?void 0:s.interval)))==null?void 0:A.value)||"custom_value",[a,i]=c.useState((s==null?void 0:s.term)||""),[o,l]=c.useState(s?r:"3"),[u,d]=c.useState((s==null?void 0:s.sortBy)||lo.TOP_MATCH),[p,h]=c.useState((s==null?void 0:s.interval)||"3"),m=O=>{n(Z({type:"error",message:O.message,autoCloseTime:3e3}))},{createTrend:f,isLoading:C}=of({onError:m}),{updateTrend:E,isLoading:b}=uf({onError:m}),w=o==="custom_value",I=()=>
122{if(a&&(!w||+p>=3&&+p<=360)){const O={term:a,sortBy:u,interval:w?+p:+o};s?E({...s,...O}):f(O)}else n(Z({type:"error",message:a?"Interval range should be with in 3 hours and 360 hours/15 days.":"Please add keyword.",autoCloseTime:3e3}))},T=()=>{n(Q())},j=O=>{i(O.target.value)},L=O=>{O&&l(O==null?void 0:O.value)},_=O=>{const B=parseInt(O.target.value,10);h(O.target.value),(B<3||B>360)&&n(Z({type:"error",autoCloseTime:3e3,message:"Interval range should be with in 3 hours and 360 hours/15 days."}))},N=O=>{O&&d(O.value)};return t.jsxs(t.Fragment,{children:[t.jsxs(Pk,{p:"24px !important",children:[t.jsx(S,{fontSize:"12px",color:"greyBlue.100",semibold:!0,children:"Keyword"}),t.jsx(Ce,{name:"keyword",onChange:j,placeholder:"Keyword",type:"text",value:a}),t.jsxs(Ok,{mt:"16px",children:[t.jsxs(Bd,{children:[t.jsx(S,{fontSize:"12px",color:"greyBlue.100",semibold:!0,children:"Interval:"}),t.jsx(Xe,{onChange:L,options:Ji,value:{value:o,label:((R=Ji.find(O=>O.value===o))==null?void 0:R.label)||"Custom"}}),w&&t.jsx(g,{mt:"4px",children:t.jsx(Ce,{type:"number",placeholder:"Custom hours",value:p,onChange:_})})]}),t.jsxs(Bd,{children:[t.jsx(S,{fontSize:"12px",color:"greyBlue.100",semibold:!0,children:"Sort by:"}),t.jsx(Xe,{onChange:N,options:Hd,value:{value:u,label:((V=Hd.find(O=>O.value===u))==null?void 0:V.label)||"Top match"}})]})]})]}),t.jsxs(ge,{display:"flex",justifyContent:"space-between",children:[t.jsx(k,{onClick:T,children:"Cancel"}),t.jsx(k,{onClick:I,processing:C||b,disabled:C||b,children:"Save"})]})]})},Uk=y(S,{target:"e1jg66dd0"})({name:"1sdjnkx",styles:"word-break:break-word"}),Bk=({params:e})=>{const n=P(),{trend:s}=e??{},{deleteTrend:r,isDeleteLoading:a}=lf(s==null?void 0:s.id,{onSuccess:()=>{n(Q())}}),i=()=>n(Q()),o=()=>r();return t.jsxs(t.Fragment,{children:[t.jsx(et,{"data-testid":"delete-trend",children:"Delete Trend"}),t.jsx(he,{children:t.jsxs(S,{color:"violet.dark",children:["Are you sure you want to delete"," ",t.jsx(Uk,{color:"violet.dark",display:"inline",children:s==null?void 0:s.term}),"?"]})}),t.jsxs(ge,{children:[t.jsx(k,{onClick:i,children:"Cancel"}),t.jsx(k,{variant:"primary",onClick:o,processing:a,children:"Confirm"})]})]})},Hk=({onCancel:e,onConfirm:n,params:{validateEmail:s}})=>{var p;const r=P(),{profile:a}=fe(h=>h.user),{register:i,formState:{errors:o},handleSubmit:l}=lt({defaultValues:{email:a.email??""}}),u=({email:h})=>{n&&n(h),r(Q())},d=()=>{e&&e(),r(Q())};return t.jsxs(t.Fragment,{children:[t.jsxs(he,{children:[t.jsx(Ce,{label:"Please type the email you want to use for test SMTP. This email should be different from the email typed for SMTP Username.",register:i,name:"email",placeholder:"email",parameters:{required:"Please enter email",validate:h=>s(h)||"Email should be different from the email typed for SMTP Username",pattern:{value:yn,message:"Please enter a valid email"}}}),o.email&&t.jsx(S,{color:"additional.red50",mt:"6px",children:(p=o.email)==null?void 0:p.message})]}),t.jsxs(ge,{children:[t.jsx(k,{onClick:d,children:"Cancel"}),t.jsx(k,{onClick:l(u),children:"Submit"})]})]})},Vk=(e,n)=>{const r={[Y.SIGNATURE]:lw,[Y.USE_EMAIL_ALIAS]:Kb,[Y.CREATE_TREND]:Dk,[Y.DELETE_TREND]:Bk,[Y.POST_BY]:hj,[Y.POST_AUDIENCE]:Cj,[Y.CREATE_TAG]:Od,[Y.UPDATE_TAG]:Od,[Y.DELETE_TAG]:lk,[Y.DELETE_TEMPLATE]:_k,[Y.VIEW_TEMPLATE]:Rk,[Y.INTEGRATIONS]:rw,[Y.DELETE_CONVERSATION]:tj,[Y.ADD_CONNECTIONS_TAGS]:sk,[Y.ADD_LEADS_TAGS]:rk,[Y.DELETE_LEAD_TAG]:zT,[Y.SAVE_LEAD_FINDER_LIST]:$T,[Y.SAVE_LEAD_FINDER_FILTER]:ej,[Y.EDIT_LEAD_FINDER_FILTER]:JT,[Y.DELETE_LEAD_FINDER_FILTER]:GT,[Y.DELETE_SAVED_LIST]:WT,[Y.DELETE_TEAM_MEMBER]:uk,[Y.SELECT_CONNECTION_DEGREE]:rT,[Y.CAMPAIGN_KEYWORDS]:Kw,[Y.SELECT_PROFILE_LANGUAGE]:oT,[Y.AUTOCOMPLETE_SEARCH]:Zw,[Y.CHOOSE_TEMPLATE]:Ik,[Y.CONFIRM_INVITATION_TO_TEAM]:dk,[Y.EXPORT_LEAD_CSV]:rj,[Y.VIEW_LEAD]:OT,[Y.TEAM_GROUP_CREATE]:Sk,[Y.TEAM_GROUP_UPDATE]:wk,[Y.TEAM_GROUP_DELETE]:bk,[Y.CHANGE_EMAIL]:tk,[Y.PAUSE_SUBSCRIPTION]:Iw,[Y.UNPAUSE_SUBSCRIPTION]:Fw,[Y.CANCEL_SUBSCRIPTION]:bw,[Y.CANCEL_SUBSCRIPTION_OPTIONS]:jw,[Y.CANCEL_SUBSCRIPTION_FORM]:ww,[Y.SUBSCRIPTION_CANCELED]:Hw,[Y.SUBSCRIPTION_PAUSED]:Vw,[Y.RENEWAL_PROMO]:kw,[Y.RENEWAL_PROMO_CONFIRM]:Rw,[Y.RENEWAL_PROMO_SUCCESS]:Uw,[Y.CANCELLATION_DISCOUNT_APPLIED]:Sw,[Y.CANCELLATION_DISCOUNT]:Cw,[Y.INVITE]:Jw,[Y.UPDATE_CREDIT_CARD]:$w,[Y.SAVE_BILLING_CYCLE]:Bw,[Y.EXPORT_REPLIES]:ij,[Y.DOWNGRADE_ROLE]:pk,[Y.RESCHEDULE_POST]:vj,[Y.RESTART_CAMPAIGN_SEARCH]:nT,[Y.
122EXPORT_CONTACTS]:sj,[Y.EXPORT_PROCESSING]:aj,[Y.TEST_SMTP]:Hk,[Y.EXPORT_TEAM_STATS_CSV]:oj,[Y.EXPORT_UNSUBSCRIBED_EMAILS_CSV]:lj,[Y.EXPORT_CAMPAIGN_ACTIVITY_CSV]:nj,[Y.BILLING_HISTORY]:pw,[Y.SET_PASSWORD]:nk,[Y.SEND_TEST_EMAIL]:FT,[Y.VIEW_SEQUENCE_TEMPLATE]:ek,[Y.CHOOSE_SEQUENCE_TEMPLATE]:XN,[Y.SAVE_AS_SEQUENCE_TEMPLATE]:JN,[Y.INVITE_MEMBER]:yk,[Y.TEAM_NAME]:Tk,[Y.UPDATE_CAMPAIGN_NAME]:Qw,[Y.CHOOSE_CAMPAIGN]:UT,[Y.CHOOSE_CAMPAIGN_SAVED_LIST]:HT,[Y.DELETE_SEQUENCE_TREE_BLOCK]:Xw,[Y.INSERT_LINK]:Mk}[e]??null;return t.jsx(r,{...n})},Fk=js(g)`
123  margin: 30px 0;
124  width: 480px;
125  min-width: 480px;
126  border-radius: 12px;
127  background-color: #ffffff;
128  outline: none;
129  opacity: ${({isClosing:e,isOpening:n})=>e||n?0:1};
130  transition: opacity ${an}ms ${gn};
131
132  @media (prefers-reduced-motion: reduce) {
133    transition: none;
134  }
135
136  &.medium {
137    width: 600px;
138  }
139
140  &.large {
141    width: 900px;
142  }
143
144  &.auto {
145    width: auto;
146  }
147`,$k=js(g)`
148  position: fixed;
149  width: 100%;
150  height: 100vh;
151  overflow: auto;
152  z-index: ${R
1525};
153  background-color: rgba(0, 0, 0, 0.5);
154  visibility: ${({isLastModal:e})=>!e&&"hidden"};
155  opacity: ${({isClosing:e,isOpening:n})=>e||n?0:1};
156  transition: opacity ${an}ms ${gn};
157
158  @media (prefers-reduced-motion: reduce) {
159    transition: none;
160  }
161`,Gk=js(g)`
162  width: 100%;
163  height: 100%;
164
165  display: flex;
166  justify-content: center;
167`,zk=js(g)`
168  margin: auto;
169`,Wk={name:"1sy9iaq",styles:"body{overflow:hidden;}"},qk=({modal:e,index:n,isLastModal:s})=>{const r=P(),[a,i]=c.useState(!1),[o,l]=c.useState(!0),{type:u,onCancel:d,onConfirm:p,headerText:h,params:m={},modalStyles:f,backdropStyles:C,size:E="default",descriptionText:b="",isActionsShown:w=!0,cancelButtonLoading:I,confirmButtonLoading:T,confirmButtonLabel:j,cancelButtonLabel:L,confirmButtonStyles:_,confirmButtonVariant:N="primary"}=e;c.useEffect(()=>{requestAnimationFrame(()=>{l(!1)})},[]);const A=O=>{i(!0),setTimeout(()=>{r(Q())},yr)},R=()=>{p&&p(m),A()},V=()=>{d&&d(),A()};return t.jsx($k,{onClick:V,style:C,isLastModal:s,isClosing:a,isOpening:o,children:t.jsxs(Gk,{children:[t.jsx(Mo,{styles:Wk}),t.jsx(zk,{children:t.jsxs(Fk,{style:f,"data-testid":u,className:Ee(E),isClosing:a,isOpening:o,onClick:O=>{O.stopPropagation()},children:[!!h&&t.jsx(et,{onClose:V,children:h}),u?Vk(u,{...e,...m,onRequestClose:V}):t.jsxs(t.Fragment,{children:[t.jsx(he,{children:t.jsx(S,{color:"violet.dark",children:t.jsx(cn,{parseText:b})})}),w&&t.jsxs(ge,{children:[t.jsx(k,{onClick:V,processing:I,children:L||"Cancel"}),t.jsx(k,{variant:N,onClick:R,processing:T,style:_,children:j||"Confirm"})]})]})]})})]})},n)},Zk=()=>{const e=fe(n=>n.modal);return Array.isArray(e)?t.jsx(t.Fragment,{children:e.map((n,s)=>t.jsx(qk,{modal:n,index:s,isLastModal:s===e.length-1},s))}):null},$n="/lead-finder",eo="/lead-finder?tab=saved-lists",Vd="/campaign/new/linkedin/saved-list",Yk="[data-tutorial='lead-finder-filters']",g6="[data-tutorial='lead-finder-search-btn']",x6="[data-tutorial='save-list-modal-name']",Kk="[data-tutorial='save-list-modal-save']",Qk="[data-tutorial='saved-lists-first-item']",Xk="[data-tutorial='saved-lists-menu']",Jk="[data-tutorial='saved-lists-menu-dropdown']",eR="[data-tutorial='campaign-audience-form']",tR="[data-tutorial='campaign-audience-continue']",nR="[data-tutorial='campaign-audience-select-menu']",sR="[data-tutorial='saved-lists-tab']",rR={footerSelector:g6,footerGap:16},nr=()=>{var s;const e=document.querySelector(`${sR} span`),n=Number(((s=e==null?void 0:e.textContent)==null?void 0:s.trim())??"0");return Number.isFinite(n)&&n>0},aR=e=>{if(e.querySelector('[class*="-multiValue"]'))return!0;const n=document.querySelector("[data-tutorial='campaign-audience-continue']");return n instanceof HTMLButtonElement&&!n.disabled},iR=()=>!(document.querySelector(x6)||!nr()&&d9()),oR={id:"saved-lists-feature",interactionTourId:1,autoStart:!1,intro:{title:"Discover Saved Lists",description:"Learn how to search for leads, save them to a list, and launch a LinkedIn campaign - all in 12 quick steps.",startLabel:"Start tour",skipLabel:"Maybe later"},steps:[{id:"lead-finder-search-tab",page:$n,target:"[data-tutorial='lead-finder-search-tab']",title:"Search Tab",description:"Start on the Search tab to find new leads.",action:{type:"click"},placement:"bottom"},{id:"lead-finder-filters",page:$n,target:Yk,title:"Search Filters",description:"Set your search criteria - such as job title, company, or location. Select or update at least 1 filter to continue.",action:{type:"manual"},placement:"right",scroll:rR},{id:"lead-finder-search-btn",page:$n,target:g6,title:"Run Search",description:"Click Search to load profiles that match your filters.",action:{type:"click"},placement:"top"},{id:"save-list-header",page:$n,target:"[data-tutorial='save-list-header']",title:"Create a List",description:"Click Save List to store the current search results as a new saved list.",action:{type:"click"},placement:"bottom",showSkip:nr,readyWhen:xc,waitingDescription:"Please wait while search results are loading…",waitBeforeNextStep:!0},{id:"save-list-modal-name",page:$n,target:x6,title:"List Name",description:"Enter a name for your new saved list.",action:{type:"input",matches:e=>e.trim().length>=1},placement:"bottom",showSkip:nr},{id:"save-list-modal-save",page:$n,target:Kk,title:"Save the List",description:"Confirm b
169y clicking Save.",action:{type:"click"},placement:"top",showSkip:nr},{id:"saved-lists-tab",page:$n,target:"[data-tutorial='saved-lists-tab']",title:"Saved Lists Tab",description:"Switch to this tab to view and manage your saved lead lists.",action:{type:"click"},placement:"bottom",showSkip:nr,readyWhen:iR,waitingDescription:"Please wait until your list finishes saving…",waitBeforeNextStep:!0},{id:"saved-lists-first-item",page:eo,target:Qk,title:"Open the List",description:"Click your newly created list to view the saved profiles inside.",action:{type:"click"},placement:"right"},{id:"saved-lists-menu",page:eo,target:Xk,title:"List Options",description:"Click the 3-dot menu (…) next to your list to open available actions.",action:{type:"click"},placement:"right",passthroughSelectors:[Jk]},{id:"saved-lists-create-campaign",page:eo,target:"[data-tutorial='saved-lists-create-campaign']",title:"Create Campaign",description:"Select Create campaign to start outreach using the leads in this saved list.",action:{type:"click"},placement:"right"},{id:"campaign-audience-overview",page:Vd,target:eR,title:"Choose Your Audience",description:"Your saved list is pre-selected for this campaign. Review your selection and click Next to continue.",action:{type:"manual"},placement:"bottom",showSkip:!1,readyWhen:aR,waitingDescription:"Select at least one saved list to continue…",passthroughSelectors:[nR],includePassthroughInSpotlight:!0},{id:"campaign-audience-continue",page:Vd,target:tR,title:"Continue to Sequence",description:"Click Continue to create your campaign and start building your sequence.",action:{type:"click"},showSkip:!1,placement:"bottom",readyWhen:xc,waitingDescription:"Select at least one saved list to continue…",waitBeforeNextStep:!0}],summary:{title:"Tour finished!",description:"You’ve completed the full flow: searching for leads, saving a list, and launching campaign setup.",ctaLabel:"Set Up Sequence",showStepsList:!1}},lR=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 12C1.75 6.06294 6.56294 1.25 12.5 1.25C18.4371 1.25 23.25 6.06294 23.25 12C23.25 17.9371 18.4371 22.75 12.5 22.75C6.56294 22.7
1695 1.75 17.9371 1.75 12ZM12.5 6.75C11.8096 6.75 11.25 7.30964 11.25 8C11.25 8.69036 11.8096 9.25 12.5 9.25C13.1904 9.25 13.75 8.69036 13.75 8C13.75 7.30964 13.1904 6.75 12.5 6.75ZM13.25 11C13.25 10.5858 12.9142 10.25 12.5 10.25C12.0858 10.25 11.75 10.5858 11.75 11V16C11.75 16.4142 12.0858 16.75 12.5 16.75C12.9142 16.75 13.25 16.4142 13.25 16V11Z",fill:"currentColor"})),cR=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M14.0576 1.14124C15.5581 1.81876 16.6988 3.85563 18.9801 7.92937L20.6107 10.8412C22.8036 14.757 23.9 16.715 23.7166 18.3182C23.5566 19.717 22.8143 20.9835 21.672 21.8066C20.3627 22.75 18.1187 22.75 13.6306 22.75H10.3694C5.88135 22.75 3.63732 22.75 2.32806 21.8066C1.18579 20.9835 0.443462 19.717 0.283451 18.3182C0.100049 16.715 1.19649 14.757 3.38938 10.8412L5.01998 7.92937C7.30127 3.85563 8.44192 1.81876 9.94242 1.14124C11.2506 0.550575 12.7495 0.550575 14.0576 1.14124ZM12.75 9C12.75 8.58579 12.4142 8.25 12 8.25C11.5858 8.25 11.25 8.58579 11.25 9V13C11.25 13.4142 11.5858 13.75 12 13.75C12.4142 13.75 12.75 13.4142 12.75 13V9ZM12 15.25C11.3096 15.25 10.75 15.8096 10.75 16.5C10.75 17.1904 11.3096 17.75 12 17.75C12.6904 17.75 13.25 17.1904 13.25 16.5C13.25 15.8096 12.6904 15.25 12 15.25Z",fill:"currentColor"})),m1=y("div",{target:"e4ajyvu4"})({name:"132v6mb",styles:"max-width:300px;display:flex;align-items:center;gap:8px;border-radius:12px;border:1px solid;padding:12px"}),ei=y("div",{target:"e4ajyvu3"})({name:"88wbas",styles:"display:flex;align-items:center;flex-shrink:0;width:24px;height:24px"}),dR=y(m1,{target:"e4ajyvu2"})("border-color:#1b8d2d;background-color:#ebf8f1;&>",ei,"{color:#1b8d2d;}"),uR=y(m1,{target:"e4ajyvu1"})("border-color:#1b4ed2;background-color:#f1f5ff;&>",ei,"{color:#1b4ed2;}"),pR=y(m1,{target:"e4ajyvu0"})("border-color:#d3241d;background-color:#fce9e8;&>",ei,"{color:#d3241d;}"),hR=({message:e,type:n,close:s})=>{const{Icon:r,Container:a}=c.useMemo(()=>{switch(n){case"error":return{Icon:cR,Container:pR};case"success":return{Icon:Zu,Container:dR};default:return{Icon:lR,Container:uR}}},[n]);return t.jsxs(a,{children:[t.jsx(ei,{children:t.jsx(r,{width:"24px",height:"24px"})}),t.jsx(S,{"data-testid":"toast-message",color:"greyNeutral.100",semibold:!0,children:e}),t.jsx(Jt,{onClick:s,color:"greyBlue.60",flexShrink:"0",children:t.jsx(Xt,{})})]})},mR=op({enter:"zoomIn",exit:"zoomOut"}),gR=Xn({name:"4pt2un",styles:"border-radius:12px"}),xR=2e9,fR=()=>{const[e,n]=c.useState(0),{trace:s}=fe(r=>r.toast);return c.useEffect(()=>{const r=(s==null?void 0:s.length)||0;s!=null&&s.length&&r>e&&(n(r),Ao(({closeToast:a})=>t.jsx(hR,{message:s[0].message,close:a,type:s[0].type}),{autoClose:s[0].autoCloseTime,delay:s[0].delay,transition:mR,position:"top-right",style:{top:"auto",padding:0,minHeight:"fit-content",width:"auto",backgroundColor:"transparent"}}))},[e,s]),typeof document>"u"?null:Ro.createPortal(t.jsx(lp,{closeButton:!1,closeOnClick:!1,draggable:!1,hideProgressBar:!0,newestOnTop:!1,pauseOnFocusLoss:!1,pauseOnHover:!1,rtl:!1,toastClassName:gR,bodyStyle:{padding:0},style:{zIndex:xR}}),document.body)},CR=({children:e})=>t.jsx(cp,{clientId:f5,children:e}),yR=({children:e})=>{const{whitelabel:n}=Je();return t.jsx(dp,{appId:n.isWhiteLabelUser?"":x5,children:e})},ER="https://public.profitwell.com/js/profitwell.js",SR=["(function(i,s,o,g,r,a,m){i[o]=i[o]||function(){(i[o].q=i[o].q||[]).push(arguments)};","a=s.createElement(g);m=s.getElementsByTagName(g)[0];a.async=1;a.src=r+","'?auth='+s.getElementById(o+'-js').getAttribute('data-pw-auth');m.parentNode.insertBefore(a,m);})","(window,document,'profitwell','script','",ER,"');"].join(""),Fd=e=>kp(e).catch(()=>null),bR=({children:e})=>{const{userMe:n,isLoading:s}=st(),r=c.useMemo(()=>Fd(b1),[]),a=c.useMemo(()=>Fd(L1),[]);if(c.useEffect(()=>{if(!n)return;const o=document.createElement("script");return o.id="profitwell-js",o.setAttribute("data-pw-auth",n.isNewStripe?"3c299e046d8d93d312d461e1b7a9edd5":"4b64e6a7422c580eeda5bf0713486025"),o.innerHTML=`
170      ${SR}
171        profitwell('start', { 'user_email': '${n.isGhostUser?"":n.email}' });
172    `,document.body.appendChild(o),()=>{document.body.removeChild(o)}},[n]),s)return null;const i=n!=null&&n.isNewStripe?r:a;return n&&b1&&L1&&i?t.jsx(Np,{stripe:i,children:e}):t.jsx(t.Fragment,{children:e})},LR=({children:e,withLoader:n=!0}
172)=>{const{isAuth:s}=fe(h=>h.user),{isLoading:r,whitelabel:{isActive:a,isWhiteLabelUser:i}}=Je(),{companyName:o,favicon:l}=Fe(),{baseTheme:u,cssVarsThemePalette:d}=Sf(),p=()=>!a&&i&&!s?t.jsx(i6,{}):t.jsx(t.Fragment,{children:e});return n&&r?t.jsx(ut,{}):t.jsxs(up,{theme:u,children:[t.jsxs(pp,{children:[t.jsx("meta",{charSet:"utf-8"}),t.jsx("link",{rel:"icon",href:l,type:"image/x-icon"}),t.jsx("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),t.jsx("link",{rel:"apple-touch-icon",href:l}),t.jsx("title",{children:o})]}),t.jsx(Mo,{styles:hp(":root{",d,";}","")}),p()]})},wR=c.lazy(()=>ee(()=>import("./BIOKUjzt.js"),__vite__mapDeps([14,0,1,2,3,9,6,7,8,10,15,16,11,12,13])).then(e=>({default:e.Login}))),to=c.lazy(()=>ee(()=>import("./V3744JF7.js"),__vite__mapDeps([17,0,1,2,3,15,9,10,6,7,8,16,18,19,11,12,13])).then(e=>({default:e.SignUp}))),TR=c.lazy(()=>ee(()=>import("./BoOBqsnr.js"),__vite__mapDeps([20,0,1,2,3,6,7,8,9,10,15,16,11,12,13])).then(e=>({default:e.ForgotPassword}))),jR=c.lazy(()=>ee(()=>import("./BoOBqsnr.js"),__vite__mapDeps([20,0,1,2,3,6,7,8,9,10,15,16,11,12,13])).then(e=>({default:e.SetPassword}))),vR=c.lazy(()=>ee(()=>import("./jU4mrOkq.js"),__vite__mapDeps([21,0,1,2,3,9,10,6,7,8,11,12,13])).then(e=>({default:e.ConfirmEmail}))),IR=c.lazy(()=>ee(()=>import("./HVd07jQA.js"),__vite__mapDeps([22,0,1,2,3,23,6,7,8,9,10,16,11,12,13])).then(e=>({default:e.VerifyEmail}))),_R=c.lazy(()=>ee(()=>import("./DBmufRQM.js"),__vite__mapDeps([24,0,1,2,3,6,7,8,25,9,10,26,27,28,11,12,13])).then(e=>({default:e.Dashboard}))),AR=c.lazy(()=>ee(()=>import("./DZU0-oJC.js"),__vite__mapDeps([29,0,1,2,3,9,10,6,7,8,11,12,13])).then(e=>({default:e.Notifications}))),NR=c.lazy(()=>ee(()=>import("./DZU0-oJC.js"),__vite__mapDeps([29,0,1,2,3,9,10,6,7,8,11,12,13])).then(e=>({default:e.NotificationSettings}))),kR=c.lazy(()=>ee(()=>import("./BLp8GEX8.js"),__vite__mapDeps([30,0,1,2,3,6,7,8,9,10,11,12,13])).then(e=>({default:e.VideoLibrary}))),$d=c.lazy(()=>ee(()=>import("./DNenql6F.js"),__vite__mapDeps([31,32,0,1,2,3,6,7,8,33,9,10,34,35,36,37,38,39,11,12,13,40,41,42,43,44,45,46,47,48,49,50])).then(e=>({default:e.SingleCampaign}))),RR=c.lazy(()=>ee(()=>import("./BWe2FrGt.js"),__vite__mapDeps([49,0,1,2,3,6,7,8,9,10,48,11,12,13])).then(e=>({default:e.ChooseGeneralCampaignType}))),Gd=c.lazy(()=>ee(()=>import("./BMZMM33P.js"),__vite__mapDeps([47,0,1,2,3,6,7,8,36,9,10,37,33,48,11,12,13])).then(e=>({default:e.ChooseCampaignType}))),MR=c.lazy(()=>ee(()=>import("./CeC_lnZ7.js"),__vite__mapDeps([40,0,1,2,3,34,35,9,10,6,7,8,33,36,37,38,39,11,12,13])).then(e=>({default:e.NewCampaign}))),PR=c.lazy(()=>ee(()=>import("./DNenql6F.js"),__vite__mapDeps([31,32,0,1,2,3,6,7,8,33,9,10,34,35,36,37,38,39,11,12,13,40,41,42,43,44,45,46,47,48,49,50])).then(e=>({default:e.CampaignSequence}))),OR=c.lazy(()=>ee(()=>import("./ClIjvPV2.js"),__vite__mapDeps([51,0,1,2,3,6,7,8,9,10,11,12,13])).then(e=>({default:e.CampaignsStats}))),DR=c.lazy(()=>ee(()=>import("./BwtCyx0S.js"),__vite__mapDeps([52,0,1,2,3,6,7,8,25,9,10,53,11,12,13])).then(e=>({default:e.CampaignsActivity}))),UR=c.lazy(()=>ee(()=>import("./Dc_Ar2Am.js"),__vite__mapDeps([54,0,1,2,3,6,7,8,26,9,10,55,56,11,12,13])).then(e=>({default:e.CampaignsReplies}))),BR=c.lazy(()=>ee(()=>import("./C-6J-Tji.js"),__vite__mapDeps([57,0,1,2,3,6,7,8,9,10,58,59,60,11,12,13])).then(e=>({default:e.Activity}))),HR=c.lazy(()=>ee(()=>import("./DYNcVUVZ.js"),__vite__mapDeps([61,0,1,2,3,6,7,8,9,10,62,55,59,60,11,12,13])).then(e=>({default:e.Leads}))),VR=c.lazy(()=>ee(()=>import("./BKFumdrZ.js"),__vite__mapDeps([63,0,1,2,3,9,6,7,8,33,10,50,39,42,43,59,60,11,12,13])).then(e=>({default:e.Overview}))),FR=c.lazy(()=>ee(()=>import("./Cpw5FDja.js"),__vite__mapDeps([64,0,1,2,3,6,7,8,9,10,55,59,60,11,12,13])).then(e=>({default:e.IgnoredLeads}))),$R=c.lazy(()=>ee(()=>import("./DWiX_vu0.js"),__vite__mapDeps([65,0,1,2,3,6,7,8,25,9,10,11,12,13])).then(e=>({default:e.StatInfo}))),GR=c.lazy(()=>ee(()=>import("./DhQ4dBfb.js").then(e=>e.a),__vite__mapDeps([66,0,1,2,3,10,6,7,8,9])).then(e=>({default:e.Billing}))),zR=c.lazy(()=>ee(()=>Promise.resolve().then(()=>qP),void 0).then(e=>({default:e.BillingHistory}))),WR=c.lazy(()=>ee(()=>Promise.resolve().then(()=>ZP),void 0).then(e=>({default:e.BillingInformation}))),qR=c.lazy(()=>ee(()=>import("./DhQ4dBfb.js").then(e=>e.i),__vite__mapDeps([66,0,1,2,3,10,6,7,8,9])).then(e=>({default:e.CreateSubscription}))),ZR=c.lazy(()=>ee(()=>import("./DhQ4dBfb.js").then(e=>e.i),__vite__mapDeps([66,0,1,2,3,10,6,7,8,9])).then(e=>({default:e.EditSubscription}))),YR=c.lazy(()=>ee(()=>Promise.resolve().then(()=>YP),void 0).then(e=>({default:e.PaymentMethod}))),KR=c.lazy(()=>ee(()=>Promise.resolve().then(()=>KP),void 0).then(e=>({default:e.SubscriptionPlan}))),QR=c.lazy(()=>ee(()=>import("./CRIB642r.js"),__vite__mapDeps([67,0,1,2,3,6,7,8,9,10,68,69,70,71,72,11,12,13])).then(e=>({default:e.SubscriptionPlans}))),XR=c.lazy(()=>ee(()=>import("./BIydLLrD.js"),__vite__mapDeps([73,0,1,2,3,6,7,8,9,10,74,75,35,19,55,56,46,38,33,60,53,11,12,13])).then(e=>({default:e.BlacklistConnectionsPage}))),JR=c.lazy(()=>ee(()=>import("./BIydLLrD.js"),__vite__mapDeps([73,0,1,2,3,6,7,8,9,10,74,75,35,19,55,56,46,38,33,60,53,11,12,13])).then(e=>({default:e.BlacklistLeadsPage}))),eM=c.lazy(()=>ee(()=>import("./BIydLLrD.js"),__vite__mapDeps([73,0,1,2,3,6,7,8,9,10,74,75,35,19,55,56,46,38,33,60,53,11,12,13])).then(e=>({default:e.ConnectionsPage}))),tM=c.lazy(()=>ee(()=>import("./BIydLLrD.js"),__vite__mapDeps([73,0,1,2,3,6,7,8,9,10,74,75,35,19,55,56,46,38,33,60,53,11,12,13])).then(e=>({default:e.LeadsPage}))),nM=c.lazy(()=>ee(()=>import("./BfG1SuMc.js").then(e=>
172e.i),__vite__mapDeps([75,0,1,2,3,6,7,8,9,10,35,19,74,55,56,46])).then(e=>({default:e.SalesExplorer}))),sM=c.lazy(()=>ee(()=>import("./DFHFlKwV.js"),__vite__mapDeps([76,0,1,2,3,6,7,8,9,10,77,78,27,11,12,13,79])).then(e=>({default:e.Conversations}))),zd=c.lazy(()=>ee(()=>import("./CGNhiBiK.js"),__vite__mapDeps([77,0,1,2,3,6,7,8,9,10,78,27,11,12,13])).then(e=>({default:e.LinkedInConversations}))),rM=c.lazy(()=>ee(()=>import("./DYHOB6dJ.js"),__vite__mapDeps([79,0,1,2,3,6,7,8,9,10,78,27,11,12,13])).then(e=>({default:e.SNConversations}))),aM=c.lazy(()=>ee(()=>import("./DDl8sciC.js"),__vite__mapDeps([80,0,1,2,3,74,6,7,8,81,9,10,82,83,11,12,13])).then(e=>({default:e.FirstIntegrations}))),iM=c.lazy(()=>ee(()=>import("./Bjv4ZPNu.js"),__vite__mapDeps([84,0,1,2,3,6,7,8,9,10,11,12,13])).then(e=>({default:e.WelcomeSurvey}))),oM=c.lazy(()=>ee(()=>import("./DDl8sciC.js"),__vite__mapDeps([80,0,1,2,3,74,6,7,8,81,9,10,82,83,11,12,13])).then(e=>({default:e.Integrations}))),lM=c.lazy(()=>ee(()=>import("./Bv4p5Rgv.js"),__vite__mapDeps([85,0,1,2,3,6,7,8,81,9,10,33,50,39,37,62,41,45,43,11,12,13])).then(e=>({default:e.InteractiveCampaign}))),cM=c.lazy(()=>ee(()=>import("./Bv4p5Rgv.js"),__vite__mapDeps([85,0,1,2,3,6,7,8,81,9,10,33,50,39,37,62,41,45,43,11,12,13])).then(e=>({default:e.InteractiveCampaignOverview}))),dM=c.lazy(()=>ee(()=>import("./Bv4p5Rgv.js"),__vite__mapDeps([85,0,1,2,3,6,7,8,81,9,10,33,50,39,37,62,41,45,43,11,12,13])).then(e=>({default:e.InteractiveLeads}))),uM=c.lazy(()=>ee(()=>import("./Bv4p5Rgv.js"),__vite__mapDeps([85,0,1,2,3,6,7,8,81,9,10,33,50,39,37,62,41,45,43,11,12,13])).then(e=>({default:e.InteractiveQuestions}))),pM=c.lazy(()=>ee(()=>import("./Bv4p5Rgv.js"),__vite__mapDeps([85,0,1,2,3,6,7,8,81,9,10,33,50,39,37,62,41,45,43,11,12,13])).then(e=>({default:e.InteractiveSequence}))),hM=c.lazy(()=>ee(()=>import("./Dc85pDq_.js"),__vite__mapDeps([86,0,1,2,3,9,10,6,7,8,87,11,12,13])).then(e=>({default:e.CreatePost}))),mM=c.lazy(()=>ee(()=>import("./Dc85pDq_.js"),__vite__mapDeps([86,0,1,2,3,9,10,6,7,8,87,11,12,13])).then(e=>({default:e.EditPost}))),gM=c.lazy(()=>ee(()=>import("./Dc85pDq_.js"),__vite__mapDeps([86,0,1,2,3,9,10,6,7,8,87,11,12,13])).then(e=>({default:e.Posts}))),Wd=c.lazy(()=>ee(()=>import("./Cqr5duwf.js"),__vite__mapDeps([88,0,1,2,3,6,7,8,9,10,44,45,43,89,90,11,12,13])).then(e=>({default:e.SequenceTemplateForm}))),qd=c.lazy(()=>ee(()=>import("./CE_zyh_Y.js"),__vite__mapDeps([91,0,1,2,3,6,7,8,9,10,87,90,11,12,13])).then(e=>({default:e.SequenceTemplates}))),xM=c.lazy(()=>ee(()=>import("./Bh5aTN26.js"),__vite__mapDeps([32,0,1,2,3,6,7,8,33,9,10,34,35,36,37,38,39,11,12,13])).then(e=>({default:e.Audience}))),fM=c.lazy(()=>ee(()=>import("./DNenql6F.js"),__vite__mapDeps([31,32,0,1,2,3,6,7,8,33,9,10,34,35,36,37,38,39,11,12,13,40,41,42,43,44,45,46,47,48,49,50])).then(e=>({default:e.Summary}))),CM=c.lazy(()=>ee(()=>import("./DvkqCmU_.js"),__vite__mapDeps([92,0,1,2,3,6,7,8,9,10,46,11,12,13])).then(e=>({default:e.TagManager}))),yM=c.lazy(()=>ee(()=>import("./De8IZ6i4.js"),__vite__mapDeps([93,0,1,2,3,6,7,8,9,10,89,11,12,13])).then(e=>({default:e.TemplateCreator}))),Zd=c.lazy(()=>ee(()=>import("./CGs0il4O.js"),__vite__mapDeps([94,0,1,2,3,6,7,8,9,10,95,11,12,13])).then(e=>({default:e.TemplatesPersonal}))),Yd=c.lazy(()=>ee(()=>import("./CXqxXEGt.js"),__vite__mapDeps([96,0,1,2,3,6,7,8,9,10,95,87,11,12,13])).then(e=>({default:e.TemplatesTeam}))),Kd=c.lazy(()=>ee(()=>import("./CEzPu19S.js"),__vite__mapDeps([97,0,1,2,3,6,7,8,9,10,95,11,12,13])).then(e=>({default:e.TemplatesLibrary}))),EM=c.lazy(()=>ee(()=>import("./CTVITJ5L.js"),__vite__mapDeps([98,0,1,2,3,6,7,8,9,10,18,11,12,13])).then(e=>({default:e.Trends}))),SM=c.lazy(()=>ee(()=>import("./BKL2CBhX.js"),__vite__mapDeps([99,0,1,2,3,11,6,7,8,9,10,12,13])).then(e=>({default:e.Welcome}))),bM=c.lazy(()=>ee(()=>import("./_lK2JN-C.js"),__vite__mapDeps([100,0,1,2,3,6,7,8,9,10,101,102,11,12,13,83,103,104,105,106,37,82,23,107])).then(e=>({default:e.SettingsLayout}))),LM=c.lazy(()=>ee(()=>import("./cpTl3Ob0.js"),__vite__mapDeps([104,0,1,2,3,6,7,8,9,10,101,11,12,13])).then(e=>({default:e.UserProfile}))),wM=c.lazy(()=>ee(()=>import("./BCLNlaUu.js"),__vite__mapDeps([107,0,1,2,3,11,6,7,8,9,10,101,12,13])).then(e=>({default:e.WorkHours}))),TM=c.lazy(()=>ee(()=>import("./_lK2JN-C.js"),__vite__mapDeps([100,0,1,2,3,6,7,8,9,10,101,102,11,12,13,83,103,104,105,106,37,82,23,107])).then(e=>({default:e.DailyLimits}))),jM=c.lazy(()=>ee(()=>import("./_lK2JN-C.js"),__vite__mapDeps([100,0,1,2,3,6,7,8,9,10,101,102,11,12,13,83,103,104,105,106,37,82,23,107])).then(e=>({default:e.AutoWithdrawals}))),vM=c.lazy(()=>ee(()=>import("./DZbXesVv.js"),__vite__mapDeps([102,0,1,2,3,6,7,8,9,10,101,11,12,13])).then(e=>({default:e.Greetings}))),IM=c.lazy(()=>ee(()=>import("./_lK2JN-C.js"),__vite__mapDeps([100,0,1,2,3,6,7,8,9,10,101,102,11,12,13,83,103,104,105,106,37,82,23,107])).then(e=>({default:e.SettingsNotFound}))),_M=c.lazy(()=>ee(()=>import("./BQQ3PCO6.js"),__vite__mapDeps([105,0,1,2,3,6,7,8,9,10,101,106,37,82,23,11,12,13])).then(e=>({default:e.WhiteLabel}))),AM=c.lazy(()=>ee(()=>import("./CK35kuAw.js"),__vite__mapDeps([108,0,1,2,3,6,7,8,9,10,46,11,12,13])).then(e=>({default:e.TeamGroups}))),NM=c.lazy(()=>ee(()=>import("./C-SvDgbK.js"),__vite__mapDeps([109,110,0,1,2,3,6,7,8,9,10,72,70,71,11,12,13,108,46,16,15,111,69,68])).then(e=>({default:e.TeamInvite}))),kM=c.lazy(()=>ee(()=>import("./BffAPa7R.js"),__vite__mapDeps([111,0,1,2,3,69,6,7,8,9,10,70,71,11,12,13])).then(e=>({default:e.TeamInvited}))),RM=c.lazy(()=>ee(()=>import("./BK4f5PSw.js").then(e=>e.a),__vite__mapDeps([68,0,1,2,3,9,10,6,7,8,69,70,71,72])).then(e=>({default:e.TeamManage}))),MM=c.lazy(()=>ee(()=>import("./_lK2JN-C.js"),__vite__mapDeps([100,0,1,2,3,6,7,8,9,10,101,102,11,12,13,83,103,104,105,106,37,82,23,107])).then(e=>({default:e.TeamSettings}))),PM=c.lazy(()=>ee(()=>import("./3IQP4rl4.js"),__vite__mapDeps([112,0,1,2,3,106,6,7,8,58,9,10,28,71,11,12,13])).then(e=>({default:e.TeamStats}))),OM=c.lazy(()=>ee(()=>import("./Dy-QmBFY.js"),__vite__mapDeps([110,0,1,2,3,6,7,8,9,10,72,70,71,11,12,13])).then(e=>({default:e.GroupManage}))),DM=c.lazy(()=>ee(()=>import("./BM0jN_F1.js"),__vite__mapDeps([113,0,1,2,3,6,7,8,9,10,25,55,11,12,13])).then(e=>({default:e.Invitations}))),UM=c.lazy(()=>ee(()=>import("./BmrQinIq.js"),__vite__mapDeps([114,0,1,2,3,103,6,7,8,9,10,11,12,13])).then(e=>({default:e.NotFound}))),BM=c.lazy(()=>ee(()=>import("./CvFXiWVv.js"),__vite__mapDeps([115,0,1,2,3])).then(e=>({default:e.Unsubscribe}))),HM=c.lazy(()=>ee(()=>import("./tdMIhvhp.js"),__vite__mapDeps([116,0,1,2,3,6,7,8,9,10,11,12,13])).then(e=>({default:e.VerificationProvider}))),VM=c.lazy(()=>ee(()=>import("./TH4-Fbpc.js"),__vite__mapDeps([117,0,1,2,3,6,7,8,9,10,11,12,13])).then(e=>({default:e.WebhookLayout}))),FM=c.lazy(()=>ee(()=>import("./TH4-Fbpc.js"),__vite__mapDeps([117,0,1,2,3,6,7,8,9,10,11,12,13])).then(e=>({default:e.WebhookDocCampaigns}))),$M=c.lazy(()=>ee(()=>import("./TH4-Fbpc.js"),__vite__mapDeps([117,0,1,2,3,6,7,8,9,10,11,12,13])).then(e=>({default:e.WebhookDocConnections}))),GM=c.lazy(()=>ee(()=>import("./TH4-Fbpc.js"),__vite__mapDeps([117,0,1,2,3,6,7,8,9,10,11,12,13])).then(e=>({default:e.WebhookDocLastActions}))),zM=c.lazy(()=>ee(()=>import("./TH4-Fbpc.js"),__vite__mapDeps([117,0,1,2,3,6,7,8,9,10,11,12,13])).then(e=>({default:e.WebhookDocLeads}))),WM=c.lazy(()=>ee(()=>import("./TH4-Fbpc.js"),__vite__mapDeps([117,0,1,2,3,6,7,8,9,10,11,12,13])).then(e=>({default:e.WebhookDocMemberConnections}))),qM=c.lazy(()=>ee(()=>import("./TH4-Fbpc.js"),__vite__mapDeps([117,0,1,2,3,6,7,8,9,10,11,12,13])).then(e=>({default:e.WebhookDocNewLead}))),ZM=c.lazy(()=>ee(()=>import("./TH4-Fbpc.js"),__vite__mapDeps([117,0,1,2,3,6,7,8,9,10,11,12,13])).then(e=>({default:e.WebhookDocReplies}))),YM=c.lazy(()=>ee(()=>import("./TH4-Fbpc.js"),__vite__mapDeps([117,0,1,2,3,6,7,8,9,10,11,12,13])).then(e=>({default:e.WebhookDocTeamMembers}
172))),KM=()=>{const[e]=ns(),n=e.get("code"),s=e.get("error"),r=e.get("error_description");return c.useEffect(()=>{n?window.location.href=`/integrations?tab=hubspot&code=${n}`:s?window.location.href=`/integrations?tab=hubspot&error=${s}&error_description=${r||""}`:window.location.href="/integrations?tab=hubspot"},[n,s,r]),t.jsxs(g,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",gap:2},children:[t.jsx(Pe,{}),t.jsx(S,{children:"Completing authorization..."})]})},QM=()=>{const[e]=ns(),n=Rt();return c.useEffect(()=>{const s=e.get("code"),r=e.get("state");if(!s||!r){n("/auth/login");return}const a=decodeURIComponent(r);n(a,{state:{code:s}})},[e,n]),t.jsx(g,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:t.jsx(Pe,{})})},XM=()=>{const[e]=ns(),n=e.get("code"),s=e.get("state"),r=e.get("error"),a=e.get("error_description");return c.useEffect(()=>{n&&s?window.location.href=`/integrations?tab=salesforce&code=${n}&state=${s}`:r?window.location.href=`/integrations?tab=salesforce&error=${r}&error_description=${a||""}`:window.location.href="/integrations?tab=salesforce"},[n,s,r,a,e]),t.jsxs(g,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",gap:2},children:[t.jsx(Pe,{}),t.jsx(S,{children:"Completing authorization..."})]})},JM=[{label:"Billing History",to:"/billing/history"}],eP=()=>t.jsxs(t.Fragment,{children:[t.jsxs(Ga,{children:[t.jsx(g,{display:"flex",justifyContent:"space-between",alignItems:"flex-end",children:t.jsx(za,{children:"Billing"})}),t.jsx(Ru,{children:JM.map(({label:e,to:n})=>t.jsx(Nl,{to:n,children:e},n))})]}),t.jsx(_l,{children:t.jsx(Ya,{})})]}),tP=()=>t.jsxs(Aa,{children:[t.jsx(H,{path:"/billing/history",element:t.jsx(Ye,{emptyNavBar:!0,children:t.jsx(eP,{})})}),t.jsx(H,{path:"*",element:t.jsx(Le,{to:"/billing/history",replace:!0})})]}),nP=[{label:"Subscription Plan",to:"/billing/subscription"},{label:"Billing Information",to:"/billing/information"},{label:"Payment Method",to:"/billing/payment-method"},{label:"Billing History",to:"/billing/history"}],sP=()=>t.jsxs(t.Fragment,{children:[t.jsxs(Ga,{children:[t.jsx(g,{display:"flex",justifyContent:"space-between",alignItems:"flex-end",children:t.jsx(za,{children:"Billing"})}),t.jsx(Ru,{children:nP.map(({label:e,to:n})=>t.jsx(Nl,{to:n,children:e},n))}),t.jsx(Pu,{articleLink:"https://help.meetalfred.com/en/articles/5277100-manage-your-subscription-plan-billing-page",videoLink:"https://player.vimeo.com/video/1000455752"})]}),t.jsx(_l,{children:t.jsx(xt,{})})]}),_o=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.4525 3.25H13.5475C15.3866 3.24999 16.8308 3.24998 17.9694 3.3786C19.1316 3.50988 20.074 3.78362 20.8574 4.40229C21.0919 4.58749 21.3093 4.79205 21.507 5.0138C22.1732 5.76101 22.4707 6.66669 22.6124 7.77785C22.75 8.85727 22.75 10.2232 22.75 11.9473V12.0528C22.75 13.7768 22.75 15.1427 22.6124 16.2222C22.4707 17.3333 22.1732 18.239 21.507 18.9862C21.3093 19.2079 21.0919 19.4125 20.8574 19.5977C20.074 20.2164 19.1316 20.4901 17.9694 20.6214C16.8308 20.75 15.3866 20.75 13.5475 20.75H10.4525C8.61345 20.75 7.16917 20.75 6.03058 20.6214C4.86842 20.4901 3.926 20.2164 3.14263 19.5977C2.90811 19.4125 2.69068 19.2079 2.49298 18.9862C1.82681 18.239 1.52932 17.3333 1.38763 16.2222C1.24997 15.1427 1.24999 13.7767 1.25 12.0527V11.9473C1.24999 10.2233 1.24997 8.85728 1.38763 7.77785C1.52932 6.66669 1.82681 5.76101 2.49298 5.0138C2.69068 4.79205 2.90811 4.58749 3.14263 4.40229C3.926 3.78362 4.86842 3.50988 6.03058 3.3786C7.16917 3.24998 8.61345 3.24999 10.4525 3.25ZM6.19895 4.86912C5.16816 4.98556 4.54359 5.20725 4.07229 5.57946C3.90545 5.71121 3.7517 5.856 3.61262 6.012C3.22599 6.44566 2.99708 7.01479 2.87558 7.96759C2.86391 8.05905 2.85333 8.15312 2.84374 8.25H21.1563C21.1467 8.15312 21.1361 8.05905 21.1244 7.96759C21.0029 7.01479 20.774 6.44566 20.3874 6.012C20.2483 5.856 20.0946 5.71122 19.9277 5.57946C19.4564 5.20725 18.8318 4.98556 17.8011 4.86912C16.7565 4.75112 15.3969 4.7
1725 13.5 4.75H10.5C8.60311 4.75 7.24353 4.75112 6.19895 4.86912ZM21.2354 9.75H2.76458C2.75033 10.3961 2.75 11.1378 2.75 12C2.75 13.7886 2.75143 15.0589 2.87558 16.0324C2.99708 16.9852 3.22599 17.5543 3.61262 17.988C3.7517 18.144 3.90545 18.2888 4.07229 18.4205C4.54359 18.7927 5.16816 19.0144 6.19895 19.1309C7.24353 19.2489 8.60311 19.25 10.5 19.25H13.5C15.3969 19.25 16.7565 19.2489 17.8011 19.1309C18.8318 19.0144 19.4564 18.7927 19.9277 18.4205C20.0946 18.2888 20.2483 18.144 20.3874 17.988C20.774 17.5543 21.0029 16.9852 21.1244 16.0324C21.2486 15.0589 21.25 13.7886 21.25 12C21.25 11.1378 21.2497 10.3961 21.2354 9.75ZM9.25 16C9.25 15.5858 9.58579 15.25 10 15.25H11.5C11.9142 15.25 12.25 15.5858 12.25 16C12.25 16.4142 11.9142 16.75 11.5 16.75H10C9.58579 16.75 9.25 16.4142 9.25 16ZM13.75 16C13.75 15.5858 14.0858 15.25 14.5 15.25H18C18.4142 15.25 18.75 15.5858 18.75 16C18.75 16.4142 18.4142 16.75 18 16.75H14.5C14.0858 16.75 13.75 16.4142 13.75 16Z",fill:"currentColor"})),f6=({plan:e,billingType:n,currency:s,invoiceDetails:r,isLoadingInvoiceDetails:a=!1,showInvoiceDetails:i=!0})=>{var C,E,b,w,I;const{palette:o}=Ve(),{billingInfo:l,isSubscriptionCanceled:u}=ot(),{isTrial:d,isDeactivated:p,isFree:h}=We(),m=[{label:"Plan",value:e},{label:"Billed",value:n&&ya[n]},{label:"Currency",value:s==null?void 0:s.toUpperCase()},{label:"Next Invoice",value:se.unix(((C=l==null?void 0:l.stripeSubscriptionObject)==null?void 0:C.current_period_end)||0).format("MM/DD/YYYY hh:mm A"),isShown:!d&&!h&&!p&&!u&&!(l!=null&&l.isSubscriptionPaused)}],f=!a&&r&&s&&i&&!(l!=null&&l.isSubscriptionPaused);return t.jsxs(Ot,{expanded:!0,sx:{width:"100%"},children:[t.jsx(Dt,{children:"Payment Details"}
172),t.jsxs(un,{children:[m.map(({label:T,value:j,isShown:L=!0})=>t.jsx(c.Fragment,{children:L&&t.jsxs(t.Fragment,{children:[t.jsx(S,{medium:!0,color:"greyBlue.60",fontSize:"12px",lineHeight:"16px",mb:"2px",children:T}),t.jsx(S,{color:"blue.dark",mb:"16px",capitalizeFirstLetter:!0,children:j})]})},T)),t.jsx(S,{medium:!0,color:"greyBlue.60",fontSize:"12px",lineHeight:"16px",mb:"2px",children:"Payment Method"}),t.jsxs(g,{display:"flex",alignItems:"center",gap:"12px",mb:"16px",children:[t.jsx(_o,{color:o.greyBlue[60],width:"16px",height:"16px"}),t.jsx(S,{color:"blue.dark",capitalizeFirstLetter:!0,children:(b=(E=l==null?void 0:l.stripeTokenObject)==null?void 0:E.card)!=null&&b.last4?`•••• •••• •••• ${(I=(w=l==null?void 0:l.stripeTokenObject)==null?void 0:w.card)==null?void 0:I.last4}`:"Not added yet"})]}),a&&i&&t.jsx(Pe,{}),f&&t.jsx(r3,{invoiceDetails:r,currency:s})]})]})},no=[{label:"USD",value:Te.USD},{label:"EUR",value:Te.EUR},{label:"GBP",value:Te.GBP}],rP=xr.map(e=>({value:e[0],label:e[0]})),Qd=Object.entries(Fo).map(([e,n])=>({value:e,label:n})),aP=({currency:e,disabled:n,control:s,register:r,formState:{errors:a},clearErrors:i,trigger:o,watch:l,resetField:u})=>{var b,w,I,T,j;const{palette:d}=Ve(),[p,h]=c.useState(!1),m=()=>{a.paymentMethod&&(i("paymentMethod"),o("paymentMethod"))},f=l("vatType"),C=l("address.country"),E=c.useMemo(()=>{if(!C)return[];const L=xr.find(_=>_[0]===C);return L?L[2].split("|").map(_=>({value:_.split("~")[0],label:_.split("~")[0]})):[]},[C]);return c.useEffect(()=>{var L;(L=a.vat)!=null&&L.message&&!p&&h(!0)},[a.vat]),t.jsxs(g,{p:"20px",borderRadius:"4px",border:`1px solid ${d.gray[100]}`,component:"fieldset",disabled:n,children:[t.jsx(S,{fontSize:"16px",lineHeight:"24px",medium:!0,children:"Payment Method"}),t.jsx(He,{type:"info",message:"Choose a currency for payment, you cannot change it later",wrapperProps:{my:"16px"}}),t.jsx(rn,{control:s,name:"currency",defaultValue:e,render:({field:L})=>t.jsx(t.Fragment,{children:t.jsx(Xe,{...L,label:"Currency",options:no,onChange:_=>L.onChange(_==null?void 0:_.value),value:no.find(_=>_.value===L.value)})})}),t.jsx(Ue,{my:"16px"}),t.jsxs(g,{display:"flex",flexDirection:"column",gap:"16px",children:[t.jsx(Ce,{label:"Phone",placeholder:"Enter your phone",name:"phone",register:r,parameters:{required:!0},showRequiredIcon:!0}),t.jsx(Ce,{label:"Company Name",placeholder:"Enter company name",name:"company",register:r,parameters:{required:!0},showRequiredIcon:!0}),t.jsx(Ce,{label:"Address",placeholder:"Enter address",name:"address.line1",register:r}),t.jsx(g,{my:"-8px",children:t.jsxs(je,{onClick:()=>h(L=>!L),display:"flex",alignItems:"center",justifyContent:"flex-end",children:[p?t.jsx(Nr,{}):t.jsx(ln,{}),p?" Hide":" Show"," advanced billing information"]})}),p&&t.jsxs(t.Fragment,{children:[t.jsx(rn,{control:s,name:"address.country",render:({field:L})=>t.jsx(Xe,{...L,searchable:!0,label:"Country",placeholder:"Select country",options:rP,onChange:_=>L.onChange(_==null?void 0:_.value),value:no.find(_=>_.value===L.value)})}),t.jsx(rn,{control:s,name:"address.region",render:({field:L})=>t.jsx(Xe,{...L,searchable:!0,label:"Region",placeholder:"Select region",options:E,onChange:_=>L.onChange(_==null?void 0:_.value),value:E.find(_=>_.value===L.value)})}),t.jsx(Ce,{label:"City",placeholder:"City, district, suburb, town, or village.",name:"address.city",register:r}),t.jsx(Ce,{label:"Address Line 2",placeholder:"Address line 2 (e.g., apartment, suite, unit, or building).",name:"address.line2",register:r}),t.jsx(Ce,{label:"Postal Code",placeholder:"ZIP or postal code.",name:"address.postal_code",register:r}),t.jsx(rn,{control:s,name:"vatType",render:({field:L})=>t.jsx(Xe,{...L,searchable:!0,label:"Tax Type",options:Qd,onChange:_=>{_||u("vat"),L.onChange(_==null?void 0:_.value)},value:Qd.find(_=>_.value===L.value)})}),t.jsxs(g,{children:[t.jsx(Ce,{label:"Tax Number",placeholder:f?D2[f]:"Tax ID number",name:"vat",register:r,parameters:{required:{value:!!f,message:"Please add a tax ID number"}},disabled:!f,className:Ee({error:!!((b=a.vat)!=null&&b.message)}),showRequiredIcon:!!f}),((w=a.vat)==null?void 0:w.message)&&t.jsx(S,{color:"error.light",mt:"8px",children:(I=a.vat)==null?void 0:I.message})]})]})]}),t.jsx(Ue,{my:"16px"}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",medium:!0,mb:"4px",semibold:!0,children:"Card Number*"}),t.jsx(Iu,{onChange:m}),((T=a.paymentMethod)==null?void 0:T.message)&&t.jsx(S,{color:"error.light",mt:"8px",children:(j=a.paymentMethod)==null?void 0:j.message}),t.jsx(He,{type:"info",noIcon:!0,wrapperProps:{mt:"16px"},message:t.jsxs(t.Fragment,{children:[t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.80",pl:"4px",children:"• Your credit card will be charged immediately."}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.80",pl:"4px",children:"• Unused time from your current billing cycle will be credited for future invoices."})]})})]})},iP=({plan:e,billingType:n,disabled:s,onBillingTypeChange:r})=>{var p;const a=P(),{billingInfo:i}=ot(),o=gu((p=i==null?void 0:i.freePhasePromo)==null?void 0:p.name),l=e===(i==null?void 0:i.plan),u=o&&l,d=h=>{if(s)return;const m=h.target.value;if(n!==m)if(m===G.MONTHLY)if(n===G.ANNUAL)a(Ne({type:Y.SAVE_BILLING_CYCLE,closable:!1,params:{percentage:"Save 50%",billingType:n},onConfirm:()=>r(m)}));else if(n===G.QUARTERLY){if(u){r(m);return}a(Ne({type:Y.SAVE_BILLING_CYCLE,closable:!1,params:{percentage:"Save up to 20%",billingType:n},onConfirm:()=>r(m)}))}else r(m);else[G.QUARTERLY,G.SEMESTRIAL,G.ANNUAL].includes(m)&&r(m)};return t.jsxs(g,{display:"flex",flexDirection:"column",gap:"8px",translate:"no",className:"notranslate",children:[t.jsx(_n,{id:"monthly",label:t.jsx(S,{color:"greyNeutral.100",inline:!0,component:"span",children:"Monthly"}),value:G.MONTHLY,checked:G.MONTHLY===n,onChange:d,disabled:s}),t.jsx(_n,{id:"quarterly",label:t.jsxs(t.Fragment,{children:[t.jsxs(S,{color:"greyNeutral.100",inline:!0,component:"span",children:["Quarterly"," "]}),t.jsx(S,{color:u?void 0:"blue.primary",inline:!0,component:"span",sx:u?{color:"#BE00ED"}:void 0,children:u?"3+3":"(Save up to 20%)"})]}),value:G.QUARTERLY,checked:G.QUARTERLY===n,onChange:d,disabled:s}),(i==null?void 0:i.billingType)===G.SEMESTRIAL&&(i==null?void 0:i.plan)===e&&t.jsx(_n,{id:"semestrial",label:t.jsx(S,{color:"greyNeutral.100",inline:!0,component:"span",children:"Half Yearly"}),value:G.SEMESTRIAL,checked:G.SEMESTRIAL===n,onChange:d,disabled:s}),((i==null?void 0:i.billingType)===G.ANNUAL||![x.STARTER,x.PERSONAL,x.ENTERPRISE
172].some(h=>h===e))&&t.jsx(_n,{id:"annual",label:t.jsxs(t.Fragment,{children:[t.jsxs(S,{color:"greyNeutral.100",inline:!0,component:"span",children:["Annual"," "]}),t.jsx(S,{color:"blue.primary",inline:!0,component:"span",children:"(50% Off)"})]}),value:G.ANNUAL,checked:G.ANNUAL===n,onChange:d,disabled:s})]})},oP=e=>c.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.25 12C4.25 11.5858 4.58579 11.25 5 11.25H19C19.4142 11.25 19.75 11.5858 19.75 12C19.75 12.4142 19.4142 12.75 19 12.75H5C4.58579 12.75 4.25 12.4142 4.25 12Z",fill:"currentColor"})),lP=y(g,{target:"eifbsob2"})("display:flex;align-items:center;gap:8px;height:40px;width:fit-content;color:",({theme:e})=>e.palette.greyNeutral[100],";padding:10px 12px;box-sizing:border-box;border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:8px;overflow:hidden;&.error{border-color:",({theme:e})=>e.palette.additional.red50,";}&.disabled{&,& *{color:",({theme:e})=>e.palette.greyNeutral[50],";cursor:not-allowed;}}"),Xd=y(g,{target:"eifbsob1"})("height:20px;width:20px;cursor:pointer;display:flex;justify-content:center;align-items:center;&.disabled{cursor:not-allowed;*{color:",({theme:e})=>e.palette.greyNeutral[50],";}}"),cP=y("input",{target:"eifbsob0"})({name:"13gbak3",styles:"min-width:32px;height:100%;text-align:center;&:active,&:focus,&:disabled{outline:none;background-color:#ffffff;}&::-webkit-outer-spin-button,&::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}&[type='number']{-moz-appearance:textfield;}"}),dP=({plan:e,value:n,disabled:s,onChange:r,onError:a,error:i,teamCount:o,isCustomPlan:l=!1})=>{const[u,d]=c.useState(n),p=Rf(u,300),{minSeats:h=1,seats:m=1}=l?{...Qn[e]||{},minSeats:1}:Qn[e]||{},f=b=>{if(b<o){a("Minimum limit of seats is exceeded. Please change current number of users on your team or contact customer support for assistance."),r(o);return}if(b>m){a(`You've reached the maximum limit of ${m} seats. Please contact customer support for assistance.`),r(m);return}if(b<h){a(`You need to have at least ${h} seat${h>1?"s":""} for this plan.`),r(h);return}a(),r(b)},C=()=>!s&&u>=Math.max(h,o)&&d(b=>Math.max(b-1,1)),E=()=>!s&&u<=m&&d(b=>b+1);return c.useEffect(()=>{f(p)},[p]),t.jsx(t.Fragment,{children:t.jsxs(g,{children:[t.jsx(S,{fontSize:"12px",lineHeight:"16px",semibold:!0,mb:"4px",children:"Additional seats"}),t.jsxs(lP,{className:Ee({error:i,disabled:s}),children:[t.jsx(Xd,{onClick:C,className:Ee({disabled:u===1||u<Math.max(h,o)}),children:t.jsx(oP,{})}),t.jsx("fieldset",{disabled:s,children:t.jsx(cP,{type:"number",min:h,max:m,value:u,onChange:b=>d(Number(b.target.value)),onWheel:b=>b.currentTarget.blur()})}),t.jsx(Xd,{onClick:E,className:Ee({disabled:u>m}),children:t.jsx(s6,{})})]})]})})},uP=y(g,{target:"ej0xwmf0"})("border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:8px;background-color:",({theme:e})=>e.palette.blue.extralight,";padding:16px;"),pP=({plan:e,billingType:n,currency:s,seats:r,disabled:a=!1,seatsOnly:i=!1,setValue:o,setError:l,clearErrors:u,formState:{errors:d},trigger:p})=>{var B,D,M,F,W,ne;const h=Rt(),{palette:m}=Ve(),{isDeactivated:f}=We(),C=vl(),{billingInfo:E}=ot(),{data:b,isLoading:w}=Y0({plan:e,billingType:n,currency:s}),{initialSeatsPrice:I=1,extraSeatPrice:T=1,minSeats:j=1}=b||{},L=Math.max(r-j,0),_=L*T,N=[x.BUSINESS,x.AGENCY,x.ENTERPRISE,x.TEAMS].some($=>$===e),A=$=>o("seats",$),R=$=>{if(!$)return u("seats"),p("seats");l("seats",{type:"custom",message:$})},V=$=>o("billingType",$),O=()=>h(f?"/deactivated#team":"/team/manage-team");return t.jsxs(t.Fragment,{children:[t.jsxs(uP,{mb:"16px",translate:"no",className:"notranslate",children:[t.jsxs(S,{fontSize:"24px",lineHeight:"30px",semibold:!0,children:[In(e)," plan"]}),t.jsx(S,{color:"greyBlue.60",mt:"8px",children:e&&U2[e]}),t.jsx(Ue,{my:"12px"}),t.jsx(Ta,{price:I,currency:s,isLoading:w,singleLine:!0}),t.jsxs(S,{medium:!0,color:"greyBlue.60",fontSize:"12px",lineHeight:"16px",mt:"8px",children:["Per ",j," seat",j>1?"s":"",", per month, billed"," ",(B=ya[n])==null?void 0:B.toLowerCase()]})]}),e&&((D=Qn[e])==null?void 0:D.seats)<C&&t.jsx(He,{type:"error",wrapperProps:{mb:"16px"},message:`To downgrade to the ${In(e)} plan, please remove other users from your team`,messageProps:{medium:!0},noDivider:!0,bottomContent:t.jsxs(g,{display:"flex",alignItems:"center",gap:"24px",mt:"8px",children:[t.jsxs(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",mr:"auto",children:["The ",In(e)," plan is meant for individual use and does not support multiple users or team features."]}),t.jsx(k,{scale:"s",onClick:O,leftIcon:t.jsx(mr,{}),children:"View team users"})]})}),t.jsxs(g,{p:"16px",borderRadius:"12px",border:`1px solid ${m.greyBlue[30]}`,mb:"16px",translate:"no",className:"notranslate",children:[t.jsx(S,{medium:!0,fontSize:"16px",lineHeight:"24px",mb:"16px",children:"Billing cycle"}),t.jsx(iP,{plan:e,billingType:n,onBillingTypeChange:V,disabled:a||i})]}),N&&t.jsxs(g,{p:"16px",borderRadius:"12px",border:`1px solid ${m.greyBlue[30]}`,mb:"16px",translate:"no",className:"notranslate",children:[t.jsxs(S,{semibold:!0,fontSize:"16px",lineHeight:"24px",mb:"16px",children:["Customize your ",In(e)," plan"]}),t.jsxs(g,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[!!r&&t.jsx(dP,{plan:e,value:r,teamCount:C,disabled:a,onChange:A,onError:R,error:(M=d.seats)==null?void 0:M.message,isCustomPlan:!!(E!=null&&E.hasCustomPlan)}),t.jsxs(g,{textAlign:"right",flexShrink:"0",children:[t.jsx(Ta,{price:_,currency:s,isLoading:w,singleLine:!0}),t.jsxs(S,{medium:!0,color:"greyBlue.60",fontSize:"12px",lineHeight:"16px",mt:"8px",children:["Per ",L," seat",L>1?"s":"",", per month, billed"," ",(F=ya[n])==null?void 0:F.toLowerCase()]})]})]}),!!((W=d.seats)!=null&&W.message)&&t.jsx(He,{type:"error",wrapperProps:{mt:"8px"},message:(ne=d.seats)==null?void 0:ne.message})]})]})},hP=()=>{const{isDeactivated:e}=We();return t.jsxs(t.Fragment,{children:[t.jsxs(LC,{children:[t.jsx(je,{to:e?"/deactivated":"/billing/subscription/plans",children:t.jsx(S,{children:"Subscription Plan"})}),t.jsx(S,{children:"Your plan"})]}),t.jsx(Ga,{children:t.jsx(za,{children:"Your plan"})})]})},mP=(e,n)=>n&&(e==null?void 0:e.trim())||void 0,gP=()=>{var Ge,gt,ye,Re;const e=P(),n=Rt(),{companyName:s}=Fe(),{userMe:r}=st(),{billingInfo:a}=ot(),i=C2(),o=y2(),l=Su(),u=vl(),[d,p]=c.useState(!1),[h,m]=c.useState(!1),[f,C]=c.useState(!1),[E,b]=c.useState(!1),w=lt(),{watch:I,reset:T,setError:j,handleSubmit:L,formState:_,register:N,
172clearErrors:A,setValue:R}=w,{errors:V,isValid:O,dirtyFields:B}=_,D=I("promoCode");c.useEffect(()=>{if(a){const me=w.getValues(),Me=me.currency||(l==null?void 0:l.currency)||Te.USD,Ze=me.billingType||(l==null?void 0:l.billingType)||G.MONTHLY,dt=me.plan||jh(l==null?void 0:l.plan,u),at=me.seats||vh(dt,a.seats,u,u);T({...me,currency:Me,billingType:Ze,plan:dt,seats:at})}},[u,a]);const M=I("plan"),F=I("billingType"),W=I("seats"),ne=I("currency"),[$]=Bn(Cn.xmasProSpecial2024,!(M===x.PRO&&F===G.ANNUAL&&ne===Te.USD),!0),{shouldHidePromoCodeInput:z}=Va(),K=z,re=$&&!K,{invoiceDetails:ae,isFetching:pe}=x7({plan:M,billingType:F,seats:W,currency:ne},{enabled:((Ge=Qn[M])==null?void 0:Ge.seats)>=u}),{removeSubscription:ie,isLoading:oe}=y7(),{updateTeamDataAfterPaymentConfirmation:ke}=L7(),{addUnloadConfirmation:Oe,removeUnloadConfirmation:Be}=cC(),{createSubscription:De,isLoading:Ie}=Qg({onError:me=>{["inactive-promo-code","invalid-promo-code"].includes(me.message)?j("promoCode",{type:"custom",message:me.message==="invalid-promo-code"?"Please enter valid Promo Code":"This Promo Code has expired or been deactivated"}):j("paymentMethod",{type:"custom",message:me.message}),p(!1)},onSuccess:me=>{var dt,at,Vt;if(!i)return;const{subscription:Me,redirectUrlParams:Ze}=me;(dt=Me==null?void 0:Me.latest_invoice)!=null&&dt.payment_intent&&((Vt=(at=Me==null?void 0:Me.latest_invoice)==null?void 0:at.payment_intent)==null?void 0:Vt.status)!=="succeeded"?(p(!0),Oe(),i.confirmCardPayment(Me.latest_invoice.payment_intent.client_secret,{payment_method:Me.latest_invoice.payment_intent.payment_method}).then(us=>{if(Be(),us.error){const Pr=us.error.code==="payment_intent_incompatible_payment_method"?"Your card was declined.":us.error.message;e(Z({message:Pr||"We are unable to authenticate your payment method. Please check payment details and try again",type:"error",autoCloseTime:3e3})),j("paymentMethod",{type:"custom",message:"We are unable to authenticate your payment method. Please check payment details and try again"}),ie()}else ke({process:"create"}),gi(Ze)}).finally(()=>p(!1))):gi(Ze)}}),_e=()=>n("/billing/subscription"),Ke=c.useMemo(()=>{var me;return!h||!f?!0:pe||d||!O||((me=Qn[M])==null?void 0:me.seats)<u||!Qt(V)},[h,f,pe,d,O,M,u,_]),tt=async me=>{var at,Vt;if(!i||!o)return;const Me=o.getElement(Uo),{error:Ze,paymentMethod:dt}=await i.createPaymentMethod({type:"card",card:Me,billing_details:{name:r==null?void 0:r.name,email:r==null?void 0:r.email,phone:me.phone,address:{line1:(at=me.address)==null?void 0:at.line1}}});Ze?(j("paymentMethod",{type:"custom",message:Ze.message}),p(!1)):De({paymentMethod:dt,plan:me.plan,billingType:me.billingType,seats:me.seats,currency:me.currency,phone:me.phone,company:me.company,address:(Vt=me.address)==null?void 0:Vt.line1,promoCode:mP(me.promoCode,re)})},{updateCompany:rt,isLoading:be}=Q0({onError:me=>{p(!1),me!=null&&me.message.includes("Invalid value for")?j("vat",{type:"custom",message:"Please add a valid Tax ID Number"}):e(Z({type:"error",message:(me==null?void 0:me.message)??"Something went wrong",autoCloseTime:3e3}))}}),Ae=me=>{const{company:Me,vat:Ze,vatType:dt,address:at}=me;p(!0),rt({company:Me,vat:Ze,vatType:dt,address:at},{onSuccess:()=>tt(me)})};return c.useEffect(()=>{D!=null&&D.trim()||A("promoCode")},[D,A]),c.useEffect(()=>{K&&(b(!1),A("promoCode"),R("promoCode","",{shouldDirty:!1,shouldValidate:!1}))},[K,A,R]),t.jsxs(t.Fragment,{children:[t.jsx(hP,{}),t.jsx(_l,{maxHeight:"calc(100% - 116px)",children:t.jsxs(kr,{children:[t.jsx(S,{textAlign:"center",children:"Find the perfect plan to achieve your goals."}),t.jsx(Ue,{my:"16px"}),t.jsxs(g,{display:"flex",gap:"16px",alignItems:"flex-start",children:[t.jsxs(Ot,{expanded:!0,sx:{width:"100%"},children:[t.jsx(Dt,{children:"Your plan details"}),t.jsxs(un,{children:[t.jsx(pP,{plan:M,billingType:F,currency:ne,seats:W,disabled:pe,...w}),t.jsx(aP,{currency:ne,...w,disabled:pe}),re&&t.jsxs(g,{mt:"16px",display:"flex",flexDirection:"column",gap:"8px",children:[t.jsxs(je,{onClick:()=>b(!0),semibold:!0,children:[t.jsx(Mu,{style:{marginRight:"6px",verticalAlign:"bottom"}}),"Do you have a promo code?"]}),E&&t.jsxs(t.Fragment,{children:[t.jsx(Ce,{name:"promoCode",register:N,parameters:{required:!1},placeholder:"Promo code",required:!0,className:Ee({error:((gt=V.promoCode)==null?void 0:gt.message)&&B.promoCode})}),((ye=V.promoCode)==null?void 0:ye.message)&&t.jsx(He,{type:"error",message:t.jsx(S,{color:"gray.600",children:V.promoCode.message})})]})]}),t.jsxs(g,{my:"16px",children:[t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",mb:"12px",children:[t.jsx($e,{type:"checkbox",checked:h,onChange:me=>m(me.target.checked)}),t.jsxs(S,{color:"black.base",children:["I accept ",s," ",t.jsx(je,{semibold:!0,external:!0,openNewTab:!0,to:"https://meetalfred.com/terms",children:"Terms of Use"})]})]}),t.jsxs(g,{display:"flex",alignItems:"center",gap:"8px",children:[t.jsx($e,{type:"checkbox",checked:f,onChange:me=>C(me.target.checked)}),t.jsxs(S,{color:"black.base",children:["I accept ",s," ",t.jsx(je,{external:!0,semibold:!0,openNewTab:!0,to:"https://help.meetalfred.com/en/articles/3338757-refund-policy",tooltip:t.jsxs(g,{textAlign:"left",children:[t.jsx("h5",{children:"No Refund Policy"}),"Once upgraded, we do not offer any refunds under any circumstance, but you can cancel your subscription at any time."]}),children:"No Refund Policy"})]})]})]})]}),t.jsxs(w2,{sx:{justifyContent:"space-between !important"},children:[t.jsx(k,{onClick:_e,children:"Cancel"}),t.jsxs(k,{disabled:Ke,onClick:L(Ae),processing:Ie||be||oe,children:["Start Using ",s]})]})," "]}),t.jsx(f6,{plan:M,billingType:F,currency:ne,invoiceDetails:ae,isLoadingInvoiceDetails:pe,showInvoiceDetails:((Re=Qn[M])==null?void 0:Re.seats)>=u})]})]})})]})},Jd=y(g,{target:"e1f6ofo60"})({name:"1zwk2k",styles:"display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:6px"}),C6=({isProfileText:e=!1})=>{var o,l,u,d,p,h,m,f,C,E,b,w;const{palette:n}=Ve(),s=P(),{billingInfo:r,isLoading:a}=ot(),i=()=>{s(Ne({type:Y.UPDATE_CREDIT_CARD,headerText:"Update credit card"}))};return a?t.jsx(Pe,{}):e?t.jsx(kr,{display:"flex",flexDirection:"column",alignItems:"center",children:t.jsxs(Ot,{expanded:!0,sx:{width:"754px"},children:[t.jsx(Dt,{children:t.jsxs(g,{display:"flex",alignItems:"center",width:"100%",children:["Payment Method",t.jsx(k,{scale:"s",margin:"0 0 0 auto",onClick:i,children:"Update Credit Card"})]})}),t.jsxs(un,{children:[t.jsxs(g,{display:"flex",alignItems:"center",gap:"12px",mb:"16px",borderRadius:"8px",border:`1px solid ${n.greyBlue[30]}`,p:"16px",children:[t.jsx(Jd,{bgcolor:"bg.greyBlue",children:t.jsx(_o,{})}),t.jsxs(g,{children:[t.jsxs(S,{component:"span",mb:"4px",children:["•••• •••• •••• ",(l=(o=r==null?void 0:r.stripeTokenObject)==null?void 0:o.card)==null?void 0:l.last4]}),t.jsxs(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",medium:!0,children:["Expire ",(d=(u=r==null?void 0:r.stripeTokenObject)==null?void 0:u.card)==null?void 0:d.exp_month,"/",(h=(p=r==null?void 0:r.stripeTokenObject)==null?void 0:p.card)==null?void 0:h.exp_year]})]})]}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",medium:!0,children:"*The card on file will be used for future payments."}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",medium:!0,children:"*Feel free to update your payment details at any time on this page."})]})]})}):t.jsxs(g,{p:"16px",borderRadius:"12px",border:`1px solid ${n.greyBlue[30]}`,mb:"16px",children:[t.jsx(S,{medium:!0,fontSize:"16px",lineHeight:"24px",mb:"16px",children:"Payment Method"}),t.jsxs(g,{display:"flex",alignItems:"center",mb:"16px",children:[t.jsx(Jd,{bgcolor:"bg.greyBlue",children:t.jsx(_o,{})}),t.jsxs(g,{ml:"12px",mr:"auto",children:[t.jsxs(S,{component:"span",mb:"4px",children:["•••• •••• •••• ",(f=(m=r==null?void 0:r.stripeTokenObject)==null?void 0:m.card)==null?void 0:f.last4]}),t.jsxs(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",medium:!0,children:["Expire ",(E=(C=r==null?void 0:r.stripeTokenObject)==null?void 0:C.card)==null?void 0:E.exp_month,"/",(w=(b=r==null?void 0:r.stripeTokenObject)==null?void 0:b.card)==null?void 0:w.exp_year]})]}),t.jsx(k,{scale:"s",onClick:i,leftIcon:t.jsx(ls,{}),children:"Update Credit Card"})]}),t.jsx(He,{type:"info",noIcon:!0,message:t.jsxs(t.Fragment,{children:[t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.80",medium:!0,pl:"4px",children:"• Your credit card will be charged immediately."}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.80",medium:!0,pl:"4px",children:"• Unused time from your current billing cycle will be credited for future invoices."})]})})]})},xP=c.lazy(()=>ee(()=>import("./CRIB642r.js"),__vite__mapDeps([67,0,1,2,3,6,7,8,9,10,68,69,70,71,72,11,12,13])).then(e=>({default:e.SubscriptionPlans}))),fP=({isBillingShown:e})=>t.jsxs(Aa,{children:[t.jsx(H,{path:"/deactivated",element:t.jsx(Ye,{children:t.jsx(xt,{})}),children:t.jsx(t.Fragment,{children:e?t.jsxs(t.Fragment,{children:[t.jsx(H,{index:!0,element:t.jsx(c.Suspense,{fallback:t.jsx(ut,{}),children:t.jsx(xP,{})})}),t.jsx(H,{path:"subscription",element:t.jsx(gP,{})})]}):t.jsx(H,{index:!0,element:t.jsx(a6,{})})})}),t.jsx(H,{path:"/",element:t.jsx(Le,{to:"/deactivated",replace:!0})}),t.jsx(H,{path:"*",element:t.jsx(Le,{to:"/deactivated",replace:!0})})]}),e2=xr.map(e=>({value:e[0],label:e[0]})),t2=[{label:"Select",value:""},...Object.entries(Fo).map(([e,n])=>({value:e,label:n}))],CP=({isOpened:e,onClose:n})=>{var I,T,j;const s=P(),{billingInfo:r}=ot(),{register:a,reset:i,formState:{errors:o},watch:l,setValue:u,handleSubmit:d,control:p,setError:h}=lt({defaultValues:{company:"",vat:"",vatType:"",address:{country:"",region:"",city:"",line1:"",line2:"",postal_code:""}}}),{updateCompany:m,isLoading:f}=Q0({onSuccess:()=>{s(Z({type:"info",message:"Invoice information updated",autoCloseTime:3e3})),n()},onError:L=>{L!=null&&L.message.includes("Invalid value for")&&h("vat",{type:"custom",message:"Please add a valid Tax ID Number"})}}),C=L=>{m(L)},E=l("vatType"),b=l("address.country"),w=c.useMemo(()=>
172{if(!b)return[];const L=xr.find(_=>_[0]===b);return L?L[2].split("|").map(_=>({value:_.split("~")[0],label:_.split("~")[0]})):[]},[b]);return c.useEffect(()=>{if(r){const{company:L,vat:_,vatType:N,address:A}=r;i({company:L,vat:_,vatType:N,address:{country:A==null?void 0:A.country,region:(A==null?void 0:A.region)||(A==null?void 0:A.state),city:A==null?void 0:A.city,line1:A==null?void 0:A.line1,line2:A==null?void 0:A.line2,postal_code:A==null?void 0:A.postal_code}})}},[r]),t.jsxs(Hs,{isOpen:e,onClose:n,width:"860px",children:[t.jsx(Nu,{title:"Billing information",onClose:n}),t.jsxs(Au,{children:[t.jsxs(g,{display:"grid",gridTemplateColumns:"1fr 1fr",rowGap:"24px",columnGap:"16px",children:[t.jsx(g,{gridColumn:"span 2",children:t.jsx(Ce,{name:"company",register:a,parameters:{required:"Please add a company name",maxLength:{value:350,message:"Company name must be at most 350 characters"}},label:"Company Name",placeholder:"Company Name",showRequiredIcon:!0})}),t.jsx(rn,{name:"address.country",control:p,render:({field:L})=>t.jsx(Xe,{label:"Country",searchable:!0,value:e2.find(({value:_})=>_===L.value),options:e2,onChange:_=>{L.onChange(_==null?void 0:_.value)}})}),t.jsx(rn,{name:"address.region",control:p,render:({field:L})=>t.jsx(Xe,{label:"Region",searchable:!0,value:w.find(({value:_})=>_===L.value),options:w,onChange:_=>{L.onChange(_==null?void 0:_.value)}})}),t.jsx(Ce,{name:"address.city",register:a,label:"City",placeholder:"City, district, suburb, town, or village."}),t.jsx(Ce,{name:"address.postal_code",register:a,label:"ZIP",placeholder:"ZIP or postal code."}),t.jsx(Ce,{name:"address.line1",register:a,label:"Address Line 1",placeholder:"Address line 1 (e.g., street, PO Box, or company name)."}),t.jsx(Ce,{name:"address.line2",register:a,label:"Address Line 2",placeholder:"Address line 2 (e.g., apartment, suite, unit, or building)."}),t.jsx(rn,{name:"vatType",control:p,render:({field:L})=>t.jsx(Xe,{label:"Tax Type",searchable:!0,value:t2.find(({value:_})=>_===L.value),options:t2,onChange:_=>{_!=null&&_.value||u("vat",""),L.onChange(_==null?void 0:_.value)}})}),t.jsx(Ce,{name:"vat",register:a,parameters:{required:{value:!!E,message:"Please add a tax ID number"}},label:"Tax Number",placeholder:E?D2[E]:"Tax ID number",disabled:!E,showRequiredIcon:!!E})]}),t.jsx(S,{color:"additional.red50",fontSize:"12px",lineHeight:"16px",mt:"16px",children:((I=o.company)==null?void 0:I.message)||((T=o.vatType)==null?void 0:T.message)||((j=o.vat)==null?void 0:j.message)}),t.jsx(S,{fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",mt:"16px",medium:!0,children:"Note: This changes will take effect in your upcoming invoices"})]}),t.jsxs(Gy,{children:[t.jsx(k,{onClick:n,children:"Cancel"}),t.jsx(k,{type:"submit",processing:f,onClick:d(C),children:"Update"})]})]})},Tn=y(S,{target:"ekha0pe1"})("color:",({theme:e})=>e.palette.greyBlue[60],";font-size:12px;line-height:16px;font-weight:500;"),jn=y(S,{target:"ekha0pe0"})(""),y6=()=>{var i,o,l,u,d,p;const{billingInfo:e}=ot(),[n,s]=c.useState(!1),r=()=>{s(!0)},a=()=>{s(!1)};return t.jsxs(kr,{display:"flex",flexDirection:"column",alignItems:"center",children:[t.jsxs(Ot,{expanded:!0,sx:{width:"754px"},children:[t.jsx(Dt,{children:t.jsxs(g,{display:"flex",alignItems:"center",width:"100%",children:["Billing Information",t.jsx(k,{scale:"s",leftIcon:t.jsx(ls,{}),margin:"0 0 0 auto",onClick:r,children:"Edit"})]})}),t.jsx(un,{children:t.jsxs(g,{display:"grid",gridTemplateColumns:"1fr 1fr",columnGap:"24px",rowGap:"16px",children:[t.jsxs("span",{children:[t.jsx(Tn,{children:"Company name"}),t.jsx(jn,{children:(e==null?void 0:e.company)||"-"})]}),t.jsxs("span",{children:[t.jsx(Tn,{children:"Tax information"}),t.jsx(jn,{children:e!=null&&e.vatType?`${Fo[e.vatType]} ${e==null?void 0:e.vat}`:"-"})]}),t.jsx(Ue,{gridColumn:"span 2"}),t.jsxs("span",{children:[t.jsx(Tn,{children:"Country"}),t.jsx(jn,{children:((i=e==null?void 0:e.address)==null?void 0:i.country)||"-"})]}),t.jsxs("span",{children:[t.jsx(Tn,{children:"Region"}),t.jsx(jn,{children:((o=e==null?void 0:e.address)==null?void 0:o.state)||"-"})]}),t.jsxs("span",{children:[t.jsx(Tn,{children:"City"}),t.jsx(jn,{children:((l=e==null?void 0:e.address)==null?void 0:l.city)||"-"})]}),t.jsxs("span",{children:[t.jsx(Tn,{children:"ZIP"}),t.jsx(jn,{children:((u=e==null?void 0:e.address)==null?void 0:u.postal_code)||"-"})]}),t.jsxs("span",{children:[t.jsx(Tn,{children:"Address Line 1"}),t.jsx(jn,{children:((d=e==null?void 0:e.address)==null?void 0:d.line1)||"-"})]}),t.jsxs("span",{children:[t.jsx(Tn,{children:"Address Line 2"}),t.jsx(jn,{children:((p=e==null?void 0:e.address)==null?void 0:p.line2)||"-"})]})]})})]}),t.jsx(CP,{isOpened:n,onClose:a})]})},yP=y(g,{target:"e12wyznl0"})("display:flex;flex-direction:column;gap:24px;border:1px solid ",({theme:e})=>e.palette.gray[100],";border-radius:12px;padding:24px;"),EP=()=>{const{palette:e}=Ve(),{checkFeature:n}=We(),[s]=n(X.manageTeam),{billingInfo:r,isSubscriptionCanceled:a}=ot(),i=vl(),o=(i/((r==null?void 0:r.seats)||1)||0)*100,l=((r==null?void 0:r.seats)||1)-i;return t.jsxs(yP,{children:[t.jsxs(g,{display:"flex",alignItems:"center",children:[t.jsx(S,{fontSize:"16px",lineHeight:"24px",medium:!0,inline:!0,children:"Available Seats"}),t.jsxs(S,{semibold:!0,color:"greyBlue.60",inline:!0,ml:"auto",children:[t.jsx(NN,{style:{marginRight:"6px",verticalAlign:"bottom"}}),l," of ",r==null?void 0:r.seats]})]}),t.jsx(uy,{progress:o,bgColor:e.blue.primary,height:"6px"}),s&&!a&&!(r!=null&&r.isSubscriptionPaused)&&t.jsx(je,{leftIcon:!0,to:"/team/manage-team",semibold:!0,children:"View team users"})]})},SP=()=>{var r;const{billingInfo:e}=ot(),{resumeSubscription:n,isLoading:s}=E7();return t.jsx(He,{type:"info",messageProps:{semibold:!0},noDivider:!0,noIcon:!0,wrapperProps:{p:"12px 16px",mx:"16px",mt:"16px"},message:t.jsxs(t.Fragment,{children:[t.jsx(S,{fontSize:"16px",lineHeight:"24px",mb:"4px",medium:!0,children:"Your Subscription is Canceled"}),t.jsx(S,{inline:!0,children:"You will still be able to use the services included in your plan until: "}),t.jsx(S,{semibold:!0,inline:!0,children:se.unix(((r=e==null?void 0:e.stripeSubscriptionObject)==null?void 0:r.current_period_end)||0).format("MMMM DD, YYYY")}),t.jsx(S,{color:"greyBlue.80",fontSize:"12px",lineHeight:"16px",mb:"16px",mt:"4px",children:"You can choose to resume your subscription at any time before this date."}),t.jsx(k,{onClick:()=>n(),processing:s,scale:"s",children:"Resume Subscription"})]})})};se.extend(m2);const bP=()=>{const e=P(),{billingInfo:n}=ot(),s=()=>{e(Ne({type:Y.UNPAUSE_SUBSCRIPTION}))};return n!=null&&n.isSubscriptionPaused?t.jsx(He,{type:"info",messageProps:{semibold:!0},noDivider:!0,noIcon:!0,wrapperProps:{p:"12px 16px",mx:"16px",mt:"16px"},message:t.jsxs(t.Fragment,{children:[t.jsx(S,{fontSize:"16px",lineHeight:"24px",mb:"4px",medium:!0,children:"Your Subscription is Paused"}),t.jsxs(S,{inline:!0,children:["Your Meet Alfred subscription has been paused for"," ",se.duration({seconds:n==null?void 0:n.pauseDurationSeconds}).asDays()," days and will automatically resume on:"," "]}),t.jsx(S,{semibold:!0,inline:!0,children:se(n==null?void 0:n.autoResumeSubscriptionAt).format("MMMM DD, YYYY")}),t.jsx(S,{color:"greyBlue.80",fontSize:"12px",lineHeight:"16px",mb:"16px",mt:"4px",children:"You can resume your subscription at any time!"}),t.jsx(k,{onClick:s,scale:"s",children:"Resume Subscription"})]})}):null},LP=y(g,{target:"enwzjcv0"})({name:"uh5xjc",styles:"display:flex;align-items:center;gap:12px"}),wP=()=>{const e=P(),{palette:n}=Ve(),{companyName:s}=Fe(),{isSubscriptionCanceled:r,billingInfo:a}=ot(),i=a==null?void 0:a.freePhasePromo,{isBasic:o,isPro:l}=We(),{closeCancelModal:u}=wr(),d=!!i&&(a==null?void 0:a.billingType)===G.QUARTERLY&&(o||l)||a0(a==null?void 0:a.plan,a==null?void 0:a.billingType,a==null?void 0:a.stripeSubscriptionObject),p=()=>{e(Ne({type:Y.PAUSE_SUBSCRIPTION,size:"medium"}))},h=()=>{e(Ne({isActionsShown:!1,headerText:`Remove your account from ${s}`,descriptionText:"To remove your account, please contact support on the chat"}))},m=()=>{e(Ne({type:Y.CANCEL_SUBSCRIPTION,size:"medium",onCancel:u}))};return t.jsxs(LP,{children:[!(a!=null&&a.isSubscriptionPaused)&&!r&&!d&&t.jsx(k,{scale:"s",onClick:p,disabled:!!(a!=null&&a.pausedSubscriptionAt),tooltip:{title:!!(a!=null&&a.pausedSubscriptionAt)&&"You've reached the pause limit; this option is no longer available."},children:"Pause Subscription"}),t.jsx(k,{scale:"s",variant:"secondary",onClick:m,color:n.greyNeutral[100],borderColor:n.greyBlue[30],disabled:r||(a==null?void 0:a.isSubscriptionPaused),tooltip:{title:r&&"Your Subscription is Canceled"||(a==null?void 0:a.isSubscriptionPaused)&&"Your subscription is paused. To cancel, please resume your subscription first."},children:"Cancel Subscription"}),t.jsx(k,{scale:"s",variant:"secondary",onClick:h,color:n.greyNeutral[100],borderColor:"transparent",children:"Delete account"})]})},TP=y(g,{target:"e1qsmtno4"})("border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:12px;overflow:hidden;padding:16px;"),so=y(g,{target:"e1qsmtno3"})("border:1px solid ",({theme:e})=>e.palette.greyBlue[30],";border-radius:8px;padding:12px;width:100%;"),jP=y(g,{target:"e1qsmtno2"})({name:"51tche",styles:"border-radius:8px;padding:16px;background:linear-gradient(70deg, #00070d 0%, #000b16 18%, #10358f 48%, #1b4ed2 68%, #741ac9 100%)"}),vP=y(g,{target:"e1qsmtno1"})({name:"11ihl",styles:"position:relative;display:inline-block;border-radius:6px;padding:2px 12px;background:linear-gradient(90deg, #1b4ed2 0%, #741ac9 100%);border:1px solid #f8f8ff"}),IP=y(g,{target:"e1qsmtno0"})({name:"5inwyl",styles:"height:1px;width:100%;background-color:#404a58;margin-top:12px"}),E6=()=>{var K,re,ae;const e=P(),n=Rt(),{palette:s}=Ve(),{billingInfo:r,isLoading:a,isSubscriptionCanceled:i}=ot(),{shouldShowPromo:o,shouldShowProlongatedBlock:l}=Va(),u=r==null?void 0:r.freePhasePromo,{invoiceDetails:d,isLoading:p}=K0({enabled:!i}),{plan:h,billingType:m,currency:f,stripeSubscriptionObject:C,stripeTokenObject:E,seats:b=1,isSubscriptionPaused:w}=r||{},I=(re=(K=r==null?void 0:r.stripeSubscriptionObject)==null?void 0:K.plan)==null?void 0:re.id,T=I&&Kp.includes(I),j=!!u||T,L=T?"Christmas Promo 2025":u==null?void 0:u.name,_=Ih(h,C),N=s0(C),{data:A,isLoading:R}=Y0({plan:h,billingType:m,currency:f}),{minSeats:V=1,initialSeatsPrice:O=0,extraSeatPrice:B=0}=A||{},D=Math.max(b-V,0),M=D*B,F=[x.BUSINESS,x.AGENCY,x.ENTERPRISE,x.TEAMS].some(pe=>pe===h),W=C!=null&&C.current_period_end?se.unix(C.current_period_end).format("MMM D, YYYY"):"—",ne=()=>n("/billing/subscription/plans"),$=()=>n("/billing/subscription/edit"),z=()=>i?t.jsx(SP,{}):w?t.jsx(bP,{}):t.jsxs(Dt,{children:["Your Current Plan",!i&&!w&&t.jsx(k,{onClick:ne,scale:"s",margin:"0 0 0 auto",children:"Change plan"})]});return a||R?t.jsx(g,{display:"flex",justifyContent:"center",height:"100%",children:t.jsx(Pe,{})}
172):t.jsxs(kr,{display:"flex",alignItems:"flex-start",gap:"16px",children:[t.jsxs(Ot,{expanded:!0,sx:{width:"100%"},children:[z(),t.jsx(un,{children:t.jsxs(g,{display:"flex",flexDirection:"column",gap:"16px",children:[t.jsxs(TP,{children:[o&&t.jsxs(jP,{mb:"12px",children:[t.jsx(g,{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%",children:t.jsxs(g,{width:"100%",children:[t.jsx(vP,{children:t.jsx(S,{color:"#ffffff",fontSize:"10px",lineHeight:"20px",fontWeight:500,children:"SPECIAL OFFER FOR YOU!"})}),t.jsx(S,{mt:"24px",color:"#ffffff",fontSize:"16px",lineHeight:"20px",fontWeight:700,children:"Enjoyed your 3+3 deal?"}),t.jsxs(g,{display:"flex",gap:"16px",alignItems:"flex-end",justifyContent:"space-between",flexDirection:"row",width:"100%",sx:{"@media (max-width:1300px)":{flexDirection:"column",alignItems:"flex-start"}},children:[t.jsxs(S,{mt:"8px",color:"#A6ABB6",fontSize:"24px",lineHeight:"30px",fontWeight:600,children:["Renew Subscription For ",t.jsx("b",{style:{color:"#ffffff",fontWeight:600},children:"3 Months"}),t.jsx("br",{}),"And Get ",t.jsx("b",{style:{color:"#ffffff",fontWeight:600},children:"+3 Months FREE"})]}),t.jsx(g,{display:"flex",alignItems:"flex-end",height:"100%",pb:"4px",width:{xs:"100%",md:"auto"},children:t.jsx(k,{variant:"white",color:"#17171C",style:{border:"none",width:"100%"},onClick:()=>e(Ne({type:Y.RENEWAL_PROMO_CONFIRM,size:"medium"})),children:"Accept the Deal"})})]})]})}),t.jsx(IP,{}),t.jsxs(S,{fontSize:"12px",lineHeight:"16px",color:"#c8c8d0",mt:"12px",children:["Exclusively for users who claimed our Black Friday & Cyber Monday deal.",t.jsx("br",{}),"Please see the full"," ",t.jsx(je,{to:"https://meetalfred.com/terms-holidays-bf-cm-2025",color:"#e8e8eb",underline:!0,underlineColor:"#e8e8eb",hoverColor:"#c8c8d0",fontSize:"12px",lineHeight:"18px",external:!0,openNewTab:!0,children:"Terms and Conditions"})," ","for all promotion details and restrictions."]})]}),l&&t.jsxs(g,{mb:"16px",p:"12px 16px",borderRadius:"8px",bgcolor:"#F2F5FF",border:"0.5px solid #C7D7FE",children:[t.jsx(S,{color:"#000e33",fontSize:"16px",lineHeight:"24px",fontWeight:500,children:"Your Subscription Renewed"}),t.jsxs(S,{color:"#000e33",mt:"4px",fontSize:"14px",lineHeight:"20px",fontWeight:400,children:["Your special 3+3 deal is queued and will activate on:"," ",t.jsx("b",{style:{fontWeight:600},children:W})]})]}),t.jsxs(g,{p:"16px",border:`1px solid ${s.greyBlue[30]}`,borderRadius:"8px",bgcolor:`${s.bg.greyBlue}`,children:[t.jsxs(g,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[t.jsxs(g,{display:"flex",alignItems:"flex-start",gap:"8px",children:[t.jsxs(S,{capitalizeFirstLetter:!0,fontSize:"24px",lineHeight:"30px",semibold:!0,children:[h," plan"]}),j&&t.jsx(S,{fontSize:"24px",lineHeight:"30px",fontWeight:400,color:"inherit",children:L}),_&&t.jsx(S,{fontSize:"24px",lineHeight:"30px",fontWeight:400,color:"inherit",children:N})]}),!i&&!w&&t.jsx(k,{onClick:$,leftIcon:t.jsx(ls,{}),scale:"s",children:"Edit Plan"})]}),t.jsx(S,{color:"greyBlue.60",mt:"6px",children:h&&U2[h]})]}),t.jsxs(g,{display:"flex",gap:"12px",my:"12px",children:[t.jsxs(so,{children:[t.jsxs(S,{component:"span",fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",medium:!0,mb:"8px",children:[V," Included seat",V>1?"s":""]}),t.jsx(Ta,{price:O,currency:f,singleLine:!0})]}),!!D&&t.jsxs(so,{children:[t.jsxs(S,{component:"span",fontSize:"12px",lineHeight:"16px",color:"greyBlue.60",medium:!0,mb:"8px",children:[D," additional seat",D>1?"s":""]}),t.jsx(Ta,{price:M,currency:f,singleLine:!0})]}),t.jsxs(so,{children:[t.jsx(S,{component:"span",fontSize:"12px",lineHeight:"18px",color:"greyBlue.60",medium:!0,mb:"6px",children:"Billed"}),t.jsx(S,{color:"blue.dark",children:m&&ya[m]})]})]}),t.jsx(He,{messageProps:{color:"greyBlue.60",medium:!0},iconColor:s.greyBlue[60],message:i||w?t.jsx(t.Fragment,{children:"You can only modify your plan once your subscription is active again."}):t.jsxs(t.Fragment,{children:["Your next bill is ",ur(f),St(d==null?void 0:d.amount_due)," on",` ${W}`,".",t.jsx("br",{}),"Automatically paid with card ending in •••• ",(ae=E==null?void 0:E.
172card)==null?void 0:ae.last4,"."]})})]}),F&&t.jsx(EP,{}),t.jsx(wP,{})]})})]}),t.jsx(f6,{plan:h,billingType:m,currency:f,invoiceDetails:d,isLoadingInvoiceDetails:p,showInvoiceDetails:!i})]})},_P=({isBillingShown:e})=>{const{whitelabel:n}=Je();return t.jsx(Aa,{children:!n.isWhiteLabelUser&&e?t.jsxs(t.Fragment,{children:[t.jsxs(H,{path:"/billing",element:t.jsx(Ye,{children:t.jsx(xt,{})}),children:[t.jsxs(H,{path:"",element:t.jsx(sP,{}),children:[t.jsx(H,{path:"history",element:t.jsx(Ya,{})}),t.jsx(H,{path:"payment-method",element:t.jsx(C6,{isProfileText:!0})}),t.jsx(H,{path:"information",element:t.jsx(y6,{})}),t.jsx(H,{path:"subscription",element:t.jsx(E6,{})}),t.jsx(H,{path:"/billing/",element:t.jsx(Le,{to:"/billing/subscription",replace:!0})}),t.jsx(H,{path:"*",element:t.jsx(Le,{to:"/billing/subscription",replace:!0})})]}),t.jsx(H,{path:"/billing",element:t.jsx(Le,{to:"/billing",replace:!0})}),t.jsx(H,{path:"*",element:t.jsx(Le,{to:"/billing",replace:!0})})]}),t.jsx(H,{path:"*",element:t.jsx(Le,{to:"/billing",replace:!0})})]}):t.jsxs(t.Fragment,{children:[t.jsx(H,{path:"/paused",element:t.jsx(Ye,{children:t.jsx(a6,{isPaused:!0})})}),t.jsx(H,{path:"*",element:t.jsx(Le,{to:"/paused",replace:!0})})]})})},AP=()=>{const e=P(),{pathname:n}=mt(),{isAuth:s,profile:r,isAppDeactivated:a,isAppPaused:i}=fe(l=>l.user);is(),st({onSuccess:l=>e(br(l)),enabled:s});const{teamData:o}=Sl({teamId:r==null?void 0:r.lastTeamId},{enabled:!!(r!=null&&r.lastTeamId)&&s});return c.useEffect(()=>{n.startsWith("/contacts")||(e(xm()),e(Lm()),e(rm()),e(lm()),e(fo([])),e(T0([])))},[n]),c.useEffect(()=>{o&&e(k0(o))},[o]),{isAuth:s,isAppDeactivated:a,isAppPaused:i,profile:r}};se.extend(Cr);const NP=()=>{Wf();const{whitelabel:e}=Je(),{isAuth:n,isAppDeactivated:s,isAppPaused:r,profile:a}=AP(),{teamUser:i}=fe($=>$.team.data)??{},o=fe($=>$.user.isImpersonate),{realImpersonateUser:l,isLoading:u}=pn(),{isLoading:d}=st(),{isLoading:p,isError:h}=Sl({teamId:a==null?void 0:a.lastTeamId},{enabled:!!(a!=null&&a.lastTeamId&&n)}),m=!!(l!=null&&l.isAdminImpersonate),{isTrial:f,isManageGroupShown:C,isManageTeamShown:E,isTeamTemplatesShow:b,isTeamGroupsShown:w,isTeamShown:I,isTeamSettingsShown:T,isLibraryTemplatesShow:j,isBillingShown:L,isWhiteLabelShown:_,isGreetingsShown:N,isSequenceTemplateShown:A,isInvitedMemberShow:R}=La(),{isNotificationShown:V,isHelpShown:O}=La(),{isLoading:B}=gl();Qx();const D=!!(a!=null&&a.isBlocked),M=(a==null?void 0:a.id)!=null&&(i==null?void 0:i.userId)!=null&&Number(i.userId)===Number(a.id),W=D&&M&&(i==null?void 0:i.role)===Kt.OWNER&&!e.isWhiteLabelUser&&(!!(a!=null&&a.isEmailVerified)||m);return D&&!e.isWhiteLabelUser&&!m&&(o&&u||!!(a!=null&&a.isEmailVerified)&&(d||p&&!h))?t.jsx(ut,{}):W?t.jsx(tP,{}):r?t.jsx(_P,{isBillingShown:L}):s?t.jsx(fP,{isBillingShown:L}):t.jsxs(Aa,{children:[e.isWhiteLabelUser||t.jsxs(t.Fragment,{children:[t.jsx(H,{path:"/auth/signup",element:t.jsx(c.Suspense,{fallback:t.jsx(ut,{}),children:t.jsx(to,{})})}),t.jsx(H,{path:"/auth/signupx",element:t.jsx(c.Suspense,{fallback:t.jsx(ut,{}),children:t.jsx(to,{withPromoCode:!0})})}),t.jsx(H,{path:"/auth/signupx/:promoCode",element:t.jsx(c.Suspense,{fallback:t.jsx(ut,{}),children:t.jsx(to,{withPromoCode:!0})})})]}),t.jsx(H,{path:"/auth/login",element:t.jsx(c.Suspense,{fallback:t.jsx(ut,{}),children:t.jsx(wR,{})})}),t.jsx(H,{path:"/auth/forgotPassword",element:t.jsx(c.Suspense,{fallback:t.jsx(ut,{}),children:t.jsx(TR,{})})}),t.jsx(H,{path:"/reset-password/:token",element:t.jsx(c.Suspense,{fallback:t.jsx(ut,{}),children:t.jsx(jR,{})})}),t.jsx(H,{path:"/hubspot/callback",element:t.jsx(KM,{})}),t.jsx(H,{path:"/microsoft/callback",element:t.jsx(QM,{})}),t.jsx(H,{path:"/salesforce/callback",element:t.jsx(XM,{})}),t.jsx(H,{path:"/app/verifyEmail",element:t.jsx(Ye,{hideNavBar:!0,ignoreMinWidth:!0,children:t.jsx(IR,{})})}),t.jsx(H,{path:"/verify-email/:verificationCode",element:t.jsx(c.Suspense,{fallback:t.jsx(ut,{}),children:t.jsx(vR,{})})}),t.jsx(H,{path:"/email-verified",element:t.jsx(c.Suspense,{fallback:t.jsx(ut,{}),children:t.jsx(SM,{})})}),t.jsx(H,{path:"/welcome",element:t.jsx(Ye,{hideNavBar:!0,emptyNavBar:!0,ignoreMinWidth:!0,children:t.jsx(c.Suspense,{fallback:t.jsx(ut,{}),children:t.jsx(iM,{})})})}),t.jsx(H,{path:"/walkthrough",element:t.jsx(Ye,{emptyNavBar:!0,children:t.jsx(aM,{})})}),t.jsx(H,{path:"/email-unsubscribed",element:t.jsx(c.Suspense,{fallback:t.jsx(ut,{}),children:t.jsx(BM,{})})}),t.jsxs(H,{path:"/dashboard",element:t.jsx(Ye,{children:t.jsx(xt,{})}),children:[t.jsx(H,{path:":tab",element:t.jsx(_R,{})}),t.jsx(H,{index:!0,path:"*",element:t.jsx(Le,{to:"/dashboard/this-month",replace:!0})})]}),MP({isLoadingFeatureFlags:B,isNotificationShown:V}),t.jsx(H,{path:"/notification-settings",element:t.jsx(Ye,{children:t.jsx(NR,{})})}),t.jsxs(H,{path:"/campaign",element:t.jsx(Ye,{children:t.jsx($d,{})}),children:[t.jsx(H,{path:"choose-type",element:t.jsx(RR,{})}),t.jsx(H,{path:"add-leads/:category",element:t.jsx(Gd,{})}),t.jsx(H,{path:"new/:category",element:t.jsx(Gd,{})}),t.jsx(H,{path:"new/:category/:campaignPageType",element:t.jsx(MR,{})})]}),t.jsxs(H,{path:"/campaign",element:t.jsx(Ye,{children:t.jsx($d,{})}),children:[t.jsx(H,{path:":campaignId/audience",element:t.jsx(xM,{})}),t.jsx(H,{path:":campaignId/sequence",element:t.jsx(PR,{})}),t.jsx(H,{path:":campaignId/publish",element:t.jsx(fM,{})}),t.jsx(H,{path:"/campaign",element:t.jsx(Le,{to:"stats",replace:!0})})]}),t.jsxs(H,{path:"/campaign",element:t.jsx(Ye,{children:t.jsx(xt,{})}),children:[t.jsxs(H,{path:"stats/:category",element:t.jsx(xt,{}),children:[t.jsx(H,{index:!0,element:t.jsx(Le,{to:"active",replace:!0})}),t.jsx(H,{path:":tab",element:t.jsx(OR,{})})]}),t.jsx(H,{path:"stats/info/:stat/:campaignId",element:t.jsx($R,{})}),t.jsx(H,{path:"activity",element:t.jsx(DR,{})}),t.jsx(H,{path:"replies",element:t.jsx(UR,{})}),t.jsx(H,{path:"details/activity/:campaignId",element:t.jsx(BR,{})}),t.jsx(H,{path:"details/leads/:campaignId",element:t.jsx(HR,{})}),t.jsx(H,{path:"details/overview/:campaignId",element:t.jsx(VR,{})}),t.jsx(H,{path:"details/ignored-leads/:campaignId",element:t.jsx(FR,{})}),t.jsx(H,{path:"*",element:t.jsx(Le,{to:"/campaign/stats/linkedin/active",replace:!0})})]}),t.jsxs(H,{path:"/invitations",element:t.jsx(Ye,{children:t.jsx(xt,{})}),children:[t.jsx(H,{index:!0,element:t.jsx(Le,{to:"sent",replace:!0})}),t.jsx(H,{path:":tab",element:t.jsx(DM,{})})]}),kP({isWhiteLabelUser:e.isWhiteLabelUser,isBillingShown:L,isTrial:f}),t.jsxs(H,{path:"/inbox",element:t.jsx(Ye,{children:t.jsx(sM,{})}),children:[t.jsx(H,{path:"linkedin",element:t.jsx(zd,{type:Nt.ALL})}),t.jsx(H,{path:"in-mail",element:t.jsx(zd,{type:Nt.INMAIL})}),t.jsx(H,{path:"sales-navigator",element:t.jsx(rM,{})}),t.jsx(H,{path:"/inbox",element:t.jsx(Le,{to:"/inbox/linkedin",replace:!0})}),t.jsx(H,{path:"*",element:t.jsx(Le,{to:"/inbox/linkedin",replace:!0})})]}),t.jsxs(H,{path:"/posts",element:t.jsx(Ye,{children:t.jsx(xt,{})}),children:[t.jsx(H,{index:!0,element:t.jsx(Le,{to:"linkedin",replace:!0})}),t.jsx(H,{path:"new",element:t.jsx(hM,{})}),t.jsx(H,{path:":postId/details",element:t.jsx(mM,{})}),t.jsx(H,{path:":postType",element:t.jsx(gM,{})})]}),t.jsx(H,{path:"trends",element:t.jsx(Ye,{children:t.jsx(EM,{})})}),t.jsx(H,{path:"/integrations",element:t.jsx(Ye,{children:t.jsx(oM,{})})}),PP({isGreetingsShown:N,isWhiteLabelShown:_}),t.jsxs(H,{path:"/documentation/webhook",element:t.jsx(Ye,{children:t.jsx(VM,{})}),children:[t.jsx(H,{path:"add-new-lead",element:t.jsx(qM,{})}),t.jsx(H,{path:"get-campaigns",element:t.jsx(FM,{})}),t.jsx(H,{path:"get-leads",element:t.jsx(zM,{})}),t.jsx(H,{path:"get-connections",element:t.jsx($M,{})}),t.jsx(H,{path:"get-replies",element:t.jsx(ZM,{})}),t.jsx(H,{path:"get-team-members",element:t.jsx(YM,{})}),t.jsx(H,{path:"get-member-connections",element:t.jsx(WM,{})}),t.jsx(H,{path:"get-last-actions",element:t.jsx(GM,{})}),t.jsx(H,{index:!0,path:"*",element:t.jsx(Le,{to:"/documentation/webhook/add-new-lead",replace:!0})})]}),t.jsx(H,{path:"/tags",element:t.jsx(Ye,{children:t.jsx(CM,{})})}),OP({isTeamTemplatesShow:b,isLibraryTemplatesShow:j,isSequenceTemplateShown:A}),t.jsxs(H,{path:"/contacts",element:t.jsx(Ye,{children:t.jsx(xt,{})}),children:[t.jsx(H,{path:"connections",element:t.jsx(eM,{})}),t.jsx(H,{path:"leads",element:t.jsx(tM,{})}),t.jsxs(H,{path:"blacklist",children:[t.jsx(H,{path:"connections",element:t.jsx(XR,{})}),t.jsx(H,{path:"leads",element:t.jsx(JR,{})}),t.jsx(H,{index:!0,element:t.jsx(Le,{to:"connections",replace:!0})})]}),t.jsx(H,{index:!0,element:t.jsx(Le,{to:"connections",replace:!0})})]}),t.jsx(H,{path:"/contacts",element:t.jsx(Ye,{children:t.jsx(xt,{})})}),RP({isTeamShown:I,isManageTeamShown:E,isManageGroupShown:C,isTeamGroupsShown:w,isInvitedMemberShow:R,isTeamSettingsShown:T}),t.jsxs(H,{path:"/interactive-campaign",element:t.jsx(Ye,{hideNavBar:!0,emptyNavBar:!0,children:t.jsx(xt,{})}),children:[t.jsx(H,{path:"",element:t.jsx(lM,{})}),t.jsx(H,{path:":campaignId?/questions",element:t.jsx(uM,{})}),t.jsx(H,{path:":campaignId/leads",element:t.jsx(dM,{})}),t.jsx(H,{path:":campaignId/sequence",element:t.jsx(pM,{})}),t.jsx(H,{path:":campaignId/overview",element:t.jsx(cM,{})})]}),t.jsx(H,{path:"/lead-finder",element:t.jsx(Ye,{children:t.jsx(xt,{})}),children:t.jsx(H,{path:"",element:t.jsx(nM,{})})}),DP({isLoadingFeatureFlags:B,isHelpShown:O}),t.jsx(H,{path:"/li-verification/:verificationToken",element:t.jsx(HM,{})}),t.jsx(H,{path:"/deactivated",element:t.jsx(Le,{to:"/dashboard",replace:!0})}),t.jsx(H,{path:"/",element:t.jsx(Le,{to:n?"/contacts/connections":"/auth/login",replace:!0})}),t.jsx(H,{path:"*",element:n?t.jsx(c.Suspense,{fallback:t.jsx(ut,{}),children:t.jsx(UM,{})}):t.jsx(Le,{to:"/auth/login",replace:!0})})]})},kP=({isWhiteLabelUser:e,isBillingShown:n,isTrial:s})=>e?null:t.jsxs(H,{path:"/billing",element:t.jsx(Ye,{children:t.jsx(xt,{})}),children:[n&&t.jsxs(t.Fragment,{children:[t.jsx(H,{path:"subscription/plans",element:t.jsx(QR,{})}
172),s&&t.jsx(H,{path:"subscription/new",element:t.jsx(qR,{})}),!s&&t.jsxs(t.Fragment,{children:[t.jsx(H,{path:"subscription/edit",element:t.jsx(ZR,{})}),t.jsxs(H,{path:"",element:t.jsx(GR,{}),children:[t.jsx(H,{path:"history",element:t.jsx(zR,{})}),t.jsx(H,{path:"payment-method",element:t.jsx(YR,{isProfileText:!0})}),t.jsx(H,{path:"information",element:t.jsx(WR,{})}),t.jsx(H,{path:"subscription",element:t.jsx(KR,{})}),t.jsx(H,{path:"/billing/",element:t.jsx(Le,{to:"/billing/subscription",replace:!0})}),t.jsx(H,{path:"*",element:t.jsx(Le,{to:"/billing/subscription",replace:!0})})]})]}),t.jsx(H,{path:"/billing",element:t.jsx(Le,{to:"/billing/subscription/plans",replace:!0})}),t.jsx(H,{path:"*",element:t.jsx(Le,{to:"/billing/subscription/plans",replace:!0})})]}),t.jsx(H,{path:"/billing",element:t.jsx(Le,{to:"/dashboard",replace:!0})}),t.jsx(H,{path:"*",element:t.jsx(Le,{to:"/dashboard",replace:!0})})]}),RP=({isTeamShown:e,isManageTeamShown:n,isManageGroupShown:s,isTeamGroupsShown:r,isInvitedMemberShow:a,isTeamSettingsShown:i})=>t.jsxs(t.Fragment,{children:[t.jsxs(H,{path:"/team",element:t.jsx(Ye,{children:e?t.jsx(xt,{}):t.jsx(Le,{to:"/dashboard",replace:!0})}),children:[t.jsx(H,{path:"stats",element:t.jsx(PM,{})}),t.jsx(H,{path:"manage-team",element:n?t.jsx(RM,{}):t.jsx(Le,{to:s?"/team/manage-group":"/team/stats",replace:!0})}),t.jsx(H,{path:"manage-group",element:s?t.jsx(OM,{}):t.jsx(Le,{to:"/team/stats",replace:!0})}),t.jsx(H,{path:"groups",element:r?t.jsx(AM,{}):t.jsx(Le,{to:"/team/stats",replace:!0})}),t.jsx(H,{path:"invited",element:a?t.jsx(kM,{}):t.jsx(Le,{to:"/team/stats",replace:!0})}),t.jsx(H,{path:"settings",element:i?t.jsx(MM,{}):t.jsx(Le,{to:"/settings/user-profile",replace:!0})})]}),t.jsx(H,{path:"/team/invite/:inviteKey",element:t.jsx(c.Suspense,{fallback:t.jsx(ut,{}),children:t.jsx(NM,{})})})]}),S6=({isLoading:e,isShown:n,children:s})=>e?t.jsx(ut,{}):n?s:t.jsx(Le,{to:"/dashboard",replace:!0}),MP=({isLoadingFeatureFlags:e,isNotificationShown:n})=>t.jsx(H,{path:"/notifications",element:S6({isLoading:e,isShown:n,children:t.jsx(Ye,{children:t.jsx(AR,{})})})}),PP=({isGreetingsShown:e,isWhiteLabelShown:n})=>t.jsxs(H,{path:"/settings",element:t.jsx(Ye,{children:t.jsx(bM,{})}),children:[t.jsx(H,{index:!0,element:t.jsx(Le,{to:"/settings/user-profile",replace:!0})}),t.jsx(H,{path:"user-profile",element:t.jsx(LM,{})}),t.jsx(H,{path:"work-hours",element:t.jsx(wM,{})}),t.jsx(H,{path:"daily-limits",element:t.jsx(TM,{})}),t.jsx(H,{path:"auto-withdrawals",element:t.jsx(jM,{})}),t.jsx(H,{path:"greetings",element:e?t.jsx(vM,{}):t.jsx(Le,{to:"/settings/user-profile",replace:!0})}),t.jsx(H,{path:"white-label",element:n?t.jsx(_M,{}):t.jsx(Le,{to:"/campaign/stats/linkedin/active",replace:!0})}),t.jsx(H,{path:"*",element:t.jsx(IM,{})})]}),OP=({isTeamTemplatesShow:e,isLibraryTemplatesShow:n,isSequenceTemplateShown:s})=>t.jsxs(t.Fragment,{children:[t.jsxs(H,{path:"/templates",element:t.jsx(Ye,{children:t.jsx(xt,{})}),children:[t.jsx(H,{index:!0,element:t.jsx(Le,{to:"/templates/personal",replace:!0})}),t.jsx(H,{path:"personal",element:t.jsx(Zd,{})}),t.jsx(H,{path:"personal/:categoryId",element:t.jsx(Zd,{})}),t.jsx(H,{path:"team",element:e?t.jsx(Yd,{}):t.jsx(Le,{to:"/dashboard",replace:!0})}),t.jsx(H,{path:"team/:categoryId",element:e?t.jsx(Yd,{}):t.jsx(Le,{to:"/dashboard",replace:!0})}),t.jsx(H,{path:"library",element:n?t.jsx(Kd,{}):t.jsx(Le,{to:"/dashboard",replace:!0})}),t.jsx(H,{path:"library/:categoryId",element:n?t.jsx(Kd,{}):t.jsx(Le,{to:"/dashboard",replace:!0})}),t.jsx(H,{path:"new",element:t.jsx(yM,{})})]}),t.jsxs(H,{path:"/sequence-templates",element:t.jsx(Ye,{children:t.jsx(xt,{})}),children:[t.jsx(H,{index:!0,element:t.jsx(Le,{to:"/sequence-templates/personal",replace:!0})}),t.jsx(H,{path:"personal",element:t.jsx(qd,{availability:Jn.personal})}),t.jsx(H,{path:"team",element:s?t.jsx(qd,{availability:Jn.team}):t.jsx(Le,{to:"/sequence-templates/personal",replace:!0})}),t.jsx(H,{path:"new",element:t.jsx(Wd,{})}),t.jsx(H,{path:":id",element:t.jsx(Wd,{isEdit:!0})})]})]}),DP=({isLoadingFeatureFlags:e,isHelpShown:n})=>t.jsx(H,{path:"/video-library",element:S6({isLoading:e,isShown:n,children:t.jsx(Ye,{children:t.jsx(xt,{})})}),children:t.jsx(H,{path:"",element:t.jsx(kR,{})})}),UP=["/reset-password"],n2="clarity-script",BP=()=>{const e=mt();return c.useEffect(()=>{let n=document.getElementById(n2);UP.some(s=>e.pathname.includes(s))?n&&document.head.removeChild(n):n||(n=document.createElement("script"),n.id=n2,n.innerHTML=["(function(c,l,a,r,i,t,y){ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};",'t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;',"y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y); })",'(window, document, "clarity", "script", "odg8sgc5z0");'].join(""),document.head.appendChild(n))},[e.pathname]),null},s2="cloudflare-analytics-script",HP=()=>(c.useEffect(()=>{let e=document.getElementById(s2);e||(e=document.createElement("script"),e.id=s2,e.defer=!0,e.src="https://static.cloudflareinsights.com/beacon.min.js",e.setAttribute("data-cf-beacon",'{"token": "b385110c896a40068bea32e3703d4fae"}'),document.body.appendChild(e))},[]),null),VP=["/reset-password"],r2="gtm-analytics-script",a2="gtm-analytics-noscript",FP=()=>{const e=mt();return c.useEffect(()=>{let n=document.getElementById(r2),s=document.getElementById(a2);
172VP.some(r=>e.pathname.includes(r))?(n&&document.head.removeChild(n),s&&document.body.removeChild(s)):(n||(n=document.createElement("script"),n.id=r2,n.innerHTML=`
vendor: 378 bytes, lines 172-177
172
173          (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
174          new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
175          j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
176          'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
177          })(window,document,'script','dataLayer','
177GTM-WFQ8RP4B
vendor: 12 bytes, lines 177-178
177');
178        
178`,document.head.insertBefore(n,document.head.firstChild)),s||(s=document.createElement("noscript"),s.id=a2,s.innerHTML=`
179            <!-- Google Tag Manager (noscript) -->
180            <iframe src="https://www.googletagmanager.com/ns.html?id=GTM-WFQ8RP4B" height="0" width="0" style="display:none;visibility:hidden"></iframe>
181            <!-- End Google Tag Manager (noscript) -->
182        `,document.body.insertBefore(s,document.body.firstChild)))},[e.pathname]),null},i2="hotjar-analytics-script",$P=()=>{const{isTrial:e,isTrialStarted:n}=We();return c.useEffect(()=>{const s="4992682";let r=document.getElementById(i2);e&&n?r||(r=document.createElement("script"),r.id=i2,r.innerHTML=`
183          (function(h,o,t,j,a,r){
184            h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
185            h._hjSettings={hjid:${s},hjsv:6};
186            a=o.getElementsByTagName('head')[0];
187            r=o.createElement('script');r.async=1;
188            r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
189            a.appendChild(r);
190          })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
191        `,document.head.appendChild(r)):r&&document.head.removeChild(r)},[e,n]),null},GP=new mp({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1,refetchOnReconnect:!1,refetchOnMount:!1}}});function zP(){return t.jsx(gp,{store:i9,children:t.jsx(Vg,{client:GP,children:t.jsx(CR,{children:t.jsx(yR,{children:t.jsxs(xp,{children:[t.jsx(iS,{tutorials:[oR],children:t.jsx(bR,{children:t.jsxs(LR,{children:[t.jsx(fR,{}),t.jsx(Zk,{}),t.jsx(NP,{})]})})}),t.jsx(FP,{}),t.jsx($P,{}),t.jsx(BP,{}),t.jsx(HP,{})]})})})})})}const WP=fp.createRoot(document.getElementById("root"));WP.render(t.jsx(zP,{}));const qP=Object.freeze(Object.defineProperty({__proto__:null,BillingHistory:Ya},Symbol.toStringTag,{value:"Module"})),ZP=Object.freeze(Object.defineProperty({__proto__:null,BillingInformation:y6},Symbol.toStringTag,{value:"Module"})),YP=Object.freeze(Object.defineProperty({__proto__:null,PaymentMethod:C6},Symbol.toStringTag,{value:"Module"})),KP=Object.freeze(Object.defineProperty({__proto__:null,SubscriptionPlan:E6},Symbol.toStringTag,{value:"Module"}));export{mu as $,U as A,qD as B,ue as C,Mt as D,Ot as E,Dt as F,k as G,Ga as H,nV as I,e3 as J,un as K,le as L,Y as M,je as N,rD as O,Dn as P,fe as Q,ir as R,ws as S,we as T,We as U,Ce as V,jC as W,X,Kt as Y,Xe as Z,Pt as _,S as a,Fp as a$,a7 as a0,NN as a1,SH as a2,zB as a3,Ye as a4,LU as a5,OO as a6,PO as a7,Fe as a8,st as a9,$e as aA,Pe as aB,NS as aC,vi as aD,kS as aE,Ru as aF,Nl as aG,Pu as aH,as as aI,Zo as aJ,VO as aK,Sr as aL,fn as aM,br as aN,MO as aO,Je as aP,$a as aQ,FD as aR,eV as aS,tV as aT,DH as aU,yn as aV,qp as aW,Gp as aX,Wp as aY,$p as aZ,zp as a_,Lr as aa,nN as ab,lD as ac,cD as ad,xO as ae,c1 as af,rl as ag,_l as ah,Ue as ai,Yo as aj,qu as ak,cn as al,t0 as am,Ko as an,l1 as ao,$C as ap,ey as aq,yj as ar,vO as as,dD as at,qb as au,xn as av,MB as aw,m9 as ax,mB as ay,gB as az,i5 as b,r6 as b$,$D as b0,Ul as b1,UV as b2,f0 as b3,xB as b4,hB as b5,Rf as b6,yl as b7,Ea as b8,oO as b9,wE as bA,u1 as bB,Ds as bC,af as bD,Yy as bE,iH as bF,nw as bG,aH as bH,fH as bI,Us as bJ,Tr as bK,Ob as bL,sH as bM,KB as bN,B5 as bO,kO as bP,RO as bQ,Mw as bR,es as bS,Oa as bT,R7 as bU,KD as bV,uy as bW,X0 as bX,pl as bY,hV as bZ,TC as b_,NV as ba,AV as bb,kV as bc,pn as bd,cl as be,UH as bf,y_ as bg,DO as bh,ut as bi,ot as bj,Ll as bk,bl,Yn as bm,ls as bn,qf as bo,IS as bp,TH as bq,AO as br,NO as bs,ve as bt,FU as bu,dH as bv,TS as bw,Jt as bx,LE as by,IC as bz,ul as c,vl as c$,FB as c0,$B as c1,Fx as c2,yy as c3,o5 as c4,Jn as c5,sn as c6,lV as c7,cV as c8,cT as c9,sl as cA,dU as cB,CB as cC,ar as cD,v7 as cE,j7 as cF,D7 as cG,Ws as cH,Ij as cI,u3 as cJ,p3 as cK,Hh as cL,G as cM,aV as cN,iV as cO,oV as cP,Te as cQ,Os as cR,Qp as cS,iO as cT,ur as cU,Ta as cV,x as cW,ya as cX,zD as cY,hw as cZ,LC as c_,dV as ca,lU as cb,VD as cc,Uh as cd,JH as ce,Mn as cf,Ms as cg,Cl as ch,Bn as ci,Cn as cj,WD as ck,o0 as cl,YI as cm,h_ as cn,lA as co,pm as cp,uU as cq,fB as cr,EB as cs,yB as ct,Il as cu,Vb as cv,_t as cw,d3 as cx,d1 as cy,_V as cz,za as d,w_ as d$,Va as d0,kr as d1,TD as d2,pB as d3,B7 as d4,is as d5,Un as d6,Ma as d7,ht as d8,jr as d9,qH as dA,s6 as dB,Nr as dC,ln as dD,gr as dE,bs as dF,m3 as dG,_b as dH,$o as dI,$l as dJ,jd as dK,Zi as dL,Dh as dM,xe as dN,zg as dO,zU as dP,GU as dQ,fU as dR,mn as dS,hU as dT,N9 as dU,Nt as dV,Ba as dW,Rn as dX,$U as dY,ah as dZ,ry as d_,Vl as da,VB as db,GB as dc,Oh as dd,$x as de,WB as df,SU as dg,pU as dh,Lu as di,lH as dj,oH as dk,cH as dl,Al as dm,q_ as dn,Hl as dp,os as dq,I5 as dr,_5 as ds,va as dt,n6 as du,yH as dv,CH as dw,w2 as dx,Q as dy,ZH as dz,oc as e,H5 as e$,t6 as e0,J4 as e1,J3 as e2,X3 as e3,SO as e4,gU as e5,CU as e6,nH as e7,tH as e8,lO as e9,_n as eA,zn as eB,IL as eC,jH as eD,vH as eE,IH as eF,WN as eG,HN as eH,Pd as eI,$N as eJ,ZC as eK,rr as eL,v1 as eM,VN as eN,pi as eO,IO as eP,HV as eQ,BV as eR,YH as eS,WH as eT,KH as eU,ZB as eV,qB as eW,rH as eX,YB as eY,M1 as eZ,UN as e_,Hs as ea,Nu as eb,Au as ec,La as ed,Gf as ee,jO as ef,aD as eg,iD as eh,mD as ei,I4 as ej,cu as ek,jl as el,Vj as em,k7 as en,Rj as eo,um as ep,Bj as eq,mV as er,bH as es,mH as et,EH as eu,p7 as ev,RV as ew,fo as ex,ED as ey,Yj as ez,_r as f,Mx as f$,G1 as f0,uH as f1,pH as f2,XH as f3,mr as f4,df as f5,cf as f6,CD as f7,yD as f8,sD as f9,xH as fA,gH as fB,eH as fC,QB as fD,XB as fE,JB as fF,s7 as fG,_H as fH,Sl as fI,mf as fJ,xf as fK,yr as f
191L,gE as fM,z5 as fN,_O as fO,xD as fP,gD as fQ,l3 as fR,er as fS,sV as fT,Bh as fU,yU as fV,v as fW,eb as fX,hu as fY,Ox as fZ,Dx as f_,q4 as fa,O3 as fb,Gy as fc,F0 as fd,gV as fe,Ja as ff,L3 as fg,bv as fh,Xt as fi,$i as fj,TI as fk,IV as fl,ID as fm,Tv as fn,jv as fo,wv as fp,Lv as fq,ZU as fr,qU as fs,wd as ft,eA as fu,l5 as fv,Ps as fw,Ua as fx,l7 as fy,B2 as fz,dn as g,a5 as g$,jb as g0,mb as g1,gb as g2,M5 as g3,bO as g4,ob as g5,Sc as g6,lb as g7,vN as g8,sB as g9,vL as gA,gL as gB,ZL as gC,rV as gD,KM as gE,QM as gF,XM as gG,RH as gH,PH as gI,MH as gJ,NH as gK,AH as gL,kH as gM,OH as gN,UD as gO,Fa as gP,Z5 as gQ,vC as gR,DV as gS,Gn as gT,zx as gU,nD as gV,r5 as gW,n5 as gX,s5 as gY,e5 as gZ,t5 as g_,hO as ga,nB as gb,gO as gc,rB as gd,aB as ge,YU as gf,tB as gg,Ts as gh,Za as gi,Wa as gj,He as gk,qa as gl,pO as gm,mO as gn,S5 as go,uO as gp,ju as gq,du as gr,ou as gs,Tx as gt,i3 as gu,Kh as gv,Qb as gw,YL as gx,LL as gy,tw as gz,Qe as h,OD as h$,JO as h0,LV as h1,yV as h2,EV as h3,SV as h4,bV as h5,Vn as h6,j3 as h7,vv as h8,Ql as h9,V3 as hA,Rr as hB,wV as hC,vV as hD,CA as hE,ZD as hF,_D as hG,MD as hH,FO as hI,GO as hJ,$O as hK,XO as hL,QO as hM,zO as hN,uD as hO,eD as hP,WO as hQ,bf as hR,fu as hS,HD as hT,ND as hU,fA as hV,PV as hW,PD as hX,kD as hY,t7 as hZ,o7 as h_,Jl as ha,Mr as hb,I3 as hc,e1 as hd,Dv as he,ad as hf,rd as hg,Xl as hh,t1 as hi,n1 as hj,Hv as hk,ft as hl,MV as hm,CV as hn,kv as ho,_3 as hp,fV as hq,Rv as hr,xV as hs,N3 as ht,Mv as hu,Pv as hv,g3 as hw,jV as hx,TV as hy,P3 as hz,Ir as i,uB as i$,Ur as i0,YD as i1,T7 as i2,OV as i3,AD as i4,Q4 as i5,RD as i6,AU as i7,vD as i8,jD as i9,D5 as iA,O5 as iB,Eo as iC,bu as iD,Q2 as iE,w1 as iF,bn as iG,dx as iH,nU as iI,tU as iJ,LO as iK,LH as iL,qO as iM,hD as iN,YO as iO,wD as iP,Gh as iQ,LD as iR,cB as iS,oB as iT,lB as iU,iB as iV,eB as iW,XU as iX,JU as iY,KU as iZ,SB as i_,Xc as ia,DU as ib,PU as ic,OU as id,MU as ie,Kj as ig,BD as ih,DD as ii,ct as ij,T1 as ik,wO as il,TO as im,hH as io,hn as ip,wB as iq,TB as ir,vB as is,bB as it,LB as iu,jB as iv,IB as iw,nl as ix,po as iy,EO as iz,dS as j,U0 as j$,$h as j0,QD as j1,sU as j2,om as j3,T0 as j4,JD as j5,C0 as j6,zt as j7,N5 as j8,uT as j9,OB as jA,NB as jB,kB as jC,_B as jD,UU as jE,AB as jF,jU as jG,vU as jH,HB as jI,BU as jJ,HU as jK,DB as jL,_U as jM,kU as jN,RB as jO,IU as jP,PB as jQ,$H as jR,VU as jS,f9 as jT,HH as jU,VH as jV,$u as jW,y9 as jX,C9 as jY,D0 as jZ,Wn as j_,Mi as ja,LT as jb,rU as jc,dT as jd,uV as je,CO as jf,Hy as jg,cO as jh,vf as ji,Sn as jj,pV as jk,eU as jl,b0 as jm,aU as jn,Jp as jo,Fl as jp,fO as jq,dO as jr,ZO as js,KO as jt,dB as ju,QU as jv,wU as jw,UB as jx,BB as jy,g9 as jz,vr as k,TU as k0,O0 as k1,KT as k2,j5 as k3,Im as k4,vm as k5,wH as k6,jm as k7,_m as k8,ME as k9,C6 as kA,f6 as kB,gi as kC,GD as kD,gP as kE,sP as kF,yO as ka,oR as kb,zH as kc,PE as kd,NU as ke,BH as kf,GH as kg,FH as kh,RU as ki,ee as kj,bD as kk,SD as kl,WU as km,Es as kn,Mu as ko,HO as kp,e6 as kq,XD as kr,UO as ks,BO as kt,vh as ku,x7 as kv,Qn as kw,L7 as kx,cC as ky,pP as kz,ze as l,Se as m,pD as n,Ne as o,oD as p,Ou as q,Fh as r,fD as s,Su as t,QH as u,Da as v,J as w,tD as x,de as y,Z as z};

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.