"use strict";(self.webpackChunkcentreon=self.webpackChunkcentreon||[]).push([["3705"],{50426:function(e,r,t){var a=t(88619);r.default=void 0;var n=a(t(14420)),i=t(52676);r.default=(0,n.default)((0,i.jsx)("path",{d:"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z"}),"Lock")},97072:function(e,r,t){var a=t(88619);r.default=void 0;var n=a(t(14420)),i=t(52676);r.default=(0,n.default)((0,i.jsx)("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4"}),"Person")},53994:function(e,r,t){var a=t(88619);r.default=void 0;var n=a(t(14420)),i=t(52676);r.default=(0,n.default)((0,i.jsx)("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"}),"Visibility")},64113:function(e,r,t){var a=t(88619);r.default=void 0;var n=a(t(14420)),i=t(52676);r.default=(0,n.default)((0,i.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff")},63128:function(e,r,t){var a=t(59869),n=t(83192),i=t(1975),o=t(54461),l=t(46436),s=t(56517),c=t(81775),u=t(99045),d=t(44445),f=t(47883),m=t(52676);let h=["className","color","disableShrink","size","style","thickness","value","variant"],v=e=>e,p,y,b,Z,g=(0,s.F4)(p||(p=v`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`)),k=(0,s.F4)(y||(y=v`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

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

  100% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -125px;
  }
`)),x=e=>{let{classes:r,variant:t,color:a,disableShrink:n}=e,i={root:["root",t,`color${(0,c.Z)(a)}`],svg:["svg"],circle:["circle",`circle${(0,c.Z)(t)}`,n&&"circleDisableShrink"]};return(0,l.Z)(i,f.C,r)},S=(0,d.ZP)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.root,r[t.variant],r[`color${(0,c.Z)(t.color)}`]]}})(({ownerState:e,theme:r})=>(0,n.Z)({display:"inline-block"},"determinate"===e.variant&&{transition:r.transitions.create("transform")},"inherit"!==e.color&&{color:(r.vars||r).palette[e.color].main}),({ownerState:e})=>"indeterminate"===e.variant&&(0,s.iv)(b||(b=v`
      animation: ${0} 1.4s linear infinite;
    `),g)),C=(0,d.ZP)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,r)=>r.svg})({display:"block"}),w=(0,d.ZP)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,r)=>{let{ownerState:t}=e;return[r.circle,r[`circle${(0,c.Z)(t.variant)}`],t.disableShrink&&r.circleDisableShrink]}})(({ownerState:e,theme:r})=>(0,n.Z)({stroke:"currentColor"},"determinate"===e.variant&&{transition:r.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&(0,s.iv)(Z||(Z=v`
      animation: ${0} 1.4s ease-in-out infinite;
    `),k)),M=i.forwardRef(function(e,r){let t=(0,u.i)({props:e,name:"MuiCircularProgress"}),{className:i,color:l="primary",disableShrink:s=!1,size:c=40,style:d,thickness:f=3.6,value:v=0,variant:p="indeterminate"}=t,y=(0,a.Z)(t,h),b=(0,n.Z)({},t,{color:l,disableShrink:s,size:c,thickness:f,value:v,variant:p}),Z=x(b),g={},k={},M={};if("determinate"===p){let e=2*Math.PI*((44-f)/2);g.strokeDasharray=e.toFixed(3),M["aria-valuenow"]=Math.round(v),g.strokeDashoffset=`${((100-v)/100*e).toFixed(3)}px`,k.transform="rotate(-90deg)"}return(0,m.jsx)(S,(0,n.Z)({className:(0,o.Z)(Z.root,i),style:(0,n.Z)({width:c,height:c},k,d),ownerState:b,ref:r,role:"progressbar"},M,y,{children:(0,m.jsx)(C,{className:Z.svg,ownerState:b,viewBox:`${22} ${22} 44 44`,children:(0,m.jsx)(w,{className:Z.circle,style:g,ownerState:b,cx:44,cy:44,r:(44-f)/2,fill:"none",strokeWidth:f})})}))});r.Z=M},47883:function(e,r,t){t.d(r,{C:function(){return i}});var a=t(94078),n=t(82626);function i(e){return(0,n.ZP)("MuiCircularProgress",e)}let o=(0,a.Z)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);r.Z=o},95022:function(e,r,t){t.r(r);var a=t(1975),n=t(45931),i=t(89016),o=t(563),l=t(41619),s=t(91942),c=t(87146),u=t(50426),d=t(97072),f=t(80509),m=t(63128),h=t(54828),v=t(34449),p=t(32516),y=t(1975);function b(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}var Z="alias",g="password",k=(0,c.ZL)()(function(e){return{form:{display:"flex",flexDirection:"column",rowGap:e.spacing(2),width:"100%"}}}),x=function(e){var r=e.fieldName,t=e.errors,a=e.touched;return(0,i.Z)(r,a)&&(0,i.Z)(r,t)};r.default=function(){var e,r,t=k().classes,c=(0,s.useTranslation)().t;var S=(e=(0,a.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t,a,n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(t=n.next()).done)&&(i.push(t.value),!r||i.length!==r);o=!0);}catch(e){l=!0,a=e}finally{try{!o&&null!=n.return&&n.return()}finally{if(l)throw a}}return i}}(e,2)||function(e,r){if(e){if("string"==typeof e)return b(e,r);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 b(e,r)}}(e,r)||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=S[0],w=S[1],M=(0,n.u6)(),P=M.values,E=M.handleChange,j=M.errors,$=M.touched,A=M.handleBlur,D=M.dirty,V=M.isSubmitting,I=M.handleSubmit,N=function(){w(function(e){return!e})},z=(0,i.Z)(Z,P),L=x({errors:j,fieldName:Z,touched:$}),O=x({errors:j,fieldName:g,touched:$}),H=(0,o.Z)((0,l.Z)(j))||V||(0,o.Z)(D),R=(0,a.useCallback)(function(){return y.createElement(v.Z,{changeVisibility:N,isVisible:C})},[C]);return y.createElement("form",{className:t.form,onSubmit:I},y.createElement(h.Z,{fullWidth:!0,required:!0,StartAdornment:d.default,ariaLabel:p.OH,error:L,label:c(p.OH),value:z||"",onBlur:A(Z),onChange:E(Z),dataTestId:p.OH}),y.createElement(h.Z,{fullWidth:!0,required:!0,forceUncontrolled:!0,EndAdornment:R,StartAdornment:u.default,ariaLabel:p.yy,error:O,inputProps:{"aria-label":c(p.yy),autocomplete:"current-password"},label:c(p.yy),type:C?"text":"password",onBlur:A(g),onChange:E(g),dataTestId:p.yy}),y.createElement(f.Z,{fullWidth:!0,"aria-label":p.b2,color:"primary",disabled:H,endIcon:V&&y.createElement(m.Z,{color:"inherit",size:20}),type:"submit",variant:"contained"},c(p.b2)))}},34449:function(e,r,t){var a=t(91942),n=t(53994),i=t(64113),o=t(76014),l=t(92140),s=t(32516),c=t(1975);r.Z=function(e){var r=e.isVisible,t=e.changeVisibility,u=(0,a.useTranslation)().t,d=r?c.createElement(i.default,null):c.createElement(n.default,null),f=r?s.Yx:s.Xn;return c.createElement(o.Z,{position:"end"},c.createElement(l.Z,{ariaLabel:u(f),size:"small",onClick:t},d))}}}]);
//# sourceMappingURL=3705.d02206172a14e9a4c085.eefff63860c42d28d33b.1956bc7e7bc1c00175ba.js.map