1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[450],{19642(s,e,r){r.r(e),r.d(e,{ResetPassword:()=>b,default:()=>f});var t=r(96540),o=r(12259),a=r(67270),d=r(15367),n=r(98934),i=r(99615),c=r(84432),m=r(8827),l=r(81596),S=r(63174),w=r(16987),u=r(51712),A=r(56475),P=r(49785),h=r(34344),_=r(24840),E=r(49942),R=r(74848);const x=({t:s,onSubmit:e,error:r})=>{const{register:t,handleSubmit:o,formState:{errors:d},watch:n}=(0,P.mN)({mode:"onBlur"}),i=(0,E.C)("SUCCESS_RESET_PASSWORD");return(0,R.jsxs)("form",{onSubmit:o(e),noValidate:!0,children:[(0,R.jsx)(h.E,{firstFieldName:"password1",secondFieldName:"password2",t:s,register:t,formErrors:d,watch:n,firstLabelTxt:s("account.newPasswd"),secondLabelTxt:s("account.confirmPasswd")}),r&&(0,R.jsx)(_.K,{title:s("Library.register.registration_error_title"),text:s("msg.error.general"),dataCynio:"reset-password-error"}),(0,R.jsx)(a.OV,{id:"reset-submit-btn",type:"submit",buttonSize:"LARGE",buttonType:"PRIMARY",disabled:i,children:s("ResetPassword.changePassword")})]})},b=()=>{const s=(0,l.A)(),e=(0,m.N)(),r=(0,o.wA)(),P=(0,c.A)(),h=(0,o.d4)(s=>s.Common.resetPasswordState.userId),_=(0,o.d4)(s=>s.Common.resetPasswordState.error),E=(0,o.d4)(s=>s.Common.resetPasswordState.sent),b=(0,o.d4)(s=>s.Common.resetPasswordState.passwordToken),f=(0,o.d4)(s=>s.Common.config.APP_TYPE),p=(0,o.d4)(s=>s.Common.config.title);return t.useEffect(()=>{r(S.d.getResetPasswordTokenData(P.key))},[]),_&&_.internal_code===u.f.PASSWORD_RESET_TOKEN_INVALID&&e(n.JZ.REQUEST_PASSWORD+"?expired=true"),(0,i.A)(()=>{r(w.R.trackActionResetPassword())},E&&!_,1),E&&!_?(0,R.jsxs)(A.A,{"data-cynio":"reset-password-form",children:[(0,R.jsx)("h1",{className:"sr-only",children:p}),(0,R.jsx)(d.UE,{as:"h2",children:s("ResetPassword.success")}),(0,R.jsx)(d.Sk,{as:"p",children:s("ResetPassword.successDesc")}),"RESET_PASSWORD"!==f&&(0,R.jsx)("div",{className:"check-email",children:(0,R.jsx)(a.OV,{id:"reset-ok-btn",buttonSize:"LARGE",buttonType:"PRIMARY",onClick:()=>e(n.JZ.LOGIN),children:s("login.signIn")})})]}):(0,R.jsxs)(A.A,{"data-cynio":"reset-password-form",children:[(0,R.jsx)("h1",{className:"sr-only",children:p}),(0,R.jsx)(d.UE,{as:"h2",children:s("ResetPassword.createNewpassword")}),(0,R.jsx)(d.Sk,{as:"p",children:s("Form.errors.minAndMaxLenght",{min:"8",max:"30"})}),(0,R.jsx)(x,{t:s,onSubmit:s=>{r(S.d.updatePassword(h,s.password1,b))},error:_})]})},f=b}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.