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KAAO,KAAK,+BAIvC,SAAC,IAAU,CAAC5C,QAAQ,UAAUsD,SAAS,OAAOC,UAAWX,EAAc,SAAW,GAAG,0DAOrG,SAAC,KAAI,CAACX,MAAI,EAAC/F,GAAI,GAAG,UACd,SAAC,IAAQ,OAEb,SAAC,KAAI,CAAC+F,MAAI,EAAC/F,GAAI,GAAG,UACd,SAAC,IAAO,OAEZ,SAAC,KAAI,CAAC+F,MAAI,EAAC/F,GAAI,GAAG,UACd,SAAC,KAAI,CAAC+F,MAAI,EAACH,WAAS,EAACvH,UAAU,SAASwH,WAAW,SAAS7F,GAAI,GAAG,UAC/D,SAAC,IAAU,CACPmG,UAAWC,EAAAA,GACXC,GAAG,iBACHvC,QAAQ,YACRhE,GAAI,CAAEwG,eAAgB,QAAS,sDAc/E,C","sources":["ui-component/extended/AnimateButton.js","views/authentication/AuthCardWrapper.js","views/authentication/AuthWrapper1.js","views/authentication/login/JWTLogin.js","views/authentication/login/index.js"],"sourcesContent":["import PropTypes from 'prop-types';\r\nimport { forwardRef } from 'react';\r\n// third-party\r\nimport { motion, useCycle } from 'framer-motion';\r\n\r\n// ==============================|| ANIMATION BUTTON ||============================== //\r\n\r\nconst AnimateButton = forwardRef(({ children, type, direction, offset, scale }, ref) => {\r\n let offset1;\r\n let offset2;\r\n switch (direction) {\r\n case 'up':\r\n case 'left':\r\n offset1 = offset;\r\n offset2 = 0;\r\n break;\r\n case 'right':\r\n case 'down':\r\n default:\r\n offset1 = 0;\r\n offset2 = offset;\r\n break;\r\n }\r\n\r\n const [x, cycleX] = useCycle(offset1, offset2);\r\n const [y, cycleY] = useCycle(offset1, offset2);\r\n\r\n switch (type) {\r\n case 'rotate':\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n case 'slide':\r\n if (direction === 'up' || direction === 'down') {\r\n return (\r\n cycleY()}\r\n onHoverStart={() => cycleY()}\r\n >\r\n {children}\r\n \r\n );\r\n }\r\n return (\r\n cycleX()} onHoverStart={() => cycleX()}>\r\n {children}\r\n \r\n );\r\n\r\n case 'scale':\r\n default:\r\n if (typeof scale === 'number') {\r\n scale = {\r\n hover: scale,\r\n tap: scale\r\n };\r\n }\r\n return (\r\n \r\n {children}\r\n \r\n );\r\n }\r\n});\r\n\r\nAnimateButton.propTypes = {\r\n children: PropTypes.node,\r\n offset: PropTypes.number,\r\n type: PropTypes.oneOf(['slide', 'scale', 'rotate']),\r\n direction: PropTypes.oneOf(['up', 'down', 'left', 'right']),\r\n scale: PropTypes.oneOfType([PropTypes.number, PropTypes.object])\r\n};\r\n\r\nAnimateButton.defaultProps = {\r\n type: 'scale',\r\n offset: 10,\r\n direction: 'right',\r\n scale: {\r\n hover: 1,\r\n tap: 0.9\r\n }\r\n};\r\n\r\nexport default AnimateButton;\r\n","import PropTypes from 'prop-types';\r\n\r\n// material-ui\r\nimport { Box } from '@mui/material';\r\n\r\n// project import\r\nimport MainCard from 'ui-component/cards/MainCard';\r\n\r\n// ==============================|| AUTHENTICATION CARD WRAPPER ||============================== //\r\n\r\nconst AuthCardWrapper = ({ children, ...other }) => (\r\n *': {\r\n flexGrow: 1,\r\n flexBasis: '50%'\r\n }\r\n }}\r\n content={false}\r\n {...other}\r\n >\r\n {children}\r\n \r\n);\r\n\r\nAuthCardWrapper.propTypes = {\r\n children: PropTypes.node\r\n};\r\n\r\nexport default AuthCardWrapper;\r\n","// material-ui\r\nimport { styled } from '@mui/material/styles';\r\n\r\n// ==============================|| AUTHENTICATION 1 WRAPPER ||============================== //\r\n\r\nconst AuthWrapper1 = styled('div')(({ theme }) => ({\r\n backgroundColor: theme.palette.mode === 'dark' ? theme.palette.background.default : theme.palette.primary.light,\r\n minHeight: '100vh'\r\n}));\r\n\r\nexport default AuthWrapper1;\r\n","import { useState } from 'react';\r\nimport { Link, useNavigate } from 'react-router-dom';\r\nimport { useDispatch } from 'react-redux';\r\n\r\n// material-ui\r\nimport { useTheme } from '@mui/material/styles';\r\nimport {\r\n Box,\r\n Button,\r\n Checkbox,\r\n FormControl,\r\n FormControlLabel,\r\n FormHelperText,\r\n Grid,\r\n IconButton,\r\n InputAdornment,\r\n InputLabel,\r\n OutlinedInput,\r\n Typography\r\n} from '@mui/material';\r\n\r\n// third party\r\nimport * as Yup from 'yup';\r\nimport { Formik } from 'formik';\r\n\r\n// project imports\r\nimport AnimateButton from 'ui-component/extended/AnimateButton';\r\nimport useAuth from 'hooks/useAuth';\r\nimport Loader from 'ui-component/Loader';\r\nimport { open } from 'store/slices/statusSlice';\r\n\r\n// assets\r\nimport Visibility from '@mui/icons-material/Visibility';\r\nimport VisibilityOff from '@mui/icons-material/VisibilityOff';\r\n\r\n// ===============================|| LOGIN FORM ||=============================== //\r\n\r\nconst JWTLogin = ({ user, ...others }) => {\r\n const theme = useTheme();\r\n const dispatch = useDispatch();\r\n const navigate = useNavigate();\r\n const auth = useAuth();\r\n const [checked, setChecked] = useState(true);\r\n const [showPassword, setShowPassword] = useState(false);\r\n\r\n const handleClickShowPassword = () => {\r\n setShowPassword(!showPassword);\r\n };\r\n\r\n const handleMouseDownPassword = (event) => {\r\n event.preventDefault();\r\n };\r\n\r\n return (\r\n {\r\n const { email, password } = values;\r\n auth.login({ email, password })\r\n .then(() => {\r\n console.log('BACK');\r\n })\r\n .catch((error) => {\r\n console.log(error);\r\n setStatus({ success: false });\r\n setSubmitting(false);\r\n if (error.type === 'NEW_PASSWORD_REQUIRED') {\r\n dispatch(\r\n open({\r\n open: true,\r\n message: 'A password reset is needed',\r\n variant: 'alert',\r\n alertSeverity: 'warning'\r\n })\r\n );\r\n navigate('/login/reset-password', { state: error.data });\r\n } else {\r\n let errorText = 'An error occurred - please check your connection and try again.';\r\n if (error.type === 'NotAuthorizedException') {\r\n errorText = 'Login failed: please check your user name and password.';\r\n } else if (error.message) {\r\n errorText = error.message;\r\n }\r\n setErrors({ submit: errorText });\r\n }\r\n });\r\n }}\r\n >\r\n {({ errors, handleBlur, handleChange, handleSubmit, isSubmitting, touched, values }) => (\r\n \r\n )}\r\n \r\n );\r\n};\r\n\r\nexport default JWTLogin;\r\n","import { Link } from 'react-router-dom';\r\n\r\n// material-ui\r\nimport { useTheme } from '@mui/material/styles';\r\nimport { Divider, Grid, Stack, Typography, useMediaQuery } from '@mui/material';\r\n\r\n// project imports\r\nimport AuthWrapper1 from '../AuthWrapper1';\r\nimport AuthCardWrapper from '../AuthCardWrapper';\r\nimport JWTLogin from './JWTLogin';\r\nimport Logo from 'ui-component/Logo';\r\n\r\n// ================================|| LOGIN ||================================ //\r\n\r\nconst Login = () => {\r\n const theme = useTheme();\r\n const matchDownSM = useMediaQuery(theme.breakpoints.down('md'));\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Hi, Welcome Back\r\n \r\n \r\n Enter your credentials to continue\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n Don't have an account?\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n};\r\n\r\nexport default Login;\r\n"],"names":["AnimateButton","forwardRef","ref","offset1","offset2","children","type","direction","offset","scale","useCycle","x","cycleX","y","cycleY","animate","rotate","transition","repeat","Infinity","repeatType","duration","repeatDelay","undefined","onHoverEnd","onHoverStart","hover","tap","whileHover","whileTap","defaultProps","other","sx","maxWidth","xs","lg","margin","md","flexGrow","flexBasis","content","p","sm","xl","AuthWrapper1","styled","theme","backgroundColor","palette","mode","background","default","primary","light","minHeight","user","others","useTheme","dispatch","useDispatch","navigate","useNavigate","auth","useAuth","useState","checked","setChecked","showPassword","setShowPassword","handleClickShowPassword","handleMouseDownPassword","event","preventDefault","initialValues","submit","email","password","validationSchema","Yup","shape","max","required","onSubmit","values","setErrors","setStatus","setSubmitting","login","then","console","log","catch","error","success","open","message","variant","alertSeverity","state","data","errorText","errors","handleBlur","handleChange","handleSubmit","isSubmitting","touched","noValidate","fullWidth","Boolean","typography","customInput","htmlFor","id","value","name","onBlur","onChange","inputProps","endAdornment","position","onClick","onMouseDown","edge","size","label","container","alignItems","justifyContent","item","control","target","color","component","Link","to","textDecoration","mt","align","disabled","matchDownSM","useMediaQuery","breakpoints","down","m","mb","spacing","secondary","main","gutterBottom","fontSize","textAlign"],"sourceRoot":""}