module.exports=[55030,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(50944),e=a.i(27348),f=a.i(39154),g=a.i(32745),h=a.i(96438),i=a.i(90745),j=a.i(18565),k=a.i(75239);a.s(["default",0,function(){let a=(0,d.useRouter)(),{handleUpdatePassword:l,loading:m}=(0,j.default)(),[n,o]=(0,c.useState)(!1),[p,q]=(0,c.useState)(!1),[r,s]=(0,c.useState)(!1),{register:t,errors:u,handleSubmit:v,reset:w}=(0,i.useAppForm)({defaultValues:{currentPassword:"",newPassword:"",confirmPassword:""},schema:k.updatePasswordSchema,onSubmit:async b=>{try{await l(b),w(),a.back()}catch(a){}}});return(0,b.jsx)("div",{className:"mx-auto max-w-188.5 px-4",children:(0,b.jsx)("div",{className:"glass-card-v2 rounded-2xl p-6 md:p-7.5",children:(0,b.jsxs)("div",{className:"relative z-10",children:[(0,b.jsx)("div",{className:"mb-8 flex items-center gap-4",children:(0,b.jsxs)("button",{type:"button",onClick:()=>a.back(),className:"flex cursor-pointer items-center gap-3 text-link-1",children:[(0,b.jsx)(f.BiArrowBack,{size:28}),(0,b.jsx)("h1",{className:"font-body text-lg font-bold leading-8.5 text-heading md:text-xl",children:"Change Password"})]})}),(0,b.jsxs)("form",{onSubmit:v,className:"space-y-7.5",children:[(0,b.jsxs)("div",{className:"space-y-6",children:[(0,b.jsx)(g.default,{name:"currentPassword",label:"Old Password*",type:n?"text":"password",placeholder:"Enter Old Password",register:t("currentPassword"),error:u.currentPassword?.message,icon:(0,b.jsx)(e.FiLock,{size:18}),rightIcon:(0,b.jsx)("button",{type:"button",onClick:()=>o(a=>!a),className:"text-link-1 cursor-pointer",children:n?(0,b.jsx)(e.FiEyeOff,{size:18}):(0,b.jsx)(e.FiEye,{size:18})})}),(0,b.jsx)(g.default,{name:"newPassword",label:"New Password*",type:p?"text":"password",register:t("newPassword"),error:u.newPassword?.message,placeholder:"Enter New Password",icon:(0,b.jsx)(e.FiLock,{size:18}),rightIcon:(0,b.jsx)("button",{type:"button",onClick:()=>q(a=>!a),className:"text-link-1 cursor-pointer",children:p?(0,b.jsx)(e.FiEyeOff,{size:18}):(0,b.jsx)(e.FiEye,{size:18})})}),(0,b.jsx)(g.default,{name:"confirmPassword",label:"Confirm Password*",type:r?"text":"password",register:t("confirmPassword"),error:u.confirmPassword?.message,placeholder:"Confirm Your Password",icon:(0,b.jsx)(e.FiLock,{size:18}),rightIcon:(0,b.jsx)("button",{type:"button",onClick:()=>s(a=>!a),className:"text-link-1 cursor-pointer",children:r?(0,b.jsx)(e.FiEyeOff,{size:18}):(0,b.jsx)(e.FiEye,{size:18})})})]}),(0,b.jsx)(h.default,{type:"submit",className:"w-full",disabled:m,buttonClassName:"w-full",BtnInnerclassName:"!w-full !py-4.5",children:m?"Updating...":"Update Password"})]})]})})})}])}];

//# sourceMappingURL=src_app_%28landing%29_%28user%29_change-password_page_tsx_0s4s79j._.js.map