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GAAK/B,EAAQuG,KAAMxG,GAC9B+J,KAAMA,EACNpE,IAAKA,EACLY,WAAYA,GACXyD,EAAO,CACRjL,SAAUA,GAAwBJ,EAAAA,EAAAA,KAAK0K,EAAgB,CACrDrJ,UAAWC,EAAQC,QACnBqG,WAAYA,EACZxH,SAAUA,IACP,OAET,IAMA+G,EAAQyE,sBAAuB,EA+D/B,S","sources":["Components/Divider/index.js","Components/LocaleSwitcher/index.js","webpack://banktrack_client_web/./src/Components/RegisterLayout/RegisterLayout.module.css?e835","Components/RegisterLayout/index.js","webpack://banktrack_client_web/./src/Components/ButtonWhite/ButtonWhite.module.css?d4cb","Components/ButtonWhite/ButtonWhite.js","Pages/AuthSignIn/AuthSignInEmailForm.js","Pages/AuthSignIn/index.js","../node_modules/@mui/material/Divider/Divider.js"],"sourcesContent":["import { Divider } from \"@mui/material\";\n\nexport default Divider;","import React from 'react';\nimport Dropdown, { DropdownItem, DropdownToggle } from 'Components/Dropdown';\nimport { useTranslation } from 'react-i18next';\nimport storage from 'Utils/storage';\nimport { updateProfile } from \"Services/user\";\nimport { useUser } from 'Components/UserProvider/useUser';\n\nexport default function LocaleSwitcher() {\n const { t, i18n } = useTranslation(\"common\");\n const { user } = useUser();\n\n const languages = [{\n label: t('english'),\n value: 'EN'\n }, {\n label: t('spanish'),\n value: 'ES'\n }]\n\n function onSelectChange(language) {\n i18n.changeLanguage(language);\n storage.setItem('app-locale', language);\n if (user) {\n updateProfile({ language });\n }\n }\n\n const currentLanguage = languages.find(({ value }) => value === i18n.language).label\n\n return (\n \n
\n {currentLanguage}\n
\n \n }\n >\n {languages.map(period => (\n onSelectChange(period.value)}\n >\n {period.label}\n \n ))}\n \n )\n}","// extracted by mini-css-extract-plugin\nexport default {\"wrapper\":\"RegisterLayout_wrapper__42Reb\",\"container\":\"RegisterLayout_container__wzc87\",\"content\":\"RegisterLayout_content__42dJH\",\"title\":\"RegisterLayout_title__86EzR\",\"description\":\"RegisterLayout_description__nrswP\",\"header\":\"RegisterLayout_header__TvQTf\",\"logoContainer\":\"RegisterLayout_logoContainer__o23DJ\",\"image\":\"RegisterLayout_image__aTg-R\",\"bgImage\":\"RegisterLayout_bgImage__70QGi\",\"colDecoration\":\"RegisterLayout_colDecoration__voTTh\",\"colDecorationContent\":\"RegisterLayout_colDecorationContent__8LRW3\",\"colDecorationHeader\":\"RegisterLayout_colDecorationHeader__ePrnP\",\"colDecorationLogo\":\"RegisterLayout_colDecorationLogo__jZbJm\",\"colDecorationTitle\":\"RegisterLayout_colDecorationTitle__eCWo6\",\"colDecorationImage\":\"RegisterLayout_colDecorationImage__Biqnw\",\"mockup\":\"RegisterLayout_mockup__CgvAE\",\"localeSwitcher\":\"RegisterLayout_localeSwitcher__vyGgN\"};","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport classes from './RegisterLayout.module.css';\nimport { Link } from \"react-router-dom\";\nimport { ROUTES } from \"Utils/constants\";\nimport logoImage from \"assets/logo.png\";\nimport logoWhiteImage from \"assets/logo-white.png\";\nimport mockupDashboardsImage from \"assets/mockup-dashboards.png\";\nimport { useTranslation } from \"react-i18next\";\nimport LocaleSwitcher from \"Components/LocaleSwitcher\";\n\nexport default function RegisterLayout(props) {\n const { children, title, description } = props;\n const { t } = useTranslation(\"auth\")\n\n return (\n
\n
\n
\n
\n \n \"\"\n \n
\n {t(\"control-your-finances\")}\n
\n
\n\n
\n \"\"\n
\n
\n
\n
\n
\n
\n \n \"\"\n \n
\n

\n {title}\n

\n

{description}

\n
\n
\n {children}\n
\n
\n
\n \n
\n
\n );\n}\n\nRegisterLayout.propTypes = {\n children: PropTypes.node.isRequired,\n title: PropTypes.string.isRequired,\n description: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.node,\n ]).isRequired,\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"button\":\"ButtonWhite_button__ntBXn\",\"icon\":\"ButtonWhite_icon__841Mj\",\"content\":\"ButtonWhite_content__TZj8Q\"};","import React from 'react';\nimport PropTypes from 'prop-types';\nimport classes from './ButtonWhite.module.css';\nimport clsx from 'clsx';\nimport Icon from 'Components/Icon';\n\nexport default function ButtonWhite(props) {\n const { component: Component = \"button\", className, icon, children, ...rest } = props;\n\n const type = Component === \"button\" ? \"button\" : undefined;\n\n return (\n \n {icon && }\n {children}\n \n )\n}\n\nButtonWhite.propTypes = {\n component: PropTypes.elementType,\n className: PropTypes.string,\n icon: PropTypes.string,\n children: PropTypes.node,\n\n};\n","import React from \"react\";\nimport { useAuth } from \"Components/AuthProvider\";\nimport { signIn, fetchAuthSession, signOut } from \"aws-amplify/auth\";\nimport FormProvider, { RHFTextField } from \"Components/HookForm\";\nimport * as Yup from 'yup';\nimport { useForm } from 'react-hook-form';\nimport { yupResolver } from '@hookform/resolvers/yup';\nimport { useErrors } from \"Components/ErrorsProvider\";\nimport Button from \"Components/Button\";\nimport { useSnackbar } from \"notistack\";\nimport { useUser } from \"Components/UserProvider/useUser\";\nimport { useTranslation } from \"react-i18next\";\n\nconst AuthSignInEmailForm = () => {\n const { loginUser, requireResetPassword } = useAuth();\n const { showUnknownError } = useErrors();\n const { enqueueSnackbar } = useSnackbar();\n const { logout } = useUser();\n const { t } = useTranslation(\"auth\");\n\n const LoginSchema = Yup.object().shape({\n email: Yup.string().required(t(\"enter-a-valid-email\")).email(t(\"enter-a-valid-email\")),\n password: Yup.string().required(t(\"enter-a-valid-password\")).min(3, t(\"enter-a-valid-password\"))\n });\n\n const methods = useForm({\n resolver: yupResolver(LoginSchema),\n defaultValues: {\n email: '',\n password: '',\n }\n });\n\n const {\n reset,\n setError,\n handleSubmit,\n formState: { isSubmitting },\n } = methods;\n\n const onSubmit = async (data) => {\n try {\n const { email, password } = data;\n try {\n // prevent already authenticated users from signing in again\n await signOut()\n } catch (error) {\n // ignore errors\n }\n\n await signIn({\n username: email,\n password,\n });\n const session = await fetchAuthSession();\n const token = session.tokens?.idToken?.toString();\n loginUser(token);\n } catch (error) {\n switch (error.name) {\n case \"UserAlreadyAuthenticatedException\":\n reset();\n logout();\n enqueueSnackbar(t(\"session-expired\"));\n break;\n case \"UserNotConfirmedException\":\n setError(\"email\", {\n type: \"manual\",\n message: t(\"email-not-confirmed\"),\n });\n break;\n case \"PasswordResetRequiredException\":\n requireResetPassword(data.email);\n reset();\n break;\n case \"NotAuthorizedException\":\n setError(\"password\", {\n type: \"manual\",\n message: t(\"invalid-credentials\"),\n });\n break;\n case \"LimitExceededException\":\n enqueueSnackbar(t(\"you-have-entered-an-invalid-code-too-many-times\"))\n break;\n default:\n showUnknownError(error);\n reset();\n }\n }\n };\n\n\n return (\n \n
\n \n\n \n
\n \n
\n )\n}\n\nexport default AuthSignInEmailForm;","import React, { useEffect, useRef } from \"react\";\nimport { useAuth } from \"Components/AuthProvider\";\nimport { Link } from \"react-router-dom\";\nimport { ROUTES } from \"Utils/constants\";\nimport ButtonWhite from \"Components/ButtonWhite\";\nimport RegisterLayout from \"Components/RegisterLayout\";\nimport Divider from \"Components/Divider\";\nimport AuthSignInEmailForm from \"./AuthSignInEmailForm\";\nimport { useTranslation } from \"react-i18next\";\n\nconst SignIn = () => {\n const { renderLoginWithGoogle } = useAuth();\n const buttonContainerRef = useRef(null);\n const { t } = useTranslation(\"auth\");\n\n useEffect(() => {\n if (!buttonContainerRef.current) return;\n\n renderLoginWithGoogle(buttonContainerRef.current, {\n theme: \"outline\",\n });\n }, []);\n\n return (\n \n
\n
\n\n \n {t(\"request-one-time-code\")}\n\n \n\n \n {t(\"or\")}\n \n \n
\n\n
\n \n {t(\"forgot-password\")}\n \n \n {t(\"dont-have-account-yet\")}\n \n
\n \n )\n}\n\nexport default SignIn;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"absolute\", \"children\", \"className\", \"component\", \"flexItem\", \"light\", \"orientation\", \"role\", \"textAlign\", \"variant\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { unstable_composeClasses as composeClasses } from '@mui/base/composeClasses';\nimport { alpha } from '@mui/system';\nimport styled from '../styles/styled';\nimport useThemeProps from '../styles/useThemeProps';\nimport { getDividerUtilityClass } from './dividerClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n absolute,\n children,\n classes,\n flexItem,\n light,\n orientation,\n textAlign,\n variant\n } = ownerState;\n const slots = {\n root: ['root', absolute && 'absolute', variant, light && 'light', orientation === 'vertical' && 'vertical', flexItem && 'flexItem', children && 'withChildren', children && orientation === 'vertical' && 'withChildrenVertical', textAlign === 'right' && orientation !== 'vertical' && 'textAlignRight', textAlign === 'left' && orientation !== 'vertical' && 'textAlignLeft'],\n wrapper: ['wrapper', orientation === 'vertical' && 'wrapperVertical']\n };\n return composeClasses(slots, getDividerUtilityClass, classes);\n};\nconst DividerRoot = styled('div', {\n name: 'MuiDivider',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.absolute && styles.absolute, styles[ownerState.variant], ownerState.light && styles.light, ownerState.orientation === 'vertical' && styles.vertical, ownerState.flexItem && styles.flexItem, ownerState.children && styles.withChildren, ownerState.children && ownerState.orientation === 'vertical' && styles.withChildrenVertical, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && styles.textAlignRight, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && styles.textAlignLeft];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n margin: 0,\n // Reset browser default style.\n flexShrink: 0,\n borderWidth: 0,\n borderStyle: 'solid',\n borderColor: (theme.vars || theme).palette.divider,\n borderBottomWidth: 'thin'\n}, ownerState.absolute && {\n position: 'absolute',\n bottom: 0,\n left: 0,\n width: '100%'\n}, ownerState.light && {\n borderColor: theme.vars ? `rgba(${theme.vars.palette.dividerChannel} / 0.08)` : alpha(theme.palette.divider, 0.08)\n}, ownerState.variant === 'inset' && {\n marginLeft: 72\n}, ownerState.variant === 'middle' && ownerState.orientation === 'horizontal' && {\n marginLeft: theme.spacing(2),\n marginRight: theme.spacing(2)\n}, ownerState.variant === 'middle' && ownerState.orientation === 'vertical' && {\n marginTop: theme.spacing(1),\n marginBottom: theme.spacing(1)\n}, ownerState.orientation === 'vertical' && {\n height: '100%',\n borderBottomWidth: 0,\n borderRightWidth: 'thin'\n}, ownerState.flexItem && {\n alignSelf: 'stretch',\n height: 'auto'\n}), ({\n ownerState\n}) => _extends({}, ownerState.children && {\n display: 'flex',\n whiteSpace: 'nowrap',\n textAlign: 'center',\n border: 0,\n '&::before, &::after': {\n content: '\"\"',\n alignSelf: 'center'\n }\n}), ({\n theme,\n ownerState\n}) => _extends({}, ownerState.children && ownerState.orientation !== 'vertical' && {\n '&::before, &::after': {\n width: '100%',\n borderTop: `thin solid ${(theme.vars || theme).palette.divider}`\n }\n}), ({\n theme,\n ownerState\n}) => _extends({}, ownerState.children && ownerState.orientation === 'vertical' && {\n flexDirection: 'column',\n '&::before, &::after': {\n height: '100%',\n borderLeft: `thin solid ${(theme.vars || theme).palette.divider}`\n }\n}), ({\n ownerState\n}) => _extends({}, ownerState.textAlign === 'right' && ownerState.orientation !== 'vertical' && {\n '&::before': {\n width: '90%'\n },\n '&::after': {\n width: '10%'\n }\n}, ownerState.textAlign === 'left' && ownerState.orientation !== 'vertical' && {\n '&::before': {\n width: '10%'\n },\n '&::after': {\n width: '90%'\n }\n}));\nconst DividerWrapper = styled('span', {\n name: 'MuiDivider',\n slot: 'Wrapper',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.wrapper, ownerState.orientation === 'vertical' && styles.wrapperVertical];\n }\n})(({\n theme,\n ownerState\n}) => _extends({\n display: 'inline-block',\n paddingLeft: `calc(${theme.spacing(1)} * 1.2)`,\n paddingRight: `calc(${theme.spacing(1)} * 1.2)`\n}, ownerState.orientation === 'vertical' && {\n paddingTop: `calc(${theme.spacing(1)} * 1.2)`,\n paddingBottom: `calc(${theme.spacing(1)} * 1.2)`\n}));\nconst Divider = /*#__PURE__*/React.forwardRef(function Divider(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDivider'\n });\n const {\n absolute = false,\n children,\n className,\n component = children ? 'div' : 'hr',\n flexItem = false,\n light = false,\n orientation = 'horizontal',\n role = component !== 'hr' ? 'separator' : undefined,\n textAlign = 'center',\n variant = 'fullWidth'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n absolute,\n component,\n flexItem,\n light,\n orientation,\n role,\n textAlign,\n variant\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(DividerRoot, _extends({\n as: component,\n className: clsx(classes.root, className),\n role: role,\n ref: ref,\n ownerState: ownerState\n }, other, {\n children: children ? /*#__PURE__*/_jsx(DividerWrapper, {\n className: classes.wrapper,\n ownerState: ownerState,\n children: children\n }) : null\n }));\n});\n\n/**\n * The following flag is used to ensure that this component isn't tabbable i.e.\n * does not get highlight/focus inside of MUI List.\n */\nDivider.muiSkipListHighlight = true;\nprocess.env.NODE_ENV !== \"production\" ? Divider.propTypes /* remove-proptypes */ = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n /**\n * Absolutely position the element.\n * @default false\n */\n absolute: PropTypes.bool,\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, a vertical divider will have the correct height when used in flex container.\n * (By default, a vertical divider will have a calculated height of `0px` if it is the child of a flex container.)\n * @default false\n */\n flexItem: PropTypes.bool,\n /**\n * If `true`, the divider will have a lighter color.\n * @default false\n */\n light: PropTypes.bool,\n /**\n * The component orientation.\n * @default 'horizontal'\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']),\n /**\n * @ignore\n */\n role: PropTypes /* @typescript-to-proptypes-ignore */.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The text alignment.\n * @default 'center'\n */\n textAlign: PropTypes.oneOf(['center', 'left', 'right']),\n /**\n * The variant to use.\n * @default 'fullWidth'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['fullWidth', 'inset', 'middle']), PropTypes.string])\n} : void 0;\nexport default Divider;"],"names":["LocaleSwitcher","t","i18n","useTranslation","user","useUser","languages","label","value","currentLanguage","find","_ref","language","_jsx","Dropdown","toggle","DropdownToggle","children","style","minWidth","map","period","DropdownItem","onClick","onSelectChange","changeLanguage","storage","setItem","updateProfile","RegisterLayout","props","title","description","_jsxs","className","classes","wrapper","colDecoration","colDecorationContent","colDecorationHeader","Link","to","ROUTES","landing","src","logoWhiteImage","alt","colDecorationLogo","colDecorationTitle","colDecorationImage","mockupDashboardsImage","mockup","container","header","logoContainer","logoImage","image","content","localeSwitcher","ButtonWhite","component","Component","icon","rest","type","undefined","clsx","Icon","name","color","size","AuthSignInEmailForm","loginUser","requireResetPassword","useAuth","showUnknownError","useErrors","enqueueSnackbar","useSnackbar","logout","LoginSchema","Yup","shape","email","required","password","min","methods","useForm","resolver","yupResolver","defaultValues","reset","setError","handleSubmit","formState","isSubmitting","FormProvider","onSubmit","async","_session$tokens","_session$tokens$idTok","data","signOut","error","signIn","username","token","fetchAuthSession","tokens","idToken","toString","message","RHFTextField","placeholder","Button","primary","isBusy","SignIn","renderLoginWithGoogle","buttonContainerRef","useRef","useEffect","current","theme","ref","height","magicCode","Divider","forgotPassword","signUp","_excluded","DividerRoot","styled","slot","overridesResolver","styles","ownerState","root","absolute","variant","light","orientation","vertical","flexItem","withChildren","withChildrenVertical","textAlign","textAlignRight","textAlignLeft","_extends","margin","flexShrink","borderWidth","borderStyle","borderColor","vars","palette","divider","borderBottomWidth","position","bottom","left","width","dividerChannel","alpha","marginLeft","spacing","marginRight","marginTop","marginBottom","borderRightWidth","alignSelf","_ref2","display","whiteSpace","border","_ref3","borderTop","_ref4","flexDirection","borderLeft","_ref5","DividerWrapper","wrapperVertical","_ref6","paddingLeft","paddingRight","paddingTop","paddingBottom","React","inProps","useThemeProps","role","other","_objectWithoutPropertiesLoose","slots","composeClasses","getDividerUtilityClass","useUtilityClasses","as","muiSkipListHighlight"],"sourceRoot":""}