(this["webpackJsonpmetta-frontend"]=this["webpackJsonpmetta-frontend"]||[]).push([[7],{1077:function(e,t,s){},1103:function(e,t,s){"use strict";s.r(t);var i=s(37),r=(s(2),s(31)),a=s(67),c=s(48),n=s(33),o=s(23),l=s(57),d=s(56),m=s.p+"static/media/forgot-password.0d85aef4.png",j=s(26),u=s(19),b=u.d({email:u.f().email("Email is invalid").required("Email is required")}),f=(s(1077),s(1)),h=["errorMessage"];t.default=Object(r.b)((function(e){var t=e.user;return{forgotPasswordRequestFinished:t.forgotPasswordRequestCompletedSuccessfully,isFetching:t.isFetching,errorMessage:t.errorMessage}}),(function(e){return{sendForgotPassword:function(t){return e(Object(l.h)({UserId:t}))},clearState:function(){return e({type:o.a.POST_USER_CLEAR_STATE})}}}))((function(e){var t=e.errorMessage,s=Object(i.a)(e,h),r=Object(a.j)();r.path,r.url;if(s.forgotPasswordRequestFinished)return setTimeout((function(){s.clearState()}),10),Object(f.jsx)(a.a,{to:"/"});var o=Object(d.a)((function(){return Object(f.jsx)("div",{className:"text-center pt-4",children:Object(f.jsx)("button",{type:"submit",className:"btn-login",children:"Submit"})})}));return Object(f.jsx)("section",{className:"signin-content",children:Object(f.jsx)("div",{className:"container",children:Object(f.jsxs)("div",{className:"row",children:[Object(f.jsx)("div",{className:"col-md-7 img-responsive",children:Object(f.jsx)("img",{src:m,className:"img-fluid mt-2"})}),Object(f.jsx)("div",{className:"col-md-5",children:Object(f.jsxs)("div",{className:"form-box ml-3",children:[Object(f.jsx)("h2",{className:"fieldset-title mt-0",children:"Forgot Password"}),Object(f.jsx)(n.d,{initialValues:{email:""},validationSchema:b,onSubmit:function(e){var t=e.email;console.log(t),s.sendForgotPassword(t)},children:function(e){return Object(f.jsx)("div",{children:Object(f.jsxs)(n.c,{children:[Object(f.jsx)(j.e,{label:"Email",name:"email",type:"email"}),Object(f.jsx)(o,{defaultHeight:!1,isLoading:s.isFetching})]})})}}),Object(f.jsx)("small",{className:"text-muted form-text mt-2 text-center",children:"Enter e-mail address to get password reset link"}),t?Object(f.jsx)(c.a,{message:t,onclose:function(e){s.clearState()}}):null]})})]})})})}))}}]);
//# sourceMappingURL=7.3f1a4dbd.chunk.js.map