!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]="53e22699-9ae6-4591-89d6-76189485d0ad",n._sentryDebugIdIdentifier="sentry-dbid-53e22699-9ae6-4591-89d6-76189485d0ad")}catch(n){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"8b7b01b6c705cf50f8050ce0fb8fc6b58fe68567"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[3212],{14808:function(n,e,r){r.d(e,{Z3:function(){return u},h2:function(){return l},xy:function(){return a}});r(26699),r(32023);var t="trialWarning",o="alertConfiguration",i=[t];function c(n){if(i.includes(n))return function(){return!0};var e="true"===localStorage.getItem(n);return function(n){return n||e}}var a=c("mobileAppNotifications")(),u=c(t)(),l=c(o)()},52428:function(n,e,r){r.d(e,{J:function(){return l}});r(47941),r(82526),r(57327),r(41539),r(88449),r(2490),r(59849),r(38880),r(15581),r(34514),r(54747),r(49337),r(33321),r(69070);var t=r(4942),o=r(58206),i=r(52631),c=r(74855);function a(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}function u(n){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:{};return function(){(0,o.Z)(n);var r=(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(r,{context:"copy"})}}},57387:function(n,e,r){r.d(e,{ZM:function(){return g}});r(47941),r(82526),r(57327),r(41539),r(88449),r(2490),r(59849),r(38880),r(15581),r(34514),r(54747),r(49337),r(33321),r(69070);var t=r(45987),o=r(4942),i=r(67294),c=r(71893),a=r(93416),u=r(52428),l=["children"],s=["children","confirmationText","commandText"];function d(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.push.apply(r,t)}return r}var f=(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 r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t="update"==n?c.Z.put:c.Z.post;return"function"!==typeof t?u():t("/api/v2/spaces/".concat(e,"/billing/plan"),(0,l.v)(r),{transform:function(n){return n.url}})}},w=function(n,e){return y("checkout")(n,e)},O=function(n,e){return y()(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}})},Z=function(n,e){var r=e.after,t=e.before;return c.Z.get("/api/v2/spaces/".concat(n,"/billing/node-count?from=").concat(r,"&to=").concat(t))},k=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})},E=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})}},36285:function(n,e,r){r.d(e,{x1:function(){return x},eY:function(){return k},RP:function(){return O},SH:function(){return P},Gl:function(){return v},fG:function(){return y},kK:function(){return j},Zn:function(){return E}});var t=r(29439),o=(r(41539),r(88674),r(17727),r(67294)),i=r(4480),c=(0,i.cn)({key:"billingPlanCancelling",default:!1}),a=r(50308),u=r.n(a),l=r(74059),s=r(69019),d=r(49489),f=r(65840),p=r(78710),b=[],g=(0,i.CG)({key:"plans",get:function(n){return function(){return(0,s.ZQ)(n)}}}),v=function(){var n,e=(0,l.th)(),r=(0,i.$P)(g(e));return{loaded:"loading"!==r.state,value:(null===(n=r.contents)||void 0===n?void 0:n.data)||b,hasError:"hasError"===r.state}},m=(0,i.CG)({key:"previewPlan",get:function(n){var e=n.spaceId,r=n.payload;return function(){return(0,s.uV)(e,r)}},cachePolicy_UNSTABLE:{eviction:"most-recent"}}),h=function(n){var e;return d.Fi[null===n||void 0===n||null===(e=n.response)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.errorMsgKey]},y=function(n,e){var r,t=(0,l.th)(),o=(0,i.$P)(m({spaceId:t,payload:n,forceFetch:e}));return{loading:"loading"===o.state,value:(null===(r=o.contents)||void 0===r?void 0:r.data)||{},promoCodeError:"hasError"===o.state?h(o.contents):void 0}},w=(0,i.CG)({key:"currentPlan",get:function(n){return function(){return n&&!(0,p.Ly)(n)?(0,s.fh)(n):Promise.resolve()}}}),O=function(){var n,e=(0,l.th)(),r=(0,i.$P)(w(e)),t=(0,i.C)(w(e));return{loaded:"loading"!==r.state,value:(null===(n=r.contents)||void 0===n?void 0:n.data)||s.E3,hasError:"hasError"===r.state,refresh:t}},P=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href,e=(0,o.useState)(!1),r=(0,t.Z)(e,2),i=r[0],c=r[1],a=(0,l.th)();return[(0,o.useCallback)((function(){c(!0),(0,s.fz)(a,n).then((function(n){var e=n.data;return location.href=e})).finally((function(){return c(!1)}))}),[a,n]),i]},Z=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.Vs,e=(0,l.th)(),r=O(),t=(0,f.HK)();return!r.loaded||r.hasError?u():function(o){return n(e,o).then((function(n){r.refresh(),t(),null!==n&&void 0!==n&&n.data&&(location.href=n.data)}))}},k=function(){return Z(s.Cl)},E=function(){return Z()},j=function(){var n=(0,l.th)();return function(e){return(0,s.FD)(n,e)}},x=function(){var n=(0,i.FV)(c),e=(0,t.Z)(n,2),r=e[0],a=e[1];return{cancelling:r,startCancelling:(0,o.useCallback)((function(){return a(!0)}),[]),stopCancelling:(0,o.useCallback)((function(){return a(!1)}),[])}}},5710:function(n,e,r){var t=r(87462),o=r(45987),i=r(67294),c=r(79655),a=r(91008),u=r(74059),l=["children"];e.Z=function(n){var e=n.children,r=(0,o.Z)(n,l),s=(0,u.uk)(),d="/spaces/".concat(s,"/settings/nodes");return i.createElement(a.Z,(0,t.Z)({as:c.rU,to:d},r),e)}},37503:function(n,e,r){var t=r(87462),o=r(45987),i=r(67294),c=r(79655),a=r(91008),u=r(99826),l=["children"];e.Z=function(n){var e=n.children,r=(0,o.Z)(n,l),s=(0,u.Z)("business").url;return i.createElement(a.Z,(0,t.Z)({as:c.rU,to:s,disabled:!s},r),e)}},34735:function(n,e,r){r(26699),r(32023);var t=r(67294),o=r(97945),i=r(36285),c=r(14808);e.Z=function(){var n=(0,o.ul)(),e=n.loaded,r=n.nodes,a=n.hasError,u=n.refresh,l=(0,i.RP)(),s=l.loaded,d=l.value,f=l.hasError,p=c.Z3&&!(null===d||void 0===d||!d.planLimitations),b=(null===d||void 0===d?void 0:d.planLimitations)||{},g=b.maxNodes,v=void 0===g?0:g,m=b.maxDashboards,h=void 0===m?0:m,y=(0,t.useCallback)((function(n){return p&&!r.includes(n)}),[r,p]);return{loaded:e&&s,hasError:a||f,currentPlan:d,hasLimitations:p,maxNodes:v,maxDashboards:h,preferredNodes:r,isNodeRestricted:y,refreshPreferredNodes:u}}},99826:function(n,e,r){r(92222);var t=r(67294),o=r(36285),i=r(74059);e.Z=function(n){var e=(0,o.RP)(),r=e.loaded,c=e.value,a=e.hasError,u=(0,i.uk)(),l=r&&c?c.billingEmail?"update":"checkout":"",s="/spaces/".concat(u,"/settings/billing/all-plans"),d=(0,t.useCallback)((function(n){return r&&c?"".concat(s,"#billingModalType=").concat(l,"&billingModalSlug=").concat(n):null}),[n,u,l]),f=n?d(n):s;return{loaded:r,getUrl:d,url:f,hasError:a}}},91128:function(n,e,r){var t=r(29439),o=r(65565),i=r(46667),c=r(9058);e.Z=function(){var n=(0,i.Z)(!1),e=(0,t.Z)(n,2),r=e[0],a=e[1],u=(0,c.e)();return(0,o.Z)((function(){if(u&&u.getRoot())return u.getRoot().updateAttribute("paused",!u.getRoot().getAttribute("autofetchOnWindowBlur")&&u.getRoot().getAttribute("blurred")||r),function(){return u.getRoot().updateAttribute("paused",!u.getRoot().getAttribute("autofetchOnWindowBlur")&&u.getRoot().getAttribute("blurred"))}}),[r]),a}}}]);