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
21 KiB

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[616],{30378:function(e,r,o){var n=o(89262),t=o(40860),l=o(53138),i=o(77831);let s=(0,n.ZP)(t.Z)({backgroundColor:"transparent",borderRadius:i.n_,height:"1em",["& .".concat(l.Z.bar)]:{borderRadius:i.n_}});r.Z=s},38196:function(e,r,o){var n=o(85893),t=o(89262),l=o(53138),i=o(14440),s=o(67294),a=o(77831),c=o(30378),d=o(19562);let u=(0,t.ZP)(c.Z)({height:".4em"}),m=(0,t.ZP)(d.Z)({height:".2em"});r.Z=e=>{let{barProps:r={},thin:o,underlineProps:t,value:p}=e,{sx:h,...x}=r,g=(0,s.useMemo)(()=>"value"in p?{default:p}:p,[p]),f=(0,s.useMemo)(()=>Object.entries(g).reverse(),[g]),b=(0,s.useMemo)(()=>o?u:c.Z,[o]),Z=(0,s.useMemo)(()=>o?m:d.Z,[o]),v=(0,s.useMemo)(()=>f.map((e,r)=>{var o,n;let t,i,[c,{colour:d=a.s7,value:u}]=e,m="string"==typeof d?d:null!==(n=null===(o=Object.entries(d).reverse().find(e=>{let[r]=e;return u>=Number(r)}))||void 0===o?void 0:o[1])&&void 0!==n?n:a.s7,p="relative";return r&&(p="absolute",t=0,i="100%"),(0,s.createElement)(b,{key:"stack-bar-".concat(c),sx:{position:p,top:t,width:i,["& .".concat(l.Z.bar)]:{backgroundColor:m},...h},variant:"determinate",value:u,...x})}),[h,f,b,x]);return(0,n.jsxs)(i.Z,{position:"relative",children:[v,(0,s.createElement)(Z,t)]})}},19562:function(e,r,o){var n=o(89262),t=o(14440),l=o(77831);let i=(0,n.ZP)(t.Z)({backgroundColor:l.rr,borderRadius:l.n_,display:"block",height:"4px",position:"relative"});r.Z=i},40743:function(e,r,o){o.d(r,{CD:function(){return u},ko:function(){return x}});var n=o(85893),t=o(89262),l=o(77831),i=o(30378),s=o(19562);let a="AllocationBar",c={barOk:"".concat(a,"-barOk"),barWarning:"".concat(a,"-barWarning"),barAlert:"".concat(a,"-barAlert")},d=(0,t.ZP)("div")(()=>({["& .".concat(c.barOk)]:{backgroundColor:l.Ej},["& .".concat(c.barWarning)]:{backgroundColor:l.Wd},["& .".concat(c.barAlert)]:{backgroundColor:l.hM}}));var u=e=>{let{allocated:r}=e;return(0,n.jsxs)(d,{children:[(0,n.jsx)(i.Z,{classes:{bar:r>70?r>90?c.barAlert:c.barWarning:c.barOk},variant:"determinate",value:r}),(0,n.jsx)(s.Z,{})]})};let m="ProgressBar",p={barOk:"".concat(m,"-barOk"),barInProgress:"".concat(m,"-barInProgress")},h=(0,t.ZP)("div")(()=>({["& .".concat(p.barOk)]:{backgroundColor:l.Ej},["& .".concat(p.barInProgress)]:{backgroundColor:l.Wd}}));var x=e=>{let{progressPercentage:r}=e;return(0,n.jsxs)(h,{children:[(0,n.jsx)(i.Z,{classes:{bar:r<100?p.barInProgress:p.barOk},variant:"determinate",value:r}),(0,n.jsx)(s.Z,{})]})};o(38196)},45486:function(e,r,o){var n=o(85893),t=o(20869),l=o(10736),i=o(77831);r.Z=e=>{let{sx:r,...o}=e;return(0,n.jsx)(t.Z,{...o,sx:{color:i.s7,["&.".concat(l.Z.checked)]:{color:i.s7},...r}})}},99429:function(e,r,o){o.d(r,{D:function(){return a}});var n=o(85893),t=o(89262),l=o(34815),i=o(46778),s=o(77831);let a={blue:s.Ej,normal:s.s7,red:s.hM},c=(0,t.ZP)(l.Z)({backgroundColor:s.s7,color:s.E5,textTransform:"none","&:hover":{backgroundColor:"".concat(s.s7,"F0")},["&.".concat(i.Z.disabled)]:{backgroundColor:s.rr}}),d=(0,t.ZP)(e=>(0,n.jsx)(c,{variant:"contained",...e}))(e=>{let r,o;let{background:n="normal"}=e;return"normal"!==n&&(r=a[n],o=s.lD),{backgroundColor:r,color:o,"&:hover":{backgroundColor:"".concat(r,"F0")}}});r.Z=d},29535:function(e,r,o){var n=o(89262),t=o(59505),l=o(77831);let i=(0,n.ZP)(t.Z)({backgroundColor:l.d});r.Z=i},56903:function(e,r,o){var n=o(85893),t=o(14440),l=o(67294);let i={columnSpacing:void 0,fullWidth:!1,growFirst:!1,row:!1,rowSpacing:void 0,lg:void 0,md:void 0,sm:void 0,spacing:"1em",xl:void 0,xs:"column"},s=e=>{let{fullWidth:r,growFirst:o,lg:s=i.lg,md:a=i.md,row:c,sm:d=i.sm,spacing:u=i.spacing,sx:m,xl:p=i.xl,xs:h=i.xs,columnSpacing:x=u,rowSpacing:g=u,...f}=e,b=(0,l.useMemo)(()=>c?"row":h,[h,c]),Z=(0,l.useMemo)(()=>d||b,[d,b]),v=(0,l.useMemo)(()=>a||Z,[a,Z]),j=(0,l.useMemo)(()=>s||v,[s,v]),y=(0,l.useMemo)(()=>p||j,[p,j]),k=(0,l.useMemo)(()=>({column:{alignItems:"normal",marginLeft:0,marginTop:x},row:{alignItems:"center",marginLeft:g,marginTop:0}}),[x,g]),w=(0,l.useMemo)(()=>o?1:void 0,[o]),C=(0,l.useMemo)(()=>r?"100%":void 0,[r]);return(0,n.jsx)(t.Z,{...f,sx:{alignItems:{xs: