summaryrefslogtreecommitdiffstats
path: root/src/web/gui/v2/963.35da4a3c4e49aac29dae.chunk.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/gui/v2/963.35da4a3c4e49aac29dae.chunk.js')
-rw-r--r--src/web/gui/v2/963.35da4a3c4e49aac29dae.chunk.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/web/gui/v2/963.35da4a3c4e49aac29dae.chunk.js b/src/web/gui/v2/963.35da4a3c4e49aac29dae.chunk.js
new file mode 100644
index 00000000..6698ea43
--- /dev/null
+++ b/src/web/gui/v2/963.35da4a3c4e49aac29dae.chunk.js
@@ -0,0 +1 @@
+!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="94514b2a-a272-48b2-988d-a174805c5b7f",e._sentryDebugIdIdentifier="sentry-dbid-94514b2a-a272-48b2-988d-a174805c5b7f")}catch(e){}}();var _global="undefined"!==typeof window?window:"undefined"!==typeof global?global:"undefined"!==typeof self?self:{};_global.SENTRY_RELEASE={id:"30b1ba65cc8722be7e184f4a401fb43e6b21634d"},(self.webpackChunkcloud_frontend=self.webpackChunkcloud_frontend||[]).push([[963],{92155:(e,t,o)=>{o.d(t,{A:()=>c});var n=o(58168),a=o(96540),r=o(50876);const l=e=>(0,a.forwardRef)(((t,o)=>{let{callback:l,feature:i,isStart:c,isSuccess:s,isFailure:d,eventReason:u,payload:p={},...g}=t;const{sendLog:f,isReady:b}=(0,r.A)(),v=(0,a.useCallback)((()=>{const e=g[l],t={feature:i,isStart:c,isSuccess:s,isFailure:d,eventReason:u,...p,...g["data-ga"]?{dataGa:g["data-ga"]}:{},...g.dataGa?{dataGa:g.dataGa}:{},...g["data-track"]?{dataTrack:g["data-track"]}:{},...g.label?{label:g.label}:{}};"function"==typeof e&&e(),f(t,!0)}),[l,f,b,p,g]),m=(0,a.useMemo)((()=>({...g,[l]:v})),[g,l,v]);return a.createElement(e,(0,n.A)({ref:o},m))}));var i=o(67276);const c=e=>(0,a.forwardRef)(((t,o)=>{let{payload:r={},...c}=t;const s=l(e);return a.createElement(s,(0,n.A)({},c,{ref:o,callback:"onClick",payload:{...r,action:i.o1.buttonClicked}}))}))},93155:(e,t,o)=>{o.d(t,{Df:()=>b,Dm:()=>g,EM:()=>f,Mh:()=>u,bO:()=>p});const n="mobileAppNotifications",a="trialWarning",r="alertConfiguration",l="editAlertConfiguration",i="userCustomSettings",c="oktaSSO",s=[a,r,n,c];function d(e){if(s.includes(e))return()=>!0;const t="true"===localStorage.getItem(e);return e=>e||t}const u=d(n)(),p=d(a)(),g=d(r)(),f=(d(l)(),d(i)()),b=d(c)()},18682:(e,t,o)=>{o.d(t,{C:()=>l});var n=o(33436),a=o(78217),r=o(13871);const l=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return()=>{(0,n.A)(e);const o=(0,r.UI)({header:"Copied",text:"Command copied to your clipboard! Please run it on your node's terminal.",icon:"gear",...t,success:!0});a.A.success(o,{context:"copy"})}}},87292:(e,t,o)=>{o.d(t,{Ay:()=>u,R0:()=>d});var n=o(96540),a=o(8711),r=o(83199),l=o(18682);const i=(0,a.default)(r.Box).attrs((e=>({color:"textDescription",background:"modalTabsBackground",border:{side:"all",color:"borderSecondary"},padding:[4,10,4,4],position:"relative",width:"100%",...e}))).withConfig({displayName:"command__StyledTerminalCommand",componentId:"sc-wnwmk3-0"})(["color:",";border-radius:2px;overflow-wrap:anywhere;white-space:pre-wrap;font-family:monospace;letter-spacing:0.09px;line-height:18px;font-size:14px;word-break:break-word;"],(0,r.getColor)("textDescription")),c=(0,a.default)(r.Icon).withConfig({displayName:"command__StyledIcon",componentId:"sc-wnwmk3-1"})(["display:flex;align-self:flex-end;cursor:pointer;"]),s=(0,a.default)(r.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:monospace;letter-spacing:0.09px;line-height:16px;font-size:12px;font-weight:bold;word-break:break-word;"],(0,r.getColor)("textDescription")),d=e=>{let{children:t,...o}=e;return n.createElement(s,o,t)},u=e=>{let{children:t,confirmationText:o="Command copied to your clipboard.",commandText:a=t,...s}=e;return n.createElement(i,s,t,n.createElement(r.Box,{position:"absolute",bottom:"8px",right:"8px"},n.createElement(c,{name:"copy",size:"small",color:"primary",onClick:(0,l.C)(a||t,{text:o})})))}},47130:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(58168),a=o(96540),r=o(83199),l=o(29217);const i=e=>function(){let{tooltipProps:t={},noWrapper:o,...i}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return i.tooltip||Object.keys(t).length?a.createElement(l.A,(0,n.A)({plain:!0,content:i.tooltip},t),o?a.createElement(e,i):a.createElement(r.Box,{"data-testid":"tooltip-box"},a.createElement(e,i))):a.createElement(e,i)}},36712:(e,t,o)=>{o.d(t,{$t:()=>k,FN:()=>A,MQ:()=>f,O0:()=>h,PE:()=>p,U2:()=>m,fn:()=>y,n$:()=>u,pZ:()=>v,td:()=>b,ue:()=>c});o(9920),o(14905),o(98992),o(3949),o(8872),o(62953);var n=o(26655),a=o(63950),r=o.n(a),l=o(49286),i=o(88116);const c={id:null,name:"",description:"",commitment:!1,pricing:[],enrolledAt:null,currentPeriodFrom:null,currentPeriodTo:null,committedNodes:0,billingEmail:"",balance:{amount:0,currency:"usd"}},s=e=>{var t;const o=i.Nw[e.class],n=(0,l.bn)(e),a=Array.isArray(n.pricing)?n.pricing.reduce(((e,t)=>({...e,[t.type]:t})),{}):{},r=null===(t=i.uC[o])||void 0===t?void 0:t[e.version];return{...c,...n,planLimitations:r,pricing:a,slug:o}},d=e=>(0,l.bn)(e),u=e=>n.A.get("/api/v2/spaces/".concat(e,"/billing/plans"),{transform:e=>{let{plans:t}=e;const o=t.reduce(((e,t)=>{const o=s(t),n=e[o.slug]||[];return"year"===o.interval?n.unshift(o):n.push(o),e[o.slug]=n,e}),{});return Object.entries(o).forEach((e=>{let[t,n]=e;const a=n.reduce(((e,t)=>{const{version:o}=t;return e[o]?e[o]=[...e[o],t]:e[o]=[t],e}),{});o[t]=a})),o}}),p=e=>n.A.get("/api/v2/spaces/".concat(e,"/billing/plan"),{allow401:!0,transform:s}),g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"update";return function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const a="update"==e?n.A.put:n.A.post;return"function"!==typeof a?r():a("/api/v2/spaces/".concat(t,"/billing/plan"),(0,l.Jz)(o),{transform:e=>{let{url:t}=e;return t}})}},f=(e,t)=>g("checkout")(e,t),b=(e,t)=>g()(e,t),v=(e,t)=>n.A.get("/api/v2/spaces/".concat(e,"/billing/portal?redirect_url=").concat(encodeURIComponent(t)),{transform:e=>{let{url:t}=e;return t}}),m=(e,t)=>{let{after:o,before:a}=t;return n.A.get("/api/v2/spaces/".concat(e,"/billing/node-count?from=").concat(o,"&to=").concat(a))},h=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.A.put("/api/v2/spaces/".concat(e,"/billing/plan/preview"),(0,l.Jz)(t),{transform:d})},y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.A.get("/api/v2/spaces/".concat(e,"/billing/plan/quote"),{transform:d,params:(0,l.Jz)(t)})},A=function(e){let{email:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.A.post("/api/v2/spaces/".concat(e,"/billing/trial"),{email:t})},k=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n.A.post("api/v2/spaces/".concat(e,"/billing/promo-code/check"),(0,l.Jz)(t))}},19673:(e,t,o)=>{o.d(t,{og:()=>R,L_:()=>I,D:()=>S,JN:()=>w,Qh:()=>x,lU:()=>v,qW:()=>y,Tr:()=>k,i5:()=>N,M4:()=>_});o(9391),o(62953);var n=o(96540),a=o(47444);const r=(0,a.eU)({key:"billingPlanCancelling",default:!1});var l=o(63950),i=o.n(l),c=o(3914),s=o(36712),d=o(88116),u=o(29848),p=o(46741),g=o(37618);const f=[],b=(0,a.K0)({key:"plans",get:e=>()=>(0,s.n$)(e)}),v=()=>{var e;const t=(0,c.vt)(),o=(0,a.xf)(b(t));return{loaded:"loading"!==o.state,value:(null===(e=o.contents)||void 0===e?void 0:e.data)||f,hasError:"hasError"===o.state}},m=(0,a.K0)({key:"previewPlan",get:e=>{let{spaceId:t,payload:o}=e;return()=>o?(0,s.O0)(t,o):Promise.resolve({data:{noRequest:!0}})},cachePolicy_UNSTABLE:{eviction:"most-recent"}}),h=e=>{var t;return d.aT[null===e||void 0===e||null===(t=e.response)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.errorMsgKey]},y=(e,t)=>{var o;const n=(0,c.vt)(),r=(0,a.xf)(m({spaceId:n,payload:e,forceFetch:t}));return{loading:"loading"===r.state,value:(null===(o=r.contents)||void 0===o?void 0:o.data)||{},promoCodeError:"hasError"===r.state?h(r.contents):void 0}},A=(0,a.K0)({key:"planQuoteSelector",get:e=>{let{spaceId:t,payload:o}=e;return()=>o?(0,s.fn)(t,o):Promise.resolve({data:{noRequest:!0}})},cachePolicy_UNSTABLE:{eviction:"most-recent"}}),k=(e,t)=>{var o;const n=(0,c.vt)(),r=(0,a.xf)(A({spaceId:n,payload:e,forceFetch:t}));return{loading:"loading"===r.state,value:(null===(o=r.contents)||void 0===o?void 0:o.data)||{},promoCodeError:"hasError"===r.state?h(r.contents):void 0}},E=(0,a.K0)({key:"currentPlan",get:e=>{let{spaceId:t,canFetchPlan:o}=e;return()=>o&&t&&!(0,g.ES)(t)?(0,s.PE)(t):Promise.resolve()}}),w=()=>{var e;const t=(0,c.vt)(),o=(0,p.JT)("billing:ReadBasic"),n=(0,a.xf)(E({spaceId:t,canFetchPlan:o})),r=(0,a.RH)(E({spaceId:t,canFetchPlan:o}));return{loaded:"loading"!==n.state,value:(null===(e=n.contents)||void 0===e?void 0:e.data)||s.ue,hasError:"hasError"===n.state,refresh:r}},x=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.href;const[t,o]=(0,n.useState)(!1),a=(0,c.vt)();return[(0,n.useCallback)((()=>{o(!0),(0,s.pZ)(a,e).then((e=>{let{data:t}=e;return location.href=t})).finally((()=>o(!1)))}),[a,e]),t]},C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.td;const t=(0,c.vt)(),o=w(),n=(0,u.ly)();return!o.loaded||o.hasError?i():a=>e(t,a).then((e=>{o.refresh(),n(),null!==e&&void 0!==e&&e.data&&(location.href=e.data)}))},I=()=>C(s.MQ),_=()=>C(),N=()=>{const e=(0,c.vt)();return t=>(0,s.FN)(e,t)},R=()=>{const[e,t]=(0,a.L4)(r);return{cancelling:e,startCancelling:(0,n.useCallback)((()=>t(!0)),[]),stopCancelling:(0,n.useCallback)((()=>t(!1)),[])}},P=(0,a.K0)({key:"couponCheck",get:e=>{let{spaceId:t,...o}=e;return()=>o.promotionCode?(0,s.$t)(t,o):Promise.resolve({})}}),S=function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o=(0,c.vt)(),n=(0,a.xf)(P({spaceId:o,...t}));return{loading:"loading"===n.state,discount:(null===(e=n.contents)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.percent_off)||0,promoCodeError:"hasError"===n.state?h(n.contents):void 0}}},6586:(e,t,o)=>{o.d(t,{A:()=>c});var n=o(58168),a=o(96540),r=o(84976),l=o(4659),i=o(3914);const c=e=>{let{children:t,...o}=e;const c=(0,i.bq)(),s="/spaces/".concat(c,"/settings/nodes");return a.createElement(l.A,(0,n.A)({as:r.N_,to:s},o),t)}},12602:(e,t,o)=>{o.d(t,{A:()=>c});var n=o(58168),a=o(96540),r=o(84976),l=o(4659),i=o(27994);const c=e=>{let{children:t,...o}=e;const{url:c}=(0,i.A)("business");return a.createElement(l.A,(0,n.A)({as:r.N_,to:c,disabled:!c},o),t)}},73865:(e,t,o)=>{o.d(t,{A:()=>c});o(62953);var n=o(96540),a=o(69418),r=o(47762),l=o(19673),i=o(93155);const c=()=>{const[,e,t]=(0,a.A)(),{loaded:o,nodes:c,hasError:s,refresh:d}=(0,r.Du)(),{loaded:u,value:p,hasError:g}=(0,l.JN)(),f=i.bO&&!(null===p||void 0===p||!p.planLimitations),{maxNodes:b=0,maxDashboards:v=0}=(null===p||void 0===p?void 0:p.planLimitations)||{},m=(0,n.useCallback)((o=>f&&!e&&t>b&&!c.includes(o)),[c,f,e,t]);return{loaded:o&&u,hasError:s||g,currentPlan:p,hasLimitations:f,maxNodes:b,maxDashboards:v,preferredNodes:c,isNodeRestricted:m,refreshPreferredNodes:d}}},27994:(e,t,o)=>{o.d(t,{A:()=>l});var n=o(96540),a=o(19673),r=o(3914);const l=e=>{const{loaded:t,value:o,hasError:l}=(0,a.JN)(),i=(0,r.bq)(),c=t&&o?o.billingEmail?"update":"checkout":"",s="/spaces/".concat(i,"/settings/billing/all-plans"),d=(0,n.useCallback)((e=>t&&o?"".concat(s,"#billingModalType=").concat(c,"&billingModalSlug=").concat(e):null),[e,i,c]),u=e?d(e):s;return{loaded:t,getUrl:d,url:u,hasError:l}}},57605:(e,t,o)=>{o.d(t,{A:()=>l});o(62953);var n=o(45467),a=o(87659),r=o(80925);const l=()=>{const[e,t]=(0,a.A)(!1),o=(0,r.e)();return(0,n.A)((()=>{if(o&&o.getRoot())return o.getRoot().updateAttribute("paused",!o.getRoot().getAttribute("autofetchOnWindowBlur")&&o.getRoot().getAttribute("blurred")||e),()=>o.getRoot().updateAttribute("paused",!o.getRoot().getAttribute("autofetchOnWindowBlur")&&o.getRoot().getAttribute("blurred"))}),[e]),t}}}]); \ No newline at end of file