{"version":3,"sources":["helpers/Utils.js","redux/menu/actions.js","redux/settings/actions.js","redux/actions.js","index.js","serviceWorker.js","redux/settings/reducer.js","redux/menu/reducer.js","redux/reducers.js","redux/sagas.js","redux/store.js","AppRenderer.js","helpers/authHelper.js","constants/defaultValues.js"],"names":["getDirection","direction","defaultDirection","localStorage","getItem","localValue","error","console","log","isRtl","setDirection","setItem","getCurrentColor","currentColor","defaultColor","themeColorStorageKey","setCurrentColor","color","getCurrentLanguage","language","defaultLocale","localeOptions","filter","x","id","length","setCurrentLanguage","locale","getCurrentUser","user","JSON","parse","changeSelectedMenuHasSubItems","payload","type","MENU_CHANGE_HAS_SUB_ITEM_STATUS","changeDefaultClassnames","strCurrentClasses","MENU_CHANGE_DEFAULT_CLASSES","addContainerClassname","classname","newClasses","indexOf","MENU_CONTAINER_ADD_CLASSNAME","clickOnMobileMenu","currentClasses","split","nextClasses","includes","join","MENU_CLICK_MOBILE_MENU","containerClassnames","menuClickCount","setContainerClassnames","clickIndex","selectedMenuHasSubItems","MENU_SET_CLASSNAMES","changeLocale","CHANGE_LOCALE","isMultiColorActive","isDarkSwitchActive","then","require","Boolean","window","location","hostname","match","INIT_STATE","defaultMenuType","subHiddenBreakpoint","menuHiddenBreakpoint","reducers","combineReducers","menu","state","arguments","undefined","action","settings","rootSaga","getState","all","sagaMiddleware","createSagaMiddleware","middlewares","App","React","lazy","ReactDOM","render","_jsx","Provider","store","initialState","createStore","compose","applyMiddleware","run","sagas","configureStore","children","Suspense","fallback","className","document","getElementById","navigator","serviceWorker","ready","registration","unregister","name","adminRoot","searchPath","themeRadiusStorageKey","isAuthGuardActive"],"mappings":"iHAAA,yPASO,MAgCMA,EAAeA,KAC1B,IAAIC,EAAYC,IAEhB,IACE,GAAIC,aAAaC,QAAQ,aAAc,CACrC,MAAMC,EAAaF,aAAaC,QAAQ,aACrB,QAAfC,GAAuC,QAAfA,IAC1BJ,EAAYI,EAEhB,CACF,CAAE,MAAOC,GACPC,QAAQC,IAAI,q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.chunk.js","sourcesContent":["import {\r\n defaultDirection,\r\n defaultLocale,\r\n defaultColor,\r\n localeOptions,\r\n themeColorStorageKey,\r\n themeRadiusStorageKey\r\n} from '../constants/defaultValues';\r\n\r\nexport const mapOrder = (array, order, key) => {\r\n array.sort(function (a, b) {\r\n const A = a[key];\r\n const B = b[key];\r\n if (order.indexOf(`${A}`) > order.indexOf(`${B}`)) {\r\n return 1;\r\n }\r\n return -1;\r\n });\r\n return array;\r\n};\r\n\r\nexport const getDateWithFormat = () => {\r\n const today = new Date();\r\n let dd = today.getDate();\r\n let mm = today.getMonth() + 1; // January is 0!\r\n\r\n const yyyy = today.getFullYear();\r\n if (dd < 10) {\r\n dd = `0${dd}`;\r\n }\r\n if (mm < 10) {\r\n mm = `0${mm}`;\r\n }\r\n return `${dd}.${mm}.${yyyy}`;\r\n};\r\n\r\nexport const getCurrentTime = () => {\r\n const now = new Date();\r\n return `${now.getHours()}:${now.getMinutes()}`;\r\n};\r\n\r\nexport const getDirection = () => {\r\n let direction = defaultDirection;\r\n\r\n try {\r\n if (localStorage.getItem('direction')) {\r\n const localValue = localStorage.getItem('direction');\r\n if (localValue === 'rtl' || localValue === 'ltr') {\r\n direction = localValue;\r\n }\r\n }\r\n } catch (error) {\r\n console.log(\">>>>: src/helpers/Utils.js : getDirection -> error\", error)\r\n direction = defaultDirection;\r\n }\r\n return {\r\n direction,\r\n isRtl: direction === 'rtl',\r\n };\r\n};\r\nexport const setDirection = (localValue) => {\r\n let direction = 'ltr';\r\n if (localValue === 'rtl' || localValue === 'ltr') {\r\n direction = localValue;\r\n }\r\n try {\r\n localStorage.setItem('direction', direction);\r\n } catch (error) {\r\n console.log(\">>>>: src/helpers/Utils.js : setDirection -> error\", error)\r\n }\r\n};\r\n\r\nexport const getCurrentColor = () => {\r\n let currentColor = defaultColor;\r\n try {\r\n if (localStorage.getItem(themeColorStorageKey)) {\r\n currentColor = localStorage.getItem(themeColorStorageKey);\r\n }\r\n } catch (error) {\r\n console.log(\">>>>: src/helpers/Utils.js : getCurrentColor -> error\", error)\r\n currentColor = defaultColor\r\n }\r\n return currentColor;\r\n};\r\n\r\nexport const setCurrentColor = (color) => {\r\n try {\r\n localStorage.setItem(themeColorStorageKey, color);\r\n } catch (error) {\r\n console.log(\">>>>: src/helpers/Utils.js : setCurrentColor -> error\", error)\r\n }\r\n};\r\n\r\nexport const getCurrentRadius = () => {\r\n let currentRadius = 'rounded';\r\n try {\r\n if (localStorage.getItem(themeRadiusStorageKey)) {\r\n currentRadius = localStorage.getItem(themeRadiusStorageKey);\r\n }\r\n } catch (error) {\r\n console.log(\">>>>: src/helpers/Utils.js : getCurrentRadius -> error\", error)\r\n currentRadius = 'rounded'\r\n }\r\n return currentRadius;\r\n};\r\nexport const setCurrentRadius = (radius) => {\r\n try {\r\n localStorage.setItem(themeRadiusStorageKey, radius);\r\n } catch (error) {\r\n console.log(\">>>>: src/helpers/Utils.js : setCurrentRadius -> error\", error)\r\n }\r\n};\r\n\r\nexport const getCurrentLanguage = () => {\r\n let language = defaultLocale;\r\n try {\r\n language = localStorage.getItem('currentLanguage') &&\r\n localeOptions.filter(\r\n (x) => x.id === localStorage.getItem('currentLanguage')\r\n ).length > 0\r\n ? localStorage.getItem('currentLanguage')\r\n : defaultLocale;\r\n } catch (error) {\r\n console.log(\">>>>: src/helpers/Utils.js : getCurrentLanguage -> error\", error)\r\n language = defaultLocale;\r\n }\r\n return language;\r\n};\r\nexport const setCurrentLanguage = (locale) => {\r\n try {\r\n localStorage.setItem('currentLanguage', locale);\r\n } catch (error) {\r\n console.log(\">>>>: src/helpers/Utils.js : setCurrentLanguage -> error\", error)\r\n }\r\n};\r\n\r\n\r\n\r\n\r\nexport const getCurrentUser = () => {\r\n let user = null;\r\n try {\r\n user = localStorage.getItem('gogo_current_user') != null ? JSON.parse(localStorage.getItem('gogo_current_user')) : null;\r\n } catch (error) {\r\n console.log(\">>>>: src/helpers/Utils.js : getCurrentUser -> error\", error)\r\n user = null;\r\n }\r\n return user;\r\n}\r\n\r\nexport const setCurrentUser = (user) => {\r\n try {\r\n if (user) {\r\n localStorage.setItem('gogo_current_user', JSON.stringify(user))\r\n } else {\r\n localStorage.removeItem('gogo_current_user')\r\n }\r\n } catch (error) {\r\n console.log(\">>>>: src/helpers/Utils.js : setCurrentUser -> error\", error)\r\n }\r\n};\r\n","/* eslint-disable import/no-cycle */\r\n/* eslint-disable no-param-reassign */\r\nimport {\r\n MENU_SET_CLASSNAMES,\r\n MENU_CONTAINER_ADD_CLASSNAME,\r\n MENU_CLICK_MOBILE_MENU,\r\n MENU_CHANGE_DEFAULT_CLASSES,\r\n MENU_CHANGE_HAS_SUB_ITEM_STATUS,\r\n} from '../actions';\r\n\r\nexport const changeSelectedMenuHasSubItems = (payload) => {\r\n return {\r\n type: MENU_CHANGE_HAS_SUB_ITEM_STATUS,\r\n payload,\r\n };\r\n};\r\n\r\nexport const changeDefaultClassnames = (strCurrentClasses) => {\r\n return {\r\n type: MENU_CHANGE_DEFAULT_CLASSES,\r\n payload: strCurrentClasses,\r\n };\r\n};\r\n\r\nexport const addContainerClassname = (classname, strCurrentClasses) => {\r\n const newClasses =\r\n !strCurrentClasses.indexOf(classname) > -1\r\n ? `${strCurrentClasses} ${classname}`\r\n : strCurrentClasses;\r\n return {\r\n type: MENU_CONTAINER_ADD_CLASSNAME,\r\n payload: newClasses,\r\n };\r\n};\r\n\r\nexport const clickOnMobileMenu = (strCurrentClasses) => {\r\n const currentClasses = strCurrentClasses\r\n ? strCurrentClasses\r\n .split(' ')\r\n .filter((x) => x !== '' && x !== 'sub-show-temporary')\r\n : '';\r\n let nextClasses = '';\r\n if (currentClasses.includes('main-show-temporary')) {\r\n nextClasses = currentClasses\r\n .filter((x) => x !== 'main-show-temporary')\r\n .join(' ');\r\n } else {\r\n nextClasses = `${currentClasses.join(' ')} main-show-temporary`;\r\n }\r\n return {\r\n type: MENU_CLICK_MOBILE_MENU,\r\n payload: { containerClassnames: nextClasses, menuClickCount: 0 },\r\n };\r\n};\r\n\r\nexport const setContainerClassnames = (\r\n clickIndex,\r\n strCurrentClasses,\r\n selectedMenuHasSubItems\r\n) => {\r\n const currentClasses = strCurrentClasses\r\n ? strCurrentClasses.split(' ').filter((x) => x !== '')\r\n : '';\r\n let nextClasses = '';\r\n if (!selectedMenuHasSubItems) {\r\n if (\r\n currentClasses.includes('menu-default') &&\r\n (clickIndex % 4 === 0 || clickIndex % 4 === 3)\r\n ) {\r\n clickIndex = 1;\r\n }\r\n if (currentClasses.includes('menu-sub-hidden') && clickIndex % 4 === 2) {\r\n clickIndex = 0;\r\n }\r\n if (\r\n currentClasses.includes('menu-hidden') &&\r\n (clickIndex % 4 === 2 || clickIndex % 4 === 3)\r\n ) {\r\n clickIndex = 0;\r\n }\r\n }\r\n\r\n if (clickIndex % 4 === 0) {\r\n if (\r\n currentClasses.includes('menu-default') &&\r\n currentClasses.includes('menu-sub-hidden')\r\n ) {\r\n nextClasses = 'menu-default menu-sub-hidden';\r\n } else if (currentClasses.includes('menu-default')) {\r\n nextClasses = 'menu-default';\r\n } else if (currentClasses.includes('menu-sub-hidden')) {\r\n nextClasses = 'menu-sub-hidden';\r\n } else if (currentClasses.includes('menu-hidden')) {\r\n nextClasses = 'menu-hidden';\r\n }\r\n clickIndex = 0;\r\n } else if (clickIndex % 4 === 1) {\r\n if (\r\n currentClasses.includes('menu-default') &&\r\n currentClasses.includes('menu-sub-hidden')\r\n ) {\r\n nextClasses = 'menu-default menu-sub-hidden main-hidden sub-hidden';\r\n } else if (currentClasses.includes('menu-default')) {\r\n nextClasses = 'menu-default sub-hidden';\r\n } else if (currentClasses.includes('menu-sub-hidden')) {\r\n nextClasses = 'menu-sub-hidden main-hidden sub-hidden';\r\n } else if (currentClasses.includes('menu-hidden')) {\r\n nextClasses = 'menu-hidden main-show-temporary';\r\n }\r\n } else if (clickIndex % 4 === 2) {\r\n if (\r\n currentClasses.includes('menu-default') &&\r\n currentClasses.includes('menu-sub-hidden')\r\n ) {\r\n nextClasses = 'menu-default menu-sub-hidden sub-hidden';\r\n } else if (currentClasses.includes('menu-default')) {\r\n nextClasses = 'menu-default main-hidden sub-hidden';\r\n } else if (currentClasses.includes('menu-sub-hidden')) {\r\n nextClasses = 'menu-sub-hidden sub-hidden';\r\n } else if (currentClasses.includes('menu-hidden')) {\r\n nextClasses = 'menu-hidden main-show-temporary sub-show-temporary';\r\n }\r\n } else if (clickIndex % 4 === 3) {\r\n if (\r\n currentClasses.includes('menu-default') &&\r\n currentClasses.includes('menu-sub-hidden')\r\n ) {\r\n nextClasses = 'menu-default menu-sub-hidden sub-show-temporary';\r\n } else if (currentClasses.includes('menu-default')) {\r\n nextClasses = 'menu-default sub-hidden';\r\n } else if (currentClasses.includes('menu-sub-hidden')) {\r\n nextClasses = 'menu-sub-hidden sub-show-temporary';\r\n } else if (currentClasses.includes('menu-hidden')) {\r\n nextClasses = 'menu-hidden main-show-temporary';\r\n }\r\n }\r\n if (currentClasses.includes('menu-mobile')) {\r\n nextClasses += ' menu-mobile';\r\n }\r\n return {\r\n type: MENU_SET_CLASSNAMES,\r\n payload: { containerClassnames: nextClasses, menuClickCount: clickIndex },\r\n };\r\n};\r\n","import { CHANGE_LOCALE } from '../actions';\r\nimport { setCurrentLanguage } from '../../helpers/Utils';\r\n\r\nexport const changeLocale = (locale) => {\r\n setCurrentLanguage(locale);\r\n return {\r\n type: CHANGE_LOCALE,\r\n payload: locale,\r\n };\r\n};\r\n","/* eslint-disable import/no-cycle */\r\n/* SETTINGS */\r\nexport const CHANGE_LOCALE = 'CHANGE_LOCALE';\r\n\r\n/* AUTH */\r\nexport const LOGIN_USER = 'LOGIN_USER';\r\nexport const LOGIN_USER_SUCCESS = 'LOGIN_USER_SUCCESS';\r\nexport const LOGIN_USER_ERROR = 'LOGIN_USER_ERROR';\r\nexport const REGISTER_USER = 'REGISTER_USER';\r\nexport const REGISTER_USER_SUCCESS = 'REGISTER_USER_SUCCESS';\r\nexport const REGISTER_USER_ERROR = 'REGISTER_USER_ERROR';\r\nexport const LOGOUT_USER = 'LOGOUT_USER';\r\nexport const FORGOT_PASSWORD = 'FORGOT_PASSWORD';\r\nexport const FORGOT_PASSWORD_SUCCESS = 'FORGOT_PASSWORD_SUCCESS';\r\nexport const FORGOT_PASSWORD_ERROR = 'FORGOT_PASSWORD_ERROR';\r\nexport const RESET_PASSWORD = 'RESET_PASSWORD';\r\nexport const RESET_PASSWORD_SUCCESS = 'RESET_PASSWORD_SUCCESS';\r\nexport const RESET_PASSWORD_ERROR = 'RESET_PASSWORD_ERROR';\r\n\r\n/* MENU */\r\nexport const MENU_SET_CLASSNAMES = 'MENU_SET_CLASSNAMES';\r\nexport const MENU_CONTAINER_ADD_CLASSNAME = 'MENU_CONTAINER_ADD_CLASSNAME';\r\nexport const MENU_CLICK_MOBILE_MENU = 'MENU_CLICK_MOBILE_MENU';\r\nexport const MENU_CHANGE_DEFAULT_CLASSES = 'MENU_CHANGE_DEFAULT_CLASSES';\r\nexport const MENU_CHANGE_HAS_SUB_ITEM_STATUS =\r\n 'MENU_CHANGE_HAS_SUB_ITEM_STATUS';\r\n\r\nexport * from './menu/actions';\r\nexport * from './settings/actions';\r\n","/* eslint-disable global-require */\r\nimport './assets/css/vendor/bootstrap.min.css';\r\nimport './assets/css/vendor/bootstrap.rtl.only.min.css';\r\nimport 'react-circular-progressbar/dist/styles.css';\r\nimport 'react-perfect-scrollbar/dist/css/styles.css';\r\nimport 'react-big-calendar/lib/css/react-big-calendar.css';\r\nimport 'react-image-lightbox/style.css';\r\nimport 'video.js/dist/video-js.css';\r\nimport {\r\n isMultiColorActive,\r\n defaultColor,\r\n isDarkSwitchActive,\r\n} from './constants/defaultValues';\r\nimport { getCurrentColor, setCurrentColor } from './helpers/Utils';\r\n\r\nconst color =\r\n isMultiColorActive || isDarkSwitchActive ? getCurrentColor() : defaultColor;\r\nsetCurrentColor(color);\r\n\r\nconst render = () => {\r\n import(`./assets/css/sass/themes/gogo.light.yellowgranola.scss`).then(() => {\r\n require('./AppRenderer');\r\n });\r\n};\r\nrender();\r\n","// This optional code is used to register a service worker.\r\n// register() is not called by default.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on subsequent visits to a page, after all the\r\n// existing tabs open on the page have been closed, since previously cached\r\n// resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model and instructions on how to\r\n// opt-in, read https://bit.ly/CRA-PWA\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.1/8 is considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport function register(config) {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Let's check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'This web app is being served cache-first by a service ' +\r\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\r\n );\r\n });\r\n } else {\r\n // Is not localhost. Just register service worker\r\n registerValidSW(swUrl, config);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl, config) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n if (installingWorker == null) {\r\n return;\r\n }\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the updated precached content has been fetched,\r\n // but the previous service worker will still serve the older\r\n // content until all client tabs are closed.\r\n console.log(\r\n 'New content is available and will be used when all ' +\r\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\r\n );\r\n\r\n // Execute callback\r\n if (config && config.onUpdate) {\r\n config.onUpdate(registration);\r\n }\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n\r\n // Execute callback\r\n if (config && config.onSuccess) {\r\n config.onSuccess(registration);\r\n }\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl, config) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl)\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n const contentType = response.headers.get('content-type');\r\n if (\r\n response.status === 404 ||\r\n (contentType != null && contentType.indexOf('javascript') === -1)\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}\r\n","import { CHANGE_LOCALE } from '../actions';\r\nimport { getCurrentLanguage } from '../../helpers/Utils';\r\n\r\nconst INIT_STATE = {\r\n locale: getCurrentLanguage()\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case CHANGE_LOCALE:\r\n return { ...state, locale: action.payload };\r\n\r\n default:\r\n return { ...state };\r\n }\r\n};\r\n","import {\r\n MENU_SET_CLASSNAMES,\r\n MENU_CONTAINER_ADD_CLASSNAME,\r\n MENU_CLICK_MOBILE_MENU,\r\n MENU_CHANGE_DEFAULT_CLASSES,\r\n MENU_CHANGE_HAS_SUB_ITEM_STATUS,\r\n} from '../actions';\r\n\r\nimport {\r\n defaultMenuType,\r\n subHiddenBreakpoint,\r\n menuHiddenBreakpoint,\r\n} from '../../constants/defaultValues';\r\n\r\nconst INIT_STATE = {\r\n containerClassnames: defaultMenuType,\r\n subHiddenBreakpoint,\r\n menuHiddenBreakpoint,\r\n menuClickCount: 0,\r\n selectedMenuHasSubItems: defaultMenuType === 'menu-default', // if you use menu-sub-hidden as default menu type, set value of this variable to false\r\n};\r\n\r\nexport default (state = INIT_STATE, action) => {\r\n switch (action.type) {\r\n case MENU_CHANGE_HAS_SUB_ITEM_STATUS:\r\n return { ...state, selectedMenuHasSubItems: action.payload };\r\n\r\n case MENU_SET_CLASSNAMES:\r\n return {\r\n ...state,\r\n containerClassnames: action.payload.containerClassnames,\r\n menuClickCount: action.payload.menuClickCount,\r\n };\r\n\r\n case MENU_CLICK_MOBILE_MENU:\r\n return {\r\n ...state,\r\n containerClassnames: action.payload.containerClassnames,\r\n menuClickCount: action.payload.menuClickCount,\r\n };\r\n\r\n case MENU_CONTAINER_ADD_CLASSNAME:\r\n return { ...state, containerClassnames: action.payload };\r\n\r\n case MENU_CHANGE_DEFAULT_CLASSES:\r\n return { ...state, containerClassnames: action.payload };\r\n\r\n default:\r\n return { ...state };\r\n }\r\n};\r\n","import { combineReducers } from 'redux';\r\nimport settings from './settings/reducer';\r\nimport menu from './menu/reducer';\r\n\r\nconst reducers = combineReducers({\r\n menu,\r\n settings,\r\n});\r\n\r\nexport default reducers;\r\n","import { all } from 'redux-saga/effects';\r\n// import authSagas from './auth/saga';\r\n\r\nexport default function* rootSaga(getState) {\r\n yield all([\r\n // authSagas(),\r\n ]);\r\n}\r\n","import { createStore, applyMiddleware, compose } from 'redux';\r\nimport createSagaMiddleware from 'redux-saga';\r\nimport reducers from './reducers';\r\nimport sagas from './sagas';\r\n\r\nconst sagaMiddleware = createSagaMiddleware();\r\n\r\nconst middlewares = [sagaMiddleware];\r\n\r\nexport function configureStore(initialState) {\r\n const store = createStore(\r\n reducers,\r\n initialState,\r\n compose(applyMiddleware(...middlewares))\r\n );\r\n\r\n sagaMiddleware.run(sagas);\r\n\r\n if (module.hot) {\r\n module.hot.accept('./reducers', () => {\r\n const nextRootReducer = require('./reducers');\r\n store.replaceReducer(nextRootReducer);\r\n });\r\n }\r\n\r\n return store;\r\n}\r\n","import React, { Suspense } from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { Provider } from 'react-redux';\r\nimport * as serviceWorker from './serviceWorker';\r\nimport { configureStore } from './redux/store';\r\n\r\nconst App = React.lazy(() => import(/* webpackChunkName: \"App\" */ './App'));\r\n\r\nReactDOM.render(\r\n \r\n }>\r\n \r\n \r\n ,\r\n document.getElementById('root')\r\n);\r\n/*\r\n * If you want your app to work offline and load faster, you can change\r\n * unregister() to register() below. Note this comes with some pitfalls.\r\n * Learn more about service workers: https://bit.ly/CRA-PWA\r\n */\r\nserviceWorker.unregister();\r\n","\r\nimport React from 'react';\r\nimport {\r\n Route,\r\n Redirect,\r\n} from 'react-router-dom';\r\nimport { getCurrentUser } from './Utils'\r\nimport { isAuthGuardActive } from '../constants/defaultValues';\r\n\r\nconst ProtectedRoute = ({ component: Component, roles = undefined, ...rest }) => {\r\n const setComponent = (props) => {\r\n if (isAuthGuardActive) {\r\n const currentUser = getCurrentUser();\r\n if (currentUser) {\r\n if (roles) {\r\n if (roles.includes(currentUser.role)) {\r\n return ;\r\n } else {\r\n return \r\n }\r\n } else {\r\n return ;\r\n }\r\n } else {\r\n return \r\n }\r\n } else {\r\n return ;\r\n }\r\n\r\n }\r\n\r\n return (\r\n \r\n );\r\n}\r\nconst UserRole = {\r\n Admin: 0,\r\n Editor: 1,\r\n}\r\n\r\nexport { ProtectedRoute, UserRole };\r\n","import { UserRole } from '../helpers/authHelper';\r\n/*\r\nMenu Types:\r\n\"menu-default\", \"menu-sub-hidden\", \"menu-hidden\"\r\n*/\r\nexport const defaultMenuType = 'menu-default';\r\n\r\nexport const subHiddenBreakpoint = 1440;\r\nexport const menuHiddenBreakpoint = 768;\r\nexport const defaultLocale = 'en';\r\nexport const localeOptions = [\r\n { id: 'en', name: 'English - LTR', direction: 'ltr' },\r\n];\r\nexport const currentUser = {\r\n id: 1,\r\n title: 'Aron Einhorn',\r\n img: '/assets/img/profiles/l-1.jpg',\r\n date: 'Last seen today 15:24',\r\n role: UserRole.Admin,\r\n};\r\n\r\nexport const adminRoot = '/';\r\nexport const buyUrl = 'https://1.envato.market/k4z0';\r\nexport const searchPath = `${adminRoot}/#`;\r\nexport const servicePath = 'https://api.coloredstrategies.com';\r\n\r\nexport const themeColorStorageKey = '__theme_selected_color';\r\nexport const isMultiColorActive = false;\r\nexport const defaultColor = 'light.yellowgranola';\r\nexport const isDarkSwitchActive = false;\r\nexport const defaultDirection = 'ltr';\r\nexport const themeRadiusStorageKey = '__theme_radius';\r\nexport const isAuthGuardActive = false;\r\nexport const colors = [\r\n 'bluenavy',\r\n 'blueyale',\r\n 'blueolympic',\r\n 'greenmoss',\r\n 'greenlime',\r\n 'purplemonster',\r\n 'orangecarrot',\r\n 'redruby',\r\n 'yellowgranola',\r\n 'greysteel',\r\n];\r\n"],"sourceRoot":""}