{"version":3,"sources":["_store/TREE.js","_store/TABLE.js","_store/MAIN.js","theme.js","_store/CHARTS.js","_store/APP.js","_store/Accordion.js","reportWebVitals.js","App.js","_store/MAP.js","_store/index.js","components/common/i18n.js","index.js"],"names":["TREESlice","createSlice","name","initialState","treeData","selectedTreeItem","localStorage","getItem","JSON","parse","expandedItems","onTopId","scrolledItem","reducers","setTreeData","state","action","payload","setSelectedTreeItem","setItem","stringify","setExpandedItems","setOnTopId","setScrolledItem","actions","getSelectedTreeItem","TREE","getExpandedItems","getOnTopId","getScrolledItem","TABLESlice","tableData","currentSection","id","name_ang","currentIndicator","val","pre","fid","areas","loading","pageSize","setTableData","setCurrentSection","setCurrentIndicator","setTableAreas","setTableLoading","setPageSize","getTableData","TABLE","getCurrentSection","getCurrentIndicator","getTableAreas","getTableLoading","getPageSize","MAINSlice","defaultData","year","range","appRefs","setDefaultData","setYear","setRange","setAppRefs","getDefaultData","MAIN","getYear","getRange","defaultTheme","createTheme","palette","primary","main","light","lighter","secondary","background","typography","htmlFontSize","fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","h1","fontWeight","lineHeight","letterSpacing","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","button","textTransform","backgroundColor","caption","overline","breakpoints","theme","overrides","MuiCssBaseline","html","down","WebkitFontSmoothing","minHeight","padding","margin","body","overflow","MuiButton","root","borderRadius","MuiDivider","shape","boxRadius","boxedWrapper","boxShadow","spacing","border","CHARTSSlice","chartType","setChartType","getChartType","CHARTS","APPSlice","appError","leftDrawerOpen","drawerWidth","setAppError","setLeftDrawerOpen","setDrawerWidth","getLeftDrawerOpen","APP","AccordionSlice","expandedAccordion","setExpandedAccordion","selectedExpandedAccordion","Accordion","reportWebVitals","onPerfEntry","Function","then","_ref","getCLS","getFID","getFCP","getLCP","getTTFB","Routes","React","lazy","App","enableLinkTracking","useMatomo","_jsx","Suspense","fallback","children","MAPSlice","mapData","setMapData","configureStore","reducer","APPReducer","TREEReducer","MAINReducer","MAP","MAPReducer","TABLEReducer","CHARTSReducer","AccordionReducer","middleware","getDefaultMiddleware","serializableCheck","immutableCheck","i18n","use","Backend","initReactI18next","init","fallbackLng","debug","whitelist","lng","interpolation","escapeValue","backend","loadPath","matomoInstance","createInstance","urlBase","siteId","_process","process","_process$env","REACT_APP_MATOMO_IDSITE","isNaN","Number","_process2","_process2$env","_process3","_process3$env","disabled","heartBeat","active","seconds","linkTracking","configurations","disableCookies","setSecureCookie","setRequestMethod","ReactDOM","render","Fragment","Provider","store","ThemeProvider","MatomoProvider","value","document","getElementById"],"mappings":"6FAAA,4RAEO,MAAMA,EAAYC,YAAY,CACjCC,KAAM,OACNC,aAAc,CACVC,SAAU,GACVC,iBAAkBC,aAAaC,QAAQ,iBACjCC,KAAKC,MAAMH,aAAaC,QAAQ,kBAChC,KACNG,cAAeJ,aAAaC,QAAQ,iBAAmBC,KAAKC,MAAMH,aAAaC,QAAQ,kBAAoB,GAC3GI,QAASL,aAAaC,QAAQ,YAAcC,KAAKC,MAAMH,aAAaC,QAAQ,aAAe,KAC3FK,aAAc,MAElBC,SAAU,CACNC,YAAaA,CAACC,EAAOC,KACjBD,EAAMX,SAAWY,EAAOC,OAAO,EAEnCC,oBAAqBA,CAACH,EAAOC,KACzBV,aAAaa,QAAQ,gBAAiBX,KAAKY,UAAUJ,EAAOC,UAC5DF,EAAMV,iBAAmBW,EAAOC,OAAO,EAE3CI,iBAAkBA,CAACN,EAAOC,KACtBV,aAAaa,QAAQ,gBAAiBX,KAAKY,UAAUJ,EAAOC,UAC5DF,EAAML,cAAgBM,EAAOC,OAAO,EAExCK,WAAYA,CAACP,EAAOC,KAEhBD,EAAMJ,QAAUK,EAAOC,OAAO,EAElCM,gBAAiBA,CAACR,EAAOC,KACrBD,EAAMH,aAAeI,EAAOC,OAAO,MAKlC,YAAEH,EAAW,oBAAEI,EAAmB,iBAAEG,EAAgB,WAAEC,EAAU,gBAAEC,GAAoBvB,EAAUwB,QAGhGC,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nBH,cAAC8D,IAAa,CAACtH,MAAOA,IAAM2D,SACxBH,cAAC+D,IAAc,CAACC,MAAO9B,EAAe/B,SAClCH,cAACH,IAAG,YAKpBoE,SAASC,eAAe,SAM5BlF,a","file":"static/js/main.c588beed.chunk.js","sourcesContent":["import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\nexport const TREESlice = createSlice({\r\n name: \"TREE\",\r\n initialState: {\r\n treeData: [],\r\n selectedTreeItem: localStorage.getItem(\"tree.selected\")\r\n ? JSON.parse(localStorage.getItem(\"tree.selected\"))\r\n : null,\r\n expandedItems: localStorage.getItem(\"tree.expanded\") ? JSON.parse(localStorage.getItem(\"tree.expanded\")) : [],\r\n onTopId: localStorage.getItem(\"tree.top\") ? JSON.parse(localStorage.getItem(\"tree.top\")) : null,\r\n scrolledItem: null,\r\n },\r\n reducers: {\r\n setTreeData: (state, action) => {\r\n state.treeData = action.payload;\r\n },\r\n setSelectedTreeItem: (state, action) => {\r\n localStorage.setItem(\"tree.selected\", JSON.stringify(action.payload));\r\n state.selectedTreeItem = action.payload;\r\n },\r\n setExpandedItems: (state, action) => {\r\n localStorage.setItem(\"tree.expanded\", JSON.stringify(action.payload));\r\n state.expandedItems = action.payload;\r\n },\r\n setOnTopId: (state, action) => {\r\n // localStorage.setItem('tree.top', JSON.stringify(action.payload))\r\n state.onTopId = action.payload;\r\n },\r\n setScrolledItem: (state, action) => {\r\n state.scrolledItem = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const { setTreeData, setSelectedTreeItem, setExpandedItems, setOnTopId, setScrolledItem } = TREESlice.actions;\r\n\r\nexport const getTreeData = (state) => state.TREE.treeData;\r\nexport const getSelectedTreeItem = (state) => state.TREE.selectedTreeItem;\r\nexport const getExpandedItems = (state) => state.TREE.expandedItems;\r\nexport const getOnTopId = (state) => state.TREE.onTopId;\r\nexport const getScrolledItem = (state) => state.TREE.scrolledItem;\r\n\r\nexport default TREESlice.reducer;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\nexport const TABLESlice = createSlice({\r\n name: \"TABLE\",\r\n initialState: {\r\n tableData: localStorage.getItem(\"table.data\") ? JSON.parse(localStorage.getItem(\"table.data\")) : null,\r\n currentSection: localStorage.getItem(\"table.section\")\r\n ? JSON.parse(localStorage.getItem(\"table.section\"))\r\n : {\r\n id: 89,\r\n name: \"Wybrane dane statystyczne\",\r\n name_ang: \"Selected statistical data\",\r\n }, // : 0,\r\n currentIndicator: localStorage.getItem(\"table.indicator\")\r\n ? JSON.parse(localStorage.getItem(\"table.indicator\"))\r\n : // : null,\r\n {\r\n 2022: {\r\n val: 5510612,\r\n pre: 0,\r\n fid: 1,\r\n },\r\n id: \"89-531\",\r\n name: \"Ludność [osoba] \",\r\n name_ang: \"Population [person] \",\r\n },\r\n areas: localStorage.getItem(\"table.areas\") ? JSON.parse(localStorage.getItem(\"table.areas\")) : null,\r\n loading: false,\r\n pageSize: localStorage.getItem(\"table.pageSize\") ? JSON.parse(localStorage.getItem(\"table.pageSize\")) : 10,\r\n },\r\n reducers: {\r\n setTableData: (state, action) => {\r\n // localStorage.setItem('table.data', JSON.stringify(action.payload))\r\n state.tableData = action.payload;\r\n },\r\n setCurrentSection: (state, action) => {\r\n localStorage.setItem(\"table.section\", JSON.stringify(action.payload));\r\n state.currentSection = action.payload;\r\n },\r\n setCurrentIndicator: (state, action) => {\r\n localStorage.setItem(\"table.indicator\", JSON.stringify(action.payload));\r\n state.currentIndicator = action.payload;\r\n },\r\n setTableAreas: (state, action) => {\r\n localStorage.setItem(\"table.areas\", JSON.stringify(action.payload));\r\n state.areas = action.payload;\r\n },\r\n setTableLoading: (state, action) => {\r\n state.loading = action.payload;\r\n },\r\n setPageSize: (state, action) => {\r\n localStorage.setItem(\"table.pageSize\", JSON.stringify(action.payload));\r\n state.pageSize = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const { setTableData, setCurrentSection, setCurrentIndicator, setTableAreas, setTableLoading, setPageSize } =\r\n TABLESlice.actions;\r\n\r\nexport const getTableData = (state) => state.TABLE.tableData;\r\nexport const getCurrentSection = (state) => state.TABLE.currentSection;\r\nexport const getCurrentIndicator = (state) => state.TABLE.currentIndicator;\r\nexport const getTableAreas = (state) => state.TABLE.areas;\r\nexport const getTableLoading = (state) => state.TABLE.loading;\r\nexport const getPageSize = (state) => state.TABLE.pageSize;\r\n\r\nexport default TABLESlice.reducer;\r\n","import { createSlice } from '@reduxjs/toolkit';\r\n\r\nexport const MAINSlice = createSlice({\r\n name: 'MAIN',\r\n initialState: {\r\n defaultData: localStorage.getItem('main.defaultData')\r\n ? JSON.parse(localStorage.getItem('main.defaultData'))\r\n : null,\r\n year: localStorage.getItem('main.year')\r\n ? JSON.parse(localStorage.getItem('main.year'))\r\n : null,\r\n range: localStorage.getItem('main.range')\r\n ? JSON.parse(localStorage.getItem('main.range'))\r\n : null,\r\n appRefs: {}\r\n },\r\n reducers: {\r\n setDefaultData: (state, action) => {\r\n localStorage.setItem('main.defaultData', JSON.stringify(action.payload))\r\n state.defaultData = action.payload;\r\n },\r\n setYear: (state, action) => {\r\n localStorage.setItem('main.year', JSON.stringify(action.payload))\r\n state.year = action.payload;\r\n },\r\n setRange: (state, action) => {\r\n localStorage.setItem('main.range', JSON.stringify(action.payload))\r\n state.range = action.payload;\r\n },\r\n setAppRefs: (state, action) => {\r\n state.appRefs = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const { setDefaultData, setYear, setRange, setAppRefs } = MAINSlice.actions;\r\n\r\nexport const getDefaultData = state => state.MAIN.defaultData;\r\nexport const getYear = state => state.MAIN.year;\r\nexport const getRange = state => state.MAIN.range;\r\nexport const getAppRefs = state => state.MAIN.appRefs;\r\n\r\nexport default MAINSlice.reducer;\r\n","import { createTheme } from \"@material-ui/core/styles\";\r\n\r\nconst defaultTheme = createTheme({\r\n palette: {\r\n primary: {\r\n main: \"#142F4E\",\r\n light: \"#6677A1\",\r\n lighter: \"#017AC9\",\r\n },\r\n secondary: {\r\n main: \"#b9d330\",\r\n },\r\n\r\n background: {\r\n main: \"#F8F9FA\",\r\n },\r\n },\r\n typography: {\r\n htmlFontSize: 16,\r\n fontFamily: \"Open Sans, sans-serif\",\r\n fontSize: 16,\r\n fontWeightLight: 300,\r\n fontWeightRegular: 400,\r\n fontWeightMedium: 500,\r\n fontWeightBold: 700,\r\n h1: {\r\n fontFamily: \"Open Sans, 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: \"Open Sans, 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: \"Open Sans, 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: \"Open Sans, 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: \"Open Sans, 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: \"Open Sans, 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: \"Open Sans, 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: \"Open Sans, 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: \"Open Sans, 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: \"Open Sans, 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: \"Open Sans, 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 \"&:hover\": {\r\n backgroundColor: \"#142F4E\",\r\n },\r\n },\r\n caption: {\r\n fontFamily: \"Open Sans, 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: \"Open Sans, 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});\r\n\r\nconst { breakpoints } = defaultTheme;\r\n\r\nconst theme = {\r\n ...defaultTheme,\r\n overrides: {\r\n MuiCssBaseline: {\r\n \"@global\": {\r\n html: {\r\n fontSize: 16,\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 minHeight: \"100vh\",\r\n padding: 0,\r\n margin: 0,\r\n },\r\n body: {\r\n fontFamily: \"Open Sans, sans-serif\",\r\n padding: \"0!important\",\r\n margin: 0,\r\n fontSize: 16,\r\n fontWeight: 400,\r\n background: \"#F8F9FA\",\r\n overflow: \"visible!important\",\r\n },\r\n },\r\n },\r\n MuiButton: {\r\n root: {\r\n borderRadius: 23,\r\n },\r\n },\r\n\r\n MuiDivider: {\r\n root: {\r\n backgroundColor: \"#CCC\",\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: \"3px 9px 35px #0000000D\",\r\n padding: defaultTheme.spacing(2),\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};\r\n\r\nexport default theme;\r\n","import { createSlice } from '@reduxjs/toolkit';\r\n\r\nexport const CHARTSSlice = createSlice({\r\n name: 'CHARTS',\r\n initialState: {\r\n chartType: localStorage.getItem('chart.type')\r\n ? JSON.parse(localStorage.getItem('chart.type'))\r\n : 'bar',\r\n },\r\n reducers: {\r\n setChartType: (state, action) => {\r\n // localStorage.setItem('chart.type', JSON.stringify(action.payload))\r\n state.chartType = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const { setChartType } = CHARTSSlice.actions;\r\n\r\nexport const getChartType = state => state.CHARTS.chartType;\r\n\r\nexport default CHARTSSlice.reducer;\r\n","import { createSlice } from '@reduxjs/toolkit';\r\n\r\nexport const APPSlice = createSlice({\r\n name: 'APP',\r\n initialState: {\r\n appError: [],\r\n leftDrawerOpen: false,\r\n drawerWidth: 456\r\n },\r\n reducers: {\r\n setAppError: (state, action) => {\r\n state.appError = action.payload;\r\n },\r\n setLeftDrawerOpen: (state, action) => {\r\n state.leftDrawerOpen = action.payload;\r\n },\r\n setDrawerWidth: (state, action) => {\r\n state.drawerWidth = action.payload;\r\n },\r\n\r\n },\r\n});\r\n\r\nexport const { setAppError, setLeftDrawerOpen, setDrawerWidth } = APPSlice.actions;\r\n\r\nexport const getAppError = state => state.APP.appError;\r\nexport const getLeftDrawerOpen = state => state.APP.leftDrawerOpen;\r\nexport const getDrawerWidth = state => state.APP.drawerWidth;\r\n\r\nexport default APPSlice.reducer;\r\n","import { createSlice } from \"@reduxjs/toolkit\";\r\n\r\nexport const AccordionSlice = createSlice({\r\n name: \"Accordion\",\r\n initialState: {\r\n expandedAccordion: \"pine\",\r\n },\r\n reducers: {\r\n setExpandedAccordion: (state, action) => {\r\n state.expandedAccordion = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const { setExpandedAccordion } = AccordionSlice.actions;\r\n\r\nexport const selectedExpandedAccordion = (state) => state.Accordion.expandedAccordion;\r\n\r\nexport default AccordionSlice.reducer;\r\n","const reportWebVitals = onPerfEntry => {\r\n if (onPerfEntry && onPerfEntry instanceof Function) {\r\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\r\n getCLS(onPerfEntry);\r\n getFID(onPerfEntry);\r\n getFCP(onPerfEntry);\r\n getLCP(onPerfEntry);\r\n getTTFB(onPerfEntry);\r\n });\r\n }\r\n};\r\n\r\nexport default reportWebVitals;\r\n","import \"react-app-polyfill/ie11\";\r\nimport \"react-app-polyfill/stable\";\r\nimport React, { Suspense } from \"react\";\r\nimport { useMatomo } from \"@datapunt/matomo-tracker-react\";\r\n\r\nimport \"./components/common/i18n\";\r\n\r\nconst Routes = React.lazy(() => import(\"./routes\"));\r\n\r\nfunction App() {\r\n const { enableLinkTracking } = useMatomo();\r\n enableLinkTracking();\r\n return (\r\n Ładowanie...}>\r\n \r\n \r\n );\r\n}\r\n\r\nexport default App;\r\n","import { createSlice } from '@reduxjs/toolkit';\r\n\r\nexport const MAPSlice = createSlice({\r\n name: 'MAP',\r\n initialState: {\r\n mapData: localStorage.getItem('map.data')\r\n ? JSON.parse(localStorage.getItem('map.data'))\r\n : null,\r\n },\r\n reducers: {\r\n setMapData: (state, action) => {\r\n localStorage.setItem('map.data', JSON.stringify(action.payload))\r\n state.mapData = action.payload;\r\n },\r\n },\r\n});\r\n\r\nexport const { setMapData } = MAPSlice.actions;\r\n\r\nexport const getMapData = state => state.MAP.mapData;\r\n\r\nexport default MAPSlice.reducer;\r\n","import { configureStore } from \"@reduxjs/toolkit\";\r\n\r\nimport APPReducer from \"./APP\";\r\nimport TREEReducer from \"./TREE\";\r\nimport MAPReducer from \"./MAP\";\r\nimport MAINReducer from \"./MAIN\";\r\nimport TABLEReducer from \"./TABLE\";\r\nimport CHARTSReducer from \"./CHARTS\";\r\nimport AccordionReducer from \"./Accordion\";\r\n\r\nexport default configureStore({\r\n reducer: {\r\n APP: APPReducer,\r\n TREE: TREEReducer,\r\n MAIN: MAINReducer,\r\n MAP: MAPReducer,\r\n TABLE: TABLEReducer,\r\n CHARTS: CHARTSReducer,\r\n Accordion: AccordionReducer,\r\n },\r\n middleware: (getDefaultMiddleware) =>\r\n getDefaultMiddleware({\r\n serializableCheck: false,\r\n immutableCheck: false,\r\n }),\r\n});\r\n","import i18n from \"i18next\";\r\nimport Backend from \"i18next-xhr-backend\";\r\nimport { initReactI18next } from \"react-i18next\";\r\n\r\nconst fallbackLng = [\"pl\"];\r\nconst availableLanguages = [\"en\", \"pl\"];\r\n\r\ni18n.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 backend: {\r\n loadPath: \"/locales/{{lng}}/{{ns}}.json\",\r\n },\r\n });\r\n\r\nexport default i18n;\r\n","import \"react-app-polyfill/ie11\";\r\nimport \"react-app-polyfill/stable\";\r\nimport React from \"react\";\r\nimport ReactDOM from \"react-dom\";\r\nimport { Provider } from \"react-redux\";\r\nimport { ThemeProvider } from \"@material-ui/core/styles\";\r\nimport { MatomoProvider, createInstance } from \"@datapunt/matomo-tracker-react\";\r\n\r\nimport reportWebVitals from \"./reportWebVitals\";\r\n\r\nimport App from \"./App\";\r\nimport store from \"./_store\";\r\nimport theme from \"./theme\";\r\n\r\nconst matomoInstance = createInstance({\r\n urlBase: \"https://stats.stat.gov.pl\",\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 : 9,\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 // disableCookies: false,\r\n setSecureCookie: true,\r\n setRequestMethod: \"POST\",\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 to start measuring performance in your app, pass a function\r\n// to log results (for example: reportWebVitals(console.log))\r\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\r\nreportWebVitals();\r\n"],"sourceRoot":""}