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 lines
60 KiB

(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[750],{29685:function(t,s,e){"use strict";e.d(s,{formControlClasses:function(){return H.formControlClasses},outlinedInputClasses:function(){return tB.outlinedInputClasses}});var n=e(47959);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}});var o=e(37703);e.o(o,"formControlClasses")&&e.d(s,{formControlClasses:function(){return o.formControlClasses}}),e.o(o,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}});var l=e(59708);e.o(l,"formControlClasses")&&e.d(s,{formControlClasses:function(){return l.formControlClasses}}),e.o(l,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return l.outlinedInputClasses}});var u=e(16058);e.o(u,"formControlClasses")&&e.d(s,{formControlClasses:function(){return u.formControlClasses}}),e.o(u,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return u.outlinedInputClasses}});var r=e(28796);e.o(r,"formControlClasses")&&e.d(s,{formControlClasses:function(){return r.formControlClasses}}),e.o(r,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return r.outlinedInputClasses}});var i=e(70061);e.o(i,"formControlClasses")&&e.d(s,{formControlClasses:function(){return i.formControlClasses}}),e.o(i,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return i.outlinedInputClasses}});var a=e(36950);e.o(a,"formControlClasses")&&e.d(s,{formControlClasses:function(){return a.formControlClasses}}),e.o(a,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return a.outlinedInputClasses}});var d=e(9947);e.o(d,"formControlClasses")&&e.d(s,{formControlClasses:function(){return d.formControlClasses}}),e.o(d,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return d.outlinedInputClasses}});var C=e(6761);e.o(C,"formControlClasses")&&e.d(s,{formControlClasses:function(){return C.formControlClasses}}),e.o(C,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return C.outlinedInputClasses}});var c=e(17276);e.o(c,"formControlClasses")&&e.d(s,{formControlClasses:function(){return c.formControlClasses}}),e.o(c,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return c.outlinedInputClasses}});var p=e(53704);e.o(p,"formControlClasses")&&e.d(s,{formControlClasses:function(){return p.formControlClasses}}),e.o(p,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return p.outlinedInputClasses}});var f=e(48982);e.o(f,"formControlClasses")&&e.d(s,{formControlClasses:function(){return f.formControlClasses}}),e.o(f,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return f.outlinedInputClasses}});var I=e(44343);e.o(I,"formControlClasses")&&e.d(s,{formControlClasses:function(){return I.formControlClasses}}),e.o(I,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return I.outlinedInputClasses}});var m=e(8267);e.o(m,"formControlClasses")&&e.d(s,{formControlClasses:function(){return m.formControlClasses}}),e.o(m,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return m.outlinedInputClasses}});var v=e(17091);e.o(v,"formControlClasses")&&e.d(s,{formControlClasses:function(){return v.formControlClasses}}),e.o(v,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return v.outlinedInputClasses}});var h=e(90842);e.o(h,"formControlClasses")&&e.d(s,{formControlClasses:function(){return h.formControlClasses}}),e.o(h,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return h.outlinedInputClasses}});var g=e(44044);e.o(g,"formControlClasses")&&e.d(s,{formControlClasses:function(){return g.formControlClasses}}),e.o(g,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return g.outlinedInputClasses}});var x=e(91687);e.o(x,"formControlClasses")&&e.d(s,{formControlClasses:function(){return x.formControlClasses}}),e.o(x,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return x.outlinedInputClasses}});var S=e(2117);e.o(S,"formControlClasses")&&e.d(s,{formControlClasses:function(){return S.formControlClasses}}),e.o(S,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return S.outlinedInputClasses}});var U=e(90287);e.o(U,"formControlClasses")&&e.d(s,{formControlClasses:function(){return U.formControlClasses}}),e.o(U,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return U.outlinedInputClasses}});var b=e(21897);e.o(b,"formControlClasses")&&e.d(s,{formControlClasses:function(){return b.formControlClasses}}),e.o(b,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return b.outlinedInputClasses}});var D=e(60200);e.o(D,"formControlClasses")&&e.d(s,{formControlClasses:function(){return D.formControlClasses}}),e.o(D,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return D.outlinedInputClasses}});var y=e(51791);e.o(y,"formControlClasses")&&e.d(s,{formControlClasses:function(){return y.formControlClasses}}),e.o(y,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return y.outlinedInputClasses}});var j=e(1536);e.o(j,"formControlClasses")&&e.d(s,{formControlClasses:function(){return j.formControlClasses}}),e.o(j,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return j.outlinedInputClasses}});var P=e(26088);e.o(P,"formControlClasses")&&e.d(s,{formControlClasses:function(){return P.formControlClasses}}),e.o(P,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return P.outlinedInputClasses}});var _=e(40324);e.o(_,"formControlClasses")&&e.d(s,{formControlClasses:function(){return _.formControlClasses}}),e.o(_,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return _.outlinedInputClasses}});var B=e(36723);e.o(B,"formControlClasses")&&e.d(s,{formControlClasses:function(){return B.formControlClasses}}),e.o(B,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return B.outlinedInputClasses}});var M=e(98038);e.o(M,"formControlClasses")&&e.d(s,{formControlClasses:function(){return M.formControlClasses}}),e.o(M,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return M.outlinedInputClasses}});var k=e(70074);e.o(k,"formControlClasses")&&e.d(s,{formControlClasses:function(){return k.formControlClasses}}),e.o(k,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return k.outlinedInputClasses}});var z=e(27681);e.o(z,"formControlClasses")&&e.d(s,{formControlClasses:function(){return z.formControlClasses}}),e.o(z,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return z.outlinedInputClasses}});var G=e(15329);e.o(G,"formControlClasses")&&e.d(s,{formControlClasses:function(){return G.formControlClasses}}),e.o(G,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return G.outlinedInputClasses}});var A=e(22158);e.o(A,"formControlClasses")&&e.d(s,{formControlClasses:function(){return A.formControlClasses}}),e.o(A,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return A.outlinedInputClasses}});var Z=e(91907);e.o(Z,"formControlClasses")&&e.d(s,{formControlClasses:function(){return Z.formControlClasses}}),e.o(Z,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return Z.outlinedInputClasses}});var F=e(89909);e.o(F,"formControlClasses")&&e.d(s,{formControlClasses:function(){return F.formControlClasses}}),e.o(F,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return F.outlinedInputClasses}});var T=e(11594);e.o(T,"formControlClasses")&&e.d(s,{formControlClasses:function(){return T.formControlClasses}}),e.o(T,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return T.outlinedInputClasses}});var O=e(39101);e.o(O,"formControlClasses")&&e.d(s,{formControlClasses:function(){return O.formControlClasses}}),e.o(O,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return O.outlinedInputClasses}});var w=e(73498);e.o(w,"formControlClasses")&&e.d(s,{formControlClasses:function(){return w.formControlClasses}}),e.o(w,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return w.outlinedInputClasses}});var N=e(7659);e.o(N,"formControlClasses")&&e.d(s,{formControlClasses:function(){return N.formControlClasses}}),e.o(N,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return N.outlinedInputClasses}});var V=e(40373);e.o(V,"formControlClasses")&&e.d(s,{formControlClasses:function(){return V.formControlClasses}}),e.o(V,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return V.outlinedInputClasses}});var L=e(64716);e.o(L,"formControlClasses")&&e.d(s,{formControlClasses:function(){return L.formControlClasses}}),e.o(L,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return L.outlinedInputClasses}});var Q=e(49205);e.o(Q,"formControlClasses")&&e.d(s,{formControlClasses:function(){return Q.formControlClasses}}),e.o(Q,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return Q.outlinedInputClasses}});var R=e(54878);e.o(R,"formControlClasses")&&e.d(s,{formControlClasses:function(){return R.formControlClasses}}),e.o(R,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return R.outlinedInputClasses}});var E=e(53318);e.o(E,"formControlClasses")&&e.d(s,{formControlClasses:function(){return E.formControlClasses}}),e.o(E,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return E.outlinedInputClasses}});var q=e(21489);e.o(q,"formControlClasses")&&e.d(s,{formControlClasses:function(){return q.formControlClasses}}),e.o(q,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return q.outlinedInputClasses}});var W=e(17812);e.o(W,"formControlClasses")&&e.d(s,{formControlClasses:function(){return W.formControlClasses}}),e.o(W,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return W.outlinedInputClasses}});var H=e(46341);e.o(H,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return H.outlinedInputClasses}});var Y=e(82749);e.o(Y,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return Y.outlinedInputClasses}});var J=e(6372);e.o(J,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return J.outlinedInputClasses}});var K=e(20358);e.o(K,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return K.outlinedInputClasses}});var X=e(46526);e.o(X,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return X.outlinedInputClasses}});var $=e(67499);e.o($,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return $.outlinedInputClasses}});var tt=e(43844);e.o(tt,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tt.outlinedInputClasses}});var ts=e(69827);e.o(ts,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return ts.outlinedInputClasses}});var te=e(81662);e.o(te,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return te.outlinedInputClasses}});var tn=e(44954);e.o(tn,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tn.outlinedInputClasses}});var to=e(42368);e.o(to,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return to.outlinedInputClasses}});var tl=e(72157);e.o(tl,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tl.outlinedInputClasses}});var tu=e(79134);e.o(tu,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tu.outlinedInputClasses}});var tr=e(97095);e.o(tr,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tr.outlinedInputClasses}});var ti=e(69979);e.o(ti,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return ti.outlinedInputClasses}});var ta=e(20436);e.o(ta,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return ta.outlinedInputClasses}});var td=e(23924);e.o(td,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return td.outlinedInputClasses}});var tC=e(8658);e.o(tC,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tC.outlinedInputClasses}});var tc=e(89011);e.o(tc,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tc.outlinedInputClasses}});var tp=e(23368);e.o(tp,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tp.outlinedInputClasses}});var tf=e(1534);e.o(tf,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tf.outlinedInputClasses}});var tI=e(58160);e.o(tI,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tI.outlinedInputClasses}});var tm=e(26504);e.o(tm,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tm.outlinedInputClasses}});var tv=e(23625);e.o(tv,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tv.outlinedInputClasses}});var th=e(99355);e.o(th,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return th.outlinedInputClasses}});var tg=e(58420);e.o(tg,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tg.outlinedInputClasses}});var tx=e(85746);e.o(tx,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tx.outlinedInputClasses}});var tS=e(26010);e.o(tS,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tS.outlinedInputClasses}});var tU=e(21883);e.o(tU,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tU.outlinedInputClasses}});var tb=e(92663);e.o(tb,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tb.outlinedInputClasses}});var tD=e(64301);e.o(tD,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tD.outlinedInputClasses}});var ty=e(46025);e.o(ty,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return ty.outlinedInputClasses}});var tj=e(91641);e.o(tj,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tj.outlinedInputClasses}});var tP=e(43263);e.o(tP,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return tP.outlinedInputClasses}});var t_=e(93820);e.o(t_,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return t_.outlinedInputClasses}});var tB=e(79997)},52563:function(){},59708:function(t,s,e){"use strict";var n=e(52563);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},11491:function(){},16058:function(t,s,e){"use strict";var n=e(11491);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},32387:function(){},28796:function(t,s,e){"use strict";var n=e(32387);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},59711:function(){},70061:function(t,s,e){"use strict";var n=e(59711);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},51334:function(){},36950:function(t,s,e){"use strict";var n=e(51334);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},50568:function(){},9947:function(t,s,e){"use strict";var n=e(50568);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},15016:function(){},6761:function(t,s,e){"use strict";var n=e(15016);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},9249:function(){},17276:function(t,s,e){"use strict";var n=e(9249);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},39249:function(){},53704:function(t,s,e){"use strict";var n=e(39249);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},25285:function(){},48982:function(t,s,e){"use strict";var n=e(25285);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},32464:function(){},44343:function(t,s,e){"use strict";var n=e(32464);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},13272:function(){},8267:function(t,s,e){"use strict";var n=e(13272);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},32218:function(){},17091:function(t,s,e){"use strict";var n=e(32218);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},13368:function(){},90842:function(t,s,e){"use strict";var n=e(13368);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},9812:function(){},44044:function(t,s,e){"use strict";var n=e(9812);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},4871:function(){},91687:function(t,s,e){"use strict";var n=e(4871);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},8931:function(){},2117:function(t,s,e){"use strict";var n=e(8931);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},95171:function(){},90287:function(t,s,e){"use strict";var n=e(95171);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}});var o=e(17321);e.o(o,"formControlClasses")&&e.d(s,{formControlClasses:function(){return o.formControlClasses}}),e.o(o,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}})},17321:function(){},83299:function(){},21897:function(t,s,e){"use strict";var n=e(83299);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},57285:function(){},60200:function(t,s,e){"use strict";var n=e(57285);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},25793:function(){},51791:function(t,s,e){"use strict";var n=e(25793);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},57423:function(){},1536:function(t,s,e){"use strict";var n=e(57423);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},17911:function(){},26088:function(t,s,e){"use strict";var n=e(17911);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},45783:function(){},40324:function(t,s,e){"use strict";var n=e(45783);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},86039:function(){},36723:function(t,s,e){"use strict";var n=e(86039);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},10795:function(){},98038:function(t,s,e){"use strict";var n=e(10795);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},84725:function(){},70074:function(t,s,e){"use strict";var n=e(84725);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},35672:function(){},27681:function(t,s,e){"use strict";var n=e(35672);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},15329:function(){},13237:function(){},22158:function(t,s,e){"use strict";var n=e(13237);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},73829:function(){},91907:function(t,s,e){"use strict";var n=e(73829);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},89909:function(){},27802:function(){},39101:function(t,s,e){"use strict";var n=e(27802);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},58635:function(){},73498:function(t,s,e){"use strict";var n=e(58635);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},52307:function(){},7659:function(t,s,e){"use strict";var n=e(52307);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},10028:function(){},40373:function(t,s,e){"use strict";var n=e(10028);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},41624:function(){},64716:function(t,s,e){"use strict";var n=e(41624);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},73431:function(){},49205:function(t,s,e){"use strict";var n=e(73431);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},12495:function(){},54878:function(t,s,e){"use strict";var n=e(12495);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},67358:function(){},53318:function(t,s,e){"use strict";var n=e(67358);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},21489:function(){},15813:function(){},17812:function(t,s,e){"use strict";var n=e(15813);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},46341:function(t,s,e){"use strict";e.d(s,{formControlClasses:function(){return n.Z}});var n=e(47120),o=e(22018);e.o(o,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}})},85173:function(){},82749:function(t,s,e){"use strict";var n=e(85173);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},33600:function(){},6372:function(t,s,e){"use strict";var n=e(33600);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},21630:function(){},20358:function(t,s,e){"use strict";var n=e(21630);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},16962:function(){},48108:function(){},46526:function(t,s,e){"use strict";var n=e(16962);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}});var o=e(48108);e.o(o,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}})},24632:function(){},67499:function(t,s,e){"use strict";var n=e(24632);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},69827:function(){},81662:function(){},30720:function(){},44954:function(t,s,e){"use strict";var n=e(30720);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},30330:function(){},42368:function(t,s,e){"use strict";var n=e(30330);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},40947:function(){},72157:function(t,s,e){"use strict";var n=e(40947);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},16145:function(){},79134:function(t,s,e){"use strict";var n=e(16145);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},42426:function(){},97095:function(t,s,e){"use strict";var n=e(42426);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},69979:function(t,s,e){"use strict";var n=e(35552);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},35552:function(){},20436:function(t,s,e){"use strict";var n=e(46722);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},46722:function(){},23924:function(t,s,e){"use strict";var n=e(58680);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},58680:function(){},8658:function(t,s,e){"use strict";var n=e(97681);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},97681:function(){},89011:function(t,s,e){"use strict";var n=e(615);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},615:function(){},23368:function(t,s,e){"use strict";var n=e(98403);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},98403:function(){},1534:function(t,s,e){"use strict";var n=e(66826);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},66826:function(){},58160:function(t,s,e){"use strict";var n=e(80775);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},80775:function(){},26504:function(t,s,e){"use strict";var n=e(15979);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},15979:function(){},23625:function(t,s,e){"use strict";var n=e(14132);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},14132:function(){},99355:function(t,s,e){"use strict";var n=e(19382);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},19382:function(){},58420:function(t,s,e){"use strict";var n=e(93396);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},93396:function(){},85746:function(t,s,e){"use strict";var n=e(80984);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},80984:function(){},26010:function(t,s,e){"use strict";var n=e(80748);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},80748:function(){},21883:function(t,s,e){"use strict";var n=e(33105);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},33105:function(){},92663:function(t,s,e){"use strict";var n=e(66818);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},66818:function(){},64301:function(){},46025:function(t,s,e){"use strict";var n=e(48560);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},48560:function(){},91641:function(t,s,e){"use strict";var n=e(26978);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},26978:function(){},43263:function(t,s,e){"use strict";var n=e(18594);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},18594:function(){},93820:function(){},79997:function(t,s,e){"use strict";e.d(s,{outlinedInputClasses:function(){return n.Z}});var n=e(54656)},68269:function(){},97426:function(){},43844:function(t,s,e){"use strict";var n=e(68269);e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}});var o=e(97426);e.o(o,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return o.outlinedInputClasses}})},11594:function(){},22995:function(){},47959:function(t,s,e){"use strict";var n=e(22995);e.o(n,"formControlClasses")&&e.d(s,{formControlClasses:function(){return n.formControlClasses}}),e.o(n,"outlinedInputClasses")&&e.d(s,{outlinedInputClasses:function(){return n.outlinedInputClasses}})},37703:function(){},22018:function(){},88750:function(t,s,e){"use strict";let n,o;e.d(s,{Z:function(){return components_ProvisionServerDialog}});var l=e(85893),u=e(67294),r=e(5616),i=e(48263),a=e(78262),d=e(50594),C=e(25934),c=e(6010),p=e(67645),f=e(89712),I=e(56597),m=e(19467),v=e(55238),h=e(56746),g=e(83221),x=e(68917),S=e(55675),U=e(29685),b=e(35797),D=e(52886);let y={inputWithLabelProps:{},messageBoxProps:{},selectWithLabelProps:{}},OutlinedLabeledInputWithSelect=t=>{let{id:s,label:e,inputWithLabelProps:n=y.inputWithLabelProps,messageBoxProps:o=y.messageBoxProps,selectItems:u,selectWithLabelProps:i=y.selectWithLabelProps}=t;return(0,l.jsxs)(r.Z,{children:[(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"row","& > :first-child":{flexGrow:1},"& > :not(:last-child)":{marginRight:".5em"},["&:hover\n .".concat(U.formControlClasses.root,"\n .").concat(U.outlinedInputClasses.root,"\n .").concat(U.outlinedInputClasses.notchedOutline)]:{borderColor:c.s7}},children:[(0,l.jsx)(S.Z,{id:s,label:e,...n}),(0,l.jsx)(D.Z,{formControlProps:{fullWidth:!1,sx:{minWidth:"min-content"}},id:"".concat(s,"-nested-select"),selectItems:u,...i})]}),(0,l.jsx)(b.Z,{...o})]})};OutlinedLabeledInputWithSelect.defaultProps=y;var j=e(37260),P=e(81796),_=e(50233),B=e(84154);let M=BigInt(0),k=[{value:"B"},{value:"KiB"},{value:"MiB"},{value:"GiB"},{value:"TiB"}],z=BigInt(65536),G=BigInt(104857600),A={backgroundColor:c.Ej,color:c.lD,"&:hover":{backgroundColor:c.Ej}},createMaxValueButton=(t,s)=>{let{onButtonClick:e}=s;return(0,l.jsx)(m.Z,{disabled:void 0===e,onClick:e,sx:{minWidth:"unset",whiteSpace:"nowrap"},children:"Max: ".concat(t)})},createSelectItemDisplay=function(){let{endAdornment:t,mainLabel:s,subLabel:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,l.jsxs)(r.Z,{sx:{alignItems:"center",display:"flex",flexDirection:"row",width:"100%","& > :first-child":{flexGrow:1}},children:[(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column"},children:[s&&(0,l.jsx)(B.Ac,{inverted:!0,text:s}),e&&(0,l.jsx)(B.Ac,{inverted:!0,text:e})]}),t]})},organizeAnvils=t=>{let s={},e=t.reduce((t,e)=>{let{anvilUUID:n,anvilName:o,anvilTotalMemory:u,anvilTotalAllocatedMemory:i,anvilTotalAvailableMemory:a,hosts:d,servers:C,storageGroups:c,files:p}=e,{anvilStorageGroups:f,anvilStorageGroupUUIDs:I}=c.reduce((s,e)=>{let u={...e,anvilUUID:n,anvilName:o,storageGroupSize:BigInt(e.storageGroupSize),storageGroupFree:BigInt(e.storageGroupFree),humanizedStorageGroupFree:""};return(0,h.Bh)(e.storageGroupFree,{fromUnit:"B",onSuccess:{string:(t,s)=>{u.humanizedStorageGroupFree="".concat(t," ").concat(s)}},precision:0,toUnit:"ibyte"}),s.anvilStorageGroupUUIDs.push(e.storageGroupUUID),s.anvilStorageGroups.push(u),t.storageGroups.push(u),t.storageGroupSelectItems.push({displayValue:createSelectItemDisplay({endAdornment:(0,l.jsx)(B.Ac,{inverted:!0,text:"~".concat(u.humanizedStorageGroupFree," free")}),mainLabel:e.storageGroupName,subLabel:o}),value:e.storageGroupUUID}),t.storageGroupUUIDMapToData[e.storageGroupUUID]=u,s},{anvilStorageGroups:[],anvilStorageGroupUUIDs:[]}),m=[];p.forEach(t=>{let{fileUUID:e}=t;m.push(e),s[e]=t});let v={...e,anvilTotalMemory:BigInt(u),anvilTotalAllocatedMemory:BigInt(i),anvilTotalAvailableMemory:BigInt(a),humanizedAnvilTotalAvailableMemory:"",hosts:d.map(t=>({...t,hostMemory:BigInt(t.hostMemory)})),servers:C.map(s=>{let{serverMemory:e,serverName:n,...o}=s,l={...o,serverMemory:BigInt(e),serverName:n};return t.serverNameMapToData[n]=l,l}),storageGroupUUIDs:I,storageGroups:f,fileUUIDs:m};return(0,h.Bh)(a,{fromUnit:"B",onSuccess:{string:(t,s)=>{v.humanizedAnvilTotalAvailableMemory="".concat(t," ").concat(s)}},precision:0,toUnit:"ibyte"}),t.anvils.push(v),t.anvilSelectItems.push({displayValue:createSelectItemDisplay({endAdornment:(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",width:"8rem"},children:[(0,l.jsx)(B.Ac,{inverted:!0,text:"CPU: ".concat(v.anvilTotalCPUCores," cores")}),(0,l.jsx)(B.Ac,{inverted:!0,text:"Memory: ~".concat(v.humanizedAnvilTotalAvailableMemory)})]}),mainLabel:v.anvilName,subLabel:v.anvilDescription}),value:n}),t.anvilUUIDMapToData[n]=v,t},{anvils:[],anvilSelectItems:[],anvilUUIDMapToData:{},files:[],fileSelectItems:[],fileUUIDMapToData:{},serverNameMapToData:{},storageGroups:[],storageGroupSelectItems:[],storageGroupUUIDMapToData:{}});return Object.values(s).forEach(t=>{e.files.push(t),e.fileSelectItems.push({displayValue:t.fileName,value:t.fileUUID}),e.fileUUIDMapToData[t.fileUUID]=t}),e},filterAnvils=function(t,s,e,n,o,l,u){let{includeAnvilUUIDs:r=[],includeFileUUIDs:i=[],includeStorageGroupUUIDs:a=[]}=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},testIncludeAnvil=()=>!0,testIncludeFile=()=>!0,testIncludeStorageGroup=()=>!0;r.length>0&&(testIncludeAnvil=t=>r.includes(t)),i.length>0&&(testIncludeFile=t=>i.includes(t)),a.length>0&&(testIncludeStorageGroup=t=>a.includes(t));let d={},C=l.reduce((t,s,e)=>{var n;let l=null!==(n=o[e])&&void 0!==n?n:M;return t.all+=l,""===s||(void 0===t[s]&&(t[s]=M),t[s]+=l),t},{all:M}),c=t.reduce((t,r)=>{let{anvilUUID:i}=r;if(testIncludeAnvil(i)){let{anvilTotalCPUCores:a,anvilTotalAvailableMemory:c,files:p,fileUUIDs:f,storageGroups:I}=r,m=[],v=M,h=M;I.forEach(t=>{let{storageGroupUUID:s,storageGroupFree:e}=t;testIncludeStorageGroup(s)&&(m.push(s),h+=e,e>v&&(v=e))});let g=[()=>I.length>0,()=>e<=a,()=>n<=c,()=>l.every((t,e)=>{var n;let l=null!==(n=o[e])&&void 0!==n?n:M,u=!0,r=l<=v;return""!==t&&(u=m.includes(t),r=l<=s[t].storageGroupFree),u&&r}),()=>Object.entries(C).every(t=>{let[e,n]=t;return"all"===e?n<=h:n<=s[e].storageGroupFree}),()=>u.every(t=>""===t||f.includes(t))];g.every(t=>t())&&(t.anvils.push(r),t.anvilUUIDs.push(i),t.maxCPUCores=Math.max(a,t.maxCPUCores),c>t.maxMemory&&(t.maxMemory=c),p.forEach(t=>{let{fileUUID:s}=t;testIncludeFile(s)&&(d[s]=!0)}),t.storageGroupUUIDs.push(...m),t.maxVirtualDiskSizes.fill(v))}return t},{anvils:[],anvilUUIDs:[],fileUUIDs:[],maxCPUCores:0,maxMemory:M,maxVirtualDiskSizes:l.map(()=>M),storageGroupUUIDs:[]});return c.fileUUIDs=Object.keys(d),l.forEach((t,e)=>{""!==t&&(c.maxVirtualDiskSizes[e]=s[t].storageGroupFree)}),c},createVirtualDiskForm=(t,s,e,n,o,u,i,a)=>{let get=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;return t[e][n]},set=function(n,o){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s;t[n][l]=o,e({...t})},changeVDSize=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:M;set("sizes",e);let{formattedMaxVDSizes:n,maxVirtualDiskSizes:o}=u({virtualDisks:t});a({inputs:{["vd".concat(s,"Size")]:{displayMax:"".concat(n[s]),max:o[s],value:e}}})},handleVDSizeChange=t=>{let{value:s=get("inputSizes"),unit:e=get("inputUnits")}=t;s!==get("inputSizes")&&set("inputSizes",s),e!==get("inputUnits")&&set("inputUnits",e),(0,h.KY)(s,e,t=>changeVDSize(t),()=>changeVDSize())},handleVDStorageGroupChange=function(){let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:get("inputStorageGroupUUIDs");s!==get("inputStorageGroupUUIDs")&&set("inputStorageGroupUUIDs",s),u({virtualDisks:t})};return(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,l.jsx)(r.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,l.jsx)(OutlinedLabeledInputWithSelect,{id:"ps-virtual-disk-size-".concat(s),label:"Disk size",messageBoxProps:get("inputSizeMessages"),inputWithLabelProps:{inputProps:{endAdornment:createMaxValueButton("".concat(get("inputMaxes")," ").concat(get("inputUnits")),{onButtonClick:()=>{set("inputSizes",get("inputMaxes")),changeVDSize(get("maxes"))}}),onChange:t=>{let{target:{value:s}}=t;handleVDSizeChange({value:s})},type:"number",value:get("inputSizes")},inputLabelProps:{isNotifyRequired:get("sizes")===M}},selectItems:k,selectWithLabelProps:{selectProps:{onChange:t=>{let{target:{value:s}}=t;handleVDSizeChange({unit:s})},value:get("inputUnits")}}})}),(0,l.jsx)(r.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,l.jsx)(D.Z,{id:"ps-storage-group-".concat(s),label:"Storage group",disableItem:t=>!(o.includes(t)&&get("sizes")<=i[t].storageGroupFree),inputLabelProps:{isNotifyRequired:0===get("inputStorageGroupUUIDs").length},messageBoxProps:get("inputStorageGroupUUIDMessages"),selectItems:n,selectProps:{onChange:t=>{let{target:{value:s}}=t;handleVDStorageGroupChange(s)},onClearIndicatorClick:()=>handleVDStorageGroupChange(""),renderValue:t=>{var s;let{anvilName:e="?",storageGroupName:n="Unknown (".concat(t,")")}=null!==(s=i[t])&&void 0!==s?s:{};return"".concat(n," (").concat(e,")")},value:get("inputStorageGroupUUIDs")}})})]},"ps-virtual-disk-".concat(get("stateIds")))},addVirtualDisk=function(){let{existingVirtualDisks:t={stateIds:[],inputMaxes:[],inputSizeMessages:[],inputSizes:[],inputStorageGroupUUIDMessages:[],inputStorageGroupUUIDs:[],inputUnits:[],maxes:[],sizes:[]},stateId:s=(0,C.Z)(),inputMax:e="0",inputSize:n="",inputSizeMessage:o,inputStorageGroupUUID:l="",inputStorageGroupUUIDMessage:u,inputUnit:r="GiB",max:i=M,setVirtualDisks:a,size:d=M}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stateIds:c,inputMaxes:p,inputSizeMessages:f,inputSizes:I,inputStorageGroupUUIDMessages:m,inputStorageGroupUUIDs:v,inputUnits:h,maxes:g,sizes:x}=t;return c.push(s),p.push(e),f.push(o),I.push(n),m.push(u),v.push(l),h.push(r),g.push(i),x.push(d),null==a||a.call(null,{...t}),t},filterBlanks=t=>t.filter(t=>""!==t),getDisplayDsizeOptions=t=>({fromUnit:"B",onSuccess:{string:t},precision:0,toUnit:"ibyte"});(0,h.Bh)(z,getDisplayDsizeOptions((t,s)=>{n="".concat(t," ").concat(s)})),(0,h.Bh)(G,getDisplayDsizeOptions((t,s)=>{o="".concat(t," ").concat(s)}));var components_ProvisionServerDialog=t=>{let{dialogProps:{open:s},onClose:e}=t,[C,U]=(0,u.useState)([]),[b,y]=(0,u.useState)({}),[Z,F]=(0,u.useState)({}),[T,O]=(0,u.useState)({}),[w,N]=(0,u.useState)({}),[V,L]=(0,u.useState)([]),[Q,R]=(0,u.useState)([]),[E,q]=(0,u.useState)([]),[W,H]=(0,u.useState)([]),[Y,J]=(0,u.useState)(""),[K,X]=(0,u.useState)(),[$,tt]=(0,u.useState)(1),[ts,te]=(0,u.useState)(0),[tn,to]=(0,u.useState)(),[tl,tu]=(0,u.useState)(M),[tr,ti]=(0,u.useState)(M),[ta,td]=(0,u.useState)(),[tC,tc]=(0,u.useState)("0"),[tp,tf]=(0,u.useState)(""),[tI,tm]=(0,u.useState)("GiB"),[tv,th]=(0,u.useState)(addVirtualDisk()),[tg,tx]=(0,u.useState)(""),[tS,tU]=(0,u.useState)(),[tb,tD]=(0,u.useState)(""),[ty]=(0,u.useState)(),[tj,tP]=(0,u.useState)(""),[t_,tB]=(0,u.useState)(),[tM,tk]=(0,u.useState)(null),[tz,tG]=(0,u.useState)(),[tA,tZ]=(0,u.useState)([]),[tF,tT]=(0,u.useState)([]),[tO,tw]=(0,u.useState)([]),[tN,tV]=(0,u.useState)(!1),[tL,tQ]=(0,u.useState)(!1),[tR,tE]=(0,u.useState)(!1),[tq,tW]=(0,u.useState)(0),tH=(0,u.useMemo)(()=>{let t=[];for(let s=1;s<=ts;s+=1)t.push(s);return t},[ts]),tY={serverName:{defaults:{onSuccess:()=>{X(void 0)},value:Y},isRequired:!0,tests:[{onFailure:()=>{X({text:"The server name length must be 1 to 16 characters.",type:"warning"})},test:t=>{let{value:s}=t,{length:e}=s;return e>=1&&e<=16}},{onFailure:()=>{X({text:"The server name is expected to only contain alphanumeric, hyphen, or underscore characters.",type:"warning"})},test:t=>{let{value:s}=t;return/^[a-zA-Z0-9_-]+$/.test(s)}},{onFailure:()=>{X({text:"This server name already exists, please choose another name.",type:"warning"})},test:t=>{let{value:s}=t;return void 0===T[s]}}]},cpuCores:{defaults:{max:ts,min:1,onSuccess:()=>{to(void 0)},value:$},isRequired:!0,tests:[{onFailure:()=>{to({text:"Non available.",type:"warning"})},test:_.X7},{onFailure:t=>{let{displayMax:s,displayMin:e}=t;to({text:"The number of CPU cores is expected to be between ".concat(e," and ").concat(s,"."),type:"warning"})},test:_.SQ}]},memory:{defaults:{displayMax:"".concat(tC," ").concat(tI),displayMin:n,max:tr,min:z,onSuccess:()=>{td(void 0)},value:tl},isRequired:!0,tests:[{onFailure:()=>{td({text:"Non available.",type:"warning"})},test:_.X7},{onFailure:t=>{let{displayMax:s,displayMin:e}=t;td({text:"Memory is expected to be between ".concat(e," and ").concat(s,"."),type:"warning"})},test:_.SQ}]},installISO:{defaults:{onSuccess:()=>{tU(void 0)},value:tg},isRequired:!0,tests:[{test:_.HJ}]},anvil:{defaults:{onSuccess:()=>{tB(void 0)},value:tj},isRequired:!0,tests:[{test:_.HJ}]},optimizeForOS:{defaults:{onSuccess:()=>{tG(void 0)},value:null==tM?void 0:tM.key},isRequired:!0,tests:[{test:_.HJ}]}};tv.inputSizeMessages.forEach((t,s)=>{tY["vd".concat(s,"Size")]={defaults:{displayMax:"".concat(tv.inputMaxes[s]," ").concat(tv.inputUnits[s]),displayMin:o,max:tv.maxes[s],min:G,onSuccess:()=>{tv.inputSizeMessages[s]=void 0},value:tv.sizes[s]},isRequired:!0,onFinishBatch:()=>{th({...tv})},tests:[{onFailure:()=>{tv.inputSizeMessages[s]={text:"Non available.",type:"warning"}},test:_.X7},{onFailure:t=>{let{displayMax:e,displayMin:n}=t;tv.inputSizeMessages[s]={text:"Virtual disk ".concat(s," size is expected to be between ").concat(n," and ").concat(e,"."),type:"warning"}},test:_.SQ}]},tY["vd".concat(s,"StorageGroup")]={defaults:{onSuccess:()=>{tv.inputStorageGroupUUIDMessages[s]=void 0},value:tv.inputStorageGroupUUIDs[s]},isRequired:!0,onFinishBatch:()=>{th({...tv})},tests:[{test:_.HJ}]}});let updateLimits=function(){let{allAnvils:t=C,cpuCores:s=$,fileUUIDs:e=[tg,tb],includeAnvilUUIDs:n=filterBlanks([tj]),includeFileUUIDs:o,includeStorageGroupUUIDs:l,inputMemoryUnit:u=tI,memory:r=tl,storageGroupUUIDMapToData:i=w,virtualDisks:a=tv}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{anvilUUIDs:d,fileUUIDs:c,maxCPUCores:p,maxMemory:f,maxVirtualDiskSizes:I,storageGroupUUIDs:m}=filterAnvils(t,i,s,r,a.sizes,a.inputStorageGroupUUIDs,e,{includeAnvilUUIDs:n,includeFileUUIDs:o,includeStorageGroupUUIDs:l});te(p),ti(f);let v=[];a.maxes=I,a.maxes.forEach((t,s)=>{(0,h.Bh)(t,{fromUnit:"B",onSuccess:{string:(t,e)=>{a.inputMaxes[s]=t,v[s]="".concat(t," ").concat(e)}},toUnit:a.inputUnits[s]})}),th({...a}),tZ(d),tT(c),tw(m);let g="";return(0,h.Bh)(f,{fromUnit:"B",onSuccess:{string:(t,s)=>{tc(t),g="".concat(t," ").concat(s)}},toUnit:u}),{formattedMaxMemory:g,formattedMaxVDSizes:v,maxCPUCores:p,maxMemory:f,maxVirtualDiskSizes:I}},tJ=(0,u.useCallback)(updateLimits,[]),testInput=function(){for(var t=arguments.length,s=Array(t),e=0;e<t;e++)s[e]=arguments[e];let[n,...o]=s;return(0,_.BD)({tests:tY,...n},...o)},changeMemory=function(){let{cmValue:t=M,cmUnit:s=tI}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};tu(t);let{formattedMaxMemory:e,maxMemory:n}=updateLimits({inputMemoryUnit:s,memory:t});testInput({inputs:{memory:{displayMax:e,max:n,value:t}}})},handleInputMemoryValueChange=function(){let{value:t=tp,unit:s=tI}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t!==tp&&tf(t),s!==tI&&tm(s),(0,h.KY)(t,s,t=>changeMemory({cmValue:t,cmUnit:s}),()=>changeMemory({cmUnit:s}))},handleInputInstallISOFileUUIDChange=t=>{tx(t),updateLimits({fileUUIDs:[t,tb]})},handleInputDriverISOFileUUIDChange=t=>{tD(t),updateLimits({fileUUIDs:[tg,t]})},handleInputAnvilValueChange=t=>{let s=filterBlanks([t]);tP(t),updateLimits({includeAnvilUUIDs:s})},tK=(0,u.useMemo)(()=>({"anvil node":!!Object.keys(b).length,file:!!Object.keys(Z).length,"storage group":!!Object.keys(w).length}),[b,Z,w]);return(0,u.useEffect)(()=>{p.Z.get("/anvil",{params:{anvilUUIDs:"all",isForProvisionServer:!0}}).then(t=>{let{data:s}=t,{anvils:e,anvilSelectItems:n,anvilUUIDMapToData:o,fileSelectItems:l,fileUUIDMapToData:u,serverNameMapToData:r,storageGroupSelectItems:i,storageGroupUUIDMapToData:a}=organizeAnvils(s.anvils);U(e),y(o),F(u),O(r),N(a),L(n),R(l),H(i);let d={allAnvils:e,storageGroupUUIDMapToData:a};if(1===n.length){let{0:{value:t}}=n;tP(t),d.includeAnvilUUIDs=[t]}if(1===l.length){let{0:{value:t}}=l;tx(t),d.fileUUIDs=[t,""]}if(1===i.length){let{0:{value:t}}=i;th(s=>{let e={...s};return e.inputStorageGroupUUIDs[0]=t,d.virtualDisks=e,e})}tJ(d),q(Object.entries(s.oses).map(t=>{let[s,e]=t;return{key:s,label:e}})),tV(!0)})},[tJ]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(a.Z,{fullWidth:!0,maxWidth:"sm",open:s,PaperComponent:j.s_,PaperProps:{sx:{overflow:"visible"}},children:[(0,l.jsxs)(j.V9,{children:[(0,l.jsx)(B.z,{text:"Provision a Server"}),(0,l.jsx)(g.Z,{onClick:e,sx:{backgroundColor:c.hM,color:c.lD,"&:hover":{backgroundColor:c.hM}},children:(0,l.jsx)(d.Z,{})})]}),(0,l.jsx)(v.Z,{spacing:".6em",children:Object.entries(tK).map(t=>{let[s,e]=t;return!e&&(0,l.jsxs)(x.Z,{type:"warning",children:["No ",s," available yet. Try refreshing after the resource gets created."]})})}),tN?(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",maxHeight:"50vh",overflowY:"scroll",paddingTop:".6em","& > :not(:first-child)":{marginTop:"1em"}},children:[(0,l.jsx)(r.Z,{sx:{display:"flex",flexDirection:"column"},children:(0,l.jsx)(S.Z,{id:"ps-server-name",label:"Server name",inputProps:{onChange:t=>{let{target:{value:s}}=t;J(s),testInput({inputs:{serverName:{value:s}}})},value:Y},inputLabelProps:{isNotifyRequired:0===Y.length},messageBoxProps:K})}),(0,l.jsx)(f.Z,{id:"ps-cpu-cores",disableClearable:!0,extendRenderInput:t=>{let{inputLabelProps:s={}}=t;s.isNotifyRequired=$<=0},getOptionLabel:t=>String(t),label:"CPU cores",messageBoxProps:tn,noOptionsText:"No available number of cores.",onChange:(t,s)=>{if(!s||s===$)return;tt(s);let{maxCPUCores:e}=updateLimits({cpuCores:s});testInput({inputs:{cpuCores:{max:e,value:s}}})},openOnFocus:!0,options:tH,renderOption:(t,s)=>(0,u.createElement)("li",{...t,key:"ps-cpu-cores-".concat(s)},s),value:$}),(0,l.jsx)(OutlinedLabeledInputWithSelect,{id:"ps-memory",label:"Memory",messageBoxProps:ta,inputWithLabelProps:{inputProps:{endAdornment:createMaxValueButton("".concat(tC," ").concat(tI),{onButtonClick:()=>{tf(tC),changeMemory({cmValue:tr})}}),onChange:t=>{let{target:{value:s}}=t;handleInputMemoryValueChange({value:s})},type:"number",value:tp},inputLabelProps:{isNotifyRequired:tl===M}},selectItems:k,selectWithLabelProps:{selectProps:{onChange:t=>{let{target:{value:s}}=t;handleInputMemoryValueChange({unit:s})},value:tI}}}),tv.stateIds.map((t,s)=>createVirtualDiskForm(tv,s,th,W,tO,updateLimits,w,testInput)),(0,l.jsx)(D.Z,{disableItem:t=>t===tb,hideItem:t=>!tF.includes(t),id:"ps-install-image",inputLabelProps:{isNotifyRequired:0===tg.length},label:"Install ISO",messageBoxProps:tS,selectItems:Q,selectProps:{onChange:t=>{let{target:{value:s}}=t;handleInputInstallISOFileUUIDChange(s)},onClearIndicatorClick:()=>handleInputInstallISOFileUUIDChange(""),value:tg}}),(0,l.jsx)(D.Z,{disableItem:t=>t===tg,hideItem:t=>!tF.includes(t),id:"ps-driver-image",label:"Driver ISO",messageBoxProps:ty,selectItems:Q,selectProps:{onChange:t=>{let{target:{value:s}}=t;handleInputDriverISOFileUUIDChange(s)},onClearIndicatorClick:()=>handleInputDriverISOFileUUIDChange(""),value:tb}}),(0,l.jsx)(D.Z,{disableItem:t=>!tA.includes(t),id:"ps-anvil",inputLabelProps:{isNotifyRequired:0===tj.length},label:"Anvil node",messageBoxProps:t_,selectItems:V,selectProps:{onChange:t=>{let{target:{value:s}}=t;handleInputAnvilValueChange(s)},onClearIndicatorClick:()=>handleInputAnvilValueChange(""),renderValue:t=>{var s;let{anvilName:e="Unknown ".concat(t)}=null!==(s=b[t])&&void 0!==s?s:{};return e},value:tj}}),(0,l.jsx)(f.Z,{id:"ps-optimize-for-os",extendRenderInput:t=>{let{inputLabelProps:s={}}=t;s.isNotifyRequired=null===tM},isOptionEqualToValue:(t,s)=>t.key===s.key,label:"Optimize for OS",messageBoxProps:tz,noOptionsText:"No matching OS",onChange:(t,s)=>{tk(s)},openOnFocus:!0,options:E,renderOption:(t,s)=>(0,u.createElement)("li",{...t,key:"ps-optimize-for-os-".concat(s.key),children:[s.label," (",s.key,")"]}),value:tM})]}):(0,l.jsx)(P.Z,{}),(0,l.jsxs)(r.Z,{sx:{display:"flex",flexDirection:"column",marginTop:"1em","& > :not(:first-child)":{marginTop:"1em"}},children:[tq>0&&(0,l.jsx)(x.Z,{isAllowClose:!0,text:"Provision server job registered. You can provision another server, or exit; it won't affect the registered job."}),tR?(0,l.jsx)(P.Z,{mt:0}):(0,l.jsx)(r.Z,{sx:{display:"flex",flexDirection:"row",justifyContent:"flex-end",width:"100%"},children:(0,l.jsx)(m.Z,{disabled:!testInput({isIgnoreOnCallbacks:!0}),onClick:()=>{tQ(!0)},sx:A,children:"Provision"})})]})]}),tL&&(0,l.jsx)(I.Z,{actionProceedText:"Provision",content:(0,l.jsxs)(i.ZP,{container:!0,columns:10,direction:"column",children:[(0,l.jsx)(i.ZP,{item:!0,xs:10,children:(0,l.jsxs)(B.Ac,{children:["Server ",(0,l.jsx)(B.Q0,{text:Y})," will be created on anvil node"," ",(0,l.jsx)(B.Q0,{text:b[tj].anvilName})," ","with the following properties:"]})}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(B.Ac,{text:"CPU"})}),(0,l.jsx)(i.ZP,{item:!0,xs:5,children:(0,l.jsxs)(B.Ac,{children:[(0,l.jsx)(B.Q0,{edge:"start",children:$})," ","core(s)"]})}),(0,l.jsx)(i.ZP,{item:!0,xs:3,children:(0,l.jsxs)(B.Ac,{children:[(0,l.jsx)(B.Q0,{edge:"start",children:ts})," ","core(s) available"]})})]}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(B.Ac,{text:"Memory"})}),(0,l.jsx)(i.ZP,{item:!0,xs:5,children:(0,l.jsx)(B.Ac,{children:(0,l.jsxs)(B.Q0,{edge:"start",children:[tp," ",tI]})})}),(0,l.jsx)(i.ZP,{item:!0,xs:3,children:(0,l.jsxs)(B.Ac,{children:[(0,l.jsxs)(B.Q0,{edge:"start",children:[tC," ",tI]})," ","available"]})})]}),tv.stateIds.map((t,s)=>{let e=tv.inputMaxes[s],n=tv.inputSizes[s],o=tv.inputUnits[s],u=w[tv.inputStorageGroupUUIDs[s]].storageGroupName;return(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsxs)(B.Ac,{children:["Disk ",(0,l.jsx)(B.Q0,{text:s})]})}),(0,l.jsx)(i.ZP,{item:!0,xs:5,children:(0,l.jsxs)(B.Ac,{children:[(0,l.jsxs)(B.Q0,{edge:"start",children:[n," ",o]})," ","on ",(0,l.jsx)(B.Q0,{children:u})]})}),(0,l.jsx)(i.ZP,{item:!0,xs:3,children:(0,l.jsxs)(B.Ac,{children:[(0,l.jsxs)(B.Q0,{edge:"start",children:[e," ",o]})," ","available"]})})]},"ps-virtual-disk-".concat(t,"-summary"))}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(B.Ac,{text:"Install ISO"})}),(0,l.jsx)(i.ZP,{item:!0,xs:8,children:(0,l.jsx)(B.Ac,{children:(0,l.jsx)(B.Q0,{edge:"start",children:Z[tg].fileName})})})]}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(B.Ac,{text:"Driver ISO"})}),(0,l.jsx)(i.ZP,{item:!0,xs:8,children:(0,l.jsx)(B.Ac,{children:Z[tb]?(0,l.jsx)(B.Q0,{edge:"start",children:Z[tb].fileName}):"none"})})]}),(0,l.jsxs)(i.ZP,{container:!0,direction:"row",item:!0,xs:10,children:[(0,l.jsx)(i.ZP,{item:!0,xs:2,children:(0,l.jsx)(B.Ac,{text:"Optimize for OS"})}),(0,l.jsx)(i.ZP,{item:!0,xs:8,children:(0,l.jsx)(B.Ac,{children:(0,l.jsx)(B.Q0,{edge:"start",children:"".concat(null==tM?void 0:tM.label)})})})]})]}),dialogProps:{open:tL},onCancelAppend:()=>{tQ(!1)},onProceedAppend:()=>{let t={serverName:Y,cpuCores:$,memory:tl.toString(),virtualDisks:tv.stateIds.map((t,s)=>({storageSize:tv.sizes[s].toString(),storageGroupUUID:tv.inputStorageGroupUUIDs[s]})),installISOFileUUID:tg,driverISOFileUUID:tb,anvilUUID:tj,optimizeForOS:null==tM?void 0:tM.key};tE(!0),p.Z.post("/server",t).then(()=>{tE(!1),tW(tq+1)}),tQ(!1)},proceedButtonProps:{sx:A},titleText:"Provision ".concat(Y,"?")})]})}},56746:function(t,s,e){"use strict";e.d(s,{Bh:function(){return format_data_size_wrappers_dsize},KY:function(){return format_data_size_wrappers_dsizeToByte},MU:function(){return format_data_size_wrappers_toBinaryByte}});var n=e(54490),format_data_size_wrappers_dsize=function(t){let{fromUnit:s,onFailure:e,onSuccess:o,precision:l,toUnit:u}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,n.gO)(t,{fromUnit:s,precision:l,toUnit:u});if(r){let{value:t,unit:s}=r;try{var i,a,d;null==o||null===(i=o.bigint)||void 0===i||i.call(null,BigInt(t),s),null==o||null===(a=o.number)||void 0===a||a.call(null,parseFloat(t),s),null==o||null===(d=o.string)||void 0===d||d.call(null,t,s)}catch(n){null==e||e.call(null,n,t,s)}}else null==e||e.call(null)},format_data_size_wrappers_dsizeToByte=(t,s,e,n)=>{format_data_size_wrappers_dsize(t,{fromUnit:s,onFailure:n,onSuccess:{bigint:e},precision:0,toUnit:"B"})},format_data_size_wrappers_toBinaryByte=t=>(0,n._d)(t,{toUnit:"ibyte"})},50233:function(t,s,e){"use strict";e.d(s,{_:function(){return test_input_buildIPAddressTestBatch},dg:function(){return test_input_buildIpCsvTestBatch},qY:function(){return test_input_buildNumberTestBatch},Gn:function(){return test_input_buildPeacefulStringTestBatch},LT:function(){return test_input_createTestInputFunction},BD:function(){return test_input_testInput},X7:function(){return test_input_testMax},HJ:function(){return test_input_testNotBlank},SQ:function(){return test_input_testRange}});var n=e(85893),o=e(65939),l=e(84154),test_input_testNotBlank=t=>{let{value:s}=t;return!!s&&String(s).length>0},test_input_buildIPAddressTestBatch=function(t,s){let{isRequired:e,onFinishBatch:l,...u}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return{defaults:{...u,onSuccess:s},isRequired:e,onFinishBatch:l,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var s=arguments.length,e=Array(s),o=0;o<s;o++)e[o]=arguments[o];r((0,n.jsxs)(n.Fragment,{children:[t," should be a valid IPv4 address."]}),...e)},test:t=>{let{value:s}=t;return o.tf.test(s)}}]}},test_input_buildIpCsvTestBatch=function(t,s){let{isRequired:e,onFinishBatch:l,...u}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return{defaults:{...u,onSuccess:s},isRequired:e,onFinishBatch:l,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var s=arguments.length,e=Array(s),o=0;o<s;o++)e[o]=arguments[o];r((0,n.jsxs)(n.Fragment,{children:[t," must be one or more valid IPv4 addresses separated by comma(s); without trailing comma."]}),...e)},test:t=>{let{value:s}=t;return o.ah.test(s)}}]}},test_input_testRange=t=>{let{max:s,min:e,value:n}=t;return!!n&&n>=e&&n<=s},lib_toNumber=function(t){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parseInt";return"number"==typeof t?t:Number[s](String(t))},test_input_buildNumberTestBatch=function(t,s){let{isRequired:e,onFinishBatch:o,...l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0,a=[];return u?a.push({onFailure:function(){for(var s=arguments.length,e=Array(s),o=0;o<s;o++)e[o]=arguments[o];u((0,n.jsxs)(n.Fragment,{children:[t," must be a valid integer."]}),...e)},test:t=>{let{value:s}=t;return Number.isSafeInteger(lib_toNumber(s))}}):r&&a.push({onFailure:function(){for(var s=arguments.length,e=Array(s),o=0;o<s;o++)e[o]=arguments[o];r((0,n.jsxs)(n.Fragment,{children:[t," must be a valid floating-point number."]}),...e)},test:t=>{let{value:s}=t;return Number.isFinite(lib_toNumber(s,"parseFloat"))}}),i&&a.push({onFailure:function(){for(var s=arguments.length,e=Array(s),o=0;o<s;o++)e[o]=arguments[o];let{displayMax:l,displayMin:u}=e[0];i((0,n.jsxs)(n.Fragment,{children:[t," is expected to be between ",u," and ",l,"."]}),...e)},test:test_input_testRange}),{defaults:{...l,onSuccess:s},isRequired:e,onFinishBatch:o,tests:a}},test_input_buildPeacefulStringTestBatch=function(t,s){let{isRequired:e,onFinishBatch:u,...r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;return{defaults:{...r,onSuccess:s},isRequired:e,onFinishBatch:u,tests:[{test:test_input_testNotBlank},{onFailure:function(){for(var s=arguments.length,e=Array(s),o=0;o<s;o++)e[o]=arguments[o];i((0,n.jsxs)(n.Fragment,{children:[t," cannot contain single-quote (",(0,n.jsx)(l.Q0,{inheritColour:!0,text:"'"}),"), double-quote (",(0,n.jsx)(l.Q0,{inheritColour:!0,text:'"'}),"), slash (",(0,n.jsx)(l.Q0,{inheritColour:!0,text:"/"}),"), backslash (",(0,n.jsx)(l.Q0,{inheritColour:!0,text:"\\"}),"), angle brackets (",(0,n.jsx)(l.Q0,{inheritColour:!0,text:"<>"}),"), curly brackets (",(0,n.jsx)(l.Q0,{inheritColour:!0,text:"{}"}),")."]}),...e)},test:t=>{let{value:s}=t;return o.OU.test(s)}}]}};let cbEmptySetter=()=>({}),cbSetter=t=>{let{onFailure:s,onSuccess:e}=t;return{cbFailure:s,cbSuccess:e}},evalIsIgnoreOnCallbacks=t=>{let{isIgnoreOnCallbacks:s,onFinishBatch:e}=t;return s?{setTestCallbacks:cbEmptySetter}:{cbFinishBatch:e,setTestCallbacks:cbSetter}},nullishSet=(t,s)=>null!=t?t:s,orSet=(t,s)=>t||s;var test_input_testInput=function(){let{excludeTestIds:t=[],excludeTestIdsRe:s,inputs:e={},isContinueOnFailure:n,isIgnoreOnCallbacks:o,isTestAll:l=0===Object.keys(e).length,tests:u={}}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=[...t],i={},a=!0;return l&&Object.keys(u).forEach(t=>{i[t]={}}),i={...i,...e},s&&Object.keys(i).forEach(t=>{s.test(t)&&r.push(t)}),r.forEach(t=>{delete i[t]}),Object.keys(i).every(t=>{let{defaults:{compare:s=[],displayMax:e,displayMin:l,getCompare:r,getValue:d,isIgnoreOnCallbacks:C=o,max:c=0,min:p=0,onSuccess:f,value:I=null}={},isRequired:m=!1,onFinishBatch:v,optionalTests:h,tests:g}=u[t],{getCompare:x=r,getValue:S=d,isIgnoreOnCallbacks:U=C,max:b=c,min:D=p,compare:y=nullishSet(null==x?void 0:x.call(null),s),value:j=nullishSet(null==S?void 0:S.call(null),I),displayMax:P=orSet(e,String(b)),displayMin:_=orSet(l,String(D))}=i[t],{cbFinishBatch:B,setTestCallbacks:M}=evalIsIgnoreOnCallbacks({isIgnoreOnCallbacks:U,onFinishBatch:v});if(!j&&!m)return null==B||B.call(null,!0,t),!0;let runTest=t=>{let{onFailure:s,onSuccess:e=f,test:n}=t,o={},l=n({append:o,compare:y,max:b,min:D,value:j}),{cbFailure:u,cbSuccess:r}=M({onFailure:s,onSuccess:e});return l?null==r||r.call(null,{append:o}):(a=l,null==u||u.call(null,{append:o,compare:y,displayMax:P,displayMin:_,max:b,min:D,value:j})),l};null==h||h.forEach(runTest);let k=g.every(runTest);return null==B||B.call(null,k,t),k||n}),a},test_input_createTestInputFunction=function(t){let{excludeTestIds:s=[],...e}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){let{excludeTestIds:n=[],...o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return test_input_testInput({tests:t,excludeTestIds:[...s,...n],...e,...o})}},test_input_testMax=t=>{let{max:s,min:e}=t;return s>=e}}}]);