summaryrefslogtreecommitdiffstats
path: root/web/gui/v2/3212.ef9057f6ac28ed55d62a.chunk.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/gui/v2/3212.ef9057f6ac28ed55d62a.chunk.js')
-rw-r--r--web/gui/v2/3212.ef9057f6ac28ed55d62a.chunk.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/gui/v2/3212.ef9057f6ac28ed55d62a.chunk.js b/web/gui/v2/3212.ef9057f6ac28ed55d62a.chunk.js
new file mode 100644
index 000000000..20f13d87b
--- /dev/null
+++ b/web/gui/v2/3212.ef9057f6ac28ed55d62a.chunk.js
@@ -0,0 +1 @@
+!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;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){(0,t.Z)(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}var l=function(n){var e=arguments.length>1&&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;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){(0,o.Z)(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}({color:"textDescription",background:"modalTabsBackground",border:{side:"all",color:"borderSecondary"},padding:[4,10,4,4],position:"relative",width:"100%"},n)})).withConfig({displayName:"command__StyledTerminalCommand",componentId:"sc-wnwmk3-0"})(["color:",";border-radius:2px;overflow-wrap:anywhere;white-space:pre-wrap;font-family:Courier New,monospace;letter-spacing:0.09px;line-height:18px;font-size:14px;word-break:break-word;"],(0,a.getColor)("textDescription")),p=(0,c.default)(a.Icon).withConfig({displayName:"command__StyledIcon",componentId:"sc-wnwmk3-1"})(["display:flex;align-self:flex-end;cursor:pointer;"]),b=(0,c.default)(a.Box).attrs({color:"textDescription",border:{side:"all",color:"borderSecondary"},background:"modalTabsBackground",padding:[0,1]}).withConfig({displayName:"command__CodeText",componentId:"sc-wnwmk3-2"})(["display:inline-block;color:",";border-radius:2px;font-family:Courier New,monospace;letter-spacing:0.09px;line-height:18px;font-size:14px;word-break:break-word;"],(0,a.getColor)("textDescription")),g=function(n){var e=n.children,r=(0,t.Z)(n,l);return i.createElement(b,r,e)};e.ZP=function(n){var e=n.children,r=n.confirmationText,o=void 0===r?"Command copied to your clipboard.":r,c=n.commandText,l=void 0===c?e:c,d=(0,t.Z)(n,s);return i.createElement(f,d,e,i.createElement(a.Box,{position:"absolute",bottom:"8px",right:"8px"},i.createElement(p,{name:"copy",size:"small",color:"primary",onClick:(0,u.J)(l||e,{text:o})})))}},69019:function(n,e,r){r.d(e,{Cl:function(){return w},E3:function(){return p},FD:function(){return E},Vs:function(){return O},ZQ:function(){return m},fA:function(){return Z},fh:function(){return h},fz:function(){return P},uV:function(){return k}});r(47941),r(82526),r(57327),r(88449),r(59849),r(38880),r(49337),r(33321),r(69070);var t=r(93433),o=r(29439),i=r(4942),c=(r(85827),r(41539),r(25387),r(2490),r(72608),r(15581),r(34514),r(54747),r(69720),r(92222),r(26398)),a=r(50308),u=r.n(a),l=r(66152),s=r(49489);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}function f(n){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?d(Object(r),!0).forEach((function(e){(0,i.Z)(n,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(r,e))}))}return n}var p={id:null,name:"",description:"",commitment:!1,pricing:[],enrolledAt:null,currentPeriodFrom:null,currentPeriodTo:null,committedNodes:0,billingEmail:"",balance:{amount:0,currency:"usd"}},b={Pro:"pro",Professional:"pro",Community:"free",EarlyBird:"earlyBird",Business:"business"},g=function(n){var e,r=b[n.class],t=(0,l.k5)(n),o=Array.isArray(t.pricing)?t.pricing.reduce((function(n,e){return f(f({},n),{},(0,i.Z)({},e.type,e))}),{}):{},c=null===(e=s.Hh[r])||void 0===e?void 0:e[n.version];return f(f(f({},p),t),{},{planLimitations:c,pricing:o,slug:r})},v=function(n){return(0,l.k5)(n)},m=function(n){return c.Z.get("/api/v2/spaces/".concat(n,"/billing/plans"),{transform:function(n){var e=n.plans.reduce((function(n,e){var r=g(e),t=n[r.slug]||[];return"year"===r.interval?t.unshift(r):t.push(r),n[r.slug]=t,n}),{});return Object.entries(e).forEach((function(n){var r=(0,o.Z)(n,2),i=r[0],c=r[1].reduce((function(n,e){var r=e.version;return n[r]?n[r]=[].concat((0,t.Z)(n[r]),[e]):n[r]=[e],n}),{});e[i]=c})),e}})},h=function(n){return c.Z.get("/api/v2/spaces/".concat(n,"/billing/plan"),{allow401:!0,transform:g})},y=function(){var n=arguments.length>0&&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}}}]); \ No newline at end of file