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