"use strict";(self.webpackChunkcentreon=self.webpackChunkcentreon||[]).push([["4744"],{31899:function(e,n,t){var r=t(87146),a=t(97876),i=t(1975),u=(0,r.ZL)()(function(e){return{skeleton:{height:e.spacing(5),width:"100%"},skeletonContainer:{columnGap:e.spacing(3),display:"flex",flexDirection:"column",width:"100%"}}});n.Z=function(){var e=u().classes;return i.createElement("div",{className:e.skeletonContainer},i.createElement(a.Z,{className:e.skeleton,variant:"rectangular"}))}},86356:function(e,n,t){var r=t(87146),a=t(45749),i=t(1975),u=(0,r.ZL)()(function(e){return{page:{height:"fit-content",margin:"0 auto",padding:e.spacing(2,0),width:"40%"}}});n.Z=function(e){var n=e.children,t=u().classes;return i.createElement(a.Z,{className:t.page},n)}},44051:function(e,n,t){var r,a,i,u;t.d(n,{D:function(){return r},p:function(){return a}}),(i=r||(r={})).Base="base",i.Poller="poller",i.Remote="remote",(u=a||(a={}))[u.Next=0]="Next",u[u.Apply=1]="Apply"},65417:function(e,n,t){var r=t(91942),a=t(97877),i=t(34716),u=t(87626),o=t(1975);n.Z=function(e){var n=e.steps,t=e.activeStep,l=(0,r.useTranslation)().t;return o.createElement(a.Z,{alternativeLabel:!0,activeStep:t},n.map(function(e){return o.createElement(i.Z,{key:e},o.createElement(u.Z,null,l(e)))}))}},65808:function(e,n,t){t.r(n);var r,a,i,u=t(1975),o=t(88),l=t(16451),c=t(48065),f=t(87146),s=t(49559),p=t(31899),m=t(86356),d=t(44051),v=t(65417),h=t(20146),y=t(1975);function g(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function b(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function w(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,r,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],u=!0,o=!1;try{for(a=a.call(e);!(u=(t=a.next()).done)&&(i.push(t.value),!n||i.length!==n);u=!0);}catch(e){o=!0,r=e}finally{try{!u&&null!=a.return&&a.return()}finally{if(o)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return g(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return g(e,n)}}(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Z=(0,u.lazy)(function(){return t.e("9449").then(t.bind(t,85327))}),E=(0,u.lazy)(function(){return t.e("6496").then(t.bind(t,56853))}),S=(0,u.lazy)(function(){return t.e("535").then(t.bind(t,86597))}),A=(0,u.lazy)(function(){return t.e("2292").then(t.bind(t,41553))}),D=(0,u.lazy)(function(){return t.e("2250").then(t.bind(t,59710))}),k=(0,u.lazy)(function(){return Promise.all([t.e("2567"),t.e("5482")]).then(t.bind(t,16573))}),z=(0,u.lazy)(function(){return Promise.all([t.e("2567"),t.e("5173")]).then(t.bind(t,30361))}),x=[b({},d.D.Base,Z),(b(r={},d.D.Remote,E),b(r,d.D.Poller,S),r),(b(a={},d.D.Remote,A),b(a,d.D.Poller,D),a),(b(i={},d.D.Remote,k),b(i,d.D.Poller,z),i)],P=[h.TA,h.cO,h.qc,h.hR],R=(0,f.ZL)()(function(e){return{wrapper:{margin:e.spacing(2,4)}}});n.default=function(){var e,n=R().classes,t=w((0,u.useState)(0),2),r=t[0],a=t[1],i=w((0,u.useState)(d.D.Base),2),f=i[0],h=i[1],g=w((0,u.useState)(window.innerHeight),2),b=g[0],Z=g[1],E=(0,u.useRef)(null),S=function(){Z(window.innerHeight)};(0,u.useEffect)(function(){return window.addEventListener("resize",S),function(){window.removeEventListener("resize",S)}},[]);var A=(0,o.Z)([r,(0,l.Z)(r,0)?d.D.Base:f],x);if((0,c.Z)(A))return null;var D=b-((null===(e=E.current)||void 0===e?void 0:e.getBoundingClientRect().top)||0);return y.createElement(m.Z,null,y.createElement(v.Z,{activeStep:r,steps:P}),y.createElement(s.Z,{ref:E,sx:{maxHeight:D,overflowY:"auto"}},y.createElement("div",{className:n.wrapper},y.createElement(u.Suspense,{fallback:y.createElement(p.Z,null)},y.createElement(A,{changeServerType:function(e){h(e)},goToNextStep:function(){a(function(e){return e+1})},goToPreviousStep:function(){a(function(e){return e-1})}})))))}},20146:function(e,n,t){t.d(n,{TA:function(){return r},cO:function(){return a},hR:function(){return u},qc:function(){return i}});var r="Select a server type",a="Configure a server",i="Add an advanced configuration",u="Finish the setup"}}]);
//# sourceMappingURL=4744.087676ef2ec0fc280322.f050c865f134de5c4807.1956bc7e7bc1c00175ba.js.map