"use strict";(self.webpackChunkForest_Rangers_System=self.webpackChunkForest_Rangers_System||[]).push([[6814],{26814:function(e,r,t){t.r(r),t.d(r,{default:function(){return k}});var n=t(29466),s=t(17592),a=t(70178),i=t(61113),l=t(69099),o=t(98721),c=t(76025),u=t(22227),d=t(15861),m=t(64687),h=t.n(m),x=t(3463),f=t(97890),p=t(1432),g=t(75627),v=t(35898),j=t(32703),y=t(72473),w=t(46417);function Z(){var e=(0,f.s0)(),r=x.Ry().shape({email:x.Z_().email("Email must be a valid email address").required("Email is required")}),t=(0,g.cI)({resolver:(0,p.X)(r),defaultValues:{email:"demo@minimals.cc"}}),n=t.handleSubmit,s=t.formState.isSubmitting,a=function(){var r=(0,d.Z)(h().mark((function r(t){return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,new Promise((function(e){return setTimeout(e,500)}));case 3:sessionStorage.setItem("email-recovery",t.email),e(c.EE.newPassword),r.next=10;break;case 7:r.prev=7,r.t0=r.catch(0),console.error(r.t0);case 10:case"end":return r.stop()}}),r,null,[[0,7]])})));return function(e){return r.apply(this,arguments)}}();return(0,w.jsx)(y.RV,{methods:t,onSubmit:n(a),children:(0,w.jsxs)(v.Z,{spacing:3,children:[(0,w.jsx)(y.au,{name:"email",label:"Email address"}),(0,w.jsx)(j.Z,{fullWidth:!0,size:"large",type:"submit",variant:"contained",loading:s,children:"Send Request"})]})})}var b=(0,s.ZP)("div")((function(e){return{maxWidth:480,margin:"auto",minHeight:"100vh",display:"flex",justifyContent:"center",flexDirection:"column",padding:e.theme.spacing(12,0)}}));function k(){return(0,w.jsxs)(u.Z,{title:"Reset Password",children:[(0,w.jsx)(o.Z,{}),(0,w.jsx)(a.Z,{children:(0,w.jsxs)(b,{sx:{textAlign:"center"},children:[(0,w.jsx)(i.Z,{variant:"h3",paragraph:!0,children:"Forgot your password?"}),(0,w.jsx)(i.Z,{sx:{color:"text.secondary",mb:5},children:"Please enter the email address associated with your account and We will email you a link to reset your password."}),(0,w.jsx)(Z,{}),(0,w.jsx)(l.Z,{fullWidth:!0,size:"large",component:n.rU,to:c.EE.login,sx:{mt:1},children:"Back"})]})})]})}}}]);