!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]="a1f7c3ba-dfbf-4f2e-845b-d4fd1cd46af3",e._sentryDebugIdIdentifier="sentry-dbid-a1f7c3ba-dfbf-4f2e-845b-d4fd1cd46af3")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"4c4e0af8211f6cc5779d35dea21bc1aab0b3690c"},(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",a="alertConfiguration",l="editAlertConfiguration",d="hasFacetSelection",f="hasCello",c="nodeButton",r="juan",i=[a,o,f,d,c],s={};function u(e){if(i.includes(e))return()=>!0;let n=localStorage.getItem(e);null===n&&(n=s[e]?"true":"false");const t="true"===n;return e=>e||t}const b=u(o)(),p=u(a)(),w=(u(l)(),u(d)()),g=u(f)(),m=(u(c)(),u(r)())},20146:(e,n,t)=>{t.r(n),t.d(n,{default:()=>s});var o=t(96540),a=t(22292),l=t(97877),d=t(65923),f=t(38819);const c=()=>{const e=(0,f.PP)(),{referralModalOpen:n}=e,{isInitialized:t}=(0,d.R)();(0,o.useEffect)((()=>{"true"==n&&t&&"function"===typeof window.Cello&&(window.Cello("open"),(0,f.Z8)({...e,referralModalOpen:"false"}))}),[t,n])};var r=t(50876),i=t(93155);const s=()=>{const e=(0,a.uW)(),{init:n}=(0,d.R)(),{sendLog:t}=(0,r.A)(),f=(0,o.useMemo)((()=>i.GW&&e&&!e.isAnonymous),[e]);return c(),(0,o.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,o.useEffect)((()=>{const{token:o,productId:a}=(0,l.sA)();f&&o&&a&&window.cello.cmd.push((async function(l){try{await l.boot({productId:a,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"})}}))}),[f,e,n]),null}},65923:(e,n,t)=>{t.d(n,{R:()=>c,H:()=>r});var o=t(34843),a=t(52035);const l=(0,a.eU)(!1),d=(0,a.eU)(!1);var f=t(96540);const c=()=>{const[e,n]=(0,o.fp)(l);return{isInitialized:e,init:(0,f.useCallback)((()=>n(!0)),[n])}},r=()=>{const[e,n]=(0,o.fp)(d);return{isActive:e,activate:(0,f.useCallback)((()=>n(!0)),[n]),deactivate:(0,f.useCallback)((()=>n(!1)),[n])}}}}]);