(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[2664],{512664(__unused_webpack_module,__webpack_exports__,__webpack_require__){(function(){if(!this.ST)return()=>{};with(this.ST)with(this.RH)with(this.G)return function(){"use strict";__webpack_require__.d(__webpack_exports__,{A:()=>d});var e=__webpack_require__(303280);__webpack_require__.n(e);var t=__webpack_require__(860012);var l=__webpack_require__(305142);var a=__webpack_require__(805600);var o=__webpack_require__(126528);var r=__webpack_require__(779865);var s=__webpack_require__(917214);var n=__webpack_require__(311734);function i(e,t){return t.length>=n.wz&&t.length>=e.length&&e!==t}function d(d){let c=(0,e.c)(72);let{onChange:p,pwdInputTestId:u,confirmPwdInputTestId:h,disabled:w}=d;let g=w===undefined?!1:w;let m=(0,s.P)();let[f,b]=(0,t.useState)("");let[y,S]=(0,t.useState)(!1);let[T,v]=(0,t.useState)("");let[E,P]=(0,t.useState)(!1);let[C,N]=(0,t.useState)("");let[_,k]=(0,t.useState)(!1);let x=(0,t.useRef)(null);let M;c[0]===Symbol.for("react.memo_cache_sentinel")?(M=e=>{e.key==="Enter"&&(e.preventDefault(),x.current?.focus())},c[0]=M):M=c[0];let z=M;let L;c[1]!==T||c[2]!==m?(L=e=>{let t=i(e,T)?m("passwordsDontMatch"):"";b(e),N(t),k(!1)},c[1]=T,c[2]=m,c[3]=L):L=c[3];let $=L;let D;c[4]!==f||c[5]!==m?(D=e=>{let t=i(f,e)?m("passwordsDontMatch"):"";v(e),N(t)},c[4]=f,c[5]=m,c[6]=D):D=c[6];let Y=D;let Z;let A;c[7]!==T||c[8]!==p||c[9]!==f?(Z=()=>{f.length>=n.wz&&T.length>=n.wz&&f===T?p(f):p("")},A=[f,T,p],c[7]=T,c[8]=p,c[9]=f,c[10]=Z,c[11]=A):(Z=c[10],A=c[11]),(0,t.useEffect)(Z,A);let H;c[12]!==f.length?(H=()=>{let e=f.length;e>0&&e<n.wz?k(!0):k(!1)},c[12]=f.length,c[13]=H):H=c[13];let R=H;let B;c[14]!==m?(B=m("newPasswordCreate"),c[14]=m,c[15]=B):B=c[15];let J=u||"create-password-new-input";let F=y?r.NZ.Text:r.NZ.Password;let G;c[16]!==F||c[17]!==J?(G={"data-testid":J,type:F,onKeyDown:z},c[16]=F,c[17]=J,c[18]=G):G=c[18];let K;c[19]!==$?(K=e=>{$(e.target.value)},c[19]=$,c[20]=K):K=c[20];let j;c[21]===Symbol.for("react.memo_cache_sentinel")?(j={className:"text-alternative","data-testid":"short-password-error"},c[21]=j):j=c[21];let q;c[22]!==m?(q=m("passwordNotLongEnough"),c[22]=m,c[23]=q):q=c[23];let I=y?l.$M.EyeSlash:l.$M.Eye;let O;c[24]!==y?(O=e=>{e.stopPropagation(),S(!y)},c[24]=y,c[25]=O):O=c[25];let Q;c[26]!==y||c[27]!==m?(Q=y?m("passwordToggleHide"):m("passwordToggleShow"),c[26]=y,c[27]=m,c[28]=Q):Q=c[28];let U;c[29]!==I||c[30]!==O||c[31]!==Q?(U=t.createElement(a.a,{iconName:I,"data-testid":"show-password",type:"button",onClick:O,ariaLabel:Q}),c[29]=I,c[30]=O,c[31]=Q,c[32]=U):U=c[32];let V;c[33]!==g||c[34]!==R||c[35]!==f||c[36]!==_||c[37]!==G||c[38]!==K||c[39]!==q||c[40]!==U||c[41]!==B?(V=t.createElement(r.YJ,{label:B,id:"create-password-new",autoFocus:!0,autoComplete:!0,size:r.dY.Lg,value:f,disabled:g,inputProps:G,onChange:K,helpTextProps:j,helpText:q,onBlur:R,error:_,endAccessory:U}),c[33]=g,c[34]=R,c[35]=f,c[36]=_,c[37]=G,c[38]=K,c[39]=q,c[40]=U,c[41]=B,c[42]=V):V=c[42];let W;c[43]!==m?(W=m("confirmPassword"),c[43]=m,c[44]=W):W=c[44];let X=Boolean(C);let ee;c[45]===Symbol.for("react.memo_cache_sentinel")?(ee={"data-testid":"confirm-password-error"},c[45]=ee):ee=c[45];let et=h||"create-password-confirm-input";let el=E?r.NZ.Text:r.NZ.Password;let ea;c[46]!==et||c[47]!==el?(ea={"data-testid":et,type:el},c[46]=et,c[47]=el,c[48]=ea):ea=c[48];let eo;c[49]!==Y?(eo=e=>{Y(e.target.value)},c[49]=Y,c[50]=eo):eo=c[50];let er=E?l.$M.EyeSlash:l.$M.Eye;let es;c[51]!==E?(es=e=>{e.stopPropagation(),P(!E)},c[51]=E,c[52]=es):es=c[52];let en;c[53]!==E||c[54]!==m?(en=E?m("passwordToggleHide"):m("passwordToggleShow"),c[53]=E,c[54]=m,c[55]=en):en=c[55];let ei;c[56]!==er||c[57]!==es||c[58]!==en?(ei=t.createElement(a.a,{iconName:er,"data-testid":"show-confirm-password",type:"button",onClick:es,ariaLabel:en}),c[56]=er,c[57]=es,c[58]=en,c[59]=ei):ei=c[59];let ed;c[60]!==T||c[61]!==C||c[62]!==g||c[63]!==W||c[64]!==X||c[65]!==ea||c[66]!==eo||c[67]!==ei?(ed=t.createElement(r.YJ,{label:W,id:"create-password-confirm",autoComplete:!0,marginTop:4,size:r.dY.Lg,error:X,disabled:g,helpTextProps:ee,helpText:C,value:T,inputRef:x,inputProps:ea,onChange:eo,endAccessory:ei}),c[60]=T,c[61]=C,c[62]=g,c[63]=W,c[64]=X,c[65]=ea,c[66]=eo,c[67]=ei,c[68]=ed):ed=c[68];let ec;return c[69]!==V||c[70]!==ed?(ec=t.createElement(o.a,null,V,ed),c[69]=V,c[70]=ed,c[71]=ec):ec=c[71],ec}}}).call(__webpack_require__._LM_("$root$",{__webpack_require__,__webpack_exports__}))()}}]);