!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]="9d05b1df-fcc5-4ef3-aee1-3cf46dd9fded",e._sentryDebugIdIdentifier="sentry-dbid-9d05b1df-fcc5-4ef3-aee1-3cf46dd9fded")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"9332d759e18bd663bd9f8bd6b7633616d12f17f2"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[86],{60086:(e,n,t)=>{t.r(n),t.d(n,{default:()=>D});var a=t(58168),d=t(96540),r=t(8573),o=t(16074),l=t(84929),i=t(63933),s=t(82526),c=t(29176),f=t(87991),p=t(5396),u=t(29217),g=t(87659),b=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,b.A)(x.PL),e=>{let{canUpgrade:n,...t}=e;return n?d.createElement(U,t):d.createElement(u.A,{content:"You don't have permissions to upgrade the plan"},d.createElement(r.Flex,null,d.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:b,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,g.A)();return(0,d.useEffect)((()=>{const e=localStorage.getItem("dismissSidebarBanner");e&&(0,o.f)((0,l.H)(e))&&!(0,i.R)((0,l.H)(e))||M(!0)}),[]),"sidebar"==n&&(a||R)?H?d.createElement(x.bg,{type:t?U:"default",column:!0,gap:2,margin:[2],padding:[2]},d.createElement(r.Box,{"data-testid":"close-button",as:r.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())}}),d.createElement(A.A,{flavour:t?n:"freePlanUpgrade",couponRemainingDays:P,expDate:I,onUpdateClick:F}),d.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,o.f)(I)&&d.createElement(r.TextNano,{strong:!0,textAlign:"center",lineHeight:.8},"Expires"," ",P<1?`${(0,c.m)(I,{addSuffix:!0})} ${(0,f.GP)(I,"'at' p")}`:`on ${(0,f.GP)(I,"do 'of' MMM', at' p")}`)):null:u?d.createElement(p.A,{testId:"trial-banner",width:"100%",background:y.ue[U],onClose:b,tooltipProps:{align:"top"},zIndex:20},d.createElement(A.A,{flavour:n,onUpdateClick:F})):null}}}]);