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