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 : 18.119.166.141
{"version":3,"sources":["pages/registration/ForgotPasswd/ForgotPasswd.js","../node_modules/reactstrap/es/Card.js","../node_modules/reactstrap/es/CardBody.js"],"names":["ForgotPasswd","sendOtp","_callee","e","data","fmobileno","error","_error","_Users_prashanth_univadmin_react_node_modules_babel_preset_react_app_node_modules_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default","a","wrap","_context","prev","next","preventDefault","_this","props","fgtpasswd","header","content","showError","setState","fmobileerror","abrupt","length","sendFgtOtp","stop","handleChange","_ref2","name","value","test","changefgt","resetPassword","_this$props$fgtpasswd","fmotp","fcpasswd","fpasswd","this","clearFgt","_this$props$fgtpasswd2","fmobvalid","react__WEBPACK_IMPORTED_MODULE_7___default","createElement","className","reactstrap__WEBPACK_IMPORTED_MODULE_11__","_containers_DefaultLayout_errorMessage__WEBPACK_IMPORTED_MODULE_17__","reactstrap__WEBPACK_IMPORTED_MODULE_12__","reactstrap__WEBPACK_IMPORTED_MODULE_13__","semantic_ui_react__WEBPACK_IMPORTED_MODULE_9__","Field","Input","maxLength","minLength","autoFocus","icon","iconPosition","placeholder","onChange","autoComplete","readOnly","semantic_ui_react__WEBPACK_IMPORTED_MODULE_10__","color","onClick","type","required","style","margin","react_router_dom__WEBPACK_IMPORTED_MODULE_8__","to","Component","connect","state","_babel_runtime_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","_babel_runtime_helpers_esm_objectWithoutPropertiesLoose__WEBPACK_IMPORTED_MODULE_1__","react__WEBPACK_IMPORTED_MODULE_2__","react__WEBPACK_IMPORTED_MODULE_2___default","n","prop_types__WEBPACK_IMPORTED_MODULE_3__","prop_types__WEBPACK_IMPORTED_MODULE_3___default","classnames__WEBPACK_IMPORTED_MODULE_4__","classnames__WEBPACK_IMPORTED_MODULE_4___default","_utils__WEBPACK_IMPORTED_MODULE_5__","propTypes","tag","inverse","bool","string","block","Object","body","outline","cssModule","object","innerRef","oneOfType","func","Card","Tag","attributes","classes","ref","defaultProps","__webpack_exports__","CardBody"],"mappings":"yRAcMA,6MACJC,8CAAU,SAAAC,EAAOC,EAAGC,GAAV,IAAAC,EAAAC,EAAAC,EAAA,OAAAC,EAAAC,EAAAC,KAAA,SAAAC,GAAA,cAAAA,EAAAC,KAAAD,EAAAE,MAAA,UACRV,EAAEW,iBAEgB,MADVT,EAAcU,EAAKC,MAAMC,UAAzBZ,WAFA,CAAAM,EAAAE,KAAA,eAIAP,EAAQ,CAAEY,OAAQ,QAASC,QAAS,oBAC1CJ,EAAKC,MAAMI,UAAUd,GACrBS,EAAKM,SAAS,CAAEC,cAAc,IANxBX,EAAAY,OAAA,sBASJlB,EAAUmB,OAAS,IATf,CAAAb,EAAAE,KAAA,gBAUAP,EAAQ,CACZY,OAAQ,QACRC,QAAS,kCAEXJ,EAAKC,MAAMI,UAAUd,GACrBS,EAAKM,SAAS,CAAEC,cAAc,IAfxBX,EAAAY,OAAA,yBAAAZ,EAAAE,KAAA,GAkBFE,EAAKC,MAAMS,aAlBT,yBAAAd,EAAAe,SAAAxB,gEAqBVyB,aAAe,SAACxB,EAADyB,GAAwB,IAAlBC,EAAkBD,EAAlBC,KAAMC,EAAYF,EAAZE,OAEpB,QAAQC,KAAKD,IAAoB,cAATD,GAAiC,UAATA,IAErDd,EAAKC,MAAMgB,UAAUH,EAAMC,MAG7BG,cAAgB,WAAM,IAAAC,EACiBnB,EAAKC,MAAMC,UAAxCkB,EADYD,EACZC,MAAOC,EADKF,EACLE,SAAUC,EADLH,EACKG,QACzB,GAAc,KAAVF,EAAc,CAIhB,OAFApB,EAAKC,MAAMI,UADG,CAAEF,OAAQ,QAASC,QAAS,mBAE1CJ,EAAKM,SAAS,CAAEC,cAAc,IAGhC,GAAIa,EAAMX,OAAS,EAAG,CAIpB,OAFAT,EAAKC,MAAMI,UADG,CAAEF,OAAQ,QAASC,Q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AiD,GAC1C,OAAShB,EAAApE,EAAKkC,cAAAwD,EAAoBT,OAAAjB,EAAA,EAAAiB,CAAQ,GAAGU,EAAA,CAC7CxD,UAAAyD,EACAC,IAAAP,MAIAU,EAAArB,YACAqB,EAAAF,aAnBA,CACAlB,IAAA,OAmBemB,EAAA","file":"static/js/139.41e3ba38.chunk.js","sourcesContent":["import React, { Component } from \"react\";\nimport { Link } from \"react-router-dom\";\nimport { Form, Button } from \"semantic-ui-react\";\nimport { Card, CardBody, Container } from \"reactstrap\";\nimport { connect } from \"react-redux\";\nimport {\n changefgt,\n sendFgtOtp,\n resetPassword,\n clearFgt\n} from \"../../../actions/registration/loginRegn\";\nimport { showError } from \"../../../actions\";\nimport ErrorModal from \"../../../containers/DefaultLayout/errorMessage\";\n\nclass ForgotPasswd extends Component {\n sendOtp = async (e, data) => {\n e.preventDefault();\n const { fmobileno } = this.props.fgtpasswd;\n if (fmobileno === \"\") {\n const error = { header: \"Error\", content: \"Enter Mobile No.\" };\n this.props.showError(error);\n this.setState({ fmobileerror: true });\n return;\n }\n if (fmobileno.length < 10) {\n const error = {\n header: \"Error\",\n content: \"Enter 10 digits for Mobile No.\"\n };\n this.props.showError(error);\n this.setState({ fmobileerror: true });\n return;\n }\n await this.props.sendFgtOtp();\n };\n\n handleChange = (e, { name, value }) => {\n // validation for accepting only numbers\n if (!/^\\d*$/.test(value) && (name === \"fmobileno\" || name === \"fmotp\"))\n return;\n this.props.changefgt(name, value);\n };\n\n resetPassword = () => {\n const { fmotp, fcpasswd, fpasswd } = this.props.fgtpasswd;\n if (fmotp === \"\") {\n const error = { header: \"Error\", content: \"Enter OTP\" };\n this.props.showError(error);\n this.setState({ fmobileerror: true });\n return;\n }\n if (fmotp.length < 6) {\n const error = { header: \"Error\", content: \"Enter 6 digits for OTP\" };\n this.props.showError(error);\n this.setState({ fmobileerror: true });\n return;\n }\n if (fpasswd === \"\") {\n const error = { header: \"Error\", content: \"Enter Password\" };\n this.props.showError(error);\n this.setState({ fmobileerror: true });\n return;\n }\n if (fpasswd.length < 8) {\n const error = { header: \"Error\", content: \"Enter 8 digits for Password\" };\n this.props.showError(error);\n this.setState({ fmobileerror: true });\n return;\n }\n if (fcpasswd === \"\") {\n const error = { header: \"Error\", content: \"Enter confirm Password\" };\n this.props.showError(error);\n this.setState({ fmobileerror: true });\n return;\n }\n if (fcpasswd.length < 8) {\n const error = {\n header: \"Error\",\n content: \"Enter 8 digits for confirm Password\"\n };\n this.props.showError(error);\n this.setState({ fmobileerror: true });\n return;\n }\n if (fcpasswd !== fpasswd) {\n const error = {\n header: \"Error\",\n content: \"Password and confirm Password are not same.\"\n };\n this.props.showError(error);\n this.setState({ fmobileerror: true });\n return;\n }\n this.props.resetPassword();\n };\n\n componentWillUnmount() {\n this.props.clearFgt();\n }\n\n render() {\n const {\n fmobileno,\n fmotp,\n fcpasswd,\n fpasswd,\n fmobvalid\n } = this.props.fgtpasswd;\n return (\n <div className=\"app flex-row align-items-center\">\n <Container>\n <div className=\"row justify-content-center\">\n <ErrorModal />\n <div className=\"col-md-9 col-lg-6 col-xl-5\">\n <Card className=\"p-4\">\n <CardBody>\n <Form>\n <h1>Forgot Password</h1>\n <p className=\"text-muted\">Reset your password</p>\n <Form.Field>\n <Form.Input\n maxLength=\"10\"\n minLength=\"10\"\n name=\"fmobileno\"\n autoFocus\n icon=\"mobile alternate\"\n iconPosition=\"left\"\n placeholder=\"Registered Mobile No.\"\n value={fmobileno}\n onChange={this.handleChange}\n autoComplete=\"off\"\n readOnly={fmobvalid}\n />\n <div className=\"row\">\n <div className=\"col-md-6\">\n <Button\n color=\"blue\"\n className=\"px-4\"\n onClick={this.sendOtp}\n >\n {fmobvalid ? \"Resend-OTP\" : \"Send-OTP\"}\n </Button>\n </div>\n </div>\n </Form.Field>\n\n <Form.Field>\n <Form.Input\n name=\"fmotp\"\n type=\"text\"\n icon=\"mobile alternate\"\n iconPosition=\"left\"\n placeholder=\"Mobile OTP\"\n maxLength=\"6\"\n minLength=\"6\"\n value={fmotp}\n onChange={this.handleChange}\n required\n />\n </Form.Field>\n\n <Form.Field>\n <Form.Input\n required\n name=\"fpasswd\"\n type=\"password\"\n icon=\"lock\"\n iconPosition=\"left\"\n placeholder=\"Password\"\n minLength=\"8\"\n maxLength=\"25\"\n value={fpasswd}\n onChange={this.handleChange}\n />\n </Form.Field>\n <Form.Field>\n <Form.Input\n required\n name=\"fcpasswd\"\n type=\"password\"\n icon=\"lock\"\n iconPosition=\"left\"\n placeholder=\"Confirm Password\"\n minLength=\"8\"\n maxLength=\"25\"\n value={fcpasswd}\n onChange={this.handleChange}\n />\n\n <div className=\"row\">\n <div className=\"col-md-6\">\n <Button\n color=\"blue\"\n className=\"px-4\"\n onClick={this.resetPassword}\n >\n Reset Password\n </Button>\n </div>\n </div>\n </Form.Field>\n <div className=\"row\">\n <div style={{ margin: \"0 auto\" }}>\n <div style={{ margin: \"1em auto\" }}>\n <b>\n <Link to=\"/\" className=\"ui link\">\n Click here to Login\n </Link>\n </b>\n </div>\n </div>\n </div>\n </Form>\n </CardBody>\n </Card>\n </div>\n </div>\n </Container>\n </div>\n );\n }\n}\n\nconst mapStateToProps = state => {\n return {\n fgtpasswd: state.fgtpasswd\n };\n};\nexport default connect(\n mapStateToProps,\n {\n changefgt,\n showError,\n sendFgtOtp,\n resetPassword,\n clearFgt\n }\n)(ForgotPasswd);\n","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules, deprecated, tagPropType } from './utils';\nvar propTypes = {\n tag: tagPropType,\n inverse: PropTypes.bool,\n color: PropTypes.string,\n block: deprecated(PropTypes.bool, 'Please use the props \"body\"'),\n body: PropTypes.bool,\n outline: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func])\n};\nvar defaultProps = {\n tag: 'div'\n};\n\nvar Card = function Card(props) {\n var className = props.className,\n cssModule = props.cssModule,\n color = props.color,\n block = props.block,\n body = props.body,\n inverse = props.inverse,\n outline = props.outline,\n Tag = props.tag,\n innerRef = props.innerRef,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"color\", \"block\", \"body\", \"inverse\", \"outline\", \"tag\", \"innerRef\"]);\n\n var classes = mapToCssModules(classNames(className, 'card', inverse ? 'text-white' : false, block || body ? 'card-body' : false, color ? (outline ? 'border' : 'bg') + \"-\" + color : false), cssModule);\n return React.createElement(Tag, _extends({}, attributes, {\n className: classes,\n ref: innerRef\n }));\n};\n\nCard.propTypes = propTypes;\nCard.defaultProps = defaultProps;\nexport default Card;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { mapToCssModules, tagPropType } from './utils';\nvar propTypes = {\n tag: tagPropType,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func])\n};\nvar defaultProps = {\n tag: 'div'\n};\n\nvar CardBody = function CardBody(props) {\n var className = props.className,\n cssModule = props.cssModule,\n innerRef = props.innerRef,\n Tag = props.tag,\n attributes = _objectWithoutPropertiesLoose(props, [\"className\", \"cssModule\", \"innerRef\", \"tag\"]);\n\n var classes = mapToCssModules(classNames(className, 'card-body'), cssModule);\n return React.createElement(Tag, _extends({}, attributes, {\n className: classes,\n ref: innerRef\n }));\n};\n\nCardBody.propTypes = propTypes;\nCardBody.defaultProps = defaultProps;\nexport default CardBody;"],"sourceRoot":""}
|