{"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