{"version":3,"sources":["appStore/_idb.js","API/apiConfig.js","appStore/APP.js","appStore/AdvancedCommon.js","appStore/Years.js","appStore/advTerritorialUnits.js","appStore/advDimensions.js","appStore/advIndicators.js","appStore/advCharts.js","appStore/advRepozytorium.js","appStore/advTable.js","appStore/Areas.js","appStore/Search.js","appStore/advApiData.js","appStore/advMap.js","appStore/advReport.js","appStore/advMapDialogs.js","appStore/BasicCommon.js","appStore/Indicators.js","appStore/Report.js","appStore/Charts.js","appStore/_middleware.js","appStore/_store.js","appStore/BasicAccordion.js","theme.js","App.js","common/i18n.js","index.js"],"names":["dbPromise","openDB","upgrade","db","createObjectStore","async","get","key","set","val","put","clear","BASE_URL","LOCAL_TEST","MIN_JWT_EXPIRE_DIFF","INPUT_REGEXP","APPSlice","createSlice","name","initialState","appError","welcome","sessionStorage","getItem","toString","storeVersion","packageJSON","version","sharePageData","reducers","setAppError","state","action","payload","setWelcome","setItem","setStoreVersion","setSharePageData","actions","getStoreVersion","APP","getSharePageData","AdvancedCommonSlice","rightDrawerOpened","localStorage","rightDrawerWidth","rightDrawerExpanded","leftDrawerOpened","leftDrawerWidth","leftPanelChecks","shakeCard","selectionLimits","JT","WSK","YEAR","TOTAL","currentSection","Number","showLoginDialog","showAccountDialog","authToken","JSON","parse","authRememberMe","authMessage","renderAsSVG","isExporting","isSyncingRepo","syncRepo","expanded","setRightDrawerOpened","setRightDrawerWidth","setRightDrawerExpanded","setLeftDrawerOpened","setLeftDrawerWidth","setLeftPanelChecks","setShakeCard","setCurrentSection","setShowLoginDialog","setShowAccountDialog","setAuthRememberMe","stringify","setAuthToken","setAuthMessage","setRenderAsSVG","setIsExporting","setSyncRepo","setIsSyncingRepo","setExpanded","selectRightDrawerOpened","AdvancedCommon","selectRightDrawerWidth","selectRightDrawerExpanded","selectLeftDrawerOpened","selectLeftDrawerWidth","selectShakeCard","selectSelectionLimits","selectCurrentSection","selectShowLoginDialog","selectShowAccountDialog","getAuthRememberMe","selectAuthToken","selectAuthMessage","getRenderAsSVG","getIsExporting","getSyncRepo","getExpanded","YearsSlice","years","defaultYear","id_daty","rok","selectedYears","resetYear","setYears","setDefaultYear","setSelectedYears","setResetYear","fetchYears","dispatch","getState","apiURL","concat","axios","then","response","data","sort","a","b","dY","find","x","filter","e","type","catch","error","message","finally","selectYears","selectDefaultYear","selectSelectedYears","AdvancedJTSlice","territorialUnits","KTS","TERYT","selectedTerritorialUnitsItems","territorialUnitsType","scrolled","scrollTop","simpleTree","largePanel","open","tabIndex","setTerritorialUnits","setSelectedTerritorialUnitsItem","setTerritorialUnitsType","setScrolled","setScrollTop","setSimpleTree","setLargePanel","selectSelectedTerritorialUnitsItems","AdvancedJT","selectTerritorialUnitsType","selectTerritorialUnits","selectExpanded","selectScrolled","selectSimpleTree","selectLargePanel","getScrollTop","AdvDimensionsSlice","selectedTablePrzekroje","defaultTablePrzekroje","selectedChartsPrzekroje","defaultChartsPrzekroje","selectedLineChartsPrzekroje","defaultLineChartsPrzekroje","selectedMapsPrzekroje","defaultMapsPrzekroje","setSelectedTablePrzekroje","setDefaultTablePrzekroje","setSelectedChartsPrzekroje","setDefaultChartsPrzekroje","setSelectedLineChartsPrzekroje","setDefaultLineChartsPrzekroje","setSelectedMapsPrzekroje","setDefaultMapsPrzekroje","selectTablePrzekroje","AdvDimensions","selectDefaultTablePrzekroje","selectChartsPrzekroje","selectDefaultChartsPrzekroje","selectLineChartsPrzekroje","selectDefaultLineChartsPrzekroje","selectMapsPrzekroje","selectDefaultMapsPrzekroje","AdvIndicatorsSlice","advIndicators","selectedAdvIndicators","additional","dimentions","variables","infoOU","infoUP","infoWSK","selectedAdvPrzekroje","defaultAdvPrzekroje","setAdvIndicators","setSelectedAdvIndicators","setAdditional","setInfoOU","setInfoUP","setInfoWSK","setSelectedAdvPrzekroje","setDefaultAdvPrzekroje","selectSelectedAdvIndicators","AdvIndicators","selectAdvIndicators","selectAdditional","AdvancedChartsSlice","colorOfSeries","colorOfHighlight","colorLine","colorBar","legend4bars","legend4lines","labels","bar","line","tableView","barChartName","lineChartName","selectedWSK","selectedJT","selectedYear","undefined","selectedLinesWSK","selectedLinesJT","selectedLinesYear","barDatasets","yearsRange","statAndOper","enabled","filters","filterType","user","value","moreOrLess","amount","minOrMax","percentage","operations","average","selected","mediana","defaultStatAndOper","barSettings","colors","serie","isDefault","highlight","highlightedBars","shortNamesJT","showLabels","showLegend","barDefaultSettings","lineSettings","lineDefaltSettings","barChartSort","dataURLs","png","jpg","setColorOfSeries","setColorOfHighlight","setChart","setColorOfLine","setLegend4Bars","setLegend4Lines","setLabels","setColorOfBar","setTableView","setBarChartName","setLineChartName","setSelectedWSK","setSelectedJT","setSelectedYear","setSelectedLinesWSK","setSelectedLinesJT","setSelectedLinesYear","setBarDatasets","setYearsRange","setChartsStatAndOper","setChartsBarSettings","setChartsBarDefaultSettings","setChartsLineSettings","setChartsLineDefaultSettings","setBarChartSort","setDataURLs","AdvancedCharts","selectBarChartName","selectLineChartName","selectSelectedWSK","selectSelectedJT","selectSelectedYear","selectSelectedLinesWSK","selectSelectedLinesJT","selectBarDatasets","selectYearsRange","selectChartsStatAndOper","selectChartsDefaultStatAndOper","selectBarSetting","selectBarDefaultSetting","selectLineSetting","selectLineDefaultSetting","selectBarChartSort","selectDataURLs","AdvRepozytoriumSlice","Tables","Charts","Maps","Reports","Groups","isLoadingRepo","validDate","setTables","setCharts","setMaps","setReports","setGroups","setIsLoadingRepo","fetchRepoFromIndexDB","selectTables","AdvRepozytorium","selectCharts","selectMaps","selectReports","selectGroups","getValidDate","selectIsLoadingRepo","AdvancedTableSlice","settings","layout","selectListItems","id","content","field","width","shortWidth","longWidth","rowsTitlesItems","hidden","columnsItems","hideEmptyCols","hideEmptyRows","showTERYT","showKTS","showHierarchyJT","showHierarchyWSK","defaultSettings","dynamic","dataForJT","loadingDataForJT","fullTableData","currentTableData","currentRows","fullTableDataRE","loadingFullTableData","showPivot","counters","TOTAL_LIMIT","limited","COLS_LIMIT","showLimted","minMax","min","max","setAdvancedTableSettings","setAdvancedTableStatAndOper","setDataForJT","setLoadingDataForJT","setFullTableData","setCurrentTableData","mergeFullTableData","setLoadingFullTableData","setShowPivot","setCurrentRows","setCounters","setShowLimited","setMinMax","selectAdvancedTableSettings","AdvancedTable","selectAdvancedTableDefaultSettings","selectAdvancedTableStatAndOper","selectAdvancedTableDefaultStatAndOper","selectLoadingFullTableData","getCounters","getShowLimited","getMinMax","AreasSlice","areas","currentArea","services","selectedService","pointers","selectedPointer","fromShare","setAreas","setCurrentArea","setServices","setSelectedService","setPointers","setSelectedPointer","setFromShare","fetchAreas","_getState","_getState$areas","_currentArea","_response$data","length","isFin","id_ou","nazwa_ou","czy_domyslny","selectAreas","selectCurrentArea","selectServices","selectSelectedService","selectPointers","selectSelectedPointer","getFromShare","SearchSlice","selectedSearchItem","setSelectedSearchItem","selectSelectedSearchItem","search","AdvancedApiDataSlice","TableData","loadingTableData","ChartsData","currentChartsData","loadingChartsData","LineChartsData","currentLineChartsData","loadingLineChartsData","MapsData","currentMapsData","loadingMapsData","datasForReport","setTableData","setLoadingTableData","setChartsData","setCurrentChartsData","setLoadingChartsData","setLineChartsData","setCurrentLineChartsData","setLoadingLineChartsData","setMapsData","setCurrentMapsData","setLoadingMapsData","setReportData","selectCurrentTableData","AdvancedApiData","selectLoadingTableData","selectChartsData","selectCurrentChartsData","selectLoadingChartsData","selectLineChartsData","selectLoadingLineChartsData","selectMapsData","selectLoadingMapsData","AdvMapSlice","generalOptions","mapTitle","selectedJt","kartogramOptions","display","wskObject","kartodiagramOptions","mapDimensions","zoom","center","setGeneralOptions","setKartogramOptions","setKartodiagramOptions","setMapDimensions","getGeneralOptions","AdvMap","getKartogramOptions","getKartodiagramOptions","getMapDimensions","selectSelectedMapYear","selectSelectedKartogramWskObj","selectSelectedKartodiagramWskObj","AdvReportSlice","options","showPreviewHTML","isHiddenPreloaded","isLoadingElements","setReportOptions","setShowPreviewHTML","setIsHiddenPreloaded","setIsLoadingElements","fetchReportFromIndexDB","isSaved","landscape","size","reportType","reportTitle","items","wskIdsForMeta","wskMetaNames","selectReportOptions","AdvReport","selectShowPreviewHTML","selectIsHiddenPreloaded","selectIsLoadingElements","AdvMapDialogsSlice","generalSettings","mouseMode","parentsBorders","presentMapFor","mouseColor","pointingColor","selectingColor","labelsColor","boundariesColor","mapForColor","enableLegend","enableScale","enableTitle","useShortNamesJT","intervalsForSelectedAreasOnly","selectedJtPresentMapFor","selectedData","highlightedData","defaultGeneralSettings","kartogramSettings","draggable","palettes","paletteBlue","paletteGreen","paletteCustom","currentPalette","customPalette","intervals","intervalsMap","classification","reverseScale","openColorPicker","noDataColor","apiMinMax","defaultKartogramSettings","kartodiagramSettings","shape","shapeColor","shapeSize","defaultKartodiagramSettings","setGeneralSettings","setKartogramSettings","setKartodiagramSettings","getGeneralSettings","AdvMapDialogs","getDefaultGeneralSettings","getKartogramSettings","getDefaultKartogramSettings","getKartodiagramSettings","getDefaultKartodiagramSettings","BasicCommonSlice","shareMessage","setShareMessage","getShareMessage","BasicCommon","IndicatorsSlice","indicators","selectedIndicator","setIndicators","setSelectedIndicator","ReportSlice","reportData","exporting","setExporting","report","legend","legendLine","defaultWSK","defaultJT","abbreviatedNamesOfJT","barData","lineData","showLabelData","fromYear","toYear","wskSelected","selectedJTS","slicedDataLine","secondWSK","secondJT","secondLegend","multipleBarData","saveSettings","buttonSort90","buttonSort09","buttonSortAB","buttonSortBA","ChartsReducer","arguments","processJWT","store","next","result","decoded","jwt_decode","willExpire","moment","exp","isNow","difference","diff","renewToken","_ref","newToken","post","token","headers","Authorization","res","err","console","log","configureStore","reducer","AreasReducer","IndicatorsRedicer","SearchReducer","YearsReducer","ReportReducer","BasicAccordion","BasicAccordionReducer","BasicCommonReducer","AdvancedApiDataReducer","AdvancedJTReducer","AdvIndicatorsReducer","AdvDimensionsReducer","AdvancedCommonReducer","AdvancedTableReducer","charts","AdvancedChartsReducer","AdvMapReducer","AdvMapDialogsReducer","APPReducer","AdvRepozytoriumRedicer","AdvReportReducer","middleware","getDefaultMiddleware","serializableCheck","immutableCheck","BasicAccordionSlice","expandedAccordion","limitDate4LineChart","setExpandedAccordion","setLimitDate4LineChart","selectedExpandedAccordion","getLimitDate4LineChart","defaultTheme","createMuiTheme","palette","primary","main","secondary","typography","htmlFontSize","fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","h1","fontWeight","lineHeight","letterSpacing","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","textTransform","caption","overline","components","MuiIconButton","variants","props","variant","color","style","background","breakpoints","outline","outlineOffset","outlineColor","outlineStyle","outlineWidth","theme","overrides","MuiCssBaseline","html","down","WebkitFontSmoothing","minHeight","padding","margin","body","backgroundColor","overflow","MuiDivider","root","MuiButton","borderRadius","contained","containedPrimary","colorPrimary","light","dark","boxShadow","spacing","MuiCheckbox","MuiRadio","MuiSwitch","switchBase","track","opacity","MuiTooltip","popper","position","tooltip","pxToRem","border","MuiTab","boxRadius","boxedWrapper","onOpen","document","addEventListener","handleKeyDownForTooltip","onClose","removeEventListener","disableFocusRipple","MuiFab","MuiDialog","disableEscapeKeyDown","nativeEvent","_document","_el","querySelector","parentNode","removeAttribute","Routes","React","lazy","PageShareDataProducer","App","enableLinkTracking","useMatomo","useSelector","storeMajor","split","storeMiddle","storageVersion","xat","storageMajor","storageMiddle","window","location","reload","_jsxs","Suspense","fallback","_jsx","children","i18n","use","LanguageDetector","Backend","initReactI18next","init","fallbackLng","debug","whitelist","interpolation","escapeValue","detection","order","lookupQuerystring","lookupLocalStorage","backend","loadPath","matomoInstance","createInstance","urlBase","siteId","_process","process","_process$env","REACT_APP_MATOMO_IDSITE","isNaN","_process2","_process2$env","_process3","_process3$env","disabled","heartBeat","active","seconds","linkTracking","configurations","disableCookies","setSecureCookie","setRequestMethod","assert","count","dir","dirxml","info","table","trace","warn","ReactDOM","render","Fragment","Provider","ThemeProvider","MatomoProvider","getElementById"],"mappings":"gGAAA,kHAEA,MAAMA,EAAYC,YAAO,OA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QqM,OAAS,OACjBrM,QAAQsM,MAAQ,OAChBtM,QAAQqK,MAAQ,OAChBrK,QAAQuM,IAAM,OACdvM,QAAQwM,OAAS,OACjBxM,QAAQ3e,MAAQ,OAChB2e,QAAQyM,KAAO,OACfzM,QAAQC,IAAM,OACdD,QAAQ0M,MAAQ,OAChB1M,QAAQ2M,MAAQ,OAChB3M,QAAQ4M,KAAO,OAQnBC,IAASC,OACLlD,cAACpB,IAAMuE,SAAQ,CAAAlD,SACXD,cAACoD,IAAQ,CAACpO,MAAOA,IAAMiL,SACnBD,cAACqD,IAAa,CAAChI,MAAOA,IAAM4E,SACxBD,cAACsD,IAAc,CAAC/kB,MAAO4iB,EAAelB,SAClCD,cAACjB,IAAG,YAKpBnB,SAAS2F,eAAe,Q","file":"static/js/main.3f82ca2d.chunk.js","sourcesContent":["import { openDB } from \"idb\";\r\n\r\nconst dbPromise = openDB(\"smup\", 1, {\r\n upgrade(db) {\r\n db.createObjectStore(\"store\");\r\n },\r\n});\r\n\r\nexport async function get(key) {\r\n return (await dbPromise).get(\"store\", key);\r\n}\r\nexport async function set(key, val) {\r\n return (await dbPromise).put(\"store\", val, key);\r\n}\r\nexport async function del(key) {\r\n return (await dbPromise).delete(\"store\", key);\r\n}\r\nexport async function clear() {\r\n return (await dbPromise).clear(\"store\");\r\n}\r\nexport async function keys() {\r\n return (await dbPromise).getAllKeys(\"store\");\r\n}\r\n","export const BASE_URL = '/api/v1/';\r\nexport const API_KEY = 'ARPCopRWigaYQbf244Kgyov13ThIAGfn2jz76hsJnZg=';\r\nexport const LOCAL_TEST = false;\r\nexport const MIN_JWT_EXPIRE_DIFF = 604190000 /** in miliseconds */\r\nexport const INPUT_REGEXP = /[%~|\\\\/$&+><=:?!`*#^\"{}[\\]']/;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\nimport packageJSON from \"../../package.json\";\r\n\r\n/**\r\n * APP Slice\r\n *\r\n * exports reducer ***APPSlice.reducer***\r\n *\r\n * ----\r\n *\r\n * @alias APPSlice\r\n *\r\n * export default MyComponent\r\n *\r\n * @module APPSlice\r\n * @category . Redux store\r\n * */\r\n\r\nexport const APPSlice = createSlice({\r\n name: \"APP\",\r\n initialState: {\r\n appError: [],\r\n welcome: sessionStorage.getItem(\"welcome\")\r\n ? sessionStorage.getItem(\"welcome\").toString() === \"false\"\r\n ? false\r\n : true\r\n : true,\r\n storeVersion: packageJSON.version, //\"1.0.0\",\r\n sharePageData: null,// { url: \"\", title: \"\", subtitles: [], body: \"\" },\r\n },\r\n reducers: {\r\n setAppError: (state, action) => {\r\n state.appError = action.payload;\r\n },\r\n setWelcome: (state, action) => {\r\n sessionStorage.setItem(\"welcome\", action.payload);\r\n state.welcome = action.payload;\r\n },\r\n setStoreVersion: (state, action) => {\r\n sessionStorage.setItem(\"sver.\", action.payload);\r\n state.storeVersion = action.payload;\r\n },\r\n setSharePageData: (state, action) => {\r\n state.sharePageData = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const { setAppError, setWelcome, setStoreVersion, setSharePageData } = APPSlice.actions;\r\n\r\nexport const selectAppError = (state) => state.APP.appError;\r\nexport const selectWelcome = (state) => state.APP.welcome;\r\nexport const getStoreVersion = (state) => state.APP.storeVersion;\r\nexport const getSharePageData = (state) => state.APP.sharePageData;\r\n\r\nexport default APPSlice.reducer;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\n/**\r\n * AdvancedCommon Slice\r\n *\r\n * exports reducer ***AdvancedCommonSlice.reducer***\r\n *\r\n * ----\r\n *\r\n * @alias AdvancedCommonSlice\r\n *\r\n * export default MyComponent\r\n *\r\n * @module AdvancedCommonSlice\r\n * @category . Redux store\r\n * */\r\n\r\nexport const AdvancedCommonSlice = createSlice({\r\n name: \"AdvancedCommon\",\r\n initialState: {\r\n rightDrawerOpened: localStorage.getItem(\"RDO\") ? !!localStorage.getItem(\"RDO\") : false,\r\n rightDrawerWidth: 400,\r\n rightDrawerExpanded: localStorage.getItem(\"RDE\") ? localStorage.getItem(\"RDE\") : \"tables\",\r\n leftDrawerOpened: localStorage.getItem(\"LDO\")\r\n ? localStorage.getItem(\"LDO\").toString() === \"false\"\r\n ? false\r\n : true\r\n : true,\r\n leftDrawerWidth: 580,\r\n leftPanelChecks: false,\r\n shakeCard: false,\r\n selectionLimits: {\r\n JT: 999,\r\n WSK: 999,\r\n YEAR: 999,\r\n TOTAL: 2500,\r\n },\r\n currentSection: localStorage.getItem(\"cAdSe\")\r\n ? // ? localStorage.getItem('cAdSe').toString().length\r\n Number(localStorage.getItem(\"cAdSe\"))\r\n : // : 0\r\n 0,\r\n showLoginDialog: false,\r\n showAccountDialog: false,\r\n authToken: localStorage.getItem(\"x-a-t\")\r\n ? JSON.parse(localStorage.getItem(\"x-a-t\"))\r\n : sessionStorage.getItem(\"x-a-t\")\r\n ? JSON.parse(sessionStorage.getItem(\"x-a-t\"))\r\n : null,\r\n authRememberMe: localStorage.getItem(\"x-a-t-r\") ? JSON.parse(localStorage.getItem(\"x-a-t-r\")) : true,\r\n authMessage: localStorage.getItem(\"x-a-t-m\") ? JSON.parse(localStorage.getItem(\"x-a-t-m\")) : null,\r\n renderAsSVG: false,\r\n isExporting: false,\r\n isSyncingRepo: false,\r\n syncRepo: false,\r\n expanded: localStorage.getItem(\"lpE\") ? JSON.parse(localStorage.getItem(\"lpE\")) :\"panel1\",\r\n },\r\n reducers: {\r\n setRightDrawerOpened: (state, action) => {\r\n localStorage.setItem(\"RDO\", action.payload ? action.payload : \"\");\r\n state.rightDrawerOpened = action.payload;\r\n },\r\n setRightDrawerWidth: (state, action) => {\r\n state.rightDrawerWidth = action.payload;\r\n },\r\n setRightDrawerExpanded: (state, action) => {\r\n localStorage.setItem(\"RDE\", action.payload);\r\n state.rightDrawerExpanded = action.payload;\r\n },\r\n setLeftDrawerOpened: (state, action) => {\r\n localStorage.setItem(\"LDO\", action.payload);\r\n state.leftDrawerOpened = action.payload;\r\n },\r\n setLeftDrawerWidth: (state, action) => {\r\n state.leftDrawerWidth = action.payload;\r\n },\r\n setLeftPanelChecks: (state, action) => {\r\n state.leftPanelChecks = action.payload;\r\n },\r\n setShakeCard: (state, action) => {\r\n state.shakeCard = action.payload;\r\n },\r\n setCurrentSection: (state, action) => {\r\n localStorage.setItem(\"cAdSe\", action.payload ? action.payload : 0);\r\n state.currentSection = action.payload;\r\n },\r\n setShowLoginDialog: (state, action) => {\r\n state.showLoginDialog = action.payload;\r\n },\r\n setShowAccountDialog: (state, action) => {\r\n state.showAccountDialog = action.payload;\r\n },\r\n setAuthRememberMe: (state, action) => {\r\n localStorage.setItem(\"x-a-t-r\", JSON.stringify(action.payload));\r\n state.authRememberMe = action.payload;\r\n },\r\n setAuthToken: (state, action) => {\r\n state.authRememberMe\r\n ? localStorage.setItem(\"x-a-t\", JSON.stringify(action.payload))\r\n : sessionStorage.setItem(\"x-a-t\", JSON.stringify(action.payload));\r\n state.authToken = action.payload;\r\n },\r\n setAuthMessage: (state, action) => {\r\n localStorage.setItem(\"x-a-t-m\", JSON.stringify(action.payload));\r\n state.authMessage = action.payload;\r\n },\r\n setRenderAsSVG: (state, action) => {\r\n state.renderAsSVG = action.payload;\r\n },\r\n setIsExporting: (state, action) => {\r\n state.isExporting = action.payload;\r\n },\r\n setSyncRepo: (state, action) => {\r\n state.syncRepo = action.payload;\r\n },\r\n setIsSyncingRepo: (state, action) => {\r\n state.isSyncingRepo = action.payload;\r\n },\r\n setExpanded: (state, action) => {\r\n localStorage.setItem(\"lpE\", JSON.stringify(action.payload));\r\n state.expanded = action.payload;\r\n },\r\n\r\n },\r\n});\r\n\r\nexport const {\r\n setLeftPanelChecks,\r\n setLeftDrawerOpened,\r\n setLeftDrawerWidth,\r\n setRightDrawerOpened,\r\n setRightDrawerWidth,\r\n setRightDrawerExpanded,\r\n setShakeCard,\r\n setCurrentSection,\r\n setShowLoginDialog,\r\n setShowAccountDialog,\r\n setAuthRememberMe,\r\n setAuthToken,\r\n setAuthMessage,\r\n setRenderAsSVG,\r\n setIsExporting,\r\n setSyncRepo,\r\n setIsSyncingRepo,\r\n setExpanded\r\n} = AdvancedCommonSlice.actions;\r\n\r\nexport const selectRightDrawerOpened = (state) => state.AdvancedCommon.rightDrawerOpened;\r\nexport const selectRightDrawerWidth = (state) => state.AdvancedCommon.rightDrawerWidth;\r\nexport const selectRightDrawerExpanded = (state) => state.AdvancedCommon.rightDrawerExpanded;\r\nexport const selectLeftDrawerOpened = (state) => state.AdvancedCommon.leftDrawerOpened;\r\nexport const selectLeftDrawerWidth = (state) => state.AdvancedCommon.leftDrawerWidth;\r\nexport const selectLeftPanelChecks = (state) => state.AdvancedCommon.leftPanelChecks;\r\nexport const selectShakeCard = (state) => state.AdvancedCommon.shakeCard;\r\nexport const selectSelectionLimits = (state) => state.AdvancedCommon.selectionLimits;\r\nexport const selectCurrentSection = (state) => state.AdvancedCommon.currentSection;\r\nexport const selectShowLoginDialog = (state) => state.AdvancedCommon.showLoginDialog;\r\nexport const selectShowAccountDialog = (state) => state.AdvancedCommon.showAccountDialog;\r\nexport const getAuthRememberMe = (state) => state.AdvancedCommon.authRememberMe;\r\nexport const selectAuthToken = (state) => state.AdvancedCommon.authToken;\r\nexport const selectAuthMessage = (state) => state.AdvancedCommon.authMessage;\r\nexport const getRenderAsSVG = (state) => state.AdvancedCommon.renderAsSVG;\r\nexport const getIsExporting = (state) => state.AdvancedCommon.isExporting;\r\nexport const getIsSyncingRepo = (state) => state.AdvancedCommon.isSyncingRepo;\r\nexport const getSyncRepo = (state) => state.AdvancedCommon.syncRepo;\r\nexport const getExpanded = (state) => state.AdvancedCommon.expanded;\r\n\r\nexport default AdvancedCommonSlice.reducer;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\nimport axios from \"axios\";\r\nimport { LOCAL_TEST, BASE_URL } from \"../API/apiConfig\";\r\nimport { setAppError } from \"./APP\";\r\n\r\n/**\r\n * Years Slice\r\n *\r\n * exports reducer ***YearsSlice.reducer***\r\n *\r\n * ----\r\n *\r\n * @alias YearsSlice\r\n *\r\n * @example\r\n *\r\n * import {useSelector, useDispatch} from 'react-redux';\r\n * import {selectYears, setDefaultYear} from 'path/to/appStore/Years';\r\n *\r\n * ...\r\n *\r\n * const MyComponent = () => {\r\n * const dispatch = useDispatch();\r\n *\r\n * //select\r\n * const years = useSelector(selectYears);\r\n * // - or -\r\n * const years = useSelector(state => state.years.years)\r\n *\r\n * //set\r\n * dispatch(setDefaultYear(Object));\r\n *\r\n * ...\r\n *\r\n * return(\r\n *
{JSON.stringify(years, null, 4)}
\r\n * )\r\n *\r\n * }\r\n * export default MyComponent\r\n *\r\n * @param {Object} initialState\r\n * @param {Object[]} initialState.years *array of objects*\r\n * @param {Object} initialState.defaultYear *Selected (current object)*\r\n *\r\n * @param {} selectors\r\n * @param {function} selectors.selectYears returns array of objects\r\n * @param {function} selectors.selectDefaultYear returns object\r\n *\r\n * @param {Object} reducers\r\n * @param {function} reducers.setYears Redux action to set `years`\r\n * @param {function} reducers.setDefaultYear Redux action to set `defaultYear`\r\n *\r\n * @param {function} fetchYears Redux action creator to fetch data from api ***`${BASE_URL}Slowniki/GetLata`***,\r\n\r\n and set `years` and `defaultYear`\r\n\r\n *\r\n *\r\n * @module YearsSlice\r\n * @category . Redux store\r\n * */\r\n\r\nexport const YearsSlice = createSlice({\r\n name: \"years\",\r\n initialState: {\r\n years: [],\r\n defaultYear: localStorage.getItem(\"dY\")\r\n ? JSON.parse(localStorage.getItem(\"dY\"))\r\n : { id_daty: \"20191231\", rok: 2019 },\r\n selectedYears: localStorage.getItem(\"aSY\") ? JSON.parse(localStorage.getItem(\"aSY\")) : [],\r\n resetYear: localStorage.getItem(\"rY\") ? JSON.parse(localStorage.getItem(\"rY\")) : true,\r\n },\r\n reducers: {\r\n setYears: (state, action) => {\r\n state.years = action.payload;\r\n },\r\n setDefaultYear: (state, action) => {\r\n localStorage.setItem(\"dY\", JSON.stringify(action.payload));\r\n state.defaultYear = action.payload;\r\n },\r\n setSelectedYears: (state, action) => {\r\n localStorage.setItem(\"aSY\", JSON.stringify(action.payload));\r\n state.selectedYears = action.payload;\r\n },\r\n setResetYear: (state, action) => {\r\n localStorage.setItem(\"rY\", JSON.stringify(action.payload));\r\n state.selectedYears = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const fetchYears = () => (dispatch, getState) => {\r\n const apiURL = LOCAL_TEST ? \"./devData/GetLata.json\" : `${BASE_URL}Slowniki/GetLata`;\r\n axios\r\n .get(apiURL)\r\n .then((response) => {\r\n dispatch(setYears(response.data.sort((a, b) => b.rok - a.rok)));\r\n\r\n const dY = localStorage.getItem(\"dY\")\r\n ? JSON.stringify(localStorage.getItem(\"dY\"))\r\n : { id_daty: \"20191231\", rok: 2019 };\r\n\r\n dispatch(setDefaultYear(response.data.find((x) => x.id_daty.toString() === dY.id_daty.toString())));\r\n\r\n dispatch(setAppError(getState().APP.appError.filter((e) => e.type !== \"getYears\")));\r\n })\r\n .catch((error) => {\r\n dispatch(\r\n setAppError([\r\n ...getState().APP.appError,\r\n { type: \"getYears\", message: `Can't get YEARs: ${error.message}` },\r\n ])\r\n );\r\n })\r\n .finally(() => {});\r\n};\r\nexport const { setYears, setDefaultYear, setSelectedYears, setResetYear } = YearsSlice.actions;\r\n\r\nexport const selectYears = (state) => state.years.years;\r\nexport const selectDefaultYear = (state) => state.years.defaultYear;\r\nexport const selectSelectedYears = (state) => state.years.selectedYears;\r\nexport const getResetYear = (state) => state.years.resetYear;\r\n\r\nexport default YearsSlice.reducer;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\n/**\r\n * AdvancedJT Slice\r\n *\r\n * exports reducer ***AdvancedJT.reducer***\r\n *\r\n * ----\r\n *\r\n * @alias AdvancedJT\r\n *\r\n * @module AdvancedJT\r\n * @category . Redux store\r\n * */\r\n\r\nexport const AdvancedJTSlice = createSlice({\r\n name: \"AdvancedJT\",\r\n initialState: {\r\n territorialUnits: localStorage.getItem(\"appTU\")\r\n ? JSON.parse(localStorage.getItem(\"appTU\"))\r\n : { KTS: [], TERYT: [] },\r\n selectedTerritorialUnitsItems: localStorage.getItem(\"sTUI\") ? JSON.parse(localStorage.getItem(\"sTUI\")) : [],\r\n territorialUnitsType: localStorage.getItem(\"TUT\") ? localStorage.getItem(\"TUT\") : \"TERYT\",\r\n expanded: localStorage.getItem(\"eTUI\") ? JSON.parse(localStorage.getItem(\"eTUI\")) : [\"0|17\"],\r\n scrolled: null,\r\n scrollTop: localStorage.getItem(\"tstTUI\") ? JSON.parse(localStorage.getItem(\"tstTUI\")) : 0,\r\n simpleTree: false,\r\n largePanel: {\r\n open: false,\r\n tabIndex: 0,\r\n },\r\n },\r\n reducers: {\r\n setTerritorialUnits: (state, action) => {\r\n // localStorage.setItem('appTU', JSON.stringify(action.payload))\r\n state.territorialUnits = action.payload;\r\n },\r\n setSelectedTerritorialUnitsItem: (state, action) => {\r\n localStorage.setItem(\"sTUI\", JSON.stringify(action.payload));\r\n state.selectedTerritorialUnitsItems = action.payload;\r\n },\r\n setTerritorialUnitsType: (state, action) => {\r\n localStorage.setItem(\"TUT\", action.payload);\r\n state.territorialUnitsType = action.payload;\r\n },\r\n setExpanded: (state, action) => {\r\n localStorage.setItem(\"eTUI\", JSON.stringify(action.payload));\r\n state.expanded = action.payload;\r\n },\r\n setScrolled: (state, action) => {\r\n state.scrolled = action.payload;\r\n },\r\n setScrollTop: (state, action) => {\r\n localStorage.setItem(\"tstTUI\", action.payload);\r\n state.scrollTop = action.payload;\r\n },\r\n setSimpleTree: (state, action) => {\r\n state.simpleTree = action.payload;\r\n },\r\n setLargePanel: (state, action) => {\r\n state.largePanel = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const {\r\n setSelectedTerritorialUnitsItem,\r\n setTerritorialUnitsType,\r\n setTerritorialUnits,\r\n setExpanded,\r\n setScrolled,\r\n setSimpleTree,\r\n setLargePanel,\r\n setScrollTop\r\n} = AdvancedJTSlice.actions;\r\n\r\nexport const selectSelectedTerritorialUnitsItems = (state) => state.AdvancedJT.selectedTerritorialUnitsItems;\r\nexport const selectTerritorialUnitsType = (state) => state.AdvancedJT.territorialUnitsType;\r\nexport const selectTerritorialUnits = (state) => state.AdvancedJT.territorialUnits;\r\nexport const selectExpanded = (state) => state.AdvancedJT.expanded;\r\nexport const selectScrolled = (state) => state.AdvancedJT.scrolled;\r\nexport const selectSimpleTree = (state) => state.AdvancedJT.simpleTree;\r\nexport const selectLargePanel = (state) => state.AdvancedJT.largePanel;\r\nexport const getScrollTop = (state) => state.AdvancedJT.scrollTop;\r\n\r\nexport default AdvancedJTSlice.reducer;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\nexport const AdvDimensionsSlice = createSlice({\r\n name: \"AdvDimensions\",\r\n initialState: {\r\n selectedTablePrzekroje: localStorage.getItem(\"s_TP\") ? JSON.parse(localStorage.getItem(\"s_TP\")) : [],\r\n defaultTablePrzekroje: localStorage.getItem(\"s_dTP\") ? JSON.parse(localStorage.getItem(\"s_dTP\")) : [],\r\n\r\n selectedChartsPrzekroje: localStorage.getItem(\"s_CHP\") ? JSON.parse(localStorage.getItem(\"s_CHP\")) : [],\r\n defaultChartsPrzekroje: localStorage.getItem(\"s_dCHP\") ? JSON.parse(localStorage.getItem(\"s_dCHP\")) : [],\r\n\r\n selectedLineChartsPrzekroje: localStorage.getItem(\"s_lCHP\") ? JSON.parse(localStorage.getItem(\"s_lCHP\")) : [],\r\n defaultLineChartsPrzekroje: localStorage.getItem(\"s_dlCHP\") ? JSON.parse(localStorage.getItem(\"s_dlCHP\")) : [],\r\n\r\n selectedMapsPrzekroje: localStorage.getItem(\"s_MP\") ? JSON.parse(localStorage.getItem(\"s_MP\")) : [],\r\n defaultMapsPrzekroje: localStorage.getItem(\"s_dMP\") ? JSON.parse(localStorage.getItem(\"s_dMP\")) : [],\r\n },\r\n reducers: {\r\n setSelectedTablePrzekroje: (state, action) => {\r\n localStorage.setItem(\"s_TP\", JSON.stringify(action.payload));\r\n state.selectedTablePrzekroje = action.payload;\r\n },\r\n setDefaultTablePrzekroje: (state, action) => {\r\n localStorage.setItem(\"s_dTP\", JSON.stringify(action.payload));\r\n state.defaultTablePrzekroje = action.payload;\r\n },\r\n\r\n setSelectedChartsPrzekroje: (state, action) => {\r\n localStorage.setItem(\"s_CHP\", JSON.stringify(action.payload));\r\n state.selectedChartsPrzekroje = action.payload;\r\n },\r\n setDefaultChartsPrzekroje: (state, action) => {\r\n localStorage.setItem(\"s_dCHP\", JSON.stringify(action.payload));\r\n state.defaultChartsPrzekroje = action.payload;\r\n },\r\n\r\n setSelectedLineChartsPrzekroje: (state, action) => {\r\n localStorage.setItem(\"s_lCHP\", JSON.stringify(action.payload));\r\n state.selectedLineChartsPrzekroje = action.payload;\r\n },\r\n setDefaultLineChartsPrzekroje: (state, action) => {\r\n localStorage.setItem(\"s_dlCHP\", JSON.stringify(action.payload));\r\n state.defaultLineChartsPrzekroje = action.payload;\r\n },\r\n\r\n setSelectedMapsPrzekroje: (state, action) => {\r\n localStorage.setItem(\"s_MP\", JSON.stringify(action.payload));\r\n state.selectedMapsPrzekroje = action.payload;\r\n },\r\n setDefaultMapsPrzekroje: (state, action) => {\r\n localStorage.setItem(\"s_dMP\", JSON.stringify(action.payload));\r\n state.defaultMapsPrzekroje = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const {\r\n setSelectedTablePrzekroje,\r\n setDefaultTablePrzekroje,\r\n\r\n setSelectedChartsPrzekroje,\r\n setDefaultChartsPrzekroje,\r\n\r\n setSelectedLineChartsPrzekroje,\r\n setDefaultLineChartsPrzekroje,\r\n\r\n setSelectedMapsPrzekroje,\r\n setDefaultMapsPrzekroje,\r\n} = AdvDimensionsSlice.actions;\r\n\r\nexport const selectTablePrzekroje = (state) => state.AdvDimensions.selectedTablePrzekroje;\r\nexport const selectDefaultTablePrzekroje = (state) => state.AdvDimensions.defaultTablePrzekroje;\r\n\r\nexport const selectChartsPrzekroje = (state) => state.AdvDimensions.selectedChartsPrzekroje;\r\nexport const selectDefaultChartsPrzekroje = (state) => state.AdvDimensions.defaultChartsPrzekroje;\r\n\r\nexport const selectLineChartsPrzekroje = (state) => state.AdvDimensions.selectedLineChartsPrzekroje;\r\nexport const selectDefaultLineChartsPrzekroje = (state) => state.AdvDimensions.defaultLineChartsPrzekroje;\r\n\r\nexport const selectMapsPrzekroje = (state) => state.AdvDimensions.selectedMapsPrzekroje;\r\nexport const selectDefaultMapsPrzekroje = (state) => state.AdvDimensions.defaultMapsPrzekroje;\r\n\r\nexport default AdvDimensionsSlice.reducer;\r\n","import { createSlice } from '@reduxjs/toolkit';\r\n\r\n/**\r\n * AdvIndicators Slice\r\n *\r\n * exports reducer ***AdvIndicators.reducer***\r\n *\r\n * ----\r\n *\r\n * @alias AdvIndicators\r\n *\r\n * @module AdvIndicators\r\n * @category . Redux store\r\n * */\r\n\r\nexport const AdvIndicatorsSlice = createSlice({\r\n name: 'AdvIndicators',\r\n initialState: {\r\n advIndicators: [],\r\n selectedAdvIndicators:\r\n localStorage.getItem('sAI')\r\n ? JSON.parse(localStorage.getItem('sAI'))\r\n : [],\r\n expanded:localStorage.getItem(\"eAI\") ? JSON.parse(localStorage.getItem(\"eAI\")) : [''],\r\n scrolled: null,\r\n scrollTop: localStorage.getItem(\"tstAI\") ? JSON.parse(localStorage.getItem(\"tstAI\")) : 0,\r\n additional: {\r\n dimentions: true,\r\n variables: false\r\n },\r\n infoOU: [],\r\n infoUP: [],\r\n infoWSK: [],\r\n simpleTree: false,\r\n selectedAdvPrzekroje:\r\n localStorage.getItem('sAP')\r\n ? JSON.parse(localStorage.getItem('sAP'))\r\n : [],\r\n defaultAdvPrzekroje: [],\r\n },\r\n reducers: {\r\n setAdvIndicators: (state, action) => {\r\n state.advIndicators = action.payload;\r\n },\r\n setSelectedAdvIndicators: (state, action) => {\r\n localStorage.setItem('sAI', JSON.stringify(action.payload))\r\n state.selectedAdvIndicators = action.payload;\r\n },\r\n setExpanded: (state, action) => {\r\n localStorage.setItem(\"eAI\", JSON.stringify(action.payload));\r\n state.expanded = action.payload\r\n },\r\n setScrolled: (state, action) => {\r\n state.scrolled = action.payload\r\n },\r\n setScrollTop: (state, action) => {\r\n localStorage.setItem(\"tstAI\", action.payload);\r\n state.scrollTop = action.payload;\r\n },\r\n setAdditional: (state, action) => {\r\n state.additional = action.payload\r\n },\r\n setInfoOU: (state, action) => {\r\n state.infoOU = action.payload\r\n },\r\n setInfoUP: (state, action) => {\r\n state.infoUP = action.payload\r\n },\r\n setInfoWSK: (state, action) => {\r\n state.infoWSK = action.payload\r\n },\r\n setSimpleTree: (state, action) => {\r\n state.simpleTree = action.payload\r\n },\r\n setSelectedAdvPrzekroje: (state, action) => {\r\n localStorage.setItem('sAP', JSON.stringify(action.payload))\r\n state.selectedAdvPrzekroje = action.payload;\r\n },\r\n setDefaultAdvPrzekroje: (state, action) => {\r\n state.defaultAdvPrzekroje = action.payload\r\n },\r\n },\r\n});\r\n\r\nexport const {\r\n setAdvIndicators,\r\n setSelectedAdvIndicators,\r\n setExpanded,\r\n setScrolled,\r\n setAdditional,\r\n setInfoOU,\r\n setInfoUP,\r\n setInfoWSK,\r\n setSimpleTree,\r\n setSelectedAdvPrzekroje,\r\n setDefaultAdvPrzekroje,\r\n setScrollTop\r\n} = AdvIndicatorsSlice.actions;\r\n\r\nexport const selectSelectedAdvIndicators = state => state.AdvIndicators.selectedAdvIndicators;\r\nexport const selectAdvIndicators = state => state.AdvIndicators.advIndicators;\r\nexport const selectExpanded = state => state.AdvIndicators.expanded;\r\nexport const selectScrolled = state => state.AdvIndicators.scrolled;\r\nexport const selectAdditional = state => state.AdvIndicators.additional;\r\nexport const selectInfoOU = state => state.AdvIndicators.infoOU;\r\nexport const selectInfoUP = state => state.AdvIndicators.infoUP;\r\nexport const selectInfoWSK = state => state.AdvIndicators.infoWSK;\r\nexport const selectSimpleTree = state => state.AdvIndicators.simpleTree;\r\nexport const selectAdvPrzekroje = state => state.AdvIndicators.selectedAdvPrzekroje;\r\nexport const selectDefaultAdvPrzekroje = state => state.AdvIndicators.defaultAdvPrzekroje;\r\nexport const getScrollTop = state => state.AdvIndicators.scrollTop;\r\n\r\nexport default AdvIndicatorsSlice.reducer;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\n/**\r\n * AdvancedCharts Slice\r\n *\r\n * exports reducer ***AdvancedChartsSlice.reducer***\r\n *\r\n * ----\r\n *\r\n * @alias AdvancedChartsSlice\r\n *\r\n * export default MyComponent\r\n *\r\n * @module AdvancedChartsSlice\r\n * @category . Redux store\r\n * */\r\n\r\nexport const AdvancedChartsSlice = createSlice({\r\n name: \"AdvancedCharts\",\r\n initialState: {\r\n colorOfSeries: \"\",\r\n colorOfHighlight: \"#228b22\",\r\n colorLine: \"#000080\",\r\n colorBar: \"#93ccea\",\r\n legend4bars: true,\r\n legend4lines: true,\r\n labels: false,\r\n\r\n bar: localStorage.getItem(\"isBars\")\r\n ? localStorage.getItem(\"isBars\").toString() === \"false\"\r\n ? false\r\n : true\r\n : true,\r\n line: localStorage.getItem(\"isLines\")\r\n ? localStorage.getItem(\"isLines\").toString() === \"false\"\r\n ? false\r\n : true\r\n : false,\r\n tableView: {\r\n bar: null,\r\n line: null,\r\n },\r\n barChartName: localStorage.getItem(\"bcTitle\") ? localStorage.getItem(\"bcTitle\") : \"\",\r\n lineChartName: localStorage.getItem(\"lcTitle\") ? localStorage.getItem(\"lcTitle\") : \"\",\r\n selectedWSK: localStorage.getItem(\"sBCWSK\") ? JSON.parse(localStorage.getItem(\"sBCWSK\")) : [],\r\n selectedJT: localStorage.getItem(\"sBCJT\") ? JSON.parse(localStorage.getItem(\"sBCJT\")) : null,\r\n selectedYear:\r\n localStorage.getItem(\"sBCY\") &&\r\n localStorage.getItem(\"sBCY\") !== undefined &&\r\n localStorage.getItem(\"sBCY\") !== \"undefined\"\r\n ? JSON.parse(localStorage.getItem(\"sBCY\"))\r\n : null,\r\n selectedLinesWSK: localStorage.getItem(\"sLCWSK\") ? JSON.parse(localStorage.getItem(\"sLCWSK\")) : null,\r\n selectedLinesJT: localStorage.getItem(\"sLCJT\") ? JSON.parse(localStorage.getItem(\"sLCJT\")) : [],\r\n selectedLinesYear: null,\r\n barDatasets: null,\r\n yearsRange: localStorage.getItem(\"sLCYR\") ? JSON.parse(localStorage.getItem(\"sLCYR\")) : {},\r\n statAndOper: localStorage.getItem(\"ACSaO\")\r\n ? JSON.parse(localStorage.getItem(\"ACSaO\"))\r\n : {\r\n enabled: true,\r\n filters: {\r\n filterType: \"none\",\r\n user: {\r\n id_daty: \"\",\r\n value: \"\",\r\n moreOrLess: \"more\",\r\n open: false,\r\n },\r\n amount: {\r\n id_daty: \"\",\r\n minOrMax: \"min\",\r\n value: \"\",\r\n open: false,\r\n },\r\n percentage: {\r\n id_daty: \"\",\r\n minOrMax: \"min\",\r\n value: \"\",\r\n open: false,\r\n },\r\n },\r\n operations: {\r\n average: { selected: false, value: \"col\" },\r\n mediana: { selected: false, value: \"col\" },\r\n user: { selected: false, value: null, name: null },\r\n },\r\n },\r\n defaultStatAndOper: {\r\n enabled: true,\r\n filters: {\r\n filterType: \"none\",\r\n user: {\r\n id_daty: \"\",\r\n value: \"\",\r\n moreOrLess: \"more\",\r\n open: false,\r\n },\r\n amount: {\r\n id_daty: \"\",\r\n minOrMax: \"min\",\r\n value: \"\",\r\n open: false,\r\n },\r\n percentage: {\r\n id_daty: \"\",\r\n minOrMax: \"min\",\r\n value: \"\",\r\n open: false,\r\n },\r\n },\r\n operations: {\r\n average: { selected: false, value: \"col\" },\r\n mediana: { selected: false, value: \"col\" },\r\n user: { selected: false, value: null, name: null },\r\n },\r\n },\r\n barSettings: localStorage.getItem(\"ACbS\")\r\n ? JSON.parse(localStorage.getItem(\"ACbS\"))\r\n : {\r\n colors: {\r\n serie: {\r\n data: null,\r\n isDefault: true,\r\n },\r\n highlight: \"#FFFF99\",\r\n highlightedBars: [],\r\n },\r\n additional: {\r\n shortNamesJT: true,\r\n showLabels: false,\r\n showLegend: true,\r\n },\r\n },\r\n barDefaultSettings: localStorage.getItem(\"ACbdS\")\r\n ? JSON.parse(localStorage.getItem(\"ACbdS\"))\r\n : {\r\n colors: {\r\n serie: {\r\n data: null,\r\n isDefault: true,\r\n },\r\n highlight: \"#FFFF99\",\r\n highlightedBars: [],\r\n },\r\n additional: {\r\n shortNamesJT: true,\r\n showLabels: false,\r\n showLegend: true,\r\n },\r\n },\r\n lineSettings: localStorage.getItem(\"AClS\")\r\n ? JSON.parse(localStorage.getItem(\"AClS\"))\r\n : {\r\n colors: {\r\n serie: {\r\n data: null,\r\n isDefault: true,\r\n },\r\n },\r\n additional: {\r\n showLegend: true,\r\n },\r\n },\r\n lineDefaltSettings: localStorage.getItem(\"ACldS\")\r\n ? JSON.parse(localStorage.getItem(\"ACldS\"))\r\n : {\r\n colors: {\r\n serie: {\r\n data: null,\r\n isDefault: true,\r\n },\r\n },\r\n additional: {\r\n showLegend: true,\r\n },\r\n },\r\n barChartSort: localStorage.getItem(\"AbCs\") ? localStorage.getItem(\"AbCs\") : \"90\",\r\n dataURLs: {\r\n bar: {\r\n png: \"\",\r\n jpg: \"\",\r\n },\r\n line: {\r\n png: \"\",\r\n jpg: \"\",\r\n },\r\n },\r\n },\r\n reducers: {\r\n setColorOfSeries: (state, action) => {\r\n state.colorOfSeries = action.payload;\r\n },\r\n setColorOfHighlight: (state, action) => {\r\n state.colorOfHighlight = action.payload;\r\n },\r\n setChart: (state, action) => {\r\n localStorage.setItem(\"isBars\", action.payload.bar);\r\n state.bar = action.payload.bar;\r\n localStorage.setItem(\"isLines\", action.payload.line);\r\n state.line = action.payload.line;\r\n },\r\n setColorOfLine: (state, action) => {\r\n state.colorLine = action.payload;\r\n },\r\n setLegend4Bars: (state, action) => {\r\n state.legend4bars = action.payload;\r\n },\r\n setLegend4Lines: (state, action) => {\r\n state.legend4lines = action.payload;\r\n },\r\n setLabels: (state, action) => {\r\n state.labels = action.payload;\r\n },\r\n setColorOfBar: (state, action) => {\r\n state.colorBar = action.payload;\r\n },\r\n setTableView: (state, action) => {\r\n state.tableView = action.payload;\r\n },\r\n setBarChartName: (state, action) => {\r\n localStorage.setItem(\"bcTitle\", action.payload);\r\n state.barChartName = action.payload;\r\n },\r\n setLineChartName: (state, action) => {\r\n localStorage.setItem(\"lcTitle\", action.payload);\r\n state.lineChartName = action.payload;\r\n },\r\n setSelectedWSK: (state, action) => {\r\n localStorage.setItem(\"sBCWSK\", JSON.stringify(action.payload));\r\n state.selectedWSK = action.payload;\r\n },\r\n setSelectedJT: (state, action) => {\r\n localStorage.setItem(\"sBCJT\", JSON.stringify(action.payload));\r\n state.selectedJT = action.payload;\r\n },\r\n setSelectedYear: (state, action) => {\r\n localStorage.setItem(\"sBCY\", JSON.stringify(action.payload));\r\n state.selectedYear = action.payload;\r\n },\r\n setSelectedLinesWSK: (state, action) => {\r\n localStorage.setItem(\"sLCWSK\", JSON.stringify(action.payload));\r\n state.selectedLinesWSK = action.payload;\r\n },\r\n setSelectedLinesJT: (state, action) => {\r\n localStorage.setItem(\"sLCJT\", JSON.stringify(action.payload));\r\n state.selectedLinesJT = action.payload;\r\n },\r\n setSelectedLinesYear: (state, action) => {\r\n state.selectedLinesYear = action.payload;\r\n },\r\n setBarDatasets: (state, action) => {\r\n state.barDatasets = action.payload;\r\n },\r\n setYearsRange: (state, action) => {\r\n localStorage.setItem(\"sLCYR\", JSON.stringify(action.payload));\r\n state.yearsRange = action.payload;\r\n },\r\n setChartsStatAndOper: (state, action) => {\r\n localStorage.setItem(\"ACSaO\", JSON.stringify(action.payload));\r\n state.statAndOper = action.payload;\r\n },\r\n setChartsBarSettings: (state, action) => {\r\n localStorage.setItem(\"ACbS\", JSON.stringify(action.payload));\r\n state.barSettings = action.payload;\r\n },\r\n setChartsBarDefaultSettings: (state, action) => {\r\n localStorage.setItem(\"ACbdS\", JSON.stringify(action.payload));\r\n state.barDefaultSettings = action.payload;\r\n },\r\n setChartsLineSettings: (state, action) => {\r\n localStorage.setItem(\"AClS\", JSON.stringify(action.payload));\r\n state.lineSettings = action.payload;\r\n },\r\n setChartsLineDefaultSettings: (state, action) => {\r\n localStorage.setItem(\"ACldS\", JSON.stringify(action.payload));\r\n state.lineDefaltSettings = action.payload;\r\n },\r\n setBarChartSort: (state, action) => {\r\n localStorage.setItem(\"AbCs\", action.payload);\r\n state.barChartSort = action.payload;\r\n },\r\n setDataURLs: (state, action) => {\r\n state.dataURLs = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const {\r\n setColorOfSeries,\r\n setColorOfHighlight,\r\n setChart,\r\n setColorOfLine,\r\n setLegend4Bars,\r\n setLegend4Lines,\r\n setLabels,\r\n setColorOfBar,\r\n setTableView,\r\n setBarChartName,\r\n setLineChartName,\r\n setSelectedWSK,\r\n setSelectedJT,\r\n setSelectedYear,\r\n setSelectedLinesWSK,\r\n setSelectedLinesJT,\r\n setSelectedLinesYear,\r\n setBarDatasets,\r\n setYearsRange,\r\n setChartsStatAndOper,\r\n setChartsBarSettings,\r\n setChartsBarDefaultSettings,\r\n setChartsLineSettings,\r\n setChartsLineDefaultSettings,\r\n setBarChartSort,\r\n setDataURLs,\r\n} = AdvancedChartsSlice.actions;\r\n\r\nexport const colorOfSeries = (state) => state.AdvancedCharts.colorOfSeries;\r\nexport const colorOfHighlight = (state) => state.AdvancedCharts.colorOfHighlight;\r\nexport const colorLine = (state) => state.AdvancedCharts.colorLine;\r\nexport const legend4bars = (state) => state.AdvancedCharts.legend4bars;\r\nexport const legend4lines = (state) => state.AdvancedCharts.legend4lines;\r\nexport const labels = (state) => state.AdvancedCharts.labels;\r\n\r\nexport const bar = (state) => state.AdvancedCharts.bar;\r\nexport const line = (state) => state.AdvancedCharts.line;\r\nexport const selectTableView = (state) => state.AdvancedCharts.tableView;\r\n\r\nexport const selectBarChartName = (state) => state.AdvancedCharts.barChartName;\r\nexport const selectLineChartName = (state) => state.AdvancedCharts.lineChartName;\r\n\r\nexport const selectSelectedWSK = (state) => state.AdvancedCharts.selectedWSK;\r\nexport const selectSelectedJT = (state) => state.AdvancedCharts.selectedJT;\r\nexport const selectSelectedYear = (state) => state.AdvancedCharts.selectedYear;\r\n\r\nexport const selectSelectedLinesWSK = (state) => state.AdvancedCharts.selectedLinesWSK;\r\nexport const selectSelectedLinesJT = (state) => state.AdvancedCharts.selectedLinesJT;\r\nexport const selectSelectedLinesYear = (state) => state.AdvancedCharts.selectedLinesYear;\r\n\r\nexport const selectBarDatasets = (state) => state.AdvancedCharts.barDatasets;\r\nexport const selectYearsRange = (state) => state.AdvancedCharts.yearsRange;\r\n\r\nexport const selectChartsStatAndOper = (state) => state.AdvancedCharts.statAndOper;\r\nexport const selectChartsDefaultStatAndOper = (state) => state.AdvancedCharts.defaultStatAndOper;\r\n\r\nexport const selectBarSetting = (state) => state.AdvancedCharts.barSettings;\r\nexport const selectBarDefaultSetting = (state) => state.AdvancedCharts.barDefaultSettings;\r\n\r\nexport const selectLineSetting = (state) => state.AdvancedCharts.lineSettings;\r\nexport const selectLineDefaultSetting = (state) => state.AdvancedCharts.lineDefaltSettings;\r\n\r\nexport const selectBarChartSort = (state) => state.AdvancedCharts.barChartSort;\r\n\r\nexport const selectDataURLs = (state) => state.AdvancedCharts.dataURLs;\r\n\r\nexport default AdvancedChartsSlice.reducer;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\nimport { get, set } from \"./_idb\";\r\n\r\nexport const AdvRepozytoriumSlice = createSlice({\r\n name: \"AdvRepozytorium\",\r\n initialState: {\r\n // Tables: localStorage.getItem('rTs', 'APP')\r\n // ? JSON.parse(localStorage.getItem('rTs', 'APP'))\r\n // : [],\r\n Tables: null,\r\n // Charts: localStorage.getItem(\"rCs\", \"APP\") ? JSON.parse(localStorage.getItem(\"rCs\", \"APP\")) : [],\r\n Charts: null,\r\n // Maps: localStorage.getItem(\"rMs\", \"APP\") ? JSON.parse(localStorage.getItem(\"rMs\", \"APP\")) : [],\r\n Maps: null,\r\n // Reports: localStorage.getItem(\"rRs\") ? JSON.parse(localStorage.getItem(\"rRs\")) : [],\r\n Reports: null,\r\n Groups: localStorage.getItem(\"rGs\") ? JSON.parse(localStorage.getItem(\"rGs\")) : [],\r\n isLoadingRepo: false,\r\n validDate: \"10/11/2023 05:59\",\r\n // validDate: \"02/22/2023 14:59\",\r\n },\r\n reducers: {\r\n setTables: (state, action) => {\r\n // localStorage.setItem('rTs', JSON.stringify(action.payload))\r\n set(\"rTs\", JSON.stringify(action.payload));\r\n state.Tables = action.payload;\r\n },\r\n setCharts: (state, action) => {\r\n // localStorage.setItem('rCs', JSON.stringify(action.payload))\r\n set(\"rCs\", JSON.stringify(action.payload));\r\n state.Charts = action.payload;\r\n },\r\n setMaps: (state, action) => {\r\n // localStorage.setItem('rMs', JSON.stringify(action.payload))\r\n set(\"rMs\", JSON.stringify(action.payload));\r\n state.Maps = action.payload;\r\n },\r\n setReports: (state, action) => {\r\n // localStorage.setItem('rRs', JSON.stringify(action.payload))\r\n set(\"rRs\", JSON.stringify(action.payload));\r\n state.Reports = action.payload;\r\n },\r\n setGroups: (state, action) => {\r\n localStorage.setItem(\"rGs\", JSON.stringify(action.payload));\r\n // set('rGs', JSON.stringify(action.payload))\r\n state.Groups = action.payload;\r\n },\r\n setIsLoadingRepo: (state, action) => {\r\n state.isLoadingRepo = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const fetchRepoFromIndexDB = () => (dispatch, getState) => {\r\n // console.log(\"%c fetchRepoFromIndexDB \", \"background:#A00\");\r\n get(\"rTs\").then((val) => {\r\n // console.log(\"%c - rTs \", \"background:#F00\", val);\r\n val = val ? JSON.parse(val) : [];\r\n dispatch(setTables(val));\r\n });\r\n\r\n get(\"rCs\").then((val) => {\r\n val = val ? JSON.parse(val) : [];\r\n dispatch(setCharts(val));\r\n });\r\n\r\n get(\"rMs\").then((val) => {\r\n val = val ? JSON.parse(val) : [];\r\n dispatch(setMaps(val));\r\n });\r\n\r\n get(\"rRs\").then((val) => {\r\n val = val ? JSON.parse(val) : [];\r\n dispatch(setReports(val));\r\n });\r\n};\r\n\r\nexport const { setTables, setCharts, setMaps, setReports, setGroups, setIsLoadingRepo } = AdvRepozytoriumSlice.actions;\r\n\r\nexport const selectTables = (state) => state.AdvRepozytorium.Tables;\r\nexport const selectCharts = (state) => state.AdvRepozytorium.Charts;\r\nexport const selectMaps = (state) => state.AdvRepozytorium.Maps;\r\nexport const selectReports = (state) => state.AdvRepozytorium.Reports;\r\nexport const selectGroups = (state) => state.AdvRepozytorium.Groups;\r\nexport const getValidDate = (state) => state.AdvRepozytorium.validDate;\r\n\r\nexport const selectIsLoadingRepo = (state) => state.AdvRepozytorium.isLoadingRepo;\r\n\r\nexport default AdvRepozytoriumSlice.reducer;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\n/**\r\n * AdvancedTable Slice\r\n *\r\n * exports reducer ***AdvancedTableSlice.reducer***\r\n *\r\n * ----\r\n *\r\n * @alias AdvancedTableSlice\r\n *\r\n * export default MyComponent\r\n *\r\n * @module AdvancedTableSlice\r\n * @category . Redux store\r\n *\r\n * */\r\n\r\nexport const AdvancedTableSlice = createSlice({\r\n name: \"AdvancedTable\",\r\n initialState: {\r\n settings: localStorage.getItem(\"ATS\")\r\n ? JSON.parse(localStorage.getItem(\"ATS\"))\r\n : {\r\n layout: {\r\n selectListItems: [\r\n {\r\n id: \"JT\",\r\n content: \"Jednostka terytorialna\",\r\n field: \"JT\",\r\n width: 600,\r\n shortWidth: 240,\r\n longWidth: 240,\r\n },\r\n ],\r\n rowsTitlesItems: [\r\n { id: \"W\", content: \"Wskaznik\", field: \"WSK\", width: 800, shortWidth: 400, longWidth: 800 },\r\n {\r\n id: \"D\",\r\n content: \"Wymiar\",\r\n field: \"DIM\",\r\n width: 800,\r\n shortWidth: 300,\r\n longWidth: 600,\r\n hidden: true,\r\n },\r\n {\r\n id: \"P\",\r\n content: \"Pozycja wymiaru\",\r\n field: \"POS\",\r\n width: 800,\r\n shortWidth: 300,\r\n longWidth: 600,\r\n hidden: true,\r\n },\r\n ],\r\n columnsItems: [\r\n { id: \"Year\", content: \"Lata\", field: \"Year\", width: 100, shortWidth: 150, longWidth: 100 },\r\n ],\r\n },\r\n additional: {\r\n hideEmptyCols: false,\r\n hideEmptyRows: false,\r\n showTERYT: false,\r\n showKTS: false,\r\n showHierarchyJT: false,\r\n showHierarchyWSK: false,\r\n },\r\n },\r\n defaultSettings: {\r\n layout: {\r\n selectListItems: [\r\n {\r\n id: \"JT\",\r\n content: \"Jednostka terytorialna\",\r\n field: \"JT\",\r\n width: 600,\r\n shortWidth: 240,\r\n longWidth: 240,\r\n },\r\n ],\r\n rowsTitlesItems: [\r\n { id: \"W\", content: \"Wskaznik\", field: \"WSK\", width: 800, shortWidth: 400, longWidth: 800 },\r\n {\r\n id: \"D\",\r\n content: \"Wymiar\",\r\n field: \"DIM\",\r\n width: 800,\r\n shortWidth: 300,\r\n longWidth: 600,\r\n hidden: true,\r\n },\r\n {\r\n id: \"P\",\r\n content: \"Pozycja wymiaru\",\r\n field: \"POS\",\r\n width: 800,\r\n shortWidth: 300,\r\n longWidth: 600,\r\n hidden: true,\r\n },\r\n ],\r\n columnsItems: [\r\n { id: \"Year\", content: \"Lata\", field: \"Year\", width: 100, shortWidth: 150, longWidth: 100 },\r\n ],\r\n },\r\n additional: {\r\n hideEmptyCols: false,\r\n hideEmptyRows: false,\r\n showTERYT: false,\r\n showKTS: false,\r\n showHierarchyJT: false,\r\n showHierarchyWSK: false,\r\n },\r\n },\r\n statAndOper: localStorage.getItem(\"ATSaO\")\r\n ? JSON.parse(localStorage.getItem(\"ATSaO\"))\r\n : {\r\n enabled: true,\r\n filters: {\r\n filterType: \"none\",\r\n user: {\r\n id_daty: \"\",\r\n value: \"\",\r\n moreOrLess: \"more\",\r\n open: false,\r\n },\r\n amount: {\r\n id_daty: \"\",\r\n minOrMax: \"min\",\r\n value: \"\",\r\n open: false,\r\n },\r\n percentage: {\r\n id_daty: \"\",\r\n minOrMax: \"min\",\r\n value: \"\",\r\n open: false,\r\n },\r\n },\r\n operations: {\r\n average: { selected: false, value: \"col\" },\r\n mediana: { selected: false, value: \"col\" },\r\n dynamic: { selected: false, value: \"lastYear\", id_daty: \"\" },\r\n },\r\n },\r\n defaultStatAndOper: {\r\n enabled: true,\r\n filters: {\r\n filterType: \"none\",\r\n user: {\r\n id_daty: \"\",\r\n value: \"\",\r\n moreOrLess: \"more\",\r\n open: false,\r\n },\r\n amount: {\r\n id_daty: \"\",\r\n minOrMax: \"min\",\r\n value: \"\",\r\n open: false,\r\n },\r\n percentage: {\r\n id_daty: \"\",\r\n minOrMax: \"min\",\r\n value: \"\",\r\n open: false,\r\n },\r\n },\r\n operations: {\r\n average: { selected: false, value: \"col\" },\r\n mediana: { selected: false, value: \"col\" },\r\n dynamic: { selected: false, value: \"lastYear\", id_daty: \"\" },\r\n },\r\n },\r\n dataForJT: localStorage.getItem(\"d4JT\") ? JSON.parse(localStorage.getItem(\"d4JT\")) : {},\r\n loadingDataForJT: false,\r\n fullTableData: localStorage.getItem(\"FTD\") ? JSON.parse(localStorage.getItem(\"FTD\")) : [],\r\n currentTableData: localStorage.getItem(\"cTD\") ? JSON.parse(localStorage.getItem(\"cTD\")) : [],\r\n currentRows: null,\r\n fullTableDataRE: [],\r\n loadingFullTableData: false,\r\n selectedJT: localStorage.getItem(\"sJT\") ? JSON.parse(localStorage.getItem(\"sJT\")) : {},\r\n selectedYear: localStorage.getItem(\"sY\") ? JSON.parse(localStorage.getItem(\"sY\")) : {},\r\n selectedWSK: localStorage.getItem(\"sWSK\") ? JSON.parse(localStorage.getItem(\"sWSK\")) : {},\r\n showPivot: localStorage.getItem(\"sP\")\r\n ? localStorage.getItem(\"sP\").toString() === \"false\"\r\n ? false\r\n : true\r\n : false,\r\n counters: localStorage.getItem(\"cntrs\")\r\n ? JSON.parse(localStorage.getItem(\"cntrs\"))\r\n : { TOTAL_LIMIT: 50000, limited: false, COLS_LIMIT: 14000 },\r\n showLimted: localStorage.getItem(\"lmtd\") ? JSON.parse(localStorage.getItem(\"lmtd\")) : true,\r\n minMax: { min: null, max: null },\r\n },\r\n reducers: {\r\n setAdvancedTableSettings: (state, action) => {\r\n localStorage.setItem(\"ATS\", JSON.stringify(action.payload));\r\n state.settings = action.payload;\r\n },\r\n setAdvancedTableStatAndOper: (state, action) => {\r\n localStorage.setItem(\"ATSaO\", JSON.stringify(action.payload));\r\n state.statAndOper = action.payload;\r\n },\r\n setDataForJT: (state, action) => {\r\n localStorage.setItem(\"d4JT\", JSON.stringify(action.payload));\r\n state.dataForJT = action.payload;\r\n },\r\n setLoadingDataForJT: (state, action) => {\r\n state.loadingDataForJT = action.payload;\r\n },\r\n setFullTableData: (state, action) => {\r\n // localStorage.setItem('FTD', JSON.stringify(action.payload))\r\n state.fullTableData = action.payload;\r\n },\r\n setCurrentTableData: (state, action) => {\r\n // localStorage.setItem('FTD', JSON.stringify(action.payload))\r\n state.currentTableData = action.payload;\r\n },\r\n mergeFullTableData: (state, action) => {\r\n state.fullTableDataRE = action.payload;\r\n },\r\n setLoadingFullTableData: (state, action) => {\r\n state.loadingFullTableData = action.payload;\r\n },\r\n setSelectedJT: (state, action) => {\r\n localStorage.setItem(\"sJT\", JSON.stringify(action.payload));\r\n state.selectedJT = action.payload;\r\n },\r\n setSelectedYear: (state, action) => {\r\n localStorage.setItem(\"sY\", JSON.stringify(action.payload));\r\n state.selectedYear = action.payload;\r\n },\r\n setSelectedWSK: (state, action) => {\r\n localStorage.setItem(\"sWSK\", JSON.stringify(action.payload));\r\n state.selectedWSK = action.payload;\r\n },\r\n setShowPivot: (state, action) => {\r\n localStorage.setItem(\"sP\", action.payload);\r\n state.showPivot = action.payload;\r\n },\r\n setCurrentRows: (state, action) => {\r\n state.currentRows = action.payload;\r\n },\r\n setCounters: (state, action) => {\r\n localStorage.setItem(\"cntrs\", JSON.stringify(action.payload));\r\n state.counters = action.payload;\r\n },\r\n setShowLimited: (state, action) => {\r\n localStorage.setItem(\"lmtd\", JSON.stringify(action.payload));\r\n state.showLimted = action.payload;\r\n },\r\n setMinMax: (state, action) => {\r\n // localStorage.setItem(\"lmtd\", JSON.stringify(action.payload));\r\n state.minMax = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const {\r\n setAdvancedTableSettings,\r\n setAdvancedTableStatAndOper,\r\n setDataForJT,\r\n setLoadingDataForJT,\r\n setSelectedJT,\r\n setSelectedYear,\r\n setSelectedWSK,\r\n setFullTableData,\r\n mergeFullTableData,\r\n setLoadingFullTableData,\r\n setShowPivot,\r\n setCurrentTableData,\r\n setCurrentRows,\r\n setCounters,\r\n setShowLimited,\r\n setMinMax,\r\n} = AdvancedTableSlice.actions;\r\n\r\nexport const selectAdvancedTableSettings = (state) => state.AdvancedTable.settings;\r\nexport const selectAdvancedTableDefaultSettings = (state) => state.AdvancedTable.defaultSettings;\r\nexport const selectAdvancedTableStatAndOper = (state) => state.AdvancedTable.statAndOper;\r\nexport const selectAdvancedTableDefaultStatAndOper = (state) => state.AdvancedTable.defaultStatAndOper;\r\nexport const selectDataForJT = (state) => state.AdvancedTable.dataForJT;\r\nexport const selectLoadingDataForJT = (state) => state.AdvancedTable.loadingDataForJT;\r\nexport const selectFullTableData = (state) => state.AdvancedTable.fullTableData;\r\nexport const selectCurrentTableData = (state) => state.AdvancedTable.currentTableData;\r\nexport const selectLoadingFullTableData = (state) => state.AdvancedTable.loadingFullTableData;\r\nexport const selectSelectedJT = (state) => state.AdvancedTable.selectedJT;\r\nexport const selectSelectedYear = (state) => state.AdvancedTable.selectedYear;\r\nexport const selectSelectedWSK = (state) => state.AdvancedTable.selectedWSK;\r\nexport const selectShowPivot = (state) => state.AdvancedTable.showPivot;\r\nexport const selectCurrentRows = (state) => state.AdvancedTable.currentRows;\r\nexport const getCounters = (state) => state.AdvancedTable.counters;\r\nexport const getShowLimited = (state) => state.AdvancedTable.showLimted;\r\nexport const getMinMax = (state) => state.AdvancedTable.minMax;\r\n\r\nexport default AdvancedTableSlice.reducer;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\nimport axios from \"axios\";\r\nimport { LOCAL_TEST, BASE_URL } from \"../API/apiConfig\";\r\nimport { setAppError } from \"./APP\";\r\n\r\n/**\r\n * Areas Slice\r\n *\r\n * exports reducer ***AreasSlice.reducer***\r\n *\r\n * ----\r\n *\r\n * @alias AreasSlice\r\n *\r\n * @example\r\n *\r\n * import {useSelector, useDispatch} from 'react-redux';\r\n * import {selectAreas, setCurrentArea} from 'path/to/appStore/Areas'\r\n *\r\n * ...\r\n *\r\n * const MyComponent = () => {\r\n * const dispatch = useDispatch();\r\n *\r\n * //select\r\n * const areas = useSelector(selectAreas);\r\n * // - or -\r\n * const areas = useSelector(state=>state.areas.areas)\r\n *\r\n * //set current area\r\n * dispatch(setCurrentArea(ArrayOfObjects));\r\n *\r\n * ...\r\n *\r\n * return(\r\n *
{JSON.stringify(areas, null, 4)}
\r\n * )\r\n *\r\n * }\r\n * export default MyComponent\r\n *\r\n * @param {Object} initialState\r\n * @param {Object[]} initialState.areas *array of objects* ***Obszary***\r\n * @param {Object} initialState.currentArea *Selected (current object)* ***Obszar***\r\n * @param {Object[]} initialState.services *array of objects* ***Uslugi***\r\n * @param {Object} initialState.selectedService *Selected (current object)* ***Usluga***\r\n * @param {Object[]} initialState.pointers *array of objects* ***Wskaźniki***\r\n * @param {Object} initialState.selectedPointer *Selected (current object)* ***Wskaźnik***\r\n *\r\n * @param {} selectors\r\n * @param {function} selectors.selectAreas returns array of objects ***Obszary***\r\n * @param {function} selectors.selectCurrentArea returns object (current) ***Obszar***\r\n * @param {function} selectors.selectServices returns array of objects ***Uslugi***\r\n * @param {function} selectors.selectSelectedService returns object (current) ***Usluga***\r\n * @param {function} selectors.selectPointers returns array of objects ***Wskaźniki***\r\n * @param {function} selectors.selectSelectedPointer returns object (current) ***Wskaźnik***\r\n *\r\n * @param {Object} reducers\r\n * @param {function} reducers.setAreas Redux action to set `areas`\r\n * @param {function} reducers.setCurrentArea Redux action to set `currentArea`\r\n * @param {function} reducers.setServices Redux action to set `services`\r\n * @param {function} reducers.setSelectedService Redux action to set `selectedService`\r\n * @param {function} reducers.setPointers Redux action to set `pointers`\r\n * @param {function} reducers.setSelectedPointer Redux action to set `selectedPointer`\r\n *\r\n * @param {function} fetchAreas Redux action creator to fetch data from api ***`${BASE_URL}Slowniki/GetObszaryUslug`***,\r\n\r\n and set `areas` and `currentArea`\r\n\r\n * @module AreasSlice\r\n * @category . Redux store\r\n * */\r\n\r\nexport const AreasSlice = createSlice({\r\n name: \"areas\",\r\n initialState: {\r\n areas: [],\r\n currentArea: localStorage.getItem(\"cA\") ? JSON.parse(localStorage.getItem(\"cA\")) : null,\r\n services: localStorage.getItem(\"Ss\") ? JSON.parse(localStorage.getItem(\"Ss\")) : [],//[] /** Data for FirstSelect on Basic page */,\r\n selectedService: localStorage.getItem(\"sS\") ? JSON.parse(localStorage.getItem(\"sS\")) : {},//{},\r\n pointers: localStorage.getItem(\"Ps\") ? JSON.parse(localStorage.getItem(\"Ps\")) : [],//[] /** Data for SecondSelect on Basic page */,\r\n selectedPointer: localStorage.getItem(\"sP\") ? JSON.parse(localStorage.getItem(\"sP\")) : null,//{},\r\n fromShare: false\r\n },\r\n reducers: {\r\n setAreas: (state, action) => {\r\n state.areas = action.payload;\r\n },\r\n setCurrentArea: (state, action) => {\r\n localStorage.setItem(\"cA\", JSON.stringify(action.payload));\r\n state.currentArea = action.payload;\r\n },\r\n setServices: (state, action) => {\r\n localStorage.setItem(\"Ss\", JSON.stringify(action.payload));\r\n state.services = action.payload;\r\n },\r\n setSelectedService: (state, action) => {\r\n localStorage.setItem(\"sS\", JSON.stringify(action.payload));\r\n state.selectedService = action.payload;\r\n },\r\n setPointers: (state, action) => {\r\n localStorage.setItem(\"Ps\", JSON.stringify(action.payload));\r\n state.pointers = action.payload;\r\n },\r\n setSelectedPointer: (state, action) => {\r\n localStorage.setItem(\"sP\", JSON.stringify(action.payload));\r\n state.selectedPointer = action.payload;\r\n },\r\n setFromShare: (state, action) => {\r\n state.fromShare = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const fetchAreas = () => (dispatch, getState) => {\r\n const apiURL = LOCAL_TEST ? \"./devData/GetObszaryUslug.json\" : `${BASE_URL}Slowniki/GetObszaryUslug`;\r\n const _currentArea = getState()?.areas?.currentArea;\r\n // console.log(_currentArea)\r\n axios\r\n .get(apiURL)\r\n .then((response) => {\r\n // console.log(response.data);\r\n if (response?.data?.length === 9) {\r\n response.data = [\r\n ...response.data,\r\n { ...response.data[8], isFin: true, id_ou: 10, nazwa_ou: \"MODUŁ FINANSOWY MF\" },\r\n ];\r\n }\r\n dispatch(setAreas(response.data));\r\n\r\n dispatch(setCurrentArea(_currentArea || response.data.filter((x) => x.czy_domyslny === true)[0]));\r\n\r\n dispatch(setAppError(getState().APP.appError.filter((e) => e.type !== \"getAreas\")));\r\n })\r\n .catch((error) => {\r\n dispatch(\r\n setAppError([\r\n ...getState().APP.appError,\r\n { type: \"getAreas\", message: `Can't get AREAs: ${error.message}` },\r\n ])\r\n );\r\n })\r\n .finally(() => {});\r\n};\r\n\r\nexport const { setAreas, setCurrentArea, setServices, setSelectedService, setPointers, setSelectedPointer, setFromShare } =\r\n AreasSlice.actions;\r\n\r\nexport const selectAreas = (state) => state.areas.areas;\r\nexport const selectCurrentArea = (state) => state.areas.currentArea;\r\nexport const selectServices = (state) => state.areas.services;\r\nexport const selectSelectedService = (state) => state.areas.selectedService;\r\nexport const selectPointers = (state) => state.areas.pointers;\r\nexport const selectSelectedPointer = (state) => state.areas.selectedPointer;\r\nexport const getFromShare = (state) => state.areas.fromShare;\r\n\r\nexport default AreasSlice.reducer;\r\n","import {createSlice} from '@reduxjs/toolkit';\r\n\r\n/**\r\n * Search Slice\r\n *\r\n * exports reducer ***SearchSlice.reducer***\r\n *\r\n * ----\r\n *\r\n * @alias SearchSlice\r\n *\r\n * @example\r\n *\r\n * import {useSelector, useDispatch} from 'react-redux';\r\n * import {selectSelectedSearchItem, setSelectedSearchItem} from 'path/to/appStore/Search';\r\n *\r\n * ...\r\n *\r\n * const MyComponent = () => {\r\n * const dispatch = useDispatch();\r\n *\r\n * //select\r\n * const selectedSearchItem = useSelector(selectSelectedSearchItem);\r\n * // - or -\r\n * const selectedSearchItem = useSelector(state => state.search.selectedSearchItem)\r\n *\r\n * //set\r\n * dispatch(setSelectedSearchItem(Object));\r\n *\r\n * ...\r\n *\r\n * return(\r\n *
{JSON.stringify(selectedSearchItem, null, 4)}
\r\n * )\r\n *\r\n * }\r\n * export default MyComponent\r\n *\r\n * @param {Object} initialState\r\n * @param {Object} initialState.selectedSearchItem *Selected (current object)*\r\n *\r\n * stores selected search object got on home page. Looks for localStorage item `selectedSearchItem`\r\n * and if finds sets to store\r\n *\r\n * @param {} selectors\r\n * @param {function} selectors.selectSelectedSearchItem returns object (current)\r\n *\r\n * @param {Object} reducers\r\n * @param {function} reducers.setSelectedSearchItem Redux action to set `selectedSearchItem`\r\n *\r\n * stores selected search object in localStorage item `selectedSearchItem`\r\n *\r\n * @module SearchSlice\r\n * @category . Redux store\r\n * */\r\n\r\nexport const SearchSlice = createSlice({\r\n name: 'search',\r\n initialState: {\r\n selectedSearchItem: localStorage.getItem('selectedSearchItem')\r\n ? JSON.parse(localStorage.getItem('selectedSearchItem'))\r\n : null\r\n },\r\n reducers: {\r\n setSelectedSearchItem: (state, action) => {\r\n localStorage.setItem('selectedSearchItem', JSON.stringify(action.payload))\r\n state.selectedSearchItem = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const {setSelectedSearchItem} = SearchSlice.actions;\r\n\r\nexport const selectSelectedSearchItem = state => state.search.selectedSearchItem;\r\n\r\nexport default SearchSlice.reducer;\r\n","import { createSlice } from '@reduxjs/toolkit';\r\n\r\n\r\nexport const AdvancedApiDataSlice = createSlice({\r\n name: 'AdvancedApiData',\r\n initialState: {\r\n TableData: localStorage.getItem('api_TD')\r\n ? JSON.parse(localStorage.getItem('api_TD'))\r\n : {},\r\n currentTableData: localStorage.getItem('api_cTD')\r\n ? JSON.parse(localStorage.getItem('api_cTD'))\r\n : {},\r\n loadingTableData: false,\r\n\r\n ChartsData: localStorage.getItem('api_CD')\r\n ? JSON.parse(localStorage.getItem('api_CD'))\r\n : {},\r\n currentChartsData: localStorage.getItem('api_cCD')\r\n ? JSON.parse(localStorage.getItem('api_cCD'))\r\n : {},\r\n loadingChartsData: false,\r\n\r\n LineChartsData: localStorage.getItem('api_lCD')\r\n ? JSON.parse(localStorage.getItem('api_lCD'))\r\n : {},\r\n currentLineChartsData: localStorage.getItem('api_clCD')\r\n ? JSON.parse(localStorage.getItem('api_clCD'))\r\n : {},\r\n loadingLineChartsData: false,\r\n\r\n MapsData: localStorage.getItem('api_MD')\r\n ? JSON.parse(localStorage.getItem('api_MD'))\r\n : {},\r\n currentMapsData: localStorage.getItem('api_cMD')\r\n ? JSON.parse(localStorage.getItem('api_cMD'))\r\n : {},\r\n loadingMapsData: false,\r\n\r\n datasForReport: {}\r\n },\r\n reducers: {\r\n setTableData: (state, action) => {\r\n // localStorage.setItem('api_TD', JSON.stringify(action.payload))\r\n state.TableData = action.payload;\r\n },\r\n setCurrentTableData: (state, action) => {\r\n // localStorage.setItem('api_cTD', JSON.stringify(action.payload))\r\n state.currentTableData = action.payload;\r\n },\r\n setLoadingTableData: (state, action) => {\r\n state.loadingTableData = action.payload;\r\n },\r\n\r\n setChartsData: (state, action) => {\r\n // localStorage.setItem('api_CD', JSON.stringify(action.payload))\r\n state.ChartsData = action.payload;\r\n },\r\n setCurrentChartsData: (state, action) => {\r\n // localStorage.setItem('api_cCD', JSON.stringify(action.payload))\r\n state.currentChartsData = action.payload;\r\n },\r\n setLoadingChartsData: (state, action) => {\r\n state.loadingChartsData = action.payload;\r\n },\r\n\r\n setLineChartsData: (state, action) => {\r\n // localStorage.setItem('api_lCD', JSON.stringify(action.payload))\r\n state.LineChartsData = action.payload;\r\n },\r\n setCurrentLineChartsData: (state, action) => {\r\n // localStorage.setItem('api_clCD', JSON.stringify(action.payload))\r\n state.currentLineChartsData = action.payload;\r\n },\r\n setLoadingLineChartsData: (state, action) => {\r\n state.loadingLineChartsData = action.payload;\r\n },\r\n\r\n setMapsData: (state, action) => {\r\n // localStorage.setItem('api_MD', JSON.stringify(action.payload))\r\n state.MapsData = action.payload;\r\n },\r\n setCurrentMapsData: (state, action) => {\r\n // localStorage.setItem('api_cMD', JSON.stringify(action.payload))\r\n state.currentMapsData = action.payload;\r\n },\r\n setLoadingMapsData: (state, action) => {\r\n state.loadingMapsData = action.payload;\r\n },\r\n\r\n setReportData: (state, action) => {\r\n state.datasForReport = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const {\r\n setTableData,\r\n setCurrentTableData,\r\n setLoadingTableData,\r\n\r\n setChartsData,\r\n setCurrentChartsData,\r\n setLoadingChartsData,\r\n\r\n setLineChartsData,\r\n setCurrentLineChartsData,\r\n setLoadingLineChartsData,\r\n\r\n setMapsData,\r\n setCurrentMapsData,\r\n setLoadingMapsData,\r\n\r\n setReportData\r\n\r\n} = AdvancedApiDataSlice.actions;\r\n\r\nexport const selectTableData = state => state.AdvancedApiData.TableData;\r\nexport const selectCurrentTableData = state => state.AdvancedApiData.currentTableData;\r\nexport const selectLoadingTableData = state => state.AdvancedApiData.loadingTableData;\r\n\r\nexport const selectChartsData = state => state.AdvancedApiData.ChartsData;\r\nexport const selectCurrentChartsData = state => state.AdvancedApiData.currentChartsData;\r\nexport const selectLoadingChartsData = state => state.AdvancedApiData.loadingChartsData\r\n\r\nexport const selectLineChartsData = state => state.AdvancedApiData.LineChartsData;\r\nexport const selectCurrentLineChartsData = state => state.AdvancedApiData.currentLineChartsData;\r\nexport const selectLoadingLineChartsData = state => state.AdvancedApiData.loadingLineChartsData;\r\n\r\nexport const selectMapsData = state => state.AdvancedApiData.MapsData;\r\nexport const selectCurrentMapsData = state => state.AdvancedApiData.currentMapsData;\r\nexport const selectLoadingMapsData = state => state.AdvancedApiData.loadingMapsData;\r\n\r\nexport const selectReportData = state => state.AdvancedApiData.datasForReport;\r\n\r\nexport default AdvancedApiDataSlice.reducer;\r\n","import { createSlice } from '@reduxjs/toolkit';\r\n\r\n/**\r\n * AdvMap Slice\r\n *\r\n * exports reducer ***AdvMap.reducer***\r\n *\r\n * ----\r\n *\r\n * @alias AdvMap\r\n *\r\n * @module AdvMap\r\n * @category . Redux store\r\n * */\r\n\r\nexport const AdvMapSlice = createSlice({\r\n name: 'AdvMap',\r\n initialState: {\r\n generalOptions: localStorage.getItem('am_GO')\r\n ? JSON.parse(localStorage.getItem('am_GO'))\r\n : {\r\n mapTitle: \"\",\r\n selectedJt: '',\r\n selectedYear: \"\",\r\n selectedWSK: [],\r\n },\r\n kartogramOptions: localStorage.getItem('am_KO')\r\n ? JSON.parse(localStorage.getItem('am_KO'))\r\n : {\r\n display: true,\r\n wskObject: null\r\n },\r\n kartodiagramOptions: localStorage.getItem('am_KdO')\r\n ? JSON.parse(localStorage.getItem('am_KdO'))\r\n : {\r\n display: false,\r\n wskObject: null\r\n },\r\n mapDimensions: localStorage.getItem('am_MD')\r\n ? JSON.parse(localStorage.getItem('am_MD'))\r\n : {\r\n zoom: 0.1,\r\n center: null\r\n },\r\n },\r\n reducers: {\r\n setGeneralOptions: (state, action) => {\r\n localStorage.setItem('am_GO', JSON.stringify(action.payload))\r\n state.generalOptions = action.payload;\r\n },\r\n setKartogramOptions: (state, action) => {\r\n localStorage.setItem('am_KO', JSON.stringify(action.payload))\r\n state.kartogramOptions = action.payload;\r\n },\r\n setKartodiagramOptions: (state, action) => {\r\n localStorage.setItem('am_KdO', JSON.stringify(action.payload))\r\n state.kartodiagramOptions = action.payload;\r\n },\r\n setMapDimensions: (state, action) => {\r\n localStorage.setItem('am_MD', JSON.stringify(action.payload))\r\n state.mapDimensions = action.payload;\r\n }\r\n },\r\n});\r\n\r\nexport const {\r\n setGeneralOptions,\r\n setKartogramOptions,\r\n setKartodiagramOptions,\r\n setMapDimensions,\r\n} = AdvMapSlice.actions;\r\n\r\nexport const getGeneralOptions = state => state.AdvMap.generalOptions;\r\nexport const getKartogramOptions = state => state.AdvMap.kartogramOptions;\r\nexport const getKartodiagramOptions = state => state.AdvMap.kartodiagramOptions;\r\nexport const getMapDimensions = state => state.AdvMap.mapDimensions;\r\n\r\nexport const selectSelectedMapYear = state => state.AdvMap.generalOptions.selectedYear;\r\nexport const selectSelectedKartogramWskObj = state => state.AdvMap.kartogramOptions.wskObject;\r\nexport const selectSelectedKartodiagramWskObj = state => state.AdvMap.kartodiagramOptions.wskObject;\r\n\r\nexport default AdvMapSlice.reducer;\r\n","import { createSlice, dispatch } from \"@reduxjs/toolkit\";\r\nimport { get, set } from \"./_idb\";\r\n\r\nexport const AdvReportSlice = createSlice({\r\n name: \"AdvReport\",\r\n initialState: {\r\n // options: localStorage.getItem(\"ARO\")\r\n // ? JSON.parse(localStorage.getItem(\"ARO\"))\r\n // : {\r\n // isSaved: true,\r\n // landscape: false,\r\n // size: \"a4\",\r\n // reportType: \"html\",\r\n // reportTitle: \"\",\r\n // items: [],\r\n // wskIdsForMeta: [],\r\n // wskMetaNames: [],\r\n // },\r\n options: null,\r\n showPreviewHTML: false,\r\n isHiddenPreloaded: false,\r\n isLoadingElements: {},\r\n },\r\n reducers: {\r\n setReportOptions: (state, action) => {\r\n // localStorage.setItem('ARO', JSON.stringify(action.payload))\r\n set(\"ARO\", JSON.stringify(action.payload));\r\n state.options = action.payload;\r\n },\r\n setShowPreviewHTML: (state, action) => {\r\n state.showPreviewHTML = action.payload;\r\n },\r\n setIsHiddenPreloaded: (state, action) => {\r\n state.isHiddenPreloaded = action.payload;\r\n },\r\n setIsLoadingElements: (state, action) => {\r\n state.isLoadingElements = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const fetchReportFromIndexDB = () => (dispatch, getState) => {\r\n // console.log(\"%c fetchReportFromIndexDB \", \"background:#F00\");\r\n get(\"ARO\").then((val) => {\r\n val = val\r\n ? JSON.parse(val)\r\n : {\r\n isSaved: true,\r\n landscape: false,\r\n size: \"a4\",\r\n reportType: \"html\",\r\n reportTitle: \"\",\r\n items: [],\r\n wskIdsForMeta: [],\r\n wskMetaNames: [],\r\n };\r\n dispatch(setReportOptions(val));\r\n });\r\n};\r\n\r\nexport const { setReportOptions, setShowPreviewHTML, setIsHiddenPreloaded, setIsLoadingElements } =\r\n AdvReportSlice.actions;\r\n\r\nexport const selectReportOptions = (state) => state.AdvReport.options;\r\nexport const selectShowPreviewHTML = (state) => state.AdvReport.showPreviewHTML;\r\nexport const selectIsHiddenPreloaded = (state) => state.AdvReport.isHiddenPreloaded;\r\nexport const selectIsLoadingElements = (state) => state.AdvReport.isLoadingElements;\r\n\r\nexport default AdvReportSlice.reducer;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\n/**\r\n * AdvMapDialogs Slice\r\n *\r\n * exports reducer ***AdvMap.reducer***\r\n *\r\n * ----\r\n *\r\n * @alias AdvMapDialogs\r\n *\r\n * @module AdvMapDialogs\r\n * @category . Redux store\r\n * */\r\n\r\nexport const AdvMapDialogsSlice = createSlice({\r\n name: \"AdvMapDialogs\",\r\n initialState: {\r\n generalSettings: localStorage.getItem(\"amd_GS\")\r\n ? JSON.parse(localStorage.getItem(\"amd_GS\"))\r\n : {\r\n mouseMode: \"pointing\",\r\n parentsBorders: 0,\r\n presentMapFor: 0,\r\n mouseColor: \"#BBD531\",\r\n pointingColor: \"#BBD531\",\r\n selectingColor: \"#BBD531\",\r\n labelsColor: \"#BBD531\",\r\n boundariesColor: \"#000\",\r\n mapForColor: \"#BBD531\",\r\n enableLegend: true,\r\n enableScale: true,\r\n enableTitle: true,\r\n useShortNamesJT: false,\r\n intervalsForSelectedAreasOnly: false,\r\n selectedJtPresentMapFor: [],\r\n selectedData: [],\r\n highlightedData: [],\r\n },\r\n defaultGeneralSettings: {\r\n mouseMode: \"pointing\",\r\n parentsBorders: 0,\r\n presentMapFor: 0,\r\n mouseColor: \"#BBD531\",\r\n pointingColor: \"#BBD531\",\r\n selectingColor: \"#BBD531\",\r\n labelsColor: \"#BBD531\",\r\n boundariesColor: \"#000\",\r\n mapForColor: \"#BBD531\",\r\n enableLegend: true,\r\n enableScale: true,\r\n enableTitle: true,\r\n useShortNamesJT: false,\r\n intervalsForSelectedAreasOnly: false,\r\n selectedJtPresentMapFor: [],\r\n selectedData: [],\r\n highlightedData: [],\r\n },\r\n\r\n kartogramSettings: localStorage.getItem(\"amd_KS\")\r\n ? JSON.parse(localStorage.getItem(\"amd_KS\"))\r\n : {\r\n draggable: false,\r\n palettes: {\r\n // paletteBlue: ['#C7DFF2', '#AFD0ED', '#93C0E7', '#71B2E1', '#4AA3DA', '#0D93D3', '#0074b1','#0087CD'],\r\n paletteBlue: [\"#C7DFF2\", \"#AFD0ED\", \"#93C0E7\", \"#71B2E1\", \"#4AA3DA\", \"#0D93D3\", \"#0074b1\"],\r\n paletteGreen: [\"#DAECD4\", \"#CAE4C3\", \"#B8DCAE\", \"#A2D298\", \"#8DCA82\", \"#71C165\", \"#4CB848\"],\r\n // paletteCustom: ['#C7DFF2', '#AFD0ED', '#93C0E7', '#71B2E1', '#4AA3DA', '#0D93D3', '#0087CD']\r\n paletteCustom: [\"#C7DFF2\", \"#AFD0ED\", \"#93C0E7\", \"#71B2E1\", \"#4AA3DA\", \"#0D93D3\", \"#0074b1\"],\r\n },\r\n // currentPalette: ['#C7DFF2', '#AFD0ED', '#93C0E7', '#71B2E1', '#4AA3DA', '#0D93D3', '#0087CD'],\r\n currentPalette: [\"#C7DFF2\", \"#AFD0ED\", \"#93C0E7\", \"#71B2E1\", \"#4AA3DA\", \"#0D93D3\", \"#0074b1\"],\r\n customPalette: \"blue\",\r\n intervals: 5,//null, //5\r\n intervalsMap: null,\r\n classification: 1,\r\n reverseScale: false,\r\n openColorPicker: false,\r\n noDataColor: \"#CCCCCC\",\r\n apiMinMax: [],\r\n },\r\n defaultKartogramSettings: {\r\n draggable: false,\r\n // palettes: {\r\n // paletteBlue: ['#EFF3FF', '#BDD7E7', '#6BAED6', '#3182BD', '#08519C', '#EFF3FF', '#BDD7E7', '#6BAED6', '#3182BD', '#08519C'],\r\n // paletteGreen: ['#EDF8E9', '#BAE4B3', '#74C476', '#31A354', '#006D2C', '#EDF8E9', '#BAE4B3', '#74C476', '#31A354', '#006D2C'],\r\n // paletteCustom: ['#EFF3FF', '#BDD7E7', '#6BAED6', '#3182BD', '#08519C', '#EFF3FF', '#BDD7E7', '#6BAED6', '#3182BD', '#08519C']\r\n // },\r\n // currentPalette: ['#EFF3FF', '#BDD7E7', '#6BAED6', '#3182BD', '#08519C', '#EFF3FF', '#BDD7E7', '#6BAED6', '#3182BD', '#08519C'],\r\n palettes: {\r\n // paletteBlue: ['#C7DFF2', '#AFD0ED', '#93C0E7', '#71B2E1', '#4AA3DA', '#0D93D3', '#0074b1','#0087CD'],\r\n paletteBlue: [\"#C7DFF2\", \"#AFD0ED\", \"#93C0E7\", \"#71B2E1\", \"#4AA3DA\", \"#0D93D3\", \"#0074b1\"],\r\n paletteGreen: [\"#DAECD4\", \"#CAE4C3\", \"#B8DCAE\", \"#A2D298\", \"#8DCA82\", \"#71C165\", \"#4CB848\"],\r\n // paletteCustom: ['#C7DFF2', '#AFD0ED', '#93C0E7', '#71B2E1', '#4AA3DA', '#0D93D3', '#0087CD']\r\n paletteCustom: [\"#C7DFF2\", \"#AFD0ED\", \"#93C0E7\", \"#71B2E1\", \"#4AA3DA\", \"#0D93D3\", \"#0074b1\"],\r\n },\r\n // currentPalette: ['#C7DFF2', '#AFD0ED', '#93C0E7', '#71B2E1', '#4AA3DA', '#0D93D3', '#0087CD'],\r\n currentPalette: [\"#C7DFF2\", \"#AFD0ED\", \"#93C0E7\", \"#71B2E1\", \"#4AA3DA\", \"#0D93D3\", \"#0074b1\"],\r\n customPalette: \"blue\",\r\n intervals: 5,\r\n intervalsMap: null,\r\n classification: 1,\r\n reverseScale: false,\r\n openColorPicker: false,\r\n noDataColor: \"#CCCCCC\",\r\n apiMinMax: [],\r\n },\r\n\r\n kartodiagramSettings: localStorage.getItem(\"amd_KdS\")\r\n ? JSON.parse(localStorage.getItem(\"amd_KdS\"))\r\n : {\r\n classification: 1,\r\n draggable: false,\r\n intervals: 5,//null, //5,\r\n intervalsMap: null,\r\n shape: \"circle\",\r\n openColorPicker: false,\r\n shapeColor: \"#E5790C\",\r\n shapeSize: \"medium\",\r\n apiMinMax: [],\r\n },\r\n defaultKartodiagramSettings: {\r\n draggable: false,\r\n intervals: 5,\r\n intervalsMap: null,\r\n classification: 1,\r\n shape: \"circle\",\r\n openColorPicker: false,\r\n shapeColor: \"#E5790C\",\r\n shapeSize: \"medium\",\r\n apiMinMax: [],\r\n },\r\n },\r\n reducers: {\r\n setGeneralSettings: (state, action) => {\r\n localStorage.setItem(\"amd_GS\", JSON.stringify(action.payload));\r\n state.generalSettings = action.payload;\r\n },\r\n setKartogramSettings: (state, action) => {\r\n localStorage.setItem(\"amd_KS\", JSON.stringify(action.payload));\r\n state.kartogramSettings = action.payload;\r\n },\r\n setKartodiagramSettings: (state, action) => {\r\n localStorage.setItem(\"amd_KdS\", JSON.stringify(action.payload));\r\n state.kartodiagramSettings = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const { setGeneralSettings, setKartogramSettings, setKartodiagramSettings } = AdvMapDialogsSlice.actions;\r\n\r\nexport const getGeneralSettings = (state) => state.AdvMapDialogs.generalSettings;\r\nexport const getDefaultGeneralSettings = (state) => state.AdvMapDialogs.defaultGeneralSettings;\r\nexport const getKartogramSettings = (state) => state.AdvMapDialogs.kartogramSettings;\r\nexport const getDefaultKartogramSettings = (state) => state.AdvMapDialogs.defaultKartogramSettings;\r\nexport const getKartodiagramSettings = (state) => state.AdvMapDialogs.kartodiagramSettings;\r\nexport const getDefaultKartodiagramSettings = (state) => state.AdvMapDialogs.defaultKartodiagramSettings;\r\n\r\nexport default AdvMapDialogsSlice.reducer;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\nexport const BasicCommonSlice = createSlice({\r\n name: \"BasicCommon\",\r\n initialState: {\r\n shareMessage: false,\r\n },\r\n reducers: {\r\n setShareMessage: (state, action) => {\r\n state.shareMessage = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const { setShareMessage } = BasicCommonSlice.actions;\r\n\r\nexport const getShareMessage = (state) => state.BasicCommon.shareMessage;\r\n\r\nexport default BasicCommonSlice.reducer;\r\n","import {createSlice} from '@reduxjs/toolkit';\r\n\r\n/**\r\n * Indicators Slice\r\n *\r\n * exports reducer ***IndicatorsSlice.reducer***\r\n *\r\n * ----\r\n *\r\n * @alias IndicatorsSlice\r\n *\r\n * @example\r\n *\r\n * import {useSelector, useDispatch} from 'react-redux';\r\n * import {selectedIndicator, setIndicators, setSelectedIndicator} from 'path/to/appStore/Indicators';\r\n *\r\n * ...\r\n *\r\n * const MyComponent = () => {\r\n * const dispatch = useDispatch();\r\n *\r\n * //select\r\n * const selectedIndicator = useSelector(selectedIndicator);\r\n * // - or -\r\n * const selectedIndicator = useSelector(state => state.indicators.selectedIndicator)\r\n *\r\n * //set indicators\r\n * dispatch(setIndicators(ArrayOfObjects));\r\n * dispatch(setSelectedIndicator(Object));\r\n *\r\n * ...\r\n *\r\n * return(\r\n *
{JSON.stringify(selectedIndicator, null, 4)}
\r\n * )\r\n *\r\n * }\r\n * export default MyComponent\r\n *\r\n * @param {Object} initialState\r\n * @param {Object[]} initialState.indicators *array of objects*\r\n * @param {Object} initialState.selectedIndicator *Selected (current object)*\r\n *\r\n * @param {} selectors\r\n * @param {function} selectors.selectedIndicator returns object (current)\r\n *\r\n * @param {Object} reducers\r\n * @param {function} reducers.setIndicators Redux action to set `indicators` (from ***`${BASE_URL}/Data/GetWyszukajWskazniki/${nazwa}`***)\r\n * @param {function} reducers.setSelectedIndicator Redux action to set `selectedIndicator`\r\n *\r\n * @module IndicatorsSlice\r\n * @category . Redux store\r\n * */\r\n\r\nexport const IndicatorsSlice = createSlice({\r\n name: 'indicators',\r\n initialState: {\r\n indicators: [],\r\n selectedIndicator: null\r\n },\r\n reducers: {\r\n setIndicators: (state, action) => {\r\n state.indicators = action.payload;\r\n },\r\n setSelectedIndicator: (state, action) => {\r\n state.selectedIndicator = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const {setSelectedIndicator, setIndicators} = IndicatorsSlice.actions;\r\n\r\nexport const selectedIndicator = state => state.indicators.selectedIndicator;\r\n\r\nexport default IndicatorsSlice.reducer;\r\n","import {createSlice} from '@reduxjs/toolkit';\r\n\r\nexport const ReportSlice = createSlice({\r\n name: 'report',\r\n initialState: {\r\n reportData: null,\r\n exporting: false\r\n },\r\n reducers: {\r\n setReportData: (state, action) => {\r\n state.reportData = action.payload;\r\n },\r\n setExporting: (state, action) => {\r\n state.exporting = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const {setReportData, setExporting} = ReportSlice.actions;\r\n\r\nexport const reportData = state => state.report.reportData;\r\nexport const isExporting = state => state.report.exporting;\r\n\r\nexport default ReportSlice.reducer;\r\n","const SET_COLOR_SERIES = 'SET_COLOR_SERIES';\r\nconst SET_COLOR_HIGHLIGHT = 'SET_COLOR_HIGHLIGHT';\r\nconst SET_CHART = 'SET_CHART';\r\nconst SET_COLOR_LINE = 'SET_COLOR_LINE';\r\nconst SET_LEGEND = 'SET_LEGEND';\r\nconst SET_COLOR_BAR = 'SET_COLOR_BAR';\r\nconst SET_LEGEND_LINE = 'SET_LEGEND_LINE';\r\nconst SET_DEFAULT_WSK = 'SET_DEFAULT_WSK';\r\nconst SET_DEFAULT_YEAR = 'SET_DEFAULT_YEAR';\r\nconst SET_ABR_NAMES_OF_JT = 'SET_ABR_NAMES_OF_JT';\r\nconst SET_BAR_CHART_NAME = 'SET_BAR_CHART_NAME';\r\nconst SET_LINE_CHART_NAME ='SET_LINE_CHART_NAME';\r\nconst SET_BAR_DATA = 'SET_BAR_DATA';\r\nconst SET_LINE_DATA = 'SET_LINE_DATA';\r\nconst SHOW_LABEL_DATA = 'SHOW_LABEL_DATA';\r\nconst SET_DEFAULT_JT = 'SET_DEFAULT_JT';\r\nconst SET_FROM_YEAR = 'SET_FROM_YEAR';\r\nconst SET_TO_YEAR = 'SET_TO_YEAR';\r\nconst SET_SELECTED_WSK = 'SET_SELECTED_WSK';\r\nconst SET_SELECTED_JTS = 'SET_SELECTED_JTS';\r\nconst SET_SLICED_DATA_LINE = 'SET_SLICED_DATA_LINE';\r\nconst SET_MULTI_BAR_DATA = 'SET_MULTI_BAR_DATA';\r\nconst SET_SECOND_WSK = 'SET_SECOND_WSK';\r\nconst SET_SAVE_LEGEND_IN_SETTINGS = 'SET_SAVE_LEGEND_IN_SETTINGS';\r\nconst SET_SECOND_LEGEND = 'SET_SECOND_LEGEND';\r\nconst SET_BUTTONSORT_90 = 'SET_BUTTONSORT_90';\r\nconst SET_BUTTONSORT_09 = 'SET_BUTTONSORT_09';\r\nconst SET_BUTTONSORT_AB = 'SET_BUTTONSORT_AB';\r\nconst SET_BUTTONSORT_BA = 'SET_BUTTONSORT_BA';\r\n\r\nconst initialState = {\r\n colorOfSeries:'',\r\n colorOfHighlight:'#228b22',\r\n bar:true,\r\n line:false,\r\n colorLine:'#000080',\r\n colorBar:'#93ccea',\r\n legend: true,\r\n legendLine:true,\r\n defaultWSK : null,\r\n defaultYear: null,\r\n defaultJT: null,\r\n abbreviatedNamesOfJT: true,\r\n barChartName:'',\r\n lineChartName:'',\r\n barData:[],\r\n lineData:[], \r\n showLabelData: false,\r\n fromYear: null,\r\n toYear:null,\r\n wskSelected:null,\r\n selectedJTS:[],\r\n slicedDataLine:[],\r\n secondWSK: [],\r\n secondJT:[],\r\n secondLegend: null,\r\n multipleBarData:[], \r\n saveSettings:{\r\n legend: true,\r\n legendLine:true,\r\n abbreviatedNamesOfJT: true,\r\n showLabelData: false,\r\n },\r\n buttonSort90: true,\r\n buttonSort09:false,\r\n buttonSortAB: false,\r\n buttonSortBA: false\r\n \r\n}\r\n\r\nconst ChartsReducer = (state = initialState, action) => {\r\n switch (action.type) {\r\n\r\n case SET_COLOR_SERIES :\r\n return {\r\n ...state,\r\n colorOfSeries: action.payload,\r\n };\r\n\r\n case SET_COLOR_HIGHLIGHT : \r\n return {\r\n ...state,\r\n colorOfHighlight: action.payload,\r\n };\r\n\r\n case SET_CHART :\r\n return {\r\n ...state,\r\n ...action.payload\r\n };\r\n\r\n case SET_COLOR_LINE :\r\n return {\r\n ...state,\r\n colorLine: action.payload\r\n };\r\n\r\n case SET_COLOR_BAR :\r\n return {\r\n ...state,\r\n colorBar: action.payload\r\n };\r\n\r\n case SET_LEGEND :\r\n return{\r\n ...state,\r\n legend: action.payload\r\n };\r\n \r\n case SET_LEGEND_LINE :\r\n return {\r\n ...state,\r\n legendLine: action.payload\r\n };\r\n case SET_DEFAULT_WSK :\r\n return {\r\n ...state,\r\n defaultWSK: action.payload\r\n };\r\n case SET_DEFAULT_YEAR :\r\n return {\r\n ...state,\r\n defaultYear: action.payload\r\n };\r\n case SET_ABR_NAMES_OF_JT :\r\n return {\r\n ...state,\r\n abbreviatedNamesOfJT: action.payload\r\n };\r\n case SET_BAR_CHART_NAME :\r\n return {\r\n ...state,\r\n barChartName: action.payload\r\n };\r\n case SET_LINE_CHART_NAME :\r\n return {\r\n ...state,\r\n lineChartName: action.payload\r\n };\r\n case SET_BAR_DATA :\r\n return {\r\n ...state,\r\n barData: action.payload\r\n };\r\n case SET_LINE_DATA :\r\n return {\r\n ...state,\r\n lineData: action.payload\r\n }; \r\n case SHOW_LABEL_DATA :\r\n return {\r\n ...state,\r\n showLabelData: action.payload\r\n }; \r\n case SET_DEFAULT_JT:\r\n return {\r\n ...state,\r\n defaultJT: action.payload\r\n }; \r\n case SET_FROM_YEAR:\r\n return {\r\n ...state,\r\n fromYear: action.payload\r\n }; \r\n case SET_TO_YEAR:\r\n return {\r\n ...state,\r\n toYear: action.payload\r\n }; \r\n case SET_SELECTED_WSK:\r\n return {\r\n ...state,\r\n wskSelected: action.payload\r\n }; \r\n case SET_SELECTED_JTS:\r\n return {\r\n ...state,\r\n selectedJTS: action.payload\r\n }; \r\n case SET_SLICED_DATA_LINE:\r\n return {\r\n ...state,\r\n slicedDataLine: action.payload\r\n }; \r\n\r\n case SET_MULTI_BAR_DATA:\r\n return {\r\n ...state,\r\n multipleBarData: action.payload\r\n }; \r\n case SET_SECOND_WSK:\r\n return {\r\n ...state,\r\n secondWSK: action.payload\r\n }; \r\n case SET_SAVE_LEGEND_IN_SETTINGS:\r\n return {\r\n ...state,\r\n saveSettings: action.payload\r\n }; \r\n case SET_SECOND_LEGEND:\r\n return {\r\n ...state,\r\n secondLegend: action.payload\r\n }; \r\n case SET_BUTTONSORT_90:\r\n return{\r\n ...state, \r\n buttonSort90: action.payload\r\n };\r\n case SET_BUTTONSORT_09:\r\n return{\r\n ...state, \r\n buttonSort09: action.payload\r\n };\r\n case SET_BUTTONSORT_AB:\r\n return {\r\n ...state,\r\n buttonSortAB: action.payload\r\n };\r\n case SET_BUTTONSORT_BA:\r\n return {\r\n ...state,\r\n buttonSortBA: action.payload\r\n }\r\n default:\r\n return state;\r\n }\r\n}\r\n\r\n\r\nexport default ChartsReducer;\r\n\r\n\r\nexport const setColorOfSeries = colorOfSeries =>({\r\n type:'SET_COLOR_SERIES',\r\n payload: colorOfSeries\r\n});\r\n\r\nexport const setColorOfHighlight = (colorOfHighlight) => ({\r\n type: 'SET_COLOR_HIGHLIGHT',\r\n payload: colorOfHighlight,\r\n});\r\n\r\nexport const setChart = (bar, line) =>({\r\n type: 'SET_CHART',\r\n payload: {bar, line}\r\n});\r\n\r\nexport const setColorOfLine =(colorLine) =>({\r\n type:'SET_COLOR_LINE',\r\n payload: colorLine\r\n});\r\n\r\nexport const setLegend = (legend) =>({\r\n type:'SET_LEGEND',\r\n payload: legend\r\n});\r\n\r\nexport const setColorOfBar =(colorBar) =>({\r\n type:'SET_COLOR_BAR',\r\n payload: colorBar\r\n});\r\n\r\nexport const setLegendLine = (legendLine) =>({\r\n type: 'SET_LEGEND_LINE',\r\n payload: legendLine\r\n});\r\n\r\nexport const setDefaultWSK = (defaultWSK) => ({\r\n type: 'SET_DEFAULT_WSK',\r\n payload: defaultWSK\r\n});\r\n\r\nexport const setDefaultYear = (defaultYear) => ({\r\n type: 'SET_DEFAULT_YEAR',\r\n payload: defaultYear\r\n});\r\n\r\nexport const setAbbreviatedNamesOfJT = (abbreviatedNamesOfJT)=> ({\r\n type: 'SET_ABR_NAMES_OF_JT',\r\n payload: abbreviatedNamesOfJT\r\n});\r\n\r\nexport const setBarChartName = ( barChartName)=> ({\r\n type: 'SET_BAR_CHART_NAME',\r\n payload: barChartName\r\n});\r\n\r\nexport const setLineChartName = ( lineChartName)=> ({\r\n type: 'SET_LINE_CHART_NAME',\r\n payload: lineChartName\r\n});\r\n\r\nexport const setBarData = (barData)=> ({\r\n type: 'SET_BAR_DATA',\r\n payload: barData\r\n});\r\n\r\nexport const setLineData = (lineData)=> ({\r\n type: 'SET_LINE_DATA',\r\n payload: lineData\r\n});\r\n\r\nexport const setLabelData = (showLabelData)=> ({\r\n type: 'SHOW_LABEL_DATA',\r\n payload: showLabelData\r\n});\r\n\r\nexport const setDefaultJT = (defaultJT)=> ({\r\n type: 'SET_DEFAULT_JT',\r\n payload: defaultJT\r\n});\r\n\r\nexport const setFromYear = (fromYear)=> ({\r\n type: 'SET_FROM_YEAR',\r\n payload: fromYear\r\n});\r\n\r\nexport const setToYear = (toYear)=> ({\r\n type: 'SET_TO_YEAR',\r\n payload: toYear\r\n});\r\n\r\nexport const setSelectedWsk = (wskSelected)=> ({\r\n type: 'SET_SELECTED_WSK',\r\n payload: wskSelected\r\n});\r\n\r\nexport const setSelectedJTSToLineChart = (selectedJTS)=> ({\r\n type:'SET_SELECTED_JTS',\r\n payload: selectedJTS\r\n});\r\n\r\nexport const setSlicedDataLine = (slicedDataLine)=> ({\r\n type: 'SET_SLICED_DATA_LINE',\r\n payload: slicedDataLine\r\n});\r\n\r\nexport const setMultiBarData = ( multipleBarData)=> ({\r\n type: 'SET_MULTI_BAR_DATA',\r\n payload: multipleBarData\r\n});\r\n\r\nexport const setSecondWSK = (secondWSK)=> ({\r\n type: 'SET_SECOND_WSK',\r\n payload: secondWSK\r\n});\r\n\r\nexport const setSaveLegendInSettings = (legend,abbreviatedNamesOfJT,showLabelData)=> ({\r\n type: 'SET_SAVE_LEGEND_IN_SETTINGS',\r\n payload: {legend,abbreviatedNamesOfJT,showLabelData}\r\n});\r\n\r\nexport const setSecondLegend = (secondLegend)=> ({\r\n type: 'SET_SECOND_LEGEND',\r\n payload: secondLegend\r\n});\r\n\r\nexport const setButtonSort90 = (buttonSort90)=> ({\r\n type: 'SET_BUTTONSORT_90',\r\n payload: buttonSort90\r\n});\r\n\r\nexport const setButtonSort09 = (buttonSort09)=> ({\r\n type: 'SET_BUTTONSORT_09',\r\n payload: buttonSort09\r\n});\r\n\r\nexport const setButtonSortAB = (buttonSortAB)=> ({\r\n type: 'SET_BUTTONSORT_AB',\r\n payload: buttonSortAB\r\n});\r\n\r\nexport const setButtonSortBA = (buttonSortBA)=> ({\r\n type: 'SET_BUTTONSORT_BA',\r\n payload: buttonSortBA\r\n});","import jwt_decode from \"jwt-decode\";\r\nimport moment from \"moment\";\r\nimport axios from \"axios\";\r\nimport { BASE_URL } from \"../API/apiConfig\";\r\n\r\nimport { MIN_JWT_EXPIRE_DIFF } from \"../API/apiConfig\";\r\nimport { clear } from \"./_idb\";\r\n\r\nexport const processJWT = (store) => (next) => (action) => {\r\n const authToken = store.getState().AdvancedCommon.authToken;\r\n const authMessage = store.getState().AdvancedCommon.authMessage;\r\n\r\n let result = next(action);\r\n\r\n if (authToken) {\r\n const decoded = jwt_decode(authToken);\r\n const willExpire = moment(decoded.exp * 1000);\r\n const isNow = moment();\r\n const difference = willExpire.diff(isNow, \"miliseconds\");\r\n\r\n if (difference <= 0) {\r\n /** Expired. Logout. */\r\n\r\n /** log out */\r\n result = next({\r\n payload: null,\r\n type: \"AdvancedCommon/setAuthToken\",\r\n });\r\n\r\n result = next({\r\n payload: null,\r\n type: \"AdvancedCommon/setAuthMessage\",\r\n });\r\n\r\n /** Clear repo */\r\n result = next({ type: \"AdvRepozytorium/setCharts\", payload: [] });\r\n result = next({ type: \"AdvRepozytorium/setGroups\", payload: [] });\r\n result = next({ type: \"AdvRepozytorium/setMaps\", payload: [] });\r\n result = next({ type: \"AdvRepozytorium/setReports\", payload: [] });\r\n result = next({ type: \"AdvRepozytorium/setTables\", payload: [] });\r\n } else if (difference >= MIN_JWT_EXPIRE_DIFF) {\r\n /** Actual. Do nothing. (default 604190000) */\r\n // console.log(willExpire.diff(isNow, \"miliseconds\"), ': actual. Do nothing')\r\n\r\n if (authMessage) {\r\n result = next({\r\n payload: null,\r\n type: \"AdvancedCommon/setAuthMessage\",\r\n });\r\n }\r\n return result;\r\n } else {\r\n /** Once per 10 min */\r\n // console.log(willExpire.diff(isNow, \"miliseconds\"), ': renew ',)\r\n renewToken({ store, next });\r\n }\r\n }\r\n return result;\r\n};\r\n\r\nconst renewToken = async ({ store, next }) => {\r\n const state = store.getState().AdvancedCommon;\r\n const apiURL = `${BASE_URL}User/PostNowyToken`;\r\n let newToken = null;\r\n\r\n if (state.authRememberMe && state.authToken) {\r\n newToken = await axios\r\n .post(\r\n apiURL,\r\n {\r\n token: state.authToken,\r\n },\r\n {\r\n headers: {\r\n Authorization: `Bearer ${state.authToken}`,\r\n },\r\n }\r\n )\r\n .then((res) => {\r\n return res.data;\r\n })\r\n .catch((err) => {\r\n console.log(err, err.response);\r\n })\r\n .finally(() => {});\r\n\r\n next({\r\n payload: newToken,\r\n type: \"AdvancedCommon/setAuthToken\",\r\n });\r\n\r\n // return result\r\n }\r\n};\r\n","import { configureStore } from \"@reduxjs/toolkit\";\r\n\r\nimport AreasReducer from \"./Areas\";\r\nimport IndicatorsRedicer from \"./Indicators\";\r\nimport SearchReducer from \"./Search\";\r\nimport YearsReducer from \"./Years\";\r\nimport ReportReducer from \"./Report\";\r\nimport BasicAccordionReducer from \"./BasicAccordion\";\r\nimport BasicCommonReducer from \"./BasicCommon\";\r\nimport AdvancedJTReducer from \"./advTerritorialUnits\";\r\nimport AdvIndicatorsReducer from \"./advIndicators\";\r\nimport AdvancedCommonReducer from \"./AdvancedCommon\";\r\nimport AdvancedTableReducer from \"./advTable\";\r\nimport AdvRepozytoriumRedicer from \"./advRepozytorium\";\r\n\r\nimport ChartsReducer from \"./Charts\";\r\nimport AdvancedChartsReducer from \"./advCharts\";\r\n\r\nimport AdvMapReducer from \"./advMap\";\r\nimport AdvMapDialogsReducer from \"./advMapDialogs\";\r\nimport APPReducer from \"./APP\";\r\n\r\nimport AdvReportReducer from \"./advReport\";\r\n\r\nimport AdvancedApiDataReducer from \"./advApiData\";\r\n\r\nimport AdvDimensionsReducer from \"./advDimensions\";\r\n\r\nimport { processJWT } from \"./_middleware\";\r\n\r\n/** Application store\r\n *\r\n * @version 2.1.0\r\n *\r\n * @param {function} configureStore\r\n *\r\n * @property {Object} reducer\r\n * @property {AreasReducer} reducer.areas import reducer [***AreasSlice.reducer***](./module-AreasSlice.html)\r\n * @property {IndicatorsRedicer} reducer.indicators import reducer [***IndicatorsSlice.reducer***](./module-IndicatorsSlice.html)\r\n * @property {SearchReducer} reducer.search import reducer [***SearchSlice.reducer***](./module-SearchSlice.html)\r\n * @property {YearsReducer} reducer.years import reducer [***YearsSlice.reducer***](./module-YearsSlice.html)\r\n * @property {ReportReducer} reducer.report import reducer [***ReportSlice.reducer***](./module-ReportSlice.html)\r\n * @property {AdvancedJTReducer} reducer.territorialUnits import reducer [***AdvancedJTSlice.reducer***](./module-AdvancedJTSlice.html)\r\n * @property {AdvIndicatorsReducer} reducer.advIndicators import reducer [***AdvIndicatorsSlice.reducer***](./module-AdvIndicatorsSlice.html)\r\n * @property {AdvancedCommonReducer} reducer.AdvancedCommon import reducer [***AdvancedCommonSlice.reducer***](./module-AdvancedCommonSlice.html)\r\n * @property {AdvancedTableReducer} reducer.AdvancedTable import reducer [***AdvancedTableSlice.reducer***](./module-AdvancedTableSlice.html)\r\n * @property {AdvancedChartsReducer} reducer.AdvancedCharts import reducer [***AdvancedChartsSlice.reducer***](./module-AdvancedChartsSlice.html)\r\n * @property {AdvMapReducer} reducer.AdvMap import reducer [***AdvMapSlice.reducer***](./module-AdvMapSlice.html)\r\n * @property {APPReducer} reducer.APP import reducer [***APPSlice.reducer***](./module-APPSlice.html)\r\n *\r\n * @module _store\r\n * @category . Redux store\r\n */\r\n\r\nexport default configureStore({\r\n reducer: {\r\n areas: AreasReducer,\r\n indicators: IndicatorsRedicer,\r\n search: SearchReducer,\r\n years: YearsReducer,\r\n report: ReportReducer,\r\n BasicAccordion: BasicAccordionReducer,\r\n BasicCommon: BasicCommonReducer,\r\n AdvancedApiData: AdvancedApiDataReducer,\r\n AdvancedJT: AdvancedJTReducer,\r\n AdvIndicators: AdvIndicatorsReducer,\r\n AdvDimensions: AdvDimensionsReducer,\r\n AdvancedCommon: AdvancedCommonReducer,\r\n AdvancedTable: AdvancedTableReducer,\r\n charts: ChartsReducer,\r\n AdvancedCharts: AdvancedChartsReducer,\r\n AdvMap: AdvMapReducer,\r\n AdvMapDialogs: AdvMapDialogsReducer,\r\n APP: APPReducer,\r\n AdvRepozytorium: AdvRepozytoriumRedicer,\r\n AdvReport: AdvReportReducer,\r\n },\r\n middleware: (getDefaultMiddleware) =>\r\n getDefaultMiddleware({\r\n serializableCheck: false,\r\n immutableCheck: false,\r\n }).concat(processJWT),\r\n});\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\nexport const BasicAccordionSlice = createSlice({\r\n name: \"BasicAccordion\",\r\n initialState: {\r\n expandedAccordion: \"bars\",\r\n limitDate4LineChart: localStorage.getItem(\"ld4lc\") ? JSON.parse(localStorage.getItem(\"ld4lc\")) : false,\r\n },\r\n reducers: {\r\n setExpandedAccordion: (state, action) => {\r\n state.expandedAccordion = action.payload;\r\n },\r\n setLimitDate4LineChart: (state, action) => {\r\n localStorage.setItem(\"ld4lc\", JSON.stringify(action.payload));\r\n state.limitDate4LineChart = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const { setExpandedAccordion, setLimitDate4LineChart } = BasicAccordionSlice.actions;\r\n\r\nexport const selectedExpandedAccordion = (state) => state.BasicAccordion.expandedAccordion;\r\nexport const getLimitDate4LineChart = (state) => state.BasicAccordion.limitDate4LineChart;\r\n\r\nexport default BasicAccordionSlice.reducer;\r\n","import { createMuiTheme } from \"@material-ui/core/styles\";\r\nimport { fade } from \"@material-ui/core\";\r\n\r\nconst defaultTheme = createMuiTheme({\r\n palette: {\r\n primary: {\r\n main: \"#001D77\",\r\n },\r\n secondary: {\r\n main: \"#b9d330\",\r\n },\r\n error: {\r\n main: \"#D50000\",\r\n },\r\n },\r\n typography: {\r\n htmlFontSize: 18,\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontFamily: \"'Open Sans', sans-serif\",\r\n fontSize: 18,\r\n fontWeightLight: 300,\r\n fontWeightRegular: 400,\r\n fontWeightMedium: 500,\r\n fontWeightBold: 700,\r\n h1: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontWeight: 300,\r\n fontSize: \"6rem\",\r\n lineHeight: 1.167,\r\n letterSpacing: \"-0.01562em\",\r\n },\r\n h2: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontWeight: 300,\r\n fontSize: \"3.75rem\",\r\n lineHeight: 1.2,\r\n letterSpacing: \"-0.00833em\",\r\n },\r\n h3: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontWeight: 300,\r\n fontSize: \"3rem\",\r\n lineHeight: 1.167,\r\n letterSpacing: \"0em\",\r\n },\r\n h4: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontWeight: 300,\r\n fontSize: \"2.125rem\",\r\n lineHeight: 1.235,\r\n letterSpacing: \"0.00735em\",\r\n },\r\n h5: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontWeight: 300,\r\n fontSize: \"1.5rem\",\r\n lineHeight: 1.334,\r\n letterSpacing: \"0em\",\r\n },\r\n h6: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontWeight: 500,\r\n fontSize: \"1.25rem\",\r\n lineHeight: 1.6,\r\n letterSpacing: \"0.0075em\",\r\n },\r\n subtitle1: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontWeight: 400,\r\n fontSize: \"1rem\",\r\n lineHeight: 1.75,\r\n letterSpacing: \"0.00938em\",\r\n },\r\n subtitle2: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontWeight: 500,\r\n fontSize: \"0.875rem\",\r\n lineHeight: 1.57,\r\n letterSpacing: \"0.00714em\",\r\n },\r\n body1: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontWeight: 400,\r\n fontSize: \"1rem\",\r\n lineHeight: 1.5,\r\n letterSpacing: \"0.00938em\",\r\n },\r\n body2: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontWeight: 400,\r\n fontSize: \"0.875rem\",\r\n lineHeight: 1.43,\r\n letterSpacing: \"0.01071em\",\r\n },\r\n button: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontWeight: 500,\r\n fontSize: \"0.875rem\",\r\n lineHeight: 1.75,\r\n letterSpacing: \"0.02857em\",\r\n textTransform: \"uppercase\",\r\n },\r\n caption: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontWeight: 400,\r\n fontSize: \"0.75rem\",\r\n lineHeight: 1.66,\r\n letterSpacing: \"0.03333em\",\r\n },\r\n overline: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontWeight: 400,\r\n fontSize: \"0.75rem\",\r\n lineHeight: 2.66,\r\n letterSpacing: \"0.08333em\",\r\n textTransform: \"uppercase\",\r\n },\r\n },\r\n components: {\r\n MuiIconButton: {\r\n variants: [\r\n {\r\n props: { variant: \"acsent\", color: \"primary\" },\r\n style: {\r\n background: \"transparent\",\r\n color: \"#001D77\",\r\n },\r\n },\r\n ],\r\n },\r\n },\r\n});\r\n\r\n// console.log(defaultTheme);\r\n\r\nconst { breakpoints } = defaultTheme;\r\n\r\nconst outline = {\r\n outlineOffset: 3,\r\n outlineColor: \"#101010\",\r\n outlineStyle: \"solid\",\r\n outlineWidth: 2,\r\n};\r\n\r\nconst theme = {\r\n ...defaultTheme,\r\n overrides: {\r\n MuiCssBaseline: {\r\n \"@global\": {\r\n html: {\r\n fontSize: 18,\r\n [breakpoints.down(\"sm\")]: {\r\n fontSize: \"0.875rem\",\r\n },\r\n [breakpoints.down(\"xs\")]: {\r\n fontSize: \"0.75rem\",\r\n },\r\n WebkitFontSmoothing: \"auto\",\r\n // overflowY: 'auto',\r\n // minWidth: '100vw',\r\n minHeight: \"100vh\",\r\n // overflowX: 'hidden',\r\n padding: 0,\r\n margin: 0,\r\n },\r\n body: {\r\n // fontFamily: 'Roboto, sans-serif',\r\n fontFamily: \"'Open Sans', sans-serif\",\r\n padding: \"0!important\",\r\n margin: 0,\r\n fontSize: 18,\r\n fontWeight: 400,\r\n backgroundColor: \"#FFFFFF\",\r\n // overflow: \"visible!important\",\r\n overflow: \"visible\",\r\n \"& :focus-visible\": {\r\n ...outline,\r\n },\r\n },\r\n },\r\n },\r\n MuiDivider: {\r\n root: {\r\n backgroundColor: \"#000000\",\r\n },\r\n },\r\n MuiButton: {\r\n root: {\r\n borderRadius: 23,\r\n // \"&:focus-visible\": {\r\n \"&:focus\": {\r\n ...outline,\r\n },\r\n },\r\n contained: {\r\n // background: 'linear-gradient(45deg, #282780 0%, #007ABD 100%)',\r\n background: \"transparent linear-gradient(249deg, #007ABD 0%, #282780 100%) 0% 0% no-repeat padding-box\",\r\n \"&.Mui-disabled\": {\r\n color: \"#AAA\",\r\n },\r\n },\r\n containedPrimary: {\r\n // textShadow: `-1px 0 ${defaultTheme.palette.primary.main}, 0 1px ${defaultTheme.palette.primary.main}, 1px 0 ${defaultTheme.palette.primary.main}, 0 -1px ${defaultTheme.palette.primary.main}`,\r\n },\r\n },\r\n MuiIconButton: {\r\n root: {\r\n // \"&:focus-visible\": {\r\n \"&:focus-visible\": {\r\n ...outline,\r\n },\r\n \"&:hover\": {\r\n backgroundColor: \"transparent\",\r\n },\r\n },\r\n colorPrimary: {\r\n // background: 'transparent linear-gradient(249deg, #007ABD 0%, #282780 100%) 0% 0% no-repeat padding-box',\r\n background: defaultTheme.palette.primary.main,\r\n \"&:hover\": {\r\n background: defaultTheme.palette.primary.light,\r\n backgroundColor: `${defaultTheme.palette.primary.dark}`,\r\n boxShadow: `0 0 2px 2px ${defaultTheme.palette.primary.dark}, \r\n inset -1px 0px 1px rgba(255, 255, 255,1), \r\n inset 1px 0px 1px rgba(255, 255, 255,1), \r\n inset 0px -1px 1px rgba(255, 255, 255,1), \r\n inset 0px 1px 1px rgba(255, 255, 255,1)`,\r\n // boxShadow: `0 0 2px rgba(0, 20, 83,1),\r\n // inset -1px 0px 1px ${defaultTheme.palette.primary.dark},\r\n // inset 1px 0px 1px ${defaultTheme.palette.primary.dark},\r\n // inset 0px -1px 1px ${defaultTheme.palette.primary.dark},\r\n // inset 0px 1px 1px ${defaultTheme.palette.primary.dark}`,\r\n },\r\n color: \"#FFF\",\r\n padding: defaultTheme.spacing(1),\r\n margin: defaultTheme.spacing(0, 1, 0, 0),\r\n \"&.Mui-disabled\": {\r\n // color: \"#AAA!important\",\r\n color: \"#AAA\",\r\n // background: defaultTheme.palette.primary.light,\r\n },\r\n },\r\n },\r\n MuiCheckbox: {\r\n root: {\r\n // \"&:focus\": {\r\n // ...outline\r\n // },\r\n },\r\n colorPrimary: {\r\n background: \"transparent\",\r\n \"&:hover\": {\r\n background: \"transparent\",\r\n backgroundColor: \"rgba(0, 0, 0, 0.04)\",\r\n boxShadow: \"none\",\r\n },\r\n // color: defaultTheme.palette.primary.main,\r\n padding: defaultTheme.spacing(1),\r\n \"&.Mui-disabled\": {\r\n color: \"#AAA!important\",\r\n },\r\n \"&.Mui-checked\": {\r\n color: defaultTheme.palette.primary.main,\r\n },\r\n },\r\n },\r\n MuiRadio: {\r\n root: {},\r\n colorPrimary: {\r\n background: \"transparent\",\r\n \"&:hover\": {\r\n background: \"transparent\",\r\n backgroundColor: \"transparent\",\r\n },\r\n // color: defaultTheme.palette.primary.main,\r\n padding: defaultTheme.spacing(1),\r\n \"&.Mui-disabled\": {\r\n color: \"#AAA!important\",\r\n },\r\n \"&.Mui-checked\": {\r\n color: defaultTheme.palette.primary.main,\r\n },\r\n },\r\n },\r\n MuiSwitch: {\r\n switchBase: {\r\n color: \"#757575\",\r\n },\r\n track: {\r\n opacity: 0.15,\r\n },\r\n },\r\n MuiTooltip: {\r\n popper: {\r\n position: \"fixed\",\r\n [defaultTheme.breakpoints.down(\"xs\")]: {\r\n display: \"none\",\r\n },\r\n },\r\n tooltip: {\r\n // backgroundColor: \"#fff\",\r\n // color: \"rgba(0, 0, 0, 0.87)\",\r\n color: \"#fff\",\r\n backgroundColor: \"#616161\",\r\n // maxWidth: 320,\r\n width: \"auto\",\r\n fontSize: defaultTheme.typography.pxToRem(13),\r\n border: \"none\",\r\n boxShadow: \"rgb(174,174,174) 0px 0px 5px\",\r\n borderRadius: 4,\r\n padding: defaultTheme.spacing(1, 2),\r\n },\r\n },\r\n MuiTab: {\r\n root: {\r\n // \"&:focus-visible\": {\r\n \"&:focus-visible\": {\r\n ...outline,\r\n },\r\n },\r\n },\r\n },\r\n shape: {\r\n ...defaultTheme.shape,\r\n boxRadius: 20,\r\n boxedWrapper: {\r\n backgroundColor: \"#FFF\",\r\n // boxShadow: `0 0 36px ${fade(defaultTheme.palette.primary.main, 0.1)}`,\r\n boxShadow: \"3px 9px 35px #0000000D\",\r\n padding: defaultTheme.spacing(2, 3),\r\n borderRadius: 20,\r\n border: \"0.5px solid #D2D6DA\",\r\n [defaultTheme.breakpoints.down(\"xs\")]: {\r\n padding: defaultTheme.spacing(1, 2),\r\n borderRadius: 20,\r\n },\r\n },\r\n },\r\n props: {\r\n MuiTooltip: {\r\n // disableFocusListener: true,\r\n // interactive: true,\r\n onOpen: () => document.addEventListener(\"keydown\", handleKeyDownForTooltip),\r\n onClose: () => document.removeEventListener(\"keydown\", handleKeyDownForTooltip),\r\n },\r\n MuiButton: {\r\n disableFocusRipple: true,\r\n },\r\n MuiIconButton: {\r\n disableFocusRipple: true,\r\n },\r\n MuiTab: {\r\n disableFocusRipple: true,\r\n },\r\n MuiFab: {\r\n disableFocusRipple: true,\r\n },\r\n MuiDialog: {\r\n disableEscapeKeyDown: true,\r\n },\r\n },\r\n outline,\r\n};\r\n\r\n// console.log({ theme })\r\n\r\nexport default theme;\r\n\r\nfunction handleKeyDownForTooltip(nativeEvent) {\r\n if (nativeEvent.key === \"Escape\" || nativeEvent.key === \"Esc\") {\r\n let _el = document?.querySelector(\".MuiTooltip-popper\");\r\n\r\n if (_el && _el.parentNode) {\r\n // _el.style.display = \"none\";\r\n _el.removeAttribute(\"style\");\r\n }\r\n }\r\n}\r\n","import React, { Suspense } from \"react\";\r\n\r\nimport { useMatomo } from \"@datapunt/matomo-tracker-react\";\r\nimport { useSelector } from \"react-redux\";\r\nimport { getStoreVersion } from \"./appStore/APP\";\r\nimport { clear } from \"./appStore/_idb\";\r\nimport \"./common/i18n\";\r\n\r\nconst Routes = React.lazy(() => import(\"./routes\"));\r\nconst PageShareDataProducer = React.lazy(() => import(\"./common/PageShareDataProducer\"));\r\n\r\nfunction App() {\r\n const { enableLinkTracking } = useMatomo();\r\n enableLinkTracking();\r\n\r\n const storeVersion = useSelector(getStoreVersion);\r\n const storeMajor = Number(storeVersion?.split(\".\")[0] || -1);\r\n const storeMiddle = Number(storeVersion?.split(\".\")[1] || -1);\r\n const storageVersion = localStorage.getItem(\"sver.\", \"APP\");\r\n const xat = localStorage.getItem(\"x-a-t\", \"APP\");\r\n const storageMajor = Number(storageVersion?.split(\".\")[0] || -1);\r\n const storageMiddle = Number(storageVersion?.split(\".\")[1] || -1);\r\n\r\n if (storeMajor !== storageMajor) {\r\n console.log(\"%c CLEAR \", \"background:#F00;color:#FFF\", {\r\n storeVersion,\r\n storeMajor,\r\n storeMiddle,\r\n storageMajor,\r\n storageMiddle,\r\n xat,\r\n });\r\n clear().then(() => {\r\n localStorage.clear();\r\n localStorage.setItem(\"sver.\", storeVersion, \"APP\");\r\n localStorage.setItem(\"x-a-t\", xat, \"APP\");\r\n localStorage.setItem(\"sver.\", storeVersion);\r\n localStorage.setItem(\"x-a-t\", xat);\r\n window.location.reload();\r\n });\r\n } else {\r\n localStorage.setItem(\"sver.\", storeVersion, \"APP\");\r\n localStorage.setItem(\"x-a-t\", xat, \"APP\");\r\n localStorage.setItem(\"sver.\", storeVersion);\r\n localStorage.setItem(\"x-a-t\", xat);\r\n }\r\n\r\n return (\r\n Ładowanie...}>\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default App;\r\n","import i18n from \"i18next\";\r\nimport Backend from \"i18next-xhr-backend\";\r\nimport LanguageDetector from \"i18next-browser-languagedetector\";\r\n\r\nimport { initReactI18next } from \"react-i18next\";\r\n\r\nconst fallbackLng = [\"pl\"];\r\nconst availableLanguages = [\"en\", \"pl\"];\r\nconst detectionOptions = {\r\n order: [\"path\", \"localStorage\"],\r\n lookupQuerystring: \"lang\",\r\n lookupLocalStorage: \"i18nextLng\",\r\n};\r\n\r\ni18n.use(LanguageDetector)\r\n .use(Backend)\r\n .use(initReactI18next)\r\n .init({\r\n fallbackLng,\r\n debug: false,\r\n whitelist: availableLanguages,\r\n // lng: localStorage.getItem(\"lang\") || \"pl\",\r\n interpolation: {\r\n escapeValue: false,\r\n },\r\n detection: detectionOptions,\r\n // nsSeparator: false,\r\n // keySeparator: false,\r\n // saveMissing: true,\r\n backend: {\r\n loadPath: \"/locales/{{lng}}/{{ns}}.json\",\r\n },\r\n });\r\n\r\nexport default i18n;\r\n","import React from \"react\";\r\nimport ReactDOM from \"react-dom\";\r\nimport { Provider } from \"react-redux\";\r\nimport { MatomoProvider, createInstance } from \"@datapunt/matomo-tracker-react\";\r\n// import * as serviceWorker from \"./serviceWorker\";\r\nimport store from \"./appStore/_store\";\r\nimport { ThemeProvider } from \"@material-ui/core/styles\";\r\nimport theme from \"./theme\";\r\nimport App from \"./App\";\r\n\r\nconst matomoInstance = createInstance({\r\n urlBase: \"https://stats.stat.gov.pl\",\r\n // srcUrl: \"./js/matomo.js\",\r\n siteId:\r\n process?.env?.REACT_APP_MATOMO_IDSITE && !isNaN(Number(process?.env?.REACT_APP_MATOMO_IDSITE))\r\n ? Number(process?.env?.REACT_APP_MATOMO_IDSITE)\r\n : 1,\r\n disabled: false,\r\n heartBeat: {\r\n active: true,\r\n seconds: 10,\r\n },\r\n linkTracking: false,\r\n configurations: {\r\n disableCookies: true,\r\n setSecureCookie: true,\r\n setRequestMethod: \"POST\",\r\n },\r\n});\r\n\r\n/** Disable console in 'production'*/\r\nif (process.env.NODE_ENV === \"production\") {\r\n console.assert = () => {};\r\n console.count = () => {};\r\n console.debug = () => {};\r\n console.dir = () => {};\r\n console.dirxml = () => {};\r\n console.error = () => {};\r\n console.info = () => {};\r\n console.log = () => {};\r\n console.table = () => {};\r\n console.trace = () => {};\r\n console.warn = () => {};\r\n}\r\nif (process.env.NODE_ENV === \"development\") {\r\n console.error = (props) => {\r\n return props === \"Error in setSecureCookie: You cannot use `Secure` on http.\" ? \"\" : props;\r\n };\r\n}\r\n\r\nReactDOM.render(\r\n \r\n \r\n \r\n \r\n \r\n \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: https://bit.ly/CRA-PWA\r\n\r\n// serviceWorker.register();\r\n// serviceWorker.unregister();\r\n"],"sourceRoot":""}