{"version":3,"sources":["configs/themeConfig.js","views/components/spinner/fallback-spinner.js","consts/redux/index.js","assets/images/logo/logo.svg","redux/reducers/auth/index.js","redux/reducers/navbar/index.js","redux/reducers/layout/index.js","redux/reducers/account/index.js","redux/reducers/toaster/index.js","redux/reducers/supplierGrid/index.js","redux/reducers/notes/index.js","redux/reducers/ui/index.js","redux/reducers/rootReducer.js","redux/storeConfig/store.js","utility/context/ThemeColors.js","@core/components/ripple-button/index.js","serviceWorker.js","index.js"],"names":["themeConfig","app","appName","appLogoImage","require","default","layout","isRTL","skin","routerTransition","type","contentWidth","menu","isHidden","isCollapsed","navbar","backgroundColor","footer","customizer","scrollTop","SpinnerComponent","className","reduxActions","LOADING","SUCCESS","FAILURE","supplierManagementActions","GET_SUPPLIER_GRID","GET_SUPPLIER_ITINERARY_USAGE","noteActions","GET_NOTES","ADD_NOTE","CLEAR_NOTES","uiActions","SET_GRID_PAGE","SET_GRID_SORT","SET_GRID_FILTERS","SET_GRID_SEARCH_NAME","SET_ACTIVE_SUBMENU_EDITOR_CHILDREN","initialState","userData","authReducer","state","action","data","config","storageTokenKeyName","storageRefreshTokenKeyName","obj","suggestions","bookmarks","query","navbarReducer","val","objectToUpdate","find","item","id","isBookmarked","bookmarkIndex","findIndex","x","push","splice","menuCollapsed","window","localStorage","getItem","JSON","parse","initialMenuCollapsed","menuHidden","layoutReducer","value","setItem","isWetuUser","isUserAuthenticated","operatorId","redirectUrl","accountReducer","show","title","message","showSuccessTick","showError","autoHide","autoHideDelay","customCss","customHeader","timeoutId","toasterReducer","clearTimeout","isSupplierListLoading","isSupplierUsageLoading","isSupplierUsageLoaded","isSuppliersLoaded","error","supplierList","pagination","start","end","total","supplierManagementReducerMap","supplierClone","_","cloneDeep","forEach","usageItinerary","itinerary","overAllUsage","myUsage","rebrandedUsage","supplierManagementReducer","notes","loadingNotes","addingNotes","notesReducerMap","notesClone","note","notesReducer","take","page","filters","sortColumn","sortDirection","searchName","subMenuChildren","uiReducerMap","column","direction","uiReducer","rootReducer","combineReducers","auth","middleware","thunk","createDebounce","composeEnhancers","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","compose","store","createStore","applyMiddleware","ThemeColors","createContext","ThemeContext","children","useState","colors","setColors","useEffect","getHex","color","getComputedStyle","document","body","getPropertyValue","trim","primary","light","concat","main","secondary","success","danger","warning","info","dark","Provider","Button","Ripple","onClick","rest","mounted","setMounted","isRippling","setIsRippling","y","coords","setCoords","setTimeout","classnames","e","rect","target","getBoundingClientRect","clientX","left","clientY","top","style","Boolean","location","hostname","match","LazyApp","lazy","ReactDOM","render","fallback","newestOnTop","getElementById","navigator","serviceWorker","ready","then","registration","unregister"],"mappings":"iIAGA,IAAMA,EAAc,CAClBC,IAAK,CACHC,QAAS,OACTC,aAAcC,EAAQ,IAAoCC,SAE5DC,OAAQ,CACNC,OAAO,EACPC,KAAM,QACNC,iBAAkB,SAClBC,KAAM,WACNC,aAAc,OACdC,KAAM,CACJC,UAAU,EACVC,aAAa,GAEfC,OAAQ,CAENL,KAAM,SACNM,gBAAiB,SAEnBC,OAAQ,CACNP,KAAM,UAERQ,YAAY,EACZC,WAAW,IAIAnB,O,2CClBAoB,IAZU,WACvB,OACE,qBAAKC,UAAU,0BAAf,SACE,sBAAKA,UAAU,UAAf,UACE,qBAAKA,UAAU,qBACf,qBAAKA,UAAU,qBACf,qBAAKA,UAAU,4B,+BCPvB,wIAAO,IAAMC,EAAe,CAC1BC,QAAS,WACTC,QAAS,WACTC,QAAS,YAGEC,EAA4B,CACvCC,kBAAmB,oBACnBC,6BAA8B,sBAGnBC,EAAc,CACzBC,UAAW,YACXC,SAAU,WACVC,YAAa,eAGFC,EAAY,CACvBC,cAAe,gBACfC,cAAe,gBACfC,iBAAkB,mBAClBC,qBAAsB,uBACtBC,mCAAmC,uC,gCCtBrC,OAAe,cAA0B,kC,wOCCnCC,EAAe,CACnBC,SAAU,IAqBGC,EAlBK,WAAmC,IAAD,EAAjCC,EAAiC,uDAAzBH,EAAcI,EA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D,IACA,cAAC,IAAD,CAAgBK,aAAW,WAIjC9C,SAAS+C,eAAe,SD0EpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMC,MAAK,SAAAC,GACjCA,EAAaC,kB","file":"static/js/main.47c220df.chunk.js","sourcesContent":["// You can customize the template with the help of this file\n\n//Template config options\nconst themeConfig = {\n app: {\n appName: 'Wetu',\n appLogoImage: require('@src/assets/images/logo/logo.svg').default\n },\n layout: {\n isRTL: false,\n skin: 'light', // light, dark, bordered, semi-dark\n routerTransition: 'fadeIn', // fadeIn, fadeInLeft, zoomIn, none or check this for more transition https://animate.style/\n type: 'vertical', // vertical, horizontal\n contentWidth: 'full', // full, boxed\n menu: {\n isHidden: false,\n isCollapsed: false\n },\n navbar: {\n // ? For horizontal menu, navbar type will work for navMenu type\n type: 'static', // static , sticky , floating, hidden\n backgroundColor: 'white' // BS color options [primary, success, etc]\n },\n footer: {\n type: 'hidden' // static, sticky, hidden\n },\n customizer: false,\n scrollTop: true // Enable scroll to top button\n }\n}\n\nexport default themeConfig\n","// ** Logo\nconst SpinnerComponent = () => {\n return (\n
\n
\n
\n
\n
\n
\n
\n )\n}\n\nexport default SpinnerComponent\n","export const reduxActions = {\n LOADING: '_LOADING',\n SUCCESS: '_SUCCESS',\n FAILURE: '_FAILURE'\n}\n\nexport const supplierManagementActions = {\n GET_SUPPLIER_GRID: 'GET_SUPPLIER_GRID',\n GET_SUPPLIER_ITINERARY_USAGE: 'GET_SUPPLIER_USAGE'\n}\n\nexport const noteActions = {\n GET_NOTES: 'GET_NOTES',\n ADD_NOTE: 'ADD_NOTE',\n CLEAR_NOTES: 'CLEAR_NOTES'\n}\n\nexport const uiActions = {\n SET_GRID_PAGE: 'SET_GRID_PAGE',\n SET_GRID_SORT: 'SET_GRID_SORT',\n SET_GRID_FILTERS: 'SET_GRID_FILTERS',\n SET_GRID_SEARCH_NAME: 'SET_GRID_SEARCH_NAME',\n SET_ACTIVE_SUBMENU_EDITOR_CHILDREN:'SET_ACTIVE_SUBMENU_EDITOR_CHILDREN'\n}\n","export default __webpack_public_path__ + \"static/media/logo.86b72fab.svg\";","// ** Initial State\nconst initialState = {\n userData: {}\n}\n\nconst authReducer = (state = initialState, action) => {\n switch (action.type) {\n case 'LOGIN':\n return {\n ...state,\n userData: action.data,\n [action.config.storageTokenKeyName]: action[action.config.storageTokenKeyName],\n [action.config.storageRefreshTokenKeyName]: action[action.config.storageRefreshTokenKeyName]\n }\n case 'LOGOUT':\n const obj = { ...action }\n delete obj.type\n return { ...state, userData: {}, ...obj }\n default:\n return state\n }\n}\n\nexport default authReducer\n","// ** Initial State\nconst initialState = {\n suggestions: [],\n bookmarks: [],\n query: ''\n}\n\nconst navbarReducer = (state = initialState, action) => {\n switch (action.type) {\n case 'HANDLE_SEARCH_QUERY':\n return { ...state, query: action.val }\n case 'GET_BOOKMARKS':\n return { ...state, suggestions: action.data, bookmarks: action.bookmarks }\n case 'UPDATE_BOOKMARKED':\n let objectToUpdate\n\n // ** find & update object\n state.suggestions.find(item => {\n if (item.id === action.id) {\n item.isBookmarked = !item.isBookmarked\n objectToUpdate = item\n }\n })\n\n // ** Get index to add or remove bookmark from array\n const bookmarkIndex = state.bookmarks.findIndex(x => x.id === action.id)\n\n if (bookmarkIndex === -1) {\n state.bookmarks.push(objectToUpdate)\n } else {\n state.bookmarks.splice(bookmarkIndex, 1)\n }\n\n return { ...state }\n default:\n return state\n }\n}\n\nexport default navbarReducer\n","// ** ThemeConfig Import\nimport themeConfig from '@configs/themeConfig'\n\n// ** Returns Initial Menu Collapsed State\nconst initialMenuCollapsed = () => {\n const item = window.localStorage.getItem('menuCollapsed')\n //** Parse stored json or if none return initialValue\n return item ? JSON.parse(item) : themeConfig.layout.menu.isCollapsed\n}\n\n// ** Initial State\nconst initialState = {\n isRTL: themeConfig.layout.isRTL,\n menuCollapsed: initialMenuCollapsed(),\n menuHidden: themeConfig.layout.menu.isHidden,\n contentWidth: themeConfig.layout.contentWidth\n}\n\nconst layoutReducer = (state = initialState, action) => {\n switch (action.type) {\n case 'HANDLE_CONTENT_WIDTH':\n return { ...state, contentWidth: action.value }\n case 'HANDLE_MENU_COLLAPSED':\n window.localStorage.setItem('menuCollapsed', action.value)\n return { ...state, menuCollapsed: action.value }\n case 'HANDLE_MENU_HIDDEN':\n return { ...state, menuHidden: action.value }\n case 'HANDLE_RTL':\n return { ...state, isRTL: action.value }\n default:\n return state\n }\n}\n\nexport default layoutReducer\n","export const initialState = {\n isWetuUser: false,\n isUserAuthenticated: false,\n operatorId: -1,\n redirectUrl: ''\n}\n\nconst accountReducer = (state = initialState, action) => {\n switch (action.type) {\n case 'SET_REDIRECT_URL': {\n return { ...state, redirectUrl: action.data }\n }\n default:\n return state\n }\n}\n\n\nexport default accountReducer","\n// ** Initial State\nconst initialState = {\n show: false,\n title: '',\n message: '',\n showSuccessTick: false,\n showError: false,\n autoHide: true,\n autoHideDelay: 6000,\n customCss: {},\n customHeader: null,\n timeoutId: 0 //The machine translations toast needs to be globally accessible. If you re-request MT on another page it should cancel the first checkExistsInCache request.\n}\n\nconst toasterReducer = (state = initialState, action) => {\n switch (action.type) {\n case 'SET_TOAST':\n return {\n ...state, \n show: action.data.show, \n title: action.data.title, \n message: action.data.message, \n autoHide: typeof action.data.autoHide !== 'undefined' ? action.data.autoHide : true,\n showSuccessTick: typeof action.data.showSuccessTick !== 'undefined' ? action.data.showSuccessTick : false,\n autoHideDelay: typeof action.data.autoHideDelay !== 'undefined' ? action.data.autoHideDelay : state.autoHideDelay,\n showError: typeof action.data.showError !== 'undefined' ? action.data.showError : false,\n customCss: typeof action.data.customCss !== 'undefined' ? action.data.customCss : state.customCss,\n customHeader: typeof action.data.customHeader !== 'undefined' ? action.data.customHeader : null\n }\n case 'CLOSE_TOAST':\n return {\n ...state,\n show: false\n }\n case 'SET_TIMEOUT_ID':\n return {\n ...state,\n timeoutId: action.data\n }\n case 'CLEAR_TIMEOUT':\n clearTimeout(state.timeoutId)\n return {\n ...state,\n timeoutId: 0\n }\n default:\n return state\n }\n }\n \n export default toasterReducer\n ","import { reduxActions, supplierManagementActions } from '../../../consts/redux'\nconst initialState = {\n isSupplierListLoading: false,\n isSupplierUsageLoading: false,\n isSupplierUsageLoaded: false,\n isSuppliersLoaded: false,\n error: {},\n supplierList: [],\n pagination: { start: null, end: null, total: null }\n}\n\nconst supplierManagementReducerMap = {\n [`${supplierManagementActions.GET_SUPPLIER_GRID}${reduxActions.LOADING}`]: (state) => {\n return { ...state, error: {}, isSupplierListLoading: true }\n },\n [`${supplierManagementActions.GET_SUPPLIER_GRID}${reduxActions.SUCCESS}`]: (state, action) => {\n return { ...state, isSupplierListLoading: false, error: {}, supplierList: action.data.supplierList, pagination: action.data.pagination, isSupplierUsageLoaded: false, isSuppliersLoaded: true }\n },\n [`${supplierManagementActions.GET_SUPPLIER_GRID}${reduxActions.FAILURE}`]: (state, action) => {\n return { ...state, isSupplierListLoading: false, error: action.data.error, isSuppliersLoaded: true }\n },\n [`${supplierManagementActions.GET_SUPPLIER_ITINERARY_USAGE}${reduxActions.LOADING}`]: (state) => {\n return { ...state, isSupplierUsageLoading: true }\n },\n [`${supplierManagementActions.GET_SUPPLIER_ITINERARY_USAGE}${reduxActions.SUCCESS}`]: (state, action) => {\n const supplierClone = _.cloneDeep(state.supplierList)\n supplierClone.forEach(x => {\n if (action.data.usageItinerary[x.id]) {\n x.itinerary = action.data.usageItinerary[x.id]\n } else {\n x.itinerary = {\n overAllUsage: 0,\n myUsage: 0,\n rebrandedUsage: 0\n }\n }\n })\n\n return { ...state, isSupplierUsageLoading: false, isSupplierUsageLoaded: true, supplierList: supplierClone }\n },\n [`${supplierManagementActions.GET_SUPPLIER_ITINERARY_USAGE}${reduxActions.FAILURE}`]: (state) => {\n return { ...state, isSupplierUsageLoading: false }\n }\n}\n\nconst supplierManagementReducer = (state = initialState, action) => {\n return supplierManagementReducerMap[action.type]\n ? supplierManagementReducerMap[action.type](state, action)\n : state\n}\n\nexport default supplierManagementReducer\n","import { noteActions, reduxActions } from '../../../consts/redux'\n\nconst initialState = {\n notes: [],\n loadingNotes: false,\n addingNotes: false,\n error: {}\n}\n\nconst notesReducerMap = {\n [`${noteActions.GET_NOTES}${reduxActions.LOADING}`]: (state) => {\n return { ...state, ...initialState, error: {}, loadingNotes: true }\n },\n [`${noteActions.GET_NOTES}${reduxActions.SUCCESS}`]: (state, action) => {\n return { ...state, loadingNotes: false, error: {}, notes: action.data.notes }\n },\n [`${noteActions.GET_NOTES}${reduxActions.FAILURE}`]: (state, action) => {\n return { ...state, loadingNotes: false, error: action.data.error, notes: [] }\n },\n [`${noteActions.ADD_NOTE}${reduxActions.LOADING}`]: (state) => {\n return { ...state, error: {}, addingNotes: true }\n },\n [`${noteActions.ADD_NOTE}${reduxActions.SUCCESS}`]: (state, action) => {\n const notesClone = _.cloneDeep(state.notes)\n notesClone.push(action.data.note)\n return { ...state, addingNotes: false, notes: notesClone }\n },\n [`${noteActions.ADD_NOTE}${reduxActions.FAILURE}`]: (state, action) => {\n return { ...state, addingNotes: false, error: action.data.error }\n },\n [noteActions.CLEAR_NOTES]: (state) => {\n return { ...state, ...initialState }\n }\n}\n\nconst notesReducer = (state = initialState, action) => {\n return notesReducerMap[action.type]\n ? notesReducerMap[action.type](state, action)\n : state\n}\n\nexport default notesReducer\n","import { uiActions } from '../../../consts/redux'\n\nconst initialState = {\n take: 50,\n page: 1,\n filters: [],\n sortColumn: '',\n sortDirection: '',\n searchName: '',\n subMenuChildren: [] \n}\n\nconst uiReducerMap = {\n [uiActions.SET_GRID_FILTERS]: (state, action) => {\n return { ...state, filters: action.data.filters }\n },\n [uiActions.SET_GRID_PAGE]: (state, action) => {\n return { ...state, page: action.data.page }\n },\n [uiActions.SET_GRID_SORT]: (state, action) => {\n return { ...state, sortColumn: action.data.column, sortDirection: action.data.direction }\n },\n [uiActions.SET_GRID_SEARCH_NAME]: (state, action) => {\n return { ...state, searchName: action.data.searchName }\n },\n [uiActions.SET_ACTIVE_SUBMENU_EDITOR_CHILDREN]: (state, action) => {\n return { ...state, subMenuChildren: action.data } \n }\n}\n\nconst uiReducer = (state = initialState, action) => {\n return uiReducerMap[action.type]\n ? uiReducerMap[action.type](state, action)\n : state\n}\n\nexport default uiReducer\n","// ** Redux Imports\nimport { combineReducers } from 'redux'\n\n// ** Reducers Imports\nimport auth from './auth'\nimport navbar from './navbar'\nimport layout from './layout'\nimport accountReducer from './account'\nimport toasterReducer from './toaster'\nimport supplierManagementReducer from './supplierGrid'\nimport notesReducer from './notes'\nimport uiReducer from './ui'\n\nconst rootReducer = combineReducers({\n auth,\n navbar,\n layout,\n accountReducer,\n toasterReducer,\n supplierManagementReducer,\n notesReducer,\n uiReducer\n})\n\nexport default rootReducer\n","// ** Redux, Thunk & Root Reducer Imports\nimport thunk from 'redux-thunk'\nimport createDebounce from 'redux-debounced'\nimport rootReducer from '../reducers/rootReducer'\nimport { createStore, applyMiddleware, compose } from 'redux'\n\n// ** init middleware\nconst middleware = [thunk, createDebounce()]\n\n// ** Dev Tools\nconst composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose\n\n// ** Create store\nconst store = createStore(rootReducer, {}, composeEnhancers(applyMiddleware(...middleware)))\n\nexport { store }\n","// ** React Imports\nimport { useEffect, useState, createContext } from 'react'\n\n// ** Create Context\nconst ThemeColors = createContext()\n\nconst ThemeContext = ({ children }) => {\n // ** State\n const [colors, setColors] = useState({})\n\n //** ComponentDidMount\n useEffect(() => {\n if (window !== 'undefined') {\n //** Get variable value\n const getHex = color => window.getComputedStyle(document.body).getPropertyValue(color).trim()\n\n //** Colors obj\n const obj = {\n primary: {\n light: getHex('--primary').concat('1a'),\n main: getHex('--primary')\n },\n secondary: {\n light: getHex('--secondary').concat('1a'),\n main: getHex('--secondary')\n },\n success: {\n light: getHex('--success').concat('1a'),\n main: getHex('--success')\n },\n danger: {\n light: getHex('--danger').concat('1a'),\n main: getHex('--danger')\n },\n warning: {\n light: getHex('--warning').concat('1a'),\n main: getHex('--warning')\n },\n info: {\n light: getHex('--info').concat('1a'),\n main: getHex('--info')\n },\n dark: {\n light: getHex('--dark').concat('1a'),\n main: getHex('--dark')\n }\n }\n\n setColors({ ...obj })\n }\n }, [])\n\n return {children}\n}\n\nexport { ThemeColors, ThemeContext }\n","// ** React Imports\nimport { useState, useEffect } from 'react'\n\n// ** Third Party Components\nimport { Button } from 'reactstrap'\nimport classnames from 'classnames'\n\n// ** Styles\nimport './ripple-button.scss'\n\nconst RippleButton = ({ className, children, onClick, ...rest }) => {\n // ** States\n const [mounted, setMounted] = useState(false)\n const [isRippling, setIsRippling] = useState(false)\n const [coords, setCoords] = useState({ x: -1, y: -1 })\n\n // ** Toggle mounted on mount & unmount\n useEffect(() => {\n setMounted(true)\n return () => setMounted(false)\n }, [])\n\n // ** Check for coords and set ripple\n useEffect(() => {\n if (mounted) {\n if (coords.x !== -1 && coords.y !== -1) {\n setIsRippling(true)\n setTimeout(() => setIsRippling(false), 500)\n } else {\n setIsRippling(false)\n }\n }\n }, [coords])\n\n // ** Reset Coords on ripple end\n useEffect(() => {\n if (mounted) {\n if (!isRippling) setCoords({ x: -1, y: -1 })\n }\n }, [isRippling])\n\n return (\n {\n const rect = e.target.getBoundingClientRect()\n setCoords({ x: e.clientX - rect.left, y: e.clientY - rect.top })\n if (onClick) {\n onClick(e)\n }\n }}\n {...rest}\n >\n {children}\n {isRippling ? (\n \n ) : null}\n \n )\n}\n\n// ** PropTypes\nRippleButton.propTypes = {\n ...Button.propTypes\n}\n\nButton.Ripple = RippleButton\n","/*eslint-disable */\n// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(/^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)\n)\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href)\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets see https://github.com/facebook/create-react-app/issues/2374\n return\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config)\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\n )\n })\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config)\n }\n })\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then(registration => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing\n if (installingWorker === null) {\n return\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\n )\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration)\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.')\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration)\n }\n }\n }\n }\n }\n })\n .catch(error => {\n console.error('Error during service worker registration:', error)\n })\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then(response => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type')\n if (response.status === 404 || (contentType !== null && contentType.indexOf('javascript') === -1)) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister().then(() => {\n window.location.reload()\n })\n })\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config)\n }\n })\n .catch(() => {\n console.log('No internet connection found. App is running in offline mode.')\n })\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready.then(registration => {\n registration.unregister()\n })\n }\n}\n","// ** React Imports\nimport { Suspense, lazy } from 'react'\nimport ReactDOM from 'react-dom'\n\n// ** Redux Imports\nimport { Provider } from 'react-redux'\nimport { store } from './redux/storeConfig/store'\n\n// ** Toast & ThemeColors Context\nimport { ToastContainer } from 'react-toastify'\nimport { ThemeContext } from './utility/context/ThemeColors'\n\n// ** Spinner (Splash Screen)\nimport Spinner from '../src/views/components/spinner/fallback-spinner'\n\n// ** Ripple Button\nimport './@core/components/ripple-button'\n\n// ** PrismJS\nimport 'prismjs'\nimport 'prismjs/themes/prism-tomorrow.css'\nimport 'prismjs/components/prism-jsx.min'\n\n// ** React Perfect Scrollbar\nimport 'react-perfect-scrollbar/dist/css/styles.css'\n\n// ** React Toastify\nimport '@styles/react/libs/toastify/toastify.scss'\n\n// ** Core styles\nimport './@core/assets/fonts/feather/iconfont.css'\nimport './@core/scss/core.scss'\nimport './assets/scss/style.scss'\n\n// ** Service Worker\nimport * as serviceWorker from './serviceWorker'\n\n// ** Lazy load app\nconst LazyApp = lazy(() => import('./App'))\n\nReactDOM.render(\n \n }>\n \n \n \n \n \n ,\n document.getElementById('root')\n)\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: https://bit.ly/CRA-PWA\nserviceWorker.unregister()\n"],"sourceRoot":""}