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EAAAA,EAAAA,KAAYC,GAASA,EAAMI,KAAKC,OAC7CZ,EAAAA,WAAgB,KAERa,aAAaC,QAAQC,EAAAA,KACrBpB,EAAQ,gBACZ,GACD,CAACA,IAGJ,OACIqB,EAAAA,EAAAA,KAACC,EAAAA,EAAI,CAAAC,UACDC,EAAAA,EAAAA,MAAC1D,EAAS,CAAAyD,SAAA,CACLf,IACGa,EAAAA,EAAAA,KAAChD,EAAY,CAAAkD,UAETF,EAAAA,EAAAA,KAACI,EAAAA,EAAM,CAACC,GAAI,CAAEC,OAAQ,IAAInD,MAAM,IAAKoD,UAAW,SAAUC,aAAc,EAAEC,GAAG,GAAKC,IAP5D,UAAdrB,EAAwB,sBAAwB,wBAOgDsB,IAAI,aASpHX,EAAAA,EAAAA,KAACY,EAAAA,GAAM,QASvB,C","sources":["layouts/public/PublicLayout.js"],"sourcesContent":["import * as React from 'react';\nimport { Outlet, useNavigate} from 'react-router-dom';\nimport { useTheme } from '@emotion/react';\nimport { useTranslation } from 'react-i18next';\n// material\nimport { styled } from '@mui/system';\nimport { Card,Avatar} from '@mui/material';\n//\nimport { useDispatch, useSelector } from 'react-redux';\nimport { TOKEN } from '../../config/config';\nimport Page from '../../components/Page';\nimport useResponsive from '../../hooks/useResponsive';\nimport Iconify from '../../components/Iconify';\n\n// ----------------------------------------------------------------------\n\nconst APP_BAR_MOBILE = 64;\nconst APP_BAR_DESKTOP = 92;\n\nconst RootStyle = styled('div')(({ theme }) => ({\n [theme.breakpoints.up('md')]: {\n display: 'flex',\n },\n}));\n\nconst SectionStyle = styled(Card)(({ theme }) => ({\n width: '100%',\n maxWidth: 464,\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n margin: theme.spacing(2, 0, 2, 2),\n}));\n\nconst ContentStyle = styled('div')(({ theme }) => ({\n maxWidth: 480,\n margin: 'auto',\n minHeight: '100vh',\n maxHeight: '100vh',\n display: 'flex',\n justifyContent: 'center',\n flexDirection: 'column',\n padding: theme.spacing(12, 0),\n}));\n\nconst MainStyle = styled('div')(({ theme }) => ({\n flexGrow: 1,\n overflow: 'auto',\n minHeight: '100vh',\n // maxHeight: '100vh',\n paddingTop: APP_BAR_MOBILE + 5,\n // paddingBottom: theme.spacing(10),\n [theme.breakpoints.up('lg')]: {\n paddingTop: APP_BAR_DESKTOP + 0,\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2)\n }\n}));\n\n// ----------------------------------------------------------------------\n\nexport default function PublicLayout(props) {\n const {t,i18n} = useTranslation();\n const theme = useTheme();\n const history = useNavigate()\n const [open, setOpen] = React.useState(false);\n const [isTimeout, setIsTimeout] = React.useState(false);\n const mdUp=useResponsive('up','md');\n const themeMode=useSelector(state=>state.dom.config.themeMode);\n const dispatch = useDispatch();\n // const loggedIn = localStorage.getItem(TOKEN)\n const user = useSelector(state => state.user.data)\n React.useEffect(() => {\n // const isAuthenticated = localStorage.getItem(\"TOKEN\")?true:false\n if (localStorage.getItem(TOKEN)) {\n history('dashboard/app');\n }\n }, [history])\n\n const getThemedLogo = () => themeMode === 'light' ? \"/static/Shadhin.png\" : \"/static/Shadhin-2.png\"\n return (\n <Page>\n <RootStyle>\n {mdUp && (\n <SectionStyle>\n {/* <Iconify icon={\"eos-icons:neural-network\"} width={250} height={250} color={theme.palette.text.primary} /> */}\n <Avatar sx={{ height: 250,width:300, alignSelf: \"center\", borderRadius: 0,mb:4 }} src={getThemedLogo()} alt=\"login\" />\n {/* <Typography variant=\"h3\" sx={{ px: 5, mt: 10, mb: 5 }}>\n Welcome to\n </Typography> */}\n {/* <img src=\"/static/illustrations/illustration_login.png\" alt=\"login\" /> */}\n {/* <img height={100} loading='lazy' src={getLocalizedLogo()} alt=\"login\" /> */}\n {/* <Typography mt={1} sx={{marginLeft:'-30px'}} variant='poster' fontFamily={'Comic Sans MS, Comic Sans, cursive'}>Card Management System</Typography> */}\n </SectionStyle>\n )}\n <Outlet />\n </RootStyle>\n {/* <RootStyle>\n <MainStyle>\n <Outlet />\n </MainStyle>\n </RootStyle> */}\n </Page>\n );\n}\n"],"names":["RootStyle","styled","_ref","theme","breakpoints","up","display","SectionStyle","Card","_ref2","width","maxWidth","flexDirection","justifyContent","alignItems","margin","spacing","_ref3","minHeight","maxHeight","padding","_ref4","flexGrow","overflow","paddingTop","APP_BAR_MOBILE","APP_BAR_DESKTOP","paddingLeft","paddingRight","PublicLayout","props","t","i18n","useTranslation","history","useTheme","useNavigate","open","setOpen","React","isTimeout","setIsTimeout","mdUp","useResponsive","themeMode","useSelector","state","dom","config","useDispatch","user","data","localStorage","getItem","TOKEN","_jsx","Page","children","_jsxs","Avatar","sx","height","alignSelf","borderRadius","mb","src","alt","Outlet"],"sourceRoot":""}