!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]="6756be5f-afbd-400d-83db-9b8d4b89b982",e._sentryDebugIdIdentifier="sentry-dbid-6756be5f-afbd-400d-83db-9b8d4b89b982")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"8a739758aeaa9703d317afd549bb0f90035c314e"},(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),d=t(65336),o=t(16074),l=t(84929),i=t(63933),s=t(82526),c=t(29176),p=t(87991),b=t(5396),f=t(29217),u=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(f.A,{content:"You don't have permissions to upgrade the plan"},r.createElement(d.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:f,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,u.A)();return(0,r.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?r.createElement(x.bg,{type:t?U:"default",column:!0,gap:2,margin:[2],padding:[2]},r.createElement(d.Box,{"data-testid":"close-button",as:d.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,o.f)(I)&&r.createElement(d.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:f?r.createElement(b.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}}}]);