try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4a44b59d-3bb9-49b8-8e3d-0c5f33b3a9cc",e._sentryDebugIdIdentifier="sentry-dbid-4a44b59d-3bb9-49b8-8e3d-0c5f33b3a9cc")}()}catch(e){}!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"bbf0f036d26e8d5cdf711f08d224a9283a4dee0b"}}catch(e){}}(),(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[2117,5187],{45187:(e,n,o)=>{o.d(n,{R:()=>c,H:()=>f});var t=o(34843),d=o(52035);const l=(0,d.eU)(!1),a=(0,d.eU)(!1);var i=o(96540);const c=()=>{const[e,n]=(0,t.fp)(l);return{isInitialized:e,init:(0,i.useCallback)((()=>n(!0)),[n])}},f=()=>{const[e,n]=(0,t.fp)(a);return{isActive:e,activate:(0,i.useCallback)((()=>n(!0)),[n]),deactivate:(0,i.useCallback)((()=>n(!1)),[n])}}},72117:(e,n,o)=>{o.r(n),o.d(n,{default:()=>r});var t=o(96540),d=o(46587),l=o(26276),a=o(45187),i=o(89942);const c=()=>{const e=(0,i.PP)(),{referralModalOpen:n}=e,{isInitialized:o}=(0,a.R)();(0,t.useEffect)((()=>{"true"==n&&o&&"function"===typeof window.Cello&&(window.Cello("open"),(0,i.Z8)({...e,referralModalOpen:"false"}))}),[o,n])};var f=o(3319),s=o(78152);const r=()=>{const e=(0,d.uW)(),{init:n}=(0,a.R)(),{sendLog:o}=(0,f.A)(),i=(0,t.useMemo)((()=>s.GW&&e&&!e.isAnonymous),[e]);return c(),(0,t.useEffect)((()=>{let e=null;return i&&(window.cello=window.cello||{cmd:[]},e=(0,l._D)(),document.head.appendChild(e)),()=>{e&&document.head.removeChild(e)}}),[i]),(0,t.useEffect)((()=>{const{token:t,productId:d}=(0,l.sA)();if(i&&t&&d&&e.name){const l=e.name?.split?.(" ")||[],a=l.length>0?l[0]:"";window.cello.cmd.push((async function(l){try{await l.boot({productId:d,token:t,language:"en",productUserDetails:{firstName:a,fullName:e.name,email:e.email}}),n()}catch(i){o({feature:"ReferralComponent",error:i.message||"Failed to boot cello referral component"})}}))}}),[i,e,n]),null}}}]);