!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a=(new Error).stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="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:"4c4e0af8211f6cc5779d35dea21bc1aab0b3690c"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[86],{60086:(e,a,n)=>{n.r(a),n.d(a,{default:()=>D});var t=n(58168),r=n(96540),o=n(8573),l=n(16074),d=n(7310),i=n(63933),s=n(82526),c=n(29176),p=n(87991),f=n(5396),u=n(29217),b=n(87659),g=n(92155),m=n(25624),E=n(73865),w=n(99904),y=n(35454),x=n(24864),A=n(93476),h=n(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:a,...n}=e;return a?r.createElement(U,n):r.createElement(u.A,{content:"You don't have permissions to upgrade the plan"},r.createElement(o.Flex,null,r.createElement(U,(0,t.A)({disabled:!0},n))))});var U;const D=e=>{let{flavour:a="banner"}=e;const{onTrial:n,sidebarWarningVisible:t,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=!n&&_,[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"==a&&(t||R)?H?r.createElement(x.bg,{type:n?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:n?a:"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:a,onUpdateClick:F})):null}}}]);