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AA,EAAAA,GAAeD,EAAO9B,EAA0B9G,EAAQ,EAqD/C8I,CAAkBxB,GAClC,OAAoB/E,EAAAA,EAAAA,KAAK2E,GAAeS,EAAAA,EAAAA,GAAS,CAC/C/H,WAAWgC,EAAAA,EAAAA,GAAK5B,EAAQf,KAAMW,GAC9BmJ,GAAI/C,EACJgD,MAAOzB,GAAoBlB,EAAQ,WAAQ4C,EAC3Cb,IAAKA,EACL1F,MAAOgG,EACPpB,WAAYA,EACZgB,IAAKf,EAAmBlB,GAASiC,OAAMW,GACtCV,EAAO,CACRjG,SAAUA,IAEd,G","sources":["views/Auth/Login/components/LoginForm/LoginForm.js","views/Auth/Login/Login.js","../node_modules/@mui/icons-material/Lock.js","../node_modules/@mui/material/CardMedia/cardMediaClasses.js","../node_modules/@mui/material/CardMedia/CardMedia.js"],"sourcesContent":["/* eslint-disable no-unused-vars */\r\nimport React, { useState, useEffect } from 'react';\r\nimport validate from 'validate.js';\r\nimport clsx from 'clsx';\r\nimport PropTypes from 'prop-types';\r\nimport { useDispatch } from 'react-redux';\r\nimport { makeStyles } from '@mui/styles';\r\nimport { Button, TextField, Typography } from '@mui/material';\r\n\r\nimport useRouter from 'utils/useRouter';\r\nimport { login } from '../../../../../actions/sessionActions.js';\r\n\r\nconst schema = {\r\n\temail: {\r\n\t\tpresence: { allowEmpty: false, message: 'is required' },\r\n\t\temail: true,\r\n\t},\r\n\tpassword: {\r\n\t\tpresence: { allowEmpty: false, message: 'is required' },\r\n\t},\r\n};\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n\troot: {},\r\n\tfields: {\r\n\t\tmargin: theme.spacing(-1),\r\n\t\tdisplay: 'flex',\r\n\t\tflexWrap: 'wrap',\r\n\t\t'& > *': {\r\n\t\t\tflexGrow: 1,\r\n\t\t\tmargin: theme.spacing(1),\r\n\t\t},\r\n\t},\r\n\tsubmitButton: {\r\n\t\tmarginTop: theme.spacing(2),\r\n\t\twidth: '100%',\r\n\t},\r\n}));\r\n\r\nconst LoginForm = (props) => {\r\n\tconst { className, ...rest } = props;\r\n\r\n\tconst classes = useStyles();\r\n\tconst router = useRouter();\r\n\tconst dispatch = useDispatch();\r\n\r\n\tconst [formState, setFormState] = useState({\r\n\t\tisValid: false,\r\n\t\tvalues: {},\r\n\t\ttouched: {},\r\n\t\terrors: {},\r\n\t});\r\n\r\n\tconst [errorState, setErrorState] = useState();\r\n\r\n\tuseEffect(() => {\r\n\t\tconst errors = validate(formState.values, schema);\r\n\r\n\t\tsetFormState((items) => ({\r\n\t\t\t...items,\r\n\t\t\tisValid: !errors,\r\n\t\t\terrors: errors || {},\r\n\t\t}));\r\n\t}, [formState.values]);\r\n\r\n\tconst handleChange = (event) => {\r\n\t\tsetFormState((items) => ({\r\n\t\t\t...items,\r\n\t\t\tvalues: {\r\n\t\t\t\t...items.values,\r\n\t\t\t\t[event.target.name]:\r\n\t\t\t\t\tevent.target.type === 'checkbox'\r\n\t\t\t\t\t\t? event.target.checked\r\n\t\t\t\t\t\t: event.target.value,\r\n\t\t\t},\r\n\t\t\ttouched: {\r\n\t\t\t\t...items.touched,\r\n\t\t\t\t[event.target.name]: true,\r\n\t\t\t},\r\n\t\t}));\r\n\t};\r\n\r\n\tconst handleSubmit = async (event) => {\r\n\t\tevent.preventDefault();\r\n\t\tdispatch(login(formState.values.email, formState.values.password)).then(() => {\r\n\t\t\trouter.history.push('/');\r\n\t\t}).catch(error => {\r\n\t\t\tsetErrorState(error.message);\r\n\t\t});\r\n\t};\r\n\r\n\tconst hasError = (field) => (!!(formState.touched[field] && formState.errors[field]));\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t
\r\n\t\t\t\t{errorState ? (\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t{errorState}\r\n\t\t\t\t\t\r\n\t\t\t\t) : null}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\t\r\n\t\t\t\tSign in\r\n\t\t\t\r\n\t\t\r\n\r\n\t);\r\n};\r\n\r\nLoginForm.propTypes = {\r\n\tclassName: PropTypes.string,\r\n};\r\n\r\nexport default LoginForm;\r\n","import React from 'react';\r\nimport { Link as RouterLink } from 'react-router-dom';\r\nimport { makeStyles } from '@mui/styles';\r\nimport {\r\n\tCard,\r\n\tCardContent,\r\n\tCardMedia,\r\n\tTypography,\r\n\tDivider,\r\n\tLink,\r\n} from '@mui/material';\r\nimport LockIcon from '@mui/icons-material/Lock';\r\n\r\nimport { Page } from 'components';\r\nimport gradients from 'utils/gradients';\r\nimport { LoginForm } from './components';\r\n\r\nconst useStyles = makeStyles((theme) => ({\r\n\troot: {\r\n\t\theight: '100%',\r\n\t\tdisplay: 'flex',\r\n\t\talignItems: 'center',\r\n\t\tjustifyContent: 'center',\r\n\t\tpadding: theme.spacing(6, 2),\r\n\t},\r\n\tcard: {\r\n\t\twidth: theme.breakpoints.values.md,\r\n\t\tmaxWidth: '100%',\r\n\t\toverflow: 'unset',\r\n\t\tdisplay: 'flex',\r\n\t\tposition: 'relative',\r\n\t\t'& > *': {\r\n\t\t\tflexGrow: 1,\r\n\t\t\tflexBasis: '50%',\r\n\t\t\twidth: '50%',\r\n\t\t},\r\n\t},\r\n\tcontent: {\r\n\t\tpadding: theme.spacing(8, 4, 3, 4),\r\n\t},\r\n\tmedia: {\r\n\t\tborderTopRightRadius: 4,\r\n\t\tborderBottomRightRadius: 4,\r\n\t\tpadding: theme.spacing(3),\r\n\t\tcolor: theme.palette.white,\r\n\t\tdisplay: 'flex',\r\n\t\tflexDirection: 'column',\r\n\t\tjustifyContent: 'flex-end',\r\n\t\t[theme.breakpoints.down('lg')]: {\r\n\t\t\tdisplay: 'none',\r\n\t\t},\r\n\t},\r\n\ticon: {\r\n\t\tbackgroundImage: gradients.green,\r\n\t\tcolor: theme.palette.white,\r\n\t\tborderRadius: theme.shape.borderRadius,\r\n\t\tpadding: theme.spacing(1),\r\n\t\tposition: 'absolute',\r\n\t\ttop: -32,\r\n\t\tleft: theme.spacing(3),\r\n\t\theight: 64,\r\n\t\twidth: 64,\r\n\t\tfontSize: 32,\r\n\t},\r\n\tloginForm: {\r\n\t\tmarginTop: theme.spacing(3),\r\n\t},\r\n\tdivider: {\r\n\t\tmargin: theme.spacing(2, 0),\r\n\t},\r\n\tperson: {\r\n\t\tmarginTop: theme.spacing(2),\r\n\t\tdisplay: 'flex',\r\n\t},\r\n\tavatar: {\r\n\t\tmarginRight: theme.spacing(2),\r\n\t},\r\n}));\r\n\r\nconst Login = () => {\r\n\tconst classes = useStyles();\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tSign in\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tSign in on the internal platform\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tForgot password?\r\n\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t© Celfinet\r\n\t\t\t\t\t\r\n\t\t\t\t\t{/*
\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tEkaterina Tankova\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tManager at inVision\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t
\r\n\t\t\t\t\t
*/}\r\n\t\t\t\t\r\n\t\t\t
\r\n\t\t\r\n\t);\r\n};\r\n\r\nexport default Login;\r\n","\"use strict\";\n\"use client\";\n\nvar _interopRequireDefault = require(\"@babel/runtime/helpers/interopRequireDefault\");\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _createSvgIcon = _interopRequireDefault(require(\"./utils/createSvgIcon\"));\nvar _jsxRuntime = require(\"react/jsx-runtime\");\nvar _default = exports.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)(\"path\", {\n d: \"M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1z\"\n}), 'Lock');","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getCardMediaUtilityClass(slot) {\n return generateUtilityClass('MuiCardMedia', slot);\n}\nconst cardMediaClasses = generateUtilityClasses('MuiCardMedia', ['root', 'media', 'img']);\nexport default cardMediaClasses;","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"component\", \"image\", \"src\", \"style\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport styled from '../styles/styled';\nimport { getCardMediaUtilityClass } from './cardMediaClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n isMediaComponent,\n isImageComponent\n } = ownerState;\n const slots = {\n root: ['root', isMediaComponent && 'media', isImageComponent && 'img']\n };\n return composeClasses(slots, getCardMediaUtilityClass, classes);\n};\nconst CardMediaRoot = styled('div', {\n name: 'MuiCardMedia',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n const {\n isMediaComponent,\n isImageComponent\n } = ownerState;\n return [styles.root, isMediaComponent && styles.media, isImageComponent && styles.img];\n }\n})(({\n ownerState\n}) => _extends({\n display: 'block',\n backgroundSize: 'cover',\n backgroundRepeat: 'no-repeat',\n backgroundPosition: 'center'\n}, ownerState.isMediaComponent && {\n width: '100%'\n}, ownerState.isImageComponent && {\n // ⚠️ object-fit is not supported by IE11.\n objectFit: 'cover'\n}));\nconst MEDIA_COMPONENTS = ['video', 'audio', 'picture', 'iframe', 'img'];\nconst IMAGE_COMPONENTS = ['picture', 'img'];\nconst CardMedia = /*#__PURE__*/React.forwardRef(function CardMedia(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiCardMedia'\n });\n const {\n children,\n className,\n component = 'div',\n image,\n src,\n style\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const isMediaComponent = MEDIA_COMPONENTS.indexOf(component) !== -1;\n const composedStyle = !isMediaComponent && image ? _extends({\n backgroundImage: `url(\"${image}\")`\n }, style) : style;\n const ownerState = _extends({}, props, {\n component,\n isMediaComponent,\n isImageComponent: IMAGE_COMPONENTS.indexOf(component) !== -1\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(CardMediaRoot, _extends({\n className: clsx(classes.root, className),\n as: component,\n role: !isMediaComponent && image ? 'img' : undefined,\n ref: ref,\n style: composedStyle,\n ownerState: ownerState,\n src: isMediaComponent ? image || src : undefined\n }, other, {\n children: children\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? CardMedia.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 `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: chainPropTypes(PropTypes.node, props => {\n if (!props.children && !props.image && !props.src && !props.component) {\n return new Error('MUI: Either `children`, `image`, `src` or `component` prop must be specified.');\n }\n return null;\n }),\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 * Image to be displayed as a background image.\n * Either `image` or `src` prop must be specified.\n * Note that caller must specify height otherwise the image will not be visible.\n */\n image: PropTypes.string,\n /**\n * An alias for `image` property.\n * Available only with media components.\n * Media components: `video`, `audio`, `picture`, `iframe`, `img`.\n */\n src: PropTypes.string,\n /**\n * @ignore\n */\n style: PropTypes.object,\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} : void 0;\nexport default CardMedia;"],"names":["schema","email","presence","allowEmpty","message","password","useStyles","makeStyles","theme","root","fields","margin","spacing","display","flexWrap","flexGrow","submitButton","marginTop","width","props","className","rest","_objectWithoutProperties","_excluded","classes","router","useRouter","dispatch","useDispatch","formState","setFormState","useState","isValid","values","touched","errors","errorState","setErrorState","useEffect","validate","items","_objectSpread","handleChange","event","target","name","type","checked","value","hasError","field","_jsxs","clsx","onSubmit","async","preventDefault","login","then","history","push","catch","error","children","_jsx","Typography","align","style","color","variant","TextField","fullWidth","helperText","label","onChange","Button","disabled","size","height","alignItems","justifyContent","padding","card","breakpoints","md","maxWidth","overflow","position","flexBasis","content","media","borderTopRightRadius","borderBottomRightRadius","palette","white","flexDirection","down","icon","backgroundImage","gradients","green","borderRadius","shape","top","left","fontSize","loginForm","divider","person","avatar","marginRight","Login","Page","title","Card","CardContent","LockIcon","gutterBottom","LoginForm","Divider","Link","component","RouterLink","to","underline","CardMedia","image","_interopRequireDefault","require","exports","_createSvgIcon","_jsxRuntime","default","jsx","d","getCardMediaUtilityClass","slot","generateUtilityClass","generateUtilityClasses","CardMediaRoot","styled","overridesResolver","styles","ownerState","isMediaComponent","isImageComponent","img","_ref","_extends","backgroundSize","backgroundRepeat","backgroundPosition","objectFit","MEDIA_COMPONENTS","IMAGE_COMPONENTS","React","inProps","ref","useDefaultProps","src","other","_objectWithoutPropertiesLoose","indexOf","composedStyle","concat","slots","composeClasses","useUtilityClasses","as","role","undefined"],"sourceRoot":""}