{"version":3,"sources":["App.js","serviceWorker.js","store.js","index.js"],"names":["loading","className","DefaultLayout","React","lazy","Login","Page401","Page404","Page500","App","Component","render","Suspense","fallback","exact","path","name","props","Boolean","window","location","hostname","match","initialState","sidebarShow","store","createStore","state","type","rest","ReactDOM","document","getElementById","navigator","serviceWorker","ready","then","registration","unregister"],"mappings":"uoCAGA,MAAMA,EACJ,qBAAKC,UAAU,mBAAf,SACE,qBAAKA,UAAU,kCAIbC,EAAgBC,IAAMC,MAAK,IAAM,sEAEjCC,EAAQF,IAAMC,MAAK,IAAM,4EACzBE,EAAUH,IAAMC,MAAK,IAAM,uDAC3BG,EAAUJ,IAAMC,MAAK,IAAM,8DAC3BI,EAAUL,IAAMC,MAAK,IAAM,8DAEjC,MAAMK,UAAYC,YAChBC,SACE,OACE,cAAC,IAAD,UACE,cAAC,IAAMC,SAAP,CAAgBC,SAAUb,EAA1B,SACE,eAAC,IAAD,WACE,cAAC,IAAD,CAAOc,OAAK,EAACC,KAAK,SAASC,KAAK,aAAaL,OAASM,GAAU,cAACZ,EAAD,IAAWY,MAC3E,cAAC,IAAD,CAAOH,OAAK,EAACC,KAAK,OAAOC,KAAK,WAAWL,OAASM,GAAU,cAACX,EAAD,IAAaW,MACzE,cAAC,IAAD,CAAOH,OAAK,EAACC,KAAK,OAAOC,KAAK,WAAWL,OAASM,GAAU,cAACV,EAAD,IAAaU,MACzE,cAAC,IAAD,CAAOH,OAAK,EAACC,KAAK,OAAOC,KAAK,WAAWL,OAASM,GAAU,cAACT,EAAD,IAAaS,MACzE,cAAC,IAAD,CAAOF,KAAK,IAAIC,KAAK,OAAOL,OAASM,GAAU,cAACf,EAAD,IAAmBe,cAQ/DR,QCxBKS,QACW,cAA7BC,OAAOC,SAASC,UAEe,UAA7BF,OAAOC,SAASC,UAEhBF,OAAOC,SAASC,SAASC,MAAM,2D,sBCbnC,MAAMC,EAAe,CACnBC,aAAa,GAYTC,EAAQC,aATM,WAA8C,IAA7CC,EAA4C,uDAApCJ,GAAc,KAAEK,KAASC,GAAW,uCAC/D,MACO,QADCD,EAEG,IAAKD,KAAUE,GAEfF,KAKEF,Q,SCNfK,IAASnB,OACP,cAAC,gBAAD,UACE,cAAC,IAAD,CAAUc,MAAOA,EAAjB,SACE,cAAC,EAAD,QAGJM,SAASC,eAAe,SFqGpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMC,MAAMC,IAClCA,EAAaC,kB","file":"static/js/main.4d52b54a.chunk.js","sourcesContent":["import React, { Component } from 'react'\nimport { HashRouter, Route, Switch } from 'react-router-dom'\nimport './scss/style.scss'\nconst loading = (\n
\n
\n
\n)\n// Containers\nconst DefaultLayout = React.lazy(() => import('./layout/DefaultLayout'))\n// Pages\nconst Login = React.lazy(() => import('./views/Auth/Login'))\nconst Page401 = React.lazy(() => import('./views/pages/page401/page401'))\nconst Page404 = React.lazy(() => import('./views/pages/page404/Page404'))\nconst Page500 = React.lazy(() => import('./views/pages/page500/Page500'))\n\nclass App extends Component {\n render() {\n return (\n \n \n \n } />\n } />\n } />\n } />\n } />\n \n \n \n )\n }\n}\n\nexport default App\n","// In production, we register a service worker to serve assets from local cache.\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 the \"N+1\" visit to a page, since previously\n// cached resources are updated in the background.\n\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\n// This link also includes instructions on opting out of this behavior.\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)\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://goo.gl/SC7cgQ',\n )\n })\n } else {\n // Is not local host. 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 installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the old content will have been purged and\n // the fresh content will have been added to the cache.\n // It's the perfect time to display a \"New content is\n // available; please refresh.\" message in your web app.\n console.log('New content is available; please refresh.')\n\n // Execute callback\n if (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.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 if (\n response.status === 404 ||\n response.headers.get('content-type').indexOf('javascript') === -1\n ) {\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","import { createStore } from 'redux'\n\nconst initialState = {\n sidebarShow: true,\n}\n\nconst changeState = (state = initialState, { type, ...rest }) => {\n switch (type) {\n case 'set':\n return { ...state, ...rest }\n default:\n return state\n }\n}\n\nconst store = createStore(changeState)\nexport default store\n","import 'react-app-polyfill/stable'\nimport 'core-js'\nimport React from 'react'\nimport ReactDOM from 'react-dom'\nimport App from './App'\nimport * as serviceWorker from './serviceWorker'\nimport { Provider } from 'react-redux'\nimport store from './store'\nimport { ErrorBoundary } from 'react-error-boundary'\n\nReactDOM.render(\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: http://bit.ly/CRA-PWA\nserviceWorker.unregister()\n"],"sourceRoot":""}