1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,808341,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={cancelIdleCallback:function(){return o},requestIdleCallback:function(){return i}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i="u">typeof self&&self.requestIdleCallback&&self.requestIdleCallback.bind(window)||function(e){let t=Date.now();return self.setTimeout(function(){e({didTimeout:!1,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})},1)},o="u">typeof self&&self.cancelIdleCallback&&self.cancelIdleCallback.bind(window)||function(e){return clearTimeout(e)};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},479520,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a={default:function(){return y},handleClientScriptLoad:function(){return h},initScriptLoader:function(){return b}};for(var n in a)Object.defineProperty(r,n,{enumerable:!0,get:a[n]});let i=e.r(555682),o=e.r(190809),s=e.r(843476),l=i._(e.r(174080)),c=o._(e.r(271645)),u=e.r(742732),d=e.r(922737),p=e.r(808341),m=new Map,f=new Set,g=e=>{let{src:t,id:r,onLoad:a=()=>{},onReady:n=null,dangerouslySetInnerHTML:i,children:o="",strategy:s="afterInteractive",onError:c,stylesheets:u}=e,p=r||t;if(p&&f.has(p))return;if(m.has(t)){f.add(p),m.get(t).then(a,c);return}let g=()=>{n&&n(),f.add(p)},h=document.createElement("script"),b=new Promise((e,t)=>{h.addEventListener("load",function(t){e(),a&&a.call(this,t),g()}),h.addEventListener("error",function(e){t(e)})}).catch(function(e){c&&c(e)});i?(h.innerHTML=i.__html||"",g()):o?(h.textContent="string"==typeof o?o:Array.isArray(o)?o.join(""):"",g()):t&&(h.src=t,m.set(t,b)),(0,d.setAttributesFromProps)(h,e),"worker"===s&&h.setAttribute("type","text/partytown"),h.setAttribute("data-nscript",s),u&&(e=>{if(l.default.preinit)return e.forEach(e=>{l.default.preinit(e,{as:"style"})});if("u">typeof window){let t=document.head;e.forEach(e=>{let r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.href=e,t.appendChild(r)})}})(u),document.body.appendChild(h)};function h(e){let{strategy:t="afterInteractive"}=e;"lazyOnload"===t?window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>g(e))}):g(e)}function b(e){e.forEach(h),[...document.querySelectorAll('[data-nscript="beforeInteractive"]'),...document.querySelectorAll('[data-nscript="beforePageRender"]')].forEach(e=>{let t=e.id||e.getAttribute("src");f.add(t)})}function x(e){let{id:t,src:r="",onLoad:a=()=>{},onReady:n=null,strategy:i="afterInteractive",onError:o,stylesheets:d,...m}=e,{updateScripts:h,scripts:b,getIsSsr:x,appDir:y,nonce:v}=(0,c.useContext)(u.HeadManagerContext);v=m.nonce||v;let _=(0,c.useRef)(!1);(0,c.useEffect)(()=>{let e=t||r;_.current||(n&&e&&f.has(e)&&n(),_.current=!0)},[n,t,r]);let w=(0,c.useRef)(!1);if((0,c.useEffect)(()=>{if(!w.current){if("afterInteractive"===i)g(e);else"lazyOnload"===i&&("complete"===document.readyState?(0,p.requestIdleCallback)(()=>g(e)):window.addEventListener("load",()=>{(0,p.requestIdleCallback)(()=>g(e))}));w.current=!0}},[e,i]),("beforeInteractive"===i||"worker"===i)&&(h?(b[i]=(b[i]||[]).concat([{id:t,src:r,onLoad:a,onReady:n,onError:o,...m,nonce:v}]),h(b)):x&&x()?f.add(t||r):x&&!x()&&g({...e,nonce:v})),y){if(d&&d.forEach(e=>{l.default.preinit(e,{as:"style"})}),"beforeInteractive"===i)if(!r)return m.dangerouslySetInnerHTML&&(m.children=m.dangerouslySetInnerHTML.__html,delete m.dangerouslySetInnerHTML),(0,s.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([0,{...m,id:t}])})`}});else return l.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:v,crossOrigin:m.crossOrigin}:{as:"script",nonce:v,crossOrigin:m.crossOrigin}),(0,s.jsx)("script",{nonce:v,dangerouslySetInnerHTML:{__html:`(self.__next_s=self.__next_s||[]).push(${JSON.stringify([r,{...m,id:t}])})`}});"afterInteractive"===i&&r&&l.default.preload(r,m.integrity?{as:"script",integrity:m.integrity,nonce:v,crossOrigin:m.crossOrigin}:{as:"script",nonce:v,crossOrigin:m.crossOrigin})}return null}Object.defineProperty(x,"__nextScript",{value:!0});let y=x;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},363178,e=>{"use strict";var t=e.i(271645),r=(e,t,r,a,n,i,o,s)=>{let l=document.documentElement,c=["light","dark"];function u(t){var r;(Array.isArray(e)?e:[e]).forEach(e=>{let r="class"===e,a=r&&i?n.map(e=>i[e]||e):n;r?(l.classList.remove(...a),l.classList.add(i&&i[t]?i[t]:t)):l.setAttribute(e,t)}),r=t,s&&c.includes(r)&&(l.style.colorScheme=r)}if(a)u(a);else try{let e=localStorage.getItem(t)||r,a=o&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;u(a)}catch(e){}},a=["light","dark"],n="(prefers-color-scheme: dark)",i="u"<typeof window,o=t.createContext(void 0),s={setTheme:e=>{},themes:[]},l=()=>{var e;return null!=(e=t.useContext(o))?e:s},c=e=>t.useContext(o)?t.createElement(t.Fragment,null,e.children):t.createElement(d,{...e}),u=["light","dark"],d=({forcedTheme:e,disableTransitionOnChange:r=!1,enableSystem:i=!0,enableColorScheme:s=!0,storageKey:l="theme",themes:c=u,defaultTheme:d=i?"system":"light",attribute:h="data-theme",value:b,children:x,nonce:y,scriptProps:v})=>{let[_,w]=t.useState(()=>m(l,d)),[N,T]=t.useState(()=>"system"===_?g():_),k=b?Object.values(b):c,S=t.useCallback(e=>{let t=e;if(!t)return;"system"===e&&i&&(t=g());let n=b?b[t]:t,o=r?f(y):null,l=document.documentElement,c=e=>{"class"===e?(l.classList.remove(...k),n&&l.classList.add(n)):e.startsWith("data-")&&(n?l.setAttribute(e,n):l.removeAttribute(e))};if(Array.isArray(h)?h.forEach(c):c(h),s){let e=a.includes(d)?d:null,r=a.includes(t)?t:e;l.style.colorScheme=r}null==o||o()},[y]),E=t.useCallback(e=>{let t="function"==typeof e?e(_):e;w(t);try{localStorage.setItem(l,t)}catch(e){}},[_]),A=t.useCallback(t=>{T(g(t)),"system"===_&&i&&!e&&S("system")},[_,e]);t.useEffect(()=>{let e=window.matchMedia(n);return e.addListener(A),A(e),()=>e.removeListener(A)},[A]),t.useEffect(()=>{let e=e=>{e.key===l&&(e.newValue?w(e.newValue):E(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[E]),t.useEffect(()=>{S(null!=e?e:_)},[e,_]);let j=t.useMemo(()=>({theme:_,setTheme:E,forcedTheme:e,resolvedTheme:"system"===_?N:_,themes:i?[...c,"system"]:c,systemTheme:i?N:void 0}),[_,E,e,N,i,c]);return t.createElement(o.Provider,{value:j},t.createElement(p,{forcedTheme:e,storageKey:l,attribute:h,enableSystem:i,enableColorScheme:s,defaultTheme:d,value:b,themes:c,nonce:y,scriptProps:v}),x)},p=t.memo(({forcedTheme:e,storageKey:a,attribute:n,enableSystem:i,enableColorScheme:o,defaultTheme:s,value:l,themes:c,nonce:u,scriptProps:d})=>{let p=JSON.stringify([n,a,s,e,c,l,i,o]).slice(1,-1);return t.createElement("script",{...d,suppressHydrationWarning:!0,nonce:"u"<typeof window?u:"",dangerouslySetInnerHTML:{__html:`(${r.toString()})(${p})`}})}),m=(e,t)=>{let r;if(!i){try{r=localStorage.getItem(e)||void 0}catch(e){}return r||t}},f=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},g=e=>(e||(e=window.matchMedia(n)),e.matches?"dark":"light");e.s(["ThemeProvider",()=>c,"useTheme",()=>l])},427423,e=>{"use strict";var t=e.i(843476),r=e.i(363178);function a(e){return(0,t.jsx)(r.ThemeProvider,{scriptProps:{type:"application/json"},...e})}e.s(["ThemeProvider",()=>a])},713354,e=>{"use strict";var t=e.i(843476),r=e.i(363178),a=e.i(846696);let n=({...e})=>{let{theme:n="system"}=(0,r.useTheme)();return(0,t.jsx)(a.Toaster,{theme:n,className:"toaster group",position:"bottom-right",expand:!0,toastOptions:{duration:4e3,classNames:{toast:"group toast group-[.toaster]:bg-bg-white-0 group-[.toaster]:text-text-strong-950 group-[.toaster]:border-stroke-soft-200 group-[.toaster]:shadow-custom-md group-[.toaster]:backdrop-blur-sm group-[.toaster]:rounded-xl group-[.toaster]:border group-[.toaster]:p-4 group-[.toaster]:gap-3 group-[.toaster]:min-
1h-[60px]",description:"group-[.toast]:text-text-sub-600 group-[.toast]:text-paragraph-sm group-[.toast]:leading-relaxed",actionButton:"group-[.toast]:bg-primary-base group-[.toast]:text-static-white group-[.toast]:hover:bg-primary-dark group-[.toast]:rounded-lg group-[.toast]:px-3 group-[.toast]:py-1.5 group-[.toast]:text-label-sm group-[.toast]:font-medium group-[.toast]:transition-colors",cancelButton:"group-[.toast]:bg-bg-soft-200 group-[.toast]:text-text-sub-600 group-[.toast]:hover:bg-bg-sub-300 group-[.toast]:rounded-lg group-[.toast]:px-3 group-[.toast]:py-1.5 group-[.toast]:text-label-sm group-[.toast]:font-medium group-[.toast]:transition-colors",closeButton:"group-[.toast]:bg-transparent group-[.toast]:border-0 group-[.toast]:text-text-soft-400 group-[.toast]:hover:text-text-strong-950 group-[.toast]:hover:bg-bg-soft-200 group-[.toast]:rounded-lg group-[.toast]:p-1 group-[.toast]:transition-colors",title:"group-[.toast]:text-text-strong-950 group-[.toast]:text-label-sm group-[.toast]:font-medium group-[.toast]:leading-tight",success:"group-[.toast]:border-success-base/20 group-[.toast]:bg-success-lighter",error:"group-[.toast]:border-error-base/20 group-[.toast]:bg-error-lighter",warning:"group-[.toast]:border-warning-base/20 group-[.toast]:bg-warning-lighter",info:"group-[.toast]:border-information-base/20 group-[.toast]:bg-information-lighter"}},...e})};e.s(["Toaster",()=>n])},743e3,e=>{"use strict";var t,r=e.i(843476),a=e.i(520133),n=e.i(530909),i=e.i(271645),o=e.i(115057),s=e.i(475254);let l=(0,s.default)("chart-column",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);var c=e.i(607486),u=e.i(294918),d=e.i(974875);let p=(0,s.default)("house",[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]]),m=(0,s.default)("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);var f=e.i(488844),g=e.i(647780);let h=(0,s.default)("puzzle",[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]]);var b=e.i(239616),x=e.i(98919),y=e.i(751975),v=e.i(620278),_=e.i(761911),w=e.i(861745),N=e.i(948148),T=e.i(536387);e.i(883082);var k=e.i(353754),S=e.i(864107),E=e.i(460092),A=e.i(744705);e.i(735007);var j=e.i(109252),C=e.i(966775),L=e.i(344523),O=e.i(292270);let M=(0,s.default)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]]);var I=e.i(328021),R=e.i(551360);function D({onLogout:e}){let t=(0,N.useTranslations)("common.nav"),o=(0,w.useLocale)(),s=(0,j.useAuthStore)(e=>e.user),{state:l,isMobile:c}=(0,n.useSidebar)(),[u,d]=(0,i.useState)(null);if(!s)return null;let p="collapsed"===l&&!c,m=s.name??"",f=s.selected_profile?.title,g=s.selected_profile?.image,h=g?g.startsWith("http")?g:"https://cdn.gettap.co/"+g:null,b=s.selected_profile?.id;return(0,r.jsxs)(I.Root,{modal:!1,children:[(0,r.jsxs)(I.Trigger,{"aria-label":t("accountMenu"),className:(0,R.cn)("flex w-full items-center gap-2.5 rounded-[10px] p-2 text-start outline-none transition-colors duration-200","hover:bg-bg-soft-200","data-[state=open]:bg-bg-white-0 data-[state=open]:shadow-regular-xs data-[state=open]:ring-1 data-[state=open]:ring-inset data-[state=open]:ring-stroke-soft-200","focus-visible:ring-2 focus-visible:ring-primary-alpha-24","group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:p-1"),children:[h&&u!==h?(0,r.jsx)("img",{src:h,alt:"",onError:()=>d(h),className:"size-8 shrink-0 rounded-full border border-stroke-soft-200 bg-bg-white-0 object-cover"}
1):(0,r.jsx)("span",{"aria-hidden":!0,className:"flex size-8 shrink-0 items-center justify-center rounded-full bg-bg-white-0 text-xs font-medium text-text-sub-600 ring-1 ring-inset ring-stroke-soft-200",children:m.split(" ").filter(Boolean).slice(0,2).map(e=>e[0]).join("").toUpperCase()}),(0,r.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col group-data-[collapsible=icon]:hidden",children:[(0,r.jsx)("span",{className:"truncate text-sm font-medium leading-5 text-text-strong-950",title:m,children:m}),f&&(0,r.jsx)("span",{className:"truncate text-xs leading-4 text-text-sub-600",title:f,children:f})]}),(0,r.jsx)(L.ChevronsUpDown,{"aria-hidden":!0,className:"size-4 shrink-0 text-text-soft-400 group-data-[collapsible=icon]:hidden"})]}),(0,r.jsxs)(I.Content,{side:p?"rtl"===(0,A.getDirection)(o)?"left":"right":"top",align:p?"end":"start",className:"w-60 gap-0.5 p-1.5",children:[(0,r.jsxs)("div",{className:"px-2.5 py-1.5",children:[(0,r.jsx)("p",{className:"truncate text-sm font-medium leading-5 text-text-strong-950",children:m}),s.email&&(0,r.jsx)("p",{className:"truncate text-xs leading-4 text-text-sub-600",children:(0,r.jsx)("bdi",{children:s.email})})]}),(0,r.jsx)(I.Separator,{className:"my-1 h-px bg-stroke-soft-200"}),b&&(0,r.jsx)(I.Item,{asChild:!0,className:"gap-2.5 px-2.5 text-sm font-medium",children:(0,r.jsxs)(a.Link,{href:`/members/update/${b}`,children:[(0,r.jsx)(M,{"aria-hidden":!0,className:"size-[18px] text-text-sub-600"}),t("myProfile")]})}),(0,r.jsxs)(I.Item,{onSelect:e,className:"gap-2.5 px-2.5 text-sm font-medium",children:[(0,r.jsx)(O.LogOut,{"aria-hidden":!0,className:"size-[18px] text-text-sub-600 rtl:-scale-x-100"}),t("logout")]})]})]})}var P=e.i(325723),z=e.i(972520),U=e.i(37727),F=e.i(144028);function H(){let e=(0,N.useTranslations)("common.teamOnboarding"),t=(0,S.useFormatNumber)(),{user:o,userPackage:s}=(0,j.useAuthStore)(),{companyOverview:l,fetchCompanyOverview:c}=(0,P.useSettingsStore)(),[u,d]=(0,i.useState)(!1);if((0,i.useEffect)(()=>{c()},[c]),!o||u)return null;let p=l?.members_count??o?.profiles_count??0,m=s?.seats??s?.members??s?.min_members??0,f=m>0?Math.min(Math.round(p/m*100),100):0,g=m>0&&p>=m,h=m>0,b={count:t(p),total:t(m)},x=(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("span",{className:"flex min-w-0 items-center gap-1 text-sm font-medium leading-5 text-text-strong-950",children:[(0,r.jsx)("span",{className:"truncate",children:e(g?"allSet":h?"cta":"uploadCsv")}),!g&&(0,r.jsx)(F.DirectionalIcon,{children:(0,r.jsx)(z.ArrowRight,{"aria-hidden":!0,className:"size-3.5 shrink-0 text-text-sub-600"})})]}),h&&(0,r.jsx)("span",{className:"truncate text-xs leading-4 text-text-sub-600",children:e("progressShort",b)})]}),y="flex flex-col justify-center pb-[9px] pe-9 ps-3 pt-2";return(0,r.jsx)(n.SidebarGroup,{className:"mt-auto p-0 pt-3 group-data-[collapsible=icon]:hidden",id:"onboarding-card",children:(0,r.jsxs)(n.SidebarGroupContent,{className:"relative overflow-hidden rounded-xl border border-stroke-soft-200 bg-bg-white-0",children:[g?(0,r.jsx)("div",{className:y,children:x}):(0,r.jsx)(a.Link,{href:"/members",className:`${y} outline-none transition-colors duration-200 hover:bg-bg-weak-50 focus-visible:bg-bg-weak-50`,children:x}),(0,r.jsx)("button",{type:"button","aria-label":e("dismiss"),onClick:()=>d(!0),className:"absolute end-1.5 top-1.5 flex size-6 items-center justify-center rounded-md text-text-soft-400 outline-none transition-colors duration-200 hover:bg-bg-soft-200 hover:text-text-strong-950 focus-visible:ring-2 focus-visible:ring-primary-alpha-24",children:(0,r.jsx)(U.X,{"aria-hidden":!0,className:"size-4"})}),h&&(0,r.jsx)("div",{role:"progressbar","aria-label":e("progress",b),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":f,className:"pointer-events-none absolute inset-x-0 bottom-0 h-[3px] bg-bg-soft-200",children:(0,r.jsx)("div",{className:"h-full bg-[#16ae35] transition-all",style:{width:`${f}%`}})})]})})}let B=[{group:null,items:[{titleKey:"home",icon:p,url:"/"}]},{group:"teamManagement",items:[{titleKey:"members",icon:_.Users,url:"/members"},{titleKey:"bulkAdjustments",icon:u.FileSpreadsheet,url:"/bulk-adjustments"},{titleKey:"departments",icon:m,url:"/departments"},{titleKey:"teamInsights",icon:l,url:"/team-insights"}]},{group:"leadManagement",items:[{titleKey:"leads",icon:v.Target,url:"/leads"},{titleKey:"companies",icon:c.Building2,url:"/companies",feature:"companies"},{titleKey:"tags",icon:y.Tag,url:"/tags"}]},{group:"brandProducts",items:[{titleKey:"templates",icon:g.Palette,url:"/templates"},{titleKey:"products",icon:f.Package,url:"/products"}]},{group:"configuration",items:[{titleKey:"integrations",icon:h,url:"/integrations"},{titleKey:"admin",icon:x.Shield,url:"/admin"},{titleKey:"settings",icon:b.Settings,url:"/settings"}]}],W="relative h-9 gap-2.5 rounded-lg px-2.5 font-medium text-text-sub-600 [&>svg]:size-[18px] hover:bg-bg-soft-200 hover:text-text-strong-950 active:bg-bg-soft-200 active:text-text-strong-950 data-[active=true]:bg-bg-white-0 data-[active=true]:text-text-strong-950 data-[active=true]:shadow-regular-xs data-[active=true]:ring-1 data-[active=true]:ring-inset data-[active=true]:ring-stroke-soft-200 [&[data-active=true]>svg:first-child]:text-primary-base focus-visible:ring-2 focus-visible:ring-primary-alpha-24 group-data-[collapsible=icon]:!h-9 group-data-[collapsible=icon]:!w-10 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:!px-0",G="truncate group-data-[collapsible=icon]:hidden",$="mx-2.5 my-1.5 h-px shrink-0 bg-stroke-soft-200 group-data-[collapsible=icon]:mx-2";function K({name:e,logo:t}){let a=t?t.includes("https://cdn.gettap.co")?t:"https://cdn.gettap.co/"+t:null,[n,o]=(0,i.useState)(null);return a&&n!==a?(0,r.jsx)("img",{src:a,alt:"",onError:()=>o(a),className:"size-9 shrink-0 rounded-full border border-stroke-soft-200 bg-bg-white-0 object-cover"}
1):(0,r.jsx)("span",{"aria-hidden":!0,className:"flex size-9 shrink-0 items-center justify-center rounded-full bg-bg-white-0 text-sm font-medium text-text-sub-600 ring-1 ring-inset ring-stroke-soft-200",children:(e.trim().match(/[\p{L}\p{N}]/u)?.[0]??"?").toUpperCase()})}function q(){let e=(0,N.useTranslations)("common"),t=(0,w.useLocale)(),s=(0,S.useFormatNumber)(),l=(0,j.useAuthStore)(),c=l.user,u=(0,a.usePathname)(),{data:p}=(0,C.useOnboardingStore)(),m=p?.step2?.title,f=(0,k.useCompaniesNavStore)(e=>e.needsReview),g=(0,k.useCompaniesNavStore)(e=>e.refresh),h=c?.id;if((0,i.useEffect)(()=>{h&&(0,T.isFeatureEnabled)("companies")&&g()},[h,g]),!c)return null;let b=c.user_type?.name||c.name||"",x=c.user_type?.profile?.description||m;return(0,r.jsxs)(n.Sidebar,{collapsible:"icon",children:[(0,r.jsx)(n.SidebarHeader,{className:"bg-bg-weak-50 p-0",children:(0,r.jsxs)("div",{className:"flex items-center gap-2.5 px-5 pb-3 pt-4 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:px-0",children:[(0,r.jsx)(K,{name:b,logo:c.user_type?.company_logo}),(0,r.jsxs)("div",{className:"min-w-0 flex-1 group-data-[collapsible=icon]:hidden",children:[(0,r.jsx)("h2",{className:"truncate text-sm font-medium leading-5 text-text-strong-950",title:b,children:b}),x&&(0,r.jsx)("p",{className:"truncate text-xs leading-4 text-text-sub-600",title:x,children:x})]})]})}),(0,r.jsxs)(n.SidebarContent,{className:"bg-bg-weak-50 px-3 pb-2 pt-1 group-data-[collapsible=icon]:overflow-y-auto group-data-[collapsible=icon]:[scrollbar-width:none]",children:[(0,r.jsx)("nav",{"aria-label":e("nav.label"),className:"flex flex-col",children:B.map(({group:t,items:o},l)=>(0,r.jsxs)(i.Fragment,{children:[l>0&&(0,r.jsx)("div",{"aria-hidden":!0,className:$}),(0,r.jsx)(n.SidebarMenu,{"aria-label":t?e(`nav.groups.${t}`):void 0,className:"gap-0.5",children:o.filter(e=>!("feature"in e)||(0,T.isFeatureEnabled)(e.feature)).map(t=>{let i,o="companies"===t.titleKey&&f?f:0;return(0,r.jsx)(n.SidebarMenuItem,{children:(0,r.jsx)(n.SidebarMenuButton,{asChild:!0,isActive:"/"===(i=t.url)?"/"===u:u===i||!!u?.startsWith(`${i}/`),tooltip:e(`nav.${t.titleKey}`),className:W,children:(0,r.jsxs)(a.Link,{href:t.url,children:[(0,r.jsx)(t.icon,{}),(0,r.jsx)("span",{className:G,children:e(`nav.${t.titleKey}`)}),o>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("span",{"aria-label":e("nav.toReview",{count:s(o)}),className:"ms-auto shrink-0 rounded-full bg-primary-alpha-10 px-1.5 py-0.5 text-xs font-medium leading-4 text-primary-base group-data-[collapsible=icon]:hidden",children:o>99?`${s(99)}+`:s(o)}),(0,r.jsx)("span",{"aria-hidden":!0,className:"absolute end-1.5 top-1.5 hidden size-2 rounded-full bg-primary-base ring-2 ring-bg-weak-50 group-data-[collapsible=icon]:block"})]})]})})},t.titleKey)})})]},t??"home"))}),(0,r.jsx)(H,{})]}),(0,r.jsxs)(n.SidebarFooter,{className:"gap-0 bg-bg-weak-50 px-3 pb-3 pt-0",children:[(0,r.jsx)(n.SidebarMenu,{"aria-label":e("nav.groups.support"),children:(0,r.jsx)(n.SidebarMenuItem,{children:(0,r.jsx)(n.SidebarMenuButton,{asChild:!0,tooltip:e("nav.helpCenter"),className:W,children:(0,r.jsxs)("a",{href:function(e,t=""){let r=(0,A.isLocale)(e)?e:A.defaultLocale,a=t?`/${t.replace(/^\/+/,"")}`:"";return`https://docs.gettap.co/${r}${a}`}(t),target:"_blank",rel:"noopener noreferrer",children:[(0,r.jsx)(d.HelpCircle,{}),(0,r.jsx)("span",{className:G,children:e("nav.helpCenter")}),(0,r.jsx)(o.ArrowUpRight,{"aria-hidden":!0,className:"ms-auto !size-3.5 text-text-soft-400 group-data-[collapsible=icon]:hidden rtl:-scale-x-100"})]})})})}),(0,r.jsx)("div",{"aria-hidden":!0,className:$}),(0,r.jsx)(D,{onLogout:()=>{l.logout(),window.location.href=(0,E.withLocale)("/auth/login",t)}})]})]})}function Y({children:e}){let t=(0,N.useTranslations)("common"),{isAuthenticated:n,user:o,statusUser:s}=(0,j.useAuthStore)(),l=(0,a.useRouter)(),[c,u]=(0,i.useState)(!1);return((0,i.useEffect)(()=>{u(!0)},[]),(0,i.useEffect)(()=>{if(c){if(!n)return void l.push("/auth/login");if(o&&0===o.finish_onboarding)return void l.push("/onboarding");if(o&&s?.isCompany==!1&&!s?.is_subscribed&&!s?.is_trial||o&&1===o.finish_onboarding&&!s?.is_subscribed&&!s?.is_trial)return void l.push("/pricing")}},[c,n,o,s,l]),c&&n&&(!o||0!==o.finish_onboarding))?(0,r.jsx)(r.Fragment,{children:e}):(0,r.jsx)("div",{className:"flex h-screen items-center justify-center",children:(0,r.jsx)("p",{className:"text-lg text-gray-600",children:t("status.loading")})})}var V=e.i(443976),X=e.i(788923);let Q=async e=>(await V.default.get(X.ApiLinksLocal.teamsPopups.active,{params:{trigger:e.trigger,route:e.route??"",action:e.action??""}})).data,J=async(e,t)=>(await V.default.post(`${X.ApiLinksLocal.teamsPopups.events}/${e}/events`,t)).data,Z=(0,e.i(768834).create)((e,t)=>{let r=(e,r,a)=>J(e.popup.id,{event_type:r,metadata:{trigger:e.trigger,action:e.action,route:t().route,..."number"==typeof a?{step:a+1}:{}}}).catch(e=>console.error("Failed to log popup event",e));return{queue:[],current:null,open:!1,loading:!1,error:null,route:"",_handledIds:new Set,_fetchedQueries:new Set,setRoute:t=>e({route:t}),fetchActive:async r=>{let a=`${r.trigger}|${r.route??""}|${r.action??""}`;if(!t()._fetchedQueries.has(a)){t()._fetchedQueries.add(a),e({loading:!0,error:null});try{var n;let a=(n=await Q(r),Array.isArray(n)?n:Array.isArray(n?.data)?n.data:n?.data?[n.data]:[]),i=t()._handledIds,o=a.filter(e=>!i.has(String(e.id))).map(e=>(i.add(String(e.id)),{popup:e,trigger:r.trigger,action:r.action}));e({loading:!1}),o.length&&(e(e=>({queue:[...e.queue,...o]})),t().promoteNext())}catch(r){t()._fetchedQueries.delete(a),console.error("Failed to fetch active popups",r),e({loading:!1,error:r?.message??"Failed to fetch popups"})}}},promoteNext:()=>{let{current:r,queue:a}=t();if(r||0===a.length)return;let[n,...i]=a;e({queue:i,current:n,open:!0})},close:()=>{e({open:!1}),window.setTimeout(()=>{e({current:null}),t().promoteNext()},200)}
1,dismiss:()=>{let{current:e}=t();e&&r(e,"dismissed"),t().close()},primaryClick:e=>{let{current:a}=t();a&&r(a,"cta_primary_click",e)},secondaryClick:e=>{let{current:a}=t();a&&r(a,"cta_secondary_click",e)}}}),ee=new Set,{entries:et,setPrototypeOf:er,isFrozen:ea,getPrototypeOf:en,getOwnPropertyDescriptor:ei}=Object,{freeze:eo,seal:es,create:el}=Object,{apply:ec,construct:eu}="u">typeof Reflect&&Reflect;eo||(eo=function(e){return e}),es||(es=function(e){return e}),ec||(ec=function(e,t){for(var r=arguments.length,a=Array(r>2?r-2:0),n=2;n<r;n++)a[n-2]=arguments[n];return e.apply(t,a)}),eu||(eu=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return new e(...r)});let ed=ek(Array.prototype.forEach),ep=ek(Array.prototype.lastIndexOf),em=ek(Array.prototype.pop),ef=ek(Array.prototype.push),eg=ek(Array.prototype.splice),eh=ek(String.prototype.toLowerCase),eb=ek(String.prototype.toString),ex=ek(String.prototype.match),ey=ek(String.prototype.replace),ev=ek(String.prototype.indexOf),e_=ek(String.prototype.trim),ew=ek(Object.prototype.hasOwnProperty),eN=ek(RegExp.prototype.test),eT=(t=TypeError,function(){for(var e=arguments.length,r=Array(e),a=0;a<e;a++)r[a]=arguments[a];return eu(t,r)});function ek(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,a=Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];return ec(e,t,a)}}function eS(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eh;er&&er(e,null);let a=t.length;for(;a--;){let n=t[a];if("string"==typeof n){let e=r(n);e!==n&&(ea(t)||(t[a]=e),n=e)}e[n]=!0}return e}function eE(e){let t=el(null);for(let[r,a]of et(e))ew(e,r)&&(Array.isArray(a)?t[r]=function(e){for(let t=0;t<e.length;t++)ew(e,t)||(e[t]=null);return e}(a):a&&"object"==typeof a&&a.constructor===Object?t[r]=eE(a):t[r]=a);return t}function eA(e,t){for(;null!==e;){let r=ei(e,t);if(r){if(r.get)return ek(r.get);if("function"==typeof r.value)return ek(r.value)}e=en(e)}return function(){return null}}let ej=eo(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),eC=eo(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),eL=eo(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),eO=eo(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),eM=eo(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),eI=eo(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),eR=eo(["#text"]),eD=eo(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
1spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),eP=eo(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ez=eo(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),eU=eo(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),eF=es(/\{\{[\w\W]*|[\w\W]*\}\}/gm),eH=es(/<%[\w\W]*|[\w\W]*%>/gm),eB=es(/\$\{[\w\W]*/gm),eW=es(/^data-[\-\w.\u00B7-\uFFFF]+$/),eG=es(/^aria-[\-\w]+$/),e$=es(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eK=es(/^(?:\w+script|data):/i),eq=es(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),eY=es(/^html$/i);var eV=Object.freeze({__proto__:null,ARIA_ATTR:eG,ATTR_WHITESPACE:eq,CUSTOM_ELEMENT:es(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:eW,DOCTYPE_NAME:eY,ERB_EXPR:eH,IS_ALLOWED_URI:e$,IS_SCRIPT_OR_DATA:eK,MUSTACHE_EXPR:eF,TMPLIT_EXPR:eB});let eX=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let r=null,a="data-tt-policy-suffix";t&&t.hasAttribute(a)&&(r=t.getAttribute(a));let n="dompurify"+(r?"#"+r:"");try{return e.createPolicy(n,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+n+" could not be created."),null}},eQ=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var eJ=function e(){let t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"u"<typeof window?null:window,a=t=>e(t);if(a.version="3.2.7",a.removed=[],!r||!r.document||9!==r.document.nodeType||!r.Element)return a.isSupported=!1,a;let{document:n}=r,i=n,o=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:c,Element:u,NodeFilter:d,NamedNodeMap:p=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:m,DOMParser:f,trustedTypes:g}=r,h=u.prototype,b=eA(h,"cloneNode"),x=eA(h,"remove"),y=eA(h,"nextSibling"),v=eA(h,"childNodes"),_=eA(h,"parentNode");if("function"==typeof l){let e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let w="",{implementation:N,createNodeIterator:T,createDocumentFragment:k,getElementsByTagName:S}=n,{importNode:E}=i,A=eQ();a.isSupported="function"==typeof et&&"function"==typeof _&&N&&void 0!==N.createHTMLDocument;let{MUSTACHE_EXPR:j,ERB_EXPR:C,TMPLIT_EXPR:L,DATA_ATTR:O,ARIA_ATTR:M,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:D}=eV,{IS_ALLOWED_URI:P}=eV,z=null,U=eS({},[...ej,...eC,...eL,...eM,...eR]),F=null,H=eS({}
1,[...eD,...eP,...ez,...eU]),B=Object.seal(el(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,G=null,$=!0,K=!0,q=!1,Y=!0,V=!1,X=!0,Q=!1,J=!1,Z=!1,ee=!1,er=!1,ea=!1,en=!0,ei=!1,es=!0,ec=!1,eu={},ek=null,eF=eS({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),eH=null,eB=eS({},["audio","video","img","source","image","track"]),eW=null,eG=eS({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),eK="http://www.w3.org/1998/Math/MathML",eq="http://www.w3.org/2000/svg",eJ="http://www.w3.org/1999/xhtml",eZ=eJ,e0=!1,e1=null,e2=eS({},[eK,eq,eJ],eb),e4=eS({},["mi","mo","mn","ms","mtext"]),e5=eS({},["annotation-xml"]),e3=eS({},["title","style","font","a","script"]),e6=null,e8=["application/xhtml+xml","text/html"],e7=null,e9=null,te=n.createElement("form"),tt=function(e){return e instanceof RegExp||e instanceof Function},tr=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e9||e9!==e){if(e&&"object"==typeof e||(e={}),e=eE(e),e7="application/xhtml+xml"===(e6=-1===e8.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?eb:eh,z=ew(e,"ALLOWED_TAGS")?eS({},e.ALLOWED_TAGS,e7):U,F=ew(e,"ALLOWED_ATTR")?eS({},e.ALLOWED_ATTR,e7):H,e1=ew(e,"ALLOWED_NAMESPACES")?eS({},e.ALLOWED_NAMESPACES,eb):e2,eW=ew(e,"ADD_URI_SAFE_ATTR")?eS(eE(eG),e.ADD_URI_SAFE_ATTR,e7):eG,eH=ew(e,"ADD_DATA_URI_TAGS")?eS(eE(eB),e.ADD_DATA_URI_TAGS,e7):eB,ek=ew(e,"FORBID_CONTENTS")?eS({},e.FORBID_CONTENTS,e7):eF,W=ew(e,"FORBID_TAGS")?eS({},e.FORBID_TAGS,e7):eE({}),G=ew(e,"FORBID_ATTR")?eS({},e.FORBID_ATTR,e7):eE({}),eu=!!ew(e,"USE_PROFILES")&&e.USE_PROFILES,$=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,V=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,Q=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,er=e.RETURN_DOM_FRAGMENT||!1,ea=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,en=!1!==e.SANITIZE_DOM,ei=e.SANITIZE_NAMED_PROPS||!1,es=!1!==e.KEEP_CONTENT,ec=e.IN_PLACE||!1,P=e.ALLOWED_URI_REGEXP||e$,eZ=e.NAMESPACE||eJ,e4=e.MATHML_TEXT_INTEGRATION_POINTS||e4,e5=e.HTML_INTEGRATION_POINTS||e5,B=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&tt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(B.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),V&&(K=!1),er&&(ee=!0),eu&&(z=eS({},eR),F=[],!0===eu.html&&(eS(z,ej),eS(F,eD)),!0===eu.svg&&(eS(z,eC),eS(F,eP),eS(F,eU)),!0===eu.svgFilters&&(eS(z,eL),eS(F,eP),eS(F,eU)),!0===eu.mathMl&&(eS(z,eM),eS(F,ez),eS(F,eU))),e.ADD_TAGS&&(z===U&&(z=eE(z)),eS(z,e.ADD_TAGS,e7)),e.ADD_ATTR&&(F===H&&(F=eE(F)),eS(F,e.ADD_ATTR,e7)),e.ADD_URI_SAFE_ATTR&&eS(eW,e.ADD_URI_SAFE_ATTR,e7),e.FORBID_CONTENTS&&(ek===eF&&(ek=eE(ek)),eS(ek,e.FORBID_CONTENTS,e7)),es&&(z["#text"]=!0),Q&&eS(z,["html","head","body"]),z.table&&(eS(z,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw eT('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw eT('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=(t=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===t&&(t=eX(g,o)),null!==t&&"string"==typeof w&&(w=t.createHTML(""));eo&&eo(e),e9=e}},ta=eS({},[...eC,...eL,...eO]),tn=eS({},[...eM,...eI]),ti=function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:eZ,tagName:"template"});let r=eh(e.tagName),a=eh(t.tagName);return!!e1[e.namespaceURI]&&(e.namespaceURI===eq?t.namespaceURI===eJ?"svg"===r:t.namespaceURI===eK?"svg"===r&&("annotation-xml"===a||e4[a]):!!ta[r]:e.namespaceURI===eK?t.namespaceURI===eJ?"math"===r:t.namespaceURI===eq?"math"===r&&e5[a]:!!tn[r]:e.namespaceURI===eJ?(t.namespaceURI!==eq||!!e5[a])&&(t.namespaceURI!==eK||!!e4[a])&&!tn[r]&&(e3[r]||!ta[r]):"application/xhtml+xml"===e6&&!!e1[e.namespaceURI])},to=function(e){ef(a.removed,{element:e});
1try{_(e).removeChild(e)}catch(t){x(e)}},ts=function(e,t){try{ef(a.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){ef(a.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||er)try{to(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},tl=function(e){let r=null,a=null;if(Z)e="<remove></remove>"+e;else{let t=ex(e,/^[\r\n\t ]+/);a=t&&t[0]}"application/xhtml+xml"===e6&&eZ===eJ&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let i=t?t.createHTML(e):e;if(eZ===eJ)try{r=new f().parseFromString(i,e6)}catch(e){}if(!r||!r.documentElement){r=N.createDocument(eZ,"template",null);try{r.documentElement.innerHTML=e0?w:i}catch(e){}}let o=r.body||r.documentElement;return(e&&a&&o.insertBefore(n.createTextNode(a),o.childNodes[0]||null),eZ===eJ)?S.call(r,Q?"html":"body")[0]:Q?r.documentElement:o},tc=function(e){return T.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},tu=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},td=function(e){return"function"==typeof c&&e instanceof c};function tp(e,t,r){ed(e,e=>{e.call(a,t,r,e9)})}let tm=function(e){let t=null;if(tp(A.beforeSanitizeElements,e,null),tu(e))return to(e),!0;let r=e7(e.nodeName);if(tp(A.uponSanitizeElement,e,{tagName:r,allowedTags:z}),X&&e.hasChildNodes()&&!td(e.firstElementChild)&&eN(/<[/\w!]/g,e.innerHTML)&&eN(/<[/\w!]/g,e.textContent)||7===e.nodeType||X&&8===e.nodeType&&eN(/<[/\w]/g,e.data))return to(e),!0;if(!z[r]||W[r]){if(!W[r]&&tg(r)&&(B.tagNameCheck instanceof RegExp&&eN(B.tagNameCheck,r)||B.tagNameCheck instanceof Function&&B.tagNameCheck(r)))return!1;if(es&&!ek[r]){let t=_(e)||e.parentNode,r=v(e)||e.childNodes;if(r&&t){let a=r.length;for(let n=a-1;n>=0;--n){let a=b(r[n],!0);a.__removalCount=(e.__removalCount||0)+1,t.insertBefore(a,y(e))}}}return to(e),!0}return e instanceof u&&!ti(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&eN(/<\/no(script|embed|frames)/i,e.innerHTML)?(to(e),!0):(V&&3===e.nodeType&&(t=e.textContent,ed([j,C,L],e=>{t=ey(t,e," ")}),e.textContent!==t&&(ef(a.removed,{element:e.cloneNode()}),e.textContent=t)),tp(A.afterSanitizeElements,e,null),!1)},tf=function(e,t,r){if(en&&("id"===t||"name"===t)&&(r in n||r in te))return!1;if(K&&!G[t]&&eN(O,t));else if($&&eN(M,t));else if(!F[t]||G[t]){if(!(tg(e)&&(B.tagNameCheck instanceof RegExp&&eN(B.tagNameCheck,e)||B.tagNameCheck instanceof Function&&B.tagNameCheck(e))&&(B.attributeNameCheck instanceof RegExp&&eN(B.attributeNameCheck,t)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(t,e))||"is"===t&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&eN(B.tagNameCheck,r)||B.tagNameCheck instanceof Function&&B.tagNameCheck(r))))return!1}else if(eW[t]);else if(eN(P,ey(r,R,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===ev(r,"data:")&&eH[e]);else if(q&&!eN(I,ey(r,R,"")));else if(r)return!1;return!0},tg=function(e){return"annotation-xml"!==e&&ex(e,D)},th=function(e){tp(A.beforeSanitizeAttributes,e,null);let{attributes:r}=e;if(!r||tu(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0},i=r.length;for(;i--;){let{name:o,namespaceURI:s,value:l}=r[i],c=e7(o),u="value"===o?l:e_(l);if(n.attrName=c,n.attrValue=u,n.keepAttr=!0,n.forceKeepAttr=void 0,tp(A.uponSanitizeAttribute,e,n),u=n.attrValue,ei&&("id"===c||"name"===c)&&(ts(o,e),u="user-content-"+u),X&&eN(/((--!?|])>)|<\/(style|title|textarea)/i,u)||"attributename"===c&&ex(u,"href")){ts(o,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr||!Y&&eN(/\/>/i,u)){ts(o,e);continue}V&&ed([j,C,L],e=>{u=ey(u,e," ")});let d=e7(e.nodeName);if(!tf(d,c,u)){ts(o,e);continue}if(t&&"object"==typeof g&&"function"==typeof g.getAttributeType)if(s);else switch(g.getAttributeType(d,c)){case"TrustedHTML":u=t.createHTML(u);break;case"TrustedScriptURL":u=t.createScriptURL(u)}if(u!==l)try{s?e.setAttributeNS(s,o,u):e.setAttribute(o,u),tu(e)?to(e):em(a.removed)}catch(t){ts(o,e)}}tp(A.afterSanitizeAttributes,e,null)},tb=function e(t){let r=null,a=tc(t);for(tp(A.beforeSanitizeShadowDOM,t,null);r=a.nextNode();)tp(A.uponSanitizeShadowNode,r,null),tm(r),th(r),r.content instanceof s&&e(r.content);tp(A.afterSanitizeShadowDOM,t,null)};return a.sanitize=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,o=null,l=null,u=null;if((e0=!e)&&(e="<!-->"),"string"!=typeof e&&!td(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw eT("dirty is not a string, aborting")}else throw eT("toString is not a function");if(!a.isSupported)return e;if(J||tr(r),a.removed=[],"string"==typeof e&&(ec=!1),ec){if(e.nodeName){let t=e7(e.nodeName);if(!z[t]||W[t])throw eT("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)1===(o=(n=tl("<!---->")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!ee&&!V&&!Q&&-1===e.indexOf("<"))return t&&ea?t.createHTML(e):e;if(!(n=tl(e)))return ee?null:ea?w:""}n&&Z&&to(n.firstChild);let d=tc(ec?e:n);for(;l=d.nextNode();)tm(l),th(l),l.content instanceof s&&tb(l.content);if(ec)return e;if(ee){if(er)for(u=k.call(n.ownerDocument);n.firstChild;)u.appendChild(n.firstChild);else u=n;return(F.shadowroot||F.shadowrootmode)&&(u=E.call(i,u,!0)),u}let p=Q?n.outerHTML:n.innerHTML;return Q&&z["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&eN(eY,n.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+p),V&&ed([j,C,L],e=>{p=ey(p,e," ")}),t&&ea?t.createHTML(p):p},a.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tr(e),J=!0},a.clearConfig=function(){e9=null,J=!1},a.isValidAttribute=function(e,t,r){return e9||tr({}),tf(e7(e),e7(t),r)},a.addHook=function(e,t){"function"==typeof t&&ef(A[e],t)},a.removeHook=function(e,t){if(void 0!==t){let r=ep(A[e],t);return -1===r?void 0:eg(A[e],r,1)[0]}return em(A[e])},a.removeHooks=function(e){A[e]=[]},a.removeAllHooks=function(){A=eQ()},a}(),eZ=e.i(373375),e0=e.i(463059),e1=e.i(900389),e2=e.i(519455);function e4({popup:e,open:t,onDismiss:a,onClose:n,onPrimaryClick:o,onSecondaryClick:s}){let l=i.useMemo(()=>{let t,r;return t=e.content,Array.isArray(r=t?.steps)&&r.length>0?r.map(e=>({...e,primary_cta:e.primary_cta??t.primary_cta??null,secondary_cta:e.secondary_cta??t.secondary_cta??null})):[t]},[e]),[c,u]=i.useState(0);i.useEffect(()=>{u(0)},[e.id]);let d=l[c]??l[0],p=l.length>1,m=c===l.length-1,f=e.content?.close_on_backdrop??e.content?.dismiss_on_outside_click??!0,g=e=>{var t,r;e&&"dismiss"!==e.action&&e.url&&(t=e.url,r=e.target,t&&("_blank"===r?window.open(t,"_blank","noopener,noreferrer"):window.location.href=t)),n()},h=i.useMemo(()=>d.description?eJ.sanitize(d.description):"",[d.description]),b=d.hero??d.media;return(0,r.jsx)(e1.Modal,{open:t,onOpenChange:e=>{e||a()},children:(0,r.jsxs)(e1.Content,{showClose:!0,className:"max-w-[480px] overflow-hidden",onPointerDownOutside:e=>{f||e.preventDefault()},onInteractOutside:e=>{f||e.preventDefault()},children:[b?.url&&(0,r.jsxs)("div",{className:"relative aspect-[16/10] w-full overflow-hidden bg-bg-weak-50",children:["video"===b.type?(0,r.jsx)("video",{src:b.url,className:"absolute inset-0 size-full object-cover",autoPlay:!0,muted:!0,loop:!0,playsInl
1ine:!0}):(0,r.jsx)("img",{src:b.url,alt:d.title,className:"absolute inset-0 size-full object-cover"}),(0,r.jsx)("div",{className:"pointer-events-none absolute inset-x-0 bottom-0 h-16 bg-gradient-to-t from-bg-white-0/70 to-transparent"}),p&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("button",{type:"button","aria-label":"Previous",onClick:()=>u(e=>Math.max(e-1,0)),disabled:0===c,className:"absolute start-3 top-1/2 flex size-8 -translate-y-1/2 items-center justify-center rounded-full bg-bg-white-0/80 text-text-strong-950 shadow-regular-sm backdrop-blur-md transition hover:bg-bg-white-0 disabled:pointer-events-none disabled:opacity-0",children:(0,r.jsx)(eZ.ChevronLeft,{className:"size-5"})}),(0,r.jsx)("button",{type:"button","aria-label":"Next",onClick:()=>u(e=>Math.min(e+1,l.length-1)),disabled:m,className:"absolute end-3 top-1/2 flex size-8 -translate-y-1/2 items-center justify-center rounded-full bg-bg-white-0/80 text-text-strong-950 shadow-regular-sm backdrop-blur-md transition hover:bg-bg-white-0 disabled:pointer-events-none disabled:opacity-0",children:(0,r.jsx)(e0.ChevronRight,{className:"size-5"})})]})]}),(0,r.jsxs)(e1.Body,{className:"flex flex-col gap-2 px-6 pb-2 pt-6",children:[d.eyebrow&&(0,r.jsx)("span",{className:"text-subheading-xs uppercase tracking-wider text-primary-base",children:d.eyebrow}),(0,r.jsx)(e1.Title,{className:"text-title-h5 text-text-strong-950",children:d.title}),h&&(0,r.jsx)("div",{className:"text-paragraph-sm text-text-sub-600 [&_a]:text-primary-base [&_a]:underline",dangerouslySetInnerHTML:{__html:h}})]}),p&&(0,r.jsx)("div",{className:"flex items-center justify-center gap-1.5 pb-2",children:l.map((e,t)=>(0,r.jsx)("button",{type:"button","aria-label":`Go to step ${t+1}`,onClick:()=>u(t),className:(0,R.cn)("h-1.5 rounded-full transition-all",t===c?"w-4 bg-primary-base":"w-1.5 bg-stroke-soft-200 hover:bg-stroke-sub-300")},t))}),(d.primary_cta||d.secondary_cta)&&(0,r.jsxs)(e1.Footer,{className:"justify-end",children:[d.secondary_cta&&(0,r.jsx)(e2.Button,{variant:"neutral",mode:"stroke",size:"medium",onClick:()=>{s(c),g(d.secondary_cta)},className:"w-full",children:d.secondary_cta.label}),d.primary_cta&&(0,r.jsx)(e2.Button,{variant:"primary",mode:"filled",size:"medium",onClick:()=>{o(c),g(d.primary_cta)},className:"w-full",children:d.primary_cta.label})]})]})})}let e5=["/"];function e3({children:e}){let t=(0,a.usePathname)(),n=Z(e=>e.current),o=Z(e=>e.open),s=Z(e=>e.setRoute),l=Z(e=>e.fetchActive),c=Z(e=>e.dismiss),u=Z(e=>e.close),d=Z(e=>e.primaryClick),p=Z(e=>e.secondaryClick);i.useEffect(()=>{s(t??""),l({trigger:"login",route:t??""})},[]);let m=i.useRef(!0);return i.useEffect(()=>{if(t){if(m.current){m.current=!1;return}s(t),e5.includes(t??"")||l({trigger:"page_visit",route:t})}},[t,s,l]),i.useEffect(()=>{var e;return e=e=>{l({trigger:"user_action",route:t??"",action:e})},ee.add(e),()=>ee.delete(e)},[t,l]),(0,r.jsxs)(r.Fragment,{children:[e,n&&(0,r.jsx)(e4,{popup:n.popup,open:o,onDismiss:c,onClose:u,onPrimaryClick:d,onSecondaryClick:p})]})}function e6({children:e,header:t}){let i=(0,a.usePathname)();return["/auth","/onboarding","/pricing","/dynmic-onboarding/linkedin","/meetings-packges","/success"].some(e=>i===e||i?.startsWith(`${e}/`))?(0,r.jsx)(r.Fragment,{children:e}):(0,r.jsx)(Y,{children:(0,r.jsxs)(n.SidebarProvider,{children:[(0,r.jsx)(q,{}),(0,r.jsxs)("main",{className:"mx-auto w-full min-w-0",children:[t,e]}),(0,r.jsx)(e3,{})]})})}e.s(["ConditionalLayout",()=>e6],743e3)},86054,e=>{"use strict";var t=e.i(843476);e.i(735007);var r=e.i(109252),a=e.i(948148),n=e.i(270756),i=e.i(519455);e.s(["PermissionDeniedCard",0,()=>{let e=(0,a.useTranslations)("common"),{hasPermissionError:o,permissionErrorMessage:s,setPermissionError:l}=(0,r.useAuthStore)();return o?(0,t.jsx)("div",{className:"fixed inset-0 z-[1000] flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,t.jsx)("div",{className:"w-full max-w-md rounded-2xl bg-white p-6 shadow-xl dark:bg-gray-800",children:(0,t.jsxs)("div",{className:"flex flex-col items-center text-center",children:[(0,t.jsx)("div",{className:"mb-4 rounded-full bg-red-100 p-3 dark:bg-red-900/20",children:(0,t.jsx)(n.Lock,{className:"h-8 w-8 text-red-600 dark:text-red-400"})}),(0,t.jsx)("h2",{className:"mb-2 text-xl font-semibold text-gray-900 dark:text-white",children:e("permissionDenied.title")}),(0,t.jsx)("p",{className:"mb-6 text-gray-500 dark:text-gray-400",children:s||e("permissionDenied.message")}),(0,t.jsx)("div",{className:"flex w-full gap-3",children:(0,t.jsx)(i.Button,{className:"w-full",variant:"neutral",onClick:()=>l(!1),children:e("buttons.close")})})]})})}):null}])},755010,e=>{"use strict";var t=e.i(843476),r=e.i(586318);function a({direction:e,children:a}){return(0,t.jsx)(r.DirectionProvider,{dir:e,children:a})}e.s(["DirectionProvider",()=>a])},237212,e=>{"use strict";var t=e.i(843476),r=e.i(770703),a=e.i(861745);let n={en:(0,r.default)(()=>e.A(881341),{loadableGenerated:{modules:[194084]}}),ar:(0,r.default)(()=>
1e.A(764104),{loadableGenerated:{modules:[728165]}})};function i({children:e}){let r=n[(0,a.useLocale)()];return(0,t.jsx)(r,{children:e})}e.s(["MessagesProvider",()=>i])}]);
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.