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]="208d4e37-6aa8-4e34-ae42-0f52beeaefc0",e._sentryDebugIdIdentifier="sentry-dbid-208d4e37-6aa8-4e34-ae42-0f52beeaefc0")}catch(e){}("undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:{}).SENTRY_RELEASE={id:"a34c67398217da8f13771210ac9af709452b2a25"};(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[4913],{12296:(e,n,a)=>{a.d(n,{m:()=>p});var t=a(52365),s=a(75156),o=a(92516),r=a(1108),i=a(5305),d=a(96054),l=a(61501),f=a(10911),u=a(91349);function c(e,n,a){const t=(0,o.q)(),c=a?.locale??t.locale??s.c,p=(0,d.z)(e,n);if(isNaN(p))throw new RangeError("Invalid time value");const g=Object.assign({},a,{addSuffix:a?.addSuffix,comparison:p}),[b,h]=(0,i.x)(a?.in,...p>0?[n,e]:[e,n]),m=(0,u.O)(h,b),x=((0,r.G)(h)-(0,r.G)(b))/1e3,D=Math.round((m-x)/60);let w;if(D<2)return a?.includeSeconds?m<5?c.formatDistance("lessThanXSeconds",5,g):m<10?c.formatDistance("lessThanXSeconds",10,g):m<20?c.formatDistance("lessThanXSeconds",20,g):m<40?c.formatDistance("halfAMinute",0,g):m<60?c.formatDistance("lessThanXMinutes",1,g):c.formatDistance("xMinutes",1,g):0===D?c.formatDistance("lessThanXMinutes",1,g):c.formatDistance("xMinutes",D,g);if(D<45)return c.formatDistance("xMinutes",D,g);if(D<90)return c.formatDistance("aboutXHours",1,g);if(D<l.F6){const e=Math.round(D/60);return c.formatDistance("aboutXHours",e,g)}if(D<2520)return c.formatDistance("xDays",1,g);if(D<l.Nw){const e=Math.round(D/l.F6);return c.formatDistance("xDays",e,g)}if(D<2*l.Nw)return w=Math.round(D/l.Nw),c.formatDistance("aboutXMonths",w,g);if(w=(0,f.W)(h,b),w<12){const e=Math.round(D/l.Nw);return c.formatDistance("xMonths",e,g)}{const e=w%12,n=Math.trunc(w/12);return e<3?c.formatDistance("aboutXYears",n,g):e<9?c.formatDistance("overXYears",n,g):c.formatDistance("almostXYears",n+1,g)}}function p(e,n){return c(e,(0,t.A)(e),n)}},44913:(e,n,a)=>{a.r(n),a.d(n,{default:()=>j});var t=a(96540),s=a(65258),o=a(42539),r=a(85577),i=a(12296),d=a(45710),l=a(32370),f=a(41394),u=a(56171),c=a(73613),p=a(6304),g=a(3203),b=a(10853),h=a(51262),m=a(60266),x=a(68399),D=a(99243),w=a(3033),y=a(2652),M=a(74848);const S=new Date("12/06/2024 23:59:59 +2"),A=new Date,T=(I=(0,g.A)(D.PL),e=>{let{canUpgrade:n,...a}=e;return n?(0,M.jsx)(I,{...a}):(0,M.jsx)(c.A,{content:"You don't have permissions to upgrade the plan",children:(0,M.jsx)(s.Flex,{children:(0,M.jsx)(I,{disabled:!0,...a})})})});var I;const j=e=>{let{flavour:n="banner"}=e;const{onTrial:a,sidebarWarningVisible:c,bannerVisible:g,dismissBanner:I,type:j,canUpgrade:v,planIsFreeOrEarlyBird:X}=(0,b.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),_=!a&&X,[F,R]=(0,p.A)();return(0,t.useEffect)((()=>{const e=localStorage.getItem("dismissSidebarBanner");e&&(0,l.f)((0,f.H)(e))&&!(0,d.R)((0,f.H)(e))||R(!0)}),[]),"sidebar"==n&&(c||_)?F?(0,M.jsxs)(D.bg,{type:a?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:a?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:g?(0,M.jsx)(u.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,a)=>{a.d(n,{R:()=>s});var t=a(29407);function s(e){return+(0,t.a)(e)<Date.now()}},52365:(e,n,a)=>{a.d(n,{A:()=>s});var t=a(43329);function s(e){return(0,t.w)(e,Date.now())}}}]);