!function(){try{var n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},e=(new Error).stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="115267bc-0e8e-4668-a9f5-ee4a3289658b",n._sentryDebugIdIdentifier="sentry-dbid-115267bc-0e8e-4668-a9f5-ee4a3289658b")}catch(n){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"833aaee1cc06f5081274f22d18347a1cce30fb04"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[3212],{14808:function(n,e,t){t.d(e,{Z3:function(){return l},h2:function(){return s},nA:function(){return f},xy:function(){return u}});t(26699),t(32023);var r="trialWarning",o="alertConfiguration",i="editAlertConfiguration",c=[r,o];function a(n){if(c.includes(n))return function(){return!0};var e="true"===localStorage.getItem(n);return function(n){return n||e}}var u=a("mobileAppNotifications")(),l=a(r)(),s=a(o)(),f=a(i)()},52428:function(n,e,t){t.d(e,{J:function(){return l}});t(47941),t(82526),t(57327),t(41539),t(88449),t(2490),t(59849),t(38880),t(15581),t(34514),t(54747),t(49337),t(33321),t(69070);var r=t(4942),o=t(58206),i=t(52631),c=t(74855);function a(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}function u(n){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return function(){(0,o.Z)(n);var t=(0,c.sc)(u(u({header:"Copied",text:"Command copied to your clipboard! Please run it on your node's terminal.",icon:"gear"},e),{},{success:!0}));i.Z.success(t,{context:"copy"})}}},57387:function(n,e,t){t.d(e,{ZM:function(){return g}});t(47941),t(82526),t(57327),t(41539),t(88449),t(2490),t(59849),t(38880),t(15581),t(34514),t(54747),t(49337),t(33321),t(69070);var r=t(45987),o=t(4942),i=t(67294),c=t(71893),a=t(13655),u=t(52428),l=["children"],s=["children","confirmationText","commandText"];function f(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}var d=(0,c.default)(a.Box).attrs((function(n){return function(n){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:"update";return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r="update"==n?c.Z.put:c.Z.post;return"function"!==typeof r?u():r("/api/v2/spaces/".concat(e,"/billing/plan"),(0,l.v)(t),{transform:function(n){return n.url}})}},O=function(n,e){return m("checkout")(n,e)},w=function(n,e){return m()(n,e)},P=function(n,e){return c.Z.get("/api/v2/spaces/".concat(n,"/billing/portal?redirect_url=").concat(encodeURIComponent(e)),{transform:function(n){return n.url}})},j=function(n,e){var t=e.after,r=e.before;return c.Z.get("/api/v2/spaces/".concat(n,"/billing/node-count?from=").concat(t,"&to=").concat(r))},Z=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c.Z.put("/api/v2/spaces/".concat(n,"/billing/plan/preview"),(0,l.v)(e),{transform:v})},k=function(n){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).email;return c.Z.post("/api/v2/spaces/".concat(n,"/billing/trial"),{email:e})},E=function(n){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c.Z.post("api/v2/spaces/".concat(n,"/billing/promo-code/check"),(0,l.v)(e))}},36285:function(n,e,t){t.d(e,{x1:function(){return _},eY:function(){return x},sk:function(){return A},RP:function(){return k},SH:function(){return E},Gl:function(){return O},fG:function(){return j},kK:function(){return S},Zn:function(){return D}});var r=t(4942),o=t(45987),i=t(29439),c=(t(41539),t(88674),t(17727),t(47941),t(82526),t(57327),t(88449),t(2490),t(59849),t(38880),t(15581),t(34514),t(54747),t(49337),t(33321),t(69070),t(67294)),a=t(4480),u=(0,a.cn)({key:"billingPlanCancelling",default:!1}),l=t(50308),s=t.n(l),f=t(74059),d=t(69019),p=t(49489),b=t(65840),g=t(78710),v=["spaceId"];function y(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),t.push.apply(t,r)}return t}var h=[],m=(0,a.CG)({key:"plans",get:function(n){return function(){return(0,d.ZQ)(n)}}}),O=function(){var n,e=(0,f.th)(),t=(0,a.$P)(m(e));return{loaded:"loading"!==t.state,value:(null===(n=t.contents)||void 0===n?void 0:n.data)||h,hasError:"hasError"===t.state}},w=(0,a.CG)({key:"previewPlan",get:function(n){var e=n.spaceId,t=n.payload;return function(){return(0,d.uV)(e,t)}},cachePolicy_UNSTABLE:{eviction:"most-recent"}}),P=function(n){var e;return p.Fi[null===n||void 0===n||null===(e=n.response)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.errorMsgKey]},j=function(n,e){var t,r=(0,f.th)(),o=(0,a.$P)(w({spaceId:r,payload:n,forceFetch:e}));return{loading:"loading"===o.state,value:(null===(t=o.contents)||void 0===t?void 0:t.data)||{},promoCodeError:"hasError"===o.state?P(o.contents):void 0}},Z=(0,a.CG)({key:"currentPlan",get:function(n){return function(){return n&&!(0,g.Ly)(n)?(0,d.fh)(n):Promise.resolve()}}}),k=function(){var n,e=(0,f.th)(),t=(0,a.$P)(Z(e)),r=(0,a.C)(Z(e));return{loaded:"loading"!==t.state,value:(null===(n=t.contents)||void 0===n?void 0:n.data)||d.E3,hasError:"hasError"===t.state,refresh:r}},E=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href,e=(0,c.useState)(!1),t=(0,i.Z)(e,2),r=t[0],o=t[1],a=(0,f.th)();return[(0,c.useCallback)((function(){o(!0),(0,d.fz)(a,n).then((function(n){var e=n.data;return location.href=e})).finally((function(){return o(!1)}))}),[a,n]),r]},C=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.Vs,e=(0,f.th)(),t=k(),r=(0,b.HK)();return!t.loaded||t.hasError?s():function(o){return n(e,o).then((function(n){t.refresh(),r(),null!==n&&void 0!==n&&n.data&&(location.href=n.data)}))}},x=function(){return C(d.Cl)},D=function(){return C()},S=function(){var n=(0,f.th)();return function(e){return(0,d.FD)(n,e)}},_=function(){var n=(0,a.FV)(u),e=(0,i.Z)(n,2),t=e[0],r=e[1];return{cancelling:t,startCancelling:(0,c.useCallback)((function(){return r(!0)}),[]),stopCancelling:(0,c.useCallback)((function(){return r(!1)}),[])}},I=(0,a.CG)({key:"couponCheck",get:function(n){var e=n.spaceId,t=(0,o.Z)(n,v);return function(){return t.promotionCode?(0,d.xl)(e,t):Promise.resolve({})}}}),A=function(){var n,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,f.th)(),o=(0,a.$P)(I(function(n){for(var e=1;e