@tmf_ciclica/ciclicastorybook 1.1.38 → 1.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +449 -447
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@charset "UTF-8";@import"https://unpkg.com/maplibre-gl@^5.3.0/dist/maplibre-gl.css";@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap";._ambitSelector_mcunf_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;height:100%;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39{font-size:18px;font-weight:600;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53{font-size:18px;font-weight:600;flex:.5}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._buttonsContainer_mcunf_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._ambitListContainer_mcunf_76{flex:1;width:100%}._ambitSelector_mcunf_2 ._newAmbitButtonContainer_mcunf_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px}._ambitItem_1qa6u_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:10px;width:100%;padding-bottom:30px;padding-top:30px}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitName_1qa6u_16{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;flex:1}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitDate_1qa6u_35{flex:.5}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38 button:disabled{opacity:.5;cursor:default}._generalButton_8d6ru_2{padding:5px 95px;border-radius:100px}._buttonsContainer_1audx_2{display:flex;gap:8px}._buttonsContainer_1audx_2._vertical_1audx_6{flex-direction:column}._buttonsContainer_1audx_2._horizontal_1audx_9{flex-direction:row}._button_1audx_2{background:transparent;border:none;display:flex;align-items:center;cursor:pointer;padding:4px;position:relative}._button_1audx_2:hover{opacity:.8}._button_1audx_2._active_1audx_25{font-weight:700}._button_1audx_2 ._buttonName_1audx_28{margin:0 4px}._left_19lnt_3{position:absolute;width:auto;bottom:50%;right:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000}._left_19lnt_3:after{content:"";z-index:-1;left:100%;top:50%;transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:#fff;position:absolute;border-top-color:transparent;border-bottom-color:transparent;border-right-color:transparent;transform-origin:center right}._top_19lnt_33{position:absolute;width:auto;bottom:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border-radius:4px;padding:10px;margin:0;white-space:nowrap;z-index:10;color:#000}._top_19lnt_33:after{content:"";z-index:-1;right:50%;top:100%;transform:translate(50%);border-width:.5em;border-style:solid;border-color:#fff;position:absolute;border-bottom-color:transparent;border-left-color:transparent;border-right-color:transparent;color:#000;transform-origin:center right}._bottom_19lnt_66{position:absolute;width:auto;top:calc(100% + 10px);right:50%;height:fit-content;transform:translate(50%);font-size:16px;background-color:#fff;border-radius:4px;padding:10px;margin:0;z-index:10;color:#000}._bottom_19lnt_66:after{content:"";z-index:-1;right:50%;bottom:100%;transform:translate(50%);border-width:.5em;border-style:solid;border-color:transparent;border-bottom-color:#fff;position:absolute;transform-origin:center right}._right_19lnt_97{position:absolute;width:auto;bottom:50%;left:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border-radius:4px;padding:20px;margin:0;white-space:nowrap;height:fit-content;color:#000;z-index:10}._right_19lnt_97:after{content:"";z-index:-1;right:100%;top:50%;color:#000;transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:#fff;position:absolute;border-top-color:transparent;border-bottom-color:transparent;border-left-color:transparent;transform-origin:center right}._AppliedFiltersContainer_s8ooe_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start}._AppliedFiltersContainer_s8ooe_2 ._AppliedFilterContent_s8ooe_10{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:row;align-items:center;font-size:16px;font-weight:400;height:35px;width:fit-content;padding:0 20px;border-radius:100px}._checkboxContainer_zld97_2{display:flex;align-items:center;gap:.5rem;font-size:14px;font-weight:400;cursor:pointer}._checkboxContainer_zld97_2 input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:10px;height:10px;border-radius:1px;background-color:#fff;cursor:pointer}._container_15vgv_2{padding-top:15px;font-size:14px}._container_15vgv_2 span{font-size:14px}._container_15vgv_2 ._unitLabel_15vgv_9{height:40px}._container_15vgv_2 ._slider_15vgv_12{height:6px;background-color:#ddd;border-radius:3px;position:relative}._container_15vgv_2 ._thumb_15vgv_18{height:20px;width:20px;background-color:#605b56;border-radius:50%;cursor:grab;top:-7px;position:absolute}._container_15vgv_2 ._track_15vgv_27{top:0;bottom:0;background:#605b56;border-radius:3px}._container_15vgv_2 ._labels_15vgv_33{display:flex;justify-content:space-between;font-size:14px;margin-top:10px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px;padding-bottom:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 label,._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input{cursor:pointer;font-size:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input[type=radio]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background-color:#fff;transition:background-color .2s ease;cursor:pointer;vertical-align:middle}._tematicalFiltersInputContainer_1vm1r_2 ._checkboxContainer_1vm1r_28{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px}._tematicalFiltersInputContainer_1vm1r_2 ._absoluteSliderContainer_1vm1r_37{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:flex-start}._FiltersAmbitContainer_6o4gt_2{width:100%;height:100%;padding:28.5px 0 0 24px}._FiltersAmbitContainer_6o4gt_2 ._FiltersAmbitHeader_6o4gt_7{display:flex;flex-wrap:nowrap;justify-content:start;gap:30px;flex-direction:column;align-items:start}._FiltersAmbitContainer_6o4gt_2 ._FiltersAmbitHeader_6o4gt_7 ._FiltersAmbitTitle_6o4gt_15{font-size:18px;font-weight:600;padding:0 0 26px;border-bottom:1.5px solid #605B56;width:100%}._FiltersAmbitContainer_6o4gt_2 ._FiltersAmbitHeader_6o4gt_7 ._FiltersAmbitDescription_6o4gt_22{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:column;align-items:start;padding:0 0 26px;font-size:16px;font-weight:400}._FiltersAmbitContainer_6o4gt_2 ._FiltersAmbitHeader_6o4gt_7 ._FiltersAmbitDescription_6o4gt_22 ._FiltersAmbitDescriptionTitle_6o4gt_33{font-size:18px;font-weight:600}._barChartContainer_d2f1z_2{height:100%;width:100%;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._graphicContainer_c9zrg_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;width:100%;border:1.5px solid black;padding:33px 50px;border-radius:20px}._graphicContainer_c9zrg_2 ._titleContainer_c9zrg_14{display:flex;flex-wrap:nowrap;gap:0;flex-direction:row;align-items:center;justify-content:center;margin-bottom:83px}._indicatorsCategory_1cu33_2{overflow:hidden}._indicatorsCategory_1cu33_2 ._title_1cu33_5{align-items:center;gap:10px;cursor:pointer;margin-bottom:25px}._indicatorsCategory_1cu33_2 ._list_1cu33_11{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._indicatorContainer_lw8gx_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:center;gap:10px}._indicatorContainer_lw8gx_2 ._indicatorNameContainer_lw8gx_11{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:row;align-items:center;gap:10px}._indicatorContainer_lw8gx_2 ._dot_lw8gx_20{border-radius:100px;width:16px;height:16px}._indicatorContainer_lw8gx_2 ._indicatorName_lw8gx_11{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_lw8gx_31{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:20px 0 0}._switchExternalContainer_lw8gx_31 ._switchType_lw8gx_40{margin:0;width:100%}._switchExternalContainer_lw8gx_31 ._switchType_lw8gx_40 ._switchTypeOptions_lw8gx_44{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_lw8gx_31 ._switchType_lw8gx_40 ._switchTypeOptions_lw8gx_44 ._optionContainer_lw8gx_55{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:10px;cursor:pointer}._switchExternalContainer_lw8gx_31 ._switchType_lw8gx_40 ._switchTypeOptions_lw8gx_44 ._optionContainer_lw8gx_55 ._customRadious_lw8gx_65{width:16px;height:16px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_lw8gx_31 ._switchType_lw8gx_40 ._switchTypeOptions_lw8gx_44 ._optionContainer_lw8gx_55 ._optionText_lw8gx_72{font-weight:400}._indicatorsSubCategory_1dzsi_2{overflow:hidden}._indicatorsSubCategory_1dzsi_2 h3{text-align:left}._indicatorsSubCategory_1dzsi_2 ._list_1dzsi_8{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:start;margin:20px 0;gap:20px}._indicatorsList_fklyu_2{width:100%;padding-left:30px}._indicatorsList_fklyu_2 ._title_fklyu_6{border-bottom:1px solid;padding-bottom:25px;margin-bottom:32px}._langSelector_o9enq_2{position:relative;width:fit-content;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;height:100%}._currentLang_o9enq_14{color:#404040;cursor:pointer;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:5px;text-transform:capitalize}._currentLang_o9enq_14 ._arrow_o9enq_26{width:10px}._currentLang_o9enq_14 ._prevImg_o9enq_29{width:20px}._langMenu_o9enq_33{position:absolute;width:80px;background:#000!important;border-radius:8px}._langMenu_o9enq_33 button{cursor:pointer;background:#000!important;color:#ccc;width:100%;padding:4px 8px;text-align:left}._langMenu_o9enq_33 button:first-child{border-radius:8px 8px 0 0}._langMenu_o9enq_33 button:last-child{border-radius:0 0 8px 8px}._langMenu_o9enq_33 button:hover{color:#cbcbcb;background-color:#fafafa!important}._legendContainer_atg3j_3{width:402px;background-color:#fdfdfd;color:#605b56;border:solid 1.5px #605b56;border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flexStart;padding:20px;position:relative}._legendContainer_atg3j_3 ._closeButton_atg3j_18{position:absolute;right:20px;top:20px;width:24px;height:24px;border:none;background:transparent;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center}._legendContainer_atg3j_3 ._closeButton_atg3j_18:before,._legendContainer_atg3j_3 ._closeButton_atg3j_18:after{content:"";position:absolute;width:16px;height:2px;background-color:#333}._legendContainer_atg3j_3 ._closeButton_atg3j_18:before{transform:rotate(45deg)}._legendContainer_atg3j_3 ._closeButton_atg3j_18:after{transform:rotate(-45deg)}._legendContainer_atg3j_3 ._titleContainer_atg3j_46{border-bottom:solid 1.5px #605b56}._legendContainer_atg3j_3 ._titleContainer_atg3j_46 h2{padding-bottom:16px}._legendContainer_atg3j_3 ._infoContainer_atg3j_52{padding-top:20px}._legendContainer_atg3j_3 ._infoContainer_atg3j_52 ul li{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:row;align-items:center}._legendContainer_atg3j_3 ._titleLegendList_atg3j_63{font-size:20px;padding-bottom:20px;margin-bottom:20px;margin-top:30px;border-bottom:solid 1.5px #605b56}._legendContainer_atg3j_3 ._legendListContainer_atg3j_70 ._gridContainer_atg3j_70{display:grid;grid-template-columns:auto;column-gap:20px;row-gap:15px}._legendContainer_atg3j_3 ._legendListContainer_atg3j_70 ._gridContainer_atg3j_70 ._elementLegendContainer_atg3j_76{display:grid;grid-template-columns:23px auto;align-items:center;gap:5px}._legendContainer_atg3j_3 ._legendListContainer_atg3j_70 ._gridContainer_atg3j_70 ._elementLegendContainer_atg3j_76 ._colorDot_atg3j_82{width:22px;height:22px;border-radius:50%;margin-right:10px}._legendContainer_atg3j_3 ._legendListContainer_atg3j_70 ._absoluteValueContainer_atg3j_88{position:relative}._legendContainer_atg3j_3 ._legendListContainer_atg3j_70 ._absoluteValueContainer_atg3j_88 ._absoluteValueColor_atg3j_91{height:130px;width:22px;border-radius:20px}._legendContainer_atg3j_3 ._legendListContainer_atg3j_70 ._absoluteValueContainer_atg3j_88 ._absoluteValueText_atg3j_96{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:flex-start;position:absolute;left:30px;top:0;height:100%}._legendContainer_atg3j_3 ._moreInfoContainer_atg3j_108{margin-top:30px;padding:8.5px 20px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;border:1.5px solid #605b56;border-radius:25px;font-size:16px;font-weight:600}._logo_1ewa6_2{padding:10px;height:100%}._logo_1ewa6_2 img{height:100%}._mapContainer_84pkf_2{width:100vw;height:100vh}._mapContainer_b0pyr_3{width:100vw;height:100vh;position:absolute;top:0;z-index:0}._FeaturePopUp_1gd6w_2 ._title_1gd6w_2{font-weight:600}._sectionBar_1egwc_2{height:70px;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid black;transition:width .3s ease}._leftContent_1egwc_14{display:flex;align-items:center;gap:12px}._textContainer_1egwc_20{display:flex;flex-direction:row;align-items:center;gap:8px}._title_1egwc_27{font-size:16px;font-weight:600;color:#000}._subtitle_1egwc_33{font-size:16px;color:#000}._rightContent_1egwc_38{display:flex;align-items:center;gap:8px}._slider_a19yo_2{position:absolute;padding:5px 20px;right:150px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;top:188px;transition:all .5s ease-out}._slider_a19yo_2 ._playButton_a19yo_17,._slider_a19yo_2 ._playButton_a19yo_17._hover_a19yo_20{background-color:transparent!important}._slider_a19yo_2 ._playButton_a19yo_17 img{height:30px;width:30px}._sliderOpen_a19yo_28{right:490px}._sliderResults_a19yo_32{position:absolute;top:75px;right:430px;padding:5px 20px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;transition:all .5s ease-out}._sliderResults_a19yo_32 ._playButton_a19yo_17,._sliderResults_a19yo_32 ._playButton_a19yo_17._hover_a19yo_20{background-color:transparent!important}._sliderResults_a19yo_32 ._playButton_a19yo_17 img{height:30px;width:30px}._TopNavMenuContainer_12mp4_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:fit-content;gap:80px;height:100%}._TopNavMenuContainer_12mp4_2 ._topNavOptions_12mp4_13{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer;padding:0 10px;text-align:center;border-bottom:5px solid transparent;border-top:5px solid transparent;height:100%}._TopNavMenuContainer_12mp4_2 ._active_12mp4_27{border-bottom:5px solid white}._UserMenuTrigger_uglss_2{height:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center}._header_13kbt_2{width:100%;display:flex;align-items:center;position:absolute;top:0;left:0;padding:0 16px;background-color:#fff;border-bottom:1px solid black}._header_13kbt_2 ._leftComponents_13kbt_13,._header_13kbt_2 ._centerComponents_13kbt_14,._header_13kbt_2 ._rightComponents_13kbt_15{position:absolute;top:0;bottom:0;display:flex;align-items:center}._header_13kbt_2 ._leftComponents_13kbt_13{left:16px}._header_13kbt_2 ._centerComponents_13kbt_14{left:50%;transform:translate(-50%)}._header_13kbt_2 ._rightComponents_13kbt_15{right:16px}._header_13kbt_2 ._componentsContainer_13kbt_32{height:100%;width:100%}._sidebar_1jqo2_2{position:fixed;top:0;right:0;height:100%;background-color:#fff;box-shadow:-2px 0 5px #0000001a;overflow-x:hidden;overflow-y:auto;transition:width .3s ease;z-index:1000;width:0}._open_1jqo2_16{border-left:1px solid #ddd}._content_1jqo2_20{position:relative;padding:20px;height:100%}._closeButton_1jqo2_26{position:absolute;top:10px;right:10px;font-size:24px;background:none;border:none;cursor:pointer;color:#333;transition:color .2s ease}._closeButton_1jqo2_26:hover{color:#000}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as g, jsx as i, Fragment as Ee } from "react/jsx-runtime";
|
|
3
3
|
import U, { useState as B, useEffect as L, useMemo as te, useLayoutEffect as Ke, useRef as he } from "react";
|
|
4
4
|
import e from "prop-types";
|
|
5
5
|
import { useTranslation as k, Trans as ge } from "react-i18next";
|
|
@@ -13,8 +13,8 @@ import ie from "maplibre-gl";
|
|
|
13
13
|
import { Protocol as Je } from "pmtiles";
|
|
14
14
|
import Qe, { Source as et, Layer as tt, NavigationControl as nt, Popup as it } from "react-map-gl/maplibre";
|
|
15
15
|
import { createSlice as Me } from "@reduxjs/toolkit";
|
|
16
|
-
import
|
|
17
|
-
import { createTheme as
|
|
16
|
+
import st from "@mui/material/Slider";
|
|
17
|
+
import { createTheme as ot, Box as rt } from "@mui/material";
|
|
18
18
|
import { ThemeProvider as at } from "@emotion/react";
|
|
19
19
|
import { NavLink as lt } from "react-router-dom";
|
|
20
20
|
const ct = "_ambitSelector_mcunf_2", dt = "_header_mcunf_13", pt = "_nameDateContainer_mcunf_23", ut = "_ambitName_mcunf_39", mt = "_ambitDate_mcunf_53", ht = "_buttonsContainer_mcunf_67", gt = "_ambitListContainer_mcunf_76", Ct = "_newAmbitButtonContainer_mcunf_80", R = {
|
|
@@ -33,9 +33,9 @@ const ct = "_ambitSelector_mcunf_2", dt = "_header_mcunf_13", pt = "_nameDateCon
|
|
|
33
33
|
ambitDate: vt,
|
|
34
34
|
ambitButtons: _t
|
|
35
35
|
}, xt = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e", wt = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", kt = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e", Nt = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", St = "data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205138'%3e%3cpath%20id='Vector'%20d='M12.95%200.408447C7.659%200.408447%202.84899%202.77185%200.0832465%206.72621C-0.0277488%206.88808%20-0.0277488%207.09621%200.0832465%207.25807C2.84439%2011.2125%207.65437%2013.5712%2012.95%2013.5712C18.2456%2013.5712%2023.0556%2011.2125%2025.8168%207.25807C25.9278%207.0962%2025.9278%206.88807%2025.8168%206.72621C23.051%202.77184%2018.241%200.408447%2012.95%200.408447ZM12.95%2011.2217C10.619%2011.2217%208.71812%209.32083%208.71812%206.98984C8.71812%204.65885%2010.619%202.75796%2012.95%202.75796C15.281%202.75796%2017.1819%204.65883%2017.1819%206.98984C17.1819%209.32085%2015.281%2011.2217%2012.95%2011.2217Z'%20fill='%23B32F5D'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%2010.2966C14.7777%2010.2966%2016.2583%208.81607%2016.2583%206.98974C16.2583%205.1634%2014.7777%203.68286%2012.9514%203.68286C11.1251%203.68286%209.64453%205.1634%209.64453%206.98974C9.64453%208.81607%2011.1251%2010.2966%2012.9514%2010.2966Z'%20fill='%23B32F5D'/%3e%3c/g%3e%3c/svg%3e", Tt = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e", Fe = ({
|
|
36
|
-
ambit:
|
|
36
|
+
ambit: s,
|
|
37
37
|
onClickCopy: d,
|
|
38
|
-
onClickDelete:
|
|
38
|
+
onClickDelete: o,
|
|
39
39
|
onClickFilters: n,
|
|
40
40
|
onClickAmbit: t,
|
|
41
41
|
isActive: r,
|
|
@@ -43,15 +43,15 @@ const ct = "_ambitSelector_mcunf_2", dt = "_header_mcunf_13", pt = "_nameDateCon
|
|
|
43
43
|
fontColor: a,
|
|
44
44
|
moreInfo: c
|
|
45
45
|
}) => {
|
|
46
|
-
const { nom: p, created_at: u, id: m, isBeingProcessed:
|
|
47
|
-
return /* @__PURE__ */
|
|
46
|
+
const { nom: p, created_at: u, id: m, isBeingProcessed: h } = s;
|
|
47
|
+
return /* @__PURE__ */ g(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
50
50
|
className: G.ambitItem,
|
|
51
51
|
style: { borderBottom: `1px solid ${a}` },
|
|
52
52
|
children: [
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
/* @__PURE__ */
|
|
53
|
+
/* @__PURE__ */ g("div", { className: G.ambitNameDate, onClick: () => t(m), children: [
|
|
54
|
+
/* @__PURE__ */ g("div", { className: G.ambitName, children: [
|
|
55
55
|
/* @__PURE__ */ i(
|
|
56
56
|
"img",
|
|
57
57
|
{
|
|
@@ -63,11 +63,11 @@ const ct = "_ambitSelector_mcunf_2", dt = "_header_mcunf_13", pt = "_nameDateCon
|
|
|
63
63
|
] }),
|
|
64
64
|
/* @__PURE__ */ i("div", { className: G.ambitDate, children: u ? new Date(u).toLocaleDateString() : "" })
|
|
65
65
|
] }),
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
|
|
68
|
-
/* @__PURE__ */ i("button", { onClick: () => n(m), disabled:
|
|
66
|
+
/* @__PURE__ */ g("div", { className: G.ambitButtons, children: [
|
|
67
|
+
h && /* @__PURE__ */ i("img", { src: Nt }),
|
|
68
|
+
/* @__PURE__ */ i("button", { onClick: () => n(m), disabled: s.is_default, children: /* @__PURE__ */ i("img", { src: kt }) }),
|
|
69
69
|
/* @__PURE__ */ i("button", { onClick: () => d(m), children: /* @__PURE__ */ i("img", { src: wt }) }),
|
|
70
|
-
/* @__PURE__ */ i("button", { onClick: () =>
|
|
70
|
+
/* @__PURE__ */ i("button", { onClick: () => o(m), disabled: s.is_default, children: /* @__PURE__ */ i("img", { src: xt }) })
|
|
71
71
|
] })
|
|
72
72
|
]
|
|
73
73
|
}
|
|
@@ -94,22 +94,22 @@ Fe.propTypes = {
|
|
|
94
94
|
const ve = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Mt = "_generalButton_8d6ru_2", Ft = {
|
|
95
95
|
generalButton: Mt
|
|
96
96
|
}, Be = ({
|
|
97
|
-
children:
|
|
97
|
+
children: s,
|
|
98
98
|
onClick: d,
|
|
99
|
-
fontColor:
|
|
99
|
+
fontColor: o,
|
|
100
100
|
borderColor: n
|
|
101
101
|
}) => /* @__PURE__ */ i(
|
|
102
102
|
"button",
|
|
103
103
|
{
|
|
104
104
|
className: Ft.generalButton,
|
|
105
|
-
style: { color:
|
|
105
|
+
style: { color: o, border: `1.5px solid ${n}` },
|
|
106
106
|
onClick: d,
|
|
107
|
-
children:
|
|
107
|
+
children: s
|
|
108
108
|
}
|
|
109
109
|
), Bt = ({
|
|
110
|
-
ambitList:
|
|
110
|
+
ambitList: s,
|
|
111
111
|
activeAmbitId: d,
|
|
112
|
-
fontColor:
|
|
112
|
+
fontColor: o = "#605B56",
|
|
113
113
|
activeColor: n,
|
|
114
114
|
nameLabel: t,
|
|
115
115
|
dateLabel: r,
|
|
@@ -119,37 +119,37 @@ const ve = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
119
119
|
onCLickNewAmbit: p = () => console.log("New ambit clicked"),
|
|
120
120
|
onClickCopy: u = (C) => console.log(`Copy ambit: ${C}`),
|
|
121
121
|
onCLickDelete: m = (C) => console.log(`Delete ambit: ${C}`),
|
|
122
|
-
onClickFilters:
|
|
123
|
-
onClickAmbit:
|
|
122
|
+
onClickFilters: h = (C) => console.log(`Filters clicked: ${C}`),
|
|
123
|
+
onClickAmbit: b = (C) => console.log(`OnCLickAmbit: ${C}`)
|
|
124
124
|
}) => {
|
|
125
|
-
const { t: C } = k(), [
|
|
125
|
+
const { t: C } = k(), [f, v] = B(s);
|
|
126
126
|
L(() => {
|
|
127
|
-
|
|
128
|
-
}, [
|
|
127
|
+
s && v(s);
|
|
128
|
+
}, [s]);
|
|
129
129
|
const y = (_) => {
|
|
130
|
-
if (
|
|
131
|
-
let w = [...
|
|
130
|
+
if (f && f.length > 0) {
|
|
131
|
+
let w = [...f];
|
|
132
132
|
w.sort((x, N) => x[_].localeCompare(N[_])), v(w);
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
|
-
return /* @__PURE__ */
|
|
135
|
+
return /* @__PURE__ */ g(
|
|
136
136
|
"div",
|
|
137
137
|
{
|
|
138
138
|
className: R.ambitSelector,
|
|
139
|
-
style: { color:
|
|
139
|
+
style: { color: o, ...c },
|
|
140
140
|
children: [
|
|
141
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ g(
|
|
142
142
|
"div",
|
|
143
143
|
{
|
|
144
144
|
className: R.header,
|
|
145
|
-
style: { borderBottom: `1px solid ${
|
|
145
|
+
style: { borderBottom: `1px solid ${o}` },
|
|
146
146
|
children: [
|
|
147
|
-
/* @__PURE__ */
|
|
148
|
-
/* @__PURE__ */ i("div", { className: R.ambitName, children: /* @__PURE__ */
|
|
147
|
+
/* @__PURE__ */ g("div", { className: R.nameDateContainer, children: [
|
|
148
|
+
/* @__PURE__ */ i("div", { className: R.ambitName, children: /* @__PURE__ */ g("button", { onClick: () => y("name"), children: [
|
|
149
149
|
/* @__PURE__ */ i("span", { children: C(t) }),
|
|
150
150
|
/* @__PURE__ */ i("img", { src: ve })
|
|
151
151
|
] }) }),
|
|
152
|
-
/* @__PURE__ */ i("div", { className: R.ambitDate, children: /* @__PURE__ */
|
|
152
|
+
/* @__PURE__ */ i("div", { className: R.ambitDate, children: /* @__PURE__ */ g("button", { onClick: () => y("date"), children: [
|
|
153
153
|
/* @__PURE__ */ i("span", { children: C(r) }),
|
|
154
154
|
/* @__PURE__ */ i("img", { src: ve })
|
|
155
155
|
] }) })
|
|
@@ -158,17 +158,17 @@ const ve = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
158
158
|
]
|
|
159
159
|
}
|
|
160
160
|
),
|
|
161
|
-
/* @__PURE__ */ i("div", { className: R.ambitListContainer, children:
|
|
161
|
+
/* @__PURE__ */ i("div", { className: R.ambitListContainer, children: f && f.length > 0 && f.map((_) => /* @__PURE__ */ i(
|
|
162
162
|
Fe,
|
|
163
163
|
{
|
|
164
164
|
isActive: d == _.id,
|
|
165
165
|
ambit: _,
|
|
166
|
-
fontColor:
|
|
166
|
+
fontColor: o,
|
|
167
167
|
activeColor: n,
|
|
168
168
|
onClickCopy: u,
|
|
169
169
|
onClickDelete: m,
|
|
170
|
-
onClickFilters:
|
|
171
|
-
onClickAmbit:
|
|
170
|
+
onClickFilters: h,
|
|
171
|
+
onClickAmbit: b
|
|
172
172
|
},
|
|
173
173
|
`ambitKey${_.id}`
|
|
174
174
|
)) }),
|
|
@@ -219,9 +219,9 @@ const Lt = "_buttonsContainer_1audx_2", Dt = "_vertical_1audx_6", $t = "_horizon
|
|
|
219
219
|
top: Vt,
|
|
220
220
|
bottom: Pt,
|
|
221
221
|
right: zt
|
|
222
|
-
}, Le = ({ text:
|
|
222
|
+
}, Le = ({ text: s, position: d, styleCustom: o = null }) => {
|
|
223
223
|
const { t: n } = k();
|
|
224
|
-
return /* @__PURE__ */ i("div", { className: `tooltip ${jt[d]}`, style:
|
|
224
|
+
return /* @__PURE__ */ i("div", { className: `tooltip ${jt[d]}`, style: o, children: n(s) });
|
|
225
225
|
};
|
|
226
226
|
Le.propTypes = {
|
|
227
227
|
text: e.string.isRequired,
|
|
@@ -229,9 +229,9 @@ Le.propTypes = {
|
|
|
229
229
|
styleCustom: e.object
|
|
230
230
|
};
|
|
231
231
|
const qt = ({
|
|
232
|
-
buttons:
|
|
232
|
+
buttons: s = [],
|
|
233
233
|
orientation: d = "horizontal",
|
|
234
|
-
showName:
|
|
234
|
+
showName: o = !0,
|
|
235
235
|
namePosition: n = "right",
|
|
236
236
|
useTooltip: t = !1,
|
|
237
237
|
tooltipPosition: r = "top"
|
|
@@ -242,29 +242,29 @@ const qt = ({
|
|
|
242
242
|
{
|
|
243
243
|
className: `${V.buttonsContainer} ${d === "vertical" && V.vertical}
|
|
244
244
|
${d === "horizontal" && V.horizontal}`,
|
|
245
|
-
children:
|
|
245
|
+
children: s.map((a, c) => {
|
|
246
246
|
const {
|
|
247
247
|
icon: p,
|
|
248
248
|
activeIcon: u,
|
|
249
249
|
isActive: m,
|
|
250
|
-
name:
|
|
251
|
-
onClick:
|
|
252
|
-
} = a, C = /* @__PURE__ */
|
|
253
|
-
|
|
254
|
-
/* @__PURE__ */ i("img", { src: m ? u : p, alt: l(
|
|
255
|
-
|
|
250
|
+
name: h,
|
|
251
|
+
onClick: b
|
|
252
|
+
} = a, C = /* @__PURE__ */ g(Ee, { children: [
|
|
253
|
+
o && n === "left" && /* @__PURE__ */ i("span", { className: V.buttonName, children: l(h) }),
|
|
254
|
+
/* @__PURE__ */ i("img", { src: m ? u : p, alt: l(h) }),
|
|
255
|
+
o && n === "right" && /* @__PURE__ */ i("span", { className: V.buttonName, children: l(h) })
|
|
256
256
|
] });
|
|
257
|
-
return /* @__PURE__ */
|
|
257
|
+
return /* @__PURE__ */ g("div", { className: "tooltip-parent", children: [
|
|
258
258
|
/* @__PURE__ */ i(
|
|
259
259
|
"button",
|
|
260
260
|
{
|
|
261
|
-
onClick:
|
|
261
|
+
onClick: b,
|
|
262
262
|
className: `${V.button}
|
|
263
263
|
${m && V.active}`,
|
|
264
264
|
children: C
|
|
265
265
|
}
|
|
266
266
|
),
|
|
267
|
-
t && /* @__PURE__ */ i(Le, { text:
|
|
267
|
+
t && /* @__PURE__ */ i(Le, { text: h, position: r })
|
|
268
268
|
] }, c);
|
|
269
269
|
})
|
|
270
270
|
}
|
|
@@ -287,13 +287,13 @@ qt.propTypes = {
|
|
|
287
287
|
useTooltip: e.bool,
|
|
288
288
|
tooltipPosition: e.oneOf(["top", "bottom", "left", "right"])
|
|
289
289
|
};
|
|
290
|
-
const Et = "_indicatorsCategory_1cu33_2", Kt = "_title_1cu33_5",
|
|
290
|
+
const Et = "_indicatorsCategory_1cu33_2", Kt = "_title_1cu33_5", se = {
|
|
291
291
|
indicatorsCategory: Et,
|
|
292
292
|
title: Kt
|
|
293
293
|
}, q = ({
|
|
294
|
-
isOpen:
|
|
294
|
+
isOpen: s,
|
|
295
295
|
onClick: d,
|
|
296
|
-
children:
|
|
296
|
+
children: o,
|
|
297
297
|
color: n,
|
|
298
298
|
activeColor: t = "#F8A925",
|
|
299
299
|
title: r = "Title",
|
|
@@ -305,35 +305,35 @@ const Et = "_indicatorsCategory_1cu33_2", Kt = "_title_1cu33_5", oe = {
|
|
|
305
305
|
titleMarginChildren: p = 25
|
|
306
306
|
}) => {
|
|
307
307
|
const { t: u } = k();
|
|
308
|
-
return /* @__PURE__ */
|
|
308
|
+
return /* @__PURE__ */ g(
|
|
309
309
|
Ce.div,
|
|
310
310
|
{
|
|
311
|
-
className:
|
|
311
|
+
className: se.indicatorsCategory,
|
|
312
312
|
initial: { height: `${l}px` },
|
|
313
|
-
animate: { height:
|
|
313
|
+
animate: { height: s ? "auto" : `${l}px` },
|
|
314
314
|
transition: { duration: 0.4 },
|
|
315
315
|
style: {
|
|
316
316
|
backgroundColor: "white",
|
|
317
|
-
borderBottom:
|
|
318
|
-
marginBottom:
|
|
317
|
+
borderBottom: s && c ? `1px solid ${t}` : "0px",
|
|
318
|
+
marginBottom: s ? "20px" : "0px"
|
|
319
319
|
},
|
|
320
320
|
children: [
|
|
321
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ g(
|
|
322
322
|
"h2",
|
|
323
323
|
{
|
|
324
324
|
style: {
|
|
325
325
|
...a,
|
|
326
326
|
marginBottom: p || "auto"
|
|
327
327
|
},
|
|
328
|
-
className: `${
|
|
328
|
+
className: `${se.title}`,
|
|
329
329
|
onClick: d,
|
|
330
330
|
children: [
|
|
331
|
-
/* @__PURE__ */ i("span", { style: { color:
|
|
332
|
-
/* @__PURE__ */ i("span", { style: { marginLeft: 12, color:
|
|
331
|
+
/* @__PURE__ */ i("span", { style: { color: s ? t : n }, children: s ? "-" : "+" }),
|
|
332
|
+
/* @__PURE__ */ i("span", { style: { marginLeft: 12, color: s ? t : n }, children: u(r) })
|
|
333
333
|
]
|
|
334
334
|
}
|
|
335
335
|
),
|
|
336
|
-
/* @__PURE__ */ i("div", { className:
|
|
336
|
+
/* @__PURE__ */ i("div", { className: se.content, children: o })
|
|
337
337
|
]
|
|
338
338
|
}
|
|
339
339
|
);
|
|
@@ -349,17 +349,17 @@ q.propTypes = {
|
|
|
349
349
|
showBottomBar: e.bool,
|
|
350
350
|
titleFontStyles: e.object
|
|
351
351
|
};
|
|
352
|
-
const
|
|
352
|
+
const ms = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), Zt = "data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%201L13.9996%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14%201L1.00044%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e", Ut = "_AppliedFiltersContainer_s8ooe_2", Ht = "_AppliedFilterContent_s8ooe_10", _e = {
|
|
353
353
|
AppliedFiltersContainer: Ut,
|
|
354
354
|
AppliedFilterContent: Ht
|
|
355
|
-
}, T = Ze((
|
|
355
|
+
}, T = Ze((s) => ({
|
|
356
356
|
activeCategory: "",
|
|
357
357
|
activeSubCategory: "",
|
|
358
358
|
selectedIndicator: "",
|
|
359
359
|
tematicalFiltersSelected: [],
|
|
360
360
|
fontColor: "#605B56",
|
|
361
361
|
inputsColor: "#605B56"
|
|
362
|
-
})), De = ({ title:
|
|
362
|
+
})), De = ({ title: s, onClick: d, isOpen: o = !0, textColor: n = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
|
|
363
363
|
const { t: l } = k(), { tematicalFiltersSelected: a } = T((p) => p), c = (p) => {
|
|
364
364
|
T.setState((u) => ({
|
|
365
365
|
tematicalFiltersSelected: u.tematicalFiltersSelected.filter(
|
|
@@ -370,11 +370,11 @@ const ho = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), Zt = "data
|
|
|
370
370
|
return /* @__PURE__ */ i(
|
|
371
371
|
q,
|
|
372
372
|
{
|
|
373
|
-
isOpen:
|
|
373
|
+
isOpen: o,
|
|
374
374
|
onClick: d,
|
|
375
|
-
title:
|
|
375
|
+
title: s ? l(s) : "Applied Filters",
|
|
376
376
|
activeColor: r,
|
|
377
|
-
children: /* @__PURE__ */ i("div", { className: _e.AppliedFiltersContainer, children: a == null ? void 0 : a.map((p, u) => /* @__PURE__ */
|
|
377
|
+
children: /* @__PURE__ */ i("div", { className: _e.AppliedFiltersContainer, children: a == null ? void 0 : a.map((p, u) => /* @__PURE__ */ g("div", { className: _e.AppliedFilterContent, style: { color: n, background: t }, children: [
|
|
378
378
|
l(p.name),
|
|
379
379
|
/* @__PURE__ */ i("img", { src: Zt, alt: "CloseIcon", onClick: () => c(p.code), style: { cursor: "pointer" } })
|
|
380
380
|
] }, u)) })
|
|
@@ -395,14 +395,14 @@ De.propTypes = {
|
|
|
395
395
|
),
|
|
396
396
|
activeColor: e.string
|
|
397
397
|
};
|
|
398
|
-
const $e = ({ title:
|
|
398
|
+
const $e = ({ title: s, onClick: d, isOpen: o = !0, textColor: n = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
|
|
399
399
|
const { t: l } = k(), { tematicalFiltersSelected: a } = T((c) => c);
|
|
400
400
|
return /* @__PURE__ */ i(
|
|
401
401
|
q,
|
|
402
402
|
{
|
|
403
|
-
isOpen:
|
|
403
|
+
isOpen: o,
|
|
404
404
|
onClick: d,
|
|
405
|
-
title:
|
|
405
|
+
title: s ? l(s) : "Geographical Filters",
|
|
406
406
|
activeColor: r,
|
|
407
407
|
children: "A"
|
|
408
408
|
}
|
|
@@ -419,20 +419,20 @@ $e.propTypes = {
|
|
|
419
419
|
const Gt = "_checkboxContainer_zld97_2", Yt = {
|
|
420
420
|
checkboxContainer: Gt
|
|
421
421
|
}, Ae = ({
|
|
422
|
-
onClick:
|
|
422
|
+
onClick: s,
|
|
423
423
|
containerStyles: d,
|
|
424
|
-
color:
|
|
424
|
+
color: o = "#605B56",
|
|
425
425
|
indicator: n,
|
|
426
426
|
value: t
|
|
427
427
|
}) => {
|
|
428
428
|
const { t: r } = k(), { title: l } = n || {}, { fontColor: a, inputsColor: c } = T((p) => p);
|
|
429
|
-
return /* @__PURE__ */
|
|
429
|
+
return /* @__PURE__ */ g(
|
|
430
430
|
"div",
|
|
431
431
|
{
|
|
432
|
-
style: { ...d, color:
|
|
432
|
+
style: { ...d, color: o },
|
|
433
433
|
role: "checkbox",
|
|
434
434
|
className: Yt.checkboxContainer,
|
|
435
|
-
onClick:
|
|
435
|
+
onClick: s,
|
|
436
436
|
children: [
|
|
437
437
|
/* @__PURE__ */ i(
|
|
438
438
|
"input",
|
|
@@ -463,43 +463,43 @@ Ae.propTypes = {
|
|
|
463
463
|
}),
|
|
464
464
|
checkedColor: e.string
|
|
465
465
|
};
|
|
466
|
-
function pe(
|
|
467
|
-
return pe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(
|
|
468
|
-
return
|
|
469
|
-
}, pe(
|
|
466
|
+
function pe(s, d) {
|
|
467
|
+
return pe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, n) {
|
|
468
|
+
return o.__proto__ = n, o;
|
|
469
|
+
}, pe(s, d);
|
|
470
470
|
}
|
|
471
|
-
function Wt(
|
|
472
|
-
|
|
471
|
+
function Wt(s, d) {
|
|
472
|
+
s.prototype = Object.create(d.prototype), s.prototype.constructor = s, pe(s, d);
|
|
473
473
|
}
|
|
474
|
-
function
|
|
475
|
-
return
|
|
474
|
+
function oe(s) {
|
|
475
|
+
return s && s.stopPropagation && s.stopPropagation(), s && s.preventDefault && s.preventDefault(), !1;
|
|
476
476
|
}
|
|
477
|
-
function re(
|
|
478
|
-
return
|
|
477
|
+
function re(s) {
|
|
478
|
+
return s == null ? [] : Array.isArray(s) ? s.slice() : [s];
|
|
479
479
|
}
|
|
480
|
-
function X(
|
|
481
|
-
return
|
|
480
|
+
function X(s) {
|
|
481
|
+
return s !== null && s.length === 1 ? s[0] : s.slice();
|
|
482
482
|
}
|
|
483
|
-
function J(
|
|
484
|
-
Object.keys(
|
|
485
|
-
typeof document < "u" && document.addEventListener(d,
|
|
483
|
+
function J(s) {
|
|
484
|
+
Object.keys(s).forEach((d) => {
|
|
485
|
+
typeof document < "u" && document.addEventListener(d, s[d], !1);
|
|
486
486
|
});
|
|
487
487
|
}
|
|
488
|
-
function P(
|
|
489
|
-
return ue(function(
|
|
490
|
-
let t =
|
|
488
|
+
function P(s, d) {
|
|
489
|
+
return ue(function(o, n) {
|
|
490
|
+
let t = o;
|
|
491
491
|
return t <= n.min && (t = n.min), t >= n.max && (t = n.max), t;
|
|
492
|
-
}(
|
|
492
|
+
}(s, d), d);
|
|
493
493
|
}
|
|
494
|
-
function ue(
|
|
495
|
-
const
|
|
496
|
-
let n =
|
|
497
|
-
return 2 * Math.abs(
|
|
494
|
+
function ue(s, d) {
|
|
495
|
+
const o = (s - d.min) % d.step;
|
|
496
|
+
let n = s - o;
|
|
497
|
+
return 2 * Math.abs(o) >= d.step && (n += o > 0 ? d.step : -d.step), parseFloat(n.toFixed(5));
|
|
498
498
|
}
|
|
499
|
-
let me = function(
|
|
499
|
+
let me = function(s) {
|
|
500
500
|
function d(n) {
|
|
501
501
|
var t;
|
|
502
|
-
(t =
|
|
502
|
+
(t = s.call(this, n) || this).onKeyUp = () => {
|
|
503
503
|
t.onEnd();
|
|
504
504
|
}, t.onMouseUp = () => {
|
|
505
505
|
t.onEnd(t.getMouseEventMap());
|
|
@@ -516,8 +516,8 @@ let me = function(o) {
|
|
|
516
516
|
t.setState({ pending: !0 });
|
|
517
517
|
const c = t.getTouchPosition(a);
|
|
518
518
|
if (t.isScrolling === void 0) {
|
|
519
|
-
const m = c[0] - t.startPosition[0],
|
|
520
|
-
t.isScrolling = Math.abs(
|
|
519
|
+
const m = c[0] - t.startPosition[0], h = c[1] - t.startPosition[1];
|
|
520
|
+
t.isScrolling = Math.abs(h) > Math.abs(m);
|
|
521
521
|
}
|
|
522
522
|
if (t.isScrolling) return void t.setState({ index: -1 });
|
|
523
523
|
const p = t.getDiffPosition(c[0]), u = t.getValueFromPosition(p);
|
|
@@ -556,7 +556,7 @@ let me = function(o) {
|
|
|
556
556
|
t.start(p, c[0]), J(t.getMouseEventMap());
|
|
557
557
|
});
|
|
558
558
|
}
|
|
559
|
-
|
|
559
|
+
oe(a);
|
|
560
560
|
}
|
|
561
561
|
}, t.onSliderClick = (a) => {
|
|
562
562
|
if (!t.props.disabled && t.props.onSliderClick && !t.hasMoved) {
|
|
@@ -564,12 +564,12 @@ let me = function(o) {
|
|
|
564
564
|
t.props.onSliderClick(p);
|
|
565
565
|
}
|
|
566
566
|
}, t.createOnKeyDown = (a) => (c) => {
|
|
567
|
-
t.props.disabled || (t.start(a), J(t.getKeyDownEventMap()),
|
|
567
|
+
t.props.disabled || (t.start(a), J(t.getKeyDownEventMap()), oe(c));
|
|
568
568
|
}, t.createOnMouseDown = (a) => (c) => {
|
|
569
569
|
if (t.props.disabled || c.button === 2) return;
|
|
570
570
|
t.setState({ pending: !0 });
|
|
571
571
|
const p = t.getMousePosition(c);
|
|
572
|
-
t.start(a, p[0]), J(t.getMouseEventMap()),
|
|
572
|
+
t.start(a, p[0]), J(t.getMouseEventMap()), oe(c);
|
|
573
573
|
}, t.createOnTouchStart = (a) => (c) => {
|
|
574
574
|
if (t.props.disabled || c.touches.length > 1) return;
|
|
575
575
|
t.setState({ pending: !0 });
|
|
@@ -583,8 +583,8 @@ let me = function(o) {
|
|
|
583
583
|
}, 0);
|
|
584
584
|
t.pendingResizeTimeouts.push(a);
|
|
585
585
|
}, t.renderThumb = (a, c) => {
|
|
586
|
-
const p = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), u = { ref: (
|
|
587
|
-
t["thumb" + c] =
|
|
586
|
+
const p = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), u = { ref: (h) => {
|
|
587
|
+
t["thumb" + c] = h;
|
|
588
588
|
}, key: t.props.thumbClassName + "-" + c, className: p, style: a, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, m = { index: c, value: X(t.state.value), valueNow: t.state.value[c] };
|
|
589
589
|
return t.props.ariaValuetext && (u["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(m)), t.props.renderThumb(u, m);
|
|
590
590
|
}, t.renderTrack = (a, c, p) => {
|
|
@@ -597,26 +597,26 @@ let me = function(o) {
|
|
|
597
597
|
for (let a = 0; a < r.length; a += 1) r[a] = P(r[a], n), l.push(a);
|
|
598
598
|
return t.resizeObserver = null, t.resizeElementRef = U.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: r, zIndices: l }, t;
|
|
599
599
|
}
|
|
600
|
-
Wt(d,
|
|
601
|
-
var
|
|
602
|
-
return
|
|
600
|
+
Wt(d, s);
|
|
601
|
+
var o = d.prototype;
|
|
602
|
+
return o.componentDidMount = function() {
|
|
603
603
|
typeof window < "u" && (this.resizeObserver = new ResizeObserver(this.handleResize), this.resizeObserver.observe(this.resizeElementRef.current), this.resize());
|
|
604
604
|
}, d.getDerivedStateFromProps = function(n, t) {
|
|
605
605
|
const r = re(n.value);
|
|
606
606
|
return r.length ? t.pending ? null : { value: r.map((l) => P(l, n)) } : null;
|
|
607
|
-
},
|
|
607
|
+
}, o.componentDidUpdate = function() {
|
|
608
608
|
this.state.upperBound === 0 && this.resize();
|
|
609
|
-
},
|
|
609
|
+
}, o.componentWillUnmount = function() {
|
|
610
610
|
this.clearPendingResizeTimeouts(), this.resizeObserver && this.resizeObserver.disconnect();
|
|
611
|
-
},
|
|
611
|
+
}, o.onEnd = function(n) {
|
|
612
612
|
n && function(t) {
|
|
613
613
|
Object.keys(t).forEach((r) => {
|
|
614
614
|
typeof document < "u" && document.removeEventListener(r, t[r], !1);
|
|
615
615
|
});
|
|
616
616
|
}(n), this.hasMoved && this.fireChangeEvent("onAfterChange"), this.setState({ pending: !1 }), this.hasMoved = !1;
|
|
617
|
-
},
|
|
617
|
+
}, o.getValue = function() {
|
|
618
618
|
return X(this.state.value);
|
|
619
|
-
},
|
|
619
|
+
}, o.getClosestIndex = function(n) {
|
|
620
620
|
let t = Number.MAX_VALUE, r = -1;
|
|
621
621
|
const { value: l } = this.state, a = l.length;
|
|
622
622
|
for (let c = 0; c < a; c += 1) {
|
|
@@ -624,133 +624,133 @@ let me = function(o) {
|
|
|
624
624
|
u < t && (t = u, r = c);
|
|
625
625
|
}
|
|
626
626
|
return r;
|
|
627
|
-
},
|
|
627
|
+
}, o.getMousePosition = function(n) {
|
|
628
628
|
return [n["page" + this.axisKey()], n["page" + this.orthogonalAxisKey()]];
|
|
629
|
-
},
|
|
629
|
+
}, o.getTouchPosition = function(n) {
|
|
630
630
|
const t = n.touches[0];
|
|
631
631
|
return [t["page" + this.axisKey()], t["page" + this.orthogonalAxisKey()]];
|
|
632
|
-
},
|
|
632
|
+
}, o.getKeyDownEventMap = function() {
|
|
633
633
|
return { keydown: this.onKeyDown, keyup: this.onKeyUp, focusout: this.onBlur };
|
|
634
|
-
},
|
|
634
|
+
}, o.getMouseEventMap = function() {
|
|
635
635
|
return { mousemove: this.onMouseMove, mouseup: this.onMouseUp };
|
|
636
|
-
},
|
|
636
|
+
}, o.getTouchEventMap = function() {
|
|
637
637
|
return { touchmove: this.onTouchMove, touchend: this.onTouchEnd };
|
|
638
|
-
},
|
|
638
|
+
}, o.getValueFromPosition = function(n) {
|
|
639
639
|
const t = n / (this.state.sliderLength - this.state.thumbSize) * (this.props.max - this.props.min);
|
|
640
640
|
return P(this.state.startValue + t, this.props);
|
|
641
|
-
},
|
|
641
|
+
}, o.getDiffPosition = function(n) {
|
|
642
642
|
let t = n - this.state.startPosition;
|
|
643
643
|
return this.props.invert && (t *= -1), t;
|
|
644
|
-
},
|
|
644
|
+
}, o.resize = function() {
|
|
645
645
|
const { slider: n, thumb0: t } = this;
|
|
646
646
|
if (!n || !t) return;
|
|
647
|
-
const r = this.sizeKey(), l = n.getBoundingClientRect(), a = n[r], c = l[this.posMaxKey()], p = l[this.posMinKey()], u = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], m = a - u,
|
|
648
|
-
this.state.upperBound === m && this.state.sliderLength ===
|
|
649
|
-
},
|
|
647
|
+
const r = this.sizeKey(), l = n.getBoundingClientRect(), a = n[r], c = l[this.posMaxKey()], p = l[this.posMinKey()], u = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], m = a - u, h = Math.abs(c - p);
|
|
648
|
+
this.state.upperBound === m && this.state.sliderLength === h && this.state.thumbSize === u || this.setState({ upperBound: m, sliderLength: h, thumbSize: u });
|
|
649
|
+
}, o.calcOffset = function(n) {
|
|
650
650
|
const t = this.props.max - this.props.min;
|
|
651
651
|
return t === 0 ? 0 : (n - this.props.min) / t * this.state.upperBound;
|
|
652
|
-
},
|
|
652
|
+
}, o.calcValue = function(n) {
|
|
653
653
|
return n / this.state.upperBound * (this.props.max - this.props.min) + this.props.min;
|
|
654
|
-
},
|
|
654
|
+
}, o.calcOffsetFromPosition = function(n) {
|
|
655
655
|
const { slider: t } = this, r = t.getBoundingClientRect(), l = r[this.posMaxKey()], a = r[this.posMinKey()];
|
|
656
656
|
let c = n - (window["page" + this.axisKey() + "Offset"] + (this.props.invert ? l : a));
|
|
657
657
|
return this.props.invert && (c = this.state.sliderLength - c), c -= this.state.thumbSize / 2, c;
|
|
658
|
-
},
|
|
658
|
+
}, o.forceValueFromPosition = function(n, t) {
|
|
659
659
|
const r = this.calcOffsetFromPosition(n), l = this.getClosestIndex(r), a = P(this.calcValue(r), this.props), c = this.state.value.slice();
|
|
660
660
|
c[l] = a;
|
|
661
661
|
for (let p = 0; p < c.length - 1; p += 1) if (c[p + 1] - c[p] < this.props.minDistance) return;
|
|
662
662
|
this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value: c }, () => {
|
|
663
663
|
t(l), this.fireChangeEvent("onChange");
|
|
664
664
|
});
|
|
665
|
-
},
|
|
665
|
+
}, o.clearPendingResizeTimeouts = function() {
|
|
666
666
|
do {
|
|
667
667
|
const n = this.pendingResizeTimeouts.shift();
|
|
668
668
|
clearTimeout(n);
|
|
669
669
|
} while (this.pendingResizeTimeouts.length);
|
|
670
|
-
},
|
|
670
|
+
}, o.start = function(n, t) {
|
|
671
671
|
const r = this["thumb" + n];
|
|
672
672
|
r && r.focus();
|
|
673
673
|
const { zIndices: l } = this.state;
|
|
674
674
|
l.splice(l.indexOf(n), 1), l.push(n), this.setState((a) => ({ startValue: a.value[n], startPosition: t !== void 0 ? t : a.startPosition, index: n, zIndices: l }));
|
|
675
|
-
},
|
|
675
|
+
}, o.moveUpByStep = function(n) {
|
|
676
676
|
n === void 0 && (n = this.props.step);
|
|
677
677
|
const t = this.state.value[this.state.index], r = P(this.props.invert && this.props.orientation === "horizontal" ? t - n : t + n, this.props);
|
|
678
678
|
this.move(Math.min(r, this.props.max));
|
|
679
|
-
},
|
|
679
|
+
}, o.moveDownByStep = function(n) {
|
|
680
680
|
n === void 0 && (n = this.props.step);
|
|
681
681
|
const t = this.state.value[this.state.index], r = P(this.props.invert && this.props.orientation === "horizontal" ? t + n : t - n, this.props);
|
|
682
682
|
this.move(Math.max(r, this.props.min));
|
|
683
|
-
},
|
|
683
|
+
}, o.move = function(n) {
|
|
684
684
|
const t = this.state.value.slice(), { index: r } = this.state, { length: l } = t, a = t[r];
|
|
685
685
|
if (n === a) return;
|
|
686
686
|
this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
|
|
687
687
|
const { pearling: c, max: p, min: u, minDistance: m } = this.props;
|
|
688
688
|
if (!c) {
|
|
689
689
|
if (r > 0) {
|
|
690
|
-
const
|
|
691
|
-
n <
|
|
690
|
+
const h = t[r - 1];
|
|
691
|
+
n < h + m && (n = h + m);
|
|
692
692
|
}
|
|
693
693
|
if (r < l - 1) {
|
|
694
|
-
const
|
|
695
|
-
n >
|
|
694
|
+
const h = t[r + 1];
|
|
695
|
+
n > h - m && (n = h - m);
|
|
696
696
|
}
|
|
697
697
|
}
|
|
698
|
-
t[r] = n, c && l > 1 && (n > a ? (this.pushSucceeding(t, m, r), function(
|
|
699
|
-
for (let v = 0; v <
|
|
700
|
-
const y =
|
|
701
|
-
|
|
698
|
+
t[r] = n, c && l > 1 && (n > a ? (this.pushSucceeding(t, m, r), function(h, b, C, f) {
|
|
699
|
+
for (let v = 0; v < h; v += 1) {
|
|
700
|
+
const y = f - v * C;
|
|
701
|
+
b[h - 1 - v] > y && (b[h - 1 - v] = y);
|
|
702
702
|
}
|
|
703
|
-
}(l, t, m, p)) : n < a && (this.pushPreceding(t, m, r), function(
|
|
704
|
-
for (let v = 0; v <
|
|
705
|
-
const y =
|
|
706
|
-
|
|
703
|
+
}(l, t, m, p)) : n < a && (this.pushPreceding(t, m, r), function(h, b, C, f) {
|
|
704
|
+
for (let v = 0; v < h; v += 1) {
|
|
705
|
+
const y = f + v * C;
|
|
706
|
+
b[v] < y && (b[v] = y);
|
|
707
707
|
}
|
|
708
708
|
}(l, t, m, u))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
|
|
709
|
-
},
|
|
709
|
+
}, o.pushSucceeding = function(n, t, r) {
|
|
710
710
|
let l, a;
|
|
711
711
|
for (l = r, a = n[l] + t; n[l + 1] !== null && a > n[l + 1]; l += 1, a = n[l] + t) n[l + 1] = ue(a, this.props);
|
|
712
|
-
},
|
|
712
|
+
}, o.pushPreceding = function(n, t, r) {
|
|
713
713
|
for (let l = r, a = n[l] - t; n[l - 1] !== null && a < n[l - 1]; l -= 1, a = n[l] - t) n[l - 1] = ue(a, this.props);
|
|
714
|
-
},
|
|
714
|
+
}, o.axisKey = function() {
|
|
715
715
|
return this.props.orientation === "vertical" ? "Y" : "X";
|
|
716
|
-
},
|
|
716
|
+
}, o.orthogonalAxisKey = function() {
|
|
717
717
|
return this.props.orientation === "vertical" ? "X" : "Y";
|
|
718
|
-
},
|
|
718
|
+
}, o.posMinKey = function() {
|
|
719
719
|
return this.props.orientation === "vertical" ? this.props.invert ? "bottom" : "top" : this.props.invert ? "right" : "left";
|
|
720
|
-
},
|
|
720
|
+
}, o.posMaxKey = function() {
|
|
721
721
|
return this.props.orientation === "vertical" ? this.props.invert ? "top" : "bottom" : this.props.invert ? "left" : "right";
|
|
722
|
-
},
|
|
722
|
+
}, o.sizeKey = function() {
|
|
723
723
|
return this.props.orientation === "vertical" ? "clientHeight" : "clientWidth";
|
|
724
|
-
},
|
|
724
|
+
}, o.fireChangeEvent = function(n) {
|
|
725
725
|
this.props[n] && this.props[n](X(this.state.value), this.state.index);
|
|
726
|
-
},
|
|
726
|
+
}, o.buildThumbStyle = function(n, t) {
|
|
727
727
|
const r = { position: "absolute", touchAction: "none", willChange: this.state.index >= 0 ? this.posMinKey() : void 0, zIndex: this.state.zIndices.indexOf(t) + 1 };
|
|
728
728
|
return r[this.posMinKey()] = n + "px", r;
|
|
729
|
-
},
|
|
729
|
+
}, o.buildTrackStyle = function(n, t) {
|
|
730
730
|
const r = { position: "absolute", willChange: this.state.index >= 0 ? this.posMinKey() + "," + this.posMaxKey() : void 0 };
|
|
731
731
|
return r[this.posMinKey()] = n, r[this.posMaxKey()] = t, r;
|
|
732
|
-
},
|
|
732
|
+
}, o.buildMarkStyle = function(n) {
|
|
733
733
|
var t;
|
|
734
734
|
return (t = { position: "absolute" })[this.posMinKey()] = n, t;
|
|
735
|
-
},
|
|
735
|
+
}, o.renderThumbs = function(n) {
|
|
736
736
|
const { length: t } = n, r = [];
|
|
737
737
|
for (let a = 0; a < t; a += 1) r[a] = this.buildThumbStyle(n[a], a);
|
|
738
738
|
const l = [];
|
|
739
739
|
for (let a = 0; a < t; a += 1) l[a] = this.renderThumb(r[a], a);
|
|
740
740
|
return l;
|
|
741
|
-
},
|
|
741
|
+
}, o.renderTracks = function(n) {
|
|
742
742
|
const t = [], r = n.length - 1;
|
|
743
743
|
t.push(this.renderTrack(0, 0, n[0]));
|
|
744
744
|
for (let l = 0; l < r; l += 1) t.push(this.renderTrack(l + 1, n[l], n[l + 1]));
|
|
745
745
|
return t.push(this.renderTrack(r + 1, n[r], this.state.upperBound)), t;
|
|
746
|
-
},
|
|
746
|
+
}, o.renderMarks = function() {
|
|
747
747
|
let { marks: n } = this.props;
|
|
748
748
|
const t = this.props.max - this.props.min + 1;
|
|
749
749
|
return typeof n == "boolean" ? n = Array.from({ length: t }).map((r, l) => l) : typeof n == "number" && (n = Array.from({ length: t }).map((r, l) => l).filter((r) => r % n == 0)), n.map(parseFloat).sort((r, l) => r - l).map((r) => {
|
|
750
750
|
const l = this.calcOffset(r), a = { key: r, className: this.props.markClassName, style: this.buildMarkStyle(l) };
|
|
751
751
|
return this.props.renderMark(a);
|
|
752
752
|
});
|
|
753
|
-
},
|
|
753
|
+
}, o.render = function() {
|
|
754
754
|
const n = [], { value: t } = this.state, r = t.length;
|
|
755
755
|
for (let p = 0; p < r; p += 1) n[p] = this.calcOffset(t[p], p);
|
|
756
756
|
const l = this.props.withTracks ? this.renderTracks(n) : null, a = this.renderThumbs(n), c = this.props.marks ? this.renderMarks() : null;
|
|
@@ -759,29 +759,29 @@ let me = function(o) {
|
|
|
759
759
|
}, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, l, a, c);
|
|
760
760
|
}, d;
|
|
761
761
|
}(U.Component);
|
|
762
|
-
me.displayName = "ReactSlider", me.defaultProps = { min: 0, max: 100, step: 1, pageFn: (
|
|
762
|
+
me.displayName = "ReactSlider", me.defaultProps = { min: 0, max: 100, step: 1, pageFn: (s) => 10 * s, minDistance: 0, defaultValue: 0, orientation: "horizontal", className: "slider", thumbClassName: "thumb", thumbActiveClassName: "active", trackClassName: "track", markClassName: "mark", withTracks: !0, pearling: !1, disabled: !1, snapDragDisabled: !1, invert: !1, marks: [], renderThumb: (s) => U.createElement("div", s), renderTrack: (s) => U.createElement("div", s), renderMark: (s) => U.createElement("span", s) };
|
|
763
763
|
var Xt = me;
|
|
764
|
-
const Jt = "_container_15vgv_2", Qt = "_unitLabel_15vgv_9", en = "_slider_15vgv_12", tn = "_thumb_15vgv_18", nn = "_track_15vgv_27",
|
|
764
|
+
const Jt = "_container_15vgv_2", Qt = "_unitLabel_15vgv_9", en = "_slider_15vgv_12", tn = "_thumb_15vgv_18", nn = "_track_15vgv_27", sn = "_labels_15vgv_33", K = {
|
|
765
765
|
container: Jt,
|
|
766
766
|
unitLabel: Qt,
|
|
767
767
|
slider: en,
|
|
768
768
|
thumb: tn,
|
|
769
769
|
track: nn,
|
|
770
|
-
labels:
|
|
770
|
+
labels: sn
|
|
771
771
|
}, Oe = ({
|
|
772
|
-
min:
|
|
772
|
+
min: s = 0,
|
|
773
773
|
max: d = 100,
|
|
774
|
-
step:
|
|
774
|
+
step: o = 1,
|
|
775
775
|
onChange: n,
|
|
776
776
|
width: t = 300,
|
|
777
777
|
unit: r,
|
|
778
778
|
fontColor: l = "#605B56",
|
|
779
|
-
value: a = [
|
|
779
|
+
value: a = [s, d]
|
|
780
780
|
}) => {
|
|
781
781
|
const { t: c } = k(), p = (u) => {
|
|
782
782
|
n == null || n({ min: u[0], max: u[1] });
|
|
783
783
|
};
|
|
784
|
-
return /* @__PURE__ */
|
|
784
|
+
return /* @__PURE__ */ g(
|
|
785
785
|
"div",
|
|
786
786
|
{
|
|
787
787
|
className: K.container,
|
|
@@ -794,9 +794,9 @@ const Jt = "_container_15vgv_2", Qt = "_unitLabel_15vgv_9", en = "_slider_15vgv_
|
|
|
794
794
|
className: K.slider,
|
|
795
795
|
thumbClassName: K.thumb,
|
|
796
796
|
trackClassName: K.track,
|
|
797
|
-
min:
|
|
797
|
+
min: s,
|
|
798
798
|
max: d,
|
|
799
|
-
step:
|
|
799
|
+
step: o,
|
|
800
800
|
value: a,
|
|
801
801
|
onChange: p,
|
|
802
802
|
withTracks: !0,
|
|
@@ -804,7 +804,7 @@ const Jt = "_container_15vgv_2", Qt = "_unitLabel_15vgv_9", en = "_slider_15vgv_
|
|
|
804
804
|
minDistance: 1
|
|
805
805
|
}
|
|
806
806
|
),
|
|
807
|
-
/* @__PURE__ */
|
|
807
|
+
/* @__PURE__ */ g("div", { className: K.labels, children: [
|
|
808
808
|
/* @__PURE__ */ i("span", { children: a[0] }),
|
|
809
809
|
/* @__PURE__ */ i("span", { children: a[1] })
|
|
810
810
|
] })
|
|
@@ -824,37 +824,37 @@ Oe.propTypes = {
|
|
|
824
824
|
fontColor: e.string,
|
|
825
825
|
value: e.arrayOf(e.number)
|
|
826
826
|
};
|
|
827
|
-
const
|
|
828
|
-
tematicalFiltersInputContainer:
|
|
827
|
+
const on = "_tematicalFiltersInputContainer_1vm1r_2", rn = "_inputTypeContainer_1vm1r_2", an = "_checkboxContainer_1vm1r_28", ln = "_absoluteSliderContainer_1vm1r_37", Q = {
|
|
828
|
+
tematicalFiltersInputContainer: on,
|
|
829
829
|
inputTypeContainer: rn,
|
|
830
830
|
checkboxContainer: an,
|
|
831
831
|
absoluteSliderContainer: ln
|
|
832
832
|
}, be = ({
|
|
833
|
-
indicator:
|
|
833
|
+
indicator: s,
|
|
834
834
|
//onChangeBothType
|
|
835
835
|
activeColor: d
|
|
836
836
|
}) => {
|
|
837
|
-
const [
|
|
837
|
+
const [o, n] = B(), {
|
|
838
838
|
type: t,
|
|
839
839
|
name: r,
|
|
840
840
|
values: l,
|
|
841
841
|
minValue: a,
|
|
842
842
|
maxValue: c,
|
|
843
843
|
unit: p
|
|
844
|
-
} =
|
|
845
|
-
() => t == "cat" ||
|
|
846
|
-
[
|
|
844
|
+
} = s || {}, u = te(
|
|
845
|
+
() => t == "cat" || o == "cat",
|
|
846
|
+
[o, t]
|
|
847
847
|
), m = te(
|
|
848
|
-
() => t == "abs" ||
|
|
849
|
-
[
|
|
848
|
+
() => t == "abs" || o == "abs",
|
|
849
|
+
[o, t]
|
|
850
850
|
), {
|
|
851
|
-
tematicalFiltersSelected:
|
|
852
|
-
selectedIndicator:
|
|
851
|
+
tematicalFiltersSelected: h,
|
|
852
|
+
selectedIndicator: b,
|
|
853
853
|
fontColor: C,
|
|
854
|
-
inputsColor:
|
|
854
|
+
inputsColor: f
|
|
855
855
|
} = T((_) => _), v = (_) => {
|
|
856
856
|
if (_) {
|
|
857
|
-
const { min: w, max: x, valueClicked: N, allValues: $ } = _ || {}, { code: A, type: ne } =
|
|
857
|
+
const { min: w, max: x, valueClicked: N, allValues: $ } = _ || {}, { code: A, type: ne } = s || {}, H = m ? "abs" : u ? "cat" : "both";
|
|
858
858
|
let O = A[0];
|
|
859
859
|
ne == "both" && (O = H == "cat" ? A[1] : A[0]), H == "cat" ? T.setState((E) => {
|
|
860
860
|
let I = E.tematicalFiltersSelected.find(
|
|
@@ -883,12 +883,12 @@ const sn = "_tematicalFiltersInputContainer_1vm1r_2", rn = "_inputTypeContainer_
|
|
|
883
883
|
let F = $.map((D, qe) => qe);
|
|
884
884
|
return {
|
|
885
885
|
tematicalFiltersSelected: [
|
|
886
|
-
...
|
|
886
|
+
...h,
|
|
887
887
|
{
|
|
888
888
|
type: "cat",
|
|
889
889
|
code: O,
|
|
890
890
|
values: F.filter((D) => D !== N),
|
|
891
|
-
name:
|
|
891
|
+
name: s.name
|
|
892
892
|
}
|
|
893
893
|
]
|
|
894
894
|
};
|
|
@@ -907,7 +907,7 @@ const sn = "_tematicalFiltersInputContainer_1vm1r_2", rn = "_inputTypeContainer_
|
|
|
907
907
|
} else
|
|
908
908
|
return {
|
|
909
909
|
tematicalFiltersSelected: [
|
|
910
|
-
...
|
|
910
|
+
...h,
|
|
911
911
|
{ type: "abs", code: O, min: w, max: x }
|
|
912
912
|
]
|
|
913
913
|
};
|
|
@@ -915,19 +915,19 @@ const sn = "_tematicalFiltersInputContainer_1vm1r_2", rn = "_inputTypeContainer_
|
|
|
915
915
|
}
|
|
916
916
|
}, y = te(() => {
|
|
917
917
|
const _ = {};
|
|
918
|
-
if ((
|
|
919
|
-
for (const w of
|
|
918
|
+
if ((h == null ? void 0 : h.length) > 0)
|
|
919
|
+
for (const w of h)
|
|
920
920
|
w.type === "cat" ? _[w.code] = new Set(w.values) : _[w.code] = [w.min, w.max];
|
|
921
921
|
return _;
|
|
922
|
-
}, [
|
|
923
|
-
return /* @__PURE__ */ i("div", { className: Q.tematicalFiltersInputContainer, children: /* @__PURE__ */
|
|
922
|
+
}, [h]);
|
|
923
|
+
return /* @__PURE__ */ i("div", { className: Q.tematicalFiltersInputContainer, children: /* @__PURE__ */ g(
|
|
924
924
|
q,
|
|
925
925
|
{
|
|
926
926
|
titleFontStyles: { fontSize: 16, fontWeight: 400 },
|
|
927
927
|
title: r,
|
|
928
|
-
isOpen:
|
|
928
|
+
isOpen: b == `id${r}`,
|
|
929
929
|
onClick: () => T.setState(() => ({
|
|
930
|
-
selectedIndicator:
|
|
930
|
+
selectedIndicator: b == `id${r}` ? "" : `id${r}`
|
|
931
931
|
})),
|
|
932
932
|
showBottomBar: !1,
|
|
933
933
|
height: 38,
|
|
@@ -936,13 +936,13 @@ const sn = "_tematicalFiltersInputContainer_1vm1r_2", rn = "_inputTypeContainer_
|
|
|
936
936
|
color: C,
|
|
937
937
|
activeColor: d,
|
|
938
938
|
children: [
|
|
939
|
-
t == "both" && /* @__PURE__ */
|
|
939
|
+
t == "both" && /* @__PURE__ */ g(
|
|
940
940
|
"div",
|
|
941
941
|
{
|
|
942
942
|
className: Q.inputTypeContainer,
|
|
943
943
|
style: { color: C },
|
|
944
944
|
children: [
|
|
945
|
-
/* @__PURE__ */
|
|
945
|
+
/* @__PURE__ */ g("label", { children: [
|
|
946
946
|
/* @__PURE__ */ i(
|
|
947
947
|
"input",
|
|
948
948
|
{
|
|
@@ -954,14 +954,14 @@ const sn = "_tematicalFiltersInputContainer_1vm1r_2", rn = "_inputTypeContainer_
|
|
|
954
954
|
},
|
|
955
955
|
style: {
|
|
956
956
|
marginRight: 4,
|
|
957
|
-
backgroundColor:
|
|
958
|
-
border: `1.5px solid ${
|
|
957
|
+
backgroundColor: o == "abs" ? f : "white",
|
|
958
|
+
border: `1.5px solid ${o == "abs" ? f : C}`
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
),
|
|
962
962
|
"Absoluto"
|
|
963
963
|
] }),
|
|
964
|
-
/* @__PURE__ */
|
|
964
|
+
/* @__PURE__ */ g("label", { children: [
|
|
965
965
|
/* @__PURE__ */ i(
|
|
966
966
|
"input",
|
|
967
967
|
{
|
|
@@ -973,8 +973,8 @@ const sn = "_tematicalFiltersInputContainer_1vm1r_2", rn = "_inputTypeContainer_
|
|
|
973
973
|
},
|
|
974
974
|
style: {
|
|
975
975
|
marginRight: 4,
|
|
976
|
-
backgroundColor:
|
|
977
|
-
border: `1.5px solid ${
|
|
976
|
+
backgroundColor: o == "cat" ? f : "white",
|
|
977
|
+
border: `1.5px solid ${o == "cat" ? f : C}`
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
980
|
),
|
|
@@ -990,7 +990,7 @@ const sn = "_tematicalFiltersInputContainer_1vm1r_2", rn = "_inputTypeContainer_
|
|
|
990
990
|
{
|
|
991
991
|
onClick: () => v({ valueClicked: w, allValues: l }),
|
|
992
992
|
indicator: _,
|
|
993
|
-
value: ((x = y[
|
|
993
|
+
value: ((x = y[s.code[t == "both" ? 1 : 0]]) == null ? void 0 : x.has(w)) || !y[s.code[t == "both" ? 1 : 0]]
|
|
994
994
|
},
|
|
995
995
|
`checkbox-${w}`
|
|
996
996
|
);
|
|
@@ -1002,7 +1002,7 @@ const sn = "_tematicalFiltersInputContainer_1vm1r_2", rn = "_inputTypeContainer_
|
|
|
1002
1002
|
min: a,
|
|
1003
1003
|
max: c,
|
|
1004
1004
|
unit: p,
|
|
1005
|
-
value: y[
|
|
1005
|
+
value: y[s.code[0]]
|
|
1006
1006
|
}
|
|
1007
1007
|
) })
|
|
1008
1008
|
]
|
|
@@ -1025,12 +1025,12 @@ be.propTypes = {
|
|
|
1025
1025
|
//onChangeBothType: PropTypes.func,
|
|
1026
1026
|
};
|
|
1027
1027
|
const Ie = ({
|
|
1028
|
-
subcategory:
|
|
1028
|
+
subcategory: s,
|
|
1029
1029
|
fontColor: d,
|
|
1030
|
-
activeColor:
|
|
1030
|
+
activeColor: o
|
|
1031
1031
|
//onChangeBothType,
|
|
1032
1032
|
}) => {
|
|
1033
|
-
const { activeSubcategory: n } = T((l) => l), { name: t, indicators: r } =
|
|
1033
|
+
const { activeSubcategory: n } = T((l) => l), { name: t, indicators: r } = s || {};
|
|
1034
1034
|
return /* @__PURE__ */ i(
|
|
1035
1035
|
q,
|
|
1036
1036
|
{
|
|
@@ -1046,13 +1046,13 @@ const Ie = ({
|
|
|
1046
1046
|
titleMarginChildren: 20,
|
|
1047
1047
|
height: 48,
|
|
1048
1048
|
color: d,
|
|
1049
|
-
activeColor:
|
|
1049
|
+
activeColor: o,
|
|
1050
1050
|
children: r == null ? void 0 : r.map((l, a) => /* @__PURE__ */ i(
|
|
1051
1051
|
be,
|
|
1052
1052
|
{
|
|
1053
1053
|
indicator: l,
|
|
1054
1054
|
fontColor: d,
|
|
1055
|
-
activeColor:
|
|
1055
|
+
activeColor: o
|
|
1056
1056
|
},
|
|
1057
1057
|
`indicatorSub-${a}`
|
|
1058
1058
|
))
|
|
@@ -1073,21 +1073,21 @@ Ie.propTypes = {
|
|
|
1073
1073
|
//onChangeBothType: PropTypes.func,
|
|
1074
1074
|
};
|
|
1075
1075
|
const Re = ({
|
|
1076
|
-
category:
|
|
1076
|
+
category: s,
|
|
1077
1077
|
// onChangeBothType,
|
|
1078
1078
|
activeColor: d
|
|
1079
1079
|
}) => {
|
|
1080
|
-
const { name:
|
|
1081
|
-
return
|
|
1080
|
+
const { name: o, subcategories: n, indicators: t } = s || {}, { activeCategory: r, fontColor: l } = T((a) => a);
|
|
1081
|
+
return s && /* @__PURE__ */ i(
|
|
1082
1082
|
q,
|
|
1083
1083
|
{
|
|
1084
1084
|
onClick: () => {
|
|
1085
1085
|
T.setState((a) => ({
|
|
1086
|
-
activeCategory: r === `id${
|
|
1086
|
+
activeCategory: r === `id${o}` ? "" : `id${o}`
|
|
1087
1087
|
}));
|
|
1088
1088
|
},
|
|
1089
|
-
title:
|
|
1090
|
-
isOpen: r === `id${
|
|
1089
|
+
title: o,
|
|
1090
|
+
isOpen: r === `id${o}`,
|
|
1091
1091
|
titleFontStyles: { fontSize: 18, fontWeight: "bold" },
|
|
1092
1092
|
showBottomBar: !1,
|
|
1093
1093
|
color: l,
|
|
@@ -1122,9 +1122,9 @@ Re.propTypes = {
|
|
|
1122
1122
|
//onChangeBothType: PropTypes.func,
|
|
1123
1123
|
};
|
|
1124
1124
|
const Ve = ({
|
|
1125
|
-
indicators:
|
|
1125
|
+
indicators: s,
|
|
1126
1126
|
isOpen: d = !0,
|
|
1127
|
-
title:
|
|
1127
|
+
title: o,
|
|
1128
1128
|
fontColor: n = "#605B56",
|
|
1129
1129
|
//The color of the slider and the checkbox when is checked
|
|
1130
1130
|
inputsColor: t = "#605B56",
|
|
@@ -1139,10 +1139,10 @@ const Ve = ({
|
|
|
1139
1139
|
q,
|
|
1140
1140
|
{
|
|
1141
1141
|
isOpen: d,
|
|
1142
|
-
title:
|
|
1142
|
+
title: o ? a(o) : "Tematical filters",
|
|
1143
1143
|
color: n,
|
|
1144
1144
|
activeColor: r,
|
|
1145
|
-
children:
|
|
1145
|
+
children: s == null ? void 0 : s.map((c, p) => /* @__PURE__ */ i(
|
|
1146
1146
|
Re,
|
|
1147
1147
|
{
|
|
1148
1148
|
category: c,
|
|
@@ -1170,9 +1170,9 @@ const cn = "_FiltersAmbitContainer_6o4gt_2", dn = "_FiltersAmbitHeader_6o4gt_7",
|
|
|
1170
1170
|
FiltersAmbitDescription: un,
|
|
1171
1171
|
FiltersAmbitDescriptionTitle: mn
|
|
1172
1172
|
}, hn = ({
|
|
1173
|
-
ambitName:
|
|
1173
|
+
ambitName: s,
|
|
1174
1174
|
ambitDescription: d,
|
|
1175
|
-
defaultFilters:
|
|
1175
|
+
defaultFilters: o,
|
|
1176
1176
|
indicators: n,
|
|
1177
1177
|
activeColor: t,
|
|
1178
1178
|
textColor: r,
|
|
@@ -1180,47 +1180,48 @@ const cn = "_FiltersAmbitContainer_6o4gt_2", dn = "_FiltersAmbitHeader_6o4gt_7",
|
|
|
1180
1180
|
onChangeAppliedFilters: a,
|
|
1181
1181
|
saveAmbit: c,
|
|
1182
1182
|
namePlaceholder: p,
|
|
1183
|
-
descPlaceholder: u
|
|
1183
|
+
descPlaceholder: u,
|
|
1184
|
+
filtersTypes: m
|
|
1184
1185
|
}) => {
|
|
1185
|
-
const { t:
|
|
1186
|
+
const { t: h } = k(), { tematicalFiltersSelected: b } = T((_) => _), [C, f] = B(s || null), [v, y] = B(d || null);
|
|
1186
1187
|
return L(() => {
|
|
1187
|
-
|
|
1188
|
-
tematicalFiltersSelected:
|
|
1188
|
+
o && o.length > 0 && T.setState((_) => ({
|
|
1189
|
+
tematicalFiltersSelected: o
|
|
1189
1190
|
}));
|
|
1190
|
-
}, [
|
|
1191
|
-
console.log("filtersSelected changed: ",
|
|
1192
|
-
}, [
|
|
1193
|
-
/* @__PURE__ */
|
|
1191
|
+
}, [o]), L(() => {
|
|
1192
|
+
console.log("filtersSelected changed: ", b), a(b);
|
|
1193
|
+
}, [b]), /* @__PURE__ */ g("div", { className: Y.FiltersAmbitContainer, children: [
|
|
1194
|
+
/* @__PURE__ */ g("div", { className: Y.FiltersAmbitHeader, children: [
|
|
1194
1195
|
/* @__PURE__ */ i("div", { className: Y.FiltersAmbitTitle, children: /* @__PURE__ */ i(
|
|
1195
1196
|
"input",
|
|
1196
1197
|
{
|
|
1197
1198
|
type: "text",
|
|
1198
|
-
onChange: (
|
|
1199
|
-
value:
|
|
1200
|
-
placeholder:
|
|
1199
|
+
onChange: (_) => f(_.target.value),
|
|
1200
|
+
value: C,
|
|
1201
|
+
placeholder: h(p)
|
|
1201
1202
|
}
|
|
1202
1203
|
) }),
|
|
1203
1204
|
/* @__PURE__ */ i("div", { className: Y.FiltersAmbitDescription, children: /* @__PURE__ */ i("div", { className: Y.FiltersAmbitDescriptionTitle, children: /* @__PURE__ */ i(
|
|
1204
1205
|
"textarea",
|
|
1205
1206
|
{
|
|
1206
|
-
value:
|
|
1207
|
-
onChange: (
|
|
1208
|
-
placeholder:
|
|
1207
|
+
value: v,
|
|
1208
|
+
onChange: (_) => y(_.target.value),
|
|
1209
|
+
placeholder: h(u)
|
|
1209
1210
|
}
|
|
1210
1211
|
) }) })
|
|
1211
1212
|
] }),
|
|
1212
1213
|
/* @__PURE__ */ i(
|
|
1213
1214
|
De,
|
|
1214
1215
|
{
|
|
1215
|
-
title:
|
|
1216
|
+
title: h("applied_filters"),
|
|
1216
1217
|
isOpen: !0,
|
|
1217
1218
|
textColor: r || "#fff",
|
|
1218
1219
|
backgroundColor: l || "#605B5680",
|
|
1219
1220
|
activeColor: t
|
|
1220
1221
|
}
|
|
1221
1222
|
),
|
|
1222
|
-
/* @__PURE__ */ i($e, { activeColor: t }),
|
|
1223
|
-
/* @__PURE__ */ i(
|
|
1223
|
+
m.includes("geographical") && /* @__PURE__ */ i($e, { activeColor: t }),
|
|
1224
|
+
m.includes("tematical") && /* @__PURE__ */ i(
|
|
1224
1225
|
Ve,
|
|
1225
1226
|
{
|
|
1226
1227
|
indicators: n,
|
|
@@ -1230,7 +1231,7 @@ const cn = "_FiltersAmbitContainer_6o4gt_2", dn = "_FiltersAmbitHeader_6o4gt_7",
|
|
|
1230
1231
|
activeColor: t
|
|
1231
1232
|
}
|
|
1232
1233
|
),
|
|
1233
|
-
/* @__PURE__ */ i("div", { className: "buttonContainer", children: /* @__PURE__ */ i(Be, { onClick: () => c({ name:
|
|
1234
|
+
/* @__PURE__ */ i("div", { className: "buttonContainer", children: /* @__PURE__ */ i(Be, { onClick: () => c({ name: C, description: v }), children: h("save_ambit") }) })
|
|
1234
1235
|
] });
|
|
1235
1236
|
};
|
|
1236
1237
|
hn.propTypes = {
|
|
@@ -1244,14 +1245,15 @@ hn.propTypes = {
|
|
|
1244
1245
|
onChangeAppliedFilters: e.func,
|
|
1245
1246
|
saveAmbit: e.func,
|
|
1246
1247
|
namePlaceholder: e.string,
|
|
1247
|
-
descPlaceholder: e.string
|
|
1248
|
+
descPlaceholder: e.string,
|
|
1249
|
+
filtersTypes: e.arrayOf(e.string).isRequired
|
|
1248
1250
|
};
|
|
1249
1251
|
const gn = "_barChartContainer_d2f1z_2", Cn = {
|
|
1250
1252
|
barChartContainer: gn
|
|
1251
1253
|
}, Pe = ({
|
|
1252
|
-
data:
|
|
1254
|
+
data: s,
|
|
1253
1255
|
width: d = 700,
|
|
1254
|
-
barHeight:
|
|
1256
|
+
barHeight: o = 25,
|
|
1255
1257
|
gap: n = 23,
|
|
1256
1258
|
fontColor: t = "#605B56",
|
|
1257
1259
|
verticalPaddign: r = 10,
|
|
@@ -1260,9 +1262,9 @@ const gn = "_barChartContainer_d2f1z_2", Cn = {
|
|
|
1260
1262
|
numberOfDivisions: c = 7,
|
|
1261
1263
|
maxValue: p = null
|
|
1262
1264
|
}) => {
|
|
1263
|
-
const { t: u } = k(), { xScale: m, ticks:
|
|
1264
|
-
if (
|
|
1265
|
-
const C = (
|
|
1265
|
+
const { t: u } = k(), { xScale: m, ticks: h, height: b } = te(() => {
|
|
1266
|
+
if (s && s.length > 0) {
|
|
1267
|
+
const C = (s == null ? void 0 : s.length) * (o + n) + r * 2, f = ye.max(s, (_) => _.value) || 1, v = ye.scaleLinear().domain([0, p || f]).range([0, d - a]), y = Array.from({ length: c + 1 }, (_, w) => p ? p / c * w : f / c * w);
|
|
1266
1268
|
return {
|
|
1267
1269
|
xScale: v,
|
|
1268
1270
|
ticks: y,
|
|
@@ -1274,42 +1276,42 @@ const gn = "_barChartContainer_d2f1z_2", Cn = {
|
|
|
1274
1276
|
} else
|
|
1275
1277
|
return { xScale: null, ticks: [], height: 0 };
|
|
1276
1278
|
}, [
|
|
1277
|
-
|
|
1279
|
+
s,
|
|
1278
1280
|
d,
|
|
1279
1281
|
c,
|
|
1280
|
-
|
|
1282
|
+
o,
|
|
1281
1283
|
n,
|
|
1282
1284
|
l,
|
|
1283
1285
|
r,
|
|
1284
1286
|
p
|
|
1285
1287
|
]);
|
|
1286
|
-
return /* @__PURE__ */ i("div", { className: Cn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + l * 2, height:
|
|
1287
|
-
/* @__PURE__ */ i("g", { transform: `translate(${a + l}, 0)`, children:
|
|
1288
|
+
return /* @__PURE__ */ i("div", { className: Cn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + l * 2, height: b, children: /* @__PURE__ */ g("g", { transform: `translate(0,${n})`, children: [
|
|
1289
|
+
/* @__PURE__ */ i("g", { transform: `translate(${a + l}, 0)`, children: h.map((C, f) => {
|
|
1288
1290
|
const v = m(C);
|
|
1289
|
-
return /* @__PURE__ */
|
|
1291
|
+
return /* @__PURE__ */ g("g", { transform: `translate(${v}, 0)`, children: [
|
|
1290
1292
|
/* @__PURE__ */ i(
|
|
1291
1293
|
"line",
|
|
1292
1294
|
{
|
|
1293
1295
|
y1: 0,
|
|
1294
|
-
y2:
|
|
1296
|
+
y2: b - n * 2,
|
|
1295
1297
|
stroke: "#ccc"
|
|
1296
1298
|
}
|
|
1297
1299
|
),
|
|
1298
1300
|
/* @__PURE__ */ i(
|
|
1299
1301
|
"text",
|
|
1300
1302
|
{
|
|
1301
|
-
y:
|
|
1303
|
+
y: b - n,
|
|
1302
1304
|
textAnchor: "middle",
|
|
1303
1305
|
fontSize: 10,
|
|
1304
1306
|
fill: t,
|
|
1305
1307
|
children: parseInt(C)
|
|
1306
1308
|
}
|
|
1307
1309
|
)
|
|
1308
|
-
] },
|
|
1310
|
+
] }, f);
|
|
1309
1311
|
}) }),
|
|
1310
|
-
|
|
1311
|
-
const v = m(C.value), y =
|
|
1312
|
-
return /* @__PURE__ */
|
|
1312
|
+
s && s.length > 0 && (s == null ? void 0 : s.map((C, f) => {
|
|
1313
|
+
const v = m(C.value), y = f * (o + n);
|
|
1314
|
+
return /* @__PURE__ */ g(
|
|
1313
1315
|
"g",
|
|
1314
1316
|
{
|
|
1315
1317
|
transform: `translate(${a + l}, ${y})`,
|
|
@@ -1318,7 +1320,7 @@ const gn = "_barChartContainer_d2f1z_2", Cn = {
|
|
|
1318
1320
|
"text",
|
|
1319
1321
|
{
|
|
1320
1322
|
x: -24,
|
|
1321
|
-
y:
|
|
1323
|
+
y: o / 2 + 5,
|
|
1322
1324
|
textAnchor: "end",
|
|
1323
1325
|
fill: t,
|
|
1324
1326
|
children: u(C.title)
|
|
@@ -1328,14 +1330,14 @@ const gn = "_barChartContainer_d2f1z_2", Cn = {
|
|
|
1328
1330
|
"rect",
|
|
1329
1331
|
{
|
|
1330
1332
|
width: v,
|
|
1331
|
-
height:
|
|
1333
|
+
height: o,
|
|
1332
1334
|
fill: C.color,
|
|
1333
1335
|
rx: 0
|
|
1334
1336
|
}
|
|
1335
1337
|
)
|
|
1336
1338
|
]
|
|
1337
1339
|
},
|
|
1338
|
-
|
|
1340
|
+
f
|
|
1339
1341
|
);
|
|
1340
1342
|
}))
|
|
1341
1343
|
] }) }) });
|
|
@@ -1360,9 +1362,9 @@ const bn = "_graphicContainer_c9zrg_2", fn = "_titleContainer_c9zrg_14", xe = {
|
|
|
1360
1362
|
graphicContainer: bn,
|
|
1361
1363
|
titleContainer: fn
|
|
1362
1364
|
}, yn = ({
|
|
1363
|
-
data:
|
|
1365
|
+
data: s,
|
|
1364
1366
|
graphWidth: d = 700,
|
|
1365
|
-
containerStyle:
|
|
1367
|
+
containerStyle: o,
|
|
1366
1368
|
borderColor: n = "#605B56",
|
|
1367
1369
|
title: t = "Graphic Title",
|
|
1368
1370
|
fontColor: r = "#605B56",
|
|
@@ -1371,12 +1373,12 @@ const bn = "_graphicContainer_c9zrg_2", fn = "_titleContainer_c9zrg_14", xe = {
|
|
|
1371
1373
|
leftPadding: c = 200
|
|
1372
1374
|
}) => {
|
|
1373
1375
|
const { t: p } = k();
|
|
1374
|
-
return /* @__PURE__ */
|
|
1376
|
+
return /* @__PURE__ */ g(
|
|
1375
1377
|
"div",
|
|
1376
1378
|
{
|
|
1377
1379
|
className: xe.graphicContainer,
|
|
1378
1380
|
style: {
|
|
1379
|
-
...
|
|
1381
|
+
...o || {},
|
|
1380
1382
|
border: `1.5px solid ${n}`
|
|
1381
1383
|
},
|
|
1382
1384
|
children: [
|
|
@@ -1384,7 +1386,7 @@ const bn = "_graphicContainer_c9zrg_2", fn = "_titleContainer_c9zrg_14", xe = {
|
|
|
1384
1386
|
/* @__PURE__ */ i(
|
|
1385
1387
|
Pe,
|
|
1386
1388
|
{
|
|
1387
|
-
data:
|
|
1389
|
+
data: s,
|
|
1388
1390
|
width: d,
|
|
1389
1391
|
fontColor: r,
|
|
1390
1392
|
maxValue: l,
|
|
@@ -1429,9 +1431,9 @@ const vn = "_indicatorsCategory_1cu33_2", _n = "_title_1cu33_5", xn = "_list_1cu
|
|
|
1429
1431
|
customRadious: Ln,
|
|
1430
1432
|
optionText: Dn
|
|
1431
1433
|
}, fe = ({
|
|
1432
|
-
indicator:
|
|
1434
|
+
indicator: s,
|
|
1433
1435
|
values: d = [],
|
|
1434
|
-
activeColor:
|
|
1436
|
+
activeColor: o,
|
|
1435
1437
|
defaultColor: n = "#92898A",
|
|
1436
1438
|
activeIndicator: t,
|
|
1437
1439
|
activeIndicatorType: r,
|
|
@@ -1439,16 +1441,16 @@ const vn = "_indicatorsCategory_1cu33_2", _n = "_title_1cu33_5", xn = "_list_1cu
|
|
|
1439
1441
|
multiple: a = !1,
|
|
1440
1442
|
onChangeType: c
|
|
1441
1443
|
}) => {
|
|
1442
|
-
const { t: p } = k(), { name: u, type: m } =
|
|
1444
|
+
const { t: p } = k(), { name: u, type: m } = s, [h, b] = B(!1);
|
|
1443
1445
|
L(() => {
|
|
1444
|
-
t &&
|
|
1446
|
+
t && b(
|
|
1445
1447
|
a ? t.some(
|
|
1446
1448
|
(v) => v.name == String(u)
|
|
1447
1449
|
) : t.name == u
|
|
1448
1450
|
);
|
|
1449
1451
|
}, [t]);
|
|
1450
|
-
const C = () => /* @__PURE__ */ i("div", { className: S.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: S.switchType, children: /* @__PURE__ */
|
|
1451
|
-
/* @__PURE__ */
|
|
1452
|
+
const C = () => /* @__PURE__ */ i("div", { className: S.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: S.switchType, children: /* @__PURE__ */ g("div", { className: S.switchTypeOptions, children: [
|
|
1453
|
+
/* @__PURE__ */ g(
|
|
1452
1454
|
"div",
|
|
1453
1455
|
{
|
|
1454
1456
|
className: S.optionContainer,
|
|
@@ -1459,8 +1461,8 @@ const vn = "_indicatorsCategory_1cu33_2", _n = "_title_1cu33_5", xn = "_list_1cu
|
|
|
1459
1461
|
{
|
|
1460
1462
|
className: `${S.customRadious}`,
|
|
1461
1463
|
style: {
|
|
1462
|
-
backgroundColor: r === "cat" ?
|
|
1463
|
-
borderColor: r === "cat" ?
|
|
1464
|
+
backgroundColor: r === "cat" ? o : "transparent",
|
|
1465
|
+
borderColor: r === "cat" ? o : n
|
|
1464
1466
|
}
|
|
1465
1467
|
}
|
|
1466
1468
|
),
|
|
@@ -1469,7 +1471,7 @@ const vn = "_indicatorsCategory_1cu33_2", _n = "_title_1cu33_5", xn = "_list_1cu
|
|
|
1469
1471
|
{
|
|
1470
1472
|
className: S.optionText,
|
|
1471
1473
|
style: {
|
|
1472
|
-
color: r === "cat" ?
|
|
1474
|
+
color: r === "cat" ? o : n
|
|
1473
1475
|
},
|
|
1474
1476
|
children: p("indicators.cat")
|
|
1475
1477
|
}
|
|
@@ -1477,7 +1479,7 @@ const vn = "_indicatorsCategory_1cu33_2", _n = "_title_1cu33_5", xn = "_list_1cu
|
|
|
1477
1479
|
]
|
|
1478
1480
|
}
|
|
1479
1481
|
),
|
|
1480
|
-
/* @__PURE__ */
|
|
1482
|
+
/* @__PURE__ */ g(
|
|
1481
1483
|
"div",
|
|
1482
1484
|
{
|
|
1483
1485
|
className: S.optionContainer,
|
|
@@ -1488,8 +1490,8 @@ const vn = "_indicatorsCategory_1cu33_2", _n = "_title_1cu33_5", xn = "_list_1cu
|
|
|
1488
1490
|
{
|
|
1489
1491
|
className: `${S.customRadious}`,
|
|
1490
1492
|
style: {
|
|
1491
|
-
backgroundColor: r === "abs" ?
|
|
1492
|
-
borderColor: r === "abs" ?
|
|
1493
|
+
backgroundColor: r === "abs" ? o : "transparent",
|
|
1494
|
+
borderColor: r === "abs" ? o : n
|
|
1493
1495
|
}
|
|
1494
1496
|
}
|
|
1495
1497
|
),
|
|
@@ -1498,7 +1500,7 @@ const vn = "_indicatorsCategory_1cu33_2", _n = "_title_1cu33_5", xn = "_list_1cu
|
|
|
1498
1500
|
{
|
|
1499
1501
|
className: S.optionText,
|
|
1500
1502
|
style: {
|
|
1501
|
-
color: r === "abs" ?
|
|
1503
|
+
color: r === "abs" ? o : n
|
|
1502
1504
|
},
|
|
1503
1505
|
children: p("indicators.abs")
|
|
1504
1506
|
}
|
|
@@ -1506,7 +1508,7 @@ const vn = "_indicatorsCategory_1cu33_2", _n = "_title_1cu33_5", xn = "_list_1cu
|
|
|
1506
1508
|
]
|
|
1507
1509
|
}
|
|
1508
1510
|
)
|
|
1509
|
-
] }) }) }),
|
|
1511
|
+
] }) }) }), f = () => /* @__PURE__ */ i("div", { className: S.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: S.switchType, children: /* @__PURE__ */ i("div", { className: S.switchTypeOptions, children: d.map((v, y) => /* @__PURE__ */ g(
|
|
1510
1512
|
"div",
|
|
1511
1513
|
{
|
|
1512
1514
|
className: S.optionContainer,
|
|
@@ -1522,18 +1524,18 @@ const vn = "_indicatorsCategory_1cu33_2", _n = "_title_1cu33_5", xn = "_list_1cu
|
|
|
1522
1524
|
},
|
|
1523
1525
|
y
|
|
1524
1526
|
)) }) }) });
|
|
1525
|
-
return /* @__PURE__ */
|
|
1526
|
-
/* @__PURE__ */
|
|
1527
|
+
return /* @__PURE__ */ g("div", { className: S.indicatorContainer, children: [
|
|
1528
|
+
/* @__PURE__ */ g(
|
|
1527
1529
|
"div",
|
|
1528
1530
|
{
|
|
1529
1531
|
className: S.indicatorNameContainer,
|
|
1530
|
-
onClick: () => l({ indicator:
|
|
1532
|
+
onClick: () => l({ indicator: s }),
|
|
1531
1533
|
children: [
|
|
1532
1534
|
/* @__PURE__ */ i(
|
|
1533
1535
|
"div",
|
|
1534
1536
|
{
|
|
1535
1537
|
style: {
|
|
1536
|
-
border:
|
|
1538
|
+
border: h ? `1px solid ${o}` : `1px solid ${n}`
|
|
1537
1539
|
},
|
|
1538
1540
|
className: S.dot
|
|
1539
1541
|
}
|
|
@@ -1542,7 +1544,7 @@ const vn = "_indicatorsCategory_1cu33_2", _n = "_title_1cu33_5", xn = "_list_1cu
|
|
|
1542
1544
|
"h4",
|
|
1543
1545
|
{
|
|
1544
1546
|
className: S.indicatorName,
|
|
1545
|
-
style: { color:
|
|
1547
|
+
style: { color: h ? o : n },
|
|
1546
1548
|
children: /* @__PURE__ */ i(ge, { i18nKey: u, components: { sup: /* @__PURE__ */ i("sup", {}) } })
|
|
1547
1549
|
}
|
|
1548
1550
|
)
|
|
@@ -1550,7 +1552,7 @@ const vn = "_indicatorsCategory_1cu33_2", _n = "_title_1cu33_5", xn = "_list_1cu
|
|
|
1550
1552
|
}
|
|
1551
1553
|
),
|
|
1552
1554
|
(t == null ? void 0 : t.name) === u && m === "both" && /* @__PURE__ */ i("div", { children: C() }),
|
|
1553
|
-
(t == null ? void 0 : t.name) === u && m === "twoUnits" && /* @__PURE__ */ i("div", { children:
|
|
1555
|
+
(t == null ? void 0 : t.name) === u && m === "twoUnits" && /* @__PURE__ */ i("div", { children: f() })
|
|
1554
1556
|
] });
|
|
1555
1557
|
};
|
|
1556
1558
|
fe.propTypes = {
|
|
@@ -1569,9 +1571,9 @@ const $n = "_indicatorsSubCategory_1dzsi_2", An = "_list_1dzsi_8", we = {
|
|
|
1569
1571
|
indicatorsSubCategory: $n,
|
|
1570
1572
|
list: An
|
|
1571
1573
|
}, ze = ({
|
|
1572
|
-
subcName:
|
|
1574
|
+
subcName: s,
|
|
1573
1575
|
indicators: d,
|
|
1574
|
-
defaultColor:
|
|
1576
|
+
defaultColor: o,
|
|
1575
1577
|
activeColor: n,
|
|
1576
1578
|
activeSubCategory: t,
|
|
1577
1579
|
onClickSubCategory: r,
|
|
@@ -1582,32 +1584,32 @@ const $n = "_indicatorsSubCategory_1dzsi_2", An = "_list_1dzsi_8", we = {
|
|
|
1582
1584
|
activeIndicatorType: u,
|
|
1583
1585
|
onChangeType: m
|
|
1584
1586
|
}) => {
|
|
1585
|
-
const { t:
|
|
1587
|
+
const { t: h } = k(), [b, C] = B(!1);
|
|
1586
1588
|
return L(() => {
|
|
1587
1589
|
C(t == l);
|
|
1588
|
-
}, [t, l]), /* @__PURE__ */
|
|
1590
|
+
}, [t, l]), /* @__PURE__ */ g(
|
|
1589
1591
|
Ce.div,
|
|
1590
1592
|
{
|
|
1591
1593
|
className: we.indicatorsSubCategory,
|
|
1592
1594
|
initial: { height: "43px" },
|
|
1593
|
-
animate: { height:
|
|
1595
|
+
animate: { height: b ? "auto" : "43px" },
|
|
1594
1596
|
transition: { duration: 0.4 },
|
|
1595
1597
|
children: [
|
|
1596
|
-
/* @__PURE__ */ i("button", { onClick: () => r(l), children: /* @__PURE__ */
|
|
1597
|
-
/* @__PURE__ */ i("span", { style: { color:
|
|
1598
|
+
/* @__PURE__ */ i("button", { onClick: () => r(l), children: /* @__PURE__ */ g("h3", { style: { color: b ? n : o }, children: [
|
|
1599
|
+
/* @__PURE__ */ i("span", { style: { color: b ? n : o }, children: b ? "-" : "+" }),
|
|
1598
1600
|
/* @__PURE__ */ i(
|
|
1599
1601
|
"span",
|
|
1600
1602
|
{
|
|
1601
|
-
style: { marginLeft: 12, color:
|
|
1602
|
-
children:
|
|
1603
|
+
style: { marginLeft: 12, color: b ? n : o },
|
|
1604
|
+
children: h(s)
|
|
1603
1605
|
}
|
|
1604
1606
|
)
|
|
1605
1607
|
] }) }),
|
|
1606
|
-
d && /* @__PURE__ */ i("div", { className: we.list, children: d == null ? void 0 : d.map((
|
|
1608
|
+
d && /* @__PURE__ */ i("div", { className: we.list, children: d == null ? void 0 : d.map((f, v) => /* @__PURE__ */ i(
|
|
1607
1609
|
fe,
|
|
1608
1610
|
{
|
|
1609
|
-
indicator:
|
|
1610
|
-
defaultColor:
|
|
1611
|
+
indicator: f,
|
|
1612
|
+
defaultColor: o,
|
|
1611
1613
|
activeColor: n,
|
|
1612
1614
|
activeIndicator: a,
|
|
1613
1615
|
onClickIndicator: c,
|
|
@@ -1634,9 +1636,9 @@ ze.propTypes = {
|
|
|
1634
1636
|
onClickIndicator: e.func
|
|
1635
1637
|
};
|
|
1636
1638
|
const je = ({
|
|
1637
|
-
cat:
|
|
1639
|
+
cat: s,
|
|
1638
1640
|
id: d,
|
|
1639
|
-
activeColor:
|
|
1641
|
+
activeColor: o,
|
|
1640
1642
|
defaultColor: n,
|
|
1641
1643
|
onClickCategory: t,
|
|
1642
1644
|
activeCategory: r,
|
|
@@ -1646,13 +1648,13 @@ const je = ({
|
|
|
1646
1648
|
onClickIndicator: p,
|
|
1647
1649
|
multiple: u,
|
|
1648
1650
|
activeIndicatorType: m,
|
|
1649
|
-
onChangeType:
|
|
1651
|
+
onChangeType: h
|
|
1650
1652
|
}) => {
|
|
1651
1653
|
var v;
|
|
1652
|
-
const { t:
|
|
1654
|
+
const { t: b } = k(), [C, f] = B(!1);
|
|
1653
1655
|
return L(() => {
|
|
1654
|
-
|
|
1655
|
-
}, [r, d]), /* @__PURE__ */
|
|
1656
|
+
f(r === d);
|
|
1657
|
+
}, [r, d]), /* @__PURE__ */ g(
|
|
1656
1658
|
Ce.div,
|
|
1657
1659
|
{
|
|
1658
1660
|
className: ae.indicatorsCategory,
|
|
@@ -1661,21 +1663,21 @@ const je = ({
|
|
|
1661
1663
|
transition: { duration: 0.4 },
|
|
1662
1664
|
style: {
|
|
1663
1665
|
backgroundColor: "white",
|
|
1664
|
-
borderBottom: C ? `1px solid ${
|
|
1666
|
+
borderBottom: C ? `1px solid ${o}` : "0px",
|
|
1665
1667
|
marginBottom: C ? "20px" : "0px"
|
|
1666
1668
|
},
|
|
1667
1669
|
children: [
|
|
1668
|
-
/* @__PURE__ */
|
|
1669
|
-
/* @__PURE__ */ i("span", { style: { color: C ?
|
|
1670
|
+
/* @__PURE__ */ g("h2", { className: `${ae.title}`, onClick: () => t(d), children: [
|
|
1671
|
+
/* @__PURE__ */ i("span", { style: { color: C ? o : n }, children: C ? "-" : "+" }),
|
|
1670
1672
|
/* @__PURE__ */ i(
|
|
1671
1673
|
"span",
|
|
1672
1674
|
{
|
|
1673
|
-
style: { marginLeft: 12, color: C ?
|
|
1674
|
-
children:
|
|
1675
|
+
style: { marginLeft: 12, color: C ? o : n },
|
|
1676
|
+
children: b(s.name)
|
|
1675
1677
|
}
|
|
1676
1678
|
)
|
|
1677
1679
|
] }),
|
|
1678
|
-
|
|
1680
|
+
s.subcategories ? s.subcategories.map(
|
|
1679
1681
|
({ name: y, subcategory: _, indicators: w }, x) => /* @__PURE__ */ i(
|
|
1680
1682
|
ze,
|
|
1681
1683
|
{
|
|
@@ -1686,26 +1688,26 @@ const je = ({
|
|
|
1686
1688
|
activeIndicator: c,
|
|
1687
1689
|
onClickIndicator: p,
|
|
1688
1690
|
multiple: u,
|
|
1689
|
-
activeColor:
|
|
1691
|
+
activeColor: o,
|
|
1690
1692
|
defaultColor: n,
|
|
1691
1693
|
indicators: w,
|
|
1692
1694
|
activeIndicatorType: m,
|
|
1693
|
-
onChangeType:
|
|
1695
|
+
onChangeType: h
|
|
1694
1696
|
},
|
|
1695
1697
|
`subcKey ${x}`
|
|
1696
1698
|
)
|
|
1697
|
-
) : /* @__PURE__ */ i("div", { className: ae.list, children: (v =
|
|
1699
|
+
) : /* @__PURE__ */ i("div", { className: ae.list, children: (v = s.indicators) == null ? void 0 : v.map((y, _) => /* @__PURE__ */ i(
|
|
1698
1700
|
fe,
|
|
1699
1701
|
{
|
|
1700
1702
|
indicator: y,
|
|
1701
1703
|
values: y.type == "twoUnits" && y.values,
|
|
1702
|
-
activeColor:
|
|
1704
|
+
activeColor: o,
|
|
1703
1705
|
defaultColor: n,
|
|
1704
1706
|
activeIndicator: c,
|
|
1705
1707
|
onClickIndicator: p,
|
|
1706
1708
|
multiple: u,
|
|
1707
1709
|
activeIndicatorType: m,
|
|
1708
|
-
onChangeType:
|
|
1710
|
+
onChangeType: h
|
|
1709
1711
|
},
|
|
1710
1712
|
`indicator${_}`
|
|
1711
1713
|
)) })
|
|
@@ -1731,9 +1733,9 @@ const On = "_indicatorsList_fklyu_2", In = "_title_fklyu_6", ke = {
|
|
|
1731
1733
|
indicatorsList: On,
|
|
1732
1734
|
title: In
|
|
1733
1735
|
}, Rn = ({
|
|
1734
|
-
indicators:
|
|
1736
|
+
indicators: s,
|
|
1735
1737
|
activeColor: d,
|
|
1736
|
-
defaultColor:
|
|
1738
|
+
defaultColor: o = "#92898A",
|
|
1737
1739
|
// Función que se ejecuta al seleccionar un indicador, recibe el o los ikeys como parametro
|
|
1738
1740
|
onChange: n,
|
|
1739
1741
|
// Selección multiple
|
|
@@ -1744,19 +1746,19 @@ const On = "_indicatorsList_fklyu_2", In = "_title_fklyu_6", ke = {
|
|
|
1744
1746
|
changeIndType: l,
|
|
1745
1747
|
activeIndicatorType: a
|
|
1746
1748
|
}) => {
|
|
1747
|
-
const { t: c } = k(), [p, u] = B(), [m,
|
|
1749
|
+
const { t: c } = k(), [p, u] = B(), [m, h] = B(), [b, C] = B(), f = (x) => {
|
|
1748
1750
|
u(p == x ? null : x);
|
|
1749
1751
|
}, v = (x) => {
|
|
1750
|
-
|
|
1752
|
+
h(m == x ? null : x);
|
|
1751
1753
|
}, y = ({ indicator: x }) => {
|
|
1752
1754
|
console.log("onClickIndicator: ", x), _(x);
|
|
1753
1755
|
}, _ = (x) => {
|
|
1754
1756
|
if (!t)
|
|
1755
1757
|
C(
|
|
1756
|
-
(
|
|
1758
|
+
(b == null ? void 0 : b.name) == x.name ? null : x
|
|
1757
1759
|
);
|
|
1758
1760
|
else {
|
|
1759
|
-
let N =
|
|
1761
|
+
let N = b && b.length > 0 ? [...b] : [];
|
|
1760
1762
|
C(
|
|
1761
1763
|
N != null && N.some(
|
|
1762
1764
|
($) => $.name == x.name
|
|
@@ -1767,43 +1769,43 @@ const On = "_indicatorsList_fklyu_2", In = "_title_fklyu_6", ke = {
|
|
|
1767
1769
|
}
|
|
1768
1770
|
};
|
|
1769
1771
|
L(() => {
|
|
1770
|
-
console.log("activeindicator changed to: ",
|
|
1771
|
-
}, [
|
|
1772
|
-
if (r && !
|
|
1772
|
+
console.log("activeindicator changed to: ", b), n && typeof n == "function" && b && n({ activeIndicator: b });
|
|
1773
|
+
}, [b]), Ke(() => {
|
|
1774
|
+
if (r && !b)
|
|
1773
1775
|
if (t && r && Array.isArray(r)) {
|
|
1774
|
-
let x =
|
|
1776
|
+
let x = b && b.length > 0 ? [...b] : [];
|
|
1775
1777
|
C([...x, ...r]), w(r[0].name);
|
|
1776
1778
|
} else
|
|
1777
1779
|
_(r), w(r.name);
|
|
1778
1780
|
}, []);
|
|
1779
1781
|
const w = (x) => {
|
|
1780
|
-
const N =
|
|
1782
|
+
const N = s.find(($) => {
|
|
1781
1783
|
if ($.subcategories) {
|
|
1782
1784
|
let A = $.subcategories.find(
|
|
1783
1785
|
(ne) => ne.indicators.find((H) => H.name == x)
|
|
1784
1786
|
);
|
|
1785
1787
|
if (A)
|
|
1786
|
-
return
|
|
1788
|
+
return h(A.subcategory), A;
|
|
1787
1789
|
} else
|
|
1788
1790
|
return $.indicators.some((A) => A.name == x);
|
|
1789
1791
|
});
|
|
1790
1792
|
N && u(N.category);
|
|
1791
1793
|
};
|
|
1792
|
-
return /* @__PURE__ */
|
|
1793
|
-
/* @__PURE__ */ i("h2", { className: ke.title, style: { color:
|
|
1794
|
-
|
|
1794
|
+
return /* @__PURE__ */ g("div", { className: ke.indicatorsList, children: [
|
|
1795
|
+
/* @__PURE__ */ i("h2", { className: ke.title, style: { color: o }, children: c("indicators.indicators") }),
|
|
1796
|
+
s.map((x, N) => /* @__PURE__ */ i(
|
|
1795
1797
|
je,
|
|
1796
1798
|
{
|
|
1797
1799
|
id: x.category,
|
|
1798
1800
|
cat: x,
|
|
1799
|
-
onClickCategory:
|
|
1801
|
+
onClickCategory: f,
|
|
1800
1802
|
activeCategory: p,
|
|
1801
1803
|
onClickSubCategory: v,
|
|
1802
1804
|
activeSubCategory: m,
|
|
1803
1805
|
onClickIndicator: y,
|
|
1804
|
-
activeIndicator:
|
|
1806
|
+
activeIndicator: b,
|
|
1805
1807
|
activeColor: d,
|
|
1806
|
-
defaultColor:
|
|
1808
|
+
defaultColor: o,
|
|
1807
1809
|
multiple: t,
|
|
1808
1810
|
onChange: n,
|
|
1809
1811
|
onChangeType: l,
|
|
@@ -1830,12 +1832,12 @@ const Vn = "_langSelector_o9enq_2", Pn = "_currentLang_o9enq_14", zn = "_arrow_o
|
|
|
1830
1832
|
arrow: zn,
|
|
1831
1833
|
prevImg: jn,
|
|
1832
1834
|
langMenu: qn
|
|
1833
|
-
}, En = ({ langs:
|
|
1834
|
-
const [n, t] = B(!1), { i18n: r } = k(), l =
|
|
1835
|
+
}, En = ({ langs: s, arrow: d, imgPrev: o }) => {
|
|
1836
|
+
const [n, t] = B(!1), { i18n: r } = k(), l = s.find((c) => c.code == r.language), a = (c) => {
|
|
1835
1837
|
r.changeLanguage(c), t(!1);
|
|
1836
1838
|
};
|
|
1837
|
-
return /* @__PURE__ */
|
|
1838
|
-
/* @__PURE__ */
|
|
1839
|
+
return /* @__PURE__ */ g("div", { className: Z.langSelector, children: [
|
|
1840
|
+
/* @__PURE__ */ g(
|
|
1839
1841
|
"div",
|
|
1840
1842
|
{
|
|
1841
1843
|
className: Z.currentLang,
|
|
@@ -1843,13 +1845,13 @@ const Vn = "_langSelector_o9enq_2", Pn = "_currentLang_o9enq_14", zn = "_arrow_o
|
|
|
1843
1845
|
t(!n);
|
|
1844
1846
|
},
|
|
1845
1847
|
children: [
|
|
1846
|
-
|
|
1848
|
+
o && /* @__PURE__ */ i("img", { className: Z.prevImg, src: o }),
|
|
1847
1849
|
(l == null ? void 0 : l.titleSelected) || (l == null ? void 0 : l.title),
|
|
1848
1850
|
/* @__PURE__ */ i("img", { src: d, className: Z.arrow })
|
|
1849
1851
|
]
|
|
1850
1852
|
}
|
|
1851
1853
|
),
|
|
1852
|
-
n && /* @__PURE__ */ i("div", { className: Z.langMenu, children:
|
|
1854
|
+
n && /* @__PURE__ */ i("div", { className: Z.langMenu, children: s.map((c) => /* @__PURE__ */ i(
|
|
1853
1855
|
"button",
|
|
1854
1856
|
{
|
|
1855
1857
|
className: (l == null ? void 0 : l.code) == c.code ? Z.active : "",
|
|
@@ -1890,11 +1892,11 @@ const Kn = "_legendContainer_atg3j_3", Zn = "_closeButton_atg3j_18", Un = "_titl
|
|
|
1890
1892
|
moreInfoContainer: ni
|
|
1891
1893
|
}, ii = ({
|
|
1892
1894
|
//JSON with the styles of the container (optional)
|
|
1893
|
-
containerStyles:
|
|
1895
|
+
containerStyles: s,
|
|
1894
1896
|
//Title on top of the legend
|
|
1895
1897
|
title: d,
|
|
1896
1898
|
//Array to display the info behind the title should have: [{title, value}, ...]
|
|
1897
|
-
infoList:
|
|
1899
|
+
infoList: o,
|
|
1898
1900
|
//Array to display the items of the legend: [{title, color}, ...]
|
|
1899
1901
|
//color should be a string with hexadecimal value
|
|
1900
1902
|
legendList: n,
|
|
@@ -1912,23 +1914,23 @@ const Kn = "_legendContainer_atg3j_3", Zn = "_closeButton_atg3j_18", Un = "_titl
|
|
|
1912
1914
|
onClickClose: c
|
|
1913
1915
|
}) => {
|
|
1914
1916
|
const { t: p } = k();
|
|
1915
|
-
return /* @__PURE__ */
|
|
1917
|
+
return /* @__PURE__ */ g(
|
|
1916
1918
|
"div",
|
|
1917
1919
|
{
|
|
1918
|
-
style:
|
|
1920
|
+
style: s ? { ...s } : {},
|
|
1919
1921
|
className: `${M.legendContainer}`,
|
|
1920
1922
|
children: [
|
|
1921
1923
|
/* @__PURE__ */ i("button", { className: M.closeButton, onClick: c }),
|
|
1922
1924
|
d && /* @__PURE__ */ i("div", { className: M.titleContainer, children: /* @__PURE__ */ i("h2", { children: d }) }),
|
|
1923
|
-
|
|
1925
|
+
o && o.length > 0 && /* @__PURE__ */ i("div", { className: M.infoContainer, children: /* @__PURE__ */ i("ul", { children: o.map(({ title: u, value: m }) => /* @__PURE__ */ g("li", { children: [
|
|
1924
1926
|
/* @__PURE__ */ i("h3", { className: M.title, children: `${u}:` }),
|
|
1925
|
-
/* @__PURE__ */
|
|
1927
|
+
/* @__PURE__ */ g("span", { className: M.value, children: [
|
|
1926
1928
|
" ",
|
|
1927
1929
|
m
|
|
1928
1930
|
] })
|
|
1929
1931
|
] }, d)) }) }),
|
|
1930
1932
|
/* @__PURE__ */ i("h3", { className: M.titleLegendList, children: t ? /* @__PURE__ */ i(ge, { i18nKey: t, components: { sup: /* @__PURE__ */ i("sup", {}) } }) : p("mainUse") }),
|
|
1931
|
-
/* @__PURE__ */ i("div", { className: M.legendListContainer, children: r ? /* @__PURE__ */
|
|
1933
|
+
/* @__PURE__ */ i("div", { className: M.legendListContainer, children: r ? /* @__PURE__ */ g("div", { className: M.absoluteValueContainer, children: [
|
|
1932
1934
|
/* @__PURE__ */ i(
|
|
1933
1935
|
"div",
|
|
1934
1936
|
{
|
|
@@ -1938,20 +1940,20 @@ const Kn = "_legendContainer_atg3j_3", Zn = "_closeButton_atg3j_18", Un = "_titl
|
|
|
1938
1940
|
}
|
|
1939
1941
|
}
|
|
1940
1942
|
),
|
|
1941
|
-
/* @__PURE__ */
|
|
1942
|
-
/* @__PURE__ */
|
|
1943
|
+
/* @__PURE__ */ g("div", { className: M.absoluteValueText, children: [
|
|
1944
|
+
/* @__PURE__ */ g("span", { children: [
|
|
1943
1945
|
r.maxValue,
|
|
1944
1946
|
" ",
|
|
1945
1947
|
p(r.unit)
|
|
1946
1948
|
] }),
|
|
1947
|
-
/* @__PURE__ */
|
|
1949
|
+
/* @__PURE__ */ g("span", { children: [
|
|
1948
1950
|
r.minValue,
|
|
1949
1951
|
" ",
|
|
1950
1952
|
p(r.unit)
|
|
1951
1953
|
] })
|
|
1952
1954
|
] })
|
|
1953
1955
|
] }) : n && n.length > 0 && /* @__PURE__ */ i("div", { className: M.gridContainer, children: n.map(
|
|
1954
|
-
({ title: u, color: m }) => /* @__PURE__ */
|
|
1956
|
+
({ title: u, color: m }) => /* @__PURE__ */ g("div", { className: M.elementLegendContainer, children: [
|
|
1955
1957
|
/* @__PURE__ */ i(
|
|
1956
1958
|
"div",
|
|
1957
1959
|
{
|
|
@@ -1959,7 +1961,7 @@ const Kn = "_legendContainer_atg3j_3", Zn = "_closeButton_atg3j_18", Un = "_titl
|
|
|
1959
1961
|
style: { backgroundColor: m }
|
|
1960
1962
|
}
|
|
1961
1963
|
),
|
|
1962
|
-
/* @__PURE__ */
|
|
1964
|
+
/* @__PURE__ */ g("div", { className: M.titleLegendElement, children: [
|
|
1963
1965
|
p(u),
|
|
1964
1966
|
" "
|
|
1965
1967
|
] })
|
|
@@ -1996,13 +1998,13 @@ ii.propTypes = {
|
|
|
1996
1998
|
buttonTitle: e.string,
|
|
1997
1999
|
onClickClose: e.func
|
|
1998
2000
|
};
|
|
1999
|
-
const
|
|
2000
|
-
logo:
|
|
2001
|
-
},
|
|
2002
|
-
const { t: n } = k(), t = /* @__PURE__ */ i("img", { src:
|
|
2003
|
-
return
|
|
2001
|
+
const si = "_logo_1ewa6_2", Ne = {
|
|
2002
|
+
logo: si
|
|
2003
|
+
}, oi = ({ src: s, alt: d, href: o }) => {
|
|
2004
|
+
const { t: n } = k(), t = /* @__PURE__ */ i("img", { src: s, alt: n(d) });
|
|
2005
|
+
return o ? /* @__PURE__ */ i("div", { className: Ne.logo, children: /* @__PURE__ */ i("a", { href: o, children: t }) }) : /* @__PURE__ */ i("div", { className: Ne.logo, children: t });
|
|
2004
2006
|
};
|
|
2005
|
-
|
|
2007
|
+
oi.propTypes = {
|
|
2006
2008
|
src: e.string.isRequired,
|
|
2007
2009
|
alt: e.string.isRequired,
|
|
2008
2010
|
href: e.string,
|
|
@@ -2013,9 +2015,9 @@ const ri = "_mapContainer_84pkf_2", ai = {
|
|
|
2013
2015
|
};
|
|
2014
2016
|
Ue.accessToken = "pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";
|
|
2015
2017
|
const li = ({
|
|
2016
|
-
initialView:
|
|
2018
|
+
initialView: s = { latitude: 39.4699, longitude: -0.3763, zoom: 12 },
|
|
2017
2019
|
maxZoom: d = 17,
|
|
2018
|
-
minZoom:
|
|
2020
|
+
minZoom: o = 8,
|
|
2019
2021
|
mapStyle: n,
|
|
2020
2022
|
firstSymbolLayer: t,
|
|
2021
2023
|
cssProps: r = "",
|
|
@@ -2025,32 +2027,32 @@ const li = ({
|
|
|
2025
2027
|
sources: p = [],
|
|
2026
2028
|
layers: u = []
|
|
2027
2029
|
}) => {
|
|
2028
|
-
const m = he(), [
|
|
2030
|
+
const m = he(), [h, b] = B(null), C = de((f) => f.mapState.showTexts);
|
|
2029
2031
|
return L(() => {
|
|
2030
2032
|
if (m.current) {
|
|
2031
|
-
const
|
|
2032
|
-
|
|
2033
|
-
y.type == "symbol" && y.id != "professionals" && (C ?
|
|
2033
|
+
const f = m.current.getMap();
|
|
2034
|
+
f.getStyle().layers.map((y) => {
|
|
2035
|
+
y.type == "symbol" && y.id != "professionals" && (C ? f.setLayoutProperty(y.id, "visibility", "visible") : f.setLayoutProperty(y.id, "visibility", "none"));
|
|
2034
2036
|
});
|
|
2035
2037
|
}
|
|
2036
|
-
}, [C]), /* @__PURE__ */ i("div", { className: `${ai.mapContainer}`, style: r, children: /* @__PURE__ */
|
|
2038
|
+
}, [C]), /* @__PURE__ */ i("div", { className: `${ai.mapContainer}`, style: r, children: /* @__PURE__ */ g(
|
|
2037
2039
|
He,
|
|
2038
2040
|
{
|
|
2039
|
-
initialViewState:
|
|
2041
|
+
initialViewState: s,
|
|
2040
2042
|
ref: m,
|
|
2041
2043
|
hash: !1,
|
|
2042
2044
|
maxZoom: d,
|
|
2043
|
-
minZoom:
|
|
2045
|
+
minZoom: o,
|
|
2044
2046
|
mapStyle: n,
|
|
2045
2047
|
onClick: l,
|
|
2046
2048
|
interactiveLayerIds: a,
|
|
2047
2049
|
children: [
|
|
2048
|
-
p.length && p.map((
|
|
2050
|
+
p.length && p.map((f, v) => /* @__PURE__ */ i(
|
|
2049
2051
|
Ge,
|
|
2050
2052
|
{
|
|
2051
|
-
...
|
|
2053
|
+
...f,
|
|
2052
2054
|
children: u.length && u.map((y, _) => {
|
|
2053
|
-
if (y.sourceId ==
|
|
2055
|
+
if (y.sourceId == f.id) return /* @__PURE__ */ i(
|
|
2054
2056
|
Ye,
|
|
2055
2057
|
{
|
|
2056
2058
|
...y.layer,
|
|
@@ -2063,13 +2065,13 @@ const li = ({
|
|
|
2063
2065
|
v
|
|
2064
2066
|
)),
|
|
2065
2067
|
/* @__PURE__ */ i(We, { position: "bottom-right", visualizePitch: !0 }),
|
|
2066
|
-
c &&
|
|
2068
|
+
c && h && /* @__PURE__ */ i(
|
|
2067
2069
|
Xe,
|
|
2068
2070
|
{
|
|
2069
2071
|
longitude: c.longitude,
|
|
2070
2072
|
latitude: c.latitude,
|
|
2071
2073
|
anchor: c.anchor,
|
|
2072
|
-
onClose: () =>
|
|
2074
|
+
onClose: () => b(null),
|
|
2073
2075
|
children: c.content
|
|
2074
2076
|
}
|
|
2075
2077
|
)
|
|
@@ -2127,21 +2129,21 @@ const ci = "_mapContainer_b0pyr_3", di = {
|
|
|
2127
2129
|
}, pi = "_FeaturePopUp_1gd6w_2", ui = "_title_1gd6w_2", Se = {
|
|
2128
2130
|
FeaturePopUp: pi,
|
|
2129
2131
|
title: ui
|
|
2130
|
-
}, mi = ({ props:
|
|
2132
|
+
}, mi = ({ props: s }) => {
|
|
2131
2133
|
const { t: d } = k();
|
|
2132
|
-
return /* @__PURE__ */ i("div", { className: Se.FeaturePopUp, children:
|
|
2133
|
-
/* @__PURE__ */
|
|
2134
|
-
/* @__PURE__ */ i(ge, { i18nKey:
|
|
2134
|
+
return /* @__PURE__ */ i("div", { className: Se.FeaturePopUp, children: s.map((o) => /* @__PURE__ */ g("p", { children: [
|
|
2135
|
+
/* @__PURE__ */ g("span", { className: Se.title, children: [
|
|
2136
|
+
/* @__PURE__ */ i(ge, { i18nKey: o.name, components: { sup: /* @__PURE__ */ i("sup", {}) } }),
|
|
2135
2137
|
": "
|
|
2136
2138
|
] }),
|
|
2137
|
-
|
|
2139
|
+
o.value.toLocaleString("de", { maximumFractionDigits: 2 }),
|
|
2138
2140
|
" ",
|
|
2139
|
-
d(
|
|
2141
|
+
d(o.unit)
|
|
2140
2142
|
] })) });
|
|
2141
2143
|
}, hi = ({
|
|
2142
|
-
initialView:
|
|
2144
|
+
initialView: s = { latitude: 39.4699, longitude: -0.3763, zoom: 12 },
|
|
2143
2145
|
maxZoom: d = 17,
|
|
2144
|
-
minZoom:
|
|
2146
|
+
minZoom: o = 8,
|
|
2145
2147
|
mapStyle: n,
|
|
2146
2148
|
firstSymbolLayer: t,
|
|
2147
2149
|
cssProps: r = {},
|
|
@@ -2151,42 +2153,42 @@ const ci = "_mapContainer_b0pyr_3", di = {
|
|
|
2151
2153
|
layers: p = [],
|
|
2152
2154
|
filters: u,
|
|
2153
2155
|
popUpParams: m,
|
|
2154
|
-
onClosePopUp:
|
|
2155
|
-
showTexts:
|
|
2156
|
+
onClosePopUp: h,
|
|
2157
|
+
showTexts: b
|
|
2156
2158
|
}) => {
|
|
2157
2159
|
console.log(u);
|
|
2158
2160
|
const C = he();
|
|
2159
2161
|
return L(() => {
|
|
2160
2162
|
if (C.current) {
|
|
2161
|
-
const
|
|
2162
|
-
|
|
2163
|
-
y.type == "symbol" && y.id != "professionals" && (
|
|
2163
|
+
const f = C.current.getMap();
|
|
2164
|
+
f.getStyle().layers.map((y) => {
|
|
2165
|
+
y.type == "symbol" && y.id != "professionals" && (b ? f.setLayoutProperty(y.id, "visibility", "visible") : f.setLayoutProperty(y.id, "visibility", "none"));
|
|
2164
2166
|
});
|
|
2165
2167
|
}
|
|
2166
|
-
}, [
|
|
2167
|
-
let
|
|
2168
|
-
return ie.addProtocol("pmtiles",
|
|
2168
|
+
}, [b]), L(() => {
|
|
2169
|
+
let f = new Je();
|
|
2170
|
+
return ie.addProtocol("pmtiles", f.tile), () => {
|
|
2169
2171
|
ie.removeProtocol("pmtiles");
|
|
2170
2172
|
};
|
|
2171
|
-
}, []), /* @__PURE__ */ i("div", { className: `${di.mapContainer}`, style: r && r, children: /* @__PURE__ */
|
|
2173
|
+
}, []), /* @__PURE__ */ i("div", { className: `${di.mapContainer}`, style: r && r, children: /* @__PURE__ */ g(
|
|
2172
2174
|
Qe,
|
|
2173
2175
|
{
|
|
2174
2176
|
mapLib: ie,
|
|
2175
|
-
initialViewState:
|
|
2177
|
+
initialViewState: s,
|
|
2176
2178
|
ref: C,
|
|
2177
2179
|
hash: !1,
|
|
2178
2180
|
maxZoom: d,
|
|
2179
|
-
minZoom:
|
|
2181
|
+
minZoom: o,
|
|
2180
2182
|
mapStyle: n,
|
|
2181
2183
|
onClick: l,
|
|
2182
2184
|
interactiveLayerIds: a,
|
|
2183
2185
|
children: [
|
|
2184
|
-
c.length && c.map((
|
|
2186
|
+
c.length && c.map((f, v) => /* @__PURE__ */ i(
|
|
2185
2187
|
et,
|
|
2186
2188
|
{
|
|
2187
|
-
...
|
|
2189
|
+
...f,
|
|
2188
2190
|
children: p.length && p.map((y, _) => {
|
|
2189
|
-
if (y.sourceId ==
|
|
2191
|
+
if (y.sourceId == f.id) return /* @__PURE__ */ i(
|
|
2190
2192
|
tt,
|
|
2191
2193
|
{
|
|
2192
2194
|
...y.layer,
|
|
@@ -2205,7 +2207,7 @@ const ci = "_mapContainer_b0pyr_3", di = {
|
|
|
2205
2207
|
{
|
|
2206
2208
|
longitude: m.lng,
|
|
2207
2209
|
latitude: m.lat,
|
|
2208
|
-
onClose:
|
|
2210
|
+
onClose: h,
|
|
2209
2211
|
children: /* @__PURE__ */ i(mi, { props: m.props })
|
|
2210
2212
|
}
|
|
2211
2213
|
)
|
|
@@ -2263,21 +2265,21 @@ const gi = "_sectionBar_1egwc_2", Ci = "_leftContent_1egwc_14", bi = "_textConta
|
|
|
2263
2265
|
title: fi,
|
|
2264
2266
|
subtitle: yi,
|
|
2265
2267
|
rightContent: vi
|
|
2266
|
-
},
|
|
2267
|
-
leftIcon:
|
|
2268
|
+
}, hs = ({
|
|
2269
|
+
leftIcon: s,
|
|
2268
2270
|
title: d,
|
|
2269
|
-
subtitle:
|
|
2271
|
+
subtitle: o,
|
|
2270
2272
|
rightContent: n,
|
|
2271
2273
|
mainColor: t,
|
|
2272
2274
|
width: r
|
|
2273
2275
|
}) => {
|
|
2274
2276
|
const { t: l } = k();
|
|
2275
|
-
return /* @__PURE__ */
|
|
2276
|
-
/* @__PURE__ */
|
|
2277
|
-
|
|
2278
|
-
/* @__PURE__ */
|
|
2277
|
+
return /* @__PURE__ */ g("div", { className: z.sectionBar, style: { width: r && r }, children: [
|
|
2278
|
+
/* @__PURE__ */ g("div", { className: z.leftContent, children: [
|
|
2279
|
+
s && /* @__PURE__ */ i("img", { src: s, alt: "Icono", className: z.icon }),
|
|
2280
|
+
/* @__PURE__ */ g("div", { className: z.textContainer, children: [
|
|
2279
2281
|
/* @__PURE__ */ i("div", { className: z.title, children: l(d) }),
|
|
2280
|
-
|
|
2282
|
+
o && /* @__PURE__ */ i("div", { className: z.subtitle, children: o })
|
|
2281
2283
|
] })
|
|
2282
2284
|
] }),
|
|
2283
2285
|
/* @__PURE__ */ i("div", { className: z.rightContent, children: n })
|
|
@@ -2292,33 +2294,33 @@ const gi = "_sectionBar_1egwc_2", Ci = "_leftContent_1egwc_14", bi = "_textConta
|
|
|
2292
2294
|
activeIndicatorUnit: null
|
|
2293
2295
|
},
|
|
2294
2296
|
reducers: {
|
|
2295
|
-
setShowTexts: (
|
|
2296
|
-
|
|
2297
|
+
setShowTexts: (s, d) => {
|
|
2298
|
+
s.showTexts = d.payload;
|
|
2297
2299
|
},
|
|
2298
|
-
setYear: (
|
|
2299
|
-
|
|
2300
|
+
setYear: (s, d) => {
|
|
2301
|
+
s.sliderSelectedYear = d.payload;
|
|
2300
2302
|
},
|
|
2301
|
-
setActiveIndicatorKey: (
|
|
2302
|
-
|
|
2303
|
+
setActiveIndicatorKey: (s, d) => {
|
|
2304
|
+
s.activeIndicatorKey = d.payload;
|
|
2303
2305
|
},
|
|
2304
|
-
setActiveIndicatorType: (
|
|
2305
|
-
|
|
2306
|
+
setActiveIndicatorType: (s, d) => {
|
|
2307
|
+
s.activeIndicatorType = d.payload;
|
|
2306
2308
|
},
|
|
2307
|
-
setActiveIndicatorUnit: (
|
|
2308
|
-
|
|
2309
|
+
setActiveIndicatorUnit: (s, d) => {
|
|
2310
|
+
s.activeIndicatorUnit = d.payload;
|
|
2309
2311
|
}
|
|
2310
2312
|
}
|
|
2311
|
-
}), { setShowTexts:
|
|
2313
|
+
}), { setShowTexts: gs, setYear: le, setActiveIndicatorKey: Cs, setActiveIndicatorType: bs, setActiveIndicatorUnit: fs } = _i.actions, xi = "data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20d='M15.2722%2012.6627C15.2722%2011.8929%2016.1055%2011.4118%2016.7722%2011.7967L31.5641%2020.3368C32.2308%2020.7217%2032.2308%2021.684%2031.5641%2022.0689L16.7722%2030.609C16.1055%2030.9939%2015.2722%2030.5128%2015.2722%2029.743L15.2722%2012.6627Z'%20fill='%23605B56'/%3e%3c/svg%3e", wi = "data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3crect%20x='15'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3crect%20x='23'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3c/svg%3e", ki = "_slider_a19yo_2", Ni = "_playButton_a19yo_17", Si = "_sliderOpen_a19yo_28", Ti = "_sliderResults_a19yo_32", W = {
|
|
2312
2314
|
slider: ki,
|
|
2313
2315
|
playButton: Ni,
|
|
2314
2316
|
sliderOpen: Si,
|
|
2315
2317
|
sliderResults: Ti
|
|
2316
|
-
}, Mi = ({ onResults:
|
|
2318
|
+
}, Mi = ({ onResults: s = !1, defaultYear: d = 2025, firstYear: o = 2025, lastYear: n = 2050, zIndex: t = 10, rightBarOpen: r = !1 }) => {
|
|
2317
2319
|
const [l, a] = B(d), c = Te(), p = (y, _) => {
|
|
2318
2320
|
a(_), c(le(_ - 2e3));
|
|
2319
|
-
}, [u, m] = B(!1),
|
|
2321
|
+
}, [u, m] = B(!1), h = () => {
|
|
2320
2322
|
m(!0);
|
|
2321
|
-
},
|
|
2323
|
+
}, b = () => {
|
|
2322
2324
|
m(!1);
|
|
2323
2325
|
};
|
|
2324
2326
|
((y, _) => {
|
|
@@ -2337,7 +2339,7 @@ const gi = "_sectionBar_1egwc_2", Ci = "_leftContent_1egwc_14", bi = "_textConta
|
|
|
2337
2339
|
})(() => {
|
|
2338
2340
|
u && (l != 2050 ? (a(l + 1), c(le(l - 2e3 + 1))) : (a(2025), c(le(25))));
|
|
2339
2341
|
}, 1e3);
|
|
2340
|
-
const
|
|
2342
|
+
const f = ot({
|
|
2341
2343
|
palette: {
|
|
2342
2344
|
primary: {
|
|
2343
2345
|
main: "#605b56"
|
|
@@ -2365,23 +2367,23 @@ const gi = "_sectionBar_1egwc_2", Ci = "_leftContent_1egwc_14", bi = "_textConta
|
|
|
2365
2367
|
{ label: "", value: 2041 },
|
|
2366
2368
|
{ label: "", value: 2050 }
|
|
2367
2369
|
];
|
|
2368
|
-
return /* @__PURE__ */ i(at, { theme:
|
|
2370
|
+
return /* @__PURE__ */ i(at, { theme: f, children: /* @__PURE__ */ g(
|
|
2369
2371
|
rt,
|
|
2370
2372
|
{
|
|
2371
2373
|
sx: { width: 400 },
|
|
2372
|
-
className: `${
|
|
2374
|
+
className: `${s ? W.sliderResults : W.slider} ${r ? W.sliderOpen : ""}`,
|
|
2373
2375
|
style: { zIndex: t },
|
|
2374
2376
|
children: [
|
|
2375
|
-
|
|
2377
|
+
o,
|
|
2376
2378
|
/* @__PURE__ */ i(
|
|
2377
|
-
|
|
2379
|
+
st,
|
|
2378
2380
|
{
|
|
2379
2381
|
"aria-label": "TimeSlider",
|
|
2380
2382
|
value: l,
|
|
2381
2383
|
valueLabelDisplay: "on",
|
|
2382
2384
|
step: 1,
|
|
2383
2385
|
marks: v,
|
|
2384
|
-
min:
|
|
2386
|
+
min: o,
|
|
2385
2387
|
max: n,
|
|
2386
2388
|
onChange: p,
|
|
2387
2389
|
color: "primary",
|
|
@@ -2389,8 +2391,8 @@ const gi = "_sectionBar_1egwc_2", Ci = "_leftContent_1egwc_14", bi = "_textConta
|
|
|
2389
2391
|
}
|
|
2390
2392
|
),
|
|
2391
2393
|
n,
|
|
2392
|
-
!u && /* @__PURE__ */ i("button", { className: W.playButton, onClick:
|
|
2393
|
-
u && /* @__PURE__ */ i("button", { className: W.playButton, onClick:
|
|
2394
|
+
!u && /* @__PURE__ */ i("button", { className: W.playButton, onClick: h, children: /* @__PURE__ */ i("img", { src: xi, alt: "Play" }) }),
|
|
2395
|
+
u && /* @__PURE__ */ i("button", { className: W.playButton, onClick: b, children: /* @__PURE__ */ i("img", { src: wi, alt: "Pause" }) })
|
|
2394
2396
|
]
|
|
2395
2397
|
}
|
|
2396
2398
|
) });
|
|
@@ -2408,20 +2410,20 @@ const Fi = "_TopNavMenuContainer_12mp4_2", Bi = "_topNavOptions_12mp4_13", Li =
|
|
|
2408
2410
|
topNavOptions: Bi,
|
|
2409
2411
|
active: Li
|
|
2410
2412
|
}, Di = ({
|
|
2411
|
-
options:
|
|
2413
|
+
options: s = [],
|
|
2412
2414
|
containerStyles: d,
|
|
2413
|
-
borderColor:
|
|
2415
|
+
borderColor: o = "red",
|
|
2414
2416
|
textColor: n = "white"
|
|
2415
2417
|
}) => {
|
|
2416
2418
|
const { t } = k();
|
|
2417
|
-
return /* @__PURE__ */ i("div", { className: ce.TopNavMenuContainer, style: { ...d }, children:
|
|
2419
|
+
return /* @__PURE__ */ i("div", { className: ce.TopNavMenuContainer, style: { ...d }, children: s.map((r, l) => /* @__PURE__ */ i(
|
|
2418
2420
|
lt,
|
|
2419
2421
|
{
|
|
2420
2422
|
to: r.url,
|
|
2421
2423
|
className: ({ isActive: a }) => `${ce.topNavOptions} ${a ? ce.active : ""} `,
|
|
2422
2424
|
style: ({ isActive: a }) => ({
|
|
2423
2425
|
color: n,
|
|
2424
|
-
borderBottom: a ? `5px solid ${
|
|
2426
|
+
borderBottom: a ? `5px solid ${o}` : "5px solid transparent"
|
|
2425
2427
|
}),
|
|
2426
2428
|
children: t(r.name)
|
|
2427
2429
|
},
|
|
@@ -2449,19 +2451,19 @@ const $i = Me({
|
|
|
2449
2451
|
showUserMenu: !1
|
|
2450
2452
|
},
|
|
2451
2453
|
reducers: {
|
|
2452
|
-
setShowLogIn: (
|
|
2453
|
-
|
|
2454
|
+
setShowLogIn: (s, d) => {
|
|
2455
|
+
s.showLogIn = d.payload;
|
|
2454
2456
|
},
|
|
2455
|
-
setShowUserMenu: (
|
|
2456
|
-
|
|
2457
|
+
setShowUserMenu: (s, d) => {
|
|
2458
|
+
s.showUserMenu = d.payload;
|
|
2457
2459
|
}
|
|
2458
2460
|
}
|
|
2459
2461
|
}), { setShowLogIn: Ai, setShowUserMenu: Oi } = $i.actions, Ii = "_UserMenuTrigger_uglss_2", Ri = {
|
|
2460
2462
|
UserMenuTrigger: Ii
|
|
2461
2463
|
}, Vi = ({
|
|
2462
|
-
cssClass:
|
|
2464
|
+
cssClass: s,
|
|
2463
2465
|
loginLocale: d = "login",
|
|
2464
|
-
containerStyles:
|
|
2466
|
+
containerStyles: o
|
|
2465
2467
|
}) => {
|
|
2466
2468
|
const n = Te(), t = de((c) => c.userState.user.isLoggedIn), r = de((c) => c.userState.user.username), { t: l } = k(), a = () => {
|
|
2467
2469
|
n(t ? Ai(!0) : Oi(!0));
|
|
@@ -2469,8 +2471,8 @@ const $i = Me({
|
|
|
2469
2471
|
return /* @__PURE__ */ i(
|
|
2470
2472
|
"div",
|
|
2471
2473
|
{
|
|
2472
|
-
style: { ...
|
|
2473
|
-
className: `${Ri.UserMenuTrigger} link ${
|
|
2474
|
+
style: { ...o },
|
|
2475
|
+
className: `${Ri.UserMenuTrigger} link ${s}`,
|
|
2474
2476
|
onClick: a,
|
|
2475
2477
|
children: t ? r : l(d)
|
|
2476
2478
|
}
|
|
@@ -2491,26 +2493,26 @@ const Pi = "_header_13kbt_2", zi = "_leftComponents_13kbt_13", ji = "_centerComp
|
|
|
2491
2493
|
rightComponents: qi,
|
|
2492
2494
|
componentsContainer: Ei
|
|
2493
2495
|
}, Ki = ({
|
|
2494
|
-
cssProps:
|
|
2496
|
+
cssProps: s,
|
|
2495
2497
|
leftComponents: d = [],
|
|
2496
|
-
centerComponents:
|
|
2498
|
+
centerComponents: o = [],
|
|
2497
2499
|
rightComponents: n = [],
|
|
2498
2500
|
zIndex: t = 10,
|
|
2499
2501
|
height: r = 60,
|
|
2500
2502
|
backgroundColor: l = "#605B56"
|
|
2501
|
-
}) => /* @__PURE__ */
|
|
2503
|
+
}) => /* @__PURE__ */ g(
|
|
2502
2504
|
"div",
|
|
2503
2505
|
{
|
|
2504
2506
|
className: j.header,
|
|
2505
2507
|
style: {
|
|
2506
|
-
...
|
|
2508
|
+
...s,
|
|
2507
2509
|
zIndex: t,
|
|
2508
2510
|
height: r,
|
|
2509
2511
|
backgroundColor: l
|
|
2510
2512
|
},
|
|
2511
2513
|
children: [
|
|
2512
2514
|
/* @__PURE__ */ i("div", { className: j.leftComponents, children: d.map((a, c) => /* @__PURE__ */ i("div", { className: j.componentsContainer, children: a }, c)) }),
|
|
2513
|
-
/* @__PURE__ */ i("div", { className: j.centerComponents, children:
|
|
2515
|
+
/* @__PURE__ */ i("div", { className: j.centerComponents, children: o.map((a, c) => /* @__PURE__ */ i("div", { className: j.componentsContainer, children: a }, c)) }),
|
|
2514
2516
|
/* @__PURE__ */ i("div", { className: j.rightComponents, children: n.map((a, c) => /* @__PURE__ */ i("div", { className: j.componentsContainer, children: a }, c)) })
|
|
2515
2517
|
]
|
|
2516
2518
|
}
|
|
@@ -2525,16 +2527,16 @@ const Zi = "_sidebar_1jqo2_2", Ui = "_open_1jqo2_16", Hi = "_content_1jqo2_20",
|
|
|
2525
2527
|
open: Ui,
|
|
2526
2528
|
content: Hi,
|
|
2527
2529
|
closeButton: Gi
|
|
2528
|
-
}, Yi = ({ width:
|
|
2530
|
+
}, Yi = ({ width: s = "300px", children: d, showRightBar: o, onCloseBar: n }) => {
|
|
2529
2531
|
const t = () => {
|
|
2530
2532
|
n();
|
|
2531
2533
|
};
|
|
2532
2534
|
return /* @__PURE__ */ i(
|
|
2533
2535
|
"div",
|
|
2534
2536
|
{
|
|
2535
|
-
className: `${ee.sidebar} ${
|
|
2536
|
-
style: { width:
|
|
2537
|
-
children:
|
|
2537
|
+
className: `${ee.sidebar} ${o ? ee.open : ""}`,
|
|
2538
|
+
style: { width: o ? s : 0 },
|
|
2539
|
+
children: o && /* @__PURE__ */ g("div", { className: ee.content, children: [
|
|
2538
2540
|
/* @__PURE__ */ i("button", { className: ee.closeButton, onClick: t, children: "×" }),
|
|
2539
2541
|
d
|
|
2540
2542
|
] })
|
|
@@ -2551,18 +2553,18 @@ export {
|
|
|
2551
2553
|
Bt as AmbitSelector,
|
|
2552
2554
|
qt as ButtonsList,
|
|
2553
2555
|
q as DropdownList,
|
|
2554
|
-
|
|
2556
|
+
ms as EditAmbit,
|
|
2555
2557
|
hn as FiltersAmbit,
|
|
2556
2558
|
yn as Graphic,
|
|
2557
2559
|
Ki as HeaderSection,
|
|
2558
2560
|
Rn as IndicatorsList,
|
|
2559
2561
|
En as LangSelector,
|
|
2560
2562
|
ii as Legend,
|
|
2561
|
-
|
|
2563
|
+
oi as LogoApp,
|
|
2562
2564
|
li as MapboxMap,
|
|
2563
2565
|
hi as MaplibreMap,
|
|
2564
2566
|
Yi as RightSidebar,
|
|
2565
|
-
|
|
2567
|
+
hs as SectionBar,
|
|
2566
2568
|
Mi as TimeSlider,
|
|
2567
2569
|
Le as Tooltip,
|
|
2568
2570
|
Di as TopNavMenu,
|