1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6550],{3109:function(s,e,a){a.d(e,{p:function(){return ChangePasswordForm}});var r=a(52322),o=a(61842),d=a(38201),n=a(72779),l=a.n(n),i=a(82981);let ChangePasswordForm=s=>{var e,a;let{onSubmit:n,changePasswordForm:t,isPopup:w}=s,{t:c}=(0,i.$G)(),{register:P,handleSubmit:h,formState:u}=t,{errors:g,touchedFields:_,isSubmitting:p,isDirty:m,isValid:b}=u;return(0,r.jsxs)("form",{className:l()({changePassWord:!w,resetPassWord:w}),onSubmit:s=>{s.preventDefault(),h(n)},children:[(0,r.jsx)(o.Wz,{register:P("oldPassword",{required:{value:!0,message:c("Label_ChangePassword_PasswordReq")}}),password:!0,title:c("Label_ChangePassword_OldPassword")||"",touched:!!_.oldPassword,errorMessage:null===(e=g.oldPassword)||void 0===e?void 0:e.message,error:!!g.oldPassword}),(0,r.jsx)(o.Wz,{register:P("newPassword",{required:{value:!0,message:c("Label_ChangePassword_PasswordReq")},pattern:{value:d.zU,message:c("Label_General_PasswordValidate")}}),password:!0,title:c("Label_ChangePassword_NewPassword")||"",touched:!!_.newPassword,errorMessage:null===(a=g.newPassword)||void 0===a?void 0:a.message,error:!!g.newPassword}),(0,r.jsx)("div",{className:"btnGroup",children:(0,r.jsx)("button",{className:"primary",onClick:h(n),type:"submit",disabled:!m||!b||p,children:c("Label_General_Submit")})})]})}},76550:function(s,e,a){a.r(e);var r=a(52322),o=a(88213),d=a(50591),n=a(82981),l=a(3109);let ChangePasswordModal=()=>{let{t:s}=(0,n.$G)(),{modal:e}=(0,o.JT)(),{changePasswordForm:a,onSetChangePassword:i}=(0,d.VtI)(),{reset:t}=a,showErrorModal=s=>{e.error(s,{onOK:()=>{e.open((0,r.jsx)(ChangePasswordModal,{}))}})},showInfoModal=()=>{e.info([s("Label_ChangePassword_ChangePswUpdateSuccess"),s("Label_ChangePassword_ChangePswSuccessHint")],{icon:"icon icon-icon32px_password",title:s("Label_General_ChangePassword"),onOK:t})};return(0,r.jsx)("div",{className:"pop",children:(0,r.jsxs)("div",{className:"resetPassWordpop active",children:[(0,r.jsxs)("div",{className:"title",children:[(0,r.jsx)("i",{className:"icon icon-icon32px_password"}),s("Label_General_ChangePassword")]}),(0,r.jsx)(l.p,{onSubmit:s=>{i(s,showInfoModal,showErrorModal)},changePasswordForm:a,isPopup:!0})]})})};e.default=ChangePasswordModal}}]);
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.