!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]="3bd09bdb-ba1d-4343-9ac9-cb01bc988640",e._sentryDebugIdIdentifier="sentry-dbid-3bd09bdb-ba1d-4343-9ac9-cb01bc988640")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"79d3cd5525e22d657dc079bdf45a12ff56a6fdb3"},(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",i="hasCello",c="nodeButton",r="juan",s=[l,o,i,d,c],u={};function f(e){if(s.includes(e))return()=>!0;let n=localStorage.getItem(e);null===n&&(n=u[e]?"true":"false");const t="true"===n;return e=>e||t}const b=f(o)(),p=f(l)(),w=(f(a)(),f(d)()),g=f(i)(),m=(f(c)(),f(r)())},20146:(e,n,t)=>{t.r(n),t.d(n,{default:()=>u});var o=t(96540),l=t(22292),a=t(97877),d=t(65923),i=t(38819);const c=()=>{const e=(0,i.PP)(),{referralModalOpen:n}=e,{isInitialized:t}=(0,d.R)();(0,o.useEffect)((()=>{"true"==n&&t&&"function"===typeof window.Cello&&(window.Cello("open"),(0,i.Z8)({...e,referralModalOpen:"false"}))}),[t,n])};var r=t(50876),s=t(93155);const u=()=>{const e=(0,l.uW)(),{init:n}=(0,d.R)(),{sendLog:t}=(0,r.A)(),i=(0,o.useMemo)((()=>s.GW&&e&&!e.isAnonymous),[e]);return c(),(0,o.useEffect)((()=>{let e=null;return i&&(window.cello=window.cello||{cmd:[]},e=(0,a._D)(),document.head.appendChild(e)),()=>{e&&document.head.removeChild(e)}}),[i]),(0,o.useEffect)((()=>{const{token:o,productId:l}=(0,a.sA)();if(i&&o&&l&&e.name){const a=e.name?.split?.(" ")||[],d=a.length>0?a[0]:"";window.cello.cmd.push((async function(a){try{await a.boot({productId:l,token:o,language:"en",productUserDetails:{firstName:d,fullName:e.name,email:e.email}}),n()}catch(i){t({feature:"ReferralComponent",error:i.message||"Failed to boot cello referral component"})}}))}}),[i,e,n]),null}},65923:(e,n,t)=>{t.d(n,{R:()=>c,H:()=>r});var o=t(34843),l=t(52035);const a=(0,l.eU)(!1),d=(0,l.eU)(!1);var i=t(96540);const c=()=>{const[e,n]=(0,o.fp)(a);return{isInitialized:e,init:(0,i.useCallback)((()=>n(!0)),[n])}},r=()=>{const[e,n]=(0,o.fp)(d);return{isActive:e,activate:(0,i.useCallback)((()=>n(!0)),[n]),deactivate:(0,i.useCallback)((()=>n(!1)),[n])}}}}]);