1import{r as j,j as s}from"./vendor-react.ELhBuE2q.js";import{u as f}from"./useChangePassword.dV3Jaj_D.js";import{S as p}from"./SmartInput.DfKyFp4R.js";import{f as g,W as i}from"./app-shared.CdUkAbk4.js";import{S as r}from"./TextBox.D9WGVcEh.js";import{C as t}from"./Correct.BodzphQ8.js";import{R as u}from"./RandomPassword.Hf_IGVlZ.js";import"./useForm.CzjyTpF3.js";import"./validators.ClER9loN.js";import"./passwordRules.Cf8cmGql.js";import"./index.CL3JG3S5.js";import"./vendor-moment.BLMuvzoS.js";import"./gVar.BMCpjf-P.js";import"./vendor-ui.BSTRh9Ug.js";import"./vendor-i18n.DvM0XvO9.js";import"./vendor-router.aN8wpDPU.js";import"./vendor-axios.NIGUFBhG.js";function W({dataEvent:m,onClose:c}){const{t:e,user:_,formData:o,errors:a,handleInputChange:l,ExamPassword:x,hintColor:n,submit:h,finishOnModal:d,randomPasswordBox:w}=f();return j.useEffect(()=>{d===!0&&c()},[d]),s.jsx("div",{className:`m-auto ${m?"max-w-[370px]":"max-w-[500px]"}`,children:s.jsx(g,{styleName:"bg_change_password_poker",className:"relative",children:s.jsxs("div",{className:"relative flex flex-col p-4",children:[s.jsx(r,{styleName:"text_title_change_password_poker",children:e("change_password")}),_.cust_status!==3&&s.jsxs(s.Fragment,{children:[s.jsx(r,{styleName:"text_label_change_password_poker",children:e("please_enter_the_old_password_correctly")}),s.jsx("div",{children:s.jsx(p,{styleName:"change_password_poker",type:"password",name:"old_password",value:o.old_password,onChange:l,placeholder:`${e("old_password")}`,error:`${(a==null?void 0:a.old_password)||""}`})})]}),s.jsx(r,{styleName:"text_label_change_password_poker",children:e("set_new_password")}),s.jsxs("div",{children:[s.jsx(p,{styleName:"change_password_poker",type:"password",name:"password",value:o.password,onChange:l,placeholder:`${e("set_new_password")}`,error:`${(a==null?void 0:a.password)||""}`}),s.jsx(r,{styleName:"text_label_change_password_poker",className:"mt-4 mb-2 text-left",children:e("confirm_password")}),s.jsx(p,{styleName:"change_password_poker",type:"password",name:"password_confirmation",value:o.password_confirmation,onChange:l,placeholder:`${e("password_confirmation")}`,error:`${(a==null?void 0:a.password_confirmation)||""}`})]}),s.jsx(u,{...w}),s.jsxs("ul",{className:"flex flex-col items-start mb-5 gap-3",children:[s.jsxs("li",{className:"text-left flex gap-2 items-center",children:[s.jsx("div",{className:"w-18px",children:s.jsx(t,{color:n(0)})}),s.jsx(r,{styleName:"text_hint_change_password_poker",children:e("your_password_must_characters")})]}),s.jsxs("li",{className:"text-left flex gap-2 items-center",children:[s.jsx("div",{className:"w-18px",children:s.jsx(t,{color:n(1)})}),s.jsx(r,{styleName:"text_hint_change_password_poker",children:e("your_password_letters_and_numbers")})]}),s.jsxs("li",{className:"text-left flex gap-2 items-center",children:[s.jsx("div",{className:"w-18px",children:s.jsx(t,{color:n(2)})}),s.jsx(r,{styleName:"text_hint_change_password_poker",children:e("reset_password_rule_match")})]}),s.jsxs("li",{className:"text-left flex gap-2 items-center",children:[s.jsx("div",{className:"w-18px",children:s.jsx(t,{})}),s.jsxs(r,{styleName:"text_hint_change_password_poker",children:["*",e("exam_change_password")]}),s.jsx(x,{})]})]}),s.jsx(i,{styleName:"btn_submit_change_password_poker",label:e("confirm"),onClick:()=>h()}),m&&s.jsx("div",{className:"mt-4",children:s.jsx(i,{styleName:"btn_close_change_password_poker",label:e("cancel"),onClick:()=>c()})})]})})})}export{W as default};
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.