"use strict";(self.webpackChunkcentreon=self.webpackChunkcentreon||[]).push([["9449"],{85327:function(e,n,t){t.r(n);var r=t(1975),o=t(16451),a=t(91942),i=t(78653),u=t(80509),c=t(26434),l=t(369),f=t(67321),s=t(22614),m=t(44051),d=t(53452),p=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}n.default=function(e){var n,t,v=e.changeServerType,y=e.goToNextStep,b=(0,s.y)().classes,S=(0,a.useTranslation)().t;var h=(n=(0,r.useState)(1),t=2,function(e){if(Array.isArray(e))return e}(n)||function(e,n){var t,r,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var a=[],i=!0,u=!1;try{for(o=o.call(e);!(i=(t=o.next()).done)&&(a.push(t.value),!n||a.length!==n);i=!0);}catch(e){u=!0,r=e}finally{try{!i&&null!=o.return&&o.return()}finally{if(u)throw r}}return a}}(n,2)||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)}}(n,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),C=h[0],x=h[1],w=[{label:d.Bs,value:1},{label:d.i9,value:2}];return p.createElement("div",null,p.createElement("div",{className:b.formHeading},p.createElement(i.Z,{variant:"h6"},S(d.lZ))),p.createElement("form",{autoComplete:"off",onSubmit:function(e){e.preventDefault(),(0,o.Z)(C,1)&&v(m.D.Remote),(0,o.Z)(C,2)&&v(m.D.Poller),y()}},p.createElement(f.Z,{defaultValue:"1",name:"server_type"},w.map(function(e){return p.createElement(c.Z,{checked:C===e.value,control:p.createElement(l.Z,{color:"primary",size:"small"}),key:e.value,label:e.label,value:e.value,onClick:function(){return x(e.value)}})})),p.createElement("div",{className:b.formButton},p.createElement(u.Z,{color:"primary",size:"small",type:"submit",variant:"contained"},S(d.TY)))))}},53452:function(e,n,t){t.d(n,{$m:function(){return i},BD:function(){return h},Bs:function(){return m},EI:function(){return R},GM:function(){return v},H0:function(){return Z},HT:function(){return f},Ib:function(){return y},Ke:function(){return G},LI:function(){return C},Mf:function(){return d},P6:function(){return u},R4:function(){return b},TE:function(){return k},TY:function(){return B},Ti:function(){return P},V:function(){return g},Xe:function(){return S},_L:function(){return E},_y:function(){return w},bh:function(){return D},i2:function(){return a},i9:function(){return s},jN:function(){return A},l3:function(){return c},lZ:function(){return p},nR:function(){return T},no:function(){return r},tT:function(){return x},u0:function(){return o},uA:function(){return l}});var r="Export generation timeout",o="Add advanced server configuration",a="Create new Poller",i="Select a Poller",u="Select Pending Poller IP",c="Do not check SSL certificate validation",l="Creating Export Task",f="Generating Export Files",s="Add a Centreon Poller",m="Add a Centreon Remote Server",d="Server Configuration",p="Choose a server type",g="Create new Remote Server",v="Select a Remote Server",y="Select Pending Remote Links",b="Server Name",S="Server address",h="Database username",C="Database password",x="Centreon Central address, as seen by this server",w="Centreon Web Folder on Remote",E="Attach poller to a master remote server",R="Attach poller to additional remote servers",T="Select pollers to be attached to this new Remote Server",A="Advanced: reverse Centreon Broker communication flow",Z="Do not use configured proxy to connect to this server",k="Finalizing Setup",B="Next",D="Previous",P="Apply",G="Required"},22614:function(e,n,t){t.d(n,{w:function(){return i},y:function(){return a}});var r=t(87146),o=t(47801),a=(0,r.ZL)()(function(e){return{form:{display:"flex",flexDirection:"column",rowGap:e.spacing(2),width:"100%"},formButton:{columnGap:e.spacing(1),display:"flex",flexDirection:"row",justifyContent:"flex-end",marginTop:e.spacing(1.875)},formHeading:{marginBottom:e.spacing(.625)},formItem:{paddingBottom:e.spacing(1.875)},formText:{color:"#242f3a",fontFamily:"Roboto Regular",fontSize:e.spacing(1.5),margin:"20px 0"},wizardRadio:{columnGap:e.spacing(2),display:"flex",justifyContent:"center",marginBottom:e.spacing(3)}}}),i=(0,r.ZL)()(function(e,n){var t=n.statusCreating,r=n.statusGenerating;return{formButton:{columnGap:e.spacing(1),display:"flex",flexDirection:"row",justifyContent:"flex-end",marginTop:e.spacing(1.875)},formHeading:{marginBottom:e.spacing(.625)},formText:{color:o.Z["500"],fontFamily:"Roboto Regular",fontSize:e.spacing(1.5),margin:"20px 0"},statusCreating:{color:t?"#acd174":"#d0021b"},statusGenerating:{color:r?"#acd174":"#d0021b"}}})}}]);
//# sourceMappingURL=9449.0277984d2c6f7454dbbb.d53b84431ab57f145ffb.1956bc7e7bc1c00175ba.js.map