1import{r as j,j as s}from"./vendor-react.ELhBuE2q.js";import{u}from"./useChangePassword.dV3Jaj_D.js";import{S as x}from"./SmartInput.DfKyFp4R.js";import{z as N,aC as g,W as p}from"./app-shared.CdUkAbk4.js";import{S as r}from"./TextBox.D9WGVcEh.js";import{C as l}from"./Correct.BodzphQ8.js";import{R as y}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 K({dataEvent:o,onClose:i}){const t=N("texas"),{t:e,user:_,formData:c,errors:a,handleInputChange:n,ExamPassword:h,hintColor:m,submit:w,finishOnModal:d,randomPasswordBox:f}=u();return j.useEffect(()=>{d===!0&&i()},[d]),s.jsx("div",{className:`m-auto ${o?"max-w-[370px]":"max-w-[500px]"}`,children:s.jsx("div",{className:"",children:s.jsxs("div",{className:"relative flex flex-col p-4",children:[s.jsxs("div",{className:`${o?"mt-[60px]":"mt-5 "} mb-5 flex flex-col items-center w-full`,children:[s.jsxs("div",{className:"flex items-center justify-center gap-2",children:[s.jsx(g,{size:20,strokeWidth:2.2,"aria-hidden":"true",style:{color:t,filter:`drop-shadow(0 0 5px ${t}80)`}}),s.jsx(r,{styleName:"text_title_change_password_texas",label:e("change_password")})]}),s.jsx("div",{"aria-hidden":"true",className:"mt-1.5",style:{height:"2px",width:"120px",background:`linear-gradient(90deg, transparent, ${t}, #F8D766, ${t}, transparent)`}})]}),_.cust_status!==3&&s.jsxs(s.Fragment,{children:[s.jsx(r,{styleName:"text_label_change_password_texas",className:"mb-5 text-left",label:e("please_enter_the_old_password_correctly")}),s.jsx("div",{children:s.jsx(x,{styleName:"change_password_texas",type:"password",name:"old_password",value:c.old_password,onChange:n,placeholder:`${e("old_password")}`,error:`${(a==null?void 0:a.old_password)||""}`})})]}),s.jsx(r,{styleName:"text_label_change_password_texas",className:"mb-5 text-left",label:e("set_new_password")}),s.jsxs("div",{children:[s.jsx(x,{styleName:"change_password_texas",type:"password",name:"password",value:c.password,onChange:n,placeholder:`${e("set_new_password")}`,error:`${(a==null?void 0:a.password)||""}`}),s.jsx(r,{styleName:"text_label_change_password_texas",className:"mb-3 mt-4 text-left",label:e("confirm_password")}),s.jsx(x,{styleName:"change_password_texas",type:"password",name:"password_confirmation",value:c.password_confirmation,onChange:n,placeholder:`${e("password_confirmation")}`,error:`${(a==null?void 0:a.password_confirmation)||""}`})]}),s.jsx(y,{...f}),s.jsxs("ul",{className:"flex flex-col items-start mb-5 font-bold gap-3",children:[s.jsxs("li",{className:"text-left text-[14px] flex gap-2 items-center ",children:[s.jsx("div",{className:"w-18px",style:{color:t},children:s.jsx(l,{color:m(0)})})," ",s.jsx("span",{children:e("your_password_must_characters")})]}),s.jsxs("li",{className:"text-left text-[14px] flex gap-2 items-center",children:[s.jsx("div",{className:"w-18px",style:{color:t},children:s.jsx(l,{color:m(1)})}),s.jsxs("span",{children:[" ",e("your_password_letters_and_numbers")]})]}),s.jsxs("li",{className:"text-left text-[14px] flex gap-2 items-center",children:[s.jsx("div",{className:"w-18px",style:{color:t},children:s.jsx(l,{color:m(2)})}),s.jsxs("span",{children:[" ",e("reset_password_rule_match")]})]}),s.jsxs("li",{className:"text-left text-[14px] flex gap-2 items-center",children:[s.jsx("div",{className:"w-18px",style:{color:t},children:s.jsx(l,{})})," ","*",e("exam_change_password"),s.jsx(h,{})]})]}),s.jsx(p,{styleName:"btn_submit_change_password_texas",label:e("confirm"),onClick:()=>w()}),o&&s.jsx("div",{className:"mt-4",children:s.jsx(p,{styleName:"btn_close_change_password_texas",label:e("cancel"),onClick:()=>i()})})]})})})}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.