{"version":3,"sources":["assets/flags/gb.svg","assets/flags/hu.svg","assets/flags/de.svg","helpers.js","polyfill.js","App.js","serviceWorker.js","assets/icons/index.js","assets/icons/sygnet.js","assets/icons/logo.js","assets/icons/logo-negative.js","store.js","index.js","assets/flags/cz.svg"],"names":["apiURL","defaultApiUrl","appConfig","API_URL","newApiUrl","NOTIFICATION_API_URL","API_URL_NEW","log","text","console","getLanguageFlagFile","lang","czFlag","enFlag","huFlag","deFlag","uniqueArray","objects","uniqueBy","keepFirst","arguments","length","undefined","Array","from","reduce","map","e","key","flat","join","has","set","Map","values","sort","a","b","aValue","bValue","localeCompare","getApiURL","type","DIAPI_URL","setDevApiURL","API_URL_DEV","setProductionApiURL","getNumber","n","_n","replace","isNaN","parseFloat","isFinite","removeScript","scriptToremove","allsuspects","document","getElementsByTagName","i","getAttribute","indexOf","concat","parentNode","removeChild","appendScript","scriptToAppend","script","createElement","src","async","body","appendChild","degToRad","degrees","Math","PI","window","CustomEvent","event","params","bubbles","cancelable","detail","evt","createEvent","initCustomEvent","prototype","Event","Element","matches","msMatchesSelector","webkitMatchesSelector","closest","s","el","this","call","parentElement","nodeType","ReactGA","initialize","setTranslations","en","cz","loading","_jsx","className","children","TheLayout","React","lazy","Login","Register","Page404","Page500","App","Component","constructor","props","super","loginCallback","user","setState","userData","localStorage","setItem","jwtToken","id","Date","now","setLanguage","logoutCallback","removeItem","refreshToken","token","userId","URL","bearerToken","fetch","method","mode","cache","credentials","headers","Authorization","redirect","referrerPolicy","then","response","json","catch","error","checkToken","cookies","Cookies","get","JSON","stringify","state","refreshIntervalRef","componentDidMount","getItem","Number","componentWillUnmount","render","CacheBuster","currentVersion","version","isEnabled","process","isVerboseMode","loadingComponent","HashRouter","_jsxs","Suspense","fallback","Route","path","name","Switch","exact","translate","Boolean","location","hostname","match","icons","Object","assign","sygnet","logo","logoNegative","cilImage","cilCloudUpload","cilIndustry","cilCompass","cilMemory","cilCommand","cilTerrain","cilDataTransferUp","cilZoom","cilAlignCenter","cilAlignLeft","cilAlignRight","cilApplicationsSettings","cilArrowRight","cilArrowTop","cilAsterisk","cilBan","cilBasket","cilBell","cilTerminal","cilBold","cilBookmark","cilCalculator","cilCalendar","cilCloudDownload","cilChartPie","cilCheck","cilChevronBottom","cilChevronLeft","cilChevronRight","cilChevronTop","cilCircle","cilCheckCircle","cilCode","cilCommentSquare","cilCreditCard","cilCursor","cilCursorMove","cilDrop","cilDollar","cilEnvelopeClosed","cilEnvelopeLetter","cilEnvelopeOpen","cilEuro","cilGlobeAlt","cilGrid","cilFile","cilFullscreen","cilFullscreenExit","cilGraph","cilHome","cilInbox","cilIndentDecrease","cilIndentIncrease","cilInputPower","cilItalic","cilJustifyCenter","cilJustifyLeft","cilLaptop","cilLayers","cilLightbulb","cilList","cilListNumbered","cilListRich","cilLocationPin","cilLockLocked","cilMagnifyingGlass","cilMap","cilMoon","cilNotes","cilOptions","cilPaperclip","cilPaperPlane","cilPencil","cilPeople","cilPhone","cilPrint","cilPuzzle","cilSave","cilScrubber","cilSettings","cilShare","cilShareAll","cilShareBoxed","cilShieldAlt","cilSpeech","cilSpeedometer","cilSpreadsheet","cilStar","cilSun","cilTags","cilTask","cilTrash","cilUnderline","cilUser","cilUserFemale","cilUserFollow","cilUserUnfollow","cilX","cilXCircle","cilWarning","cilAddressBook","cilBarcode","cilQrCode","cilArrowThickRight","cilInstitution","cifUs","cifBr","cifIn","cifFr","cifEs","cifPl","cifCz","cibSkype","cibFacebook","cibTwitter","cibLinkedin","cibFlickr","cibTumblr","cibXing","cibGithub","cibStackoverflow","cibYoutube","cibDribbble","cibInstagram","cibPinterest","cibVk","cibYahoo","cibBehance","cibReddit","cibVimeo","cibCcMastercard","cibCcVisa","cibStripe","cibPaypal","cibGooglePay","cibCcAmex","initialState","sidebarShow","store","createStore","rest","warn","ReactDOM","Provider","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":"6KAAe,QAA0B,8B,w2hDCA1B,QAA0B,8B,mCCA1B,QAA0B,8B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ACAC,iBACAC,cACAC,iBACAC,mBACAC,kBACAC,eACAC,oBACAC,oBACAC,aACAC,YACAC,aACAC,aACAC,cACAC,kBACAC,aACAC,mBACAC,mBACAC,qBACAC,UACAC,gBACAC,gBACAC,oBACAC,gBACAC,eACAC,wBACAC,qBAEC,CACDC,WACAC,WACAC,WACAC,WACAC,WACAC,WACAC,YACC,CACDC,aACAC,gBACAC,eACAC,gBACAC,cACAC,cACAC,YACAC,cACAC,qBACAC,eACAC,gBACAC,iBACAC,iBACAC,UACAC,aACAC,eACAC,cACAC,aACAC,oBACAC,cACAC,cACAC,cACAC,iBACAC,cACA/B,sB,wBIjRF,MAAMgC,GAAe,CACnBC,YAAa,cAYTC,GAAQC,cATM,WAA8C,IAA7C9K,EAAK3I,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAGsT,IAAc,KAAEhS,KAASoS,GAAM1T,UAAAC,OAAA,EAAAD,UAAA,QAAAE,EAC1D,MACO,QADCoB,EAEG,IAAIqH,KAAU+K,GAEd/K,CAEb,IAGe6K,U,MCDArU,MACbE,QAAQF,IAAM,WAAc,EAC5BE,QAAQsU,KAAO,WAAc,EAC7BtU,QAAQ+I,MAAQ,WAAc,GAGhC1C,IAAM6E,MAAQA,GAEdqJ,IAAS3K,OACP3D,cAACuO,KAAQ,CAACL,MAAOA,GAAMhO,SACrBF,cAACU,EAAG,MAEN3D,SAASyR,eAAe,SN8FpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAMjM,MAAKkM,IACjCA,EAAaC,YAAY,G,kCO3HhB,QAA0B,8B","file":"static/js/main.9c990b9f.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/gb.aa013322.svg\";","export default __webpack_public_path__ + \"static/media/hu.0ea3b75a.svg\";","export default __webpack_public_path__ + \"static/media/de.7093e7d7.svg\";","import appConfig from './config.json'\r\nimport czFlag from \"./assets/flags/cz.svg\";\r\nimport enFlag from \"./assets/flags/gb.svg\";\r\nimport huFlag from \"./assets/flags/hu.svg\";\r\nimport deFlag from \"./assets/flags/de.svg\";\r\n\r\n\r\nlet apiURL = '';\r\nlet notificationApiURL = '';\r\nlet defaultApiUrl = appConfig.API_URL;\r\nlet defaultNotificationApiUrl = appConfig.NOTIFICATION_API_URL;\r\nlet newApiUrl = appConfig.API_URL_NEW;\r\n\r\nlet enableLog = appConfig.log;\r\n\r\nexport function log(text) {\r\n if (appConfig.log) {\r\n console.log(text);\r\n }\r\n}\r\n\r\n\r\nexport function getLanguageFlagFile(lang) {\r\n switch (lang) {\r\n case \"cz\":\r\n return czFlag;\r\n case \"en\":\r\n return enFlag\r\n case \"hu\":\r\n return huFlag\r\n case \"de\":\r\n return deFlag\r\n default:\r\n return czFlag\r\n }\r\n}\r\n\r\n// TODO - replace with Set\r\nexport const uniqueArray = (objects, uniqueBy, keepFirst = true) => {\r\n return Array.from(\r\n objects.reduce((map, e) => {\r\n const key = uniqueBy.map(key => [e[key], typeof e[key]]).flat().join('-');\r\n if (keepFirst && map.has(key)) return map;\r\n return map.set(key, e);\r\n }, new Map()).values()\r\n ).sort((a, b) => {\r\n const aValue = a[uniqueBy];\r\n const bValue = b[uniqueBy];\r\n if (typeof aValue === 'string' && typeof bValue === 'string') {\r\n return aValue.localeCompare(bValue); // Sort alphabetically\r\n } else {\r\n return aValue - bValue; // Sort numerically\r\n }\r\n });\r\n}\r\n\r\n\r\n\r\nexport function getApiURL(type) {\r\n if (apiURL === '') {\r\n if (type === 'new') {\r\n return newApiUrl;\r\n }\r\n else if (type === \"di\") {\r\n return appConfig.DIAPI_URL;\r\n }\r\n return defaultApiUrl;\r\n } else {\r\n return apiURL;\r\n }\r\n}\r\n\r\n\r\nexport function getNotificationApiURL() {\r\n if (notificationApiURL === '') {\r\n return defaultNotificationApiUrl;\r\n } else {\r\n return notificationApiURL;\r\n }\r\n}\r\n\r\n\r\nexport function setDevApiURL() {\r\n apiURL = appConfig.API_URL_DEV;\r\n}\r\n\r\nexport function setProductionApiURL() {\r\n apiURL = appConfig.API_URL;\r\n}\r\n\r\nexport function setLog(log) {\r\n enableLog = log;\r\n}\r\n\r\nexport function compareObjs(obj1, obj2) {\r\n return JSON.stringify(obj1) === JSON.stringify(obj2);\r\n}\r\n\r\n\r\n// TODO - method for getting number does not return converted number\r\nexport function getNumber(n) {\r\n if (typeof n === \"number\") { return n }\r\n if (n !== null && n !== 0) {\r\n n = n?.replace(',', '.');\r\n if (!isNaN(parseFloat(n)) && isFinite(n)) {\r\n return n; // returns the initial string value\r\n } else {\r\n return 1;\r\n }\r\n } return 0;\r\n}\r\n\r\nexport const removeScript = (scriptToremove) => {\r\n let allsuspects = document.getElementsByTagName(\"script\");\r\n for (let i = allsuspects.length; i >= 0; i--) {\r\n if (allsuspects[i] && allsuspects[i].getAttribute(\"src\") !== null\r\n && allsuspects[i].getAttribute(\"src\").indexOf(`${scriptToremove}`) !== -1) {\r\n allsuspects[i].parentNode.removeChild(allsuspects[i])\r\n }\r\n }\r\n}\r\n\r\n\r\nexport const appendScript = (scriptToAppend) => {\r\n const script = document.createElement(\"script\");\r\n script.src = scriptToAppend;\r\n script.async = true;\r\n document.body.appendChild(script);\r\n}\r\n\r\nexport function degToRad(degrees) {\r\n var pi = Math.PI;\r\n return degrees * (pi / 180);\r\n}\r\n\r\n\r\nfunction generateKey(groupBySeconds, timestamp, offset) {\r\n var keyDiff = (timestamp % groupBySeconds);\r\n return [(timestamp - keyDiff) + offset, keyDiff];\r\n}\r\n\r\n\r\nfunction generateSlots(dateStart, dateEnd, groupBy) {\r\n var startKeyGen = generateKey(groupBy, dateStart, 0);\r\n var startHeadKey = startKeyGen[0];\r\n var keyStep = startKeyGen[1];\r\n\r\n var endKeyGen = generateKey(groupBy, dateEnd, 0);\r\n var endTailKey = endKeyGen[0];\r\n\r\n var endKey = startHeadKey;\r\n\r\n var shift = dateStart - startHeadKey;\r\n\r\n var grid = {};\r\n while (endKey <= endTailKey) {\r\n grid[endKey + shift] = [];\r\n endKey += groupBy;\r\n }\r\n\r\n return { \"grid\": grid, \"offset\": shift };\r\n\r\n}\r\n\r\n\r\nexport function groupBy(data, startDate, endDate, tsKey, groupDurationSec, pushTo) {\r\n pushTo = typeof pushTo !== 'undefined' ? pushTo : 'bottom';\r\n var slotsAndOffsets = generateSlots(startDate, endDate, groupDurationSec);\r\n var slots = slotsAndOffsets.grid;\r\n var offset = slotsAndOffsets.offset;\r\n\r\n\r\n data.forEach(item => {\r\n var key = generateKey(groupDurationSec, data[item][tsKey] - offset, offset)[0];\r\n if (slots[key] != undefined) {\r\n if (pushTo == 'top') {\r\n slots[key].unshift(data[item]);\r\n }\r\n else {\r\n slots[key].push(data[item]);\r\n }\r\n }\r\n });\r\n\r\n return (slots);\r\n}\r\n\r\n","/*\r\n* required polyfills\r\n*/\r\n\r\n/** IE9, IE10 and IE11 requires all of the following polyfills. **/\r\n// import \"core-js\";\r\n// import 'core-js/features/symbol'\r\n// import 'core-js/features/object'\r\n// import 'core-js/features/function'\r\n// import 'core-js/features/parse-int'\r\n// import 'core-js/features/parse-float'\r\n// import 'core-js/features/number'\r\n// import 'core-js/features/math'\r\n// import 'core-js/features/string'\r\n// import 'core-js/features/date'\r\n// import 'core-js/features/array'\r\n// import 'core-js/features/regexp'\r\n// import 'core-js/features/map'\r\n// import 'core-js/features/weak-map'\r\n// import 'core-js/features/set'\r\n// import 'core-js/features/set/map';\r\n\r\n/** IE10 and IE11 requires the following for the Reflect API. */\r\n// import 'core-js/features/reflect';\r\n\r\n/** Evergreen browsers require these. **/\r\n// Used for reflect-metadata in JIT. If you use AOT (and only Angular decorators), you can remove.\r\n// import 'core-js/features/reflect'\r\n\r\n// CustomEvent() constructor functionality in IE9, IE10, IE11\r\n(function () {\r\n\r\n if ( typeof window.CustomEvent === \"function\" ) return false\r\n\r\n function CustomEvent ( event, params ) {\r\n params = params || { bubbles: false, cancelable: false, detail: undefined }\r\n var evt = document.createEvent( 'CustomEvent' )\r\n evt.initCustomEvent( event, params.bubbles, params.cancelable, params.detail )\r\n return evt\r\n }\r\n\r\n CustomEvent.prototype = window.Event.prototype\r\n\r\n window.CustomEvent = CustomEvent\r\n})()\r\n\r\nif (!Element.prototype.matches) {\r\n Element.prototype.matches =\r\n Element.prototype.msMatchesSelector ||\r\n Element.prototype.webkitMatchesSelector;\r\n}\r\n\r\nif (!Element.prototype.closest) {\r\n Element.prototype.closest = function(s) {\r\n var el = this;\r\n\r\n do {\r\n if (Element.prototype.matches.call(el, s)) return el;\r\n el = el.parentElement || el.parentNode;\r\n } while (el !== null && el.nodeType === 1);\r\n return null;\r\n };\r\n}\r\n","import React, { Component } from 'react';\r\nimport { HashRouter, Route, Switch } from 'react-router-dom';\r\nimport './scss/style.scss';\r\nimport {\r\n setTranslations,\r\n setLanguage,\r\n translate,\r\n} from 'react-switch-lang';\r\n\r\n\r\nimport en from './assets/language/en.json';\r\nimport cz from './assets/language/cz.json';\r\n\r\nimport { log, getApiURL } from \"./helpers\";\r\n\r\nimport CacheBuster from 'react-cache-buster';\r\nimport { version } from '../package.json';\r\nimport Cookies from 'universal-cookie';\r\nimport Moment from 'react-moment'\r\nimport ReactGA from \"react-ga4\";\r\nimport axios from 'axios';\r\n\r\nReactGA.initialize(\"G-3RFX78YPS1\");\r\n\r\nsetTranslations({ en, cz });\r\n//setDefaultLanguage('cz');\r\n\r\nconst isProduction = process.env.NODE_ENV === 'production';\r\n\r\nconst loading = (\r\n
\r\n
\r\n
\r\n)\r\n\r\n// Containers\r\nconst TheLayout = React.lazy(() => import('./containers/TheLayout'));\r\n\r\n// Pages\r\nconst Login = React.lazy(() => import('./views/pages/login/Login'));\r\nconst Register = React.lazy(() => import('./views/pages/register/Register'));\r\nconst Page404 = React.lazy(() => import('./views/pages/page404/Page404'));\r\nconst Page500 = React.lazy(() => import('./views/pages/page500/Page500'));\r\n\r\nclass App extends Component {\r\n\r\n constructor(props) {\r\n super(props);\r\n\r\n this.state = {\r\n userData: \"\",\r\n refreshIntervalRef: null,\r\n };\r\n }\r\n\r\n loginCallback = (user, lang) => {\r\n log(\"Z callbacku\");\r\n log(user);\r\n this.setState({ userData: user })\r\n localStorage.setItem(\"token\", user.jwtToken);\r\n localStorage.setItem(\"userId\", user.id);\r\n localStorage.setItem(\"lastUpdate\", Date.now());\r\n localStorage.setItem(\"language\", lang)\r\n setLanguage(lang);\r\n }\r\n\r\n logoutCallback = () => {\r\n this.setState({ userData: \"\" });\r\n localStorage.removeItem(\"token\");\r\n localStorage.removeItem(\"lastUpdate\");\r\n localStorage.removeItem(\"userId\");\r\n localStorage.removeItem(\"language\");\r\n }\r\n\r\n // TODO -- refreshToken = async (token, userId) => {\r\n // let URL = getApiURL(\"new\") + \"/Accounts/refresh-token\";\r\n // // let method = \"POST\";\r\n // // let bearerToken = \"Bearer \" + token;\r\n\r\n // const headers = {\r\n // accept: \"text/plain\",\r\n // Authorization: `Bearer ${token}`,\r\n // \"Content-Type\": \"application/json\",\r\n // \"Access-Control-Allow-Origin\": \"*\",\r\n // \"Access-Control-Allow-Methods\": \"GET,PUT,POST,DELETE,PATCH,OPTIONS\",\r\n // //\"Cookie\": document.cookie\r\n // };\r\n\r\n // const response = await axios.post(URL, null, {\r\n // withCredentials: true, // TODO - causes CORS problems, but adds necessary Cookie atribut to request\r\n // headers:\r\n // headers,\r\n // });\r\n\r\n // //console.log(response);\r\n // if (response?.data) {\r\n // if (response?.data?.jwtToken) {\r\n // this.setState({ userData: response.data });\r\n // }\r\n // }\r\n // else {\r\n // log(\"cannot refresh token - response.status: \", response.status);\r\n // }\r\n // return;\r\n\r\n // // await fetch(URL, {\r\n // // method: method,\r\n // // mode: \"cors\",\r\n // // cache: \"no-cache\",\r\n // // credentials: \"include\",\r\n // // headers: {\r\n // // \"Content-Type\": \"application/json\",\r\n // // \"Accepts\": \"text/plain\",\r\n // // 'Cookie': 'refreshToken=02A545B504D085DE49905949E5AE0675F3228ACE6E3CADFC26207704F5983EDED6BA13E21B0B0A1F'\r\n // // },\r\n // // redirect: \"follow\",\r\n // // })\r\n // // .then((response) => response.json())\r\n // // .then((json) => {\r\n // // log(\"get updated user data\");\r\n // // log(json);\r\n // // json.jwtToken = token;\r\n // // if (json?.jwtToken) {\r\n // // this.setState({ userData: json });\r\n // // }\r\n // // })\r\n // // .catch((error) => {\r\n // // log(error);\r\n // // log(\"cannot refresh\");\r\n // // });\r\n // }\r\n\r\n refreshToken = async (token, userId) => {\r\n // const cookies = new Cookies();\r\n let URL = getApiURL() + \"/Accounts/\" + userId;\r\n let method = \"GET\";\r\n let bearerToken = \"Bearer \" + token;\r\n //log(\"Cookie:\");\r\n // log(cookies.get('refreshToken'));\r\n await fetch(URL, {\r\n method: method,\r\n mode: \"cors\",\r\n cache: \"no-cache\",\r\n credentials: \"same-origin\",\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n Authorization: bearerToken,\r\n // Cookie: \"refreshToken=\" + cookies.get('refreshToken')\r\n },\r\n redirect: \"follow\",\r\n referrerPolicy: \"no-referrer\",\r\n })\r\n .then((response) => response.json())\r\n .then((json) => {\r\n log(\"get updated user data\");\r\n json.jwtToken = token;\r\n this.setState({ userData: json });\r\n log(json);\r\n })\r\n .catch((error) => {\r\n log(error);\r\n log(\"cannot refresh\");\r\n })\r\n };\r\n\r\n checkToken = async (token) => {\r\n const cookies = new Cookies();\r\n let URL = getApiURL() + \"/Company/Get\";\r\n let method = \"POST\";\r\n let bearerToken = \"Bearer \" + token;\r\n let dataTypeBody = {};\r\n // log(\"Cookie:\");\r\n log(cookies.get('refreshToken'));\r\n await fetch(URL, {\r\n method: method,\r\n mode: \"cors\",\r\n cache: \"no-cache\",\r\n credentials: \"same-origin\",\r\n headers: {\r\n \"Content-Type\": \"application/json\",\r\n Authorization: bearerToken,\r\n },\r\n redirect: \"follow\",\r\n referrerPolicy: \"no-referrer\",\r\n body: JSON.stringify(dataTypeBody),\r\n })\r\n .then((response) => response.json())\r\n .then((json) => {\r\n log(\"get updated user data\");\r\n //this.setState({ userData: json });\r\n log(json);\r\n\r\n\r\n })\r\n .catch((error) => {\r\n log(error);\r\n log(\"cannot refresh\");\r\n\r\n });\r\n\r\n }\r\n\r\n componentDidMount() {\r\n log(\"web loaded - yeah\");\r\n if (localStorage.getItem(\"token\") && localStorage.getItem(\"lastUpdate\")) {\r\n\r\n if ((Number(localStorage.getItem(\"lastUpdate\")) + 1000 * 60 * 60) > Date.now()) {\r\n this.refreshToken(localStorage.getItem(\"token\"), localStorage.getItem(\"userId\"));\r\n // this.checkToken(localStorage.getItem(\"token\"));\r\n }\r\n\r\n if (localStorage.getItem(\"language\")) {\r\n setLanguage(localStorage.getItem(\"language\"));\r\n }\r\n }\r\n\r\n // if (localStorage.getItem(\"token\") && localStorage.getItem(\"lastUpdate\")) {\r\n // if ((Number(localStorage.getItem(\"lastUpdate\")) + 1000 * 60 * 60) > Date.now()) {\r\n\r\n // this.refreshToken(localStorage.getItem(\"token\"), localStorage.getItem(\"userId\"));\r\n // // this.checkToken(localStorage.getItem(\"token\"));\r\n // }\r\n // }\r\n\r\n // Set the initial refresh interval\r\n // const refresh = setInterval(() => {\r\n // this.refreshToken(localStorage.getItem(\"token\"), localStorage.getItem(\"userId\"))\r\n // }, 20 * 60 * 1000); // 20 minutes\r\n\r\n // this.setState({ refreshIntervalRef: refresh });\r\n // }\r\n }\r\n\r\n componentWillUnmount() {\r\n //clearInterval(this.state.refreshIntervalRef);\r\n }\r\n\r\n render() {\r\n\r\n return (\r\n \r\n \r\n \r\n\r\n {this.state.userData === \"\" && (\r\n } />\r\n )}\r\n\r\n {this.state.userData !== \"\" && (\r\n \r\n } />\r\n } />\r\n } />\r\n } />\r\n } />\r\n \r\n )}\r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\n// Login.propTypes = {\r\n// t: PropTypes.func.isRequired,\r\n// };\r\n\r\nexport default translate(App);\r\n","// In production, we register a service worker to serve assets from local cache.\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 the \"N+1\" visit to a page, since previously\r\n// cached resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model, read https://goo.gl/KwvDNy.\r\n// This link also includes instructions on opting out of this behavior.\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);\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://goo.gl/SC7cgQ'\r\n );\r\n });\r\n } else {\r\n // Is not local host. 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 installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the old content will have been purged and\r\n // the fresh content will have been added to the cache.\r\n // It's the perfect time to display a \"New content is\r\n // available; please refresh.\" message in your web app.\r\n console.log('New content is available; please refresh.');\r\n\r\n // Execute callback\r\n if (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.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 if (\r\n response.status === 404 ||\r\n response.headers.get('content-type').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 { sygnet } from './sygnet'\r\nimport { logo } from './logo'\r\nimport { logoNegative } from './logo-negative'\r\n\r\nimport {\r\n cibSkype,\r\n cibFacebook,\r\n cibTwitter,\r\n cibLinkedin,\r\n cibFlickr,\r\n cibTumblr,\r\n cibXing,\r\n cibGithub,\r\n cibStackoverflow,\r\n cibYoutube,\r\n cibDribbble,\r\n cibInstagram,\r\n cibPinterest,\r\n cibVk,\r\n cibYahoo,\r\n cibBehance,\r\n cibReddit,\r\n cibVimeo,\r\n cibCcMastercard,\r\n cibCcVisa,\r\n cibStripe,\r\n cibPaypal,\r\n cibGooglePay,\r\n cibCcAmex,\r\n cilBell,\r\n cilTerminal,\r\n cilCloudUpload,\r\n} from '@coreui/icons'\r\nimport {\r\n cifUs,\r\n cifBr,\r\n cifIn,\r\n cifFr,\r\n cifEs,\r\n cifPl,\r\n cifCz\r\n} from '@coreui/icons'\r\nimport {\r\n cilAlignCenter,\r\n cilAlignLeft,\r\n cilAlignRight,\r\n cilApplicationsSettings,\r\n cilArrowRight,\r\n cilArrowTop,\r\n cilAsterisk,\r\n cilBan,\r\n cilBasket,\r\n\r\n cilBold,\r\n cilBookmark,\r\n cilCalculator,\r\n cilCalendar,\r\n cilCloudDownload,\r\n cilChartPie,\r\n cilCheck,\r\n cilChevronBottom,\r\n cilChevronLeft,\r\n cilChevronRight,\r\n cilChevronTop,\r\n cilCircle,\r\n cilCheckCircle,\r\n cilCode,\r\n cilCommentSquare,\r\n cilCreditCard,\r\n cilCursor,\r\n cilCursorMove,\r\n cilDrop,\r\n cilDollar,\r\n cilEnvelopeClosed,\r\n cilEnvelopeLetter,\r\n cilEnvelopeOpen,\r\n cilEuro,\r\n cilGlobeAlt,\r\n cilGrid,\r\n cilFile,\r\n cilFullscreen,\r\n cilFullscreenExit,\r\n cilGraph,\r\n cilHome,\r\n cilInbox,\r\n cilIndentDecrease,\r\n cilIndentIncrease,\r\n cilInputPower,\r\n cilItalic,\r\n cilJustifyCenter,\r\n cilJustifyLeft,\r\n cilLaptop,\r\n cilLayers,\r\n cilLightbulb,\r\n cilList,\r\n cilListNumbered,\r\n cilListRich,\r\n cilLocationPin,\r\n cilLockLocked,\r\n cilMagnifyingGlass,\r\n cilMap,\r\n cilMoon,\r\n cilNotes,\r\n cilOptions,\r\n cilPaperclip,\r\n cilPaperPlane,\r\n cilPencil,\r\n cilPeople,\r\n cilPhone,\r\n cilPrint,\r\n cilPuzzle,\r\n cilSave,\r\n cilScrubber,\r\n cilSettings,\r\n cilShare,\r\n cilShareAll,\r\n cilShareBoxed,\r\n cilShieldAlt,\r\n cilSpeech,\r\n cilSpeedometer,\r\n cilSpreadsheet,\r\n cilStar,\r\n cilSun,\r\n cilTags,\r\n cilTask,\r\n cilTrash,\r\n cilUnderline,\r\n cilUser,\r\n cilUserFemale,\r\n cilUserFollow,\r\n cilUserUnfollow,\r\n cilX,\r\n cilXCircle,\r\n cilWarning, cilIndustry, cilCompass, cilMemory, cilTerrain, cilAddressBook, cilDataTransferUp, cilZoom\r\n , cilCommand, cilBarcode, cilQrCode, cilArrowThickRight, cilInstitution, cilImage\r\n} from '@coreui/icons'\r\n\r\nexport const icons = Object.assign({}, {\r\n sygnet,\r\n logo,\r\n logoNegative\r\n}, {\r\n cilImage, cilCloudUpload,\r\n cilIndustry, cilCompass, cilMemory, cilCommand, cilTerrain, cilDataTransferUp, cilZoom,\r\n cilAlignCenter,\r\n cilAlignLeft,\r\n cilAlignRight,\r\n cilApplicationsSettings,\r\n cilArrowRight,\r\n cilArrowTop,\r\n cilAsterisk,\r\n cilBan,\r\n cilBasket,\r\n cilBell,\r\n cilTerminal,\r\n cilBold,\r\n cilBookmark,\r\n cilCalculator,\r\n cilCalendar,\r\n cilCloudDownload,\r\n cilChartPie,\r\n cilCheck,\r\n cilChevronBottom,\r\n cilChevronLeft,\r\n cilChevronRight,\r\n cilChevronTop,\r\n cilCircle,\r\n cilCheckCircle,\r\n cilCode,\r\n cilCommentSquare,\r\n cilCreditCard,\r\n cilCursor,\r\n cilCursorMove,\r\n cilDrop,\r\n cilDollar,\r\n cilEnvelopeClosed,\r\n cilEnvelopeLetter,\r\n cilEnvelopeOpen,\r\n cilEuro,\r\n cilGlobeAlt,\r\n cilGrid,\r\n cilFile,\r\n cilFullscreen,\r\n cilFullscreenExit,\r\n cilGraph,\r\n cilHome,\r\n cilInbox,\r\n cilIndentDecrease,\r\n cilIndentIncrease,\r\n cilInputPower,\r\n cilItalic,\r\n cilJustifyCenter,\r\n cilJustifyLeft,\r\n cilLaptop,\r\n cilLayers,\r\n cilLightbulb,\r\n cilList,\r\n cilListNumbered,\r\n cilListRich,\r\n cilLocationPin,\r\n cilLockLocked,\r\n cilMagnifyingGlass,\r\n cilMap,\r\n cilMoon,\r\n cilNotes,\r\n cilOptions,\r\n cilPaperclip,\r\n cilPaperPlane,\r\n cilPencil,\r\n cilPeople,\r\n cilPhone,\r\n cilPrint,\r\n cilPuzzle,\r\n cilSave,\r\n cilScrubber,\r\n cilSettings,\r\n cilShare,\r\n cilShareAll,\r\n cilShareBoxed,\r\n cilShieldAlt,\r\n cilSpeech,\r\n cilSpeedometer,\r\n cilSpreadsheet,\r\n cilStar,\r\n cilSun,\r\n cilTags,\r\n cilTask,\r\n cilTrash,\r\n cilUnderline,\r\n cilUser,\r\n cilUserFemale,\r\n cilUserFollow,\r\n cilUserUnfollow,\r\n cilX,\r\n cilXCircle,\r\n cilWarning,\r\n cilAddressBook,\r\n cilBarcode,\r\n cilQrCode,\r\n cilArrowThickRight,\r\n cilInstitution\r\n\r\n}, {\r\n cifUs,\r\n cifBr,\r\n cifIn,\r\n cifFr,\r\n cifEs,\r\n cifPl,\r\n cifCz\r\n}, {\r\n cibSkype,\r\n cibFacebook,\r\n cibTwitter,\r\n cibLinkedin,\r\n cibFlickr,\r\n cibTumblr,\r\n cibXing,\r\n cibGithub,\r\n cibStackoverflow,\r\n cibYoutube,\r\n cibDribbble,\r\n cibInstagram,\r\n cibPinterest,\r\n cibVk,\r\n cibYahoo,\r\n cibBehance,\r\n cibReddit,\r\n cibVimeo,\r\n cibCcMastercard,\r\n cibCcVisa,\r\n cibStripe,\r\n cibPaypal,\r\n cibGooglePay,\r\n cibCcAmex,\r\n cilInstitution\r\n\r\n})\r\n","export const sygnet = ['160 160', `\r\n coreui logo\r\n \r\n \r\n \r\n \r\n \r\n \r\n`]\r\n","export const logo = ['608 134', `\r\n coreui react pro\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n`]\r\n","export const logoNegative = ['608 134', `\r\n coreui react pro logo\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n`]\r\n","import { createStore } from 'redux'\r\n\r\nconst initialState = {\r\n sidebarShow: 'responsive'\r\n}\r\n\r\nconst changeState = (state = initialState, { type, ...rest }) => {\r\n switch (type) {\r\n case 'set':\r\n return {...state, ...rest }\r\n default:\r\n return state\r\n }\r\n}\r\n\r\nconst store = createStore(changeState)\r\nexport default store","import 'react-app-polyfill/ie11'; // For IE 11 support\r\nimport 'react-app-polyfill/stable';\r\nimport 'core-js';\r\nimport './polyfill'\r\nimport React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport App from './App';\r\nimport * as serviceWorker from './serviceWorker';\r\n\r\nimport { icons } from './assets/icons'\r\n\r\nimport { Provider } from 'react-redux'\r\nimport store from './store'\r\n\r\nimport appConfig from \"./config.json\"\r\nif (!appConfig.log) {\r\n console.log = function () { };\r\n console.warn = function () { };\r\n console.error = function () { };\r\n}\r\n\r\nReact.icons = icons\r\n\r\nReactDOM.render(\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: http://bit.ly/CRA-PWA\r\nserviceWorker.unregister();\r\n","export default __webpack_public_path__ + \"static/media/cz.3a69a8ef.svg\";"],"sourceRoot":""}