!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]="11573ffd-33b4-44eb-bec3-f4b293c39ed6",e._sentryDebugIdIdentifier="sentry-dbid-11573ffd-33b4-44eb-bec3-f4b293c39ed6")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"9f78cb71b1214f3614f54218a7cc427d43a08b22"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[146,5923],{93155:(e,n,t)=>{t.d(n,{Dm:()=>p,GW:()=>g,Mh:()=>b,gf:()=>w,q:()=>m});const o="mobileAppNotifications",l="alertConfiguration",a="editAlertConfiguration",d="hasFacetSelection",c="hasCello",i="nodeButton",r="juan",u=[l,o,c,d,i],f={};function s(e){if(u.includes(e))return()=>!0;let n=localStorage.getItem(e);null===n&&(n=f[e]?"true":"false");const t="true"===n;return e=>e||t}const b=s(o)(),p=s(l)(),w=(s(a)(),s(d)()),g=s(c)(),m=(s(i)(),s(r)())},20146:(e,n,t)=>{t.r(n),t.d(n,{default:()=>f});var o=t(96540),l=t(22292),a=t(97877),d=t(65923),c=t(38819);const i=()=>{const e=(0,c.PP)(),{referralModalOpen:n}=e,{isInitialized:t}=(0,d.R)();(0,o.useEffect)((()=>{"true"==n&&t&&"function"==typeof window.Cello&&(window.Cello("open"),(0,c.Z8)({...e,referralModalOpen:"false"}))}),[t,n])};var r=t(50876),u=t(93155);const f=()=>{const e=(0,l.uW)(),{init:n}=(0,d.R)(),{sendLog:t}=(0,r.A)(),c=(0,o.useMemo)((()=>u.GW&&e&&!e.isAnonymous),[e]);return i(),(0,o.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,o.useEffect)((()=>{const{token:o,productId:l}=(0,a.sA)();c&&o&&l&&window.cello.cmd.push((async function(a){try{await a.boot({productId:l,token:o,language:"en",productUserDetails:{firstname:e.name,fullName:e.name,email:e.email}}),n()}catch(d){t({feature:"ReferralComponent",error:d.message||"Failed to boot cello referral component"})}}))}),[c,e,n]),null}},65923:(e,n,t)=>{t.d(n,{R:()=>c,H:()=>i});var o=t(47444);const l=(0,o.eU)({key:"celloSuccessfulInitialization",default:!1}),a=(0,o.eU)({key:"celloLauncherActive",default:!1});var d=t(96540);const c=()=>{const[e,n]=(0,o.L4)(l);return{isInitialized:e,init:(0,d.useCallback)((()=>n(!0)),[n])}},i=()=>{const[e,n]=(0,o.L4)(a);return{isActive:e,activate:(0,d.useCallback)((()=>n(!0)),[n]),deactivate:(0,d.useCallback)((()=>n(!1)),[n])}}}}]);