!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"6c5c4a21a2e48a657cc46560f5c18b469ebbf32c"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="2401a58c-9824-469e-b94e-8b79ad563814",e._sentryDebugIdIdentifier="sentry-dbid-2401a58c-9824-469e-b94e-8b79ad563814")}catch(e){}}(),(globalThis.webpackChunkcloud_frontend=globalThis.webpackChunkcloud_frontend||[]).push([[8414],{28414(e,n,t){t.r(n),t.d(n,{default:()=>c});var o=t(32977),l=t(18454),a=t(96540),d=t(24609),i=t(74848);const r=e=>{let{section:n}=e;const t=(0,d.vt)();return(0,a.useEffect)(()=>{let e=!0,o=null;return o=setTimeout(()=>{e&&(window.location.href=`/api/v3/spaces/${t}/billing/portal?section=${n||""}`)},2e3),()=>{e=!1,o&&(clearTimeout(o),o=null)}},[t]),(0,i.jsx)(o.TextBigger,{children:"Redirecting to Netdata billing portal..."})};var s=t(60908);const c=()=>{const{state:e}=(0,l.Y)(),{isOpen:n,section:t}=e||{};return n?(0,i.jsx)(o.Modal,{backdropContainerProps:{zIndex:"60"},backdropProps:{backdropBlur:!0},children:(0,i.jsx)(s.Ay,{feature:"BillingRedirectionModal",children:(0,i.jsx)(o.ModalContent,{width:{base:"90vw",max:"600px"},height:{base:"90vh",max:"300px"},children:(0,i.jsx)(o.ModalBody,{alignItems:"center",justifyContent:"center",column:!0,flex:"grow",gap:3,padding:[6],children:(0,i.jsx)(r,{section:t})})})})}):null}}}]);