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AAC,IAAA,CAAA1D,CAAA,CAAAwD,CAAA","sources":["webpack://_N_E/?6a59","webpack://_N_E/./src/pages/analytics/index.js","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/analytics\",\n function () {\n return require(\"private-next-pages/analytics/index.js\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/analytics\"])\n });\n }\n ","import React from 'react';\nimport styled from 'styled-components';\nimport { themeGet } from '@styled-system/theme-get';\nimport { useSelector } from 'react-redux';\nimport { useRouter } from 'next/router'; // Next.js router\nimport AuthSwitch from 'components/auth-switch';\nimport WarningNotification from 'components/warning-notification';\nimport Panoramic from 'components/analytics/panoramic';\nimport Header from 'theme/header';\nimport Body from 'theme/layouts/body';\nimport Text from 'theme/text';\nimport translations from 'translations';\nimport TopBar from 'components/top-bar';\nimport AnalyticsSubMenu from '../../components/analytics/analytics-sub-menu';\n\nconst StyledWarningNotification = styled(WarningNotification)`\n padding: ${themeGet('space.l')}px ${themeGet('space.l')}px 0;\n`;\n\nfunction AnalyticPage() {\n const { languageCode } = useSelector((state) => state.config);\n const router = useRouter(); // Ottieni il router di Next.js\n\n // Ottieni il valore di dataType dalla query string\n const { dataType } = router.query;\n\n // Determina l'activeKey in base a dataType\n const activeKey = !dataType || dataType === 'aggregated_data' || dataType === 'temporary_data' ? 'panoramic' : 'confirmed';\n\n return (\n \n \n \n\n \n {translations[languageCode].analytics}\n \n }\n />\n\n {/* Passa l'activeKey calcolato */}\n \n\n \n\n \n \n );\n}\n\nexport default AnalyticPage;","(self[\"webpackChunk_N_E\"] = self[\"webpackChunk_N_E\"] || []).push([[4583],{\n\n/***/ 60639:\n/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {\n\n\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/analytics\",\n function () {\n return __webpack_require__(40354);\n }\n ]);\n if(false) {}\n \n\n/***/ }),\n\n/***/ 40354:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7297);\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85893);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67294);\n/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(14141);\n/* harmony import */ var _styled_system_theme_get__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(50056);\n/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15313);\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11163);\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var components_auth_switch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(77566);\n/* harmony import */ var components_warning_notification__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(42805);\n/* harmony import */ var components_analytics_panoramic__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(55024);\n/* harmony import */ var theme_header__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(80387);\n/* harmony import */ var theme_layouts_body__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(89129);\n/* harmony import */ var theme_text__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(5799);\n/* harmony import */ var translations__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(99408);\n/* harmony import */ var components_top_bar__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(32095);\n/* harmony import */ var _components_analytics_analytics_sub_menu__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(58562);\n\nfunction _templateObject() {\n var data = (0,_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__/* [\"default\"] */ .Z)([\n \"\\n padding: \",\n \"px \",\n \"px 0;\\n\"\n ]);\n _templateObject = function _templateObject() {\n return data;\n };\n return data;\n}\n\n\n\n\n\n // Next.js router\n\n\n\n\n\n\n\n\n\nvar StyledWarningNotification = (0,styled_components__WEBPACK_IMPORTED_MODULE_15__/* [\"default\"] */ .ZP)(components_warning_notification__WEBPACK_IMPORTED_MODULE_7__/* [\"default\"] */ .Z).withConfig({\n componentId: \"sc-7fd23c50-0\"\n})(_templateObject(), (0,_styled_system_theme_get__WEBPACK_IMPORTED_MODULE_3__/* .themeGet */ .R)(\"space.l\"), (0,_styled_system_theme_get__WEBPACK_IMPORTED_MODULE_3__/* .themeGet */ .R)(\"space.l\"));\nfunction AnalyticPage() {\n var languageCode = (0,react_redux__WEBPACK_IMPORTED_MODULE_4__/* .useSelector */ .v9)(function(state) {\n return state.config;\n }).languageCode;\n var router = (0,next_router__WEBPACK_IMPORTED_MODULE_5__.useRouter)(); // Ottieni il router di Next.js\n // Ottieni il valore di dataType dalla query string\n var dataType = router.query.dataType;\n // Determina l'activeKey in base a dataType\n var activeKey = !dataType || dataType === \"aggregated_data\" || dataType === \"temporary_data\" ? \"panoramic\" : \"confirmed\";\n return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)(components_auth_switch__WEBPACK_IMPORTED_MODULE_6__/* [\"default\"] */ .Z, {\n children: [\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(components_top_bar__WEBPACK_IMPORTED_MODULE_13__/* [\"default\"] */ .Z, {}),\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(theme_layouts_body__WEBPACK_IMPORTED_MODULE_10__/* [\"default\"] */ .Z, {\n bg: \"primary_50\",\n height: \"100%\"\n }),\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(theme_header__WEBPACK_IMPORTED_MODULE_9__/* [\"default\"] */ .Z, {\n bg: \"white\",\n title: \"StreetLib Analytics\",\n style: {\n bg: \"white\",\n borderWidth: \"0\",\n borderBottomWidth: \"1px\",\n borderColor: \"primary_200\",\n borderStyle: \"solid\"\n },\n componentLeft: /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(theme_text__WEBPACK_IMPORTED_MODULE_11__/* [\"default\"] */ .Z, {\n ml: \"l\",\n fontSize: \"h2\",\n lineHeight: \"h2\",\n fontWeight: \"bold\",\n color: \"grey_600\",\n textAlign: \"left\",\n children: translations__WEBPACK_IMPORTED_MODULE_12__/* [\"default\"] */ .Z[languageCode].analytics\n })\n }),\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_components_analytics_analytics_sub_menu__WEBPACK_IMPORTED_MODULE_14__/* [\"default\"] */ .Z, {\n activeKey: activeKey\n }),\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(StyledWarningNotification, {}),\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(components_analytics_panoramic__WEBPACK_IMPORTED_MODULE_8__/* [\"default\"] */ .Z, {})\n ]\n });\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (AnalyticPage);\n\n\n/***/ })\n\n},\n/******/ function(__webpack_require__) { // webpackRuntimeModules\n/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }\n/******/ __webpack_require__.O(0, [1228,5937,8282,8446,280,4762,503,7624,6346,1515,9084,1814,6535,7566,2544,1253,3620,842,1219,5024,9774,2888,179], function() { return __webpack_exec__(60639); });\n/******/ var __webpack_exports__ = __webpack_require__.O();\n/******/ _N_E = __webpack_exports__;\n/******/ }\n]);"],"names":["self","push","__unused_webpack_module","__unused_webpack_exports","__webpack_require__","window","__NEXT_P","__webpack_exports__","r","_swc_helpers_src_tagged_template_literal_mjs__WEBPACK_IMPORTED_MODULE_0__","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__","styled_components__WEBPACK_IMPORTED_MODULE_15__","_styled_system_theme_get__WEBPACK_IMPORTED_MODULE_3__","react_redux__WEBPACK_IMPORTED_MODULE_4__","next_router__WEBPACK_IMPORTED_MODULE_5__","components_auth_switch__WEBPACK_IMPORTED_MODULE_6__","components_warning_notification__WEBPACK_IMPORTED_MODULE_7__","components_analytics_panoramic__WEBPACK_IMPORTED_MODULE_8__","theme_header__WEBPACK_IMPORTED_MODULE_9__","theme_layouts_body__WEBPACK_IMPORTED_MODULE_10__","theme_text__WEBPACK_IMPORTED_MODULE_11__","translations__WEBPACK_IMPORTED_MODULE_12__","components_top_bar__WEBPACK_IMPORTED_MODULE_13__","_components_analytics_analytics_sub_menu__WEBPACK_IMPORTED_MODULE_14__","_templateObject","data","Z","StyledWarningNotification","ZP","withConfig","componentId","R","languageCode","v9","state","config","dataType","router","useRouter","query","jsxs","children","jsx","bg","height","title","style","borderWidth","borderBottomWidth","borderColor","borderStyle","componentLeft","ml","fontSize","lineHeight","fontWeight","color","textAlign","analytics","activeKey","O","s","_N_E"],"sourceRoot":""}