%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/195.988a21bc.chunk.js |
(this["webpackJsonpfuse-react-app"]=this["webpackJsonpfuse-react-app"]||[]).push([[195],{2647:function(e,s,t){"use strict";t.r(s);var a=t(131),l=t(1124),r=t(1098),c=t(1109),i=t(1116),o=t(1090),n=t(1072),m=t(1096),d=t(194),j=t(5),u=t(1118),f=t(32),x=t(28),b=t(57),h=t(10),p=t(1);const O=Object(n.a)((e=>({root:{}}))),v=b.d().shape({password:b.f().required("Please enter your password.").min(8,"Password is too short - should be 8 chars minimum.")}),w={password:""};s.default=function(){const e=O(),{control:s,formState:t,handleSubmit:n,reset:b}=Object(f.f)({mode:"onChange",defaultValues:w,resolver:Object(a.a)(v)}),{isValid:y,dirtyFields:N,errors:k}=t;return Object(p.jsx)("div",{className:Object(j.a)(e.root,"flex flex-col flex-auto items-center justify-center p-16 sm:p-32"),children:Object(p.jsx)("div",{className:"flex flex-col items-center justify-center w-full",children:Object(p.jsx)(u.a.div,{initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},children:Object(p.jsx)(c.a,{className:"w-full max-w-sm",children:Object(p.jsxs)(i.a,{className:"flex flex-col items-center justify-center p-16 sm:p-24 md:p-32",children:[Object(p.jsxs)("div",{className:"min-w-full flex flex-col items-center justify-center sm:flex-row sm:justify-start sm:items-center -mx-8",children:[Object(p.jsxs)("div",{className:"relative mx-8",children:[Object(p.jsx)(l.a,{className:"w-72 h-72",src:"assets/images/avatars/katherine.jpg"}),Object(p.jsx)(o.a,{className:"text-32 absolute right-0 bottom-0",color:"error",children:"lock"})]}),Object(p.jsxs)("div",{className:"mx-8 flex flex-col items-center sm:items-start",children:[Object(p.jsx)(d.a,{variant:"h6",className:"mb-4 font-semibold",children:"Your session is locked"}),Object(p.jsx)(d.a,{color:"textSecondary",className:"font-medium",children:"Due to inactivity, your session is locked. Enter your password to continue."})]})]}),Object(p.jsxs)("form",{name:"lockForm",noValidate:!0,className:"flex flex-col justify-center w-full mt-32",onSubmit:n((function(){b(w)})),children:[Object(p.jsx)(f.a,{name:"name",control:s,render:e=>{let{field:s}=e;return Object(p.jsx)(m.a,{...s,className:"mb-16",label:"Username",value:"Katherine",variant:"outlined",fullWidth:!0,disabled:!0})}}),Object(p.jsx)(f.a,{name:"password",control:s,render:e=>{var s;let{field:t}=e;return Object(p.jsx)(m.a,{...t,className:"mb-16",label:"Password",type:"password",error:!!k.password,helperText:null===k||void 0===k||null===(s=k.password)||void 0===s?void 0:s.message,variant:"outlined",required:!0,fullWidth:!0})}}),Object(p.jsx)(r.a,{variant:"contained",color:"primary",className:"w-224 mx-auto mt-16","aria-label":"Reset",disabled:h.a.isEmpty(N)||!y,type:"submit",children:"Unlock"})]}),Object(p.jsx)("div",{className:"flex flex-col items-center justify-center pt-32 pb-24",children:Object(p.jsx)(x.a,{className:"font-normal",to:"/pages/auth/login",children:"Are you not Katherine?"})})]})})})})})}}}]);