%PDF- %PDF-
Direktori : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/ |
Current File : /home/opti/public_html/ezone-accounting.optisoft.com.ng/static/js/198.eef3ec2b.chunk.js |
(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[198],{2656:function(e,s,a){"use strict";a.r(s);var t=a(1118),r=a(32),l=a(131),o=a(1098),i=a(1109),n=a(1116),c=a(1072),d=a(1096),m=a(194),u=a(5),f=a(28),p=a(57),j=a(10),b=a(1);const x=Object(c.a)((e=>({root:{}}))),w=p.d().shape({email:p.f().email("You must enter a valid email").required("You must enter a email"),password:p.f().required("Please enter your password.").min(8,"Password is too short - should be 8 chars minimum."),passwordConfirm:p.f().oneOf([p.e("password"),null],"Passwords must match")}),h={email:"",password:"",passwordConfirm:""};s.default=function(){const e=x(),{control:s,formState:a,handleSubmit:c,reset:p}=Object(r.f)({mode:"onChange",defaultValues:h,resolver:Object(l.a)(w)}),{isValid:v,dirtyFields:O,errors:y}=a;return Object(b.jsx)("div",{className:Object(u.a)(e.root,"flex flex-col flex-auto items-center justify-center p-16 sm:p-32"),children:Object(b.jsx)("div",{className:"flex flex-col items-center justify-center w-full",children:Object(b.jsx)(t.a.div,{initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},children:Object(b.jsx)(i.a,{className:"w-full max-w-384",children:Object(b.jsxs)(n.a,{className:"flex flex-col items-center justify-center p-16 sm:p-24 md:p-32",children:[Object(b.jsx)("img",{className:"w-128 m-32",src:"assets/images/logos/fuse.svg",alt:"logo"}),Object(b.jsx)(m.a,{variant:"h6",className:"mt-16 mb-24 font-semibold text-18 sm:text-24",children:"Reset your password"}),Object(b.jsxs)("form",{name:"resetForm",noValidate:!0,className:"flex flex-col justify-center w-full",onSubmit:c((function(){p(h)})),children:[Object(b.jsx)(r.a,{name:"email",control:s,render:e=>{var s;let{field:a}=e;return Object(b.jsx)(d.a,{...a,className:"mb-16",label:"Email",autoFocus:!0,type:"email",error:!!y.email,helperText:null===y||void 0===y||null===(s=y.email)||void 0===s?void 0:s.message,variant:"outlined",required:!0,fullWidth:!0})}}),Object(b.jsx)(r.a,{name:"password",control:s,render:e=>{var s;let{field:a}=e;return Object(b.jsx)(d.a,{...a,className:"mb-16",label:"Password",type:"password",name:"password",error:!!y.password,helperText:null===y||void 0===y||null===(s=y.password)||void 0===s?void 0:s.message,variant:"outlined",required:!0,fullWidth:!0})}}),Object(b.jsx)(r.a,{name:"passwordConfirm",control:s,render:e=>{var s;let{field:a}=e;return Object(b.jsx)(d.a,{...a,className:"mb-16",label:"Password (Confirm)",type:"password",error:!!y.passwordConfirm,helperText:null===y||void 0===y||null===(s=y.passwordConfirm)||void 0===s?void 0:s.message,variant:"outlined",required:!0,fullWidth:!0})}}),Object(b.jsx)(o.a,{variant:"contained",color:"primary",className:"w-224 mx-auto mt-16","aria-label":"Reset",disabled:j.a.isEmpty(O)||!v,type:"submit",children:"Reset my password"})]}),Object(b.jsx)("div",{className:"flex flex-col items-center justify-center pt-32 pb-24",children:Object(b.jsx)(f.a,{className:"font-normal",to:"/pages/auth/login",children:"Go back to login"})})]})})})})})}}}]);