{"version":3,"sources":["components/MenuPopover.js","layouts/dashboard/LanguagePopover.js","layouts/dashboard/ThemeToggler.tsx","media/images/edocs.tsx","components/authentication/login/DigitalKeySvg.jsx","components/authentication/login/LoginForm.jsx","components/authentication/login/LoginWithPwd.tsx","pages/Login.tsx"],"names":["ArrowStyle","styled","_ref","theme","breakpoints","up","top","zIndex","width","right","height","content","position","borderRadius","transform","background","palette","paper","borderRight","alpha","grey","borderBottom","MenuPopover","_ref2","children","sx","other","_jsxs","Popover","anchorOrigin","vertical","horizontal","transformOrigin","PaperProps","mt","ml","overflow","boxShadow","customShadows","z20","border","_jsx","className","LANGS","value","label","icon","popover","LanguagePopover","i18n","useTranslation","anchorRef","useRef","open","useToggle","_Fragment","Typography","ref","onClick","on","fontWeight","fontSize","fontFamily","cursor","color","language","state","onClose","off","anchorEl","current","Box","py","bgcolor","primary","main","action","focusOpacity","map","option","MenuItem","async","changeLanguage","selected","px","ListItemIcon","component","alt","src","ListItemText","primaryTypographyProps","variant","React","memo","MaterialUISwitch","Switch","padding","margin","backgroundImage","encodeURIComponent","opacity","backgroundColor","mode","left","backgroundRepeat","backgroundPosition","ThemeToggler","dispatch","useAppDispatch","darkTheme","setDarkTheme","useState","useEffect","light","JSON","parse","localStorage","getItem","appSlice","actions","toggleDarkTheme","FormControlLabel","mr","control","onChange","switchTheme","_","setItem","stringify","checked","hidden","pathLength","fill","visible","icon2","EdocsLogo","useTheme","Stack","direction","justifyContent","alignItems","motion","svg","viewBox","xmlns","style","stroke","text","strokeWidth","strokeLinejoin","strokeLinecap","clipPath","path","variants","initial","animate","transition","default","duration","ease","d","id","DigitalKeySvg","maxHeight","minHeight","fillRule","rx","x","y","cx","cy","r","expiryColorPaint","date","Date","now","getTime","checkExpirationDate","Boolean","LoginForm","isLogin","t","navigate","useNavigate","isMobileWidth","useMediaQuery","profile","authorizedProfiles","useAppSelector","authReducer","serialNumbers","eimzoReducer","dark","appReducer","useProfileGetter","useGetProfile","undefined","setProfileHook","updateProfileToken","useProfileSetter","fiz","setFiz","yur","setYur","setOpen","handlePfxKeySelection","serialNumber","keyId","loadKey","toggleSystemLoading","authId","getAuthId","toggleSystemAlert","type","show","message","pkcs7","signData","loginData","length","parseInt","toString","toLocaleLowerCase","res","userLogin","entities","token","user","_parsedProfile$tin","profileRes","fetch","headers","Authorization","parsedProfile","json","tin","personalNum","isAuthWithPassword","isFizAuthToYurProfile","filterSlice","setFilterProfile","Array","isArray","includes","_parsedProfile$tin2","response","entityToken","data","profileCopy","Object","assign","status","entityName","AuthSlice","removeFizInnProfiles","handleProfileFetch","firstArr","secondArr","pfx","obj","TIN","push","handleClickOpenDialog","handleCloseDialog","display","flexGrow","Button","borderColor","Dialog","disableEscapeKeyDown","DialogContent","ListSubheader","Groups2Icon","marginRight","index","_authorizedProfiles$s","isDisabled","validTo","tinAuthorized","some","ListItem","gap","p","O","CN","disabled","CheckCircleOutlineIcon","marginLeft","fShortDate","AssignmentIndIcon","_tinAuthorized$user$e","_tinAuthorized$user","_tinAuthorized$user$e2","trim","incorrectInn","tinOrPinfl","PINFL","find","isUserHasNoAuthorizedEntities","entity","_entity$tin","mainProfile","profileSelect","DialogActions","window","textDecoration","LoginWithPassword","userNameRef","passwordRef","showPassword","FormControl","size","flexDirection","TextField","placeholder","inputRef","InputProps","startAdornment","InputAdornment","AccountCircle","HttpsIcon","endAdornment","IconButton","toggle","edge","Icon","visibilityoff","visibility","my","api","userPwdLogin","login","password","_profileCopy$tin","Login","location","useLocation","pathname","split","loadKeys","title","Helmet","xs","md","spacing","backIcon","sm","maxWidth","borderTopLeftRadius","borderBottomRightRadius","warning","flexBasis","backdropFilter","textAlign","mb","secondary","pb","Link","RouterLink","to","textDecorationColor","backgroundSize","Divider","Chip","LoginWithPwd"],"mappings":"yGACA,sEAMA,MAAMA,EAAaC,YAAO,OAAPA,EAAeC,IAAA,IAAC,MAAEC,GAAOD,EAAA,MAAM,CAChD,CAACC,EAAMC,YAAYC,GAAG,OAAQ,CAC5BC,KAAM,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IAAG,CACH9C,GAAI,CACHb,SAAU,WACVN,IAAK,EACLiG,KAAM,EACN/F,MAAO,OACPE,OAAQ,OACRwF,gBAAiB,+BACjBuQ,eAAgB,QAChBhQ,mBAAoB,SACpBL,QAAS,OAGXzE,eAAC4C,IAAG,CACH9C,GAAI,CACH+O,QAAS,OACTgD,cAAe,SACf7K,eAAgB,SAChBC,WAAY,SACZlI,OAAQ,OACR+Q,IAAK,GACJjQ,SAAA,CAEFiB,cAAC0I,EAAS,CAACC,QAASA,IAEpB3I,cAACiU,IAAO,CACP/Q,QAAQ,SACRlE,GAAI,CACHjB,MAAO,OACP,sBAAuB,CAAE6F,gBAAiBlG,EAAMa,QAAQmI,KAAK0I,WAC5DrQ,SAEFiB,cAACkU,IAAI,CAAC9T,MAAM,qBAAM0Q,KAAK,QAAQ9R,GAAI,CAAEuC,MAAO7D,EAAMa,QAAQD,WAAWE,WAGtEwB,cAACmU,GAAY,eAMnB,C","file":"static/js/16.0587bb81.chunk.js","sourcesContent":["import PropTypes from 'prop-types';\r\n// material\r\nimport { Popover } from '@mui/material';\r\nimport { alpha, styled } from '@mui/material/styles';\r\n\r\n// ----------------------------------------------------------------------\r\n\r\nconst ArrowStyle = styled('span')(({ theme }) => ({\r\n [theme.breakpoints.up('sm')]: {\r\n top: -7,\r\n zIndex: 1,\r\n width: 12,\r\n right: 20,\r\n height: 12,\r\n content: \"''\",\r\n position: 'absolute',\r\n borderRadius: '0 0 4px 0',\r\n transform: 'rotate(-135deg)',\r\n background: theme.palette.background.paper,\r\n borderRight: `solid 1px ${alpha(theme.palette.grey[500], 0.12)}`,\r\n borderBottom: `solid 1px ${alpha(theme.palette.grey[500], 0.12)}`\r\n }\r\n}));\r\n\r\n// ----------------------------------------------------------------------\r\n\r\nMenuPopover.propTypes = {\r\n children: PropTypes.node.isRequired,\r\n sx: PropTypes.object\r\n};\r\n\r\nexport default function MenuPopover({ children, sx, ...other }) {\r\n return (\r\n theme.customShadows.z20,\r\n border: (theme) => `solid 1px ${theme.palette.grey[500_8]}`,\r\n width: 200,\r\n ...sx\r\n }\r\n }}\r\n {...other}\r\n >\r\n \r\n {children}\r\n \r\n );\r\n}\r\n","import React, { useRef } from 'react'\r\n// material\r\nimport { alpha } from '@mui/material/styles'\r\nimport { Box, MenuItem, ListItemIcon, ListItemText, IconButton, Typography } from '@mui/material'\r\n// components\r\nimport MenuPopover from '../../components/MenuPopover'\r\nimport { useTranslation } from 'react-i18next'\r\nimport useToggle from '../../hooks/useToggle'\r\n\r\n// ----------------------------------------------------------------------\r\n\r\nconst LANGS = [\r\n\t{\r\n\t\tvalue: 'ru',\r\n\t\tlabel: 'Русский',\r\n\t\ticon: '/static/ic_flag_ru.svg',\r\n\t\tpopover: 'Ру'\r\n\t},\r\n\t{\r\n\t\tvalue: 'uz',\r\n\t\tlabel: 'Ўзбек',\r\n\t\ticon: '/static/ic_flag_uz.svg',\r\n\t\tpopover: 'Ўз'\r\n\t}\r\n]\r\n\r\n// ----------------------------------------------------------------------\r\n\r\nconst LanguagePopover = () => {\r\n\tconst { i18n } = useTranslation()\r\n\tconst anchorRef = useRef(null)\r\n\tconst open = useToggle(false)\r\n\r\n\tconst changeLanguage = async language => {\r\n\t\tawait i18n.changeLanguage(language)\r\n\t\t// window.location.reload();\r\n\t}\r\n\r\n\treturn (\r\n\t\t<>\r\n\t\t\t{/* open.on()}\r\n sx={{\r\n padding: 0,\r\n width: 30,\r\n height: 30,\r\n ...(open && {\r\n bgcolor: (theme) =>\r\n alpha(\r\n theme.palette.primary.main,\r\n theme.palette.action.focusOpacity\r\n ),\r\n }),\r\n }}\r\n >\r\n
\r\n */}\r\n\r\n\t\t\t open.on()}\r\n\t\t\t\tsx={{\r\n\t\t\t\t\tfontWeight: 600,\r\n\t\t\t\t\tfontSize: '1.5rem',\r\n\t\t\t\t\tfontFamily: 'monospace',\r\n\t\t\t\t\tcursor: 'pointer',\r\n\t\t\t\t\tcolor: 'background.text'\r\n\t\t\t\t}}\r\n\t\t\t>\r\n\t\t\t\t{i18n.language === 'ru' ? LANGS[0].popover : LANGS[1].popover}\r\n\t\t\t\r\n\r\n\t\t\t open.off()} anchorEl={anchorRef.current}>\r\n\t\t\t\t alpha(theme.palette.primary.main, theme.palette.action.focusOpacity)\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\t\t{LANGS.map(option => (\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 React.memo(LanguagePopover)\r\n","import React, { ChangeEvent, SyntheticEvent, useEffect, useState } from 'react'\r\nimport { FormControlLabel, Switch } from '@mui/material'\r\nimport { styled } from '@mui/material/styles'\r\nimport { useAppDispatch } from '../../hooks/redux'\r\nimport { appSlice } from '../../redux/reducers/AppReducer'\r\n\r\nconst MaterialUISwitch = styled(Switch)(({ theme }) => ({\r\n\twidth: 62,\r\n\theight: 34,\r\n\tpadding: 7,\r\n\t'& .MuiSwitch-switchBase': {\r\n\t\tmargin: 1,\r\n\t\tpadding: 0,\r\n\t\ttransform: 'translateX(6px)',\r\n\t\t'&.Mui-checked': {\r\n\t\t\tcolor: '#fff',\r\n\t\t\ttransform: 'translateX(22px)',\r\n\t\t\t'& .MuiSwitch-thumb:before': {\r\n\t\t\t\tbackgroundImage: `url('data:image/svg+xml;utf8,')`\r\n\t\t\t},\r\n\t\t\t'& + .MuiSwitch-track': {\r\n\t\t\t\topacity: 1,\r\n\t\t\t\tbackgroundColor: theme.palette.mode === 'dark' ? '#8796A5' : '#aab4be'\r\n\t\t\t}\r\n\t\t}\r\n\t},\r\n\t'& .MuiSwitch-thumb': {\r\n\t\tbackgroundColor: theme.palette.mode === 'dark' ? '#003892' : '#001e3c',\r\n\t\twidth: 32,\r\n\t\theight: 32,\r\n\t\t'&:before': {\r\n\t\t\tcontent: \"''\",\r\n\t\t\tposition: 'absolute',\r\n\t\t\twidth: '100%',\r\n\t\t\theight: '100%',\r\n\t\t\tleft: 0,\r\n\t\t\ttop: 0,\r\n\t\t\tbackgroundRepeat: 'no-repeat',\r\n\t\t\tbackgroundPosition: 'center',\r\n\t\t\tbackgroundImage: `url('data:image/svg+xml;utf8,')`\r\n\t\t}\r\n\t},\r\n\t'& .MuiSwitch-track': {\r\n\t\topacity: 1,\r\n\t\tbackgroundColor: theme.palette.mode === 'dark' ? '#8796A5' : '#aab4be',\r\n\t\tborderRadius: 20 / 2\r\n\t}\r\n}))\r\n\r\nconst ThemeToggler: React.FC = () => {\r\n\tconst dispatch = useAppDispatch()\r\n\tconst [darkTheme, setDarkTheme] = useState(false)\r\n\r\n\tuseEffect(() => {\r\n\t\tconst light = JSON.parse(localStorage.getItem('themeLight') || '{}')\r\n\t\tsetDarkTheme(light)\r\n\t\tdispatch(appSlice.actions.toggleDarkTheme(light))\r\n\t}, [])\r\n\r\n\tconst switchTheme = (_: unknown, state: boolean) => {\r\n\t\tsetDarkTheme(state)\r\n\t\tlocalStorage.setItem('themeLight', JSON.stringify(state))\r\n\t\tdispatch(appSlice.actions.toggleDarkTheme(state))\r\n\t}\r\n\r\n\treturn (\r\n\t\t}\r\n\t\t\tonChange={switchTheme}\r\n\t\t\tchecked={darkTheme}\r\n\t\t\tlabel={''}\r\n\t\t/>\r\n\t)\r\n}\r\n\r\nexport default React.memo(ThemeToggler)\r\n","import React from 'react'\r\nimport { Stack } from '@mui/material'\r\nimport { motion } from 'framer-motion'\r\nimport { useTheme } from '@mui/material/styles'\r\n\r\nconst icon = {\r\n\thidden: {\r\n\t\topacity: 1,\r\n\t\tpathLength: 0,\r\n\t\tfill: 'rgba(255, 255, 255, 0)'\r\n\t},\r\n\tvisible: {\r\n\t\topacity: 1,\r\n\t\tpathLength: 1,\r\n\t\tfill: '#808080'\r\n\t}\r\n}\r\nconst icon2 = {\r\n\thidden: {\r\n\t\topacity: 1,\r\n\t\tpathLength: 0,\r\n\t\tfill: 'rgba(255, 255, 255, 0)'\r\n\t},\r\n\tvisible: {\r\n\t\topacity: 1,\r\n\t\tpathLength: 1,\r\n\t\tfill: '#FBB03B'\r\n\t}\r\n}\r\n\r\nconst EdocsLogo = () => {\r\n\tconst theme = useTheme()\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\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\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\r\n\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\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 React.memo(EdocsLogo)\r\n","import React from 'react'\r\n\r\nconst DigitalKeySvg = () => {\r\n\treturn (\r\n\t\t\r\n\t)\r\n}\r\n\r\nexport default DigitalKeySvg\r\n","import React, { useEffect, useState } from 'react'\r\nimport { useNavigate } from 'react-router-dom'\r\nimport { useTranslation } from 'react-i18next'\r\n// hooks\r\nimport { useAppDispatch, useAppSelector } from '../../../hooks/redux'\r\nimport { useProfileGetter, useProfileSetter } from '../../../hooks/useProfile'\r\n// redux\r\nimport { loadKey, signData } from '../../../redux/actions/EimzoActions'\r\nimport { entityToken, getAuthId, userLogin } from '../../../redux/actions/AuthActions'\r\nimport { appSlice } from '../../../redux/reducers/AppReducer'\r\nimport { AuthSlice } from '../../../redux/reducers/AuthReducer'\r\nimport { filterSlice } from '../../../redux/reducers/FilterReducer'\r\n// material\r\nimport { useTheme } from '@mui/material/styles'\r\nimport useMediaQuery from '@mui/material/useMediaQuery'\r\nimport {\r\n\tBox,\r\n\tButton,\r\n\tDialog,\r\n\tDialogActions,\r\n\tDialogContent,\r\n\tListItem,\r\n\tListSubheader,\r\n\tStack,\r\n\tTypography\r\n} from '@mui/material'\r\n// utils\r\nimport { fShortDate } from '../../../utils/formatTime'\r\n// icons\r\nimport DigitalKeySvg from './DigitalKeySvg'\r\nimport AssignmentIndIcon from '@mui/icons-material/AssignmentInd'\r\nimport Groups2Icon from '@mui/icons-material/Groups2'\r\nimport CheckCircleOutlineIcon from '@mui/icons-material/CheckCircleOutline'\r\n\r\n// ----------------------------------------------------------------------\r\n\r\nconst expiryColorPaint = date => {\r\n\treturn Date.now() > new Date(date).getTime() ? '#f00' : 'inherit'\r\n}\r\n\r\nconst checkExpirationDate = date => {\r\n\treturn Boolean(Date.now() > new Date(date).getTime())\r\n}\r\n\r\n// ----------------------------------------------------------------------\r\n\r\nfunction LoginForm({ isLogin }) {\r\n\tconst { t } = useTranslation()\r\n\tconst navigate = useNavigate()\r\n\tconst theme = useTheme()\r\n\tconst dispatch = useAppDispatch()\r\n\tconst isMobileWidth = useMediaQuery('(max-width:600px)')\r\n\r\n\tconst { profile: authorizedProfiles } = useAppSelector(state => state.authReducer)\r\n\tconst { serialNumbers } = useAppSelector(state => state.eimzoReducer)\r\n\tconst dark = useAppSelector(state => state.appReducer.darkTheme)\r\n\tconst profile = useProfileGetter.useGetProfile() || undefined\r\n\tconst { setProfileHook, updateProfileToken } = useProfileSetter()\r\n\r\n\tconst [fiz, setFiz] = useState([])\r\n\tconst [yur, setYur] = useState([])\r\n\tconst [open, setOpen] = useState(false)\r\n\r\n\tconst isActiveProfile = tin => {\r\n\t\tif (isLogin) return false\r\n\t\treturn profile?.tin === tin\r\n\t}\r\n\r\n\tconst handleProfileFetch = async (entities, token, keyId, user) => {\r\n\t\tconst profileRes = await fetch(`${process.env.REACT_APP_DEVELOPMENT_URL}/profile`, {\r\n\t\t\theaders: {\r\n\t\t\t\tAuthorization: `Bearer ${token}`\r\n\t\t\t}\r\n\t\t})\r\n\t\tconst parsedProfile = await profileRes.json()\r\n\t\tparsedProfile.tin = parsedProfile.tin?.length ? parsedProfile.tin : parsedProfile.personalNum\r\n\t\tparsedProfile.isAuthWithPassword = false\r\n\t\tparsedProfile.isFizAuthToYurProfile = false\r\n\r\n\t\tsetProfileHook({ ...parsedProfile, token, keyId, user })\r\n\t\tdispatch(filterSlice.actions.setFilterProfile(parsedProfile.tin))\r\n\r\n\t\tif (Array.isArray(entities)) {\r\n\t\t\tdispatch(\r\n\t\t\t\tappSlice.actions.toggleSystemAlert({\r\n\t\t\t\t\ttype: 'success',\r\n\t\t\t\t\tshow: true,\r\n\t\t\t\t\tmessage: t('alertTitles.welcome')\r\n\t\t\t\t})\r\n\t\t\t)\r\n\t\t\tif (entities?.length > 1) {\r\n\t\t\t\tif (entities[0].tin.length === 9 && ['4', '5', '6'].includes(entities[0].tin[0])) {\r\n\t\t\t\t\tconst response = await entityToken(entities[1].tin, entities[1].type)\r\n\t\t\t\t\tconst profileRes = await fetch(`${process.env.REACT_APP_DEVELOPMENT_URL}/profile`, {\r\n\t\t\t\t\t\theaders: {\r\n\t\t\t\t\t\t\tAuthorization: `Bearer ${response?.data.token}`\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\r\n\t\t\t\t\tconst parsedProfile = await profileRes.json()\r\n\t\t\t\t\tparsedProfile.tin = parsedProfile.tin?.length ? parsedProfile.tin : parsedProfile.personalNum\r\n\t\t\t\t\tconst profileCopy = Object.assign({}, parsedProfile)\r\n\r\n\t\t\t\t\tif (response?.status === 200) {\r\n\t\t\t\t\t\tprofileCopy.tin = entities[1].tin\r\n\t\t\t\t\t\tprofileCopy.keyId = keyId\r\n\t\t\t\t\t\tprofileCopy.entityName = response.data.user.entityName\r\n\t\t\t\t\t\tprofileCopy.user = response.data.user\r\n\t\t\t\t\t\tprofileCopy.isAuthWithPassword = false\r\n\t\t\t\t\t\tprofileCopy.isFizAuthToYurProfile = false\r\n\r\n\t\t\t\t\t\tupdateProfileToken(response.data.token, profileCopy)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdispatch(AuthSlice.actions.removeFizInnProfiles())\r\n\r\n\t\t\t\t\tnavigate(`/dashboard/profile-select`, { state: { entities, token } })\r\n\t\t\t\t} else {\r\n\t\t\t\t\tnavigate(`/dashboard/profile-select`, { state: { entities, token } })\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tnavigate(`/dashboard/app`)\r\n\t\t\t}\r\n\t\t}\r\n\t\tdispatch(appSlice.actions.toggleSystemLoading(false))\r\n\t}\r\n\r\n\tconst handlePfxKeySelection = async serialNumber => {\r\n\t\tif (!!serialNumber) {\r\n\t\t\tconst keyId = await dispatch(loadKey(serialNumber, serialNumbers))\r\n\r\n\t\t\tdispatch(appSlice.actions.toggleSystemLoading(true))\r\n\t\t\tif (keyId) {\r\n\t\t\t\tlet authId = await getAuthId(serialNumber)\r\n\r\n\t\t\t\tif (authId === undefined) {\r\n\t\t\t\t\tdispatch(\r\n\t\t\t\t\t\tappSlice.actions.toggleSystemAlert({\r\n\t\t\t\t\t\t\ttype: 'warning',\r\n\t\t\t\t\t\t\tshow: true,\r\n\t\t\t\t\t\t\tmessage: t('alertTitles.userDoesNotExist')\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t)\r\n\t\t\t\t\tdispatch(appSlice.actions.toggleSystemLoading(false))\r\n\t\t\t\t\tnavigate(`/register`)\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tconst pkcs7 = await dispatch(signData(JSON.stringify({ authId }), keyId))\r\n\t\t\t\tdispatch(appSlice.actions.toggleSystemLoading(true))\r\n\r\n\t\t\t\tif (pkcs7) {\r\n\t\t\t\t\tconst loginData = {\r\n\t\t\t\t\t\tserialNumber:\r\n\t\t\t\t\t\t\tserialNumber.length > 8 ? parseInt(serialNumber).toString(16) : serialNumber.toLocaleLowerCase(),\r\n\t\t\t\t\t\tpkcs7\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tconst res = await dispatch(userLogin(loginData))\r\n\t\t\t\t\tif (res.entities) {\r\n\t\t\t\t\t\tawait handleProfileFetch(res.entities, res.token, keyId, res.user)\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tdispatch(appSlice.actions.toggleSystemLoading(false))\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tdispatch(\r\n\t\t\t\tappSlice.actions.toggleSystemAlert({\r\n\t\t\t\t\ttype: 'warning',\r\n\t\t\t\t\tmessage: t('errors.select_key_to_proceed'),\r\n\t\t\t\t\tshow: true\r\n\t\t\t\t})\r\n\t\t\t)\r\n\t\t}\r\n\t}\r\n\r\n\tconst profileSelect = async (mainProfile, entities) => {\r\n\t\tsetProfileHook(mainProfile, true)\r\n\t\tdispatch(filterSlice.actions.setFilterProfile(profile.tin))\r\n\t\tnavigate(`/dashboard/profile-select`, { state: { entities } })\r\n\t}\r\n\r\n\tuseEffect(() => {\r\n\t\tconst firstArr = []\r\n\t\tconst secondArr = []\r\n\t\tif (serialNumbers.length !== 0) {\r\n\t\t\tserialNumbers.map(pfx => {\r\n\t\t\t\tif (pfx.obj.TIN.length === 9 && ['2', '3'].includes(pfx.obj.TIN[0])) {\r\n\t\t\t\t\tfirstArr.push(pfx)\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsecondArr.push(pfx)\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tsetYur(firstArr)\r\n\t\t\tsetFiz(secondArr)\r\n\t\t}\r\n\t}, [serialNumbers])\r\n\r\n\tconst handleClickOpenDialog = () => {\r\n\t\tsetOpen(true)\r\n\t}\r\n\r\n\tconst handleCloseDialog = () => {\r\n\t\tsetOpen(false)\r\n\t}\r\n\r\n\tif (serialNumbers.length !== 0) {\r\n\t\treturn (\r\n\t\t\t\r\n\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\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\r\n\t)\r\n}\r\n\r\nexport default React.memo(LoginForm)\r\n","import { useRef } from 'react'\r\nimport { useTranslation } from 'react-i18next'\r\nimport { useNavigate } from 'react-router-dom'\r\nimport api from '../../../api/auth'\r\n// hooks\r\nimport useToggle from '../../../hooks/useToggle'\r\nimport { useAppDispatch, useAppSelector } from '../../../hooks/redux'\r\nimport { useProfileSetter } from '../../../hooks/useProfile'\r\n// redux\r\nimport { appSlice } from '../../../redux/reducers/AppReducer'\r\nimport { filterSlice } from '../../../redux/reducers/FilterReducer'\r\nimport { UserEntities, IUserInfo } from '../../../models/profile'\r\n// material\r\nimport { useTheme } from '@mui/material/styles'\r\nimport { Button, FormControl, IconButton, TextField, InputAdornment } from '@mui/material'\r\n// icons\r\nimport { Icon } from '@iconify/react'\r\nimport visibilityoff from '@iconify/icons-ant-design/eye-invisible-twotone'\r\nimport visibility from '@iconify/icons-ant-design/eye-twotone'\r\nimport AccountCircle from '@mui/icons-material/AccountCircle'\r\nimport HttpsIcon from '@mui/icons-material/Https'\r\n\r\n// ----------------------------------------------------------------------\r\n\r\nconst LoginWithPassword = () => {\r\n\tconst userNameRef = useRef(null)\r\n\tconst passwordRef = useRef(null)\r\n\tconst { t } = useTranslation()\r\n\tconst dispatch = useAppDispatch()\r\n\tconst theme = useTheme()\r\n\tconst { setProfileHook } = useProfileSetter()\r\n\tconst navigate = useNavigate()\r\n\tconst dark = useAppSelector(state => state.appReducer.darkTheme)\r\n\r\n\tconst showPassword = useToggle(false)\r\n\r\n\tconst handleProfileFetch = async (entities: UserEntities, token: string, user: IUserInfo) => {\r\n\t\tconst profileRes = await fetch(`${process.env.REACT_APP_DEVELOPMENT_URL}/profile`, {\r\n\t\t\theaders: {\r\n\t\t\t\tAuthorization: `Bearer ${token}`\r\n\t\t\t}\r\n\t\t})\r\n\t\tconst profileCopy = await profileRes.json()\r\n\t\tprofileCopy.tin = profileCopy.tin?.length ? profileCopy.tin : profileCopy.personalNum\r\n\t\tprofileCopy.isAuthWithPassword = true\r\n\t\tprofileCopy.isFizAuthToYurProfile = false\r\n\r\n\t\tsetProfileHook({ ...profileCopy, token, user })\r\n\t\tdispatch(filterSlice.actions.setFilterProfile(profileCopy.tin))\r\n\r\n\t\tdispatch(appSlice.actions.toggleSystemLoading(false))\r\n\t\tif (Array.isArray(entities)) {\r\n\t\t\tdispatch(\r\n\t\t\t\tappSlice.actions.toggleSystemAlert({\r\n\t\t\t\t\ttype: 'success',\r\n\t\t\t\t\tshow: true,\r\n\t\t\t\t\tmessage: t('alertTitles.welcome')\r\n\t\t\t\t})\r\n\t\t\t)\r\n\t\t\tif (entities?.length > 1) {\r\n\t\t\t\tnavigate(`/dashboard/profile-select`, {\r\n\t\t\t\t\tstate: { entities }\r\n\t\t\t\t})\r\n\t\t\t} else {\r\n\t\t\t\tnavigate(`/dashboard/app`)\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tconst handleFormSubmit = async () => {\r\n\t\tif (!userNameRef.current || !passwordRef.current) return\r\n\r\n\t\tif (![userNameRef.current.value.trim(), passwordRef.current.value.trim()].some(Boolean)) {\r\n\t\t\tdispatch(\r\n\t\t\t\tappSlice.actions.toggleSystemAlert({\r\n\t\t\t\t\ttype: 'warning',\r\n\t\t\t\t\tshow: true,\r\n\t\t\t\t\tmessage: t('alertTitles.username_login')\r\n\t\t\t\t})\r\n\t\t\t)\r\n\r\n\t\t\treturn\r\n\t\t}\r\n\r\n\t\tdispatch(appSlice.actions.toggleSystemLoading(true))\r\n\r\n\t\tconst res = await api.userPwdLogin({\r\n\t\t\tlogin: userNameRef.current.value,\r\n\t\t\tpassword: passwordRef.current.value\r\n\t\t})\r\n\r\n\t\tif (res.status === 200) {\r\n\t\t\tawait handleProfileFetch(res.data.user.entities, res.data.token, res.data.user)\r\n\t\t} else {\r\n\t\t\tdispatch(appSlice.actions.toggleSystemLoading(false))\r\n\t\t}\r\n\t}\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\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\r\n\t\t\t\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\tendAdornment: (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t showPassword.toggle()} edge='end'>\r\n\t\t\t\t\t\t\t\t{showPassword.state ? : }\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\r\n\t\t\t\r\n\t\t\r\n\t)\r\n}\r\n\r\nexport default LoginWithPassword\r\n","import React, { useEffect } from 'react'\r\nimport { useTranslation } from 'react-i18next'\r\nimport { Link as RouterLink, useLocation, useNavigate } from 'react-router-dom'\r\n// hooks\r\nimport { useAppDispatch, useAppSelector } from '../hooks/redux'\r\n// redux\r\nimport { loadKeys } from '../redux/actions/EimzoActions'\r\n// material\r\nimport { useTheme } from '@mui/material/styles'\r\nimport useMediaQuery from '@mui/material/useMediaQuery'\r\nimport { Link, Stack, Box, Button, Typography, Divider, Chip } from '@mui/material'\r\n// components\r\nimport { Helmet } from 'react-helmet-async'\r\nimport { LoginForm } from '../components/authentication/login'\r\nimport EdocsLogo from '../media/images/edocs'\r\nimport LanguagePopover from '../layouts/dashboard/LanguagePopover'\r\nimport ThemeToggler from '../layouts/dashboard/ThemeToggler'\r\nimport LoginWithPwd from '../components/authentication/login/LoginWithPwd'\r\n// icons\r\nimport { Icon } from '@iconify/react'\r\nimport backIcon from '@iconify/icons-carbon/arrow-left'\r\n\r\n// ----------------------------------------------------------------------\r\n\r\nexport default function Login() {\r\n\tconst { t } = useTranslation()\r\n\tconst location = useLocation()\r\n\tconst dispatch = useAppDispatch()\r\n\tconst theme = useTheme()\r\n\tconst navigate = useNavigate()\r\n\tconst dark = useAppSelector(state => state.appReducer.darkTheme)\r\n\tconst isLogin = location.pathname.split('/')[1] === 'login'\r\n\tconst isMobileWidth = useMediaQuery('(max-width:600px)')\r\n\r\n\tuseEffect(() => {\r\n\t\tdispatch(loadKeys())\r\n\t}, [])\r\n\r\n\treturn (\r\n\t\t\r\n\t\t\t\r\n\t\t\t\tАвторизация | E-DOCS\r\n\t\t\t\r\n\t\t\t{/* Тема и язык */}\r\n\t\t\t\r\n\t\t\t\t{!isLogin && (\r\n\t\t\t\t\t\r\n\t\t\t\t)}\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\r\n\t\t\t{/* Блок авторизации */}\r\n\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\r\n\t\t\t\t\t\t{t(isLogin ? 'AUTH.text_primary' : 'MENU.add-profile')}\r\n\t\t\t\t\t\r\n\t\t\t\t\t{isLogin && (\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t{t('AUTH.first_time_here')} \r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t{t('AUTH.go_reg')}\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\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\r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\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\r\n\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"],"sourceRoot":""}