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