@tmf_ciclica/ciclicastorybook 1.1.37 → 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 +192 -190
- 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";
|
|
@@ -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
|
{
|
|
@@ -61,10 +61,10 @@ const ct = "_ambitSelector_mcunf_2", dt = "_header_mcunf_13", pt = "_nameDateCon
|
|
|
61
61
|
),
|
|
62
62
|
/* @__PURE__ */ i("span", { style: { color: r ? l : a }, children: p })
|
|
63
63
|
] }),
|
|
64
|
-
/* @__PURE__ */ i("div", { className: G.ambitDate, children: new Date(u).toLocaleDateString() })
|
|
64
|
+
/* @__PURE__ */ i("div", { className: G.ambitDate, children: u ? new Date(u).toLocaleDateString() : "" })
|
|
65
65
|
] }),
|
|
66
|
-
/* @__PURE__ */
|
|
67
|
-
|
|
66
|
+
/* @__PURE__ */ g("div", { className: G.ambitButtons, children: [
|
|
67
|
+
h && /* @__PURE__ */ i("img", { src: Nt }),
|
|
68
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
70
|
/* @__PURE__ */ i("button", { onClick: () => o(m), disabled: s.is_default, children: /* @__PURE__ */ i("img", { src: xt }) })
|
|
@@ -76,7 +76,7 @@ const ct = "_ambitSelector_mcunf_2", dt = "_header_mcunf_13", pt = "_nameDateCon
|
|
|
76
76
|
Fe.propTypes = {
|
|
77
77
|
ambit: e.shape({
|
|
78
78
|
nom: e.string.isRequired,
|
|
79
|
-
created_at: e.string
|
|
79
|
+
created_at: e.string,
|
|
80
80
|
id: e.string.isRequired,
|
|
81
81
|
isBeingProcessed: e.bool
|
|
82
82
|
}).isRequired,
|
|
@@ -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
127
|
s && v(s);
|
|
128
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
139
|
style: { color: o, ...c },
|
|
140
140
|
children: [
|
|
141
|
-
/* @__PURE__ */
|
|
141
|
+
/* @__PURE__ */ g(
|
|
142
142
|
"div",
|
|
143
143
|
{
|
|
144
144
|
className: R.header,
|
|
145
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,7 +158,7 @@ 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,
|
|
@@ -167,8 +167,8 @@ const ve = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
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
|
)) }),
|
|
@@ -247,24 +247,24 @@ const qt = ({
|
|
|
247
247
|
icon: p,
|
|
248
248
|
activeIcon: u,
|
|
249
249
|
isActive: m,
|
|
250
|
-
name:
|
|
251
|
-
onClick:
|
|
252
|
-
} = a, C = /* @__PURE__ */
|
|
253
|
-
o && n === "left" && /* @__PURE__ */ i("span", { className: V.buttonName, children: l(
|
|
254
|
-
/* @__PURE__ */ i("img", { src: m ? u : p, alt: l(
|
|
255
|
-
o && n === "right" && /* @__PURE__ */ i("span", { className: V.buttonName, children: l(
|
|
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
|
}
|
|
@@ -305,7 +305,7 @@ const Et = "_indicatorsCategory_1cu33_2", Kt = "_title_1cu33_5", se = {
|
|
|
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
311
|
className: se.indicatorsCategory,
|
|
@@ -318,7 +318,7 @@ const Et = "_indicatorsCategory_1cu33_2", Kt = "_title_1cu33_5", se = {
|
|
|
318
318
|
marginBottom: s ? "20px" : "0px"
|
|
319
319
|
},
|
|
320
320
|
children: [
|
|
321
|
-
/* @__PURE__ */
|
|
321
|
+
/* @__PURE__ */ g(
|
|
322
322
|
"h2",
|
|
323
323
|
{
|
|
324
324
|
style: {
|
|
@@ -374,7 +374,7 @@ const ms = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), Zt = "data
|
|
|
374
374
|
onClick: d,
|
|
375
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)) })
|
|
@@ -426,7 +426,7 @@ const Gt = "_checkboxContainer_zld97_2", Yt = {
|
|
|
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
432
|
style: { ...d, color: o },
|
|
@@ -516,8 +516,8 @@ let me = function(s) {
|
|
|
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);
|
|
@@ -583,8 +583,8 @@ let me = function(s) {
|
|
|
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) => {
|
|
@@ -644,8 +644,8 @@ let me = function(s) {
|
|
|
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 ===
|
|
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
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;
|
|
@@ -687,23 +687,23 @@ let me = function(s) {
|
|
|
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) {
|
|
@@ -781,7 +781,7 @@ const Jt = "_container_15vgv_2", Qt = "_unitLabel_15vgv_9", en = "_slider_15vgv_
|
|
|
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,
|
|
@@ -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
|
] })
|
|
@@ -848,10 +848,10 @@ const on = "_tematicalFiltersInputContainer_1vm1r_2", rn = "_inputTypeContainer_
|
|
|
848
848
|
() => t == "abs" || o == "abs",
|
|
849
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
857
|
const { min: w, max: x, valueClicked: N, allValues: $ } = _ || {}, { code: A, type: ne } = s || {}, H = m ? "abs" : u ? "cat" : "both";
|
|
@@ -883,7 +883,7 @@ const on = "_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,
|
|
@@ -907,7 +907,7 @@ const on = "_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 on = "_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 on = "_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 on = "_tematicalFiltersInputContainer_1vm1r_2", rn = "_inputTypeContainer_
|
|
|
954
954
|
},
|
|
955
955
|
style: {
|
|
956
956
|
marginRight: 4,
|
|
957
|
-
backgroundColor: o == "abs" ?
|
|
958
|
-
border: `1.5px solid ${o == "abs" ?
|
|
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 on = "_tematicalFiltersInputContainer_1vm1r_2", rn = "_inputTypeContainer_
|
|
|
973
973
|
},
|
|
974
974
|
style: {
|
|
975
975
|
marginRight: 4,
|
|
976
|
-
backgroundColor: o == "cat" ?
|
|
977
|
-
border: `1.5px solid ${o == "cat" ?
|
|
976
|
+
backgroundColor: o == "cat" ? f : "white",
|
|
977
|
+
border: `1.5px solid ${o == "cat" ? f : C}`
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
980
|
),
|
|
@@ -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
|
-
o && o.length > 0 && T.setState((
|
|
1188
|
+
o && o.length > 0 && T.setState((_) => ({
|
|
1188
1189
|
tematicalFiltersSelected: o
|
|
1189
1190
|
}));
|
|
1190
1191
|
}, [o]), L(() => {
|
|
1191
|
-
console.log("filtersSelected changed: ",
|
|
1192
|
-
}, [
|
|
1193
|
-
/* @__PURE__ */
|
|
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,7 +1245,8 @@ 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
|
|
@@ -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:
|
|
1265
|
+
const { t: u } = k(), { xScale: m, ticks: h, height: b } = te(() => {
|
|
1264
1266
|
if (s && s.length > 0) {
|
|
1265
|
-
const C = (s == null ? void 0 : s.length) * (o + n) + r * 2,
|
|
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,
|
|
@@ -1283,33 +1285,33 @@ const gn = "_barChartContainer_d2f1z_2", Cn = {
|
|
|
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
|
-
s && s.length > 0 && (s == null ? void 0 : s.map((C,
|
|
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})`,
|
|
@@ -1335,7 +1337,7 @@ const gn = "_barChartContainer_d2f1z_2", Cn = {
|
|
|
1335
1337
|
)
|
|
1336
1338
|
]
|
|
1337
1339
|
},
|
|
1338
|
-
|
|
1340
|
+
f
|
|
1339
1341
|
);
|
|
1340
1342
|
}))
|
|
1341
1343
|
] }) }) });
|
|
@@ -1371,7 +1373,7 @@ 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,
|
|
@@ -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 } = s, [
|
|
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,
|
|
@@ -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,
|
|
@@ -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,8 +1524,8 @@ 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,
|
|
@@ -1533,7 +1535,7 @@ const vn = "_indicatorsCategory_1cu33_2", _n = "_title_1cu33_5", xn = "_list_1cu
|
|
|
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 = {
|
|
@@ -1582,31 +1584,31 @@ 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:
|
|
1611
|
+
indicator: f,
|
|
1610
1612
|
defaultColor: o,
|
|
1611
1613
|
activeColor: n,
|
|
1612
1614
|
activeIndicator: a,
|
|
@@ -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,
|
|
@@ -1665,13 +1667,13 @@ const je = ({
|
|
|
1665
1667
|
marginBottom: C ? "20px" : "0px"
|
|
1666
1668
|
},
|
|
1667
1669
|
children: [
|
|
1668
|
-
/* @__PURE__ */
|
|
1670
|
+
/* @__PURE__ */ g("h2", { className: `${ae.title}`, onClick: () => t(d), children: [
|
|
1669
1671
|
/* @__PURE__ */ i("span", { style: { color: C ? o : n }, children: C ? "-" : "+" }),
|
|
1670
1672
|
/* @__PURE__ */ i(
|
|
1671
1673
|
"span",
|
|
1672
1674
|
{
|
|
1673
1675
|
style: { marginLeft: 12, color: C ? o : n },
|
|
1674
|
-
children:
|
|
1676
|
+
children: b(s.name)
|
|
1675
1677
|
}
|
|
1676
1678
|
)
|
|
1677
1679
|
] }),
|
|
@@ -1690,7 +1692,7 @@ const je = ({
|
|
|
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
|
)
|
|
@@ -1705,7 +1707,7 @@ const je = ({
|
|
|
1705
1707
|
onClickIndicator: p,
|
|
1706
1708
|
multiple: u,
|
|
1707
1709
|
activeIndicatorType: m,
|
|
1708
|
-
onChangeType:
|
|
1710
|
+
onChangeType: h
|
|
1709
1711
|
},
|
|
1710
1712
|
`indicator${_}`
|
|
1711
1713
|
)) })
|
|
@@ -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,11 +1769,11 @@ 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);
|
|
@@ -1783,25 +1785,25 @@ const On = "_indicatorsList_fklyu_2", In = "_title_fklyu_6", ke = {
|
|
|
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__ */
|
|
1794
|
+
return /* @__PURE__ */ g("div", { className: ke.indicatorsList, children: [
|
|
1793
1795
|
/* @__PURE__ */ i("h2", { className: ke.title, style: { color: o }, children: c("indicators.indicators") }),
|
|
1794
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
1808
|
defaultColor: o,
|
|
1807
1809
|
multiple: t,
|
|
@@ -1834,8 +1836,8 @@ const Vn = "_langSelector_o9enq_2", Pn = "_currentLang_o9enq_14", zn = "_arrow_o
|
|
|
1834
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,
|
|
@@ -1912,7 +1914,7 @@ 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
1920
|
style: s ? { ...s } : {},
|
|
@@ -1920,15 +1922,15 @@ const Kn = "_legendContainer_atg3j_3", Zn = "_closeButton_atg3j_18", Un = "_titl
|
|
|
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
|
-
o && o.length > 0 && /* @__PURE__ */ i("div", { className: M.infoContainer, children: /* @__PURE__ */ i("ul", { children: o.map(({ title: u, value: m }) => /* @__PURE__ */
|
|
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
|
] })
|
|
@@ -2025,15 +2027,15 @@ 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
2041
|
initialViewState: s,
|
|
@@ -2045,12 +2047,12 @@ const li = ({
|
|
|
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
|
)
|
|
@@ -2129,8 +2131,8 @@ const ci = "_mapContainer_b0pyr_3", di = {
|
|
|
2129
2131
|
title: ui
|
|
2130
2132
|
}, mi = ({ props: s }) => {
|
|
2131
2133
|
const { t: d } = k();
|
|
2132
|
-
return /* @__PURE__ */ i("div", { className: Se.FeaturePopUp, children: s.map((o) => /* @__PURE__ */
|
|
2133
|
-
/* @__PURE__ */
|
|
2134
|
+
return /* @__PURE__ */ i("div", { className: Se.FeaturePopUp, children: s.map((o) => /* @__PURE__ */ g("p", { children: [
|
|
2135
|
+
/* @__PURE__ */ g("span", { className: Se.title, children: [
|
|
2134
2136
|
/* @__PURE__ */ i(ge, { i18nKey: o.name, components: { sup: /* @__PURE__ */ i("sup", {}) } }),
|
|
2135
2137
|
": "
|
|
2136
2138
|
] }),
|
|
@@ -2151,24 +2153,24 @@ 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,
|
|
@@ -2181,12 +2183,12 @@ const ci = "_mapContainer_b0pyr_3", di = {
|
|
|
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
|
)
|
|
@@ -2272,10 +2274,10 @@ const gi = "_sectionBar_1egwc_2", Ci = "_leftContent_1egwc_14", bi = "_textConta
|
|
|
2272
2274
|
width: r
|
|
2273
2275
|
}) => {
|
|
2274
2276
|
const { t: l } = k();
|
|
2275
|
-
return /* @__PURE__ */
|
|
2276
|
-
/* @__PURE__ */
|
|
2277
|
+
return /* @__PURE__ */ g("div", { className: z.sectionBar, style: { width: r && r }, children: [
|
|
2278
|
+
/* @__PURE__ */ g("div", { className: z.leftContent, children: [
|
|
2277
2279
|
s && /* @__PURE__ */ i("img", { src: s, alt: "Icono", className: z.icon }),
|
|
2278
|
-
/* @__PURE__ */
|
|
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
|
] })
|
|
@@ -2316,9 +2318,9 @@ const gi = "_sectionBar_1egwc_2", Ci = "_leftContent_1egwc_14", bi = "_textConta
|
|
|
2316
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,7 +2367,7 @@ 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 },
|
|
@@ -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
|
) });
|
|
@@ -2498,7 +2500,7 @@ const Pi = "_header_13kbt_2", zi = "_leftComponents_13kbt_13", ji = "_centerComp
|
|
|
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,
|
|
@@ -2534,7 +2536,7 @@ const Zi = "_sidebar_1jqo2_2", Ui = "_open_1jqo2_16", Hi = "_content_1jqo2_20",
|
|
|
2534
2536
|
{
|
|
2535
2537
|
className: `${ee.sidebar} ${o ? ee.open : ""}`,
|
|
2536
2538
|
style: { width: o ? s : 0 },
|
|
2537
|
-
children: o && /* @__PURE__ */
|
|
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
|
] })
|