"use strict";(self.webpackChunkname=self.webpackChunkname||[]).push([[7836],{27036:(e,t,r)=>{var n=r(64836);t.Z=void 0;var a=n(r(64938)),o=r(85893),i=(0,a.default)((0,o.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");t.Z=i},28350:(e,t,r)=>{var n=r(64836);t.Z=void 0;var a=n(r(64938)),o=r(85893),i=(0,a.default)((0,o.jsx)("path",{d:"M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"}),"SmsFailed");t.Z=i},66489:(e,t,r)=>{r.d(t,{Z:()=>x});var n=r(63366),a=r(87462),o=r(81672),i=r(86010),s=r(94780),c=r(70917),l=r(98216),u=r(71657),m=r(90948),d=r(22346),f=r(85893);const v=["className","color","disableShrink","size","style","thickness","value","variant"];let g,p,h,y,b=e=>e;const S=(0,c.F4)(g||(g=b`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`)),Z=(0,c.F4)(p||(p=b`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -125px;
  }
`)),R=(0,m.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`color${(0,l.Z)(r.color)}`]]}})((({ownerState:e,theme:t})=>(0,a.Z)({display:"inline-block"},"determinate"===e.variant&&{transition:t.transitions.create("transform")},"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main})),(({ownerState:e})=>"indeterminate"===e.variant&&(0,c.iv)(h||(h=b`
      animation: ${0} 1.4s linear infinite;
    `),S))),k=(0,m.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),C=(0,m.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.circle,t[`circle${(0,l.Z)(r.variant)}`],r.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>(0,a.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,c.iv)(y||(y=b`
      animation: ${0} 1.4s ease-in-out infinite;
    `),Z))),x=o.forwardRef((function(e,t){const r=(0,u.Z)({props:e,name:"MuiCircularProgress"}),{className:o,color:c="primary",disableShrink:m=!1,size:g=40,style:p,thickness:h=3.6,value:y=0,variant:b="indeterminate"}=r,S=(0,n.Z)(r,v),Z=(0,a.Z)({},r,{color:c,disableShrink:m,size:g,thickness:h,value:y,variant:b}),x=(e=>{const{classes:t,variant:r,color:n,disableShrink:a}=e,o={root:["root",r,`color${(0,l.Z)(n)}`],svg:["svg"],circle:["circle",`circle${(0,l.Z)(r)}`,a&&"circleDisableShrink"]};return(0,s.Z)(o,d.C,t)})(Z),w={},E={},P={};if("determinate"===b){const e=2*Math.PI*((44-h)/2);w.strokeDasharray=e.toFixed(3),P["aria-valuenow"]=Math.round(y),w.strokeDashoffset=`${((100-y)/100*e).toFixed(3)}px`,E.transform="rotate(-90deg)"}return(0,f.jsx)(R,(0,a.Z)({className:(0,i.Z)(x.root,o),style:(0,a.Z)({width:g,height:g},E,p),ownerState:Z,ref:t,role:"progressbar"},P,S,{children:(0,f.jsx)(k,{className:x.svg,ownerState:Z,viewBox:"22 22 44 44",children:(0,f.jsx)(C,{className:x.circle,style:w,ownerState:Z,cx:44,cy:44,r:(44-h)/2,fill:"none",strokeWidth:h})})}))}))},22346:(e,t,r)=>{r.d(t,{C:()=>o,Z:()=>i});var n=r(1588),a=r(34867);function o(e){return(0,a.Z)("MuiCircularProgress",e)}const i=(0,n.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"])},23510:(e,t,r)=>{r.d(t,{Z:()=>i});var n=r(33206),a=r(66489),o=(0,n.ZL)()((function(){return{alignCenter:{alignItems:"center",display:"grid",height:"100%",justifyContent:"center",width:"100%"}}}));const i=function(e){var t,r,n,i=e.loading,s=e.children,c=e.loadingIndicatorSize,l=void 0===c?void 0:c,u=e.alignCenter,m=void 0===u||u,d=e.className,f=e.loadingContainerClassname,v=o(),g=v.classes,p=v.cx;return i?React.createElement("div",{className:p((t={},r=g.alignCenter,n=m,r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t),f)},React.createElement(a.Z,{className:d,size:l})):s}},63325:(e,t,r)=>{r.d(t,{I0:()=>o,P0:()=>i,PU:()=>s,gn:()=>u,iv:()=>c,lD:()=>l});var n="./api/internal.php",a="".concat(n,"?object=centreon_configuration_remote"),o="".concat(a,"&action=getPollerWaitList"),i="".concat(a,"&action=getRemotesList"),s="".concat(a,"&action=getWaitList"),c="./api/internal.php?object=centreon_configuration_poller&action=list",l="".concat(a,"&action=linkCentreonRemoteServer"),u="".concat(n,"?object=centreon_task_service&action=getTaskStatus")},59395:(e,t,r)=>{r.d(t,{K8:()=>c,Tq:()=>i,jF:()=>l,sc:()=>s});var n=r(80620);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){a(e,t,r[t])}))}return e}var i=(0,n.atom)(null),s=(0,n.atom)(null,(function(e,t,r){t(i,o({},e(i),r))})),c=(0,n.atom)(null),l=(0,n.atom)(null,(function(e,t,r){t(c,o({},e(c),r))}))},27836:(e,t,r)=>{r.r(t),r.d(t,{default:()=>h});var n=r(81672),a=r(80620),o=r(63397),i=r(89250),s=r(79895),c=r(58226),l=r(66737),u=r(72824),m=r(16011),d=r(59395),f=r(62586),v=r(63325);function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,o=[],i=!0,s=!1;try{for(r=r.call(e);!(i=(n=r.next()).done)&&(o.push(n.value),!t||o.length!==t);i=!0);}catch(e){s=!0,a=e}finally{try{i||null==r.return||r.return()}finally{if(s)throw a}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const h=function(){var e=(0,o.useTranslation)().t,t=p((0,n.useState)(null),2),r=t[0],g=t[1],h=p((0,n.useState)(null),2),y=h[0],b=h[1],S=(0,c.Z)({request:l.qC}).sendRequest,Z=(0,i.s0)(),R=(0,n.useRef)(),k=(0,n.useRef)(30),C=(0,a.useAtomValue)(d.K8),x=function(){var e=C.taskId;S({data:{task_id:e},endpoint:v.gn}).then((function(e){return(0,s.ffD)(e.success)?(g(JSON.stringify(e)),void b(!1)):(0,s.fS0)(e.status,"completed")?(b(!0),void setTimeout((function(){Z(m.Z.pollerList)}),2e3)):void w()})).catch((function(e){g(JSON.stringify(e.response.data)),b(!1)}))},w=function(){if(k.current>0)return k.current-=1,void(R.current=setTimeout(x,1e3));g(e(f.no)),b(!1)};return(0,n.useEffect)((function(){w()}),[]),React.createElement(u.Z,{error:r,formTitle:e(f.TE),statusCreating:C.submitStatus?C.submitStatus:null,statusGenerating:y})}},62586:(e,t,r)=>{r.d(t,{$m:()=>i,BD:()=>S,Bs:()=>d,EI:()=>x,GM:()=>p,H0:()=>P,HT:()=>u,Ib:()=>h,Ke:()=>A,LI:()=>Z,Mf:()=>f,P6:()=>s,R4:()=>y,TE:()=>j,TY:()=>T,Ti:()=>N,V:()=>g,Xe:()=>b,_L:()=>C,_y:()=>k,bh:()=>D,i2:()=>o,i9:()=>m,jN:()=>E,l3:()=>c,lZ:()=>v,nR:()=>w,no:()=>n,tT:()=>R,u0:()=>a,uA:()=>l});var n="Export generation timeout",a="Add advanced server configuration",o="Create new Poller",i="Select a Poller",s="Select Pending Poller IP",c="Do not check SSL certificate validation",l="Creating Export Task",u="Generating Export Files",m="Add a Centreon Poller",d="Add a Centreon Remote Server",f="Server Configuration",v="Choose a server type",g="Create new Remote Server",p="Select a Remote Server",h="Select Pending Remote Links",y="Server Name",b="Server IP address",S="Database username",Z="Database password",R="Centreon Central IP address, as seen by this server",k="Centreon Web Folder on Remote",C="Attach poller to a master remote server",x="Attach poller to additional remote servers",w="Select pollers to be attached to this new Remote Server",E="Advanced: reverse Centreon Broker communication flow",P="Do not use configured proxy to connect to this server",j="Finalizing Setup",T="Next",D="Previous",N="Apply",A="Required"},72824:(e,t,r)=>{r.d(t,{Z:()=>g});var n=r(79895),a=r(63397),o=r(21987),i=r(23972),s=r(16651),c=r(42588),l=r(14723),u=r(27036),m=r(28350),d=r(23510),f=r(97163),v=r(62586);function g(e){var t=e.formTitle,r=e.statusCreating,g=e.statusGenerating,p=e.error,h=(0,f.w)({statusCreating:r,statusGenerating:g}),y=(0,a.useTranslation)().t,b=(0,n.kKJ)(r)||(0,n.kKJ)(g),S=((0,n.fS0)(r,!1)||(0,n.fS0)(g,!1))&&p;return React.createElement(o.Z,null,React.createElement("div",null,React.createElement("div",{className:h.formHeading},React.createElement(i.Z,{variant:"h6"},t)),React.createElement("p",{className:h.formText},React.createElement(d.Z,{alignCenter:!0,loading:b},React.createElement("span",{className:h.statusCreating},(0,n.ffD)((0,n.kKJ)(r))?React.createElement(i.Z,{variant:"body2"},React.createElement(l.Z,{color:r?"success":"error",icon:r?React.createElement(u.Z,null):React.createElement(m.Z,null),label:y(v.uA),style:{width:"100%"}})):"..."))),React.createElement("p",{className:h.formText},React.createElement(d.Z,{alignCenter:!0,loading:b},React.createElement("span",{className:h.statusGenerating},(0,n.ffD)((0,n.kKJ)(g))?React.createElement(i.Z,{variant:"body2"},React.createElement(l.Z,{color:g?"success":"error",icon:g?React.createElement(u.Z,null):React.createElement(m.Z,null),label:y(v.HT),style:{width:"100%"}})):"..."))),S&&React.createElement(s.ZP,{item:!0},React.createElement(c.Z,{severity:"error"},React.createElement(i.Z,null,p)))))}},97163:(e,t,r)=>{r.d(t,{w:()=>i,y:()=>o});var n=r(16779),a=r(47036),o=(0,n.Z)((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,n.Z)((function(e){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:a.Z[500],fontFamily:"Roboto Regular",fontSize:e.spacing(1.5),margin:"20px 0"},statusCreating:function(e){return{color:e.statusCreating?"#acd174":"#d0021b"}},statusGenerating:function(e){return{color:e.statusGenerating?"#acd174":"#d0021b"}}}}))}}]);