{"version":3,"sources":["utility/context/ThemeColors.js","assets/images/logo/logo.png","assets/images/icons/logo.png","redux/reducers/auth/index.js","redux/reducers/navbar/index.js","redux/reducers/chat/index.js","redux/reducers/layout/index.js","redux/reducers/rootReducer.js","redux/storeConfig/store.js","configs/database/schema.js","configs/database/model.js","configs/database/index.js","@core/components/spinner/Fallback-spinner.js","@core/components/ripple-button/index.js","serviceWorker.js","index.js","configs/themeConfig.js"],"names":["ThemeColors","createContext","ThemeContext","children","useState","colors","setColors","useEffect","window","getHex","color","getComputedStyle","document","body","getPropertyValue","trim","obj","primary","light","concat","main","secondary","success","danger","warning","info","dark","Provider","value","initialState","userData","company","label","branchs","connection","isConnected","authReducer","state","action","type","data","suggestions","bookmarks","query","navbarReducer","val","objectToUpdate","find","item","id","isBookmarked","bookmarkIndex","findIndex","x","push","splice","chats","contacts","userProfile","selectedUser","chatReducer","chatsContacts","CID","cid","newMsg","chat","isRTL","themeConfig","layout","menuCollapsed","localStorage","getItem","JSON","parse","menu","isCollapsed","initialMenuCollapsed","menuHidden","isHidden","contentWidth","skin","language","bagian","jenispegawai","layoutReducer","setItem","rootReducer","combineReducers","auth","navbar","middleware","thunk","createDebounce","composeEnhancers","__REDUX_DEVTOOLS_EXTENSION_COMPOSE__","compose","persistConfig","key","storage","persistedReducer","persistReducer","store","createStore","applyMiddleware","persistor","persistStore","mySchema","appSchema","version","tables","tableSchema","name","columns","isIndexed","isOptional","DataLookup","field","Model","table","SysParameter","Translation","Company","Branch","users","message","conversation","logger","silence","adapter","LokiJSAdapter","dbName","app","appId","schema","useWebWorker","useIncrementalIndexedDB","database","Database","modelClasses","actionsEnabled","SpinnerComponent","className","src","logo","alt","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","loading","fallback","newestOnTop","getElementById","navigator","serviceWorker","ready","then","registration","unregister","appName","appDesc","appLogoImage","require","default","copyright","chatUrl","routerTransition","backgroundColor","footer","customizer","scrollTop"],"mappings":"yPAIMA,EAAcC,0BAEdC,EAAe,SAAC,GAAkB,IAAhBC,EAAe,EAAfA,SAEtB,EAA4BC,mBAAS,IAArC,mBAAOC,EAAP,KAAeC,EAAf,KA4CA,OAzCAC,qBAAU,WACR,GAAe,cAAXC,OAAwB,CAE1B,IAAMC,EAAS,SAAAC,GAAK,OAAIF,OAAOG,iBAAiBC,SAASC,MAAMC,iBAAiBJ,GAAOK,QAGjFC,EAAM,CACVC,QAAS,CACPC,MAAOT,EAAO,aAAaU,OAAO,MAClCC,KAAMX,EAAO,cAEfY,UAAW,CACTH,MAAOT,EAAO,eAAeU,OAAO,MACpCC,KAAMX,EAAO,gBAEfa,QAAS,CACPJ,MAAOT,EAAO,aAAaU,OAAO,MAClCC,KAAMX,EAAO,cAEfc,OAAQ,CACNL,MAAOT,EAAO,YAAYU,OAAO,MACjCC,KAAMX,EAAO,aAEfe,QAAS,CACPN,MAAOT,EAAO,aAAaU,OAAO,MAClCC,KAAMX,EAAO,cAEfgB,KAAM,CACJP,MAAOT,EAAO,UAAUU,OAAO,MAC/BC,KAAMX,EAAO,WAEfiB,KAAM,CACJR,MAAOT,EAAO,UAAUU,OAAO,MAC/BC,KAAMX,EAAO,YAIjBH,EAAU,eAAKU,OAEhB,IAEI,cAAChB,EAAY2B,SAAb,CAAsBC,MAAO,CAAEvB,UAA/B,SAA0CF,M,iCCpDnD,OAAe,cAA0B,kC,iCCAzC,OAAe,cAA0B,kC,mlBCCnC0B,GAAe,CACnBC,SAAU,GACVC,QAAS,CAACC,MAAM,6BAChBC,QAAS,GACTC,WAAY,KACZC,aAAa,GAyBAC,GAtBK,WAAmC,IAAlCC,EAAiC,uDAAzBR,GAAcS,EAAW,uCACpD,OAAQA,EAAOC,MACb,IAAK,QACH,OAAO,6BACFF,GADL,IAEEP,SAAUQ,EAAOE,OAErB,IAAK,SACH,OAAO,6BAAKH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C,KAAD,CAAkBxC,SAAUA,GAA5B,SACE,eAACmC,GAAD,MAEF,eAAC,KAAD,CAAgBM,aAAW,aAKvCrK,SAASsK,eAAe,SDgEpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMC,MAAK,SAAAC,GACjCA,EAAaC,iB,gCE1HnB,IAAMrH,EAAc,CAClBgE,IAAK,CACHC,MAAO,QACPqD,QAAS,YACTC,QAAS,2BACTC,aAAcC,EAAQ,KAAqCC,QAC3DC,UAAW,8CACXC,QAAS,uCAEX3H,OAAQ,CACNF,OAAO,EACPc,KAAM,YACNgH,iBAAkB,OAClBzJ,KAAM,WACNwC,aAAc,OACdL,KAAM,CACJI,UAAU,EACVH,aAAa,GAEfc,OAAQ,CAENlD,KAAM,WACN0J,gBAAiB,SAEnBC,OAAQ,CACN3J,KAAM,UAER4J,YAAY,EACZC,WAAW,IAIAjI,Q","file":"static/js/main.43f7dbf8.chunk.js","sourcesContent":["// ** 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","export default __webpack_public_path__ + \"static/media/logo.054906dd.png\";","export default __webpack_public_path__ + \"static/media/logo.8dab5aef.png\";","// ** Initial State\nconst initialState = {\n userData: {}, \n company: {label:'PT. Sejahtera Buana Trada'},\n branchs: [],\n connection: null,\n isConnected: false\n}\n\nconst authReducer = (state = initialState, action) => {\n switch (action.type) {\n case 'LOGIN':\n return {\n ...state,\n userData: action.data\n }\n case 'LOGOUT':\n return { ...state, userData: {}, branchs:[], company:'', connection: null, isConnected:false}\n case 'CHANGE_COMPANY': \n return { ...state, company: action.data }\n case 'SET_BRANCHS': \n return { ...state, branchs: action.data }\n case 'SET_CHATCHANNEL': \n return { ...state, connection: action.data }\n case 'SET_CONNECTED': \n return { ...state, isConnected: action.data }\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","const initialState = {\n chats: [],\n contacts: [],\n userProfile: {},\n selectedUser: {}\n}\n\nconst chatReducer = (state = initialState, action) => {\n switch (action.type) {\n case 'GET_USER_PROFILE':\n return { ...state, userProfile: action.userProfile }\n case 'GET_CHAT_CONTACTS':\n return { ...state, chats: action.data.chatsContacts, contacts: action.data.contacts }\n case 'SELECT_CHAT':\n return { ...state, selectedUser: {...action.data, CID: action.cid} }\n case 'SEND_MSG':\n // ** Add new msg to chat\n const newMsg = action.data\n return { ...state, selectedUser: { ...state.selectedUser, chat: newMsg } }\n default:\n return state\n }\n}\n\nexport default chatReducer\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 skin: 'light',\n language: 'id',\n bagian: null,\n jenispegawai:null\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 case 'CHANGE_SKIN':\n return { ...state, skin: action.value }\n case 'CHANGE_LANGUAGE': \n return { ...state, language: action.value }\n case 'CHANGE_BAGIAN': \n return { ...state, bagian: action.value }\n case 'CHANGE_JENISPEGAWAI': \n return { ...state, jenispegawai: action.value }\n default:\n return state\n }\n}\n\nexport default layoutReducer\n","// ** Redux Imports\nimport { combineReducers } from 'redux'\n\n// ** Reducers Imports\nimport auth from './auth'\nimport navbar from './navbar'\nimport chat from './chat'\nimport layout from './layout' \n\nconst rootReducer = combineReducers({\n auth, \n navbar,\n layout,\n chat\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'\nimport { persistStore, persistReducer } from 'redux-persist'\nimport storage from 'redux-persist/lib/storage' // defaults to localStorage for web\n// ** init middleware\nconst middleware = [thunk, createDebounce()]\n\n// ** Dev Tools\nconst composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose \n\nconst persistConfig = {\n key: 'root',\n storage,\n}\n\nconst persistedReducer = persistReducer(persistConfig, rootReducer)\n// ** Create store\nconst store = createStore(persistedReducer, {}, composeEnhancers(applyMiddleware(...middleware)))\n\nconst persistor = persistStore(store)\n \nexport { store, persistor }\n","import { appSchema, tableSchema } from '@nozbe/watermelondb'\n// Data types: >> Columns have one of three types: string, number, or boolean. \nexport const mySchema = appSchema({\n version: 14,\n tables: [\n tableSchema({\n name: 'sysparameters',\n columns: [\n { name: 'name', type: 'string', isIndexed: true },\n { name: 'value', type: 'string' }\n ]\n }),\n tableSchema({\n name: 'datalookups',\n columns: [\n { name: 'groupid', type: 'string' },\n { name: 'code', type: 'string' },\n { name: 'caption', type: 'string' } , \n { name: 'parentid', type: 'string', isOptional: true }, \n { name: 'seq', type: 'number', isOptional: true } ,\n { name: 'isactive', type: 'boolean' } \n ],\n }),\n tableSchema({\n name: 'translation',\n columns: [\n { name: 'name', type: 'string' },\n { name: 'ind', type: 'string', isOptional: true },\n { name: 'eng', type: 'string', isOptional: true }, \n { name: 'jpn', type: 'string', isOptional: true }, \n { name: 'lang1', type: 'string', isOptional: true },\n { name: 'lang2', type: 'string', isOptional: true } \n ],\n }),\n tableSchema({\n name: 'company',\n columns: [\n { name: 'companyid', type: 'string' },\n { name: 'companycode', type: 'string' },\n { name: 'companyname', type: 'string' }\n ],\n }),\n tableSchema({\n name: 'branch',\n columns: [\n { name: 'companyid', type: 'string' },\n { name: 'branchcode', type: 'string' },\n { name: 'companyname', type: 'string'}\n ],\n }),\n tableSchema({\n name: 'message' ,\n columns: [\n { name:'MID' , type:'number' }, \n { name:'CID' , type:'number' }, \n { name:'Type' , type:'number' }, \n { name:'Message' , type:'string', isOptional: true }, \n { name:'Attachment' , type:'string', isOptional: true }, \n { name:'Filename' , type:'string', isOptional: true }, \n { name:'ImageUrl' , type:'string', isOptional: true }, \n { name:'CreatedBy' , type:'number' }, \n { name:'CreatedDate' , type:'string' } \n ],\n }),\n tableSchema({\n name: 'users' ,\n columns: [\n { name:'UID' , type:'number'}, \n { name:'UserName' , type:'string' }, \n { name:'DisplayName' , type:'string', isOptional: true }, \n { name:'Avatar' , type:'string', isOptional: true }, \n { name:'UserType' , type:'string', isOptional: true }, \n { name:'Overview' , type:'string', isOptional: true }, \n { name:'Company' , type:'string', isOptional: true }, \n { name:'Position' , type:'string', isOptional: true }, \n { name:'Connection' , type:'string', isOptional: true }, \n { name:'Status' , type:'number' }, \n { name:'LastUpdate' , type:'string' }, \n ],\n }),\n tableSchema({\n name: 'conversation' ,\n columns: [\n { name:'CID' , type:'number'}, \n { name:'Title' , type:'string', isOptional: true }, \n { name:'Description' , type:'string', isOptional: true }, \n { name:'Logo' , type:'string', isOptional: true }, \n { name:'Type' , type:'number' }, \n { name:'Member' , type:'number' }, \n { name:'MsgCount' , type:'number' }, \n { name:'User1' , type:'number', isOptional: true }, \n { name:'User2' , type:'number', isOptional: true }, \n { name:'CreatedBy' , type:'number', isOptional: true }, \n { name:'CreatedDate' , type:'string', isOptional: true }, \n { name:'LastUpdate' , type:'string', isOptional: true }, \n { name:'LastMessage' , type:'string', isOptional: true }, \n ],\n }) \n ],\n})\n","import { Model, Q } from '@nozbe/watermelondb'\nimport { field, children, lazy, action } from '@nozbe/watermelondb/decorators'\n \nexport class DataLookup extends Model {\n static table = 'datalookups' \n\n @field('groupid')\n GroupID\n\n @field('code')\n Code \n\n @field('caption')\n Caption \n\n @field('parentid')\n ParentID \n\n @field('seq')\n Seq \n\n @field('isactive')\n IsActive \n \n}\n\n\nexport class SysParameter extends Model {\n static table = 'sysparameters' \n\n @field('name')\n Name\n\n @field('value')\n Value\n \n} \n\n\nexport class Translation extends Model {\n static table = 'translation' \n\n @field('name')\n name\n\n @field('ind')\n ind\n \n @field('eng')\n eng\n\n @field('jpn')\n jpn\n\n @field('lang1')\n lang1\n\n @field('lang2')\n lang2\n\n}\n\nexport class Company extends Model {\n static table = 'company' \n\n @field('companyid')\n CID\n\n @field('companycode')\n Code\n \n @field('companyname')\n Name \n\n}\n\nexport class Branch extends Model {\n static table = 'branch' \n\n @field('companyid')\n CID\n\n @field('branchcode')\n Code\n \n @field('companyname')\n Name \n\n}\n\nexport class users extends Model {\n\tstatic table = 'users' \n\t\n\t@field('UID')\n UID\n\n @field('UserName')\n UserName\n\n @field('DisplayName')\n DisplayName\n\n @field('Avatar')\n Avatar\n\n @field('UserType')\n UserType\n\n @field('Overview')\n Overview\n\n @field('Company')\n Company\n\n @field('Position')\n Position \n\n @field('Status')\n Status\n\n @field('LastUpdate')\n LastUpdate\n\n}\n\nexport class message extends Model {\n\tstatic table = 'message' \n\t\n\t@field('MID')\n MID\n\n @field('CID')\n CID\n\n @field('Type')\n Type\n\n @field('Message')\n Message\n\n @field('Attachment')\n Attachment\n\n @field('Filename')\n Filename\n\n @field('ImageUrl')\n ImageUrl\n\n @field('CreatedBy')\n CreatedBy\n\n @field('CreatedDate')\n CreatedDate\n\n}\n\nexport class conversation extends Model {\n\t static table = 'conversation' \n\t\n @field('CID')\n CID\n\n @field('Title')\n Title\n\n @field('Description')\n Description\n\n @field('Logo')\n Logo\n\n @field('Type')\n Type\n\n @field('Member')\n Member\n\n @field('MsgCount')\n MsgCount\n\n @field('User1')\n User1\n\n @field('User2')\n User2\n\n @field('CreatedBy')\n CreatedBy\n\n @field('CreatedDate')\n CreatedDate\n\n @field('LastUpdate')\n LastUpdate\n \n @field('LastMessage')\n LastMessage\n\n}\n","import themeConfig from '@configs/themeConfig' \n\n// ** Database Local \nimport { Database } from '@nozbe/watermelondb'\nimport LokiJSAdapter from '@nozbe/watermelondb/adapters/lokijs' \nimport logger from '@nozbe/watermelondb/utils/common/logger'\n\nimport { mySchema } from './schema' \nimport { SysParameter, DataLookup, Translation, Company, Branch, message, users, conversation} from './model' \n\nlogger.silence();\n\nconst adapter = new LokiJSAdapter({\n dbName: themeConfig.app.appId,\n schema: mySchema,\n useWebWorker: false,\n useIncrementalIndexedDB: true\n})\n\nconst database = new Database({\n adapter,\n modelClasses: [SysParameter, DataLookup, Translation, Company, Branch, message, users, conversation ],\n actionsEnabled: true,\n})\n \nexport default database","// ** Logo\nimport logo from '@src/assets/images/logo/logo.png'\n\nconst SpinnerComponent = () => {\n return (\n
\n logo\n
\n
\n
\n
\n
\n
\n )\n}\n\nexport default SpinnerComponent\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, persistor } from './redux/storeConfig/store'\nimport { PersistGate } from 'redux-persist/integration/react'\n\n// ** Intl, CASL & ThemeColors Context\nimport DatabaseProvider from '@nozbe/watermelondb/DatabaseProvider'\nimport database from './configs/database' \nimport { ToastContainer } from 'react-toastify' \nimport { ThemeContext } from './utility/context/ThemeColors'\n\n// ** Spinner (Splash Screen)\nimport Spinner from './@core/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\nimport './@core/scss/react/libs/tables/react-dataTable-component.scss'\n\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 \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","// You can customize the template with the help of this file\n\n//Template config options\nconst themeConfig = {\n app: {\n appId: 'IRCAM',\n appName: 'IRCAM WEB',\n appDesc: 'Integrity RSUDCAM System',\n appLogoImage: require('@src/assets/images/icons/logo.png').default,\n copyright: 'RSUD dr. Chasbullah Abdulmadjid Kota Bekasi',\n chatUrl: 'https://api.ircamsystem.com/chathub'\n },\n layout: {\n isRTL: false,\n skin: 'semi-dark', // light, dark, bordered, semi-dark\n routerTransition: 'none', // 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: 'floating', // static , sticky , floating, hidden\n backgroundColor: 'white' // BS color options [primary, success, etc]\n },\n footer: {\n type: 'static' // static, sticky, hidden\n },\n customizer: false,\n scrollTop: true // Enable scroll to top button\n }\n}\n\nexport default themeConfig\n"],"sourceRoot":""}