(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[808],{85982:function(s,e,t){"use strict";t.d(e,{tabClasses:function(){return s6.tabClasses},tabsClasses:function(){return el.tabsClasses}});var a=t(2373);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(99164);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}});var r=t(22307);t.o(r,"tabClasses")&&t.d(e,{tabClasses:function(){return r.tabClasses}}),t.o(r,"tabsClasses")&&t.d(e,{tabsClasses:function(){return r.tabsClasses}});var l=t(16781);t.o(l,"tabClasses")&&t.d(e,{tabClasses:function(){return l.tabClasses}}),t.o(l,"tabsClasses")&&t.d(e,{tabsClasses:function(){return l.tabsClasses}});var o=t(21490);t.o(o,"tabClasses")&&t.d(e,{tabClasses:function(){return o.tabClasses}}),t.o(o,"tabsClasses")&&t.d(e,{tabsClasses:function(){return o.tabsClasses}});var u=t(82120);t.o(u,"tabClasses")&&t.d(e,{tabClasses:function(){return u.tabClasses}}),t.o(u,"tabsClasses")&&t.d(e,{tabsClasses:function(){return u.tabsClasses}});var i=t(52290);t.o(i,"tabClasses")&&t.d(e,{tabClasses:function(){return i.tabClasses}}),t.o(i,"tabsClasses")&&t.d(e,{tabsClasses:function(){return i.tabsClasses}});var c=t(49179);t.o(c,"tabClasses")&&t.d(e,{tabClasses:function(){return c.tabClasses}}),t.o(c,"tabsClasses")&&t.d(e,{tabsClasses:function(){return c.tabsClasses}});var b=t(89904);t.o(b,"tabClasses")&&t.d(e,{tabClasses:function(){return b.tabClasses}}),t.o(b,"tabsClasses")&&t.d(e,{tabsClasses:function(){return b.tabsClasses}});var d=t(3498);t.o(d,"tabClasses")&&t.d(e,{tabClasses:function(){return d.tabClasses}}),t.o(d,"tabsClasses")&&t.d(e,{tabsClasses:function(){return d.tabsClasses}});var C=t(53624);t.o(C,"tabClasses")&&t.d(e,{tabClasses:function(){return C.tabClasses}}),t.o(C,"tabsClasses")&&t.d(e,{tabsClasses:function(){return C.tabsClasses}});var f=t(87305);t.o(f,"tabClasses")&&t.d(e,{tabClasses:function(){return f.tabClasses}}),t.o(f,"tabsClasses")&&t.d(e,{tabsClasses:function(){return f.tabsClasses}});var p=t(58987);t.o(p,"tabClasses")&&t.d(e,{tabClasses:function(){return p.tabClasses}}),t.o(p,"tabsClasses")&&t.d(e,{tabsClasses:function(){return p.tabsClasses}});var m=t(17714);t.o(m,"tabClasses")&&t.d(e,{tabClasses:function(){return m.tabClasses}}),t.o(m,"tabsClasses")&&t.d(e,{tabsClasses:function(){return m.tabsClasses}});var h=t(34952);t.o(h,"tabClasses")&&t.d(e,{tabClasses:function(){return h.tabClasses}}),t.o(h,"tabsClasses")&&t.d(e,{tabsClasses:function(){return h.tabsClasses}});var v=t(37373);t.o(v,"tabClasses")&&t.d(e,{tabClasses:function(){return v.tabClasses}}),t.o(v,"tabsClasses")&&t.d(e,{tabsClasses:function(){return v.tabsClasses}});var x=t(32749);t.o(x,"tabClasses")&&t.d(e,{tabClasses:function(){return x.tabClasses}}),t.o(x,"tabsClasses")&&t.d(e,{tabsClasses:function(){return x.tabsClasses}});var g=t(21727);t.o(g,"tabClasses")&&t.d(e,{tabClasses:function(){return g.tabClasses}}),t.o(g,"tabsClasses")&&t.d(e,{tabsClasses:function(){return g.tabsClasses}});var j=t(19100);t.o(j,"tabClasses")&&t.d(e,{tabClasses:function(){return j.tabClasses}}),t.o(j,"tabsClasses")&&t.d(e,{tabsClasses:function(){return j.tabsClasses}});var w=t(15975);t.o(w,"tabClasses")&&t.d(e,{tabClasses:function(){return w.tabClasses}}),t.o(w,"tabsClasses")&&t.d(e,{tabsClasses:function(){return w.tabsClasses}});var M=t(26146);t.o(M,"tabClasses")&&t.d(e,{tabClasses:function(){return M.tabClasses}}),t.o(M,"tabsClasses")&&t.d(e,{tabsClasses:function(){return M.tabsClasses}});var Z=t(82539);t.o(Z,"tabClasses")&&t.d(e,{tabClasses:function(){return Z.tabClasses}}),t.o(Z,"tabsClasses")&&t.d(e,{tabsClasses:function(){return Z.tabsClasses}});var I=t(3330);t.o(I,"tabClasses")&&t.d(e,{tabClasses:function(){return I.tabClasses}}),t.o(I,"tabsClasses")&&t.d(e,{tabsClasses:function(){return I.tabsClasses}});var k=t(32180);t.o(k,"tabClasses")&&t.d(e,{tabClasses:function(){return k.tabClasses}}),t.o(k,"tabsClasses")&&t.d(e,{tabsClasses:function(){return k.tabsClasses}});var P=t(10964);t.o(P,"tabClasses")&&t.d(e,{tabClasses:function(){return P.tabClasses}}),t.o(P,"tabsClasses")&&t.d(e,{tabsClasses:function(){return P.tabsClasses}});var y=t(72260);t.o(y,"tabClasses")&&t.d(e,{tabClasses:function(){return y.tabClasses}}),t.o(y,"tabsClasses")&&t.d(e,{tabsClasses:function(){return y.tabsClasses}});var F=t(42160);t.o(F,"tabClasses")&&t.d(e,{tabClasses:function(){return F.tabClasses}}),t.o(F,"tabsClasses")&&t.d(e,{tabsClasses:function(){return F.tabsClasses}});var A=t(96474);t.o(A,"tabClasses")&&t.d(e,{tabClasses:function(){return A.tabClasses}}),t.o(A,"tabsClasses")&&t.d(e,{tabsClasses:function(){return A.tabsClasses}});var S=t(56729);t.o(S,"tabClasses")&&t.d(e,{tabClasses:function(){return S.tabClasses}}),t.o(S,"tabsClasses")&&t.d(e,{tabsClasses:function(){return S.tabsClasses}});var T=t(36111);t.o(T,"tabClasses")&&t.d(e,{tabClasses:function(){return T.tabClasses}}),t.o(T,"tabsClasses")&&t.d(e,{tabsClasses:function(){return T.tabsClasses}});var _=t(47170);t.o(_,"tabClasses")&&t.d(e,{tabClasses:function(){return _.tabClasses}}),t.o(_,"tabsClasses")&&t.d(e,{tabsClasses:function(){return _.tabsClasses}});var U=t(3897);t.o(U,"tabClasses")&&t.d(e,{tabClasses:function(){return U.tabClasses}}),t.o(U,"tabsClasses")&&t.d(e,{tabsClasses:function(){return U.tabsClasses}});var N=t(4602);t.o(N,"tabClasses")&&t.d(e,{tabClasses:function(){return N.tabClasses}}),t.o(N,"tabsClasses")&&t.d(e,{tabsClasses:function(){return N.tabsClasses}});var O=t(75814);t.o(O,"tabClasses")&&t.d(e,{tabClasses:function(){return O.tabClasses}}),t.o(O,"tabsClasses")&&t.d(e,{tabsClasses:function(){return O.tabsClasses}});var R=t(91370);t.o(R,"tabClasses")&&t.d(e,{tabClasses:function(){return R.tabClasses}}),t.o(R,"tabsClasses")&&t.d(e,{tabsClasses:function(){return R.tabsClasses}});var E=t(95118);t.o(E,"tabClasses")&&t.d(e,{tabClasses:function(){return E.tabClasses}}),t.o(E,"tabsClasses")&&t.d(e,{tabsClasses:function(){return E.tabsClasses}});var H=t(83972);t.o(H,"tabClasses")&&t.d(e,{tabClasses:function(){return H.tabClasses}}),t.o(H,"tabsClasses")&&t.d(e,{tabsClasses:function(){return H.tabsClasses}});var D=t(52756);t.o(D,"tabClasses")&&t.d(e,{tabClasses:function(){return D.tabClasses}}),t.o(D,"tabsClasses")&&t.d(e,{tabsClasses:function(){return D.tabsClasses}});var q=t(13694);t.o(q,"tabClasses")&&t.d(e,{tabClasses:function(){return q.tabClasses}}),t.o(q,"tabsClasses")&&t.d(e,{tabsClasses:function(){return q.tabsClasses}});var B=t(98371);t.o(B,"tabClasses")&&t.d(e,{tabClasses:function(){return B.tabClasses}}),t.o(B,"tabsClasses")&&t.d(e,{tabsClasses:function(){return B.tabsClasses}});var G=t(35714);t.o(G,"tabClasses")&&t.d(e,{tabClasses:function(){return G.tabClasses}}),t.o(G,"tabsClasses")&&t.d(e,{tabsClasses:function(){return G.tabsClasses}});var L=t(68247);t.o(L,"tabClasses")&&t.d(e,{tabClasses:function(){return L.tabClasses}}),t.o(L,"tabsClasses")&&t.d(e,{tabsClasses:function(){return L.tabsClasses}});var z=t(45237);t.o(z,"tabClasses")&&t.d(e,{tabClasses:function(){return z.tabClasses}}),t.o(z,"tabsClasses")&&t.d(e,{tabsClasses:function(){return z.tabsClasses}});var V=t(39884);t.o(V,"tabClasses")&&t.d(e,{tabClasses:function(){return V.tabClasses}}),t.o(V,"tabsClasses")&&t.d(e,{tabsClasses:function(){return V.tabsClasses}});var W=t(33805);t.o(W,"tabClasses")&&t.d(e,{tabClasses:function(){return W.tabClasses}}),t.o(W,"tabsClasses")&&t.d(e,{tabsClasses:function(){return W.tabsClasses}});var Q=t(15282);t.o(Q,"tabClasses")&&t.d(e,{tabClasses:function(){return Q.tabClasses}}),t.o(Q,"tabsClasses")&&t.d(e,{tabsClasses:function(){return Q.tabsClasses}});var $=t(24099);t.o($,"tabClasses")&&t.d(e,{tabClasses:function(){return $.tabClasses}}),t.o($,"tabsClasses")&&t.d(e,{tabsClasses:function(){return $.tabsClasses}});var J=t(37870);t.o(J,"tabClasses")&&t.d(e,{tabClasses:function(){return J.tabClasses}}),t.o(J,"tabsClasses")&&t.d(e,{tabsClasses:function(){return J.tabsClasses}});var K=t(97236);t.o(K,"tabClasses")&&t.d(e,{tabClasses:function(){return K.tabClasses}}),t.o(K,"tabsClasses")&&t.d(e,{tabsClasses:function(){return K.tabsClasses}});var X=t(41712);t.o(X,"tabClasses")&&t.d(e,{tabClasses:function(){return X.tabClasses}}),t.o(X,"tabsClasses")&&t.d(e,{tabsClasses:function(){return X.tabsClasses}});var Y=t(66210);t.o(Y,"tabClasses")&&t.d(e,{tabClasses:function(){return Y.tabClasses}}),t.o(Y,"tabsClasses")&&t.d(e,{tabsClasses:function(){return Y.tabsClasses}});var ss=t(40901);t.o(ss,"tabClasses")&&t.d(e,{tabClasses:function(){return ss.tabClasses}}),t.o(ss,"tabsClasses")&&t.d(e,{tabsClasses:function(){return ss.tabsClasses}});var se=t(19496);t.o(se,"tabClasses")&&t.d(e,{tabClasses:function(){return se.tabClasses}}),t.o(se,"tabsClasses")&&t.d(e,{tabsClasses:function(){return se.tabsClasses}});var st=t(33869);t.o(st,"tabClasses")&&t.d(e,{tabClasses:function(){return st.tabClasses}}),t.o(st,"tabsClasses")&&t.d(e,{tabsClasses:function(){return st.tabsClasses}});var sa=t(47259);t.o(sa,"tabClasses")&&t.d(e,{tabClasses:function(){return sa.tabClasses}}),t.o(sa,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sa.tabsClasses}});var sn=t(55857);t.o(sn,"tabClasses")&&t.d(e,{tabClasses:function(){return sn.tabClasses}}),t.o(sn,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sn.tabsClasses}});var sr=t(68282);t.o(sr,"tabClasses")&&t.d(e,{tabClasses:function(){return sr.tabClasses}}),t.o(sr,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sr.tabsClasses}});var sl=t(95124);t.o(sl,"tabClasses")&&t.d(e,{tabClasses:function(){return sl.tabClasses}}),t.o(sl,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sl.tabsClasses}});var so=t(34857);t.o(so,"tabClasses")&&t.d(e,{tabClasses:function(){return so.tabClasses}}),t.o(so,"tabsClasses")&&t.d(e,{tabsClasses:function(){return so.tabsClasses}});var su=t(69232);t.o(su,"tabClasses")&&t.d(e,{tabClasses:function(){return su.tabClasses}}),t.o(su,"tabsClasses")&&t.d(e,{tabsClasses:function(){return su.tabsClasses}});var si=t(95461);t.o(si,"tabClasses")&&t.d(e,{tabClasses:function(){return si.tabClasses}}),t.o(si,"tabsClasses")&&t.d(e,{tabsClasses:function(){return si.tabsClasses}});var sc=t(25477);t.o(sc,"tabClasses")&&t.d(e,{tabClasses:function(){return sc.tabClasses}}),t.o(sc,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sc.tabsClasses}});var sb=t(30207);t.o(sb,"tabClasses")&&t.d(e,{tabClasses:function(){return sb.tabClasses}}),t.o(sb,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sb.tabsClasses}});var sd=t(68123);t.o(sd,"tabClasses")&&t.d(e,{tabClasses:function(){return sd.tabClasses}}),t.o(sd,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sd.tabsClasses}});var sC=t(90596);t.o(sC,"tabClasses")&&t.d(e,{tabClasses:function(){return sC.tabClasses}}),t.o(sC,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sC.tabsClasses}});var sf=t(45289);t.o(sf,"tabClasses")&&t.d(e,{tabClasses:function(){return sf.tabClasses}}),t.o(sf,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sf.tabsClasses}});var sp=t(15162);t.o(sp,"tabClasses")&&t.d(e,{tabClasses:function(){return sp.tabClasses}}),t.o(sp,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sp.tabsClasses}});var sm=t(91032);t.o(sm,"tabClasses")&&t.d(e,{tabClasses:function(){return sm.tabClasses}}),t.o(sm,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sm.tabsClasses}});var sh=t(74567);t.o(sh,"tabClasses")&&t.d(e,{tabClasses:function(){return sh.tabClasses}}),t.o(sh,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sh.tabsClasses}});var sv=t(91107);t.o(sv,"tabClasses")&&t.d(e,{tabClasses:function(){return sv.tabClasses}}),t.o(sv,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sv.tabsClasses}});var sx=t(44395);t.o(sx,"tabClasses")&&t.d(e,{tabClasses:function(){return sx.tabClasses}}),t.o(sx,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sx.tabsClasses}});var sg=t(48699);t.o(sg,"tabClasses")&&t.d(e,{tabClasses:function(){return sg.tabClasses}}),t.o(sg,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sg.tabsClasses}});var sj=t(14426);t.o(sj,"tabClasses")&&t.d(e,{tabClasses:function(){return sj.tabClasses}}),t.o(sj,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sj.tabsClasses}});var sw=t(92429);t.o(sw,"tabClasses")&&t.d(e,{tabClasses:function(){return sw.tabClasses}}),t.o(sw,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sw.tabsClasses}});var sM=t(40512);t.o(sM,"tabClasses")&&t.d(e,{tabClasses:function(){return sM.tabClasses}}),t.o(sM,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sM.tabsClasses}});var sZ=t(12331);t.o(sZ,"tabClasses")&&t.d(e,{tabClasses:function(){return sZ.tabClasses}}),t.o(sZ,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sZ.tabsClasses}});var sI=t(86071);t.o(sI,"tabClasses")&&t.d(e,{tabClasses:function(){return sI.tabClasses}}),t.o(sI,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sI.tabsClasses}});var sk=t(67971);t.o(sk,"tabClasses")&&t.d(e,{tabClasses:function(){return sk.tabClasses}}),t.o(sk,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sk.tabsClasses}});var sP=t(26736);t.o(sP,"tabClasses")&&t.d(e,{tabClasses:function(){return sP.tabClasses}}),t.o(sP,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sP.tabsClasses}});var sy=t(46570);t.o(sy,"tabClasses")&&t.d(e,{tabClasses:function(){return sy.tabClasses}}),t.o(sy,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sy.tabsClasses}});var sF=t(33472);t.o(sF,"tabClasses")&&t.d(e,{tabClasses:function(){return sF.tabClasses}}),t.o(sF,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sF.tabsClasses}});var sA=t(8268);t.o(sA,"tabClasses")&&t.d(e,{tabClasses:function(){return sA.tabClasses}}),t.o(sA,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sA.tabsClasses}});var sS=t(63238);t.o(sS,"tabClasses")&&t.d(e,{tabClasses:function(){return sS.tabClasses}}),t.o(sS,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sS.tabsClasses}});var sT=t(96194);t.o(sT,"tabClasses")&&t.d(e,{tabClasses:function(){return sT.tabClasses}}),t.o(sT,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sT.tabsClasses}});var s_=t(51834);t.o(s_,"tabClasses")&&t.d(e,{tabClasses:function(){return s_.tabClasses}}),t.o(s_,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s_.tabsClasses}});var sU=t(61652);t.o(sU,"tabClasses")&&t.d(e,{tabClasses:function(){return sU.tabClasses}}),t.o(sU,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sU.tabsClasses}});var sN=t(10267);t.o(sN,"tabClasses")&&t.d(e,{tabClasses:function(){return sN.tabClasses}}),t.o(sN,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sN.tabsClasses}});var sO=t(25190);t.o(sO,"tabClasses")&&t.d(e,{tabClasses:function(){return sO.tabClasses}}),t.o(sO,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sO.tabsClasses}});var sR=t(27193);t.o(sR,"tabClasses")&&t.d(e,{tabClasses:function(){return sR.tabClasses}}),t.o(sR,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sR.tabsClasses}});var sE=t(77319);t.o(sE,"tabClasses")&&t.d(e,{tabClasses:function(){return sE.tabClasses}}),t.o(sE,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sE.tabsClasses}});var sH=t(13713);t.o(sH,"tabClasses")&&t.d(e,{tabClasses:function(){return sH.tabClasses}}),t.o(sH,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sH.tabsClasses}});var sD=t(75866);t.o(sD,"tabClasses")&&t.d(e,{tabClasses:function(){return sD.tabClasses}}),t.o(sD,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sD.tabsClasses}});var sq=t(18782);t.o(sq,"tabClasses")&&t.d(e,{tabClasses:function(){return sq.tabClasses}}),t.o(sq,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sq.tabsClasses}});var sB=t(45525);t.o(sB,"tabClasses")&&t.d(e,{tabClasses:function(){return sB.tabClasses}}),t.o(sB,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sB.tabsClasses}});var sG=t(82325);t.o(sG,"tabClasses")&&t.d(e,{tabClasses:function(){return sG.tabClasses}}),t.o(sG,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sG.tabsClasses}});var sL=t(59976);t.o(sL,"tabClasses")&&t.d(e,{tabClasses:function(){return sL.tabClasses}}),t.o(sL,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sL.tabsClasses}});var sz=t(25673);t.o(sz,"tabClasses")&&t.d(e,{tabClasses:function(){return sz.tabClasses}}),t.o(sz,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sz.tabsClasses}});var sV=t(74256);t.o(sV,"tabClasses")&&t.d(e,{tabClasses:function(){return sV.tabClasses}}),t.o(sV,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sV.tabsClasses}});var sW=t(14189);t.o(sW,"tabClasses")&&t.d(e,{tabClasses:function(){return sW.tabClasses}}),t.o(sW,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sW.tabsClasses}});var sQ=t(84122);t.o(sQ,"tabClasses")&&t.d(e,{tabClasses:function(){return sQ.tabClasses}}),t.o(sQ,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sQ.tabsClasses}});var s$=t(46895);t.o(s$,"tabClasses")&&t.d(e,{tabClasses:function(){return s$.tabClasses}}),t.o(s$,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s$.tabsClasses}});var sJ=t(55167);t.o(sJ,"tabClasses")&&t.d(e,{tabClasses:function(){return sJ.tabClasses}}),t.o(sJ,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sJ.tabsClasses}});var sK=t(70947);t.o(sK,"tabClasses")&&t.d(e,{tabClasses:function(){return sK.tabClasses}}),t.o(sK,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sK.tabsClasses}});var sX=t(99761);t.o(sX,"tabClasses")&&t.d(e,{tabClasses:function(){return sX.tabClasses}}),t.o(sX,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sX.tabsClasses}});var sY=t(67669);t.o(sY,"tabClasses")&&t.d(e,{tabClasses:function(){return sY.tabClasses}}),t.o(sY,"tabsClasses")&&t.d(e,{tabsClasses:function(){return sY.tabsClasses}});var s0=t(60246);t.o(s0,"tabClasses")&&t.d(e,{tabClasses:function(){return s0.tabClasses}}),t.o(s0,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s0.tabsClasses}});var s1=t(21413);t.o(s1,"tabClasses")&&t.d(e,{tabClasses:function(){return s1.tabClasses}}),t.o(s1,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s1.tabsClasses}});var s2=t(62284);t.o(s2,"tabClasses")&&t.d(e,{tabClasses:function(){return s2.tabClasses}}),t.o(s2,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s2.tabsClasses}});var s3=t(75113);t.o(s3,"tabClasses")&&t.d(e,{tabClasses:function(){return s3.tabClasses}}),t.o(s3,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s3.tabsClasses}});var s5=t(62210);t.o(s5,"tabClasses")&&t.d(e,{tabClasses:function(){return s5.tabClasses}}),t.o(s5,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s5.tabsClasses}});var s9=t(40723);t.o(s9,"tabClasses")&&t.d(e,{tabClasses:function(){return s9.tabClasses}}),t.o(s9,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s9.tabsClasses}});var s6=t(63163);t.o(s6,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s6.tabsClasses}});var s4=t(60374);t.o(s4,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s4.tabsClasses}});var s7=t(25501);t.o(s7,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s7.tabsClasses}});var s8=t(26945);t.o(s8,"tabsClasses")&&t.d(e,{tabsClasses:function(){return s8.tabsClasses}});var es=t(55644);t.o(es,"tabsClasses")&&t.d(e,{tabsClasses:function(){return es.tabsClasses}});var ee=t(22238);t.o(ee,"tabsClasses")&&t.d(e,{tabsClasses:function(){return ee.tabsClasses}});var et=t(83239);t.o(et,"tabsClasses")&&t.d(e,{tabsClasses:function(){return et.tabsClasses}});var ea=t(56495);t.o(ea,"tabsClasses")&&t.d(e,{tabsClasses:function(){return ea.tabsClasses}});var en=t(16338);t.o(en,"tabsClasses")&&t.d(e,{tabsClasses:function(){return en.tabsClasses}});var er=t(22164);t.o(er,"tabsClasses")&&t.d(e,{tabsClasses:function(){return er.tabsClasses}});var el=t(22386)},50303:function(){},57042:function(){},22307:function(s,e,t){"use strict";var a=t(57042);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},68332:function(){},16781:function(s,e,t){"use strict";var a=t(68332);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},38599:function(){},21490:function(s,e,t){"use strict";var a=t(38599);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},49028:function(){},82120:function(s,e,t){"use strict";var a=t(49028);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},83419:function(){},52290:function(s,e,t){"use strict";var a=t(83419);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},41976:function(){},49179:function(s,e,t){"use strict";var a=t(41976);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},48036:function(){},89904:function(s,e,t){"use strict";var a=t(48036);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},21512:function(){},3498:function(s,e,t){"use strict";var a=t(21512);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},24612:function(){},53624:function(s,e,t){"use strict";var a=t(24612);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},3656:function(){},87305:function(s,e,t){"use strict";var a=t(3656);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},80262:function(){},58987:function(s,e,t){"use strict";var a=t(80262);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},64179:function(){},17714:function(s,e,t){"use strict";var a=t(64179);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},88001:function(){},34952:function(s,e,t){"use strict";var a=t(88001);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},1396:function(){},37373:function(s,e,t){"use strict";var a=t(1396);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54354:function(){},32749:function(s,e,t){"use strict";var a=t(54354);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},60817:function(){},21727:function(s,e,t){"use strict";var a=t(60817);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},6091:function(){},19100:function(s,e,t){"use strict";var a=t(6091);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},88980:function(){},15975:function(s,e,t){"use strict";var a=t(88980);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(99127);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},99127:function(){},99277:function(){},26146:function(s,e,t){"use strict";var a=t(99277);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},66993:function(){},82539:function(s,e,t){"use strict";var a=t(66993);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},90705:function(){},3330:function(s,e,t){"use strict";var a=t(90705);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},89513:function(){},32180:function(s,e,t){"use strict";var a=t(89513);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},26481:function(){},10964:function(s,e,t){"use strict";var a=t(26481);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},24079:function(){},72260:function(s,e,t){"use strict";var a=t(24079);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},74215:function(){},42160:function(s,e,t){"use strict";var a=t(74215);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},35289:function(){},96474:function(s,e,t){"use strict";var a=t(35289);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},31106:function(){},56729:function(s,e,t){"use strict";var a=t(31106);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54760:function(){},36111:function(s,e,t){"use strict";var a=t(54760);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},47170:function(){},91707:function(){},3897:function(s,e,t){"use strict";var a=t(91707);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},56758:function(){},4602:function(s,e,t){"use strict";var a=t(56758);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},75814:function(){},43754:function(){},95118:function(s,e,t){"use strict";var a=t(43754);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},5614:function(){},83972:function(s,e,t){"use strict";var a=t(5614);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},31353:function(){},52756:function(s,e,t){"use strict";var a=t(31353);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},76827:function(){},13694:function(s,e,t){"use strict";var a=t(76827);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},83481:function(){},98371:function(s,e,t){"use strict";var a=t(83481);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54367:function(){},35714:function(s,e,t){"use strict";var a=t(54367);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},20091:function(){},68247:function(s,e,t){"use strict";var a=t(20091);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},60482:function(){},45237:function(s,e,t){"use strict";var a=t(60482);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},39884:function(){},49144:function(){},33805:function(s,e,t){"use strict";var a=t(49144);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},21577:function(){},15282:function(s,e,t){"use strict";var a=t(21577);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},26873:function(){},24099:function(s,e,t){"use strict";var a=t(26873);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},25312:function(){},37870:function(s,e,t){"use strict";var a=t(25312);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},99119:function(){},97236:function(s,e,t){"use strict";var a=t(99119);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},43992:function(){},91299:function(){},41712:function(s,e,t){"use strict";var a=t(43992);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(91299);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},90190:function(){},66210:function(s,e,t){"use strict";var a=t(90190);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},19496:function(){},33869:function(){},58548:function(){},47259:function(s,e,t){"use strict";var a=t(58548);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},55332:function(){},55857:function(s,e,t){"use strict";var a=t(55332);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},33255:function(){},68282:function(s,e,t){"use strict";var a=t(33255);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},62587:function(){},95124:function(s,e,t){"use strict";var a=t(62587);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},82354:function(){},34857:function(s,e,t){"use strict";var a=t(82354);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},69232:function(s,e,t){"use strict";var a=t(55149);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},55149:function(){},95461:function(s,e,t){"use strict";var a=t(37974);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},37974:function(){},25477:function(s,e,t){"use strict";var a=t(1514);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},1514:function(){},30207:function(s,e,t){"use strict";var a=t(78051);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},78051:function(){},68123:function(s,e,t){"use strict";var a=t(54098);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54098:function(){},90596:function(s,e,t){"use strict";var a=t(79665);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},79665:function(){},45289:function(s,e,t){"use strict";var a=t(13724);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},13724:function(){},15162:function(s,e,t){"use strict";var a=t(63422);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},63422:function(){},91032:function(s,e,t){"use strict";var a=t(54417);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},54417:function(){},74567:function(s,e,t){"use strict";var a=t(99811);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},99811:function(){},91107:function(s,e,t){"use strict";var a=t(30450);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},30450:function(){},44395:function(s,e,t){"use strict";var a=t(96488);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},96488:function(){},48699:function(s,e,t){"use strict";var a=t(55865);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},55865:function(){},14426:function(s,e,t){"use strict";var a=t(87147);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},87147:function(){},92429:function(s,e,t){"use strict";var a=t(32212);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},32212:function(){},40512:function(s,e,t){"use strict";var a=t(31820);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},31820:function(){},12331:function(){},86071:function(s,e,t){"use strict";var a=t(5240);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},5240:function(){},67971:function(s,e,t){"use strict";var a=t(85310);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},85310:function(){},26736:function(s,e,t){"use strict";var a=t(20902);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},20902:function(){},46570:function(){},33472:function(s,e,t){"use strict";var a=t(37393);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},37393:function(){},8268:function(s,e,t){"use strict";var a=t(70553);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},70553:function(){},63238:function(s,e,t){"use strict";var a=t(5317);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},5317:function(){},96194:function(s,e,t){"use strict";var a=t(62475);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},62475:function(){},79428:function(){},51834:function(s,e,t){"use strict";var a=t(79428);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(32336);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},32336:function(){},61652:function(){},10267:function(){},25190:function(s,e,t){"use strict";var a=t(88094);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},88094:function(){},27193:function(){},77319:function(s,e,t){"use strict";var a=t(66432);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},66432:function(){},13713:function(s,e,t){"use strict";var a=t(40597);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},40597:function(){},75866:function(s,e,t){"use strict";var a=t(34456);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},34456:function(){},18782:function(s,e,t){"use strict";var a=t(67504);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},67504:function(){},45525:function(){},56166:function(){},82325:function(s,e,t){"use strict";var a=t(56166);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(28925);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},28925:function(){},59976:function(s,e,t){"use strict";var a=t(42709);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},42709:function(){},25673:function(s,e,t){"use strict";var a=t(10754);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},10754:function(){},74256:function(s,e,t){"use strict";var a=t(93989);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},93989:function(){},14189:function(s,e,t){"use strict";var a=t(2437);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},2437:function(){},84122:function(s,e,t){"use strict";var a=t(29406);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},29406:function(){},46895:function(){},18618:function(){},55167:function(s,e,t){"use strict";var a=t(90834);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(18618);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},90834:function(){},70947:function(s,e,t){"use strict";var a=t(13548);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},13548:function(){},99761:function(s,e,t){"use strict";var a=t(63520);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},63520:function(){},67669:function(s,e,t){"use strict";var a=t(20204);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},20204:function(){},60246:function(s,e,t){"use strict";var a=t(10261);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},10261:function(){},21413:function(s,e,t){"use strict";var a=t(71794);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},71794:function(){},80902:function(){},62284:function(s,e,t){"use strict";var a=t(25325);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(80902);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},25325:function(){},75113:function(s,e,t){"use strict";var a=t(62568);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},62568:function(){},62210:function(){},40723:function(s,e,t){"use strict";var a=t(32705);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},32705:function(){},63163:function(s,e,t){"use strict";t.d(e,{tabClasses:function(){return a.Z}});var a=t(21073),n=t(70612);t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},60374:function(s,e,t){"use strict";var a=t(13899);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},13899:function(){},25501:function(s,e,t){"use strict";var a=t(67893);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},67893:function(){},26945:function(s,e,t){"use strict";var a=t(61725);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},61725:function(){},55644:function(s,e,t){"use strict";var a=t(3707);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},3707:function(){},22238:function(s,e,t){"use strict";var a=t(30148);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},30148:function(){},83239:function(s,e,t){"use strict";var a=t(55969);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},55969:function(){},56495:function(s,e,t){"use strict";var a=t(73632);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},73632:function(){},16338:function(s,e,t){"use strict";var a=t(83479);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},83479:function(){},22164:function(s,e,t){"use strict";var a=t(3580);t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},3580:function(){},22386:function(s,e,t){"use strict";t.d(e,{tabsClasses:function(){return a.Z}});var a=t(90852)},1234:function(){},89860:function(){},40901:function(s,e,t){"use strict";var a=t(1234);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}});var n=t(89860);t.o(n,"tabClasses")&&t.d(e,{tabClasses:function(){return n.tabClasses}}),t.o(n,"tabsClasses")&&t.d(e,{tabsClasses:function(){return n.tabsClasses}})},91370:function(){},2373:function(s,e,t){"use strict";var a=t(50303);t.o(a,"tabClasses")&&t.d(e,{tabClasses:function(){return a.tabClasses}}),t.o(a,"tabsClasses")&&t.d(e,{tabsClasses:function(){return a.tabsClasses}})},99164:function(){},70612:function(){},29582:function(s,e,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/manage-element",function(){return t(70788)}])},87038:function(s,e,t){"use strict";var a=t(85893),n=t(67294),r=t(56597);let l=(0,n.forwardRef)((s,e)=>{let{children:t,contentContainerProps:l,dialogProps:o,onSubmitAppend:u,proceedButtonProps:i,scrollBoxProps:c,scrollContent:b,...d}=s,C=(0,n.useMemo)(()=>({...l,component:"form",onSubmit:function(){for(var s=arguments.length,e=Array(s),t=0;t({...c,sx:b?{overflowX:"hidden",paddingTop:".6em",...null==c?void 0:c.sx}:null==c?void 0:c.sx}),[c,b]);return(0,a.jsx)(r.Z,{dialogProps:o,contentContainerProps:C,proceedButtonProps:{...i,type:"submit"},scrollContent:b,scrollBoxProps:f,wide:!0,...d,ref:e,children:t})});l.displayName="FormDialog",e.Z=l},37039:function(s,e,t){"use strict";var a=t(85893),n=t(67294),r=t(48263),l=t(5616);e.Z=s=>{let{calculateItemBreakpoints:e=()=>({xs:1}),layout:t,wrapperBoxProps:o,...u}=s,i=(0,n.useMemo)(()=>{let s=Object.entries(t);return s.map((s,t)=>{let[a,l]=s;return l?(0,n.createElement)(r.ZP,{...e(t,a),key:a,item:!0,...l}):void 0})},[e,t]);return(0,a.jsx)(l.Z,{...o,children:(0,a.jsx)(r.ZP,{container:!0,...u,children:i})})}},58839:function(s,e,t){"use strict";var a=t(67294);e.Z=function(){let{actionProceedText:s="",content:e="",titleText:t="",...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,a.useState)({actionProceedText:s,content:e,titleText:t,...n})}},96867:function(s,e,t){"use strict";var a=t(67294),n=t(67645),r=t(84070),l=t(41247);e.Z=(s,e)=>{var t;let[o,u]=(0,a.useState)(!1),[i,c]=(0,a.useState)({}),b=(0,a.useCallback)(s=>{var t,a;return null==e?void 0:null===(a=e.current)||void 0===a?void 0:null===(t=a.setMessage)||void 0===t?void 0:t.call(null,"api",s)},[e]),d=(0,a.useCallback)((s,t)=>{var a,n;null==e||null===(n=e.current)||void 0===n||null===(a=n.setMessage)||void 0===a||a.call(null,String(s),t)},[e]),C=(0,a.useCallback)((s,t)=>{var a,n;null==e||null===(n=e.current)||void 0===n||null===(a=n.setMessageRe)||void 0===a||a.call(null,s,t)},[e]),f=(0,a.useCallback)((s,e)=>{c((0,r.ZP)(s,e))},[]),p=(0,a.useCallback)((s,e)=>{c((0,r.Um)(s,e))},[]),m=(0,a.useCallback)(s=>{d(s),f(s)},[d,f]),h=(0,a.useCallback)(s=>{C(s),p(s)},[C,p]),v=(0,a.useCallback)(s=>e=>{f(s,e)},[f]),x=(0,a.useCallback)(s=>e=>{let{isValid:t}=e;f(s,t)},[f]),g=(0,a.useCallback)(s=>()=>{m(s)},[m]),j=(0,a.useCallback)(s=>{let{body:a,getErrorMsg:r,msgKey:o="api",method:i,onError:c,onSuccess:b,setMsg:d=null==e?void 0:null===(t=e.current)||void 0===t?void 0:t.setMessage,successMsg:C,url:f}=s;u(!0),n.Z.request({data:a,method:i,url:f}).then(()=>{null==d||d.call(null,o,{children:C,type:"info"}),null==b||b.call(null)}).catch(s=>{let e=(0,l.Z)(s);e.children=r(e.children),null==d||d.call(null,o,e),null==c||c.call(null)}).finally(()=>{u(!1)})},[e,u]),w=(0,a.useMemo)(()=>Object.values(i).some(s=>!s),[i]);return{buildFinishInputTestBatchFunction:v,buildInputFirstRenderFunction:x,buildInputUnmountFunction:g,formValidity:i,isFormInvalid:w,isFormSubmitting:o,setApiMessage:b,setFormValidity:c,setMessage:d,setMessageRe:C,setValidity:f,setValidityRe:p,submitForm:j,unsetKey:m,unsetKeyRe:h}}},70788:function(s,e,t){"use strict";t.r(e),t.d(e,{default:function(){return manage_element}});var a=t(85893),n=t(9008),r=t.n(n),l=t(11163),o=t(67294),u=t(67645),lib_getQueryParam=function(s){let{fallbackValue:e="",joinSeparator:t="",limit:a=1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s instanceof Array?s.slice(0,a).join(t):null!=s?s:e},i=t(37039),c=t(41247),b=t(21405),d=t(98436),C=t(5616),f=t(89712),p=t(90948),m=t(34386),h=t(94121),v=t(55238),x=t(92917),g=t(55675),j=t(37260),w=t(52886),M=t(58843),Z=t(72852),I=t(6010),k=t(84154);let P=(0,p.ZP)(M.Z)({height:"3.5em",marginLeft:0,width:"100%"});var components_SwitchWithLabel=s=>{let{baseInputProps:e,checked:t,formControlLabelProps:n,id:r,label:l,name:u,onChange:i,switchProps:c}=s,b=(0,o.useMemo)(()=>"string"==typeof l?(0,a.jsx)(k.Ac,{inheritColour:!0,color:"".concat(I.s7,"AF"),children:l}):(0,a.jsx)(a.Fragment,{children:l}),[l]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(P,{componentsProps:{typography:{flexGrow:1}},control:(0,a.jsx)(Z.Z,{checked:t,edge:"end",name:u,onChange:i,...c}),label:b,labelPlacement:"start",...n}),(0,a.jsx)("input",{checked:t,hidden:!0,id:r,readOnly:!0,...e})]})},y=t(50233);let F=["1","on"],getStringParamInputTestBatch=s=>{let{formUtils:{buildFinishInputTestBatchFunction:e,setMessage:t},id:a,label:n}=s,r=e(a),onSuccess=()=>{t(a)};return"ip"===n.toLowerCase()?(0,y._)(n,onSuccess,{onFinishBatch:r},s=>{t(a,{children:s})}):{defaults:{onSuccess},onFinishBatch:r,tests:[{test:y.HJ}]}},buildNumberParamInput=s=>{let{formUtils:e,id:t,isRequired:n,label:r="",name:l=t,value:o}=s,{buildFinishInputTestBatchFunction:u,buildInputFirstRenderFunction:i,setMessage:c}=e;return(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:t,label:r,name:l,value:o}),inputTestBatch:(0,y.qY)(r,()=>{c(t)},{onFinishBatch:u(t)},s=>{c(t,{children:s})}),onFirstRender:i(t),required:n,valueType:"number"},"".concat(t,"-wrapper"))},A={boolean:s=>{let{id:e,isChecked:t=!1,label:n,name:r=e}=s;return(0,a.jsx)(x.Z,{input:(0,a.jsx)(components_SwitchWithLabel,{checked:t,id:e,label:n,name:r}),valueType:"boolean"},"".concat(e,"-wrapper"))},integer:buildNumberParamInput,second:buildNumberParamInput,select:s=>{let{formUtils:e,id:t,isRequired:n,label:r,name:l=t,selectOptions:o=[],value:u=""}=s,{buildFinishInputTestBatchFunction:i,buildInputFirstRenderFunction:c,setMessage:b}=e;return(0,a.jsx)(x.Z,{input:(0,a.jsx)(w.Z,{id:t,label:r,name:l,selectItems:o,value:u}),inputTestBatch:{defaults:{onSuccess:()=>{b(t)}},onFinishBatch:i(t),tests:[{test:y.HJ}]},onFirstRender:c(t),required:n},"".concat(t,"-wrapper"))},string:s=>{let e;let{formUtils:t,id:n,isRequired:r,isSensitive:l=!1,label:o="",name:u=n,value:i}=s,{buildInputFirstRenderFunction:c}=t;return l&&(e=h.Z.password),(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:n,label:o,name:u,type:e,value:i}),inputTestBatch:getStringParamInputTestBatch({formUtils:t,id:n,label:o}),onFirstRender:c(n),required:r},"".concat(n,"-wrapper"))}},combineIds=function(){for(var s=arguments.length,e=Array(s),t=0;t{let{fenceId:e,fenceParameterTooltipProps:t,fenceTemplate:n,formUtils:r,previousFenceName:l,previousFenceParameters:u}=s,{buildFinishInputTestBatchFunction:i,buildInputFirstRenderFunction:c,setMessage:b}=r,d=(0,o.useMemo)(()=>{let s;if(n&&e){let{parameters:o}=n[e],d={};u&&(d=Object.entries(u).reduce((s,t)=>{let[a,n]=t,r=combineIds(e,a);return s[r]=n,s},{}));let{optional:f,required:p}=Object.entries(o).sort((s,e)=>{let[t]=s,[a]=e;return t>a?1:-1}).reduce((s,n)=>{var l,o;let[u,{content_type:i,default:c,deprecated:b,description:f,options:p,required:h}]=n,v="1"===String(b);if(v)return s;let{optional:x,required:g}=s,j=null!==(l=A[i])&&void 0!==l?l:A.string,w=combineIds(e,u),M=null!==(o=d[w])&&void 0!==o?o:c,Z="1"===String(h),I=/passw/i.test(u),P=j({formUtils:r,id:w,isChecked:F.includes(M),isRequired:Z,isSensitive:I,label:u,selectOptions:p,value:M}),y=(0,a.jsx)(m.Z,{componentsProps:{tooltip:{sx:{maxWidth:{md:"62.6em"}}}},disableInteractive:!0,placement:"top-start",title:(0,a.jsx)(k.Ac,{children:f}),...t,children:(0,a.jsx)(C.Z,{children:P})},"".concat(w,"-tooltip"));return Z?g.push(y):x.push(y),s},{optional:[],required:[]}),h=combineIds(e,"name"),w="Fence device name";s=(0,a.jsxs)(v.Z,{sx:{"& > div:first-child":{marginTop:0},"& > div":{marginBottom:0}},children:[(0,a.jsx)(j.TZ,{expandInitially:!0,header:"Required parameters",children:(0,a.jsxs)(S,{children:[(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:h,label:w,name:h,value:l}),inputTestBatch:(0,y.Gn)(w,()=>{b(h)},{onFinishBatch:i(h)},s=>{b(h,{children:s})}),onFirstRender:c(h),required:!0},"".concat(h,"-wrapper")),p]})}),(0,a.jsx)(j.TZ,{header:"Optional parameters",children:(0,a.jsx)(S,{children:f})})]})}return s},[i,c,e,t,n,r,l,u,b]);return(0,a.jsx)(a.Fragment,{children:d})},T=t(81796),_=t(42702);let U="add-fence-input-agent";var ManageFence_AddFenceInputGroup=s=>{let{fenceTemplate:e,formUtils:t,loading:n}=s,{setValidity:r}=t,l=(0,_.Z)(),[u,i]=(0,o.useState)(null),c=(0,o.useMemo)(()=>e?Object.entries(e).sort((s,e)=>{let[t]=s,[a]=e;return t>a?1:-1}).map(s=>{let[e,{description:t}]=s;return{fenceDescription:"string"==typeof t?t:"No description.",fenceId:e,label:e}}):[],[e]),b=(0,o.useMemo)(()=>(0,a.jsx)(f.Z,{id:U,isOptionEqualToValue:(s,e)=>s.fenceId===e.fenceId,label:"Fence device type",onChange:(s,e)=>{r(U,null!==e),i(e)},openOnFocus:!0,options:c,renderOption:(s,e,t)=>{let{fenceDescription:n,fenceId:r}=e,{selected:l}=t;return(0,a.jsxs)(C.Z,{component:"li",sx:{display:"flex",flexDirection:"column","& > *":{width:"100%"}},...s,children:[(0,a.jsx)(k.Ac,{inverted:!0,sx:{fontSize:"1.2em",fontWeight:l?400:void 0},children:r}),(0,a.jsx)(k.Ac,{selected:!1,children:n})]})},sx:{marginTop:".3em"},value:u}),[c,u,r]),d=(0,o.useMemo)(()=>(0,a.jsx)(ManageFence_CommonFenceInputGroup,{fenceId:null==u?void 0:u.fenceId,fenceTemplate:e,formUtils:t}),[e,null==u?void 0:u.fenceId,t]),p=(0,o.useMemo)(()=>n?(0,a.jsx)(T.Z,{}):(0,a.jsxs)(v.Z,{children:[b,d]}),[b,d,n]);return(0,o.useEffect)(()=>{l&&r(U,null!==u)},[u,l,r]),(0,a.jsx)(a.Fragment,{children:p})},N=t(56597),ManageFence_EditFenceInputGroup=s=>{let{fenceId:e,fenceTemplate:t,formUtils:n,loading:r,previousFenceName:l,previousFenceParameters:u}=s,i=(0,o.useMemo)(()=>r?(0,a.jsx)(T.Z,{}):(0,a.jsx)(ManageFence_CommonFenceInputGroup,{fenceId:e,fenceTemplate:t,formUtils:n,previousFenceName:l,previousFenceParameters:u}),[t,e,n,r,l,u]);return(0,a.jsx)(a.Fragment,{children:i})},O=t(87038),R=t(15079),E=t(63071),H=t(21642),D=t(64666),q=t(32576),B=t(58839),G=t(96867);let assertFormInputId=s=>{let{id:e}=s,t=new RegExp("^(fence[^-]+)".concat("-","([^\\s]+)$")),a=e.match(t);if(!a)throw Error("Not target input element");return a},assertFormInputName=(s,e,t)=>{if("name"===s)throw e.name=t,Error("Not child parameter")},assertFormParamSpec=s=>{if(!s)throw Error("Not parameter specification")},assertFormParamValue=(s,e)=>{if([e,"",null,void 0].some(e=>s===e))throw Error("Skippable parameter value")},getFormData=function(s){for(var e=arguments.length,t=Array(e>1?e-1:0),a=1;a{try{let a=assertFormInputId(t),[,n,r]=a;e.agent=n;let{checked:l,value:o}=t;assertFormInputName(r,e,o);let{[n]:{parameters:{[r]:u}}}=s;assertFormParamSpec(u);let{content_type:i,default:c}=u,b=o;"boolean"===i&&(b=l?"1":""),assertFormParamValue(b,c),e.parameters[r]=b}catch(s){}return e},{agent:"",name:"",parameters:{}})};var ManageFence=()=>{let s=(0,_.Z)(),e=(0,o.useRef)({}),t=(0,o.useRef)({}),n=(0,o.useRef)({}),[r,l]=(0,B.Z)(),[i,b]=(0,B.Z)(),[C,f]=(0,o.useState)(),[p,m]=(0,o.useState)(),[h,x]=(0,o.useState)(!1),[g,w]=(0,o.useState)(!0),{isLoading:M}=(0,D.Z)("".concat(d.Z,"/fence"),{onSuccess:s=>f(s),refreshInterval:6e4}),Z=(0,o.useCallback)(()=>{u.Z.get("/fence").then(s=>{let{data:e}=s;f(e)})},[f]),I=(0,G.Z)([U],n),{isFormInvalid:P,isFormSubmitting:y,submitForm:F}=I,{buildDeleteDialogProps:A,checks:S,getCheck:L,hasChecks:z,resetChecks:V,setCheck:W}=(0,q.Z)({list:C}),Q=(0,o.useCallback)(s=>{let{cap:e,depth:t,key:a}=s;return 0===t?e(a):a},[]),$=(0,o.useMemo)(()=>(0,a.jsx)(E.Z,{allowEdit:!0,allowItemButton:h,disableDelete:!z,edit:h,header:!0,listItems:C,onAdd:()=>{var s;b({actionProceedText:"Add",content:(0,a.jsx)(ManageFence_AddFenceInputGroup,{fenceTemplate:p,formUtils:I}),onSubmitAppend:s=>{var t;if(!p)return;let n=getFormData(p,s),{agent:r,name:o}=n;l({actionProceedText:"Add",content:(0,a.jsx)(R.Z,{entries:n,hasPassword:!0,getEntryLabel:Q}),onProceedAppend:()=>{F({body:n,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to add fence device. ",s]}),method:"post",onSuccess:()=>Z(),successMsg:"Added fence device ".concat(o),url:"/fence"})},titleText:(0,a.jsxs)(k.z,{children:["Add a"," ",(0,a.jsx)(k.Q0,{fontSize:"inherit",children:r})," ","fence device with the following parameters?"]})}),null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},titleText:"Add a fence device"}),null===(s=t.current.setOpen)||void 0===s||s.call(null,!0)},onDelete:()=>{var s;l(A({getConfirmDialogTitle:s=>"Delete ".concat(s," fence device(s)?"),onProceedAppend:()=>{F({body:{uuids:S},getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to delete fence device(s). ",s]}),method:"delete",onSuccess:()=>{Z(),V()},url:"/fence"})},renderEntry:s=>{let{key:e}=s;return(0,a.jsx)(k.Ac,{children:null==C?void 0:C[e].fenceName})}})),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},onEdit:()=>{x(s=>!s)},onItemCheckboxChange:(s,e,t)=>{W(s,t)},onItemClick:s=>{var n;let{fenceAgent:r,fenceName:o,fenceParameters:u,fenceUUID:i}=s;b({actionProceedText:"Update",content:(0,a.jsx)(ManageFence_EditFenceInputGroup,{fenceId:r,fenceTemplate:p,formUtils:I,previousFenceName:o,previousFenceParameters:u}),onSubmitAppend:s=>{var t;if(!p)return;let n=getFormData(p,s);l({actionProceedText:"Update",content:(0,a.jsx)(R.Z,{entries:n,hasPassword:!0,getEntryLabel:Q}),onProceedAppend:()=>{F({body:n,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to update fence device. ",s]}),method:"put",onSuccess:()=>Z(),successMsg:"Updated fence device ".concat(o),url:"/fence/".concat(i)})},titleText:(0,a.jsxs)(k.z,{children:["Update"," ",(0,a.jsx)(k.Q0,{fontSize:"inherit",children:o})," ","fence device with the following parameters?"]})}),null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},titleText:(0,a.jsxs)(k.z,{children:["Update fence device"," ",(0,a.jsx)(k.Q0,{fontSize:"inherit",children:o})," ","parameters"]})}),null===(n=t.current.setOpen)||void 0===n||n.call(null,!0)},renderListItemCheckboxState:s=>L(s),renderListItem:(s,e)=>{let{fenceAgent:t,fenceName:n,fenceParameters:r}=e;return(0,a.jsxs)(v.Z,{row:!0,children:[(0,a.jsx)(k.Ac,{children:n}),(0,a.jsx)(k.Ac,{children:Object.entries(r).reduce((s,e)=>{let[t,n]=e,r=(0,a.jsxs)(a.Fragment,{children:[t,'="']});return r=/passw/i.test(t)?(0,a.jsxs)(a.Fragment,{children:[r,(0,a.jsx)(k.PJ,{inline:!0,children:n})]}):(0,a.jsxs)(a.Fragment,{children:[r,n]}),(0,a.jsxs)(a.Fragment,{children:[s," ",r,'"']})},t)})]})}}),[A,S,C,p,I,L,Z,Q,z,h,V,W,l,b,F]),J=(0,o.useMemo)(()=>g||M?(0,a.jsx)(T.Z,{}):$,[M,g,$]),K=(0,o.useMemo)(()=>(0,a.jsx)(H.Z,{count:1,defaultMessageType:"warning",ref:n}),[]);return s&&u.Z.get("/fence/template").then(s=>{let{data:e}=s;m(e)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{w(!1)}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(j.s_,{children:[(0,a.jsx)(j.V9,{children:(0,a.jsx)(k.z,{children:"Manage fence devices"})}),J]}),(0,a.jsx)(O.Z,{dialogProps:{PaperProps:{sx:{minWidth:{xs:"90%",md:"50em"}}}},scrollBoxProps:{padding:".3em .5em"},...i,disableProceed:P,loadingAction:y,preActionArea:K,ref:t,scrollContent:!0,showClose:!0}),(0,a.jsx)(N.Z,{closeOnProceed:!0,scrollBoxProps:{paddingRight:"1em"},...r,ref:e,scrollContent:!0})]})},L=t(82456),z=t(48263),V=t(73393),W=t(84376),Q=t(64568),$=t(53640),J=t(40476),K=t(68061),components_RadioGroupWithLabel=s=>{let{formControlProps:e,formControlLabelProps:t,formLabelProps:n,id:r,label:l,name:u,onChange:i,radioItems:c,radioProps:{sx:b,...d}={},radioGroupProps:C,value:f}=s,p=(0,o.useMemo)(()=>"string"==typeof l?(0,a.jsx)(k.Ac,{children:l}):l,[l]),m=(0,o.useMemo)(()=>{let s=Object.entries(c);return s.map(s=>{let[e,{label:n,value:l}]=s,o="string"==typeof n?(0,a.jsx)(k.Ac,{children:n}):n;return(0,a.jsx)(M.Z,{control:(0,a.jsx)(W.Z,{...d,sx:{["&.".concat(Q.Z.root)]:{color:I.s7},...b}}),value:l,label:o,...t},"".concat(r,"-").concat(e))})},[t,r,c,b,d]);return(0,a.jsxs)($.Z,{...e,children:[(0,a.jsx)(J.Z,{...n,children:p}),(0,a.jsx)(K.Z,{id:r,name:u,onChange:i,row:!0,value:f,...C,children:m})]})},X=t(16310),Y=t(65939);let ss=X.Ry().shape({enterpriseKey:X.Z_().uuid().optional(),ip:X.Z_().matches(Y.tf,{message:"Expected IP address to be a valid IPv4 address."}),name:X.Z_().required(),redhatConfirmPassword:X.Z_().when("redhatPassword",(s,e)=>String(s).length>0?e.required().oneOf([X.iH("redhatPassword")]):e.optional()),redhatPassword:X.Z_().when("redhatUsername",(s,e)=>String(s).length>0?e.required():e.optional()),redhatUsername:X.Z_().when("redhatPassword",(s,e)=>String(s).length>0?e.required():e.optional()),type:X.Z_().oneOf(["dr","subnode"]).required(),uuid:X.Z_().uuid().required()},[["redhatUsername","redhatPassword"]]);var se=t(88468),st=t(21197);let sa={subnode:{label:"Subnode",value:"subnode"},dr:{label:"Disaster Recovery (DR) host",value:"dr"}};var ManageHost_PrepareHostForm=s=>{let{host:e,tools:t}=s,{disabledSubmit:n,formik:r,formikErrors:l,handleChange:i}=(0,st.Z)({initialValues:{ip:e.hostIpAddress,name:e.hostName,password:e.hostPassword,type:"",uuid:e.hostUUID},onSubmit:(s,e)=>{let{setSubmitting:n}=e,{enterpriseKey:r,ip:l,name:o,password:i,type:b,uuid:d,redhatPassword:C,redhatUsername:f}=s;t.confirm.prepare({actionProceedText:"Prepare",content:(0,a.jsx)(R.Z,{entries:s,hasPassword:!0}),onCancelAppend:()=>n(!1),onProceedAppend:()=>{t.confirm.loading(!0),u.Z.put("/host/prepare",{enterpriseUUID:r,hostIPAddress:l,hostName:o,hostPassword:i,hostType:"subnode"===b?"node":b,hostUUID:d,redhatPassword:C,redhatUser:f}).then(()=>{t.confirm.finish("Success",{children:(0,a.jsxs)(a.Fragment,{children:["Started job to prepare host at ",l,"."]})}),t.add.open(!1)}).catch(s=>{let e=(0,c.Z)(s);e.children=(0,a.jsxs)(a.Fragment,{children:["Failed to prepare host at ",l,". ",e.children]}),t.confirm.finish("Error",e),n(!1)})},titleText:"Prepare host at ".concat(s.ip," with the following?")}),t.confirm.open()},validationSchema:ss}),b=(0,o.useMemo)(()=>"enterpriseKey",[]),d=(0,o.useMemo)(()=>"name",[]),C=(0,o.useMemo)(()=>"redhatConfirmPassword",[]),f=(0,o.useMemo)(()=>"redhatPassword",[]),p=(0,o.useMemo)(()=>"redhatUsername",[]),m=(0,o.useMemo)(()=>"type",[]),h=(0,o.useMemo)(()=>e.isInetConnected&&/rhel/i.test(e.hostOS)&&!e.isOSRegistered,[e.hostOS,e.isInetConnected,e.isOSRegistered]);return(0,a.jsxs)(z.ZP,{columns:{xs:1,sm:2},component:"form",container:!0,onSubmit:s=>{s.preventDefault(),r.submitForm()},spacing:"1em",children:[(0,a.jsx)(z.ZP,{item:!0,width:"100%",children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(components_RadioGroupWithLabel,{id:m,label:"Host type",name:m,onChange:i,radioItems:sa,value:r.values.type})})}),(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{id:d,label:"Host name",name:d,onChange:i,required:!0,value:r.values.name})})}),(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{id:b,label:"Alteeve enterprise key",name:b,onChange:i,value:r.values.enterpriseKey})})}),h&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{disableAutofill:!0,id:p,label:"RedHat username",name:p,onChange:i,value:r.values.redhatUsername})})}),(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{disableAutofill:!0,id:f,label:"RedHat password",name:f,onChange:i,type:"password",value:r.values.redhatPassword})})}),(0,a.jsx)(z.ZP,{display:{xs:"none",sm:"initial"},item:!0,sm:1}),(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{disableAutofill:!0,id:C,label:"Confirm RedHat password",name:C,onChange:i,type:"password",value:r.values.redhatConfirmPassword})})})]}),(0,a.jsx)(z.ZP,{item:!0,width:"100%",children:(0,a.jsx)(H.Z,{count:1,messages:l})}),(0,a.jsx)(z.ZP,{item:!0,width:"100%",children:(0,a.jsx)(V.Z,{actions:[{background:"blue",children:"Prepare host",disabled:n,type:"submit"}]})})]})};let sn=X.Ry({ip:X.Z_().matches(Y.tf,{message:"Expected IP address to be a valid IPv4 address."}).required(),password:X.Z_().required()});var ManageHost_TestAccessForm=s=>{let{setResponse:e}=s,t=(0,o.useRef)(null),[n,r]=(0,o.useState)(!1),l=(0,o.useCallback)(s=>{var e,a;return null==t?void 0:null===(a=t.current)||void 0===a?void 0:null===(e=a.setMessage)||void 0===e?void 0:e.call(null,"api",s)},[]),{disabledSubmit:i,formik:b,formikErrors:d,handleChange:C}=(0,st.Z)({initialValues:{ip:"",password:""},onSubmit:(s,t)=>{let{setSubmitting:n}=t;r(!0),e(void 0);let{ip:o,password:i}=s;u.Z.put("/command/inquire-host",{ipAddress:o,password:i}).then(s=>{let{data:t}=s;e({...t,hostIpAddress:o,hostPassword:i}),l()}).catch(s=>{let e=(0,c.Z)(s);e.children=(0,a.jsxs)(a.Fragment,{children:["Failed to access ",o,". ",e.children]}),l(e)}).finally(()=>{n(!1),r(!1)})},validationSchema:sn}),f=(0,o.useMemo)(()=>"ip",[]),p=(0,o.useMemo)(()=>"password",[]);return(0,a.jsxs)(z.ZP,{component:"form",container:!0,columns:{xs:1,sm:2},onSubmit:s=>{s.preventDefault(),b.submitForm()},spacing:"1em",children:[(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{disableAutofill:!0,id:f,label:"IP address",name:f,onChange:C,required:!0,value:b.values.ip})})}),(0,a.jsx)(z.ZP,{item:!0,xs:1,children:(0,a.jsx)(se.Z,{input:(0,a.jsx)(g.Z,{disableAutofill:!0,id:p,label:"Password",name:p,onChange:C,required:!0,type:"password",value:b.values.password})})}),n?(0,a.jsx)(z.ZP,{item:!0,width:"100%",children:(0,a.jsx)(T.Z,{})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(z.ZP,{item:!0,width:"100%",children:(0,a.jsx)(H.Z,{count:1,messages:d,ref:t})}),(0,a.jsx)(z.ZP,{item:!0,width:"100%",children:(0,a.jsx)(V.Z,{actions:[{background:"blue",children:"Test access",disabled:i,type:"submit"}]})})]})]})},ManageHost_ManageHost=()=>{let[s,e]=(0,o.useState)();return(0,a.jsx)(L.Z,{addHeader:"Initialize host",editHeader:"",entriesUrl:"/host?types=dr,node",entryUrlPrefix:"/host",getDeleteErrorMessage:function(s){for(var e=arguments.length,t=Array(e>1?e-1:0),n=1;n"Delete the following ".concat(s," host(s)?"),getDeleteSuccessMessage:()=>({children:(0,a.jsx)(a.Fragment,{children:"Successfully deleted host(s)"})}),listEmpty:"No host(s) found",listProps:{allowAddItem:!0,allowEdit:!1},renderAddForm:t=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ManageHost_TestAccessForm,{setResponse:e}),s&&(0,a.jsx)(ManageHost_PrepareHostForm,{host:s,tools:t})]}),renderDeleteItem:(s,e)=>{let{key:t}=e,n=null==s?void 0:s[t];return(0,a.jsx)(k.Ac,{children:null==n?void 0:n.shortHostName})},renderEditForm:()=>(0,a.jsx)(a.Fragment,{}),renderListItem:(s,e)=>{let{hostName:t}=e;return(0,a.jsx)(k.Ac,{children:t})}})},sr=t(28951);let sl="an-host-input",so="".concat(sl,"-cell"),su="IPMI IP",si={fence:(s,e)=>{let{dataset:{hostId:t="",fenceId:a="",fenceName:n=""},value:r}=e,{hostConfig:{hosts:{[t]:l}}}=s,{fences:o={}}=l;o[a]={fenceName:n,fencePort:r},l.fences=o},host:(s,e)=>{let{dataset:{hostId:t="",hostNumber:a="",hostType:n=""}}=e,r=Number.parseInt(a,10);s.hostConfig.hosts[t]={hostNumber:r,hostType:n}},ipmi:(s,e)=>{let{dataset:{hostId:t=""},value:a}=e,{hostConfig:{hosts:{[t]:n}}}=s;n.ipmiIp=a},network:(s,e)=>{let{dataset:{hostId:t="",networkId:a="",networkNumber:n="",networkType:r=""},value:l}=e,{hostConfig:{hosts:{[t]:o}}}=s,{networks:u={}}=o,i=Number.parseInt(n,10);u[a]={networkIp:l,networkNumber:i,networkType:r},o.networks=u},ups:(s,e)=>{let{checked:t,dataset:{hostId:a="",upsId:n="",upsName:r=""}}=e,{hostConfig:{hosts:{[a]:l}}}=s,{upses:o={}}=l;o[n]={isUsed:t,upsName:r},l.upses=o}},sc={xs:1,sm:2,md:3},buildInputIdAHFencePort=(s,e)=>"".concat(sl,"-").concat(s,"-").concat(e,"-port"),buildInputIdAHIpmiIp=s=>"".concat(sl,"-").concat(s,"-ipmi-ip"),buildInputIdAHNetworkIp=(s,e)=>"".concat(sl,"-").concat(s,"-").concat(e,"-ip"),buildInputIdAHUpsPowerHost=(s,e)=>"".concat(sl,"-").concat(s,"-").concat(e,"-power-host");var ManageManifest_AnHostInputGroup=s=>{let{formUtils:{buildFinishInputTestBatchFunction:e,buildInputFirstRenderFunction:t,buildInputUnmountFunction:n,setMessage:r},hostId:l,hostNumber:u,hostType:c,previous:{fences:b={},ipmiIp:d,networks:C={},upses:f={}}={},hostLabel:p="".concat(c.replace("node","subnode")," ").concat(u)}=s,m=(0,o.useMemo)(()=>Object.entries(b),[b]),h=(0,o.useMemo)(()=>Object.entries(C),[C]),w=(0,o.useMemo)(()=>Object.entries(f),[f]),M=(0,o.useMemo)(()=>!!w.length,[w.length]),Z=(0,o.useMemo)(()=>"".concat(sl,"-").concat(l),[l]),I=(0,o.useMemo)(()=>buildInputIdAHIpmiIp(l),[l]),P=(0,o.useMemo)(()=>"".concat(so,"-").concat(l,"-ipmi-ip"),[l]),F=(0,o.useMemo)(()=>m.reduce((s,n)=>{let[o,{fenceName:u,fencePort:i}]=n,c="".concat(so,"-").concat(l,"-").concat(o,"-port"),b=buildInputIdAHFencePort(l,o),d="Port on ".concat(u);return s[c]={children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{baseInputProps:{"data-handler":"fence","data-host-id":l,"data-fence-id":o,"data-fence-name":u},id:b,label:d,value:i}),inputTestBatch:(0,y.Gn)("".concat(l," ").concat(d),()=>{r(b)},{onFinishBatch:e(b)},s=>{r(b,{children:s})}),onFirstRender:t(b),required:!0})},s},{}),[e,t,m,l,r]),A=(0,o.useMemo)(()=>h.reduce((s,o)=>{let[u,{networkIp:i,networkNumber:c,networkType:b}]=o,d="".concat(so,"-").concat(l,"-").concat(u,"-ip"),C=buildInputIdAHNetworkIp(l,u),f="".concat(b.toUpperCase()," ").concat(c," IP");return s[d]={children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{baseInputProps:{"data-handler":"network","data-host-id":l,"data-network-id":u,"data-network-number":c,"data-network-type":b},id:C,label:f,value:i}),inputTestBatch:(0,y._)("".concat(l," ").concat(f),()=>{r(C)},{onFinishBatch:e(C)},s=>{r(C,{children:s})}),onFirstRender:t(C),onUnmount:n(C),required:!0})},s},{}),[h,l,e,t,n,r]),S=(0,o.useMemo)(()=>w.reduce((s,e)=>{let[t,{isUsed:n,upsName:r}]=e,o="".concat(so,"-").concat(l,"-").concat(t,"-power-host"),u=buildInputIdAHUpsPowerHost(l,t);return s[o]={children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(components_SwitchWithLabel,{baseInputProps:{"data-handler":"ups","data-host-id":l,"data-ups-id":t,"data-ups-name":r},checked:n,id:u,label:"Uses ".concat(r)}),valueType:"boolean"})},s},{}),[l,w]),T=(0,o.useMemo)(()=>M&&(0,a.jsx)(i.Z,{columns:sc,layout:S,spacing:"1em"}),[M,S]);return(0,a.jsxs)(j.Lg,{mv:0,children:[(0,a.jsx)(j.CH,{children:(0,a.jsx)(k.Ac,{children:p})}),(0,a.jsxs)(j.bc,{children:[(0,a.jsx)("input",{hidden:!0,id:Z,readOnly:!0,"data-handler":"host","data-host-id":l,"data-host-number":u,"data-host-type":c}),(0,a.jsxs)(v.Z,{children:[(0,a.jsx)(i.Z,{columns:sc,layout:{...A,[P]:{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{baseInputProps:{"data-handler":"ipmi","data-host-id":l},id:I,label:su,value:d}),inputTestBatch:(0,y._)("".concat(l," ").concat(su),()=>{r(I)},{onFinishBatch:e(I)},s=>{r(I,{children:s})}),onFirstRender:t(I),onUnmount:n(I)})},...F},spacing:"1em"}),T]})]})]})};let sb="".concat("".concat("an-host-config-input","-group"),"-cell"),sd={node1:{hostNumber:1,hostType:"node"},node2:{hostNumber:2,hostType:"node"}},guessHostIpOnNetwork=s=>{let{anSeq:e,minIp:t,offset3:a=10,step3:n=2,subnetMask:r,subSeq:l}=s;try{let s=new sr.Netmask("".concat(t,"/").concat(r));if(16!==s.bitmask)return"".concat(s.base.replace(/\.0/g,""),".");return t.replace(/^((\d+\.){2})\d+\.\d+$/,"$1".concat((e-1)*n+a,".").concat(l))}catch(s){return""}};var ManageManifest_AnHostConfigInputGroup=s=>{let{anSequence:e,formUtils:t,knownFences:n={},knownUpses:r={},networkListEntries:l,previous:{hosts:u=sd}={}}=s,c=(0,o.useMemo)(()=>Object.entries(u),[u]),b=(0,o.useMemo)(()=>Object.values(n),[n]),d=(0,o.useMemo)(()=>Object.values(r),[r]),C=(0,o.useMemo)(()=>c.reduce((s,n)=>{let[r,o]=n,{fences:u={},hostNumber:i,hostType:c,ipmiIp:C,networks:f={},upses:p={}}=o,m=C,h=b.reduce((s,e)=>{let{fenceName:t}=e,{[t]:{fencePort:a=""}={}}=u;return s[t]={fenceName:t,fencePort:a},s},{}),v=l.reduce((s,t)=>{let[a,{networkMinIp:n,networkNumber:r,networkSubnetMask:l,networkType:o}]=t,{[a]:{networkIp:u=""}={}}=f;return u||(u=guessHostIpOnNetwork({anSeq:e,minIp:n,subnetMask:l,subSeq:i})),m||"bcn"!==o||1!==r||(m=guessHostIpOnNetwork({anSeq:e,minIp:n,offset3:11,subnetMask:l,subSeq:i})),s[a]={networkIp:u,networkNumber:r,networkType:o},s},{}),x=d.reduce((s,e)=>{let{upsName:t}=e,{[t]:{isUsed:a=!0}={}}=p;return s[t]={isUsed:a,upsName:t},s},{}),g="".concat(sb,"-").concat(r);return s[g]={children:(0,a.jsx)(ManageManifest_AnHostInputGroup,{formUtils:t,hostId:r,hostNumber:i,hostType:c,previous:{fences:h,ipmiIp:m,networks:v,upses:x}}),md:3,sm:2},s},{}),[e,t,c,b,d,l]);return(0,a.jsx)(i.Z,{columns:{xs:1,sm:2,md:3},layout:C,spacing:"1em"})},sC=t(23279),sf=t.n(sC);let sp="an-id-input",sm="".concat(sp,"-domain"),sh="".concat(sp,"-prefix"),sv="".concat(sp,"-sequence"),sx="Domain name",sg="Prefix",sj="Sequence";var ManageManifest_AnIdInputGroup=s=>{let{debounceWait:e=500,formUtils:{buildFinishInputTestBatchFunction:t,buildInputFirstRenderFunction:n,setMessage:r},onSequenceChange:l,previous:{domain:u,prefix:c,sequence:b}={}}=s,d=(0,o.useMemo)(()=>l&&sf()(l,e),[e,l]);return(0,a.jsx)(i.Z,{columns:{xs:1,sm:2,md:3},layout:{"an-id-input-cell-prefix":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sh,label:sg,value:c}),inputTestBatch:(0,y.Gn)(sg,()=>{r(sh)},{onFinishBatch:t(sh)},s=>{r(sh,{children:s})}),onFirstRender:n(sh),required:!0})},"an-id-input-cell-domain":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sm,label:sx,value:u}),inputTestBatch:(0,y.Gn)(sx,()=>{r(sm)},{onFinishBatch:t(sm)},s=>{r(sm,{children:s})}),onFirstRender:n(sm),required:!0})},"an-id-input-cell-sequence":{children:(0,a.jsx)(x.Z,{createInputOnChangeHandlerOptions:{postSet:d},input:(0,a.jsx)(g.Z,{id:sv,label:sj,value:b}),inputTestBatch:(0,y.qY)(sj,()=>{r(sv)},{onFinishBatch:t(sv)},s=>{r(sv,{children:s})}),onFirstRender:n(sv),required:!0,valueType:"number"})}},spacing:"1em"})},sw=t(25934),sM=t(5813),sZ=t(83221);let sI="an-network-input",sk="".concat(sI,"-cell"),sP={gateway:(s,e)=>{let{dataset:{networkId:t=""},value:a}=e,{networkConfig:{networks:n}}=s;n[t].networkGateway=a},minip:(s,e)=>{let{dataset:{networkId:t=""},value:a}=e,{networkConfig:{networks:n}}=s;n[t].networkMinIp=a},network:(s,e)=>{let{dataset:{networkId:t="",networkNumber:a="",networkType:n=""}}=e,{networkConfig:{networks:r}}=s,l=Number.parseInt(a,10);r[t]={networkNumber:l,networkType:n}},subnetmask:(s,e)=>{let{dataset:{networkId:t=""},value:a}=e,{networkConfig:{networks:n}}=s;n[t].networkSubnetMask=a}},buildInputIdANGateway=s=>"".concat(sI,"-").concat(s,"-gateway"),buildInputIdANMinIp=s=>"".concat(sI,"-").concat(s,"-min-ip"),buildInputIdANNetworkType=s=>"".concat(sI,"-").concat(s,"-network-type"),buildInputIdANSubnetMask=s=>"".concat(sI,"-").concat(s,"-subnet-mask");var ManageManifest_AnNetworkInputGroup=s=>{let{debounceWait:e=500,formUtils:{buildFinishInputTestBatchFunction:t,buildInputFirstRenderFunction:n,buildInputUnmountFunction:r,setMessage:l},inputGatewayLabel:u="Gateway",inputMinIpLabel:c="IP address",inputSubnetMaskLabel:b="Subnet mask",networkId:d,networkNumber:C,networkType:f,networkTypeOptions:p,onClose:m,onNetworkGatewayChange:h,onNetworkMinIpChange:v,onNetworkSubnetMaskChange:M,onNetworkTypeChange:Z,previous:{gateway:I,minIp:k,subnetMask:P}={},readonlyNetworkName:F,showCloseButton:A,showGateway:S}=s,T=(0,o.useMemo)(()=>"".concat(sM.default[f]," ").concat(C),[C,f]),_=(0,o.useMemo)(()=>"".concat(sk,"-").concat(d,"-gateway"),[d]),U=(0,o.useMemo)(()=>"".concat(sk,"-").concat(d,"-ip"),[d]),N=(0,o.useMemo)(()=>"".concat(sk,"-").concat(d,"-subnet-mask"),[d]),O=(0,o.useMemo)(()=>"".concat(sI,"-").concat(d),[d]),R=(0,o.useMemo)(()=>buildInputIdANGateway(d),[d]),E=(0,o.useMemo)(()=>buildInputIdANMinIp(d),[d]),H=(0,o.useMemo)(()=>buildInputIdANNetworkType(d),[d]),D=(0,o.useMemo)(()=>buildInputIdANSubnetMask(d),[d]),q=(0,o.useMemo)(()=>S?void 0:"none",[S]),B=(0,o.useMemo)(()=>h&&sf()(h,e),[e,h]),G=(0,o.useMemo)(()=>v&&sf()(v,e),[e,v]),L=(0,o.useMemo)(()=>M&&sf()(M,e),[e,M]),z=(0,o.useMemo)(()=>A&&(0,a.jsx)(sZ.Z,{mapPreset:"close",iconProps:{fontSize:"small"},onClick:function(){for(var s=arguments.length,e=Array(s),t=0;t{let s;return S&&R&&(s=(0,a.jsx)(x.Z,{createInputOnChangeHandlerOptions:{postSet:function(){for(var s=arguments.length,e=Array(s),t=0;t{l(R)},{onFinishBatch:t(R)},s=>{l(R,{children:s})}),onFirstRender:n(R),onUnmount:r(R),required:S})),s},[S,R,d,u,I,T,t,n,r,B,f,l]);return(0,a.jsxs)(j.Lg,{mv:0,children:[(0,a.jsxs)(j.CH,{children:[(0,a.jsx)(x.Z,{input:(0,a.jsx)(w.Z,{id:H,isReadOnly:F,onChange:function(){for(var s=arguments.length,e=Array(s),t=0;tT},value:f})}),z]}),(0,a.jsxs)(j.bc,{children:[(0,a.jsx)("input",{hidden:!0,id:O,readOnly:!0,"data-handler":"network","data-network-id":d,"data-network-number":C,"data-network-type":f}),(0,a.jsx)(i.Z,{columns:{xs:1,sm:2,md:3},layout:{[U]:{children:(0,a.jsx)(x.Z,{createInputOnChangeHandlerOptions:{postSet:function(){for(var s=arguments.length,e=Array(s),t=0;t{l(E)},{onFinishBatch:t(E)},s=>{l(E,{children:s})}),onFirstRender:n(E),onUnmount:r(E),required:!0})},[N]:{children:(0,a.jsx)(x.Z,{createInputOnChangeHandlerOptions:{postSet:function(){for(var s=arguments.length,e=Array(s),t=0;t{l(D)},{onFinishBatch:t(D)},s=>{l(D,{children:s})}),onFirstRender:n(D),onUnmount:r(D),required:!0})},[_]:{children:V,display:q}},spacing:"1em"})]})]})},sy=t(84070);let sF="an-network-config-input",sA="".concat(sF,"-cell"),sS="".concat(sF,"-dns"),sT="".concat(sF,"-mtu"),s_="".concat(sF,"-ntp"),sU=Object.entries(sM.default),sN={bcn:{base:"10.201.0.0",mask:"255.255.0.0"},mn:{base:"10.199.0.0",mask:"255.255.0.0"},sn:{base:"10.101.0.0",mask:"255.255.0.0"}},assertIfn=s=>"ifn"===s,assertMn=s=>"mn"===s,guessNetworkMinIp=s=>{let{entries:e,type:t}=s,a=e.filter(s=>{let[,{networkType:e}]=s;return e===t}).sort((s,e)=>{let[,{networkNumber:t}]=s,[,{networkNumber:a}]=e;return t>a?1:-1}).pop();if(!a){var n;return null!==(n=sN[t])&&void 0!==n?n:{}}let[,{networkMinIp:r,networkSubnetMask:l}]=a;try{let s=new sr.Netmask("".concat(r,"/").concat(l)),{base:e,mask:t}=s.next();return{base:e,mask:t}}catch(s){return{}}};var ManageManifest_AnNetworkConfigInputGroup=s=>{let{formUtils:e,networkListEntries:t,previous:{dnsCsv:n="8.8.8.8,8.8.4.4",mtu:r,ntpCsv:l}={},setNetworkList:u}=s,{buildFinishInputTestBatchFunction:c,buildInputFirstRenderFunction:b,setMessage:d,setMessageRe:C}=e,f=(0,o.useCallback)(function(s){let{input:e=t,end:a=t.length}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=a-1,r=0;return e.every((e,t)=>{let[,{networkType:a}]=e;return a===s&&(r+=1),tsU.map(s=>{let[e,t]=s;return{displayValue:t,value:e}}),[]),m=(0,o.useCallback)(function(){let{networkMinIp:s="",networkSubnetMask:e="",networkType:a=t.some(s=>{let[,{networkType:e}]=s;return assertMn(e)})?"ifn":"mn",networkGateway:n=assertIfn(a)?"":void 0,networkNumber:r=f(a)+1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{base:l=s,mask:o=e}=guessNetworkMinIp({entries:t,type:a});return{network:{networkGateway:n,networkMinIp:l,networkNumber:r,networkSubnetMask:o,networkType:a},networkId:(0,sw.Z)()}},[f,t]),h=(0,o.useCallback)((s,e)=>u((0,sy.ZP)(s,e)),[u]),v=(0,o.useCallback)((s,e,t)=>u(a=>{let n={...a},{[s]:r}=n;return r&&(r[e]=t),n}),[u]),j=(0,o.useCallback)((s,e)=>{let{networkId:a,networkType:n}=s,{target:{value:r}}=e,l=String(r),o=!1,i=0,c=t.reduce((s,e)=>{let[r,u]=e,{networkNumber:c,networkType:b,networkMinIp:d,networkSubnetMask:f,...p}=u,m=c,h=b;r===a&&(o=!0,h=l,C(RegExp(r)));let v=h===l;if(v&&(i+=1),o){v?m=i:h===n&&(m-=1);let{base:e=d,mask:a=f}=guessNetworkMinIp({entries:t,type:h});s[r]={...p,networkMinIp:e,networkSubnetMask:a,networkNumber:m,networkType:h}}else s[r]=u;return s},{});u(c)},[t,C,u]),w=(0,o.useCallback)(s=>{let{networkId:e,networkType:a}=s,n=!1,r=0,l=t.reduce((s,t)=>{let[l,o]=t;if(l===e)return n=!0,s;let{networkType:u}=o,i=u===a;return i&&(r+=1),s[l]=n&&i?{...o,networkNumber:r}:o,s},{});u(l)},[t,u]),M=(0,o.useMemo)(()=>t.reduce((s,t)=>{let[n,{networkGateway:r,networkMinIp:l,networkNumber:o,networkSubnetMask:u,networkType:i}]=t,c="".concat(sA,"-").concat(n),b=assertIfn(i),d=assertMn(i),C=d||1!==o;return s[c]={children:(0,a.jsx)(ManageManifest_AnNetworkInputGroup,{formUtils:e,networkId:n,networkNumber:o,networkType:i,networkTypeOptions:p,onClose:w,onNetworkMinIpChange:(s,e)=>{let{networkId:t}=s,{target:{value:a}}=e;return v(t,"networkMinIp",a)},onNetworkSubnetMaskChange:(s,e)=>{let{networkId:t}=s,{target:{value:a}}=e;return v(t,"networkSubnetMask",a)},onNetworkTypeChange:j,previous:{gateway:r,minIp:l,subnetMask:u},readonlyNetworkName:!C,showCloseButton:C,showGateway:b}),md:3,sm:2},s},{}),[t,e,p,w,j,v]);return(0,a.jsx)(i.Z,{columns:{xs:1,sm:2,md:3},layout:{...M,"an-network-config-cell-add-network":{children:(0,a.jsx)(sZ.Z,{mapPreset:"add",onClick:()=>{let{network:s,networkId:e}=m();h(e,s)}}),display:"flex",justifyContent:"center",md:3,sm:2},"an-network-config-input-cell-dns":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sS,label:"DNS",value:n}),inputTestBatch:(0,y.dg)("DNS",()=>{d(sS)},{onFinishBatch:c(sS)},s=>{d(sS,{children:s})}),onFirstRender:b(sS),required:!0})},"an-network-config-input-cell-ntp":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:s_,label:"NTP",value:l}),inputTestBatch:(0,y.dg)("NTP",()=>{d(s_)},{onFinishBatch:c(s_)},s=>{d(s_,{children:s})}),onFirstRender:b(s_)})},"an-network-config-input-cell-mtu":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sT,inputProps:{placeholder:"1500"},label:"MTU",value:r}),inputTestBatch:(0,y.qY)("MTU",()=>{d(sT)},{onFinishBatch:c(sT)},s=>{d(sT,{children:s})}),onFirstRender:b(sT),valueType:"number"})}},spacing:"1em"})};let sO={bcn1:{networkMinIp:"10.201.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"bcn"},sn1:{networkMinIp:"10.101.0.0",networkNumber:1,networkSubnetMask:"255.255.0.0",networkType:"sn"},ifn1:{networkMinIp:"",networkNumber:1,networkSubnetMask:"",networkType:"ifn"}};var ManageManifest_AddManifestInputGroup=s=>{var e;let{formUtils:t,knownFences:n,knownUpses:r,previous:{hostConfig:l,networkConfig:u={},...i}={}}=s,{networks:c=sO}=u,[b,d]=(0,o.useState)(null!==(e=null==i?void 0:i.sequence)&&void 0!==e?e:0),[C,f]=(0,o.useState)(c),p=(0,o.useMemo)(()=>Object.entries(C),[C]);return(0,a.jsxs)(v.Z,{children:[(0,a.jsx)(ManageManifest_AnIdInputGroup,{formUtils:t,onSequenceChange:s=>{let{target:{value:e}}=s;d(Number(e))},previous:i}),(0,a.jsx)(ManageManifest_AnNetworkConfigInputGroup,{formUtils:t,networkListEntries:p,previous:u,setNetworkList:f}),(0,a.jsx)(ManageManifest_AnHostConfigInputGroup,{anSequence:b,formUtils:t,knownFences:n,knownUpses:r,networkListEntries:p,previous:l})]})},ManageManifest_EditManifestInputGroup=s=>{let{formUtils:e,knownFences:t,knownUpses:n,previous:r}=s;return(0,a.jsx)(ManageManifest_AddManifestInputGroup,{formUtils:e,knownFences:t,knownUpses:n,previous:r})};let sR="run-manifest-input",sE="".concat(sR,"-host"),sH="".concat(sR,"-an-description"),sD="".concat(sR,"-an-password"),sq="".concat(sR,"-an-confirm-password"),sB="Description",sG="Password",sL="Confirm password",sz=(0,p.ZP)(k.$_)({justifyContent:"end"}),buildInputIdRMHost=s=>"".concat(sE,"-").concat(s);var ManageManifest_RunManifestInputGroup=s=>{let{formUtils:{buildFinishInputTestBatchFunction:e,buildInputFirstRenderFunction:t,setMessage:n},knownFences:r={},knownHosts:l={},knownUpses:u={},previous:{domain:c,hostConfig:b={},networkConfig:d={}}={}}=s,C=(0,o.useRef)({}),{hosts:f={}}=b,{dnsCsv:p,mtu:m,networks:j={},ntpCsv:M="--"}=d,Z=(0,o.useMemo)(()=>Object.entries(f),[f]),I=(0,o.useMemo)(()=>Object.entries(r),[r]),P=(0,o.useMemo)(()=>Object.entries(l),[l]),F=(0,o.useMemo)(()=>Object.entries(u),[u]),A=(0,o.useMemo)(()=>Object.entries(j),[j]),S=(0,o.useMemo)(()=>P.map(s=>{let[,{hostName:e,hostUUID:t}]=s;return{displayValue:e,value:t}}),[P]),{headers:T,hosts:_,hostNames:U}=(0,o.useMemo)(()=>Z.reduce((s,r)=>{let[l,{hostName:o,hostNumber:u,hostType:i}]=r,{headers:b,hosts:d,hostNames:C}=s,f="".concat(i.replace("node","subnode")," ").concat(u);b["run-manifest-column-header-cell-".concat(l)]={children:(0,a.jsx)(k.Ac,{children:f})};let p=buildInputIdRMHost(l),m="".concat(f," host");return d["run-manifest-host-cell-".concat(l)]={children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(w.Z,{id:p,label:m,selectItems:S,value:""}),inputTestBatch:(0,y.Gn)(m,()=>{n(p)},{onFinishBatch:e(p)},s=>{n(p,{children:s})}),onFirstRender:t(p),required:!0})},C["run-manifest-new-host-name-cell-".concat(l)]={children:(0,a.jsxs)(k.$_,{children:[o,".",c]})},s},{headers:{"run-manifest-column-header-cell-offset":{}},hosts:{"run-manifest-host-cell-header":{children:(0,a.jsx)(k.Ac,{children:"Uses host"})}},hostNames:{"run-manifest-new-host-name-cell-header":{children:(0,a.jsx)(k.Ac,{children:"New hostname"})}}}),[c,e,t,Z,S,n]),{gateway:N,hostNetworks:O}=(0,o.useMemo)(()=>A.reduce((s,e)=>{let[t,{networkGateway:n,networkNumber:r,networkType:l}]=e,{gateway:o,hostNetworks:u}=s,i="run-manifest-host-network-cell-".concat(t),c="".concat(l.toUpperCase()).concat(r);u["".concat(i,"-header")]={children:(0,a.jsx)(k.Ac,{children:c})},Z.forEach(s=>{let[e,{networks:n={}}]=s,{[t]:{networkIp:r="--"}={}}=n;u["".concat(i,"-").concat(e,"-ip")]={children:(0,a.jsx)(k.$_,{children:r})}});let b="run-manifest-gateway-cell";return n&&!o[b]&&(o[b]={children:(0,a.jsx)(sz,{children:n})}),s},{gateway:{"run-manifest-gateway-cell-header":{children:(0,a.jsx)(k.Ac,{children:"Gateway"})}},hostNetworks:{}}),[Z,A]),R=(0,o.useMemo)(()=>I.reduce((s,e)=>{let[t,{fenceName:n}]=e,r="run-manifest-fence-cell-".concat(t);return s["".concat(r,"-header")]={children:(0,a.jsxs)(k.Ac,{children:["Port on ",n]})},Z.forEach(e=>{let[t,{fences:l={}}]=e,{[n]:{fencePort:o="--"}={}}=l;s["".concat(r,"-").concat(t,"-port")]={children:(0,a.jsx)(k.$_,{children:o})}}),s},{}),[Z,I]),E=(0,o.useMemo)(()=>F.reduce((s,e)=>{let[t,{upsName:n}]=e,r="run-manifest-ups-cell-".concat(t);return s["".concat(r,"-header")]={children:(0,a.jsxs)(k.Ac,{children:["Uses ",n]})},Z.forEach(e=>{let[t,{upses:l={}}]=e,{[n]:{isUsed:o=!1}={}}=l;s["".concat(r,"-").concat(t,"-is-used")]={children:(0,a.jsx)(k.$_,{children:o?"yes":"no"})}}),s},{}),[Z,F]),H=(0,o.useMemo)(()=>{let s=(0,y.Gn)(sL,()=>{n(sq)},{onFinishBatch:e(sq)},s=>{n(sq,{children:s})}),r=t(sq);return s.tests.push({onFailure:()=>{n(sq,{children:(0,a.jsx)(a.Fragment,{children:"Confirm password must match password."})})},test:s=>{var e;let{value:t}=s;return(null===(e=C.current.getValue)||void 0===e?void 0:e.call(null))===t}}),{inputTestBatch:s,onFirstRender:r}},[e,t,n]);return(0,a.jsxs)(v.Z,{children:[(0,a.jsx)(i.Z,{columns:{xs:1,sm:2},layout:{"run-manifest-input-cell-an-description":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sH,label:sB}),inputTestBatch:(0,y.Gn)(sB,()=>{n(sH)},{onFinishBatch:e(sH)},s=>{n(sH,{children:s})}),onFirstRender:t(sH),required:!0}),sm:2},"run-manifest-input-cell-an-password":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sD,label:sG,type:h.Z.password}),inputTestBatch:(0,y.Gn)(sG,()=>{n(sD)},{onFinishBatch:e(sD)},s=>{n(sD,{children:s})}),onFirstRender:t(sD),ref:C,required:!0})},"run-manifest-input-cell-an-confirm-password":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sq,label:sL,type:h.Z.password}),required:!0,...H})}},spacing:"1em"}),(0,a.jsx)(i.Z,{alignItems:"center",columns:{xs:Z.length+1},layout:{...T,..._,...U,...O,...R,...E},columnSpacing:"1em",rowSpacing:"0.4em"}),(0,a.jsx)(i.Z,{columns:{xs:2},layout:{...N,"run-manifest-dns-csv-cell-header":{children:(0,a.jsx)(k.Ac,{children:"DNS"})},"run-manifest-dns-csv-cell":{children:(0,a.jsx)(sz,{children:p})},"run-manifest-ntp-csv-cell-header":{children:(0,a.jsx)(k.Ac,{children:"NTP"})},"run-manifest-ntp-csv-cell":{children:(0,a.jsx)(sz,{children:M})},"run-manifest-mtu-cell-header":{children:(0,a.jsx)(k.Ac,{children:"MTU"})},"run-manifest-mtu-cell":{children:(0,a.jsx)(sz,{children:m})}},spacing:"0.4em"})]})};let ManageManifestPanel_getFormData=function(){for(var s=arguments.length,e=Array(s),t=0;t{var t,a;let{id:n}=e;if(RegExp("^".concat(sl)).test(n)){let{dataset:{handler:a=""}}=e;null===(t=si[a])||void 0===t||t.call(null,s,e)}else if(RegExp("^".concat(sI)).test(n)){let{dataset:{handler:t=""}}=e;null===(a=sP[t])||void 0===a||a.call(null,s,e)}return s},{domain:r,hostConfig:{hosts:{}},networkConfig:{dnsCsv:u,mtu:b,networks:{},ntpCsv:c},prefix:l,sequence:d})},getRunFormData=function(s){for(var e=arguments.length,t=Array(e>1?e-1:0),a=1;a{let[t,{hostNumber:a,hostType:n}]=e,l=buildInputIdRMHost(t),{value:o}=r.namedItem(l);return s[t]={hostNumber:a,hostType:n,hostUuid:o},s},{});return{description:l,hosts:u,password:o}};var ManageManifest=()=>{let s=(0,_.Z)(),e=(0,o.useRef)({}),t=(0,o.useRef)({}),n=(0,o.useRef)({}),r=(0,o.useRef)({}),l=(0,o.useRef)({}),[i,b]=(0,B.Z)(),[C,f]=(0,o.useState)(),[p,m]=(0,o.useState)(!1),[h,x]=(0,o.useState)(!0),[g,w]=(0,o.useState)(!0),[M,Z]=(0,o.useState)(!0),[I,P]=(0,o.useState)(),[y,F]=(0,o.useState)(),[A,S]=(0,o.useState)(),{isLoading:U}=(0,D.Z)("".concat(d.Z,"/manifest"),{onSuccess:s=>P(s),refreshInterval:6e4}),L=(0,o.useCallback)(()=>{u.Z.get("/manifest").then(s=>{let{data:e}=s;P(e)})},[P]),z=(0,G.Z)([sm,sh,sv,sS,sT,s_],l),{isFormInvalid:V,isFormSubmitting:W,submitForm:Q}=z,$=(0,G.Z)([sq,sH,sD],l),{isFormInvalid:J,isFormSubmitting:K,submitForm:X}=$,{buildDeleteDialogProps:Y,checks:ss,getCheck:se,hasChecks:st,resetChecks:sa,setCheck:sn}=(0,q.Z)({list:I}),{hostConfig:{hosts:sr={}}={},name:sl,uuid:so}=(0,o.useMemo)(()=>null!=y?y:{},[y]),{domain:su,fences:si,prefix:sc,sequence:sb,upses:sd}=(0,o.useMemo)(()=>null!=A?A:{},[A]),sC=(0,o.useMemo)(()=>({actionProceedText:"Add",content:(0,a.jsx)(ManageManifest_AddManifestInputGroup,{formUtils:z,knownFences:si,knownUpses:sd,previous:{domain:su,prefix:sc,sequence:sb}}),onSubmitAppend:function(){for(var s,t=arguments.length,n=Array(t),r=0;r{Q({body:l,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to add install manifest. ",s]}),method:"post",onSuccess:()=>L(),successMsg:"Successfully added install manifest",url:"/manifest"})},titleText:"Add install manifest?"}),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},titleText:"Add an install manifest"}),[z,L,si,sd,su,sc,sb,b,Q]),sf=(0,o.useMemo)(()=>({actionProceedText:"Edit",content:(0,a.jsx)(ManageManifest_EditManifestInputGroup,{formUtils:z,knownFences:si,knownUpses:sd,previous:y}),onSubmitAppend:function(){for(var s,t=arguments.length,n=Array(t),r=0;r{Q({body:l,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to update install manifest. ",s]}),method:"put",onSuccess:()=>L(),successMsg:"Successfully updated install manifest ".concat(sl),url:"/manifest/".concat(so)})},titleText:"Update install manifest ".concat(sl,"?")}),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},loading:g,titleText:"Update install manifest ".concat(sl)}),[z,si,sd,y,g,sl,b,Q,so,L]),sp=(0,o.useMemo)(()=>({actionProceedText:"Run",content:(0,a.jsx)(ManageManifest_RunManifestInputGroup,{formUtils:$,knownFences:si,knownHosts:C,knownUpses:sd,previous:y}),loading:g,onSubmitAppend:function(){for(var s,t=arguments.length,n=Array(t),r=0;r{X({body:l,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to run install manifest. ",s]}),method:"put",successMsg:"Successfully ran install manifest ".concat(sl),url:"/command/run-manifest/".concat(so)})},titleText:"Run install manifest ".concat(sl,"?")}),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},titleText:"Run install manifest ".concat(sl)}),[$,si,C,sd,y,g,sl,sr,b,X,so]),sx=(0,o.useCallback)((s,e)=>{w(!0),u.Z.get("manifest/".concat(s)).then(e=>{let{data:t}=e;t.uuid=s,F(t)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{w(!1),null==e||e.call(null)})},[w,F]),sg=(0,o.useMemo)(()=>(0,a.jsx)(E.Z,{allowEdit:!0,allowItemButton:p,disableDelete:!st,edit:p,header:!0,listEmpty:"No manifest(s) registered.",listItems:I,onAdd:()=>{var s;null===(s=t.current.setOpen)||void 0===s||s.call(null,!0)},onDelete:()=>{var s;b(Y({onProceedAppend:()=>{Q({body:{uuids:ss},getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Delete manifest(s) failed. ",s]}),method:"delete",onSuccess:()=>{L(),sa()},url:"/manifest"})},getConfirmDialogTitle:s=>"Delete ".concat(s," manifest(s)?"),renderEntry:s=>{let{key:e}=s;return(0,a.jsx)(k.Ac,{children:null==I?void 0:I[e].manifestName})}})),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},onEdit:()=>{m(s=>!s)},onItemCheckboxChange:(s,e,t)=>{sn(s,t)},onItemClick:s=>{var e;let{manifestName:t,manifestUUID:a}=s;F({name:t,uuid:a}),null===(e=n.current.setOpen)||void 0===e||e.call(null,!0),sx(a)},renderListItemCheckboxState:s=>se(s),renderListItem:(s,e)=>{let{manifestName:t}=e;return(0,a.jsxs)(v.Z,{fullWidth:!0,row:!0,children:[(0,a.jsx)(sZ.Z,{disabled:p,mapPreset:"play",onClick:()=>{var e;F({name:t,uuid:s}),null===(e=r.current.setOpen)||void 0===e||e.call(null,!0),sx(s)},variant:"normal"}),(0,a.jsx)(k.Ac,{children:t})]})}}),[Y,ss,se,sx,L,st,p,I,sa,sn,b,F,Q]),sj=(0,o.useMemo)(()=>h||M||U?(0,a.jsx)(T.Z,{}):sg,[h,U,M,sg]),sw=(0,o.useMemo)(()=>(0,a.jsx)(H.Z,{count:1,defaultMessageType:"warning",ref:l}),[]);return s&&(u.Z.get("/manifest/template").then(s=>{let{data:e}=s;S(e)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{Z(!1)}),u.Z.get("/host",{params:{types:"node"}}).then(s=>{let{data:e}=s;f(e)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{x(!1)})),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(j.s_,{children:[(0,a.jsx)(j.V9,{children:(0,a.jsx)(k.z,{children:"Manage manifests"})}),sj]}),(0,a.jsx)(O.Z,{...sC,disableProceed:V,loadingAction:W,preActionArea:sw,ref:t,scrollContent:!0,showClose:!0}),(0,a.jsx)(O.Z,{...sf,disableProceed:V,loadingAction:W,preActionArea:sw,ref:n,scrollContent:!0,showClose:!0}),(0,a.jsx)(O.Z,{...sp,disableProceed:J,loadingAction:K,preActionArea:sw,ref:r,scrollContent:!0,showClose:!0}),(0,a.jsx)(N.Z,{closeOnProceed:!0,...i,ref:e,scrollContent:!0,wide:!0})]})};let sV="common-ups-input-ip-address",sW="common-ups-input-host-name",sQ="IP address",s$="Host name";var ManageUps_CommonUpsInputGroup=s=>{let{formUtils:{buildFinishInputTestBatchFunction:e,buildInputFirstRenderFunction:t,setMessage:n},previous:{upsIPAddress:r,upsName:l}={}}=s;return(0,a.jsx)(i.Z,{columns:{xs:1,sm:2},layout:{"common-ups-input-cell-host-name":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sW,label:s$,value:l}),inputTestBatch:(0,y.Gn)(s$,()=>{n(sW)},{onFinishBatch:e(sW)},s=>{n(sW,{children:s})}),onFirstRender:t(sW),required:!0})},"common-ups-input-cell-ip-address":{children:(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{id:sV,label:sQ,value:r}),inputTestBatch:(0,y._)(sQ,()=>{n(sV)},{onFinishBatch:e(sV)},s=>{n(sV,{children:s})}),onFirstRender:t(sV),required:!0})}},spacing:"1em"})},sJ=t(69836);let sK="add-ups-select-ups-type-id";var ManageUps_AddUpsInputGroup=s=>{let{formUtils:e,loading:t,previous:n={},upsTemplate:r}=s,{buildInputFirstRenderFunction:l,setValidity:u}=e,{upsTypeId:i=""}=n,c=(0,_.Z)(),[b,d]=(0,o.useState)(i),C=(0,o.useMemo)(()=>r?Object.entries(r).map(s=>{let e,[t,{brand:n,description:r,links:{0:l}}]=s;if(l){let{linkHref:s,linkLabel:t}=l;e=(0,a.jsx)(sJ.Z,{href:s,onClick:s=>{s.stopPropagation()},sx:{display:"inline-flex",color:I.E5},target:"_blank",children:t})}return{displayValue:(0,a.jsxs)(v.Z,{spacing:0,children:[(0,a.jsx)(k.Ac,{inverted:!0,children:n}),(0,a.jsxs)(k.Ac,{inverted:!0,children:[r," (",e,")"]})]}),value:t}}):[],[r]),f=(0,o.useMemo)(()=>r&&(0,a.jsx)(w.Z,{formControlProps:{sx:{marginTop:".3em"}},id:sK,label:"UPS type",onChange:s=>{let{target:{value:e}}=s,t=String(e);u(sK,!0),d(t)},required:!0,selectItems:C,selectProps:{onClearIndicatorClick:()=>{u(sK,!1),d("")},renderValue:s=>{let e=String(s),{brand:t}=r[e];return t}},value:b}),[r,C,b,u]),p=(0,o.useMemo)(()=>t?(0,a.jsx)(T.Z,{}):(0,a.jsxs)(v.Z,{children:[f,b&&(0,a.jsx)(ManageUps_CommonUpsInputGroup,{formUtils:e,previous:n})]}),[e,b,t,f,n]);return(0,o.useEffect)(()=>{c&&l(sK)({isValid:!!b})},[l,b,c]),p};let sX="edit-ups-input-ups-uuid";var ManageUps_EditUpsInputGroup=s=>{let{formUtils:e,loading:t,previous:n,upsTemplate:r,upsUUID:l}=s,u=(0,o.useMemo)(()=>t?(0,a.jsx)(T.Z,{}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(ManageUps_AddUpsInputGroup,{formUtils:e,previous:n,upsTemplate:r}),(0,a.jsx)("input",{hidden:!0,id:sX,readOnly:!0,value:l})]}),[e,t,n,r,l]);return u};let ManageUpsPanel_getFormData=function(s){for(var e=arguments.length,t=Array(e>1?e-1:0),a=1;a{let{brand:e,ipAddress:t,name:n,uuid:r}=s;return(0,a.jsx)(E.Z,{listItems:{"ups-brand":{label:"Brand",value:e},"ups-name":{label:"Host name",value:n},"ups-ip-address":{label:"IP address",value:t}},listItemProps:{sx:{padding:0}},renderListItem:(s,e)=>{let{label:t,value:n}=e;return(0,a.jsxs)(v.Z,{fullWidth:!0,growFirst:!0,row:!0,children:[(0,a.jsx)(k.Ac,{children:t}),(0,a.jsx)(k.$_,{children:n})]},"confirm-ups-".concat(r,"-").concat(s))}})};var ManageUps=()=>{let s=(0,_.Z)(),e=(0,o.useRef)({}),t=(0,o.useRef)({}),n=(0,o.useRef)({}),[r,l]=(0,B.Z)(),[i,b]=(0,B.Z)(),[C,f]=(0,o.useState)(!1),[p,m]=(0,o.useState)(!0),[h,x]=(0,o.useState)(),{data:g,isLoading:w}=(0,D.Z)("".concat(d.Z,"/ups"),{refreshInterval:6e4}),M=(0,G.Z)([sV,sW,sK],n),{isFormInvalid:Z,isFormSubmitting:I,submitForm:P}=M,{buildDeleteDialogProps:y,checks:F,getCheck:A,hasChecks:S,setCheck:U}=(0,q.Z)({list:g}),R=(0,o.useCallback)(s=>{var t,n;let{upsAgent:r,upsIPAddress:o,upsName:u,upsUUID:i}=s,c=null!==(n=null===(t=Object.entries(null!=h?h:{}).find(s=>{let[,{agent:e}]=s;return r===e}))||void 0===t?void 0:t[0])&&void 0!==n?n:"";return{actionProceedText:"Update",content:(0,a.jsx)(ManageUps_EditUpsInputGroup,{formUtils:M,previous:{upsIPAddress:o,upsName:u,upsTypeId:c},upsTemplate:h,upsUUID:i}),onSubmitAppend:s=>{var t;if(!h)return;let n=ManageUpsPanel_getFormData(h,s),{name:r}=n;l({actionProceedText:"Update",content:buildConfirmUpsFormData(n),onProceedAppend:()=>{P({body:n,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to update UPS. ",s]}),method:"put",successMsg:"Successfully updated UPS ".concat(u),url:"/ups/".concat(i)})},titleText:(0,a.jsxs)(k.z,{children:["Update"," ",(0,a.jsx)(k.Q0,{fontSize:"inherit",children:r})," ","with the following data?"]})}),null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},titleText:(0,a.jsxs)(k.z,{children:["Update UPS"," ",(0,a.jsx)(k.Q0,{fontSize:"inherit",children:u})]})}},[M,l,P,h]),L=(0,o.useMemo)(()=>({actionProceedText:"Add",content:(0,a.jsx)(ManageUps_AddUpsInputGroup,{formUtils:M,upsTemplate:h}),onSubmitAppend:s=>{var t;if(!h)return;let n=ManageUpsPanel_getFormData(h,s),{brand:r,name:o}=n;l({actionProceedText:"Add",content:buildConfirmUpsFormData(n),onProceedAppend:()=>{P({body:n,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to add UPS. ",s]}),method:"post",successMsg:"Successfully added UPS ".concat(o),url:"/ups"})},titleText:(0,a.jsxs)(k.z,{children:["Add a"," ",(0,a.jsx)(k.Q0,{fontSize:"inherit",children:r})," UPS with the following data?"]})}),null===(t=e.current.setOpen)||void 0===t||t.call(null,!0)},titleText:"Add a UPS"}),[M,l,P,h]),z=(0,o.useMemo)(()=>(0,a.jsx)(E.Z,{allowEdit:!0,allowItemButton:C,disableDelete:!S,edit:C,header:!0,listEmpty:"No Ups(es) registered.",listItems:g,onAdd:()=>{var s;b(L),null===(s=t.current.setOpen)||void 0===s||s.call(null,!0)},onDelete:()=>{var s;l(y({getConfirmDialogTitle:s=>"Delete ".concat(s," UPSes?"),onProceedAppend:()=>{P({body:{uuids:F},getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to delete UPS(es). ",s]}),method:"delete",url:"/ups"})},renderEntry:s=>{let{key:e}=s;return(0,a.jsx)(k.Ac,{children:null==g?void 0:g[e].upsName})}})),null===(s=e.current.setOpen)||void 0===s||s.call(null,!0)},onEdit:()=>{f(s=>!s)},onItemCheckboxChange:(s,e,t)=>{U(s,t)},onItemClick:s=>{var e;b(R(s)),null===(e=t.current.setOpen)||void 0===e||e.call(null,!0)},renderListItemCheckboxState:s=>A(s),renderListItem:(s,e)=>{let{upsAgent:t,upsIPAddress:n,upsName:r}=e;return(0,a.jsxs)(v.Z,{fullWidth:!0,row:!0,children:[(0,a.jsx)(k.Ac,{children:r}),(0,a.jsxs)(k.Ac,{children:['agent="',t,'"']}),(0,a.jsxs)(k.Ac,{children:['ip="',n,'"']})]})}}),[L,y,R,F,A,S,C,U,l,b,P,g]),V=(0,o.useMemo)(()=>p||w?(0,a.jsx)(T.Z,{}):z,[p,w,z]),W=(0,o.useMemo)(()=>(0,a.jsx)(H.Z,{count:1,defaultMessageType:"warning",ref:n}),[]);return s&&u.Z.get("/ups/template").then(s=>{let{data:e}=s;x(e)}).catch(s=>{(0,c.Z)(s)}).finally(()=>{m(!1)}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(j.s_,{children:[(0,a.jsx)(j.V9,{children:(0,a.jsx)(k.z,{children:"Manage UPSes"})}),V]}),(0,a.jsx)(O.Z,{...i,disableProceed:Z,loadingAction:I,preActionArea:W,ref:t,showClose:!0}),(0,a.jsx)(N.Z,{closeOnProceed:!0,...r,ref:e})]})},sY=t(19467),s0=t(68917),s1=t(7932),s2=t(10406);let s3="prepare-network-host-name-input",s5="prepare-network-netconf-input-group",s9="Host name",PrepareNetworkForm_getFormData=function(s){let{netconf:e}=s;for(var t,a=arguments.length,n=Array(a>1?a-1:0),r=1;r{let{networks:e=[],...t}=s,a=e.reduce((s,e)=>{let{interfaces:t,ipAddress:a,name:n="",type:r,typeCount:l,subnetMask:o}=e,u="".concat(r).concat(l),i=t.reduce((s,e,t)=>{if(e){let{networkInterfaceName:a}=e;s["link".concat(t+1)]=a}return s},{});return s[u]={name:n,network:"".concat(a,"/").concat(o),...i},s},{});return{...t,networks:a}};var components_PrepareNetworkForm=s=>{let{expectUUID:e=!1,hostUUID:t}=s,{isReady:n,query:{host_uuid:r}}=(0,l.useRouter)(),i=(0,o.useRef)({}),b=(0,o.useRef)({}),d=(0,o.useRef)({}),[C,f]=(0,B.Z)(),[p,m]=(0,o.useState)(),[h,w]=(0,o.useState)(),[M,Z]=(0,o.useState)(!0),[I,P]=(0,o.useState)(),{buildFinishInputTestBatchFunction:F,buildInputFirstRenderFunction:A,isFormInvalid:S,setMessage:_,setValidity:U,submitForm:O}=(0,G.Z)([s3,s5],d),E=(0,o.useMemo)(()=>t!==I,[t,I]),D=(0,o.useMemo)(()=>!!t&&E,[t,E]),q=(0,o.useMemo)(()=>(0,a.jsx)(j.V9,{children:(0,a.jsxs)(k.z,{children:["Prepare network on ",null==p?void 0:p.shortHostName]})}),[p]),L=(0,o.useMemo)(()=>(0,a.jsx)(s1.Z,{expectHostDetail:!0,hostDetail:p,ref:b,toggleSubmitDisabled:s=>{U(s5,s)}}),[p,U]),z=(0,o.useMemo)(()=>(0,a.jsx)(H.Z,{count:1,defaultMessageType:"warning",ref:d}),[]),V=(0,o.useMemo)(()=>M?(0,a.jsx)(T.Z,{mt:0}):h?(0,a.jsx)(s0.Z,{...h}):(0,a.jsxs)(a.Fragment,{children:[q,(0,a.jsxs)(v.Z,{component:"form",onSubmit:function(){for(var s,e=arguments.length,n=Array(e),r=0;r{let{cap:e,key:t}=s;return/^(dns|[a-z]+n\d+)/.test(t)?t.toUpperCase():e(t)}}),onProceedAppend:()=>{var s;O({body:o,getErrorMsg:s=>(0,a.jsxs)(a.Fragment,{children:["Failed to prepare network. ",s]}),method:"put",onSuccess:()=>{(0,s2.Z)(0)},setMsg:null==b?void 0:null===(s=b.current)||void 0===s?void 0:s.setMessage,successMsg:"Initiated prepare network on ".concat(null==p?void 0:p.shortHostName),url:"/host/".concat(t,"?handler=subnode-network")})},titleText:"Prepare ".concat(null==p?void 0:p.shortHostName," network?")}),null===(s=i.current.setOpen)||void 0===s||s.call(null,!0)},children:[(0,a.jsx)(x.Z,{input:(0,a.jsx)(g.Z,{formControlProps:{sx:{maxWidth:"20em"}},id:s3,label:s9,value:null==p?void 0:p.hostName}),inputTestBatch:(0,y.Gn)(s9,()=>{_(s3)},{onFinishBatch:F(s3)},s=>{_(s3,{children:s})}),onFirstRender:A(s3),required:!0}),z,L,(0,a.jsx)(v.Z,{row:!0,justifyContent:"flex-end",children:(0,a.jsx)(sY.Z,{disabled:S,type:"submit",children:"Prepare network"})})]})]}),[M,h,q,null==p?void 0:p.hostName,null==p?void 0:p.shortHostName,F,A,z,L,S,f,O,t,_]),W=(0,o.useCallback)(s=>{Z(!0),M&&u.Z.get("/host/".concat(s)).then(s=>{let{data:e}=s;P(e.hostUUID),m(e)}).catch(s=>{let{children:e}=(0,c.Z)(s);w({children:"Failed to get target host information; cannot continue. ".concat(e),type:"error"})}).finally(()=>{Z(!1)})},[Z,M,P,m,w]);return(0,o.useEffect)(()=>{e?D&&W(t):n&&!h&&(r?W(lib_getQueryParam(r)):(w({children:"No host UUID provided; cannot continue.",type:"error"}),Z(!1)))},[h,W,t,e,n,r,w,m,Z,D]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(j.s_,{children:V}),(0,a.jsx)(N.Z,{closeOnProceed:!0,scrollContent:!0,...C,ref:i})]})},s6=t(75316),s4=t(21073),components_Tab=s=>{let{label:e,...t}=s,n=(0,o.useMemo)(()=>"string"==typeof e?(0,a.jsx)(k.Ac,{inheritColour:!0,children:e}):e,[e]);return(0,a.jsx)(s6.Z,{...t,label:n,sx:{borderRadius:I.n_,color:I.s7,padding:".4em .8em",textTransform:"none",["&.".concat(s4.Z.selected)]:{color:I.Ej}}})},components_TabContent=s=>{let{changingTabId:e,children:t,retain:n=!1,tabId:r}=s,l=(0,o.useMemo)(()=>e===r,[e,r]),u=(0,o.useMemo)(()=>n?(0,a.jsx)(C.Z,{sx:{display:l?"initial":"none"},children:t}):l&&t,[t,l,n]);return(0,a.jsx)(a.Fragment,{children:u})},s7=t(2734),s8=t(98396),es=t(37023),ee=t(85982);let et="1.8em";var components_Tabs=s=>{let{orientation:e,variant:t="fullWidth",...n}=s,r=(0,s7.Z)(),l=(0,o.useCallback)(s=>r.breakpoints.up(s),[r]),u=(0,s8.Z)(l("xs")),i=(0,s8.Z)(l("sm")),c=(0,s8.Z)(l("md")),b=(0,s8.Z)(l("lg")),d=(0,s8.Z)(l("xl")),C=(0,o.useMemo)(()=>[["xs",u],["sm",i],["md",c],["lg",b],["xl",d]],[b,c,i,d,u]),f=(0,o.useMemo)(()=>{let s;return"object"==typeof e?C.some(t=>{let[a,n]=t;return n&&e[a]&&(s=e[a]),!n}):s=e,s},[C,e]);return(0,a.jsx)(es.Z,{...n,orientation:f,variant:t,sx:{minHeight:"1em",["&.".concat(ee.tabsClasses.vertical)]:{minHeight:et,["& .".concat(ee.tabClasses.root)]:{alignItems:"flex-start",minHeight:et,paddingLeft:"2em"},["& .".concat(ee.tabsClasses.indicator)]:{right:"initial"}},["& .".concat(ee.tabClasses.root)]:{minHeight:"1em"},["& .".concat(ee.tabsClasses.indicator)]:{backgroundColor:I.Ej,borderRadius:I.n_}}})};let ea="prepare-host",en="prepare-network",er="manage-fence",el="manage-ups",eo="manage-manifest",eu={[ea]:"Prepare Host",[en]:"Prepare Network",[er]:"Manage Fence Devices",[el]:"Manage UPSes",[eo]:"Manage Manifests"},ei="Loading",ec={md:8,sm:6,xs:1},eb={md:6,sm:4,xs:1},PrepareHostTabContent=()=>(0,a.jsx)(i.Z,{columns:ec,layout:{"preparehost-left-column":{},"preparehost-center-column":{children:(0,a.jsxs)(j.s_,{children:[(0,a.jsx)(j.V9,{children:(0,a.jsx)(k.z,{children:"Hosts"})}),(0,a.jsx)(ManageHost_ManageHost,{})]}),...eb}}}),PrepareNetworkTabContent=()=>{let s=(0,_.Z)(),[e,t]=(0,o.useState)(),[n,r]=(0,o.useState)(!1),l=(0,o.useMemo)(()=>{let s;if(e){let t=Object.entries(e);s=(0,a.jsx)(components_Tabs,{onChange:(s,e)=>{r(e)},orientation:"vertical",value:n,children:t.map(s=>{let[e,{shortHostName:t}]=s;return(0,a.jsx)(components_Tab,{label:t,value:e},"".concat(en,"-").concat(e))})})}else s=(0,a.jsx)(T.Z,{mt:0});return s},[e,n]);return s&&u.Z.get("/host",{params:{types:["dr","node"]}}).then(s=>{let{data:e}=s;t(e),r(Object.keys(e)[0])}).catch(s=>{(0,c.Z)(s)}),(0,a.jsx)(i.Z,{columns:ec,layout:{"preparenetwork-left-column":{children:(0,a.jsx)(j.s_,{children:l}),sm:2},"preparenetwork-center-column":{children:(0,a.jsx)(components_PrepareNetworkForm,{expectUUID:!0,hostUUID:n||void 0}),...eb}}})},ManageFenceTabContent=()=>(0,a.jsx)(i.Z,{columns:ec,layout:{"managefence-left-column":{},"managefence-center-column":{children:(0,a.jsx)(ManageFence,{}),...eb}}}),ManageUpsTabContent=()=>(0,a.jsx)(i.Z,{columns:ec,layout:{"manageups-left-column":{},"manageups-center-column":{children:(0,a.jsx)(ManageUps,{}),...eb}}}),ManageManifestContent=()=>(0,a.jsx)(i.Z,{columns:ec,layout:{"managemanifest-left-column":{},"managemanifest-center-column":{children:(0,a.jsx)(ManageManifest,{}),...eb}}});var manage_element=()=>{let{isReady:s,query:{step:e}}=(0,l.useRouter)(),[t,n]=(0,o.useState)(!1),[u,i]=(0,o.useState)(ei);return(0,o.useEffect)(()=>{if(s){let s=lib_getQueryParam(e,{fallbackValue:ea});eu[s]||(s=ea),u===ei&&i(eu[s]),t||n(s)}},[s,t,u,e]),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(r(),{children:(0,a.jsx)("title",{children:u})}),(0,a.jsx)(b.Z,{}),(0,a.jsx)(j.s_,{children:(0,a.jsxs)(components_Tabs,{onChange:(s,e)=>{n(e),i(eu[e])},orientation:{xs:"vertical",sm:"horizontal"},value:t,children:[(0,a.jsx)(components_Tab,{label:"Prepare host",value:ea}),(0,a.jsx)(components_Tab,{label:"Prepare network",value:en}),(0,a.jsx)(components_Tab,{label:"Manage fence devices",value:er}),(0,a.jsx)(components_Tab,{label:"Manage UPSes",value:el}),(0,a.jsx)(components_Tab,{label:"Manage manifests",value:eo})]})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:ea,children:(0,a.jsx)(PrepareHostTabContent,{})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:en,children:(0,a.jsx)(PrepareNetworkTabContent,{})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:er,children:(0,a.jsx)(ManageFenceTabContent,{})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:el,children:(0,a.jsx)(ManageUpsTabContent,{})}),(0,a.jsx)(components_TabContent,{changingTabId:t,tabId:eo,children:(0,a.jsx)(ManageManifestContent,{})})]})}}},function(s){s.O(0,[494,804,416,50,263,213,310,461,264,203,197,814,775,675,633,733,556,270,17,774,888,179],function(){return s(s.s=29582)}),_N_E=s.O()}]);