try{let 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]="b2cedf48-21c8-469e-93fb-6780db6c4b81",e._sentryDebugIdIdentifier="sentry-dbid-b2cedf48-21c8-469e-93fb-6780db6c4b81")}catch(e){}("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{}).SENTRY_RELEASE={id:"5d649380d18bd074b7bbfcec2ab9936055a4607a"};(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[4913],{12296:(e,n,t)=>{t.d(n,{m:()=>b});var a=t(52365),s=t(75156),o=t(92516),r=t(1108),i=t(5305),d=t(96054),l=t(61501),c=t(10911),f=t(91349);function u(e,n,t){const a=(0,o.q)(),u=t?.locale??a.locale??s.c,b=(0,d.z)(e,n);if(isNaN(b))throw new RangeError("Invalid time value");const p=Object.assign({},t,{addSuffix:t?.addSuffix,comparison:b}),[g,h]=(0,i.x)(t?.in,...b>0?[n,e]:[e,n]),m=(0,f.O)(h,g),x=((0,r.G)(h)-(0,r.G)(g))/1e3,D=Math.round((m-x)/60);let w;if(D<2)return t?.includeSeconds?m<5?u.formatDistance("lessThanXSeconds",5,p):m<10?u.formatDistance("lessThanXSeconds",10,p):m<20?u.formatDistance("lessThanXSeconds",20,p):m<40?u.formatDistance("halfAMinute",0,p):m<60?u.formatDistance("lessThanXMinutes",1,p):u.formatDistance("xMinutes",1,p):0===D?u.formatDistance("lessThanXMinutes",1,p):u.formatDistance("xMinutes",D,p);if(D<45)return u.formatDistance("xMinutes",D,p);if(D<90)return u.formatDistance("aboutXHours",1,p);if(D<l.F6){const e=Math.round(D/60);return u.formatDistance("aboutXHours",e,p)}if(D<2520)return u.formatDistance("xDays",1,p);if(D<l.Nw){const e=Math.round(D/l.F6);return u.formatDistance("xDays",e,p)}if(D<2*l.Nw)return w=Math.round(D/l.Nw),u.formatDistance("aboutXMonths",w,p);if(w=(0,c.W)(h,g),w<12){const e=Math.round(D/l.Nw);return u.formatDistance("xMonths",e,p)}{const e=w%12,n=Math.trunc(w/12);return e<3?u.formatDistance("aboutXYears",n,p):e<9?u.formatDistance("overXYears",n,p):u.formatDistance("almostXYears",n+1,p)}}function b(e,n){return u(e,(0,a.A)(e),n)}},44913:(e,n,t)=>{t.r(n),t.d(n,{default:()=>j});var a=t(96540),s=t(61449),o=t(42539),r=t(85577),i=t(12296),d=t(45710),l=t(32370),c=t(41394),f=t(56171),u=t(73613),b=t(6304),p=t(3203),g=t(10853),h=t(51262),m=t(60266),x=t(68399),D=t(99243),w=t(3033),y=t(2652),M=t(74848);const S=new Date("12/06/2024 23:59:59 +2"),A=new Date,T=(I=(0,p.A)(D.PL),e=>{let{canUpgrade:n,...t}=e;return n?(0,M.jsx)(I,{...t}):(0,M.jsx)(u.A,{content:"You don't have permissions to upgrade the plan",children:(0,M.jsx)(s.Flex,{children:(0,M.jsx)(I,{disabled:!0,...t})})})});var I;const j=e=>{let{flavour:n="banner"}=e;const{onTrial:t,sidebarWarningVisible:u,bannerVisible:p,dismissBanner:I,type:j,canUpgrade:v,planIsFreeOrEarlyBird:X}=(0,g.A)(),{coupon:k}=(0,m.A)(),{loaded:U,isNewUser:E}=(0,h.A)(),N=U&&E&&parseFloat((S-A)/1e3/60/60/24),B=k||(N>0?"BF20241Y":""),C=(0,y.A)(B),_=!t&&X,[F,R]=(0,b.A)();return(0,a.useEffect)((()=>{const e=localStorage.getItem("dismissSidebarBanner");e&&(0,l.f)((0,c.H)(e))&&!(0,d.R)((0,c.H)(e))||R(!0)}),[]),"sidebar"==n&&(u||_)?F?(0,M.jsxs)(D.bg,{type:t?j:"default",column:!0,gap:2,margin:[2],padding:[2],children:[(0,M.jsx)(s.Box,{"data-testid":"close-button",as:s.Icon,color:"text",cursor:"pointer",name:"x",position:"absolute",right:"2px",top:"2px",width:"12px",height:"12px",onClick:()=>{R(),localStorage.setItem("dismissSidebarBanner",(0,o.W)(new Date,{days:3}).toISOString())}}),(0,M.jsx)(w.A,{flavour:t?n:"freePlanUpgrade",couponRemainingDays:N,expDate:S,onUpdateClick:C}),(0,M.jsx)(T,{feature:"UpgradeToBusiness",isStart:!0,small:!0,"data-testid":"upgradeToBusiness-sidebar",label:N>0?"Upgrade now!":"Upgrade",canUpgrade:v,onClick:C}),N>0&&(0,l.f)(S)&&(0,M.jsxs)(s.TextNano,{strong:!0,textAlign:"center",lineHeight:.8,children:["Expires"," ",N<1?`${(0,i.m)(S,{addSuffix:!0})} ${(0,r.GP)(S,"'at' p")}`:`on ${(0,r.GP)(S,"do 'of' MMM', at' p")}`]})]}):null:p?(0,M.jsx)(f.A,{testId:"trial-banner",width:"100%",background:x.ue[j],onClose:I,tooltipProps:{align:"top"},zIndex:20,children:(0,M.jsx)(w.A,{flavour:n,onUpdateClick:C})}):null}},45710:(e,n,t)=>{t.d(n,{R:()=>s});var a=t(29407);function s(e){return+(0,a.a)(e)<Date.now()}},52365:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(43329);function s(e){return(0,a.w)(e,Date.now())}}}]);