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