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AfiC,EAAMjC,KAClDgJ,EAAU,sCACiB,sBAAlB/G,EAAM+G,UACfA,EAAU,yDAEZf,EAAU,CAAEjD,MAAO,mBAAoB+D,YAAaC,IACpDhC,GAASG,EAAAA,EAAAA,KAAW,GACtB,GAqByGhF,SAC9FvB,IAAA,IAAC,cAAEsC,GAAetC,EAAA,OACjBsB,EAAAA,EAAAA,MAACiB,EAAAA,GAAI,CAACf,UAAWC,GAAeF,SAAA,EAC9BG,EAAAA,EAAAA,KAAA,OAAKF,UAAWC,GAAcF,UAC5BG,EAAAA,EAAAA,KAACc,EAAAA,GAAQ,CAACC,SAAUH,EAAeI,OAAQA,GAAQC,OAAQC,EAAAA,QAE7DtB,EAAAA,EAAAA,MAAA,OAAKE,UAAWC,GAAyBF,SAAA,EACvCG,EAAAA,EAAAA,KAAA,QAAMF,UAAS,uBAAAG,OAAyBF,IAAkBqB,QAAS2F,EAAelH,SAAC,gCAInFG,EAAAA,EAAAA,KAACmB,EAAAA,GAAM,CAACE,OAAO,UAAU8D,KAAK,SAAQtF,SAAC,2BAIpC,KAGXD,EAAAA,EAAAA,MAAA,OAAKE,UAAWC,GAAoBF,SAAA,EAClCD,EAAAA,EAAAA,MAAA,QAAME,UAAU,cAAaD,SAAA,CAAC,sCAE5BG,EAAAA,EAAAA,KAAA,UAAQF,UAAS,WAAAG,OAAaF,IAAoBqB,QAlC3C+F,KACnBP,EAASQ,EAAAA,EAAMC,OAAO,EAiC8DxH,SAAC,sBAI3EG,EAAAA,EAAAA,KAAA,QAAMF,UAAWC,iBAKzBC,EAAAA,EAAAA,KAAA,OAAKF,UAAWC,OACZ,C","sources":["webpack://melo-app/./src/pages/landing/SignIn/ForgotPassword/ForgotPassword.module.scss?c427","webpack://melo-app/./src/pages/landing/SignIn/ForgotPassword/FormCodePassword/FormCodePassword.module.scss?bf49","pages/landing/SignIn/ForgotPassword/FormCodePassword/FormCodePassword.js","assets/icons/PadLock.svg","webpack://melo-app/./src/pages/landing/SignIn/ForgotPassword/FormEmail/FormEmail.module.scss?46c5","pages/landing/SignIn/ForgotPassword/FormEmail/FormEmail.js","pages/landing/SignIn/ForgotPassword/ForgotPassword.js","webpack://melo-app/./src/pages/landing/SignIn/SignIn.module.scss?85e8","pages/landing/SignIn/ChangePassword/ChangePassword.js","pages/landing/SignIn/SignIn.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"content\":\"ForgotPassword_content__ea2gf\"};","// extracted by mini-css-extract-plugin\nexport default {\"head\":\"FormCodePassword_head__1JoVW\",\"color\":\"FormCodePassword_color__ZEjDC\",\"form\":\"FormCodePassword_form__RAJxV\",\"resend\":\"FormCodePassword_resend__Kuvn9\",\"second-title\":\"FormCodePassword_second-title__J96VI\",\"buttons\":\"FormCodePassword_buttons__5wN+y\"};","import { Form, Formik } from 'formik';\nimport moment from 'moment-timezone';\nimport React, { useContext, useState } from 'react';\nimport { Auth } from 'aws-amplify';\nimport * as Yup from 'yup';\n\nimport { Button, FormChangePassword, FormGrid, LabelFieldFormik } from '../../../../../components';\nimport useTimer from '../../../../../services/hooks/UI/useTimer';\nimport { stringSchema } from '../../../../../services/schemas';\nimport { formTypes } from '../../../../../store/catalogs/forms';\nimport Context from '../../../../../store/context';\nimport { messageErrorForm } from '../../../../../store/constants/messageErrors';\n\nimport classes from './FormCodePassword.module.scss';\n\nconst codeField = [{ key: 'code', label: 'Código de verificación', placeholder: '123456' }];\n\nconst valuesDemography = {\n code: '',\n newPassword: '',\n newPasswordConfirmation: ''\n};\n\nconst validationSchema = Yup.object().shape({\n code: stringSchema('Campo requerido'),\n newPassword: Yup.string()\n .min(8, messageErrorForm.password.min)\n .oneOf([Yup.ref('newPasswordConfirmation')], messageErrorForm.password.newPassword)\n .required(messageErrorForm.password.required),\n newPasswordConfirmation: Yup.string()\n .oneOf([Yup.ref('newPassword')], messageErrorForm.password.newPassword)\n .required(messageErrorForm.password.required)\n});\n\nconst FormCodePassword = ({ forgotState }) => {\n const [wait30SecondsState] = useState(moment().add(30, 'seconds'));\n const { timer } = useTimer({ isActive: false, endTime: wait30SecondsState });\n\n const {\n modal: { hideModal },\n toast: { showSuccess }\n } = useContext(Context);\n\n const onAccept = async (values, { setFieldError }) => {\n try {\n await Auth.forgotPasswordSubmit(forgotState.email, values.code, values.newPasswordConfirmation);\n showSuccess('Contraseña cambiada');\n hideModal();\n } catch (error) {\n if (error.code === 'CodeMismatchException') {\n setFieldError('code', messageErrorForm.codeForgotPassword.invalid);\n }\n }\n };\n\n const reSendCode = async () => {\n try {\n await Auth.forgotPassword(forgotState.email);\n } catch (error) {\n // seterrorMessage(errorResponse);\n }\n };\n\n return (\n