Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Your IP : 3.17.78.182
(window.webpackJsonp=window.webpackJsonp||[]).push([[139],{1013:function(e,t,r){"use strict";r.r(t);var a=r(41),n=r.n(a),o=r(68),s=r(99),l=r(100),c=r(102),i=r(101),d=r(103),m=r(1),p=r.n(m),u=r(858),f=r(1098),h=r(1106),b=r(867),g=r(586),E=r(587),w=r(104),v=r(290),O=r(266),P=r(384),N=function(e){function t(){var e,r;Object(s.a)(this,t);for(var a=arguments.length,l=new Array(a),d=0;d<a;d++)l[d]=arguments[d];return(r=Object(c.a)(this,(e=Object(i.a)(t)).call.apply(e,[this].concat(l)))).sendOtp=function(){var e=Object(o.a)(n.a.mark(function e(t,a){var o,s,l;return n.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t.preventDefault(),""!==(o=r.props.fgtpasswd.fmobileno)){e.next=7;break}return s={header:"Error",content:"Enter Mobile No."},r.props.showError(s),r.setState({fmobileerror:!0}),e.abrupt("return");case 7:if(!(o.length<10)){e.next=12;break}return l={header:"Error",content:"Enter 10 digits for Mobile No."},r.props.showError(l),r.setState({fmobileerror:!0}),e.abrupt("return");case 12:return e.next=14,r.props.sendFgtOtp();case 14:case"end":return e.stop()}},e)}));return function(t,r){return e.apply(this,arguments)}}(),r.handleChange=function(e,t){var a=t.name,n=t.value;(/^\d*$/.test(n)||"fmobileno"!==a&&"fmotp"!==a)&&r.props.changefgt(a,n)},r.resetPassword=function(){var e=r.props.fgtpasswd,t=e.fmotp,a=e.fcpasswd,n=e.fpasswd;if(""===t){return r.props.showError({header:"Error",content:"Enter OTP"}),void r.setState({fmobileerror:!0})}if(t.length<6){return r.props.showError({header:"Error",content:"Enter 6 digits for OTP"}),void r.setState({fmobileerror:!0})}if(""===n){return r.props.showError({header:"Error",content:"Enter Password"}),void r.setState({fmobileerror:!0})}if(n.length<8){return r.props.showError({header:"Error",content:"Enter 8 digits for Password"}),void r.setState({fmobileerror:!0})}if(""===a){return r.props.showError({header:"Error",content:"Enter confirm Password"}),void r.setState({fmobileerror:!0})}if(a.length<8){return r.props.showError({header:"Error",content:"Enter 8 digits for confirm Password"}),void r.setState({fmobileerror:!0})}if(a!==n){return r.props.showError({header:"Error",content:"Password and confirm Password are not same."}),void r.setState({fmobileerror:!0})}r.props.resetPassword()},r}return Object(d.a)(t,e),Object(l.a)(t,[{key:"componentWillUnmount",value:function(){this.props.clearFgt()}},{key:"render",value:function(){var e=this.props.fgtpasswd,t=e.fmobileno,r=e.fmotp,a=e.fcpasswd,n=e.fpasswd,o=e.fmobvalid;return p.a.createElement("div",{className:"app flex-row align-items-center"},p.a.createElement(b.a,null,p.a.createElement("div",{className:"row justify-content-center"},p.a.createElement(P.a,null),p.a.createElement("div",{className:"col-md-9 col-lg-6 col-xl-5"},p.a.createElement(g.a,{className:"p-4"},p.a.createElement(E.a,null,p.a.createElement(f.a,null,p.a.createElement("h1",null,"Forgot Password"),p.a.createElement("p",{className:"text-muted"},"Reset your password"),p.a.createElement(f.a.Field,null,p.a.createElement(f.a.Input,{maxLength:"10",minLength:"10",name:"fmobileno",autoFocus:!0,icon:"mobile alternate",iconPosition:"left",placeholder:"Registered Mobile No.",value:t,onChange:this.handleChange,autoComplete:"off",readOnly:o}),p.a.createElement("div",{className:"row"},p.a.createElement("div",{className:"col-md-6"},p.a.createElement(h.a,{color:"blue",className:"px-4",onClick:this.sendOtp},o?"Resend-OTP":"Send-OTP")))),p.a.createElement(f.a.Field,null,p.a.createElement(f.a.Input,{name:"fmotp",type:"text",icon:"mobile alternate",iconPosition:"left",placeholder:"Mobile OTP",maxLength:"6",minLength:"6",value:r,onChange:this.handleChange,required:!0})),p.a.createElement(f.a.Field,null,p.a.createElement(f.a.Input,{required:!0,name:"fpasswd",type:"password",icon:"lock",iconPosition:"left",placeholder:"Password",minLength:"8",maxLength:"25",value:n,onChange:this.handleChange})),p.a.createElement(f.a.Field,null,p.a.createElement(f.a.Input,{required:!0,name:"fcpasswd",type:"password",icon:"lock",iconPosition:"left",placeholder:"Confirm Password",minLength:"8",maxLength:"25",value:a,onChange:this.handleChange}),p.a.createElement("div",{className:"row"},p.a.createElement("div",{className:"col-md-6"},p.a.createElement(h.a,{color:"blue",className:"px-4",onClick:this.resetPassword},"Reset Password")))),p.a.createElement("div",{className:"row"},p.a.createElement("div",{style:{margin:"0 auto"}},p.a.createElement("div",{style:{margin:"1em auto"}},p.a.createElement("b",null,p.a.createElement(u.a,{to:"/",className:"ui link"},"Click here to Login"))))))))))))}}]),t}(m.Component);t.default=Object(w.b)(function(e){return{fgtpasswd:e.fgtpasswd}},{changefgt:v.e,showError:O.w,sendFgtOtp:v.p,resetPassword:v.o,clearFgt:v.f})(N)},586:function(e,t,r){"use strict";var a=r(8),n=r(35),o=r(1),s=r.n(o),l=r(4),c=r.n(l),i=r(265),d=r.n(i),m=r(286),p={tag:m.e,inverse:c.a.bool,color:c.a.string,block:Object(m.a)(c.a.bool,'Please use the props "body"'),body:c.a.bool,outline:c.a.bool,className:c.a.string,cssModule:c.a.object,innerRef:c.a.oneOfType([c.a.object,c.a.string,c.a.func])},u=function(e){var t=e.className,r=e.cssModule,o=e.color,l=e.block,c=e.body,i=e.inverse,p=e.outline,u=e.tag,f=e.innerRef,h=Object(n.a)(e,["className","cssModule","color","block","body","inverse","outline","tag","innerRef"]),b=Object(m.c)(d()(t,"card",!!i&&"text-white",!(!l&&!c)&&"card-body",!!o&&(p?"border":"bg")+"-"+o),r);return s.a.createElement(u,Object(a.a)({},h,{className:b,ref:f}))};u.propTypes=p,u.defaultProps={tag:"div"},t.a=u},587:function(e,t,r){"use strict";var a=r(8),n=r(35),o=r(1),s=r.n(o),l=r(4),c=r.n(l),i=r(265),d=r.n(i),m=r(286),p={tag:m.e,className:c.a.string,cssModule:c.a.object,innerRef:c.a.oneOfType([c.a.object,c.a.string,c.a.func])},u=function(e){var t=e.className,r=e.cssModule,o=e.innerRef,l=e.tag,c=Object(n.a)(e,["className","cssModule","innerRef","tag"]),i=Object(m.c)(d()(t,"card-body"),r);return s.a.createElement(l,Object(a.a)({},c,{className:i,ref:o}))};u.propTypes=p,u.defaultProps={tag:"div"},t.a=u}}]);
//# sourceMappingURL=139.41e3ba38.chunk.js.map
|