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EAAUW,QAAQ,I,uBChBvE,QAPqB,WACnB,IAAMC,GAAOC,EAAAA,EAAAA,MACPC,GAAWC,EAAAA,EAAAA,MAEjB,OAAOH,GAAOI,EAAAA,EAAAA,KAACC,EAAAA,GAAM,KAAMD,EAAAA,EAAAA,KAACE,EAAAA,GAAQ,CAACC,GAAI,SAAUC,SAAO,EAACC,MAAOP,GACpE,ECHA,IAAMQ,EAAoBC,EAAAA,QAAc,SAACA,GAAM,OAAMA,EAAM,MAAO,IAC5DC,EAAgBD,EAAAA,QAAc,SAACA,GAAM,OAAKA,EAAM,MAAO,IAiC7D,QA/B0B,WACxB,OACEE,EAAAA,EAAAA,MAACC,EAAAA,GAAM,CAAAC,SAAA,CACJH,EAAcI,KAAI,SAACC,EAAOC,GAAG,OAC5Bd,EAAAA,EAAAA,KAACe,EAAAA,GAAK,CAEJxB,KAAMsB,EAAMtB,KACZyB,SACEhB,EAAAA,EAAAA,KAACiB,EAAAA,SAAQ,CAACC,SAAU,MAAMP,UACxBX,EAAAA,EAAAA,KAACa,EAAMnB,UAAS,OAJfoB,EAOL,KAEJd,EAAAA,EAAAA,KAACe,EAAAA,GAAK,CAACC,SAAShB,EAAAA,EAAAA,KAACmB,EAAY,IAAIR,SAC9BL,EAAkBM,KAAI,SAACC,EAAOC,GAAG,OAChCd,EAAAA,EAAAA,KAACe,EAAAA,GAAK,CAEJxB,KAAMsB,EAAMtB,KACZyB,SACEhB,EAAAA,EAAAA,KAACiB,EAAAA,SAAQ,CAACC,SAAU,MAAMP,UACxBX,EAAAA,EAAAA,KAACa,EAAMnB,UAAS,OAJfoB,EAOL,QAKZ,C","sources":["webpack://Rohto/./src/routes/routes.ts","webpack://Rohto/./src/middleware/PrivateRoute.tsx","webpack://Rohto/./src/middleware/PermissionContent.tsx"],"sourcesContent":["import React from 'react';\r\n// import PermissionData from './middleware/PermissionData'\r\nconst Homepage = React.lazy(() => import('pages/Home/Home'));\r\nconst HomeDefault = React.lazy(() => import('pages/Home/components/HomeDefault'));\r\n\r\nconst Dashboard = React.lazy(() => import('pages/dashboard/views/DashBoard'));\r\nconst User = React.lazy(() => import('pages/User/User'));\r\nconst News = React.lazy(() => import('pages/News/NewsRoutes'));\r\nconst Survey = React.lazy(() => import('pages/survey/Survey'));\r\nconst Login = React.lazy(() => import('pages/auth/views/Login'));\r\nconst Register = React.lazy(() => import('pages/auth/views/Register'));\r\nconst ForgotPassword = React.lazy(() => import('pages/auth/views/ForgotPassword'));\r\nconst ScanSkin = React.lazy(() => import('pages/ScanSkin/ScanSkin'));\r\nconst Product = React.lazy(() => import('pages/Product/Product'));\r\n\r\nconst routes = [\r\n { path: '/login', exact: true, name: 'Login', component: Login, public: true },\r\n { path: '/register/*', exact: true, name: 'Register', component: Register, public: true },\r\n { path: '/forgot-password/*', exact: true, name: 'ForgotPassword', component: ForgotPassword, public: true },\r\n { path: '/news/*', exact: true, name: 'News', component: News, public: true },\r\n { path: '/user/*', exact: true, name: 'User', component: User },\r\n { path: '/dashboard', exact: true, name: 'Dashboard', component: Dashboard },\r\n { path: '/survey/*', exact: true, name: 'Survey', component: Survey, public: true },\r\n { path: '/scan/*', exact: true, name: 'ScanSkin', component: ScanSkin },\r\n { path: '/product/*', exact: true, name: 'Product', component: Product, public: true },\r\n { path: '/home', exact: true, name: 'Home', component: HomeDefault, public: true },\r\n { path: '*', exact: true, name: 'Home', component: Homepage, public: true },\r\n];\r\n\r\nexport default routes;\r\n","import { Navigate, Outlet, useLocation } from 'react-router';\r\nimport { isLogin } from 'utils/jwt';\r\n\r\nconst PrivateRoute = () => {\r\n const auth = isLogin();\r\n const location = useLocation();\r\n\r\n return auth ? : ;\r\n};\r\n\r\nexport default PrivateRoute;\r\n","import { Suspense } from 'react';\r\nimport { Route, Routes } from 'react-router-dom';\r\nimport routes from './../routes/routes';\r\nimport PrivateRoute from './PrivateRoute';\r\n\r\nconst permissionContent = routes.filter((routes) => !routes.public);\r\nconst publicContent = routes.filter((routes) => routes.public);\r\n\r\nconst PermissionContent = () => {\r\n return (\r\n \r\n {publicContent.map((route, idx) => (\r\n \r\n \r\n \r\n }\r\n />\r\n ))}\r\n }>\r\n {permissionContent.map((route, idx) => (\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 PermissionContent;\r\n"],"names":["Homepage","React","HomeDefault","Dashboard","User","News","Survey","path","exact","name","component","public","auth","isLogin","location","useLocation","_jsx","Outlet","Navigate","to","replace","state","permissionContent","routes","publicContent","_jsxs","Routes","children","map","route","idx","Route","element","Suspense","fallback","PrivateRoute"],"sourceRoot":""}