1import{r as C,j as e}from"./vendor-react.ELhBuE2q.js";import{f as p,W as t,J as $}from"./app-shared.CdUkAbk4.js";import{S as i}from"./SmartInput.DfKyFp4R.js";import{S as l}from"./TextBox.D9WGVcEh.js";import{C as d}from"./Correct.BodzphQ8.js";import{u as S}from"./useChangePassword.dV3Jaj_D.js";import"./vendor-ui.BSTRh9Ug.js";import"./vendor-i18n.DvM0XvO9.js";import"./vendor-router.aN8wpDPU.js";import"./vendor-moment.BLMuvzoS.js";import"./vendor-axios.NIGUFBhG.js";import"./useForm.CzjyTpF3.js";import"./validators.ClER9loN.js";import"./passwordRules.Cf8cmGql.js";import"./index.CL3JG3S5.js";import"./gVar.BMCpjf-P.js";function K({dataEvent:n,onClose:_}){const{t:s,user:w,formData:c,errors:a,handleInputChange:r,ExamPassword:u,submit:g,finishOnModal:h,hintColor:N,randomPasswordBox:j}=S(),{enabled:b,generated:f,onRandom:o,onCopy:m}=j;C.useEffect(()=>{h===!0&&_()},[h]);const y=[s("your_password_must_characters"),s("your_password_letters_and_numbers"),s("reset_password_rule_match")];return e.jsx("div",{className:n?"m-auto max-w-[370px]":"w-full",children:e.jsxs(p,{styleName:"bg_changepw_container_fintech",className:"w-full flex flex-col gap-2.5 p-3",children:[n&&e.jsx(l,{styleName:"text_changepw_title_fintech",className:"text-center",label:s("change_password")}),b&&e.jsxs(p,{styleName:"bg_changepw_random_fintech",className:"w-full flex flex-col gap-2",children:[f?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"w-full flex items-center justify-between gap-2 flex-wrap",children:[e.jsx("span",{className:"text_changepw_generated_fintech tracking-widest break-all",children:f}),e.jsx(t,{onClick:()=>m==null?void 0:m(),styleName:"btn_changepw_copy_fintech",className:"flex-none cursor-pointer",label:s("copy")})]}),e.jsx("span",{className:"text_changepw_note_fintech w-full text-left",children:`*${s("random_password_note")}`})]}):e.jsx("span",{className:"text_changepw_hint_fintech w-full text-center",children:s("random_password_hint")}),e.jsxs(t,{onClick:()=>o==null?void 0:o(),styleName:"btn_changepw_random_fintech",className:"w-full flex items-center justify-center gap-1.5 cursor-pointer",children:[e.jsx($,{size:15,strokeWidth:2.2,"aria-hidden":"true"}),e.jsx("span",{children:s("random_password")})]})]}),e.jsxs(p,{styleName:"bg_changepw_form_fintech",className:"w-full flex flex-col gap-1.5",children:[w.cust_status!==3&&e.jsxs(e.Fragment,{children:[e.jsx(l,{styleName:"text_changepw_label_fintech",className:"text-left",label:s("please_enter_the_old_password_correctly")}),e.jsx(i,{styleName:"change_password_fintech",className:"!mb-0",type:"password",name:"old_password",value:c.old_password,onChange:r,placeholder:s("old_password"),error:`${(a==null?void 0:a.old_password)||""}`}),e.jsx("span",{className:"changepw_hr_fintech w-full my-1.5"})]}),e.jsx(l,{styleName:"text_changepw_label_fintech",className:"text-left",label:s("set_new_password")}),e.jsx(i,{styleName:"change_password_fintech",className:"!mb-0",type:"password",name:"password",value:c.password,onChange:r,placeholder:s("set_new_password"),error:`${(a==null?void 0:a.password)||""}`}),e.jsx(l,{styleName:"text_changepw_label_fintech",className:"mt-1.5 text-left",label:s("confirm_password")}),e.jsx(i,{styleName:"change_password_fintech",className:"!mb-0",type:"password",name:"password_confirmation",value:c.password_confirmation,onChange:r,placeholder:s("password_confirmation"),error:`${(a==null?void 0:a.password_confirmation)||""}`}),e.jsx("span",{className:"changepw_hr_fintech w-full my-1.5"}),e.jsxs("ul",{className:"w-full flex flex-col gap-2",children:[y.map((k,x)=>e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"flex-none mt-[1px]",children:e.jsx(d,{color:N(x)})}),e.jsx("span",{className:"text_changepw_check_fintech text-left",children:k})]},`changepw_check_${x}`)),e.jsxs("li",{className:"flex items-start gap-2",children:[e.jsx("span",{className:"flex-none mt-[1px]",children:e.jsx(d,{})}),e.jsxs("span",{className:"text_changepw_check_fintech text-left",children:[`*${s("exam_change_password")}`,e.jsx(u,{})]})]})]}),e.jsx(t,{onClick:()=>g(),styleName:"btn_changepw_submit_fintech",className:"w-full mt-2 cursor-pointer",label:s("confirm")}),n&&e.jsx(t,{onClick:()=>_(),styleName:"btn_changepw_cancel_fintech",className:"w-full mt-1.5 cursor-pointer",label:s("cancel")})]})]})})}export{K 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.