Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
31 KiB

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[405],{5301:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return t(4990)}])},9297:function(e,n,t){"use strict";t.d(n,{C:function(){return h},k:function(){return m}});var r=t(5893),o=t(1458),a=t(1496),i=t(7169),c=(0,a.ZP)(o.Z)({height:"1em",borderRadius:i.n_,backgroundColor:i.v9});function s(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var d="AllocationBar",l={barOk:"".concat(d,"-barOk"),barWarning:"".concat(d,"-barWarning"),barAlert:"".concat(d,"-barAlert"),underline:"".concat(d,"-underline")},u=(0,a.ZP)("div")((function(){var e;return s(e={},"& .".concat(l.barOk),{backgroundColor:i.Ej}),s(e,"& .".concat(l.barWarning),{backgroundColor:i.Wd}),s(e,"& .".concat(l.barAlert),{backgroundColor:i.hM}),s(e,"& .".concat(l.underline),{borderRadius:i.n_}),e})),h=function(e){var n=e.allocated;return(0,r.jsxs)(u,{children:[(0,r.jsx)(c,{classes:{bar:n>70?n>90?l.barAlert:l.barWarning:l.barOk},variant:"determinate",value:n}),(0,r.jsx)(o.Z,{className:l.underline,variant:"determinate",value:0})]})};function f(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var x="ProgressBar",g={barOk:"".concat(x,"-barOk"),barInProgress:"".concat(x,"-barInProgress"),underline:"".concat(x,"-underline")},v=(0,a.ZP)("div")((function(){var e;return f(e={},"& .".concat(g.barOk),{backgroundColor:i.Ej}),f(e,"& .".concat(g.barInProgress),{backgroundColor:i.Wd}),f(e,"& .".concat(g.underline),{borderRadius:i.n_}),e})),m=function(e){var n=e.progressPercentage;return(0,r.jsxs)(v,{children:[(0,r.jsx)(c,{classes:{bar:n<100?g.barInProgress:g.barOk},variant:"determinate",value:n}),(0,r.jsx)(o.Z,{className:g.underline,variant:"determinate",value:0})]})}},1706:function(e,n,t){"use strict";t.d(n,{Z:function(){return i}});var r=t(1496),o=t(3946),a=t(7169),i=(0,r.ZP)(o.Z)({borderRadius:a.n_,backgroundColor:a.s7,"&:hover":{backgroundColor:a.lD},color:a.E5})},1200:function(e,n){"use strict";function t(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"===typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}n.Z=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return fetch.apply(void 0,r(n)).then((function(e){return e.json()}))}},1905:function(e,n,t){"use strict";var r=t(2515),o=t(1200);n.Z=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.refreshInterval,a=void 0===t?5e3:t,i=n.onSuccess,c=(0,r.ZP)(e,o.Z,{refreshInterval:a,onSuccess:i}),s=c.data,d=c.error;return{data:s,isLoading:!d&&!s,isError:d}}},8336:function(e,n){"use strict";n.Z=function(e,n){return fetch(e,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})}},4990:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return hn}});var r=t(5893),o=t(9008),a=t(7357),i=t(1496),c=t(9203),s=t(1905),d=t(7294),l=t(3366),u=t(7462),h=t(6010),f=t(7192),x=t(1796),g=t(8216),v=t(1964),m=t(7623),p=t(9632);const b=["className","color","edge","size","sx"],j=(0,i.ZP)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,t.edge&&n[`edge${(0,g.Z)(t.edge)}`],n[`size${(0,g.Z)(t.size)}`]]}})((({ownerState:e})=>(0,u.Z)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,vertic