!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2560300e-e3f2-444e-bbe4-a92f91db997c",e._sentryDebugIdIdentifier="sentry-dbid-2560300e-e3f2-444e-bbe4-a92f91db997c")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"8a739758aeaa9703d317afd549bb0f90035c314e"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[146],{20146:(e,n,o)=>{o.r(n),o.d(n,{default:()=>s});var t=o(96540),l=o(22292),a=o(97877),d=o(65923),c=o(38819);const i=()=>{const e=(0,c.PP)(),{referralModalOpen:n}=e,{isInitialized:o}=(0,d.R)();(0,t.useEffect)((()=>{"true"==n&&o&&"function"==typeof window.Cello&&(window.Cello("open"),(0,c.Z8)({...e,referralModalOpen:"false"}))}),[o,n])};var r=o(50876),f=o(93155);const s=()=>{const e=(0,l.uW)(),{init:n}=(0,d.R)(),{sendLog:o}=(0,r.A)(),c=(0,t.useMemo)((()=>f.GW&&e&&!e.isAnonymous),[e]);return i(),(0,t.useEffect)((()=>{let e=null;return c&&(window.cello=window.cello||{cmd:[]},e=(0,a._D)(),document.head.appendChild(e)),()=>{e&&document.head.removeChild(e)}}),[c]),(0,t.useEffect)((()=>{const{token:t,productId:l}=(0,a.sA)();c&&t&&l&&window.cello.cmd.push((async function(a){try{await a.boot({productId:l,token:t,language:"en",productUserDetails:{firstname:e.name,fullName:e.name,email:e.email}}),n()}catch(d){o({feature:"ReferralComponent",error:d.message||"Failed to boot cello referral component"})}}))}),[c,e,n]),null}},65923:(e,n,o)=>{o.d(n,{R:()=>c,H:()=>i});var t=o(47444);const l=(0,t.eU)({key:"celloSuccessfulInitialization",default:!1}),a=(0,t.eU)({key:"celloLauncherActive",default:!1});var d=o(96540);const c=()=>{const[e,n]=(0,t.L4)(l);return{isInitialized:e,init:(0,d.useCallback)((()=>n(!0)),[n])}},i=()=>{const[e,n]=(0,t.L4)(a);return{isActive:e,activate:(0,d.useCallback)((()=>n(!0)),[n]),deactivate:(0,d.useCallback)((()=>n(!1)),[n])}}}}]);