!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]="9bb509a5-af66-447e-9b2a-8790769abfc9",e._sentryDebugIdIdentifier="sentry-dbid-9bb509a5-af66-447e-9b2a-8790769abfc9")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"2cf8df3206339b597c7cbea290c34f66439c3909"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[86],{60086:(e,n,t)=>{t.r(n),t.d(n,{default:()=>D});var a=t(58168),r=t(96540),o=t(8573),l=t(16074),d=t(7310),i=t(63933),s=t(82526),c=t(29176),p=t(87991),f=t(5396),u=t(29217),b=t(87659),g=t(92155),m=t(25624),E=t(73865),w=t(99904),y=t(35454),x=t(24864),A=t(93476),h=t(28061);const I=new Date("12/06/2024 23:59:59 +2"),k=new Date,S=(U=(0,g.A)(x.PL),e=>{let{canUpgrade:n,...t}=e;return n?r.createElement(U,t):r.createElement(u.A,{content:"You don't have permissions to upgrade the plan"},r.createElement(o.Flex,null,r.createElement(U,(0,a.A)({disabled:!0},t))))});var U;const D=e=>{let{flavour:n="banner"}=e;const{onTrial:t,sidebarWarningVisible:a,bannerVisible:u,dismissBanner:g,type:U,canUpgrade:D,planIsFreeOrEarlyBird:_}=(0,m.A)(),{coupon:v}=(0,w.A)(),{loaded:B,isNewUser:C}=(0,E.A)(),P=B&&C&&parseFloat((I-k)/1e3/60/60/24),T=v||(P>0?"BF20241Y":""),F=(0,h.A)(T),R=!t&&_,[H,M]=(0,b.A)();return(0,r.useEffect)((()=>{const e=localStorage.getItem("dismissSidebarBanner");e&&(0,l.f)((0,d.H)(e))&&!(0,i.R)((0,d.H)(e))||M(!0)}),[]),"sidebar"==n&&(a||R)?H?r.createElement(x.bg,{type:t?U:"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:()=>{M(),localStorage.setItem("dismissSidebarBanner",(0,s.W)(new Date,{days:3}).toISOString())}}),r.createElement(A.A,{flavour:t?n:"freePlanUpgrade",couponRemainingDays:P,expDate:I,onUpdateClick:F}),r.createElement(S,{feature:"UpgradeToBusiness",isStart:!0,small:!0,"data-testid":"upgradeToBusiness-sidebar",label:P>0?"Upgrade now!":"Upgrade",canUpgrade:D,onClick:F}),P>0&&(0,l.f)(I)&&r.createElement(o.TextNano,{strong:!0,textAlign:"center",lineHeight:.8},"Expires"," ",P<1?`${(0,c.m)(I,{addSuffix:!0})} ${(0,p.GP)(I,"'at' p")}`:`on ${(0,p.GP)(I,"do 'of' MMM', at' p")}`)):null:u?r.createElement(f.A,{testId:"trial-banner",width:"100%",background:y.ue[U],onClose:g,tooltipProps:{align:"top"},zIndex:20},r.createElement(A.A,{flavour:n,onUpdateClick:F})):null}}}]);