!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:"79d3cd5525e22d657dc079bdf45a12ff56a6fdb3"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[86],{60086:(e,n,a)=>{a.r(n),a.d(n,{default:()=>D});var t=a(58168),r=a(96540),o=a(8573),d=a(16074),l=a(7310),i=a(63933),s=a(82526),c=a(29176),f=a(87991),p=a(5396),u=a(29217),b=a(87659),g=a(92155),m=a(25624),E=a(73865),w=a(99904),y=a(35454),x=a(24864),A=a(93476),h=a(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,...a}=e;return n?r.createElement(U,a):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},a))))});var U;const D=e=>{let{flavour:n="banner"}=e;const{onTrial:a,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=!a&&_,[H,M]=(0,b.A)();return(0,r.useEffect)((()=>{const e=localStorage.getItem("dismissSidebarBanner");e&&(0,d.f)((0,l.H)(e))&&!(0,i.R)((0,l.H)(e))||M(!0)}),[]),"sidebar"==n&&(t||R)?H?r.createElement(x.bg,{type:a?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:a?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,d.f)(I)&&r.createElement(o.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?r.createElement(p.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}}}]);