@tmf_ciclica/ciclicastorybook 1.1.26 → 1.1.27
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/ciclicastorybook.css +1 -0
- package/dist/index.cjs.js +3 -4
- package/dist/index.es.js +677 -729
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,82 +1,80 @@
|
|
|
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_tqnnf_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%}._ambitSelector_tqnnf_2 ._header_tqnnf_11{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._ambitSelector_tqnnf_2 ._header_tqnnf_11 ._nameDateContainer_tqnnf_21{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_tqnnf_2 ._header_tqnnf_11 ._nameDateContainer_tqnnf_21 ._ambitName_tqnnf_37{font-size:18px;font-weight:600;flex:1}._ambitSelector_tqnnf_2 ._header_tqnnf_11 ._nameDateContainer_tqnnf_21 ._ambitName_tqnnf_37 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_tqnnf_2 ._header_tqnnf_11 ._nameDateContainer_tqnnf_21 ._ambitDate_tqnnf_51{font-size:18px;font-weight:600;flex:.5}._ambitSelector_tqnnf_2 ._header_tqnnf_11 ._nameDateContainer_tqnnf_21 ._ambitDate_tqnnf_51 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_tqnnf_2 ._header_tqnnf_11 ._buttonsContainer_tqnnf_65{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._ambitItem_1ueih_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_1ueih_2 ._ambitNameDate_1ueih_16{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._ambitItem_1ueih_2 ._ambitNameDate_1ueih_16 ._ambitName_1ueih_16{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;flex:1}._ambitItem_1ueih_2 ._ambitNameDate_1ueih_16 ._ambitDate_1ueih_35{flex:.5}._ambitItem_1ueih_2 ._ambitButtons_1ueih_38{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._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_1of0g_2{position:relative;width:fit-content}._currentLang_1of0g_7{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_1of0g_7 ._arrow_1of0g_19{width:10px}._currentLang_1of0g_7 ._prevImg_1of0g_22{width:20px}._langMenu_1of0g_26{position:absolute;width:80px;background:#000!important;border-radius:8px}._langMenu_1of0g_26 button{cursor:pointer;background:#000!important;color:#ccc;width:100%;padding:4px 8px;text-align:left}._langMenu_1of0g_26 button:first-child{border-radius:8px 8px 0 0}._langMenu_1of0g_26 button:last-child{border-radius:0 0 8px 8px}._langMenu_1of0g_26 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_15agj_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:row;align-items:start;width:fit-content;gap:80px}._TopNavMenuContainer_15agj_2 ._topNavOptions_15agj_12{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer;padding:0 10px;text-align:center}._TopNavMenuContainer_15agj_2 ._active_15agj_23{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_t7qdl_2{width:100%;display:flex;align-items:center;position:relative;padding:0 16px;background-color:#fff;border-bottom:1px solid black;z-index:10}._header_t7qdl_2 ._leftComponents_t7qdl_12,._header_t7qdl_2 ._centerComponents_t7qdl_13,._header_t7qdl_2 ._rightComponents_t7qdl_14{position:absolute;top:0;bottom:0;display:flex;align-items:center}._header_t7qdl_2 ._leftComponents_t7qdl_12{left:16px}._header_t7qdl_2 ._centerComponents_t7qdl_13{left:50%;transform:translate(-50%)}._header_t7qdl_2 ._rightComponents_t7qdl_14{right:16px}._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
1
|
import { jsxs as m, jsx as r, Fragment as qe } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
2
|
+
import U, { useState as B, useMemo as te, useEffect as L, useLayoutEffect as Ee, useRef as he } from "react";
|
|
4
3
|
import e from "prop-types";
|
|
5
|
-
import { useTranslation as
|
|
6
|
-
import { motion as
|
|
4
|
+
import { useTranslation as w, Trans as me } from "react-i18next";
|
|
5
|
+
import { motion as ge } from "framer-motion";
|
|
7
6
|
import { create as Ke } from "zustand";
|
|
8
7
|
import * as ye from "d3";
|
|
9
|
-
import
|
|
10
|
-
import { useSelector as
|
|
11
|
-
import
|
|
8
|
+
import Ue from "mapbox-gl";
|
|
9
|
+
import { useSelector as ce, useDispatch as Te } from "react-redux";
|
|
10
|
+
import Ze, { Source as He, Layer as Ge, NavigationControl as Ye, Popup as We } from "react-map-gl/mapbox";
|
|
12
11
|
import ie from "maplibre-gl";
|
|
13
12
|
import { Protocol as Xe } from "pmtiles";
|
|
14
13
|
import Je, { Source as Qe, Layer as et, NavigationControl as tt, Popup as nt } from "react-map-gl/maplibre";
|
|
15
14
|
import { createSlice as Me } from "@reduxjs/toolkit";
|
|
16
15
|
import it from "@mui/material/Slider";
|
|
17
|
-
import { createTheme as
|
|
16
|
+
import { createTheme as st, Box as ot } from "@mui/material";
|
|
18
17
|
import { ThemeProvider as rt } from "@emotion/react";
|
|
19
18
|
import { NavLink as at } from "react-router-dom";
|
|
20
|
-
const lt = "
|
|
19
|
+
const lt = "_ambitSelector_f07c1_2", ct = "_header_f07c1_13", dt = "_nameDateContainer_f07c1_23", pt = "_ambitName_f07c1_39", ut = "_ambitDate_f07c1_48", ht = "_buttonsContainer_f07c1_51", q = {
|
|
21
20
|
ambitSelector: lt,
|
|
22
21
|
header: ct,
|
|
23
22
|
nameDateContainer: dt,
|
|
24
23
|
ambitName: pt,
|
|
25
24
|
ambitDate: ut,
|
|
26
25
|
buttonsContainer: ht
|
|
27
|
-
}, mt = "_ambitItem_1ueih_2", gt = "_ambitNameDate_1ueih_16",
|
|
26
|
+
}, mt = "_ambitItem_1ueih_2", gt = "_ambitNameDate_1ueih_16", bt = "_ambitName_1ueih_16", ft = "_ambitDate_1ueih_35", yt = "_ambitButtons_1ueih_38", H = {
|
|
28
27
|
ambitItem: mt,
|
|
29
28
|
ambitNameDate: gt,
|
|
30
|
-
ambitName:
|
|
31
|
-
ambitDate:
|
|
32
|
-
ambitButtons:
|
|
33
|
-
}, yt = "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", vt = "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", _t = "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", 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='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", wt = "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", kt = "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 = ({
|
|
29
|
+
ambitName: bt,
|
|
30
|
+
ambitDate: ft,
|
|
31
|
+
ambitButtons: yt
|
|
32
|
+
}, Ct = "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", vt = "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", Ce = "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", _t = "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", xt = "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", $e = ({
|
|
34
33
|
ambit: i,
|
|
35
34
|
onClickCopy: d,
|
|
36
|
-
onClickDelete:
|
|
35
|
+
onClickDelete: o,
|
|
37
36
|
onClickFilters: n,
|
|
38
37
|
onClickAmbit: t,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
isBeingProcessed: s,
|
|
39
|
+
isActive: l,
|
|
40
|
+
activeColor: a,
|
|
41
|
+
fontColor: c,
|
|
42
|
+
moreInfo: p
|
|
43
43
|
}) => {
|
|
44
|
-
const { name:
|
|
44
|
+
const { name: u, date: h, id: g } = i;
|
|
45
45
|
return /* @__PURE__ */ m(
|
|
46
46
|
"div",
|
|
47
47
|
{
|
|
48
48
|
className: H.ambitItem,
|
|
49
|
-
style: { borderBottom: `1px solid ${
|
|
49
|
+
style: { borderBottom: `1px solid ${c}` },
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */ m("div", { className: H.ambitNameDate, onClick: () => t(
|
|
51
|
+
/* @__PURE__ */ m("div", { className: H.ambitNameDate, onClick: () => t(g), children: [
|
|
52
52
|
/* @__PURE__ */ m("div", { className: H.ambitName, children: [
|
|
53
53
|
/* @__PURE__ */ r(
|
|
54
54
|
"img",
|
|
55
55
|
{
|
|
56
|
-
|
|
57
|
-
src: o ? wt : kt
|
|
56
|
+
src: l ? _t : xt
|
|
58
57
|
}
|
|
59
58
|
),
|
|
60
|
-
/* @__PURE__ */ r("span", { style: { color:
|
|
59
|
+
/* @__PURE__ */ r("span", { style: { color: l ? a : c }, children: u })
|
|
61
60
|
] }),
|
|
62
|
-
/* @__PURE__ */ r("div", { className: H.ambitDate, children: new Date(
|
|
61
|
+
/* @__PURE__ */ r("div", { className: H.ambitDate, children: new Date(h).toLocaleDateString() })
|
|
63
62
|
] }),
|
|
64
63
|
/* @__PURE__ */ m("div", { className: H.ambitButtons, children: [
|
|
65
|
-
|
|
66
|
-
/* @__PURE__ */ r("button", { onClick: () => n(
|
|
67
|
-
/* @__PURE__ */ r("button", { onClick: () => d(
|
|
68
|
-
/* @__PURE__ */ r("button", { onClick: () =>
|
|
64
|
+
s && /* @__PURE__ */ r("img", { src: Ce }),
|
|
65
|
+
/* @__PURE__ */ r("button", { onClick: () => n(g), children: /* @__PURE__ */ r("img", { src: Ce }) }),
|
|
66
|
+
/* @__PURE__ */ r("button", { onClick: () => d(g), children: /* @__PURE__ */ r("img", { src: vt }) }),
|
|
67
|
+
/* @__PURE__ */ r("button", { onClick: () => o(g), children: /* @__PURE__ */ r("img", { src: Ct }) })
|
|
69
68
|
] })
|
|
70
69
|
]
|
|
71
70
|
}
|
|
72
71
|
);
|
|
73
72
|
};
|
|
74
|
-
|
|
73
|
+
$e.propTypes = {
|
|
75
74
|
ambit: e.shape({
|
|
76
75
|
name: e.string.isRequired,
|
|
77
76
|
date: e.string.isRequired,
|
|
78
|
-
id: e.string.isRequired
|
|
79
|
-
isBeingProcessed: e.bool
|
|
77
|
+
id: e.string.isRequired
|
|
80
78
|
}).isRequired,
|
|
81
79
|
onClickCopy: e.func.isRequired,
|
|
82
80
|
onClickDelete: e.func.isRequired,
|
|
@@ -89,66 +87,51 @@ Fe.propTypes = {
|
|
|
89
87
|
moreInfo: e.object
|
|
90
88
|
// Optional, can be used for additional info
|
|
91
89
|
};
|
|
92
|
-
const
|
|
90
|
+
const kt = "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", wt = ({
|
|
93
91
|
ambitList: i,
|
|
94
92
|
activeAmbitId: d,
|
|
95
|
-
fontColor:
|
|
93
|
+
fontColor: o = "#605B56",
|
|
96
94
|
activeColor: n,
|
|
97
95
|
nameLabel: t,
|
|
98
|
-
dateLabel:
|
|
96
|
+
dateLabel: s,
|
|
99
97
|
onClickCopy: l = (u) => console.log(`Copy ambit: ${u}`),
|
|
100
98
|
onCLickDelete: a = (u) => console.log(`Delete ambit: ${u}`),
|
|
101
99
|
onClickFilters: c = (u) => console.log(`Filters clicked: ${u}`),
|
|
102
100
|
onClickAmbit: p = (u) => console.log(`OnCLickAmbit: ${u}`)
|
|
103
101
|
}) => {
|
|
104
|
-
const { t: u } =
|
|
105
|
-
|
|
106
|
-
i && g(i);
|
|
107
|
-
}, [i]);
|
|
108
|
-
const C = (b) => {
|
|
109
|
-
if (h && h.length > 0) {
|
|
110
|
-
let f = [...h];
|
|
111
|
-
f.sort((v, y) => v[b].localeCompare(y[b])), g(f);
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
return /* @__PURE__ */ m("div", { className: q.ambitSelector, style: { color: s }, children: [
|
|
102
|
+
const { t: u } = w();
|
|
103
|
+
return /* @__PURE__ */ m("div", { className: q.ambitSelector, style: { color: o }, children: [
|
|
115
104
|
/* @__PURE__ */ m(
|
|
116
105
|
"div",
|
|
117
106
|
{
|
|
118
107
|
className: q.header,
|
|
119
|
-
style: { borderBottom: `1px solid ${
|
|
108
|
+
style: { borderBottom: `1px solid ${o}` },
|
|
120
109
|
children: [
|
|
121
110
|
/* @__PURE__ */ m("div", { className: q.nameDateContainer, children: [
|
|
122
|
-
/* @__PURE__ */ r("div", { className: q.ambitName, children: /* @__PURE__ */
|
|
123
|
-
|
|
124
|
-
/* @__PURE__ */ r("img", { src: ve })
|
|
125
|
-
] }) }),
|
|
126
|
-
/* @__PURE__ */ r("div", { className: q.ambitDate, children: /* @__PURE__ */ m("button", { onClick: () => C("date"), children: [
|
|
127
|
-
/* @__PURE__ */ r("span", { children: u(o) }),
|
|
128
|
-
/* @__PURE__ */ r("img", { src: ve })
|
|
129
|
-
] }) })
|
|
111
|
+
/* @__PURE__ */ r("div", { className: q.ambitName, children: /* @__PURE__ */ r("span", { children: u(t) }) }),
|
|
112
|
+
/* @__PURE__ */ r("div", { className: q.ambitDate, children: /* @__PURE__ */ r("span", { children: u(s) }) })
|
|
130
113
|
] }),
|
|
131
114
|
/* @__PURE__ */ r("div", { className: q.buttonsContainer })
|
|
132
115
|
]
|
|
133
116
|
}
|
|
134
117
|
),
|
|
135
|
-
|
|
136
|
-
|
|
118
|
+
i && i.length > 0 && i.map((h) => /* @__PURE__ */ r(
|
|
119
|
+
$e,
|
|
137
120
|
{
|
|
138
|
-
isActive: d ==
|
|
139
|
-
ambit:
|
|
140
|
-
fontColor:
|
|
121
|
+
isActive: d == h.id,
|
|
122
|
+
ambit: h,
|
|
123
|
+
fontColor: o,
|
|
141
124
|
activeColor: n,
|
|
142
125
|
onClickCopy: l,
|
|
143
126
|
onClickDelete: a,
|
|
144
127
|
onClickFilters: c,
|
|
145
128
|
onClickAmbit: p
|
|
146
129
|
},
|
|
147
|
-
`ambitKey${
|
|
130
|
+
`ambitKey${h.id}`
|
|
148
131
|
))
|
|
149
132
|
] });
|
|
150
133
|
};
|
|
151
|
-
|
|
134
|
+
wt.propTypes = {
|
|
152
135
|
ambitList: e.arrayOf(
|
|
153
136
|
e.shape({
|
|
154
137
|
name: e.string.isRequired,
|
|
@@ -162,25 +145,23 @@ Nt.propTypes = {
|
|
|
162
145
|
onClickCopy: e.func.isRequired,
|
|
163
146
|
onCLickDelete: e.func.isRequired,
|
|
164
147
|
onClickFilters: e.func.isRequired,
|
|
165
|
-
onClickAmbit: e.func.isRequired
|
|
166
|
-
nameLabel: e.string,
|
|
167
|
-
dateLabel: e.string
|
|
148
|
+
onClickAmbit: e.func.isRequired
|
|
168
149
|
};
|
|
169
|
-
const
|
|
170
|
-
buttonsContainer:
|
|
171
|
-
vertical:
|
|
172
|
-
horizontal:
|
|
173
|
-
button:
|
|
174
|
-
active:
|
|
175
|
-
buttonName:
|
|
176
|
-
},
|
|
177
|
-
left:
|
|
178
|
-
top:
|
|
179
|
-
bottom:
|
|
150
|
+
const Nt = "_buttonsContainer_1audx_2", St = "_vertical_1audx_6", Tt = "_horizontal_1audx_9", Mt = "_button_1audx_2", $t = "_active_1audx_25", Lt = "_buttonName_1audx_28", I = {
|
|
151
|
+
buttonsContainer: Nt,
|
|
152
|
+
vertical: St,
|
|
153
|
+
horizontal: Tt,
|
|
154
|
+
button: Mt,
|
|
155
|
+
active: $t,
|
|
156
|
+
buttonName: Lt
|
|
157
|
+
}, Ft = "_left_19lnt_3", Bt = "_top_19lnt_33", Dt = "_bottom_19lnt_66", At = "_right_19lnt_97", Ot = {
|
|
158
|
+
left: Ft,
|
|
159
|
+
top: Bt,
|
|
160
|
+
bottom: Dt,
|
|
180
161
|
right: At
|
|
181
|
-
}, Le = ({ text: i, position: d, styleCustom:
|
|
182
|
-
const { t: n } =
|
|
183
|
-
return /* @__PURE__ */ r("div", { className: `tooltip ${
|
|
162
|
+
}, Le = ({ text: i, position: d, styleCustom: o = null }) => {
|
|
163
|
+
const { t: n } = w();
|
|
164
|
+
return /* @__PURE__ */ r("div", { className: `tooltip ${Ot[d]}`, style: o, children: n(i) });
|
|
184
165
|
};
|
|
185
166
|
Le.propTypes = {
|
|
186
167
|
text: e.string.isRequired,
|
|
@@ -190,40 +171,40 @@ Le.propTypes = {
|
|
|
190
171
|
const Rt = ({
|
|
191
172
|
buttons: i = [],
|
|
192
173
|
orientation: d = "horizontal",
|
|
193
|
-
showName:
|
|
174
|
+
showName: o = !0,
|
|
194
175
|
namePosition: n = "right",
|
|
195
176
|
useTooltip: t = !1,
|
|
196
|
-
tooltipPosition:
|
|
177
|
+
tooltipPosition: s = "top"
|
|
197
178
|
}) => {
|
|
198
|
-
const { t: l } =
|
|
179
|
+
const { t: l } = w();
|
|
199
180
|
return /* @__PURE__ */ r(
|
|
200
181
|
"div",
|
|
201
182
|
{
|
|
202
|
-
className: `${
|
|
203
|
-
${d === "horizontal" &&
|
|
183
|
+
className: `${I.buttonsContainer} ${d === "vertical" && I.vertical}
|
|
184
|
+
${d === "horizontal" && I.horizontal}`,
|
|
204
185
|
children: i.map((a, c) => {
|
|
205
186
|
const {
|
|
206
187
|
icon: p,
|
|
207
188
|
activeIcon: u,
|
|
208
189
|
isActive: h,
|
|
209
190
|
name: g,
|
|
210
|
-
onClick:
|
|
211
|
-
} = a,
|
|
212
|
-
|
|
191
|
+
onClick: b
|
|
192
|
+
} = a, C = /* @__PURE__ */ m(qe, { children: [
|
|
193
|
+
o && n === "left" && /* @__PURE__ */ r("span", { className: I.buttonName, children: l(g) }),
|
|
213
194
|
/* @__PURE__ */ r("img", { src: h ? u : p, alt: l(g) }),
|
|
214
|
-
|
|
195
|
+
o && n === "right" && /* @__PURE__ */ r("span", { className: I.buttonName, children: l(g) })
|
|
215
196
|
] });
|
|
216
197
|
return /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
217
198
|
/* @__PURE__ */ r(
|
|
218
199
|
"button",
|
|
219
200
|
{
|
|
220
|
-
onClick:
|
|
221
|
-
className: `${
|
|
222
|
-
${h &&
|
|
223
|
-
children:
|
|
201
|
+
onClick: b,
|
|
202
|
+
className: `${I.button}
|
|
203
|
+
${h && I.active}`,
|
|
204
|
+
children: C
|
|
224
205
|
}
|
|
225
206
|
),
|
|
226
|
-
t && /* @__PURE__ */ r(Le, { text: g, position:
|
|
207
|
+
t && /* @__PURE__ */ r(Le, { text: g, position: s })
|
|
227
208
|
] }, c);
|
|
228
209
|
})
|
|
229
210
|
}
|
|
@@ -246,16 +227,16 @@ Rt.propTypes = {
|
|
|
246
227
|
useTooltip: e.bool,
|
|
247
228
|
tooltipPosition: e.oneOf(["top", "bottom", "left", "right"])
|
|
248
229
|
};
|
|
249
|
-
const
|
|
250
|
-
indicatorsCategory:
|
|
251
|
-
title:
|
|
252
|
-
},
|
|
230
|
+
const It = "_indicatorsCategory_1cu33_2", zt = "_title_1cu33_5", se = {
|
|
231
|
+
indicatorsCategory: It,
|
|
232
|
+
title: zt
|
|
233
|
+
}, j = ({
|
|
253
234
|
isOpen: i,
|
|
254
235
|
onClick: d,
|
|
255
|
-
children:
|
|
236
|
+
children: o,
|
|
256
237
|
color: n,
|
|
257
238
|
activeColor: t = "#F8A925",
|
|
258
|
-
title:
|
|
239
|
+
title: s = "Title",
|
|
259
240
|
//Change the height only if the title is more than one line or you change title fontSize, otherwise should be 53px
|
|
260
241
|
height: l = 53,
|
|
261
242
|
//Adjust height if you change fontSize
|
|
@@ -263,11 +244,11 @@ const Vt = "_indicatorsCategory_1cu33_2", jt = "_title_1cu33_5", oe = {
|
|
|
263
244
|
showBottomBar: c = !0,
|
|
264
245
|
titleMarginChildren: p = 25
|
|
265
246
|
}) => {
|
|
266
|
-
const { t: u } =
|
|
247
|
+
const { t: u } = w();
|
|
267
248
|
return /* @__PURE__ */ m(
|
|
268
|
-
|
|
249
|
+
ge.div,
|
|
269
250
|
{
|
|
270
|
-
className:
|
|
251
|
+
className: se.indicatorsCategory,
|
|
271
252
|
initial: { height: `${l}px` },
|
|
272
253
|
animate: { height: i ? "auto" : `${l}px` },
|
|
273
254
|
transition: { duration: 0.4 },
|
|
@@ -284,20 +265,20 @@ const Vt = "_indicatorsCategory_1cu33_2", jt = "_title_1cu33_5", oe = {
|
|
|
284
265
|
...a,
|
|
285
266
|
marginBottom: p || "auto"
|
|
286
267
|
},
|
|
287
|
-
className: `${
|
|
268
|
+
className: `${se.title}`,
|
|
288
269
|
onClick: d,
|
|
289
270
|
children: [
|
|
290
271
|
/* @__PURE__ */ r("span", { style: { color: i ? t : n }, children: i ? "-" : "+" }),
|
|
291
|
-
/* @__PURE__ */ r("span", { style: { marginLeft: 12, color: i ? t : n }, children: u(
|
|
272
|
+
/* @__PURE__ */ r("span", { style: { marginLeft: 12, color: i ? t : n }, children: u(s) })
|
|
292
273
|
]
|
|
293
274
|
}
|
|
294
275
|
),
|
|
295
|
-
/* @__PURE__ */ r("div", { className:
|
|
276
|
+
/* @__PURE__ */ r("div", { className: se.content, children: o })
|
|
296
277
|
]
|
|
297
278
|
}
|
|
298
279
|
);
|
|
299
280
|
};
|
|
300
|
-
|
|
281
|
+
j.propTypes = {
|
|
301
282
|
isOpen: e.bool,
|
|
302
283
|
onClick: e.func,
|
|
303
284
|
children: e.node,
|
|
@@ -308,9 +289,9 @@ z.propTypes = {
|
|
|
308
289
|
showBottomBar: e.bool,
|
|
309
290
|
titleFontStyles: e.object
|
|
310
291
|
};
|
|
311
|
-
const
|
|
312
|
-
AppliedFiltersContainer:
|
|
313
|
-
AppliedFilterContent:
|
|
292
|
+
const os = () => /* @__PURE__ */ r("div", { children: "EditAmbit" }), Vt = "_AppliedFiltersContainer_s8ooe_2", jt = "_AppliedFilterContent_s8ooe_10", ve = {
|
|
293
|
+
AppliedFiltersContainer: Vt,
|
|
294
|
+
AppliedFilterContent: jt
|
|
314
295
|
}, T = Ke((i) => ({
|
|
315
296
|
activeCategory: "",
|
|
316
297
|
activeSubCategory: "",
|
|
@@ -318,8 +299,8 @@ const ao = () => /* @__PURE__ */ r("div", { children: "EditAmbit" }), zt = "data
|
|
|
318
299
|
tematicalFiltersSelected: [],
|
|
319
300
|
fontColor: "#605B56",
|
|
320
301
|
inputsColor: "#605B56"
|
|
321
|
-
})),
|
|
322
|
-
const { t: l } =
|
|
302
|
+
})), Fe = ({ title: i, onClick: d, isOpen: o = !0, textColor: n = "#ffffff", backgroundColor: t = "#605B5680", activeColor: s }) => {
|
|
303
|
+
const { t: l } = w(), { tematicalFiltersSelected: a } = T((p) => p), c = (p) => {
|
|
323
304
|
T.setState((u) => ({
|
|
324
305
|
tematicalFiltersSelected: u.tematicalFiltersSelected.filter(
|
|
325
306
|
(h) => h.code !== p
|
|
@@ -327,20 +308,20 @@ const ao = () => /* @__PURE__ */ r("div", { children: "EditAmbit" }), zt = "data
|
|
|
327
308
|
}));
|
|
328
309
|
};
|
|
329
310
|
return /* @__PURE__ */ r(
|
|
330
|
-
|
|
311
|
+
j,
|
|
331
312
|
{
|
|
332
|
-
isOpen:
|
|
313
|
+
isOpen: o,
|
|
333
314
|
onClick: d,
|
|
334
315
|
title: i ? l(i) : "Applied Filters",
|
|
335
|
-
activeColor:
|
|
336
|
-
children: /* @__PURE__ */ r("div", { className:
|
|
316
|
+
activeColor: s,
|
|
317
|
+
children: /* @__PURE__ */ r("div", { className: ve.AppliedFiltersContainer, children: a == null ? void 0 : a.map((p, u) => /* @__PURE__ */ m("div", { className: ve.AppliedFilterContent, style: { color: n, background: t }, children: [
|
|
337
318
|
l(p.name),
|
|
338
|
-
/* @__PURE__ */ r("img", { src:
|
|
319
|
+
/* @__PURE__ */ r("img", { src: kt, alt: "CloseIcon", onClick: () => c(p.code), style: { cursor: "pointer" } })
|
|
339
320
|
] }, u)) })
|
|
340
321
|
}
|
|
341
322
|
);
|
|
342
323
|
};
|
|
343
|
-
|
|
324
|
+
Fe.propTypes = {
|
|
344
325
|
isOpen: e.bool,
|
|
345
326
|
onClick: e.func,
|
|
346
327
|
title: e.string,
|
|
@@ -354,15 +335,15 @@ De.propTypes = {
|
|
|
354
335
|
),
|
|
355
336
|
activeColor: e.string
|
|
356
337
|
};
|
|
357
|
-
const Be = ({ title: i, onClick: d, isOpen:
|
|
358
|
-
const { t: l } =
|
|
338
|
+
const Be = ({ title: i, onClick: d, isOpen: o = !0, textColor: n = "#ffffff", backgroundColor: t = "#605B5680", activeColor: s }) => {
|
|
339
|
+
const { t: l } = w(), { tematicalFiltersSelected: a } = T((c) => c);
|
|
359
340
|
return /* @__PURE__ */ r(
|
|
360
|
-
|
|
341
|
+
j,
|
|
361
342
|
{
|
|
362
|
-
isOpen:
|
|
343
|
+
isOpen: o,
|
|
363
344
|
onClick: d,
|
|
364
345
|
title: i ? l(i) : "Geographical Filters",
|
|
365
|
-
activeColor:
|
|
346
|
+
activeColor: s,
|
|
366
347
|
children: "A"
|
|
367
348
|
}
|
|
368
349
|
);
|
|
@@ -375,22 +356,22 @@ Be.propTypes = {
|
|
|
375
356
|
backgroundColor: e.string,
|
|
376
357
|
activeColor: e.string
|
|
377
358
|
};
|
|
378
|
-
const
|
|
379
|
-
checkboxContainer:
|
|
380
|
-
},
|
|
359
|
+
const Pt = "_checkboxContainer_zld97_2", qt = {
|
|
360
|
+
checkboxContainer: Pt
|
|
361
|
+
}, De = ({
|
|
381
362
|
onClick: i,
|
|
382
363
|
containerStyles: d,
|
|
383
|
-
color:
|
|
364
|
+
color: o = "#605B56",
|
|
384
365
|
indicator: n,
|
|
385
366
|
value: t
|
|
386
367
|
}) => {
|
|
387
|
-
const { t:
|
|
368
|
+
const { t: s } = w(), { title: l } = n || {}, { fontColor: a, inputsColor: c } = T((p) => p);
|
|
388
369
|
return /* @__PURE__ */ m(
|
|
389
370
|
"div",
|
|
390
371
|
{
|
|
391
|
-
style: { ...d, color:
|
|
372
|
+
style: { ...d, color: o },
|
|
392
373
|
role: "checkbox",
|
|
393
|
-
className:
|
|
374
|
+
className: qt.checkboxContainer,
|
|
394
375
|
onClick: i,
|
|
395
376
|
children: [
|
|
396
377
|
/* @__PURE__ */ r(
|
|
@@ -406,12 +387,12 @@ const Et = "_checkboxContainer_zld97_2", Kt = {
|
|
|
406
387
|
}
|
|
407
388
|
}
|
|
408
389
|
),
|
|
409
|
-
/* @__PURE__ */ r("span", { className: "checkmark", children:
|
|
390
|
+
/* @__PURE__ */ r("span", { className: "checkmark", children: s(l) })
|
|
410
391
|
]
|
|
411
392
|
}
|
|
412
393
|
);
|
|
413
394
|
};
|
|
414
|
-
|
|
395
|
+
De.propTypes = {
|
|
415
396
|
onClick: e.func,
|
|
416
397
|
value: e.bool,
|
|
417
398
|
containerStyles: e.object,
|
|
@@ -422,15 +403,15 @@ $e.propTypes = {
|
|
|
422
403
|
}),
|
|
423
404
|
checkedColor: e.string
|
|
424
405
|
};
|
|
425
|
-
function
|
|
426
|
-
return
|
|
427
|
-
return
|
|
428
|
-
},
|
|
406
|
+
function de(i, d) {
|
|
407
|
+
return de = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, n) {
|
|
408
|
+
return o.__proto__ = n, o;
|
|
409
|
+
}, de(i, d);
|
|
429
410
|
}
|
|
430
|
-
function
|
|
431
|
-
i.prototype = Object.create(d.prototype), i.prototype.constructor = i,
|
|
411
|
+
function Et(i, d) {
|
|
412
|
+
i.prototype = Object.create(d.prototype), i.prototype.constructor = i, de(i, d);
|
|
432
413
|
}
|
|
433
|
-
function
|
|
414
|
+
function oe(i) {
|
|
434
415
|
return i && i.stopPropagation && i.stopPropagation(), i && i.preventDefault && i.preventDefault(), !1;
|
|
435
416
|
}
|
|
436
417
|
function re(i) {
|
|
@@ -444,18 +425,18 @@ function X(i) {
|
|
|
444
425
|
typeof document < "u" && document.addEventListener(d, i[d], !1);
|
|
445
426
|
});
|
|
446
427
|
}
|
|
447
|
-
function
|
|
448
|
-
return
|
|
449
|
-
let t =
|
|
428
|
+
function z(i, d) {
|
|
429
|
+
return pe(function(o, n) {
|
|
430
|
+
let t = o;
|
|
450
431
|
return t <= n.min && (t = n.min), t >= n.max && (t = n.max), t;
|
|
451
432
|
}(i, d), d);
|
|
452
433
|
}
|
|
453
|
-
function
|
|
454
|
-
const
|
|
455
|
-
let n = i -
|
|
456
|
-
return 2 * Math.abs(
|
|
434
|
+
function pe(i, d) {
|
|
435
|
+
const o = (i - d.min) % d.step;
|
|
436
|
+
let n = i - o;
|
|
437
|
+
return 2 * Math.abs(o) >= d.step && (n += o > 0 ? d.step : -d.step), parseFloat(n.toFixed(5));
|
|
457
438
|
}
|
|
458
|
-
let
|
|
439
|
+
let ue = function(i) {
|
|
459
440
|
function d(n) {
|
|
460
441
|
var t;
|
|
461
442
|
(t = i.call(this, n) || this).onKeyUp = () => {
|
|
@@ -515,20 +496,20 @@ let he = function(i) {
|
|
|
515
496
|
t.start(p, c[0]), X(t.getMouseEventMap());
|
|
516
497
|
});
|
|
517
498
|
}
|
|
518
|
-
|
|
499
|
+
oe(a);
|
|
519
500
|
}
|
|
520
501
|
}, t.onSliderClick = (a) => {
|
|
521
502
|
if (!t.props.disabled && t.props.onSliderClick && !t.hasMoved) {
|
|
522
|
-
const c = t.getMousePosition(a), p =
|
|
503
|
+
const c = t.getMousePosition(a), p = z(t.calcValue(t.calcOffsetFromPosition(c[0])), t.props);
|
|
523
504
|
t.props.onSliderClick(p);
|
|
524
505
|
}
|
|
525
506
|
}, t.createOnKeyDown = (a) => (c) => {
|
|
526
|
-
t.props.disabled || (t.start(a), X(t.getKeyDownEventMap()),
|
|
507
|
+
t.props.disabled || (t.start(a), X(t.getKeyDownEventMap()), oe(c));
|
|
527
508
|
}, t.createOnMouseDown = (a) => (c) => {
|
|
528
509
|
if (t.props.disabled || c.button === 2) return;
|
|
529
510
|
t.setState({ pending: !0 });
|
|
530
511
|
const p = t.getMousePosition(c);
|
|
531
|
-
t.start(a, p[0]), X(t.getMouseEventMap()),
|
|
512
|
+
t.start(a, p[0]), X(t.getMouseEventMap()), oe(c);
|
|
532
513
|
}, t.createOnTouchStart = (a) => (c) => {
|
|
533
514
|
if (t.props.disabled || c.touches.length > 1) return;
|
|
534
515
|
t.setState({ pending: !0 });
|
|
@@ -550,194 +531,194 @@ let he = function(i) {
|
|
|
550
531
|
const u = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(c, t.state.upperBound - p) }, h = { index: a, value: W(t.state.value) };
|
|
551
532
|
return t.props.renderTrack(u, h);
|
|
552
533
|
};
|
|
553
|
-
let
|
|
554
|
-
|
|
534
|
+
let s = re(n.value);
|
|
535
|
+
s.length || (s = re(n.defaultValue)), t.pendingResizeTimeouts = [];
|
|
555
536
|
const l = [];
|
|
556
|
-
for (let a = 0; a <
|
|
557
|
-
return t.resizeObserver = null, t.resizeElementRef =
|
|
537
|
+
for (let a = 0; a < s.length; a += 1) s[a] = z(s[a], n), l.push(a);
|
|
538
|
+
return t.resizeObserver = null, t.resizeElementRef = U.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: s, zIndices: l }, t;
|
|
558
539
|
}
|
|
559
|
-
|
|
560
|
-
var
|
|
561
|
-
return
|
|
540
|
+
Et(d, i);
|
|
541
|
+
var o = d.prototype;
|
|
542
|
+
return o.componentDidMount = function() {
|
|
562
543
|
typeof window < "u" && (this.resizeObserver = new ResizeObserver(this.handleResize), this.resizeObserver.observe(this.resizeElementRef.current), this.resize());
|
|
563
544
|
}, d.getDerivedStateFromProps = function(n, t) {
|
|
564
|
-
const
|
|
565
|
-
return
|
|
566
|
-
},
|
|
545
|
+
const s = re(n.value);
|
|
546
|
+
return s.length ? t.pending ? null : { value: s.map((l) => z(l, n)) } : null;
|
|
547
|
+
}, o.componentDidUpdate = function() {
|
|
567
548
|
this.state.upperBound === 0 && this.resize();
|
|
568
|
-
},
|
|
549
|
+
}, o.componentWillUnmount = function() {
|
|
569
550
|
this.clearPendingResizeTimeouts(), this.resizeObserver && this.resizeObserver.disconnect();
|
|
570
|
-
},
|
|
551
|
+
}, o.onEnd = function(n) {
|
|
571
552
|
n && function(t) {
|
|
572
|
-
Object.keys(t).forEach((
|
|
573
|
-
typeof document < "u" && document.removeEventListener(
|
|
553
|
+
Object.keys(t).forEach((s) => {
|
|
554
|
+
typeof document < "u" && document.removeEventListener(s, t[s], !1);
|
|
574
555
|
});
|
|
575
556
|
}(n), this.hasMoved && this.fireChangeEvent("onAfterChange"), this.setState({ pending: !1 }), this.hasMoved = !1;
|
|
576
|
-
},
|
|
557
|
+
}, o.getValue = function() {
|
|
577
558
|
return W(this.state.value);
|
|
578
|
-
},
|
|
579
|
-
let t = Number.MAX_VALUE,
|
|
559
|
+
}, o.getClosestIndex = function(n) {
|
|
560
|
+
let t = Number.MAX_VALUE, s = -1;
|
|
580
561
|
const { value: l } = this.state, a = l.length;
|
|
581
562
|
for (let c = 0; c < a; c += 1) {
|
|
582
563
|
const p = this.calcOffset(l[c]), u = Math.abs(n - p);
|
|
583
|
-
u < t && (t = u,
|
|
564
|
+
u < t && (t = u, s = c);
|
|
584
565
|
}
|
|
585
|
-
return
|
|
586
|
-
},
|
|
566
|
+
return s;
|
|
567
|
+
}, o.getMousePosition = function(n) {
|
|
587
568
|
return [n["page" + this.axisKey()], n["page" + this.orthogonalAxisKey()]];
|
|
588
|
-
},
|
|
569
|
+
}, o.getTouchPosition = function(n) {
|
|
589
570
|
const t = n.touches[0];
|
|
590
571
|
return [t["page" + this.axisKey()], t["page" + this.orthogonalAxisKey()]];
|
|
591
|
-
},
|
|
572
|
+
}, o.getKeyDownEventMap = function() {
|
|
592
573
|
return { keydown: this.onKeyDown, keyup: this.onKeyUp, focusout: this.onBlur };
|
|
593
|
-
},
|
|
574
|
+
}, o.getMouseEventMap = function() {
|
|
594
575
|
return { mousemove: this.onMouseMove, mouseup: this.onMouseUp };
|
|
595
|
-
},
|
|
576
|
+
}, o.getTouchEventMap = function() {
|
|
596
577
|
return { touchmove: this.onTouchMove, touchend: this.onTouchEnd };
|
|
597
|
-
},
|
|
578
|
+
}, o.getValueFromPosition = function(n) {
|
|
598
579
|
const t = n / (this.state.sliderLength - this.state.thumbSize) * (this.props.max - this.props.min);
|
|
599
|
-
return
|
|
600
|
-
},
|
|
580
|
+
return z(this.state.startValue + t, this.props);
|
|
581
|
+
}, o.getDiffPosition = function(n) {
|
|
601
582
|
let t = n - this.state.startPosition;
|
|
602
583
|
return this.props.invert && (t *= -1), t;
|
|
603
|
-
},
|
|
584
|
+
}, o.resize = function() {
|
|
604
585
|
const { slider: n, thumb0: t } = this;
|
|
605
586
|
if (!n || !t) return;
|
|
606
|
-
const
|
|
587
|
+
const s = this.sizeKey(), l = n.getBoundingClientRect(), a = n[s], c = l[this.posMaxKey()], p = l[this.posMinKey()], u = t.getBoundingClientRect()[s.replace("client", "").toLowerCase()], h = a - u, g = Math.abs(c - p);
|
|
607
588
|
this.state.upperBound === h && this.state.sliderLength === g && this.state.thumbSize === u || this.setState({ upperBound: h, sliderLength: g, thumbSize: u });
|
|
608
|
-
},
|
|
589
|
+
}, o.calcOffset = function(n) {
|
|
609
590
|
const t = this.props.max - this.props.min;
|
|
610
591
|
return t === 0 ? 0 : (n - this.props.min) / t * this.state.upperBound;
|
|
611
|
-
},
|
|
592
|
+
}, o.calcValue = function(n) {
|
|
612
593
|
return n / this.state.upperBound * (this.props.max - this.props.min) + this.props.min;
|
|
613
|
-
},
|
|
614
|
-
const { slider: t } = this,
|
|
594
|
+
}, o.calcOffsetFromPosition = function(n) {
|
|
595
|
+
const { slider: t } = this, s = t.getBoundingClientRect(), l = s[this.posMaxKey()], a = s[this.posMinKey()];
|
|
615
596
|
let c = n - (window["page" + this.axisKey() + "Offset"] + (this.props.invert ? l : a));
|
|
616
597
|
return this.props.invert && (c = this.state.sliderLength - c), c -= this.state.thumbSize / 2, c;
|
|
617
|
-
},
|
|
618
|
-
const
|
|
598
|
+
}, o.forceValueFromPosition = function(n, t) {
|
|
599
|
+
const s = this.calcOffsetFromPosition(n), l = this.getClosestIndex(s), a = z(this.calcValue(s), this.props), c = this.state.value.slice();
|
|
619
600
|
c[l] = a;
|
|
620
601
|
for (let p = 0; p < c.length - 1; p += 1) if (c[p + 1] - c[p] < this.props.minDistance) return;
|
|
621
602
|
this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value: c }, () => {
|
|
622
603
|
t(l), this.fireChangeEvent("onChange");
|
|
623
604
|
});
|
|
624
|
-
},
|
|
605
|
+
}, o.clearPendingResizeTimeouts = function() {
|
|
625
606
|
do {
|
|
626
607
|
const n = this.pendingResizeTimeouts.shift();
|
|
627
608
|
clearTimeout(n);
|
|
628
609
|
} while (this.pendingResizeTimeouts.length);
|
|
629
|
-
},
|
|
630
|
-
const
|
|
631
|
-
|
|
610
|
+
}, o.start = function(n, t) {
|
|
611
|
+
const s = this["thumb" + n];
|
|
612
|
+
s && s.focus();
|
|
632
613
|
const { zIndices: l } = this.state;
|
|
633
614
|
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 }));
|
|
634
|
-
},
|
|
615
|
+
}, o.moveUpByStep = function(n) {
|
|
635
616
|
n === void 0 && (n = this.props.step);
|
|
636
|
-
const t = this.state.value[this.state.index],
|
|
637
|
-
this.move(Math.min(
|
|
638
|
-
},
|
|
617
|
+
const t = this.state.value[this.state.index], s = z(this.props.invert && this.props.orientation === "horizontal" ? t - n : t + n, this.props);
|
|
618
|
+
this.move(Math.min(s, this.props.max));
|
|
619
|
+
}, o.moveDownByStep = function(n) {
|
|
639
620
|
n === void 0 && (n = this.props.step);
|
|
640
|
-
const t = this.state.value[this.state.index],
|
|
641
|
-
this.move(Math.max(
|
|
642
|
-
},
|
|
643
|
-
const t = this.state.value.slice(), { index:
|
|
621
|
+
const t = this.state.value[this.state.index], s = z(this.props.invert && this.props.orientation === "horizontal" ? t + n : t - n, this.props);
|
|
622
|
+
this.move(Math.max(s, this.props.min));
|
|
623
|
+
}, o.move = function(n) {
|
|
624
|
+
const t = this.state.value.slice(), { index: s } = this.state, { length: l } = t, a = t[s];
|
|
644
625
|
if (n === a) return;
|
|
645
626
|
this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
|
|
646
627
|
const { pearling: c, max: p, min: u, minDistance: h } = this.props;
|
|
647
628
|
if (!c) {
|
|
648
|
-
if (
|
|
649
|
-
const g = t[
|
|
629
|
+
if (s > 0) {
|
|
630
|
+
const g = t[s - 1];
|
|
650
631
|
n < g + h && (n = g + h);
|
|
651
632
|
}
|
|
652
|
-
if (
|
|
653
|
-
const g = t[
|
|
633
|
+
if (s < l - 1) {
|
|
634
|
+
const g = t[s + 1];
|
|
654
635
|
n > g - h && (n = g - h);
|
|
655
636
|
}
|
|
656
637
|
}
|
|
657
|
-
t[
|
|
638
|
+
t[s] = n, c && l > 1 && (n > a ? (this.pushSucceeding(t, h, s), function(g, b, C, f) {
|
|
658
639
|
for (let v = 0; v < g; v += 1) {
|
|
659
|
-
const y = f - v *
|
|
660
|
-
|
|
640
|
+
const y = f - v * C;
|
|
641
|
+
b[g - 1 - v] > y && (b[g - 1 - v] = y);
|
|
661
642
|
}
|
|
662
|
-
}(l, t, h, p)) : n < a && (this.pushPreceding(t, h,
|
|
643
|
+
}(l, t, h, p)) : n < a && (this.pushPreceding(t, h, s), function(g, b, C, f) {
|
|
663
644
|
for (let v = 0; v < g; v += 1) {
|
|
664
|
-
const y = f + v *
|
|
665
|
-
|
|
645
|
+
const y = f + v * C;
|
|
646
|
+
b[v] < y && (b[v] = y);
|
|
666
647
|
}
|
|
667
648
|
}(l, t, h, u))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
|
|
668
|
-
},
|
|
649
|
+
}, o.pushSucceeding = function(n, t, s) {
|
|
669
650
|
let l, a;
|
|
670
|
-
for (l =
|
|
671
|
-
},
|
|
672
|
-
for (let l =
|
|
673
|
-
},
|
|
651
|
+
for (l = s, a = n[l] + t; n[l + 1] !== null && a > n[l + 1]; l += 1, a = n[l] + t) n[l + 1] = pe(a, this.props);
|
|
652
|
+
}, o.pushPreceding = function(n, t, s) {
|
|
653
|
+
for (let l = s, a = n[l] - t; n[l - 1] !== null && a < n[l - 1]; l -= 1, a = n[l] - t) n[l - 1] = pe(a, this.props);
|
|
654
|
+
}, o.axisKey = function() {
|
|
674
655
|
return this.props.orientation === "vertical" ? "Y" : "X";
|
|
675
|
-
},
|
|
656
|
+
}, o.orthogonalAxisKey = function() {
|
|
676
657
|
return this.props.orientation === "vertical" ? "X" : "Y";
|
|
677
|
-
},
|
|
658
|
+
}, o.posMinKey = function() {
|
|
678
659
|
return this.props.orientation === "vertical" ? this.props.invert ? "bottom" : "top" : this.props.invert ? "right" : "left";
|
|
679
|
-
},
|
|
660
|
+
}, o.posMaxKey = function() {
|
|
680
661
|
return this.props.orientation === "vertical" ? this.props.invert ? "top" : "bottom" : this.props.invert ? "left" : "right";
|
|
681
|
-
},
|
|
662
|
+
}, o.sizeKey = function() {
|
|
682
663
|
return this.props.orientation === "vertical" ? "clientHeight" : "clientWidth";
|
|
683
|
-
},
|
|
664
|
+
}, o.fireChangeEvent = function(n) {
|
|
684
665
|
this.props[n] && this.props[n](W(this.state.value), this.state.index);
|
|
685
|
-
},
|
|
686
|
-
const
|
|
687
|
-
return
|
|
688
|
-
},
|
|
689
|
-
const
|
|
690
|
-
return
|
|
691
|
-
},
|
|
666
|
+
}, o.buildThumbStyle = function(n, t) {
|
|
667
|
+
const s = { position: "absolute", touchAction: "none", willChange: this.state.index >= 0 ? this.posMinKey() : void 0, zIndex: this.state.zIndices.indexOf(t) + 1 };
|
|
668
|
+
return s[this.posMinKey()] = n + "px", s;
|
|
669
|
+
}, o.buildTrackStyle = function(n, t) {
|
|
670
|
+
const s = { position: "absolute", willChange: this.state.index >= 0 ? this.posMinKey() + "," + this.posMaxKey() : void 0 };
|
|
671
|
+
return s[this.posMinKey()] = n, s[this.posMaxKey()] = t, s;
|
|
672
|
+
}, o.buildMarkStyle = function(n) {
|
|
692
673
|
var t;
|
|
693
674
|
return (t = { position: "absolute" })[this.posMinKey()] = n, t;
|
|
694
|
-
},
|
|
695
|
-
const { length: t } = n,
|
|
696
|
-
for (let a = 0; a < t; a += 1)
|
|
675
|
+
}, o.renderThumbs = function(n) {
|
|
676
|
+
const { length: t } = n, s = [];
|
|
677
|
+
for (let a = 0; a < t; a += 1) s[a] = this.buildThumbStyle(n[a], a);
|
|
697
678
|
const l = [];
|
|
698
|
-
for (let a = 0; a < t; a += 1) l[a] = this.renderThumb(
|
|
679
|
+
for (let a = 0; a < t; a += 1) l[a] = this.renderThumb(s[a], a);
|
|
699
680
|
return l;
|
|
700
|
-
},
|
|
701
|
-
const t = [],
|
|
681
|
+
}, o.renderTracks = function(n) {
|
|
682
|
+
const t = [], s = n.length - 1;
|
|
702
683
|
t.push(this.renderTrack(0, 0, n[0]));
|
|
703
|
-
for (let l = 0; l <
|
|
704
|
-
return t.push(this.renderTrack(
|
|
705
|
-
},
|
|
684
|
+
for (let l = 0; l < s; l += 1) t.push(this.renderTrack(l + 1, n[l], n[l + 1]));
|
|
685
|
+
return t.push(this.renderTrack(s + 1, n[s], this.state.upperBound)), t;
|
|
686
|
+
}, o.renderMarks = function() {
|
|
706
687
|
let { marks: n } = this.props;
|
|
707
688
|
const t = this.props.max - this.props.min + 1;
|
|
708
|
-
return typeof n == "boolean" ? n = Array.from({ length: t }).map((
|
|
709
|
-
const l = this.calcOffset(
|
|
689
|
+
return typeof n == "boolean" ? n = Array.from({ length: t }).map((s, l) => l) : typeof n == "number" && (n = Array.from({ length: t }).map((s, l) => l).filter((s) => s % n == 0)), n.map(parseFloat).sort((s, l) => s - l).map((s) => {
|
|
690
|
+
const l = this.calcOffset(s), a = { key: s, className: this.props.markClassName, style: this.buildMarkStyle(l) };
|
|
710
691
|
return this.props.renderMark(a);
|
|
711
692
|
});
|
|
712
|
-
},
|
|
713
|
-
const n = [], { value: t } = this.state,
|
|
714
|
-
for (let p = 0; p <
|
|
693
|
+
}, o.render = function() {
|
|
694
|
+
const n = [], { value: t } = this.state, s = t.length;
|
|
695
|
+
for (let p = 0; p < s; p += 1) n[p] = this.calcOffset(t[p], p);
|
|
715
696
|
const l = this.props.withTracks ? this.renderTracks(n) : null, a = this.renderThumbs(n), c = this.props.marks ? this.renderMarks() : null;
|
|
716
|
-
return
|
|
697
|
+
return U.createElement("div", { ref: (p) => {
|
|
717
698
|
this.slider = p, this.resizeElementRef.current = p;
|
|
718
699
|
}, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, l, a, c);
|
|
719
700
|
}, d;
|
|
720
|
-
}(
|
|
721
|
-
|
|
722
|
-
var
|
|
723
|
-
const
|
|
724
|
-
container:
|
|
725
|
-
unitLabel:
|
|
726
|
-
slider:
|
|
727
|
-
thumb:
|
|
728
|
-
track:
|
|
729
|
-
labels:
|
|
730
|
-
},
|
|
701
|
+
}(U.Component);
|
|
702
|
+
ue.displayName = "ReactSlider", ue.defaultProps = { min: 0, max: 100, step: 1, pageFn: (i) => 10 * i, 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: (i) => U.createElement("div", i), renderTrack: (i) => U.createElement("div", i), renderMark: (i) => U.createElement("span", i) };
|
|
703
|
+
var Kt = ue;
|
|
704
|
+
const Ut = "_container_15vgv_2", Zt = "_unitLabel_15vgv_9", Ht = "_slider_15vgv_12", Gt = "_thumb_15vgv_18", Yt = "_track_15vgv_27", Wt = "_labels_15vgv_33", E = {
|
|
705
|
+
container: Ut,
|
|
706
|
+
unitLabel: Zt,
|
|
707
|
+
slider: Ht,
|
|
708
|
+
thumb: Gt,
|
|
709
|
+
track: Yt,
|
|
710
|
+
labels: Wt
|
|
711
|
+
}, Ae = ({
|
|
731
712
|
min: i = 0,
|
|
732
713
|
max: d = 100,
|
|
733
|
-
step:
|
|
714
|
+
step: o = 1,
|
|
734
715
|
onChange: n,
|
|
735
716
|
width: t = 300,
|
|
736
|
-
unit:
|
|
717
|
+
unit: s,
|
|
737
718
|
fontColor: l = "#605B56",
|
|
738
719
|
value: a = [i, d]
|
|
739
720
|
}) => {
|
|
740
|
-
const { t: c } =
|
|
721
|
+
const { t: c } = w(), p = (u) => {
|
|
741
722
|
n == null || n({ min: u[0], max: u[1] });
|
|
742
723
|
};
|
|
743
724
|
return /* @__PURE__ */ m(
|
|
@@ -746,16 +727,16 @@ const Ht = "_container_15vgv_2", Gt = "_unitLabel_15vgv_9", Yt = "_slider_15vgv_
|
|
|
746
727
|
className: E.container,
|
|
747
728
|
style: { width: `${t}px`, color: `${l}` },
|
|
748
729
|
children: [
|
|
749
|
-
/* @__PURE__ */ r("div", { className: E.unitLabel, children: /* @__PURE__ */ r("span", { children: c(
|
|
730
|
+
/* @__PURE__ */ r("div", { className: E.unitLabel, children: /* @__PURE__ */ r("span", { children: c(s) }) }),
|
|
750
731
|
/* @__PURE__ */ r(
|
|
751
|
-
|
|
732
|
+
Kt,
|
|
752
733
|
{
|
|
753
734
|
className: E.slider,
|
|
754
735
|
thumbClassName: E.thumb,
|
|
755
736
|
trackClassName: E.track,
|
|
756
737
|
min: i,
|
|
757
738
|
max: d,
|
|
758
|
-
step:
|
|
739
|
+
step: o,
|
|
759
740
|
value: a,
|
|
760
741
|
onChange: p,
|
|
761
742
|
withTracks: !0,
|
|
@@ -771,7 +752,7 @@ const Ht = "_container_15vgv_2", Gt = "_unitLabel_15vgv_9", Yt = "_slider_15vgv_
|
|
|
771
752
|
}
|
|
772
753
|
);
|
|
773
754
|
};
|
|
774
|
-
|
|
755
|
+
Ae.propTypes = {
|
|
775
756
|
min: e.number,
|
|
776
757
|
max: e.number,
|
|
777
758
|
step: e.number,
|
|
@@ -783,91 +764,91 @@ Oe.propTypes = {
|
|
|
783
764
|
fontColor: e.string,
|
|
784
765
|
value: e.arrayOf(e.number)
|
|
785
766
|
};
|
|
786
|
-
const
|
|
787
|
-
tematicalFiltersInputContainer:
|
|
788
|
-
inputTypeContainer:
|
|
789
|
-
checkboxContainer:
|
|
790
|
-
absoluteSliderContainer:
|
|
767
|
+
const Xt = "_tematicalFiltersInputContainer_1vm1r_2", Jt = "_inputTypeContainer_1vm1r_2", Qt = "_checkboxContainer_1vm1r_28", en = "_absoluteSliderContainer_1vm1r_37", J = {
|
|
768
|
+
tematicalFiltersInputContainer: Xt,
|
|
769
|
+
inputTypeContainer: Jt,
|
|
770
|
+
checkboxContainer: Qt,
|
|
771
|
+
absoluteSliderContainer: en
|
|
791
772
|
}, be = ({
|
|
792
773
|
indicator: i,
|
|
793
774
|
//onChangeBothType
|
|
794
775
|
activeColor: d
|
|
795
776
|
}) => {
|
|
796
|
-
const [
|
|
777
|
+
const [o, n] = B(), {
|
|
797
778
|
type: t,
|
|
798
|
-
name:
|
|
779
|
+
name: s,
|
|
799
780
|
values: l,
|
|
800
781
|
minValue: a,
|
|
801
782
|
maxValue: c,
|
|
802
783
|
unit: p
|
|
803
784
|
} = i || {}, u = te(
|
|
804
|
-
() => t == "cat" ||
|
|
805
|
-
[
|
|
785
|
+
() => t == "cat" || o == "cat",
|
|
786
|
+
[o, t]
|
|
806
787
|
), h = te(
|
|
807
|
-
() => t == "abs" ||
|
|
808
|
-
[
|
|
788
|
+
() => t == "abs" || o == "abs",
|
|
789
|
+
[o, t]
|
|
809
790
|
), {
|
|
810
791
|
tematicalFiltersSelected: g,
|
|
811
|
-
selectedIndicator:
|
|
812
|
-
fontColor:
|
|
792
|
+
selectedIndicator: b,
|
|
793
|
+
fontColor: C,
|
|
813
794
|
inputsColor: f
|
|
814
795
|
} = T((x) => x), v = (x) => {
|
|
815
796
|
if (x) {
|
|
816
|
-
const { min:
|
|
817
|
-
let
|
|
818
|
-
ne == "both" && (
|
|
819
|
-
let
|
|
820
|
-
(
|
|
797
|
+
const { min: k, max: _, valueClicked: N, allValues: D } = x || {}, { code: A, type: ne } = i || {}, Z = h ? "abs" : u ? "cat" : "both";
|
|
798
|
+
let O = A[0];
|
|
799
|
+
ne == "both" && (O = Z == "cat" ? A[1] : A[0]), Z == "cat" ? T.setState((P) => {
|
|
800
|
+
let R = P.tematicalFiltersSelected.find(
|
|
801
|
+
($) => $.code === O
|
|
821
802
|
);
|
|
822
|
-
if (
|
|
823
|
-
let
|
|
824
|
-
if (
|
|
825
|
-
if (
|
|
826
|
-
(
|
|
827
|
-
),
|
|
803
|
+
if (R) {
|
|
804
|
+
let $ = [R.values];
|
|
805
|
+
if (R.values.includes(N)) {
|
|
806
|
+
if ($ = R.values.filter(
|
|
807
|
+
(F) => F !== N
|
|
808
|
+
), $.length < 1)
|
|
828
809
|
return {
|
|
829
810
|
tematicalFiltersSelected: P.tematicalFiltersSelected.filter(
|
|
830
|
-
(
|
|
811
|
+
(F) => F.code !== O
|
|
831
812
|
)
|
|
832
813
|
};
|
|
833
814
|
} else
|
|
834
|
-
|
|
815
|
+
$ = [...R.values, N];
|
|
835
816
|
return {
|
|
836
817
|
tematicalFiltersSelected: P.tematicalFiltersSelected.map(
|
|
837
|
-
(
|
|
818
|
+
(F) => F.code === O ? { ...F, values: $ } : F
|
|
838
819
|
)
|
|
839
820
|
};
|
|
840
821
|
} else {
|
|
841
|
-
console.log("entra aqui: ",
|
|
842
|
-
let
|
|
822
|
+
console.log("entra aqui: ", D, " ", N);
|
|
823
|
+
let $ = D.map((F, Pe) => Pe);
|
|
843
824
|
return {
|
|
844
825
|
tematicalFiltersSelected: [
|
|
845
826
|
...g,
|
|
846
827
|
{
|
|
847
828
|
type: "cat",
|
|
848
|
-
code:
|
|
849
|
-
values:
|
|
829
|
+
code: O,
|
|
830
|
+
values: $.filter((F) => F !== N),
|
|
850
831
|
name: i.name
|
|
851
832
|
}
|
|
852
833
|
]
|
|
853
834
|
};
|
|
854
835
|
}
|
|
855
|
-
}) :
|
|
856
|
-
let
|
|
857
|
-
(
|
|
836
|
+
}) : Z == "abs" && T.setState((P) => {
|
|
837
|
+
let R = P.tematicalFiltersSelected.find(
|
|
838
|
+
($) => $.code === O
|
|
858
839
|
);
|
|
859
|
-
if (
|
|
860
|
-
let
|
|
861
|
-
return
|
|
840
|
+
if (R) {
|
|
841
|
+
let $ = { ...R };
|
|
842
|
+
return $.min = k, $.max = _, {
|
|
862
843
|
tematicalFiltersSelected: P.tematicalFiltersSelected.map(
|
|
863
|
-
(
|
|
844
|
+
(F) => F.code === O ? $ : F
|
|
864
845
|
)
|
|
865
846
|
};
|
|
866
847
|
} else
|
|
867
848
|
return {
|
|
868
849
|
tematicalFiltersSelected: [
|
|
869
850
|
...g,
|
|
870
|
-
{ type: "abs", code:
|
|
851
|
+
{ type: "abs", code: O, min: k, max: _ }
|
|
871
852
|
]
|
|
872
853
|
};
|
|
873
854
|
});
|
|
@@ -875,31 +856,31 @@ const Qt = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
875
856
|
}, y = te(() => {
|
|
876
857
|
const x = {};
|
|
877
858
|
if ((g == null ? void 0 : g.length) > 0)
|
|
878
|
-
for (const
|
|
879
|
-
|
|
859
|
+
for (const k of g)
|
|
860
|
+
k.type === "cat" ? x[k.code] = new Set(k.values) : x[k.code] = [k.min, k.max];
|
|
880
861
|
return x;
|
|
881
862
|
}, [g]);
|
|
882
863
|
return /* @__PURE__ */ r("div", { className: J.tematicalFiltersInputContainer, children: /* @__PURE__ */ m(
|
|
883
|
-
|
|
864
|
+
j,
|
|
884
865
|
{
|
|
885
866
|
titleFontStyles: { fontSize: 16, fontWeight: 400 },
|
|
886
|
-
title:
|
|
887
|
-
isOpen:
|
|
867
|
+
title: s,
|
|
868
|
+
isOpen: b == `id${s}`,
|
|
888
869
|
onClick: () => T.setState(() => ({
|
|
889
|
-
selectedIndicator:
|
|
870
|
+
selectedIndicator: b == `id${s}` ? "" : `id${s}`
|
|
890
871
|
})),
|
|
891
872
|
showBottomBar: !1,
|
|
892
873
|
height: 38,
|
|
893
874
|
titleMarginChildren: 14,
|
|
894
875
|
className: "tematicalFiltersInputContainer",
|
|
895
|
-
color:
|
|
876
|
+
color: C,
|
|
896
877
|
activeColor: d,
|
|
897
878
|
children: [
|
|
898
879
|
t == "both" && /* @__PURE__ */ m(
|
|
899
880
|
"div",
|
|
900
881
|
{
|
|
901
882
|
className: J.inputTypeContainer,
|
|
902
|
-
style: { color:
|
|
883
|
+
style: { color: C },
|
|
903
884
|
children: [
|
|
904
885
|
/* @__PURE__ */ m("label", { children: [
|
|
905
886
|
/* @__PURE__ */ r(
|
|
@@ -913,8 +894,8 @@ const Qt = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
913
894
|
},
|
|
914
895
|
style: {
|
|
915
896
|
marginRight: 4,
|
|
916
|
-
backgroundColor:
|
|
917
|
-
border: `1.5px solid ${
|
|
897
|
+
backgroundColor: o == "abs" ? f : "white",
|
|
898
|
+
border: `1.5px solid ${o == "abs" ? f : C}`
|
|
918
899
|
}
|
|
919
900
|
}
|
|
920
901
|
),
|
|
@@ -932,8 +913,8 @@ const Qt = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
932
913
|
},
|
|
933
914
|
style: {
|
|
934
915
|
marginRight: 4,
|
|
935
|
-
backgroundColor:
|
|
936
|
-
border: `1.5px solid ${
|
|
916
|
+
backgroundColor: o == "cat" ? f : "white",
|
|
917
|
+
border: `1.5px solid ${o == "cat" ? f : C}`
|
|
937
918
|
}
|
|
938
919
|
}
|
|
939
920
|
),
|
|
@@ -942,20 +923,20 @@ const Qt = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
942
923
|
]
|
|
943
924
|
}
|
|
944
925
|
),
|
|
945
|
-
u && /* @__PURE__ */ r("div", { className: J.checkboxContainer, children: l.map((x,
|
|
926
|
+
u && /* @__PURE__ */ r("div", { className: J.checkboxContainer, children: l.map((x, k) => {
|
|
946
927
|
var _;
|
|
947
928
|
return /* @__PURE__ */ r(
|
|
948
|
-
|
|
929
|
+
De,
|
|
949
930
|
{
|
|
950
|
-
onClick: () => v({ valueClicked:
|
|
931
|
+
onClick: () => v({ valueClicked: k, allValues: l }),
|
|
951
932
|
indicator: x,
|
|
952
|
-
value: ((_ = y[i.code[t == "both" ? 1 : 0]]) == null ? void 0 : _.has(
|
|
933
|
+
value: ((_ = y[i.code[t == "both" ? 1 : 0]]) == null ? void 0 : _.has(k)) || !y[i.code[t == "both" ? 1 : 0]]
|
|
953
934
|
},
|
|
954
|
-
`checkbox-${
|
|
935
|
+
`checkbox-${k}`
|
|
955
936
|
);
|
|
956
937
|
}) }),
|
|
957
938
|
h && /* @__PURE__ */ r("div", { className: J.absoluteSliderContainer, children: /* @__PURE__ */ r(
|
|
958
|
-
|
|
939
|
+
Ae,
|
|
959
940
|
{
|
|
960
941
|
onChange: v,
|
|
961
942
|
min: a,
|
|
@@ -983,15 +964,15 @@ be.propTypes = {
|
|
|
983
964
|
activeColor: e.string
|
|
984
965
|
//onChangeBothType: PropTypes.func,
|
|
985
966
|
};
|
|
986
|
-
const
|
|
967
|
+
const Oe = ({
|
|
987
968
|
subcategory: i,
|
|
988
969
|
fontColor: d,
|
|
989
|
-
activeColor:
|
|
970
|
+
activeColor: o
|
|
990
971
|
//onChangeBothType,
|
|
991
972
|
}) => {
|
|
992
|
-
const { activeSubcategory: n } = T((l) => l), { name: t, indicators:
|
|
973
|
+
const { activeSubcategory: n } = T((l) => l), { name: t, indicators: s } = i || {};
|
|
993
974
|
return /* @__PURE__ */ r(
|
|
994
|
-
|
|
975
|
+
j,
|
|
995
976
|
{
|
|
996
977
|
title: t,
|
|
997
978
|
isOpen: n == `id${t}`,
|
|
@@ -1005,8 +986,8 @@ const Ae = ({
|
|
|
1005
986
|
titleMarginChildren: 20,
|
|
1006
987
|
height: 49,
|
|
1007
988
|
color: d,
|
|
1008
|
-
activeColor:
|
|
1009
|
-
children:
|
|
989
|
+
activeColor: o,
|
|
990
|
+
children: s == null ? void 0 : s.map((l, a) => /* @__PURE__ */ r(
|
|
1010
991
|
be,
|
|
1011
992
|
{
|
|
1012
993
|
indicator: l,
|
|
@@ -1017,7 +998,7 @@ const Ae = ({
|
|
|
1017
998
|
}
|
|
1018
999
|
);
|
|
1019
1000
|
};
|
|
1020
|
-
|
|
1001
|
+
Oe.propTypes = {
|
|
1021
1002
|
subcategory: e.shape({
|
|
1022
1003
|
name: e.string,
|
|
1023
1004
|
indicators: e.arrayOf(
|
|
@@ -1030,28 +1011,28 @@ Ae.propTypes = {
|
|
|
1030
1011
|
activeColor: e.string
|
|
1031
1012
|
//onChangeBothType: PropTypes.func,
|
|
1032
1013
|
};
|
|
1033
|
-
const
|
|
1014
|
+
const Re = ({
|
|
1034
1015
|
category: i,
|
|
1035
1016
|
// onChangeBothType,
|
|
1036
1017
|
activeColor: d
|
|
1037
1018
|
}) => {
|
|
1038
|
-
const { name:
|
|
1019
|
+
const { name: o, subcategories: n, indicators: t } = i || {}, { activeCategory: s, fontColor: l } = T((a) => a);
|
|
1039
1020
|
return i && /* @__PURE__ */ r(
|
|
1040
|
-
|
|
1021
|
+
j,
|
|
1041
1022
|
{
|
|
1042
1023
|
onClick: () => {
|
|
1043
1024
|
T.setState((a) => ({
|
|
1044
|
-
activeCategory:
|
|
1025
|
+
activeCategory: s === `id${o}` ? "" : `id${o}`
|
|
1045
1026
|
}));
|
|
1046
1027
|
},
|
|
1047
|
-
title:
|
|
1048
|
-
isOpen:
|
|
1028
|
+
title: o,
|
|
1029
|
+
isOpen: s === `id${o}`,
|
|
1049
1030
|
titleFontStyles: { fontSize: 18, fontWeight: "bold" },
|
|
1050
1031
|
showBottomBar: !1,
|
|
1051
1032
|
color: l,
|
|
1052
1033
|
activeColor: d,
|
|
1053
1034
|
children: n ? n.map((a, c) => /* @__PURE__ */ r(
|
|
1054
|
-
|
|
1035
|
+
Oe,
|
|
1055
1036
|
{
|
|
1056
1037
|
subcategory: a,
|
|
1057
1038
|
fontColor: l,
|
|
@@ -1070,7 +1051,7 @@ const Ie = ({
|
|
|
1070
1051
|
}
|
|
1071
1052
|
);
|
|
1072
1053
|
};
|
|
1073
|
-
|
|
1054
|
+
Re.propTypes = {
|
|
1074
1055
|
category: e.shape({
|
|
1075
1056
|
name: e.string.isRequired,
|
|
1076
1057
|
subcategories: e.array,
|
|
@@ -1079,42 +1060,42 @@ Ie.propTypes = {
|
|
|
1079
1060
|
activeColor: e.string
|
|
1080
1061
|
//onChangeBothType: PropTypes.func,
|
|
1081
1062
|
};
|
|
1082
|
-
const
|
|
1063
|
+
const Ie = ({
|
|
1083
1064
|
indicators: i,
|
|
1084
1065
|
isOpen: d = !0,
|
|
1085
|
-
title:
|
|
1066
|
+
title: o,
|
|
1086
1067
|
fontColor: n = "#605B56",
|
|
1087
1068
|
//The color of the slider and the checkbox when is checked
|
|
1088
1069
|
inputsColor: t = "#605B56",
|
|
1089
|
-
activeColor:
|
|
1070
|
+
activeColor: s
|
|
1090
1071
|
}) => {
|
|
1091
|
-
const { tematicalFiltersSelected: l } = T((c) => c), { t: a } =
|
|
1092
|
-
return
|
|
1072
|
+
const { tematicalFiltersSelected: l } = T((c) => c), { t: a } = w();
|
|
1073
|
+
return L(() => {
|
|
1093
1074
|
console.log("filtersSelected changed: ", l);
|
|
1094
|
-
}, [l]),
|
|
1075
|
+
}, [l]), L(() => {
|
|
1095
1076
|
n && T.setState(() => ({ fontColor: n }));
|
|
1096
|
-
}, [n]),
|
|
1077
|
+
}, [n]), L(() => {
|
|
1097
1078
|
t && T.setState(() => ({ inputsColor: t }));
|
|
1098
1079
|
}, [t]), /* @__PURE__ */ r(
|
|
1099
|
-
|
|
1080
|
+
j,
|
|
1100
1081
|
{
|
|
1101
1082
|
isOpen: d,
|
|
1102
|
-
title:
|
|
1083
|
+
title: o ? a(o) : "Tematical filters",
|
|
1103
1084
|
color: n,
|
|
1104
|
-
activeColor:
|
|
1085
|
+
activeColor: s,
|
|
1105
1086
|
children: i == null ? void 0 : i.map((c, p) => /* @__PURE__ */ r(
|
|
1106
|
-
|
|
1087
|
+
Re,
|
|
1107
1088
|
{
|
|
1108
1089
|
category: c,
|
|
1109
1090
|
fontColor: n,
|
|
1110
|
-
activeColor:
|
|
1091
|
+
activeColor: s
|
|
1111
1092
|
},
|
|
1112
1093
|
`category-${p}`
|
|
1113
1094
|
))
|
|
1114
1095
|
}
|
|
1115
1096
|
);
|
|
1116
1097
|
};
|
|
1117
|
-
|
|
1098
|
+
Ie.propTypes = {
|
|
1118
1099
|
isOpen: e.bool,
|
|
1119
1100
|
title: e.string,
|
|
1120
1101
|
indicators: e.arrayOf(e.object),
|
|
@@ -1123,29 +1104,29 @@ Re.propTypes = {
|
|
|
1123
1104
|
inputsColor: e.string,
|
|
1124
1105
|
activeColor: e.string
|
|
1125
1106
|
};
|
|
1126
|
-
const
|
|
1127
|
-
FiltersAmbitContainer:
|
|
1128
|
-
FiltersAmbitHeader:
|
|
1129
|
-
FiltersAmbitTitle:
|
|
1130
|
-
FiltersAmbitDescription:
|
|
1131
|
-
FiltersAmbitDescriptionTitle:
|
|
1132
|
-
},
|
|
1107
|
+
const tn = "_FiltersAmbitContainer_6o4gt_2", nn = "_FiltersAmbitHeader_6o4gt_7", sn = "_FiltersAmbitTitle_6o4gt_15", on = "_FiltersAmbitDescription_6o4gt_22", rn = "_FiltersAmbitDescriptionTitle_6o4gt_33", G = {
|
|
1108
|
+
FiltersAmbitContainer: tn,
|
|
1109
|
+
FiltersAmbitHeader: nn,
|
|
1110
|
+
FiltersAmbitTitle: sn,
|
|
1111
|
+
FiltersAmbitDescription: on,
|
|
1112
|
+
FiltersAmbitDescriptionTitle: rn
|
|
1113
|
+
}, an = ({
|
|
1133
1114
|
ambitName: i,
|
|
1134
1115
|
ambitDescription: d,
|
|
1135
|
-
defaultFilters:
|
|
1116
|
+
defaultFilters: o,
|
|
1136
1117
|
indicators: n,
|
|
1137
1118
|
activeColor: t,
|
|
1138
|
-
textColor:
|
|
1119
|
+
textColor: s,
|
|
1139
1120
|
backgroundColor: l,
|
|
1140
1121
|
onChangeAppliedFilters: a,
|
|
1141
1122
|
saveAmbit: c
|
|
1142
1123
|
}) => {
|
|
1143
|
-
const { t: p } =
|
|
1144
|
-
return
|
|
1145
|
-
|
|
1146
|
-
tematicalFiltersSelected:
|
|
1124
|
+
const { t: p } = w(), { tematicalFiltersSelected: u } = T((h) => h);
|
|
1125
|
+
return L(() => {
|
|
1126
|
+
o && o.length > 0 && T.setState((h) => ({
|
|
1127
|
+
tematicalFiltersSelected: o
|
|
1147
1128
|
}));
|
|
1148
|
-
}, [
|
|
1129
|
+
}, [o]), L(() => {
|
|
1149
1130
|
console.log("filtersSelected changed: ", u), a(u);
|
|
1150
1131
|
}, [u]), /* @__PURE__ */ m("div", { className: G.FiltersAmbitContainer, children: [
|
|
1151
1132
|
/* @__PURE__ */ m("div", { className: G.FiltersAmbitHeader, children: [
|
|
@@ -1156,22 +1137,22 @@ const on = "_FiltersAmbitContainer_6o4gt_2", sn = "_FiltersAmbitHeader_6o4gt_7",
|
|
|
1156
1137
|
] })
|
|
1157
1138
|
] }),
|
|
1158
1139
|
/* @__PURE__ */ r(
|
|
1159
|
-
|
|
1140
|
+
Fe,
|
|
1160
1141
|
{
|
|
1161
1142
|
title: p("applied_filters"),
|
|
1162
1143
|
isOpen: !0,
|
|
1163
|
-
textColor:
|
|
1144
|
+
textColor: s || "#fff",
|
|
1164
1145
|
backgroundColor: l || "#605B5680",
|
|
1165
1146
|
activeColor: t
|
|
1166
1147
|
}
|
|
1167
1148
|
),
|
|
1168
1149
|
/* @__PURE__ */ r(Be, { activeColor: t }),
|
|
1169
1150
|
/* @__PURE__ */ r(
|
|
1170
|
-
|
|
1151
|
+
Ie,
|
|
1171
1152
|
{
|
|
1172
1153
|
indicators: n,
|
|
1173
1154
|
inputsColor: t,
|
|
1174
|
-
textColor:
|
|
1155
|
+
textColor: s,
|
|
1175
1156
|
title: "tematical_filters",
|
|
1176
1157
|
activeColor: t
|
|
1177
1158
|
}
|
|
@@ -1179,7 +1160,7 @@ const on = "_FiltersAmbitContainer_6o4gt_2", sn = "_FiltersAmbitHeader_6o4gt_7",
|
|
|
1179
1160
|
/* @__PURE__ */ r("div", { className: "buttonContainer", children: /* @__PURE__ */ r("button", { className: "mainButton", onClick: c, children: p("guardar_ambit") }) })
|
|
1180
1161
|
] });
|
|
1181
1162
|
};
|
|
1182
|
-
|
|
1163
|
+
an.propTypes = {
|
|
1183
1164
|
indicators: e.arrayOf(e.object).isRequired,
|
|
1184
1165
|
ambitName: e.string,
|
|
1185
1166
|
ambitDescription: e.string,
|
|
@@ -1190,29 +1171,29 @@ cn.propTypes = {
|
|
|
1190
1171
|
onChangeAppliedFilters: e.func,
|
|
1191
1172
|
saveAmbit: e.func
|
|
1192
1173
|
};
|
|
1193
|
-
const
|
|
1194
|
-
barChartContainer:
|
|
1195
|
-
},
|
|
1174
|
+
const ln = "_barChartContainer_d2f1z_2", cn = {
|
|
1175
|
+
barChartContainer: ln
|
|
1176
|
+
}, ze = ({
|
|
1196
1177
|
data: i,
|
|
1197
1178
|
width: d = 700,
|
|
1198
|
-
barHeight:
|
|
1179
|
+
barHeight: o = 25,
|
|
1199
1180
|
gap: n = 23,
|
|
1200
1181
|
fontColor: t = "#605B56",
|
|
1201
|
-
verticalPaddign:
|
|
1182
|
+
verticalPaddign: s = 10,
|
|
1202
1183
|
horizontalPaddign: l = 20,
|
|
1203
1184
|
leftPadding: a = 200,
|
|
1204
1185
|
numberOfDivisions: c = 7,
|
|
1205
1186
|
maxValue: p = null
|
|
1206
1187
|
}) => {
|
|
1207
|
-
const { t: u } =
|
|
1188
|
+
const { t: u } = w(), { xScale: h, ticks: g, height: b } = te(() => {
|
|
1208
1189
|
if (i && i.length > 0) {
|
|
1209
|
-
const
|
|
1190
|
+
const C = (i == null ? void 0 : i.length) * (o + n) + s * 2, f = ye.max(i, (x) => x.value) || 1, v = ye.scaleLinear().domain([0, p || f]).range([0, d - a]), y = Array.from({ length: c + 1 }, (x, k) => p ? p / c * k : f / c * k);
|
|
1210
1191
|
return {
|
|
1211
1192
|
xScale: v,
|
|
1212
1193
|
ticks: y,
|
|
1213
|
-
height:
|
|
1194
|
+
height: C,
|
|
1214
1195
|
width: d,
|
|
1215
|
-
verticalPaddign:
|
|
1196
|
+
verticalPaddign: s,
|
|
1216
1197
|
horizontalPaddign: l
|
|
1217
1198
|
};
|
|
1218
1199
|
} else
|
|
@@ -1221,38 +1202,38 @@ const dn = "_barChartContainer_d2f1z_2", pn = {
|
|
|
1221
1202
|
i,
|
|
1222
1203
|
d,
|
|
1223
1204
|
c,
|
|
1224
|
-
|
|
1205
|
+
o,
|
|
1225
1206
|
n,
|
|
1226
1207
|
l,
|
|
1227
|
-
|
|
1208
|
+
s,
|
|
1228
1209
|
p
|
|
1229
1210
|
]);
|
|
1230
|
-
return /* @__PURE__ */ r("div", { className:
|
|
1231
|
-
/* @__PURE__ */ r("g", { transform: `translate(${a + l}, 0)`, children: g.map((
|
|
1232
|
-
const v = h(
|
|
1211
|
+
return /* @__PURE__ */ r("div", { className: cn.barChartContainer, children: /* @__PURE__ */ r("svg", { width: d + l * 2, height: b, children: /* @__PURE__ */ m("g", { transform: `translate(0,${n})`, children: [
|
|
1212
|
+
/* @__PURE__ */ r("g", { transform: `translate(${a + l}, 0)`, children: g.map((C, f) => {
|
|
1213
|
+
const v = h(C);
|
|
1233
1214
|
return /* @__PURE__ */ m("g", { transform: `translate(${v}, 0)`, children: [
|
|
1234
1215
|
/* @__PURE__ */ r(
|
|
1235
1216
|
"line",
|
|
1236
1217
|
{
|
|
1237
1218
|
y1: 0,
|
|
1238
|
-
y2:
|
|
1219
|
+
y2: b - n * 2,
|
|
1239
1220
|
stroke: "#ccc"
|
|
1240
1221
|
}
|
|
1241
1222
|
),
|
|
1242
1223
|
/* @__PURE__ */ r(
|
|
1243
1224
|
"text",
|
|
1244
1225
|
{
|
|
1245
|
-
y:
|
|
1226
|
+
y: b - n,
|
|
1246
1227
|
textAnchor: "middle",
|
|
1247
1228
|
fontSize: 10,
|
|
1248
1229
|
fill: t,
|
|
1249
|
-
children: parseInt(
|
|
1230
|
+
children: parseInt(C)
|
|
1250
1231
|
}
|
|
1251
1232
|
)
|
|
1252
1233
|
] }, f);
|
|
1253
1234
|
}) }),
|
|
1254
|
-
i && i.length > 0 && (i == null ? void 0 : i.map((
|
|
1255
|
-
const v = h(
|
|
1235
|
+
i && i.length > 0 && (i == null ? void 0 : i.map((C, f) => {
|
|
1236
|
+
const v = h(C.value), y = f * (o + n);
|
|
1256
1237
|
return /* @__PURE__ */ m(
|
|
1257
1238
|
"g",
|
|
1258
1239
|
{
|
|
@@ -1262,18 +1243,18 @@ const dn = "_barChartContainer_d2f1z_2", pn = {
|
|
|
1262
1243
|
"text",
|
|
1263
1244
|
{
|
|
1264
1245
|
x: -24,
|
|
1265
|
-
y:
|
|
1246
|
+
y: o / 2 + 5,
|
|
1266
1247
|
textAnchor: "end",
|
|
1267
1248
|
fill: t,
|
|
1268
|
-
children: u(
|
|
1249
|
+
children: u(C.title)
|
|
1269
1250
|
}
|
|
1270
1251
|
),
|
|
1271
1252
|
/* @__PURE__ */ r(
|
|
1272
1253
|
"rect",
|
|
1273
1254
|
{
|
|
1274
1255
|
width: v,
|
|
1275
|
-
height:
|
|
1276
|
-
fill:
|
|
1256
|
+
height: o,
|
|
1257
|
+
fill: C.color,
|
|
1277
1258
|
rx: 0
|
|
1278
1259
|
}
|
|
1279
1260
|
)
|
|
@@ -1284,7 +1265,7 @@ const dn = "_barChartContainer_d2f1z_2", pn = {
|
|
|
1284
1265
|
}))
|
|
1285
1266
|
] }) }) });
|
|
1286
1267
|
};
|
|
1287
|
-
|
|
1268
|
+
ze.propTypes = {
|
|
1288
1269
|
data: e.arrayOf(
|
|
1289
1270
|
e.shape({
|
|
1290
1271
|
title: e.string,
|
|
@@ -1300,37 +1281,37 @@ Ve.propTypes = {
|
|
|
1300
1281
|
numberOfDivisions: e.number,
|
|
1301
1282
|
fontColor: e.string
|
|
1302
1283
|
};
|
|
1303
|
-
const
|
|
1304
|
-
graphicContainer:
|
|
1305
|
-
titleContainer:
|
|
1306
|
-
},
|
|
1284
|
+
const dn = "_graphicContainer_c9zrg_2", pn = "_titleContainer_c9zrg_14", _e = {
|
|
1285
|
+
graphicContainer: dn,
|
|
1286
|
+
titleContainer: pn
|
|
1287
|
+
}, un = ({
|
|
1307
1288
|
data: i,
|
|
1308
1289
|
graphWidth: d = 700,
|
|
1309
|
-
containerStyle:
|
|
1290
|
+
containerStyle: o,
|
|
1310
1291
|
borderColor: n = "#605B56",
|
|
1311
1292
|
title: t = "Graphic Title",
|
|
1312
|
-
fontColor:
|
|
1293
|
+
fontColor: s = "#605B56",
|
|
1313
1294
|
maxValue: l = null,
|
|
1314
1295
|
numberOfDivisions: a = 7,
|
|
1315
1296
|
leftPadding: c = 200
|
|
1316
1297
|
}) => {
|
|
1317
|
-
const { t: p } =
|
|
1298
|
+
const { t: p } = w();
|
|
1318
1299
|
return /* @__PURE__ */ m(
|
|
1319
1300
|
"div",
|
|
1320
1301
|
{
|
|
1321
|
-
className:
|
|
1302
|
+
className: _e.graphicContainer,
|
|
1322
1303
|
style: {
|
|
1323
|
-
...
|
|
1304
|
+
...o || {},
|
|
1324
1305
|
border: `1.5px solid ${n}`
|
|
1325
1306
|
},
|
|
1326
1307
|
children: [
|
|
1327
|
-
/* @__PURE__ */ r("div", { className:
|
|
1308
|
+
/* @__PURE__ */ r("div", { className: _e.titleContainer, children: /* @__PURE__ */ r("h2", { children: p(t) }) }),
|
|
1328
1309
|
/* @__PURE__ */ r(
|
|
1329
|
-
|
|
1310
|
+
ze,
|
|
1330
1311
|
{
|
|
1331
1312
|
data: i,
|
|
1332
1313
|
width: d,
|
|
1333
|
-
fontColor:
|
|
1314
|
+
fontColor: s,
|
|
1334
1315
|
maxValue: l,
|
|
1335
1316
|
numberOfDivisions: a,
|
|
1336
1317
|
leftPadding: c
|
|
@@ -1340,7 +1321,7 @@ const un = "_graphicContainer_c9zrg_2", hn = "_titleContainer_c9zrg_14", xe = {
|
|
|
1340
1321
|
}
|
|
1341
1322
|
);
|
|
1342
1323
|
};
|
|
1343
|
-
|
|
1324
|
+
un.propTypes = {
|
|
1344
1325
|
data: e.arrayOf(
|
|
1345
1326
|
e.shape({
|
|
1346
1327
|
color: e.string.isRequired,
|
|
@@ -1357,41 +1338,41 @@ mn.propTypes = {
|
|
|
1357
1338
|
numberOfDivisions: e.number,
|
|
1358
1339
|
leftPadding: e.number
|
|
1359
1340
|
};
|
|
1360
|
-
const
|
|
1361
|
-
indicatorsCategory:
|
|
1362
|
-
title:
|
|
1363
|
-
list:
|
|
1364
|
-
},
|
|
1365
|
-
indicatorContainer:
|
|
1366
|
-
indicatorNameContainer:
|
|
1367
|
-
dot:
|
|
1368
|
-
indicatorName:
|
|
1369
|
-
switchExternalContainer:
|
|
1370
|
-
switchType:
|
|
1371
|
-
switchTypeOptions:
|
|
1372
|
-
optionContainer:
|
|
1373
|
-
customRadious:
|
|
1374
|
-
optionText:
|
|
1341
|
+
const hn = "_indicatorsCategory_1cu33_2", mn = "_title_1cu33_5", gn = "_list_1cu33_11", ae = {
|
|
1342
|
+
indicatorsCategory: hn,
|
|
1343
|
+
title: mn,
|
|
1344
|
+
list: gn
|
|
1345
|
+
}, bn = "_indicatorContainer_lw8gx_2", fn = "_indicatorNameContainer_lw8gx_11", yn = "_dot_lw8gx_20", Cn = "_indicatorName_lw8gx_11", vn = "_switchExternalContainer_lw8gx_31", _n = "_switchType_lw8gx_40", xn = "_switchTypeOptions_lw8gx_44", kn = "_optionContainer_lw8gx_55", wn = "_customRadious_lw8gx_65", Nn = "_optionText_lw8gx_72", S = {
|
|
1346
|
+
indicatorContainer: bn,
|
|
1347
|
+
indicatorNameContainer: fn,
|
|
1348
|
+
dot: yn,
|
|
1349
|
+
indicatorName: Cn,
|
|
1350
|
+
switchExternalContainer: vn,
|
|
1351
|
+
switchType: _n,
|
|
1352
|
+
switchTypeOptions: xn,
|
|
1353
|
+
optionContainer: kn,
|
|
1354
|
+
customRadious: wn,
|
|
1355
|
+
optionText: Nn
|
|
1375
1356
|
}, fe = ({
|
|
1376
1357
|
indicator: i,
|
|
1377
1358
|
values: d = [],
|
|
1378
|
-
activeColor:
|
|
1359
|
+
activeColor: o,
|
|
1379
1360
|
defaultColor: n = "#92898A",
|
|
1380
1361
|
activeIndicator: t,
|
|
1381
|
-
activeIndicatorType:
|
|
1362
|
+
activeIndicatorType: s,
|
|
1382
1363
|
onClickIndicator: l,
|
|
1383
1364
|
multiple: a = !1,
|
|
1384
1365
|
onChangeType: c
|
|
1385
1366
|
}) => {
|
|
1386
|
-
const { t: p } =
|
|
1387
|
-
|
|
1388
|
-
t &&
|
|
1367
|
+
const { t: p } = w(), { name: u, type: h } = i, [g, b] = B(!1);
|
|
1368
|
+
L(() => {
|
|
1369
|
+
t && b(
|
|
1389
1370
|
a ? t.some(
|
|
1390
1371
|
(v) => v.name == String(u)
|
|
1391
1372
|
) : t.name == u
|
|
1392
1373
|
);
|
|
1393
1374
|
}, [t]);
|
|
1394
|
-
const
|
|
1375
|
+
const C = () => /* @__PURE__ */ r("div", { className: S.switchExternalContainer, children: /* @__PURE__ */ r("div", { className: S.switchType, children: /* @__PURE__ */ m("div", { className: S.switchTypeOptions, children: [
|
|
1395
1376
|
/* @__PURE__ */ m(
|
|
1396
1377
|
"div",
|
|
1397
1378
|
{
|
|
@@ -1403,8 +1384,8 @@ const gn = "_indicatorsCategory_1cu33_2", Cn = "_title_1cu33_5", bn = "_list_1cu
|
|
|
1403
1384
|
{
|
|
1404
1385
|
className: `${S.customRadious}`,
|
|
1405
1386
|
style: {
|
|
1406
|
-
backgroundColor:
|
|
1407
|
-
borderColor:
|
|
1387
|
+
backgroundColor: s === "cat" ? o : "transparent",
|
|
1388
|
+
borderColor: s === "cat" ? o : n
|
|
1408
1389
|
}
|
|
1409
1390
|
}
|
|
1410
1391
|
),
|
|
@@ -1413,7 +1394,7 @@ const gn = "_indicatorsCategory_1cu33_2", Cn = "_title_1cu33_5", bn = "_list_1cu
|
|
|
1413
1394
|
{
|
|
1414
1395
|
className: S.optionText,
|
|
1415
1396
|
style: {
|
|
1416
|
-
color:
|
|
1397
|
+
color: s === "cat" ? o : n
|
|
1417
1398
|
},
|
|
1418
1399
|
children: p("indicators.cat")
|
|
1419
1400
|
}
|
|
@@ -1432,8 +1413,8 @@ const gn = "_indicatorsCategory_1cu33_2", Cn = "_title_1cu33_5", bn = "_list_1cu
|
|
|
1432
1413
|
{
|
|
1433
1414
|
className: `${S.customRadious}`,
|
|
1434
1415
|
style: {
|
|
1435
|
-
backgroundColor:
|
|
1436
|
-
borderColor:
|
|
1416
|
+
backgroundColor: s === "abs" ? o : "transparent",
|
|
1417
|
+
borderColor: s === "abs" ? o : n
|
|
1437
1418
|
}
|
|
1438
1419
|
}
|
|
1439
1420
|
),
|
|
@@ -1442,7 +1423,7 @@ const gn = "_indicatorsCategory_1cu33_2", Cn = "_title_1cu33_5", bn = "_list_1cu
|
|
|
1442
1423
|
{
|
|
1443
1424
|
className: S.optionText,
|
|
1444
1425
|
style: {
|
|
1445
|
-
color:
|
|
1426
|
+
color: s === "abs" ? o : n
|
|
1446
1427
|
},
|
|
1447
1428
|
children: p("indicators.abs")
|
|
1448
1429
|
}
|
|
@@ -1481,7 +1462,7 @@ const gn = "_indicatorsCategory_1cu33_2", Cn = "_title_1cu33_5", bn = "_list_1cu
|
|
|
1481
1462
|
"div",
|
|
1482
1463
|
{
|
|
1483
1464
|
style: {
|
|
1484
|
-
border: g ? `1px solid ${
|
|
1465
|
+
border: g ? `1px solid ${o}` : `1px solid ${n}`
|
|
1485
1466
|
},
|
|
1486
1467
|
className: S.dot
|
|
1487
1468
|
}
|
|
@@ -1490,14 +1471,14 @@ const gn = "_indicatorsCategory_1cu33_2", Cn = "_title_1cu33_5", bn = "_list_1cu
|
|
|
1490
1471
|
"h4",
|
|
1491
1472
|
{
|
|
1492
1473
|
className: S.indicatorName,
|
|
1493
|
-
style: { color: g ?
|
|
1494
|
-
children: /* @__PURE__ */ r(
|
|
1474
|
+
style: { color: g ? o : n },
|
|
1475
|
+
children: /* @__PURE__ */ r(me, { i18nKey: u, components: { sup: /* @__PURE__ */ r("sup", {}) } })
|
|
1495
1476
|
}
|
|
1496
1477
|
)
|
|
1497
1478
|
]
|
|
1498
1479
|
}
|
|
1499
1480
|
),
|
|
1500
|
-
(t == null ? void 0 : t.name) === u && h === "both" && /* @__PURE__ */ r("div", { children:
|
|
1481
|
+
(t == null ? void 0 : t.name) === u && h === "both" && /* @__PURE__ */ r("div", { children: C() }),
|
|
1501
1482
|
(t == null ? void 0 : t.name) === u && h === "twoUnits" && /* @__PURE__ */ r("div", { children: f() })
|
|
1502
1483
|
]
|
|
1503
1484
|
}
|
|
@@ -1515,16 +1496,16 @@ fe.propTypes = {
|
|
|
1515
1496
|
multiple: e.bool,
|
|
1516
1497
|
onClickIndicator: e.func
|
|
1517
1498
|
};
|
|
1518
|
-
const
|
|
1519
|
-
indicatorsSubCategory:
|
|
1520
|
-
list:
|
|
1521
|
-
},
|
|
1499
|
+
const Sn = "_indicatorsSubCategory_1dzsi_2", Tn = "_list_1dzsi_8", xe = {
|
|
1500
|
+
indicatorsSubCategory: Sn,
|
|
1501
|
+
list: Tn
|
|
1502
|
+
}, Ve = ({
|
|
1522
1503
|
subcName: i,
|
|
1523
1504
|
indicators: d,
|
|
1524
|
-
defaultColor:
|
|
1505
|
+
defaultColor: o,
|
|
1525
1506
|
activeColor: n,
|
|
1526
1507
|
activeSubCategory: t,
|
|
1527
|
-
onClickSubCategory:
|
|
1508
|
+
onClickSubCategory: s,
|
|
1528
1509
|
id: l,
|
|
1529
1510
|
activeIndicator: a,
|
|
1530
1511
|
onClickIndicator: c,
|
|
@@ -1532,32 +1513,32 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Fn = "_list_1dzsi_8", we = {
|
|
|
1532
1513
|
activeIndicatorType: u,
|
|
1533
1514
|
onChangeType: h
|
|
1534
1515
|
}) => {
|
|
1535
|
-
const { t: g } =
|
|
1536
|
-
return
|
|
1537
|
-
|
|
1516
|
+
const { t: g } = w(), [b, C] = B(!1);
|
|
1517
|
+
return L(() => {
|
|
1518
|
+
C(t == l);
|
|
1538
1519
|
}, [t, l]), /* @__PURE__ */ m(
|
|
1539
|
-
|
|
1520
|
+
ge.div,
|
|
1540
1521
|
{
|
|
1541
|
-
className:
|
|
1522
|
+
className: xe.indicatorsSubCategory,
|
|
1542
1523
|
initial: { height: "43px" },
|
|
1543
|
-
animate: { height:
|
|
1524
|
+
animate: { height: b ? "auto" : "43px" },
|
|
1544
1525
|
transition: { duration: 0.4 },
|
|
1545
1526
|
children: [
|
|
1546
|
-
/* @__PURE__ */ r("button", { onClick: () =>
|
|
1547
|
-
/* @__PURE__ */ r("span", { style: { color:
|
|
1527
|
+
/* @__PURE__ */ r("button", { onClick: () => s(l), children: /* @__PURE__ */ m("h3", { style: { color: b ? n : o }, children: [
|
|
1528
|
+
/* @__PURE__ */ r("span", { style: { color: b ? n : o }, children: b ? "-" : "+" }),
|
|
1548
1529
|
/* @__PURE__ */ r(
|
|
1549
1530
|
"span",
|
|
1550
1531
|
{
|
|
1551
|
-
style: { marginLeft: 12, color:
|
|
1532
|
+
style: { marginLeft: 12, color: b ? n : o },
|
|
1552
1533
|
children: g(i)
|
|
1553
1534
|
}
|
|
1554
1535
|
)
|
|
1555
1536
|
] }) }),
|
|
1556
|
-
d && /* @__PURE__ */ r("div", { className:
|
|
1537
|
+
d && /* @__PURE__ */ r("div", { className: xe.list, children: d == null ? void 0 : d.map((f, v) => /* @__PURE__ */ r(
|
|
1557
1538
|
fe,
|
|
1558
1539
|
{
|
|
1559
1540
|
indicator: f,
|
|
1560
|
-
defaultColor:
|
|
1541
|
+
defaultColor: o,
|
|
1561
1542
|
activeColor: n,
|
|
1562
1543
|
activeIndicator: a,
|
|
1563
1544
|
onClickIndicator: c,
|
|
@@ -1571,7 +1552,7 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Fn = "_list_1dzsi_8", we = {
|
|
|
1571
1552
|
}
|
|
1572
1553
|
);
|
|
1573
1554
|
};
|
|
1574
|
-
|
|
1555
|
+
Ve.propTypes = {
|
|
1575
1556
|
subcName: e.string,
|
|
1576
1557
|
indicators: e.array,
|
|
1577
1558
|
activeColor: e.string,
|
|
@@ -1583,13 +1564,13 @@ je.propTypes = {
|
|
|
1583
1564
|
onClickSubCategory: e.func,
|
|
1584
1565
|
onClickIndicator: e.func
|
|
1585
1566
|
};
|
|
1586
|
-
const
|
|
1567
|
+
const je = ({
|
|
1587
1568
|
cat: i,
|
|
1588
1569
|
id: d,
|
|
1589
|
-
activeColor:
|
|
1570
|
+
activeColor: o,
|
|
1590
1571
|
defaultColor: n,
|
|
1591
1572
|
onClickCategory: t,
|
|
1592
|
-
activeCategory:
|
|
1573
|
+
activeCategory: s,
|
|
1593
1574
|
activeSubCategory: l,
|
|
1594
1575
|
onClickSubCategory: a,
|
|
1595
1576
|
activeIndicator: c,
|
|
@@ -1599,35 +1580,35 @@ const ze = ({
|
|
|
1599
1580
|
onChangeType: g
|
|
1600
1581
|
}) => {
|
|
1601
1582
|
var v;
|
|
1602
|
-
const { t:
|
|
1603
|
-
return
|
|
1604
|
-
f(
|
|
1605
|
-
}, [
|
|
1606
|
-
|
|
1583
|
+
const { t: b } = w(), [C, f] = B(!1);
|
|
1584
|
+
return L(() => {
|
|
1585
|
+
f(s === d);
|
|
1586
|
+
}, [s, d]), /* @__PURE__ */ m(
|
|
1587
|
+
ge.div,
|
|
1607
1588
|
{
|
|
1608
1589
|
className: ae.indicatorsCategory,
|
|
1609
1590
|
initial: { height: "53px" },
|
|
1610
|
-
animate: { height:
|
|
1591
|
+
animate: { height: C ? "auto" : "53px" },
|
|
1611
1592
|
transition: { duration: 0.4 },
|
|
1612
1593
|
style: {
|
|
1613
1594
|
backgroundColor: "white",
|
|
1614
|
-
borderBottom:
|
|
1615
|
-
marginBottom:
|
|
1595
|
+
borderBottom: C ? `1px solid ${o}` : "0px",
|
|
1596
|
+
marginBottom: C ? "20px" : "0px"
|
|
1616
1597
|
},
|
|
1617
1598
|
children: [
|
|
1618
1599
|
/* @__PURE__ */ m("h2", { className: `${ae.title}`, onClick: () => t(d), children: [
|
|
1619
|
-
/* @__PURE__ */ r("span", { style: { color:
|
|
1600
|
+
/* @__PURE__ */ r("span", { style: { color: C ? o : n }, children: C ? "-" : "+" }),
|
|
1620
1601
|
/* @__PURE__ */ r(
|
|
1621
1602
|
"span",
|
|
1622
1603
|
{
|
|
1623
|
-
style: { marginLeft: 12, color:
|
|
1624
|
-
children:
|
|
1604
|
+
style: { marginLeft: 12, color: C ? o : n },
|
|
1605
|
+
children: b(i.name)
|
|
1625
1606
|
}
|
|
1626
1607
|
)
|
|
1627
1608
|
] }),
|
|
1628
1609
|
i.subcategories ? i.subcategories.map(
|
|
1629
|
-
({ name: y, subcategory: x, indicators:
|
|
1630
|
-
|
|
1610
|
+
({ name: y, subcategory: x, indicators: k }, _) => /* @__PURE__ */ r(
|
|
1611
|
+
Ve,
|
|
1631
1612
|
{
|
|
1632
1613
|
id: x,
|
|
1633
1614
|
activeSubCategory: l,
|
|
@@ -1636,9 +1617,9 @@ const ze = ({
|
|
|
1636
1617
|
activeIndicator: c,
|
|
1637
1618
|
onClickIndicator: p,
|
|
1638
1619
|
multiple: u,
|
|
1639
|
-
activeColor:
|
|
1620
|
+
activeColor: o,
|
|
1640
1621
|
defaultColor: n,
|
|
1641
|
-
indicators:
|
|
1622
|
+
indicators: k,
|
|
1642
1623
|
activeIndicatorType: h,
|
|
1643
1624
|
onChangeType: g
|
|
1644
1625
|
},
|
|
@@ -1649,7 +1630,7 @@ const ze = ({
|
|
|
1649
1630
|
{
|
|
1650
1631
|
indicator: y,
|
|
1651
1632
|
values: y.type == "twoUnits" && y.values,
|
|
1652
|
-
activeColor:
|
|
1633
|
+
activeColor: o,
|
|
1653
1634
|
defaultColor: n,
|
|
1654
1635
|
activeIndicator: c,
|
|
1655
1636
|
onClickIndicator: p,
|
|
@@ -1663,7 +1644,7 @@ const ze = ({
|
|
|
1663
1644
|
}
|
|
1664
1645
|
);
|
|
1665
1646
|
};
|
|
1666
|
-
|
|
1647
|
+
je.propTypes = {
|
|
1667
1648
|
cat: e.object,
|
|
1668
1649
|
id: e.string,
|
|
1669
1650
|
onChange: e.func,
|
|
@@ -1677,24 +1658,24 @@ ze.propTypes = {
|
|
|
1677
1658
|
activeColor: e.string,
|
|
1678
1659
|
defaultColor: e.string
|
|
1679
1660
|
};
|
|
1680
|
-
const
|
|
1681
|
-
indicatorsList:
|
|
1682
|
-
title:
|
|
1683
|
-
},
|
|
1661
|
+
const Mn = "_indicatorsList_fklyu_2", $n = "_title_fklyu_6", ke = {
|
|
1662
|
+
indicatorsList: Mn,
|
|
1663
|
+
title: $n
|
|
1664
|
+
}, Ln = ({
|
|
1684
1665
|
indicators: i,
|
|
1685
1666
|
activeColor: d,
|
|
1686
|
-
defaultColor:
|
|
1667
|
+
defaultColor: o = "#92898A",
|
|
1687
1668
|
// Función que se ejecuta al seleccionar un indicador, recibe el o los ikeys como parametro
|
|
1688
1669
|
onChange: n,
|
|
1689
1670
|
// Selección multiple
|
|
1690
1671
|
multiple: t = !1,
|
|
1691
1672
|
// Si multiple es true, debe ser un array de strings, sino un string
|
|
1692
|
-
defaultValue:
|
|
1673
|
+
defaultValue: s = null,
|
|
1693
1674
|
//si el indicador es tipo "both" cuando se cambia el tipo
|
|
1694
1675
|
changeIndType: l,
|
|
1695
1676
|
activeIndicatorType: a
|
|
1696
1677
|
}) => {
|
|
1697
|
-
const { t: c } =
|
|
1678
|
+
const { t: c } = w(), [p, u] = B(), [h, g] = B(), [b, C] = B(), f = (_) => {
|
|
1698
1679
|
u(p == _ ? null : _);
|
|
1699
1680
|
}, v = (_) => {
|
|
1700
1681
|
g(h == _ ? null : _);
|
|
@@ -1702,47 +1683,47 @@ const Ln = "_indicatorsList_fklyu_2", Dn = "_title_fklyu_6", ke = {
|
|
|
1702
1683
|
console.log("onClickIndicator: ", _), x(_);
|
|
1703
1684
|
}, x = (_) => {
|
|
1704
1685
|
if (!t)
|
|
1705
|
-
|
|
1706
|
-
(
|
|
1686
|
+
C(
|
|
1687
|
+
(b == null ? void 0 : b.name) == _.name ? null : _
|
|
1707
1688
|
);
|
|
1708
1689
|
else {
|
|
1709
|
-
let N =
|
|
1710
|
-
|
|
1690
|
+
let N = b && b.length > 0 ? [...b] : [];
|
|
1691
|
+
C(
|
|
1711
1692
|
N != null && N.some(
|
|
1712
|
-
(
|
|
1693
|
+
(D) => D.name == _.name
|
|
1713
1694
|
) ? N.filter(
|
|
1714
|
-
(
|
|
1695
|
+
(D) => D.name != String(_.name)
|
|
1715
1696
|
) : [...N, _]
|
|
1716
1697
|
), _.type == "both" && l("cat");
|
|
1717
1698
|
}
|
|
1718
1699
|
};
|
|
1719
|
-
|
|
1720
|
-
console.log("activeindicator changed to: ",
|
|
1721
|
-
}, [
|
|
1722
|
-
if (
|
|
1723
|
-
if (t &&
|
|
1724
|
-
let _ =
|
|
1725
|
-
|
|
1700
|
+
L(() => {
|
|
1701
|
+
console.log("activeindicator changed to: ", b), n && typeof n == "function" && b && n({ activeIndicator: b });
|
|
1702
|
+
}, [b]), Ee(() => {
|
|
1703
|
+
if (s && !b)
|
|
1704
|
+
if (t && s && Array.isArray(s)) {
|
|
1705
|
+
let _ = b && b.length > 0 ? [...b] : [];
|
|
1706
|
+
C([..._, ...s]), k(s[0].name);
|
|
1726
1707
|
} else
|
|
1727
|
-
x(
|
|
1708
|
+
x(s), k(s.name);
|
|
1728
1709
|
}, []);
|
|
1729
|
-
const
|
|
1730
|
-
const N = i.find((
|
|
1731
|
-
if (
|
|
1732
|
-
let
|
|
1733
|
-
(ne) => ne.indicators.find((
|
|
1710
|
+
const k = (_) => {
|
|
1711
|
+
const N = i.find((D) => {
|
|
1712
|
+
if (D.subcategories) {
|
|
1713
|
+
let A = D.subcategories.find(
|
|
1714
|
+
(ne) => ne.indicators.find((Z) => Z.name == _)
|
|
1734
1715
|
);
|
|
1735
|
-
if (
|
|
1736
|
-
return g(
|
|
1716
|
+
if (A)
|
|
1717
|
+
return g(A.subcategory), A;
|
|
1737
1718
|
} else
|
|
1738
|
-
return
|
|
1719
|
+
return D.indicators.some((A) => A.name == _);
|
|
1739
1720
|
});
|
|
1740
1721
|
N && u(N.category);
|
|
1741
1722
|
};
|
|
1742
1723
|
return /* @__PURE__ */ m("div", { className: ke.indicatorsList, children: [
|
|
1743
|
-
/* @__PURE__ */ r("h2", { className: ke.title, style: { color:
|
|
1724
|
+
/* @__PURE__ */ r("h2", { className: ke.title, style: { color: o }, children: c("indicators.indicators") }),
|
|
1744
1725
|
i.map((_, N) => /* @__PURE__ */ r(
|
|
1745
|
-
|
|
1726
|
+
je,
|
|
1746
1727
|
{
|
|
1747
1728
|
id: _.category,
|
|
1748
1729
|
cat: _,
|
|
@@ -1751,9 +1732,9 @@ const Ln = "_indicatorsList_fklyu_2", Dn = "_title_fklyu_6", ke = {
|
|
|
1751
1732
|
onClickSubCategory: v,
|
|
1752
1733
|
activeSubCategory: h,
|
|
1753
1734
|
onClickIndicator: y,
|
|
1754
|
-
activeIndicator:
|
|
1735
|
+
activeIndicator: b,
|
|
1755
1736
|
activeColor: d,
|
|
1756
|
-
defaultColor:
|
|
1737
|
+
defaultColor: o,
|
|
1757
1738
|
multiple: t,
|
|
1758
1739
|
onChange: n,
|
|
1759
1740
|
onChangeType: l,
|
|
@@ -1763,7 +1744,7 @@ const Ln = "_indicatorsList_fklyu_2", Dn = "_title_fklyu_6", ke = {
|
|
|
1763
1744
|
))
|
|
1764
1745
|
] });
|
|
1765
1746
|
};
|
|
1766
|
-
|
|
1747
|
+
Ln.propTypes = {
|
|
1767
1748
|
indicators: e.arrayOf(e.object),
|
|
1768
1749
|
activeColor: e.string,
|
|
1769
1750
|
defaultColor: e.string,
|
|
@@ -1774,15 +1755,15 @@ Bn.propTypes = {
|
|
|
1774
1755
|
defaultValue: e.oneOfType([e.object, e.array]),
|
|
1775
1756
|
activeIndicatorType: e.string
|
|
1776
1757
|
};
|
|
1777
|
-
const
|
|
1778
|
-
langSelector:
|
|
1779
|
-
currentLang:
|
|
1780
|
-
arrow:
|
|
1781
|
-
prevImg:
|
|
1782
|
-
langMenu:
|
|
1783
|
-
},
|
|
1784
|
-
const [n, t] = B(!1), { i18n:
|
|
1785
|
-
|
|
1758
|
+
const Fn = "_langSelector_1of0g_2", Bn = "_currentLang_1of0g_7", Dn = "_arrow_1of0g_19", An = "_prevImg_1of0g_22", On = "_langMenu_1of0g_26", K = {
|
|
1759
|
+
langSelector: Fn,
|
|
1760
|
+
currentLang: Bn,
|
|
1761
|
+
arrow: Dn,
|
|
1762
|
+
prevImg: An,
|
|
1763
|
+
langMenu: On
|
|
1764
|
+
}, Rn = ({ langs: i, arrow: d, imgPrev: o }) => {
|
|
1765
|
+
const [n, t] = B(!1), { i18n: s } = w(), l = i.find((c) => c.code == s.language), a = (c) => {
|
|
1766
|
+
s.changeLanguage(c), t(!1);
|
|
1786
1767
|
};
|
|
1787
1768
|
return /* @__PURE__ */ m("div", { className: K.langSelector, children: [
|
|
1788
1769
|
/* @__PURE__ */ m(
|
|
@@ -1793,7 +1774,7 @@ const $n = "_langSelector_1of0g_2", On = "_currentLang_1of0g_7", An = "_arrow_1o
|
|
|
1793
1774
|
t(!n);
|
|
1794
1775
|
},
|
|
1795
1776
|
children: [
|
|
1796
|
-
|
|
1777
|
+
o && /* @__PURE__ */ r("img", { className: K.prevImg, src: o }),
|
|
1797
1778
|
l.titleSelected || l.title,
|
|
1798
1779
|
/* @__PURE__ */ r("img", { src: d, className: K.arrow })
|
|
1799
1780
|
]
|
|
@@ -1810,7 +1791,7 @@ const $n = "_langSelector_1of0g_2", On = "_currentLang_1of0g_7", An = "_arrow_1o
|
|
|
1810
1791
|
)) })
|
|
1811
1792
|
] });
|
|
1812
1793
|
};
|
|
1813
|
-
|
|
1794
|
+
Rn.propTypes = {
|
|
1814
1795
|
langs: e.arrayOf(
|
|
1815
1796
|
e.shape({
|
|
1816
1797
|
code: e.string,
|
|
@@ -1824,27 +1805,27 @@ Vn.propTypes = {
|
|
|
1824
1805
|
arrow: e.object,
|
|
1825
1806
|
imgPrev: e.object
|
|
1826
1807
|
};
|
|
1827
|
-
const
|
|
1828
|
-
legendContainer:
|
|
1808
|
+
const In = "_legendContainer_atg3j_3", zn = "_closeButton_atg3j_18", Vn = "_titleContainer_atg3j_46", jn = "_infoContainer_atg3j_52", Pn = "_titleLegendList_atg3j_63", qn = "_legendListContainer_atg3j_70", En = "_gridContainer_atg3j_70", Kn = "_elementLegendContainer_atg3j_76", Un = "_colorDot_atg3j_82", Zn = "_absoluteValueContainer_atg3j_88", Hn = "_absoluteValueColor_atg3j_91", Gn = "_absoluteValueText_atg3j_96", Yn = "_moreInfoContainer_atg3j_108", M = {
|
|
1809
|
+
legendContainer: In,
|
|
1829
1810
|
closeButton: zn,
|
|
1830
|
-
titleContainer:
|
|
1831
|
-
infoContainer:
|
|
1832
|
-
titleLegendList:
|
|
1833
|
-
legendListContainer:
|
|
1834
|
-
gridContainer:
|
|
1835
|
-
elementLegendContainer:
|
|
1836
|
-
colorDot:
|
|
1837
|
-
absoluteValueContainer:
|
|
1838
|
-
absoluteValueColor:
|
|
1839
|
-
absoluteValueText:
|
|
1840
|
-
moreInfoContainer:
|
|
1841
|
-
},
|
|
1811
|
+
titleContainer: Vn,
|
|
1812
|
+
infoContainer: jn,
|
|
1813
|
+
titleLegendList: Pn,
|
|
1814
|
+
legendListContainer: qn,
|
|
1815
|
+
gridContainer: En,
|
|
1816
|
+
elementLegendContainer: Kn,
|
|
1817
|
+
colorDot: Un,
|
|
1818
|
+
absoluteValueContainer: Zn,
|
|
1819
|
+
absoluteValueColor: Hn,
|
|
1820
|
+
absoluteValueText: Gn,
|
|
1821
|
+
moreInfoContainer: Yn
|
|
1822
|
+
}, Wn = ({
|
|
1842
1823
|
//JSON with the styles of the container (optional)
|
|
1843
1824
|
containerStyles: i,
|
|
1844
1825
|
//Title on top of the legend
|
|
1845
1826
|
title: d,
|
|
1846
1827
|
//Array to display the info behind the title should have: [{title, value}, ...]
|
|
1847
|
-
infoList:
|
|
1828
|
+
infoList: o,
|
|
1848
1829
|
//Array to display the items of the legend: [{title, color}, ...]
|
|
1849
1830
|
//color should be a string with hexadecimal value
|
|
1850
1831
|
legendList: n,
|
|
@@ -1853,7 +1834,7 @@ const jn = "_legendContainer_atg3j_3", zn = "_closeButton_atg3j_18", Pn = "_titl
|
|
|
1853
1834
|
//Should be an object with {maxColor, minColor, maxValue, minValue}
|
|
1854
1835
|
//If this has is not null or undefined, the legendList values wont be displayed.
|
|
1855
1836
|
//It will display only the absolute value indicator.
|
|
1856
|
-
absoluteValue:
|
|
1837
|
+
absoluteValue: s,
|
|
1857
1838
|
//Function to be called when the button is clicked (optional).
|
|
1858
1839
|
//If this is null or undefined the button wont be displayed.
|
|
1859
1840
|
onClickMoreInfo: l,
|
|
@@ -1861,7 +1842,7 @@ const jn = "_legendContainer_atg3j_3", zn = "_closeButton_atg3j_18", Pn = "_titl
|
|
|
1861
1842
|
buttonTitle: a,
|
|
1862
1843
|
onClickClose: c
|
|
1863
1844
|
}) => {
|
|
1864
|
-
const { t: p } =
|
|
1845
|
+
const { t: p } = w();
|
|
1865
1846
|
return /* @__PURE__ */ m(
|
|
1866
1847
|
"div",
|
|
1867
1848
|
{
|
|
@@ -1870,34 +1851,34 @@ const jn = "_legendContainer_atg3j_3", zn = "_closeButton_atg3j_18", Pn = "_titl
|
|
|
1870
1851
|
children: [
|
|
1871
1852
|
/* @__PURE__ */ r("button", { className: M.closeButton, onClick: c }),
|
|
1872
1853
|
d && /* @__PURE__ */ r("div", { className: M.titleContainer, children: /* @__PURE__ */ r("h2", { children: d }) }),
|
|
1873
|
-
|
|
1854
|
+
o && o.length > 0 && /* @__PURE__ */ r("div", { className: M.infoContainer, children: /* @__PURE__ */ r("ul", { children: o.map(({ title: u, value: h }) => /* @__PURE__ */ m("li", { children: [
|
|
1874
1855
|
/* @__PURE__ */ r("h3", { className: M.title, children: `${u}:` }),
|
|
1875
1856
|
/* @__PURE__ */ m("span", { className: M.value, children: [
|
|
1876
1857
|
" ",
|
|
1877
1858
|
h
|
|
1878
1859
|
] })
|
|
1879
1860
|
] }, d)) }) }),
|
|
1880
|
-
/* @__PURE__ */ r("h3", { className: M.titleLegendList, children: t ? /* @__PURE__ */ r(
|
|
1881
|
-
/* @__PURE__ */ r("div", { className: M.legendListContainer, children:
|
|
1861
|
+
/* @__PURE__ */ r("h3", { className: M.titleLegendList, children: t ? /* @__PURE__ */ r(me, { i18nKey: t, components: { sup: /* @__PURE__ */ r("sup", {}) } }) : p("mainUse") }),
|
|
1862
|
+
/* @__PURE__ */ r("div", { className: M.legendListContainer, children: s ? /* @__PURE__ */ m("div", { className: M.absoluteValueContainer, children: [
|
|
1882
1863
|
/* @__PURE__ */ r(
|
|
1883
1864
|
"div",
|
|
1884
1865
|
{
|
|
1885
1866
|
className: M.absoluteValueColor,
|
|
1886
1867
|
style: {
|
|
1887
|
-
background: `linear-gradient(to bottom, ${
|
|
1868
|
+
background: `linear-gradient(to bottom, ${s.maxColor} 0%, ${s.minColor} 100%)`
|
|
1888
1869
|
}
|
|
1889
1870
|
}
|
|
1890
1871
|
),
|
|
1891
1872
|
/* @__PURE__ */ m("div", { className: M.absoluteValueText, children: [
|
|
1892
1873
|
/* @__PURE__ */ m("span", { children: [
|
|
1893
|
-
|
|
1874
|
+
s.maxValue,
|
|
1894
1875
|
" ",
|
|
1895
|
-
p(
|
|
1876
|
+
p(s.unit)
|
|
1896
1877
|
] }),
|
|
1897
1878
|
/* @__PURE__ */ m("span", { children: [
|
|
1898
|
-
|
|
1879
|
+
s.minValue,
|
|
1899
1880
|
" ",
|
|
1900
|
-
p(
|
|
1881
|
+
p(s.unit)
|
|
1901
1882
|
] })
|
|
1902
1883
|
] })
|
|
1903
1884
|
] }) : n && n.length > 0 && /* @__PURE__ */ r("div", { className: M.gridContainer, children: n.map(
|
|
@@ -1920,7 +1901,7 @@ const jn = "_legendContainer_atg3j_3", zn = "_closeButton_atg3j_18", Pn = "_titl
|
|
|
1920
1901
|
}
|
|
1921
1902
|
);
|
|
1922
1903
|
};
|
|
1923
|
-
|
|
1904
|
+
Wn.propTypes = {
|
|
1924
1905
|
title: e.string,
|
|
1925
1906
|
containerStyles: e.object,
|
|
1926
1907
|
infoList: e.arrayOf(
|
|
@@ -1946,51 +1927,51 @@ Jn.propTypes = {
|
|
|
1946
1927
|
buttonTitle: e.string,
|
|
1947
1928
|
onClickClose: e.func
|
|
1948
1929
|
};
|
|
1949
|
-
const
|
|
1950
|
-
logo:
|
|
1951
|
-
},
|
|
1952
|
-
const { t: n } =
|
|
1953
|
-
return
|
|
1930
|
+
const Xn = "_logo_1ewa6_2", we = {
|
|
1931
|
+
logo: Xn
|
|
1932
|
+
}, Jn = ({ src: i, alt: d, href: o }) => {
|
|
1933
|
+
const { t: n } = w(), t = /* @__PURE__ */ r("img", { src: i, alt: n(d) });
|
|
1934
|
+
return o ? /* @__PURE__ */ r("div", { className: we.logo, children: /* @__PURE__ */ r("a", { href: o, children: t }) }) : /* @__PURE__ */ r("div", { className: we.logo, children: t });
|
|
1954
1935
|
};
|
|
1955
|
-
|
|
1936
|
+
Jn.propTypes = {
|
|
1956
1937
|
src: e.string.isRequired,
|
|
1957
1938
|
alt: e.string.isRequired,
|
|
1958
1939
|
href: e.string,
|
|
1959
1940
|
className: e.string
|
|
1960
1941
|
};
|
|
1961
|
-
const
|
|
1962
|
-
mapContainer:
|
|
1942
|
+
const Qn = "_mapContainer_84pkf_2", ei = {
|
|
1943
|
+
mapContainer: Qn
|
|
1963
1944
|
};
|
|
1964
|
-
|
|
1965
|
-
const
|
|
1945
|
+
Ue.accessToken = "pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";
|
|
1946
|
+
const ti = ({
|
|
1966
1947
|
initialView: i = { latitude: 39.4699, longitude: -0.3763, zoom: 12 },
|
|
1967
1948
|
maxZoom: d = 17,
|
|
1968
|
-
minZoom:
|
|
1949
|
+
minZoom: o = 8,
|
|
1969
1950
|
mapStyle: n,
|
|
1970
1951
|
firstSymbolLayer: t,
|
|
1971
|
-
cssProps:
|
|
1952
|
+
cssProps: s = "",
|
|
1972
1953
|
onClick: l = "",
|
|
1973
1954
|
interactiveLayers: a = [],
|
|
1974
1955
|
popUp: c = !1,
|
|
1975
1956
|
sources: p = [],
|
|
1976
1957
|
layers: u = []
|
|
1977
1958
|
}) => {
|
|
1978
|
-
const h =
|
|
1979
|
-
return
|
|
1959
|
+
const h = he(), [g, b] = B(null), C = ce((f) => f.mapState.showTexts);
|
|
1960
|
+
return L(() => {
|
|
1980
1961
|
if (h.current) {
|
|
1981
1962
|
const f = h.current.getMap();
|
|
1982
1963
|
f.getStyle().layers.map((y) => {
|
|
1983
|
-
y.type == "symbol" && y.id != "professionals" && (
|
|
1964
|
+
y.type == "symbol" && y.id != "professionals" && (C ? f.setLayoutProperty(y.id, "visibility", "visible") : f.setLayoutProperty(y.id, "visibility", "none"));
|
|
1984
1965
|
});
|
|
1985
1966
|
}
|
|
1986
|
-
}, [
|
|
1987
|
-
|
|
1967
|
+
}, [C]), /* @__PURE__ */ r("div", { className: `${ei.mapContainer}`, style: s, children: /* @__PURE__ */ m(
|
|
1968
|
+
Ze,
|
|
1988
1969
|
{
|
|
1989
1970
|
initialViewState: i,
|
|
1990
1971
|
ref: h,
|
|
1991
1972
|
hash: !1,
|
|
1992
1973
|
maxZoom: d,
|
|
1993
|
-
minZoom:
|
|
1974
|
+
minZoom: o,
|
|
1994
1975
|
mapStyle: n,
|
|
1995
1976
|
onClick: l,
|
|
1996
1977
|
interactiveLayerIds: a,
|
|
@@ -2019,7 +2000,7 @@ const ii = ({
|
|
|
2019
2000
|
longitude: c.longitude,
|
|
2020
2001
|
latitude: c.latitude,
|
|
2021
2002
|
anchor: c.anchor,
|
|
2022
|
-
onClose: () =>
|
|
2003
|
+
onClose: () => b(null),
|
|
2023
2004
|
children: c.content
|
|
2024
2005
|
}
|
|
2025
2006
|
)
|
|
@@ -2027,7 +2008,7 @@ const ii = ({
|
|
|
2027
2008
|
}
|
|
2028
2009
|
) });
|
|
2029
2010
|
};
|
|
2030
|
-
|
|
2011
|
+
ti.propTypes = {
|
|
2031
2012
|
initialView: e.shape({
|
|
2032
2013
|
latitude: e.number.isRequired,
|
|
2033
2014
|
longitude: e.number.isRequired,
|
|
@@ -2072,29 +2053,29 @@ ii.propTypes = {
|
|
|
2072
2053
|
})
|
|
2073
2054
|
)
|
|
2074
2055
|
};
|
|
2075
|
-
const
|
|
2076
|
-
mapContainer:
|
|
2077
|
-
},
|
|
2078
|
-
FeaturePopUp:
|
|
2079
|
-
title:
|
|
2080
|
-
},
|
|
2081
|
-
const { t: d } =
|
|
2082
|
-
return /* @__PURE__ */ r("div", { className:
|
|
2083
|
-
/* @__PURE__ */ m("span", { className:
|
|
2084
|
-
/* @__PURE__ */ r(
|
|
2056
|
+
const ni = "_mapContainer_b0pyr_3", ii = {
|
|
2057
|
+
mapContainer: ni
|
|
2058
|
+
}, si = "_FeaturePopUp_1gd6w_2", oi = "_title_1gd6w_2", Ne = {
|
|
2059
|
+
FeaturePopUp: si,
|
|
2060
|
+
title: oi
|
|
2061
|
+
}, ri = ({ props: i }) => {
|
|
2062
|
+
const { t: d } = w();
|
|
2063
|
+
return /* @__PURE__ */ r("div", { className: Ne.FeaturePopUp, children: i.map((o) => /* @__PURE__ */ m("p", { children: [
|
|
2064
|
+
/* @__PURE__ */ m("span", { className: Ne.title, children: [
|
|
2065
|
+
/* @__PURE__ */ r(me, { i18nKey: o.name, components: { sup: /* @__PURE__ */ r("sup", {}) } }),
|
|
2085
2066
|
": "
|
|
2086
2067
|
] }),
|
|
2087
|
-
|
|
2068
|
+
o.value.toLocaleString("de", { maximumFractionDigits: 2 }),
|
|
2088
2069
|
" ",
|
|
2089
|
-
d(
|
|
2070
|
+
d(o.unit)
|
|
2090
2071
|
] })) });
|
|
2091
|
-
},
|
|
2072
|
+
}, ai = ({
|
|
2092
2073
|
initialView: i = { latitude: 39.4699, longitude: -0.3763, zoom: 12 },
|
|
2093
2074
|
maxZoom: d = 17,
|
|
2094
|
-
minZoom:
|
|
2075
|
+
minZoom: o = 8,
|
|
2095
2076
|
mapStyle: n,
|
|
2096
2077
|
firstSymbolLayer: t,
|
|
2097
|
-
cssProps:
|
|
2078
|
+
cssProps: s = {},
|
|
2098
2079
|
onClick: l = "",
|
|
2099
2080
|
interactiveLayers: a = [],
|
|
2100
2081
|
sources: c = [],
|
|
@@ -2102,31 +2083,31 @@ const oi = "_mapContainer_b0pyr_3", si = {
|
|
|
2102
2083
|
filters: u,
|
|
2103
2084
|
popUpParams: h,
|
|
2104
2085
|
onClosePopUp: g,
|
|
2105
|
-
showTexts:
|
|
2086
|
+
showTexts: b
|
|
2106
2087
|
}) => {
|
|
2107
2088
|
console.log(u);
|
|
2108
|
-
const
|
|
2109
|
-
return
|
|
2110
|
-
if (
|
|
2111
|
-
const f =
|
|
2089
|
+
const C = he();
|
|
2090
|
+
return L(() => {
|
|
2091
|
+
if (C.current) {
|
|
2092
|
+
const f = C.current.getMap();
|
|
2112
2093
|
f.getStyle().layers.map((y) => {
|
|
2113
|
-
y.type == "symbol" && y.id != "professionals" && (
|
|
2094
|
+
y.type == "symbol" && y.id != "professionals" && (b ? f.setLayoutProperty(y.id, "visibility", "visible") : f.setLayoutProperty(y.id, "visibility", "none"));
|
|
2114
2095
|
});
|
|
2115
2096
|
}
|
|
2116
|
-
}, [
|
|
2097
|
+
}, [b]), L(() => {
|
|
2117
2098
|
let f = new Xe();
|
|
2118
2099
|
return ie.addProtocol("pmtiles", f.tile), () => {
|
|
2119
2100
|
ie.removeProtocol("pmtiles");
|
|
2120
2101
|
};
|
|
2121
|
-
}, []), /* @__PURE__ */ r("div", { className: `${
|
|
2102
|
+
}, []), /* @__PURE__ */ r("div", { className: `${ii.mapContainer}`, style: s && s, children: /* @__PURE__ */ m(
|
|
2122
2103
|
Je,
|
|
2123
2104
|
{
|
|
2124
2105
|
mapLib: ie,
|
|
2125
2106
|
initialViewState: i,
|
|
2126
|
-
ref:
|
|
2107
|
+
ref: C,
|
|
2127
2108
|
hash: !1,
|
|
2128
2109
|
maxZoom: d,
|
|
2129
|
-
minZoom:
|
|
2110
|
+
minZoom: o,
|
|
2130
2111
|
mapStyle: n,
|
|
2131
2112
|
onClick: l,
|
|
2132
2113
|
interactiveLayerIds: a,
|
|
@@ -2156,14 +2137,14 @@ const oi = "_mapContainer_b0pyr_3", si = {
|
|
|
2156
2137
|
longitude: h.lng,
|
|
2157
2138
|
latitude: h.lat,
|
|
2158
2139
|
onClose: g,
|
|
2159
|
-
children: /* @__PURE__ */ r(
|
|
2140
|
+
children: /* @__PURE__ */ r(ri, { props: h.props })
|
|
2160
2141
|
}
|
|
2161
2142
|
)
|
|
2162
2143
|
]
|
|
2163
2144
|
}
|
|
2164
2145
|
) });
|
|
2165
2146
|
};
|
|
2166
|
-
|
|
2147
|
+
ai.propTypes = {
|
|
2167
2148
|
initialView: e.shape({
|
|
2168
2149
|
latitude: e.number.isRequired,
|
|
2169
2150
|
longitude: e.number.isRequired,
|
|
@@ -2206,33 +2187,34 @@ ci.propTypes = {
|
|
|
2206
2187
|
popUpParams: e.object,
|
|
2207
2188
|
onClosePopUp: e.func
|
|
2208
2189
|
};
|
|
2209
|
-
const
|
|
2210
|
-
sectionBar:
|
|
2211
|
-
leftContent:
|
|
2212
|
-
textContainer:
|
|
2213
|
-
title:
|
|
2214
|
-
subtitle:
|
|
2215
|
-
rightContent:
|
|
2216
|
-
},
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
const { t: l } = k();
|
|
2225
|
-
return /* @__PURE__ */ m("div", { className: j.sectionBar, style: { width: o && o }, children: [
|
|
2226
|
-
/* @__PURE__ */ m("div", { className: j.leftContent, children: [
|
|
2227
|
-
i && /* @__PURE__ */ r("img", { src: i, alt: "Icono", className: j.icon }),
|
|
2228
|
-
/* @__PURE__ */ m("div", { className: j.textContainer, children: [
|
|
2229
|
-
/* @__PURE__ */ r("div", { className: j.title, children: l(d) }),
|
|
2230
|
-
s && /* @__PURE__ */ r("div", { className: j.subtitle, children: s })
|
|
2190
|
+
const li = "_sectionBar_1nshk_2", ci = "_leftContent_1nshk_14", di = "_textContainer_1nshk_20", pi = "_title_1nshk_27", ui = "_subtitle_1nshk_33", hi = "_rightContent_1nshk_38", V = {
|
|
2191
|
+
sectionBar: li,
|
|
2192
|
+
leftContent: ci,
|
|
2193
|
+
textContainer: di,
|
|
2194
|
+
title: pi,
|
|
2195
|
+
subtitle: ui,
|
|
2196
|
+
rightContent: hi
|
|
2197
|
+
}, mi = ({ leftIcon: i, title: d, subtitle: o, rightContent: n, mainColor: t }) => {
|
|
2198
|
+
const { t: s } = w();
|
|
2199
|
+
return /* @__PURE__ */ m("div", { className: V.sectionBar, children: [
|
|
2200
|
+
/* @__PURE__ */ m("div", { className: V.leftContent, children: [
|
|
2201
|
+
i && /* @__PURE__ */ r("img", { src: i, alt: "Icono", className: V.icon }),
|
|
2202
|
+
/* @__PURE__ */ m("div", { className: V.textContainer, children: [
|
|
2203
|
+
/* @__PURE__ */ r("div", { className: V.title, style: t ? { color: t } : {}, children: s(d) }),
|
|
2204
|
+
o && /* @__PURE__ */ r("div", { className: V.subtitle, children: o })
|
|
2231
2205
|
] })
|
|
2232
2206
|
] }),
|
|
2233
|
-
/* @__PURE__ */ r("div", { className:
|
|
2207
|
+
/* @__PURE__ */ r("div", { className: V.rightContent, children: n })
|
|
2234
2208
|
] });
|
|
2235
|
-
}
|
|
2209
|
+
};
|
|
2210
|
+
mi.propTypes = {
|
|
2211
|
+
leftIcon: e.node.isRequired,
|
|
2212
|
+
title: e.string.isRequired,
|
|
2213
|
+
subtitle: e.string,
|
|
2214
|
+
rightContent: e.node.isRequired,
|
|
2215
|
+
mainColor: e.string
|
|
2216
|
+
};
|
|
2217
|
+
const gi = Me({
|
|
2236
2218
|
name: "mapSlice",
|
|
2237
2219
|
initialState: {
|
|
2238
2220
|
showTexts: !0,
|
|
@@ -2258,26 +2240,26 @@ const di = "_sectionBar_1egwc_2", pi = "_leftContent_1egwc_14", ui = "_textConta
|
|
|
2258
2240
|
i.activeIndicatorUnit = d.payload;
|
|
2259
2241
|
}
|
|
2260
2242
|
}
|
|
2261
|
-
}), { setShowTexts:
|
|
2243
|
+
}), { setShowTexts: rs, setYear: le, setActiveIndicatorKey: as, setActiveIndicatorType: ls, setActiveIndicatorUnit: cs } = gi.actions, bi = "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", fi = "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", yi = "_slider_a19yo_2", Ci = "_playButton_a19yo_17", vi = "_sliderOpen_a19yo_28", _i = "_sliderResults_a19yo_32", Y = {
|
|
2262
2244
|
slider: yi,
|
|
2263
|
-
playButton:
|
|
2264
|
-
sliderOpen:
|
|
2265
|
-
sliderResults:
|
|
2266
|
-
},
|
|
2245
|
+
playButton: Ci,
|
|
2246
|
+
sliderOpen: vi,
|
|
2247
|
+
sliderResults: _i
|
|
2248
|
+
}, xi = ({ onResults: i = !1, defaultYear: d = 2025, firstYear: o = 2025, lastYear: n = 2050, zIndex: t = 10, rightBarOpen: s = !1 }) => {
|
|
2267
2249
|
const [l, a] = B(d), c = Te(), p = (y, x) => {
|
|
2268
2250
|
a(x), c(le(x - 2e3));
|
|
2269
2251
|
}, [u, h] = B(!1), g = () => {
|
|
2270
2252
|
h(!0);
|
|
2271
|
-
},
|
|
2253
|
+
}, b = () => {
|
|
2272
2254
|
h(!1);
|
|
2273
2255
|
};
|
|
2274
2256
|
((y, x) => {
|
|
2275
|
-
const
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
}, [y]),
|
|
2257
|
+
const k = he();
|
|
2258
|
+
L(() => {
|
|
2259
|
+
k.current = y;
|
|
2260
|
+
}, [y]), L(() => {
|
|
2279
2261
|
function _() {
|
|
2280
|
-
|
|
2262
|
+
k.current();
|
|
2281
2263
|
}
|
|
2282
2264
|
{
|
|
2283
2265
|
let N = setInterval(_, x);
|
|
@@ -2287,7 +2269,7 @@ const di = "_sectionBar_1egwc_2", pi = "_leftContent_1egwc_14", ui = "_textConta
|
|
|
2287
2269
|
})(() => {
|
|
2288
2270
|
u && (l != 2050 ? (a(l + 1), c(le(l - 2e3 + 1))) : (a(2025), c(le(25))));
|
|
2289
2271
|
}, 1e3);
|
|
2290
|
-
const f =
|
|
2272
|
+
const f = st({
|
|
2291
2273
|
palette: {
|
|
2292
2274
|
primary: {
|
|
2293
2275
|
main: "#605b56"
|
|
@@ -2316,13 +2298,13 @@ const di = "_sectionBar_1egwc_2", pi = "_leftContent_1egwc_14", ui = "_textConta
|
|
|
2316
2298
|
{ label: "", value: 2050 }
|
|
2317
2299
|
];
|
|
2318
2300
|
return /* @__PURE__ */ r(rt, { theme: f, children: /* @__PURE__ */ m(
|
|
2319
|
-
|
|
2301
|
+
ot,
|
|
2320
2302
|
{
|
|
2321
2303
|
sx: { width: 400 },
|
|
2322
|
-
className: `${i ? Y.sliderResults : Y.slider} ${
|
|
2304
|
+
className: `${i ? Y.sliderResults : Y.slider} ${s ? Y.sliderOpen : ""}`,
|
|
2323
2305
|
style: { zIndex: t },
|
|
2324
2306
|
children: [
|
|
2325
|
-
|
|
2307
|
+
o,
|
|
2326
2308
|
/* @__PURE__ */ r(
|
|
2327
2309
|
it,
|
|
2328
2310
|
{
|
|
@@ -2331,7 +2313,7 @@ const di = "_sectionBar_1egwc_2", pi = "_leftContent_1egwc_14", ui = "_textConta
|
|
|
2331
2313
|
valueLabelDisplay: "on",
|
|
2332
2314
|
step: 1,
|
|
2333
2315
|
marks: v,
|
|
2334
|
-
min:
|
|
2316
|
+
min: o,
|
|
2335
2317
|
max: n,
|
|
2336
2318
|
onChange: p,
|
|
2337
2319
|
color: "primary",
|
|
@@ -2340,12 +2322,12 @@ const di = "_sectionBar_1egwc_2", pi = "_leftContent_1egwc_14", ui = "_textConta
|
|
|
2340
2322
|
),
|
|
2341
2323
|
n,
|
|
2342
2324
|
!u && /* @__PURE__ */ r("button", { className: Y.playButton, onClick: g, children: /* @__PURE__ */ r("img", { src: bi, alt: "Play" }) }),
|
|
2343
|
-
u && /* @__PURE__ */ r("button", { className: Y.playButton, onClick:
|
|
2325
|
+
u && /* @__PURE__ */ r("button", { className: Y.playButton, onClick: b, children: /* @__PURE__ */ r("img", { src: fi, alt: "Pause" }) })
|
|
2344
2326
|
]
|
|
2345
2327
|
}
|
|
2346
2328
|
) });
|
|
2347
2329
|
};
|
|
2348
|
-
|
|
2330
|
+
xi.propTypes = {
|
|
2349
2331
|
defaultYear: e.number,
|
|
2350
2332
|
onResults: e.bool,
|
|
2351
2333
|
firstYear: e.number,
|
|
@@ -2353,40 +2335,32 @@ wi.propTypes = {
|
|
|
2353
2335
|
zIndex: e.number,
|
|
2354
2336
|
rightBarOpen: e.bool
|
|
2355
2337
|
};
|
|
2356
|
-
const ki = "
|
|
2338
|
+
const ki = "_TopNavMenuContainer_ku22g_2", wi = "_topNavOptions_ku22g_11", Se = {
|
|
2357
2339
|
TopNavMenuContainer: ki,
|
|
2358
|
-
topNavOptions:
|
|
2359
|
-
|
|
2360
|
-
},
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
const { t: n } = k(), t = d.textColor || "inherit", o = d.borderColor || "transparent", l = d.height || "100%";
|
|
2366
|
-
return /* @__PURE__ */ r(
|
|
2367
|
-
"div",
|
|
2340
|
+
topNavOptions: wi
|
|
2341
|
+
}, Ni = ({ options: i = [], cssProps: d = {}, activeColor: o }) => {
|
|
2342
|
+
const { t: n } = w(), t = d.textColor || "inherit";
|
|
2343
|
+
d.borderColor;
|
|
2344
|
+
const s = d.height || "calc(70px - 10px);";
|
|
2345
|
+
return /* @__PURE__ */ r("div", { className: Se.TopNavMenuContainer, children: i.map((l, a) => /* @__PURE__ */ r(
|
|
2346
|
+
at,
|
|
2368
2347
|
{
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
}),
|
|
2381
|
-
children: n(a.name)
|
|
2382
|
-
},
|
|
2383
|
-
c
|
|
2384
|
-
))
|
|
2385
|
-
}
|
|
2386
|
-
);
|
|
2348
|
+
to: l.url,
|
|
2349
|
+
className: ({ isActive: c }) => `${Se.topNavOptions}`,
|
|
2350
|
+
style: {
|
|
2351
|
+
color: t,
|
|
2352
|
+
height: s,
|
|
2353
|
+
boxShadow: isActive ? `0 5px 0 0 ${o}` : "inherit"
|
|
2354
|
+
},
|
|
2355
|
+
children: n(l.name)
|
|
2356
|
+
},
|
|
2357
|
+
a
|
|
2358
|
+
)) });
|
|
2387
2359
|
};
|
|
2388
|
-
|
|
2389
|
-
options: e.arrayOf(
|
|
2360
|
+
Ni.propTypes = {
|
|
2361
|
+
options: e.arrayOf(
|
|
2362
|
+
e.object
|
|
2363
|
+
),
|
|
2390
2364
|
cssProps: e.shape({
|
|
2391
2365
|
borderColor: e.string.isRequired,
|
|
2392
2366
|
textColor: e.string.isRequired
|
|
@@ -2395,7 +2369,7 @@ Ti.propTypes = {
|
|
|
2395
2369
|
// activeColor: PropTypes.string,
|
|
2396
2370
|
// defaultColor: PropTypes.string
|
|
2397
2371
|
};
|
|
2398
|
-
const
|
|
2372
|
+
const Si = Me({
|
|
2399
2373
|
name: "userSlice",
|
|
2400
2374
|
initialState: {
|
|
2401
2375
|
user: {
|
|
@@ -2413,15 +2387,15 @@ const Mi = Me({
|
|
|
2413
2387
|
i.showUserMenu = d.payload;
|
|
2414
2388
|
}
|
|
2415
2389
|
}
|
|
2416
|
-
}), { setShowLogIn:
|
|
2417
|
-
UserMenuTrigger:
|
|
2418
|
-
},
|
|
2419
|
-
const
|
|
2420
|
-
|
|
2390
|
+
}), { setShowLogIn: Ti, setShowUserMenu: Mi } = Si.actions, $i = "_UserMenuTrigger_uglss_2", Li = {
|
|
2391
|
+
UserMenuTrigger: $i
|
|
2392
|
+
}, Fi = ({ cssClass: i, loginLocale: d = "login" }) => {
|
|
2393
|
+
const o = Te(), n = ce((a) => a.userState.user.isLoggedIn), t = ce((a) => a.userState.user.username), { t: s } = w(), l = () => {
|
|
2394
|
+
o(n ? Ti(!0) : Mi(!0));
|
|
2421
2395
|
};
|
|
2422
|
-
return /* @__PURE__ */ r("div", { className: `${
|
|
2396
|
+
return /* @__PURE__ */ r("div", { className: `${Li.UserMenuTrigger} link ${i}`, onClick: l, children: n ? t : s(d) });
|
|
2423
2397
|
};
|
|
2424
|
-
|
|
2398
|
+
Fi.propTypes = {
|
|
2425
2399
|
onClickLoggedIn: e.func.isRequired,
|
|
2426
2400
|
onClickLoggedOut: e.func.isRequired,
|
|
2427
2401
|
log: e.bool,
|
|
@@ -2429,43 +2403,17 @@ $i.propTypes = {
|
|
|
2429
2403
|
cssClass: e.string,
|
|
2430
2404
|
loginLocale: e.string
|
|
2431
2405
|
};
|
|
2432
|
-
const
|
|
2433
|
-
header:
|
|
2434
|
-
leftComponents:
|
|
2435
|
-
centerComponents:
|
|
2436
|
-
rightComponents:
|
|
2437
|
-
},
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
rightComponents: n = []
|
|
2442
|
-
}) => /* @__PURE__ */ m("div", { className: Q.header, style: i, children: [
|
|
2443
|
-
/* @__PURE__ */ r(
|
|
2444
|
-
"div",
|
|
2445
|
-
{
|
|
2446
|
-
className: Q.leftComponents,
|
|
2447
|
-
style: { height: i.height },
|
|
2448
|
-
children: d.map((t, o) => /* @__PURE__ */ r("div", { style: { height: i.height }, children: t }, o))
|
|
2449
|
-
}
|
|
2450
|
-
),
|
|
2451
|
-
/* @__PURE__ */ r(
|
|
2452
|
-
"div",
|
|
2453
|
-
{
|
|
2454
|
-
className: Q.centerComponents,
|
|
2455
|
-
style: { height: i.height },
|
|
2456
|
-
children: s.map((t, o) => /* @__PURE__ */ r("div", { style: { height: i.height }, children: t }, o))
|
|
2457
|
-
}
|
|
2458
|
-
),
|
|
2459
|
-
/* @__PURE__ */ r(
|
|
2460
|
-
"div",
|
|
2461
|
-
{
|
|
2462
|
-
className: Q.rightComponents,
|
|
2463
|
-
style: { height: i.height },
|
|
2464
|
-
children: n.map((t, o) => /* @__PURE__ */ r("div", { style: { height: i.height }, children: t }, o))
|
|
2465
|
-
}
|
|
2466
|
-
)
|
|
2406
|
+
const Bi = "_header_t7qdl_2", Di = "_leftComponents_t7qdl_12", Ai = "_centerComponents_t7qdl_13", Oi = "_rightComponents_t7qdl_14", Q = {
|
|
2407
|
+
header: Bi,
|
|
2408
|
+
leftComponents: Di,
|
|
2409
|
+
centerComponents: Ai,
|
|
2410
|
+
rightComponents: Oi
|
|
2411
|
+
}, Ri = ({ cssProps: i, leftComponents: d = [], centerComponents: o = [], rightComponents: n = [] }) => /* @__PURE__ */ m("div", { className: Q.header, style: i, children: [
|
|
2412
|
+
/* @__PURE__ */ r("div", { className: Q.leftComponents, style: { height: i.height }, children: d.map((t, s) => /* @__PURE__ */ r("div", { style: { height: i.height }, children: t }, s)) }),
|
|
2413
|
+
/* @__PURE__ */ r("div", { className: Q.centerComponents, style: { height: i.height }, children: o.map((t, s) => /* @__PURE__ */ r("div", { style: { height: i.height }, children: t }, s)) }),
|
|
2414
|
+
/* @__PURE__ */ r("div", { className: Q.rightComponents, style: { height: i.height }, children: n.map((t, s) => /* @__PURE__ */ r("div", { style: { height: i.height }, children: t }, s)) })
|
|
2467
2415
|
] });
|
|
2468
|
-
|
|
2416
|
+
Ri.propTypes = {
|
|
2469
2417
|
cssProps: e.shape({
|
|
2470
2418
|
backgroundColor: e.string.isRequired,
|
|
2471
2419
|
height: e.string.isRequired,
|
|
@@ -2476,51 +2424,51 @@ Vi.propTypes = {
|
|
|
2476
2424
|
centerComponents: e.arrayOf(e.node),
|
|
2477
2425
|
rightComponents: e.arrayOf(e.node)
|
|
2478
2426
|
};
|
|
2479
|
-
const
|
|
2480
|
-
sidebar:
|
|
2427
|
+
const Ii = "_sidebar_1jqo2_2", zi = "_open_1jqo2_16", Vi = "_content_1jqo2_20", ji = "_closeButton_1jqo2_26", ee = {
|
|
2428
|
+
sidebar: Ii,
|
|
2481
2429
|
open: zi,
|
|
2482
|
-
content:
|
|
2483
|
-
closeButton:
|
|
2484
|
-
},
|
|
2430
|
+
content: Vi,
|
|
2431
|
+
closeButton: ji
|
|
2432
|
+
}, Pi = ({ width: i = "300px", children: d, showRightBar: o, onCloseBar: n }) => {
|
|
2485
2433
|
const t = () => {
|
|
2486
2434
|
n();
|
|
2487
2435
|
};
|
|
2488
2436
|
return /* @__PURE__ */ r(
|
|
2489
2437
|
"div",
|
|
2490
2438
|
{
|
|
2491
|
-
className: `${ee.sidebar} ${
|
|
2492
|
-
style: { width:
|
|
2493
|
-
children:
|
|
2439
|
+
className: `${ee.sidebar} ${o ? ee.open : ""}`,
|
|
2440
|
+
style: { width: o ? i : 0 },
|
|
2441
|
+
children: o && /* @__PURE__ */ m("div", { className: ee.content, children: [
|
|
2494
2442
|
/* @__PURE__ */ r("button", { className: ee.closeButton, onClick: t, children: "×" }),
|
|
2495
2443
|
d
|
|
2496
2444
|
] })
|
|
2497
2445
|
}
|
|
2498
2446
|
);
|
|
2499
2447
|
};
|
|
2500
|
-
|
|
2448
|
+
Pi.propTypes = {
|
|
2501
2449
|
width: e.string,
|
|
2502
2450
|
children: e.node,
|
|
2503
2451
|
showRightBar: e.bool,
|
|
2504
2452
|
onCloseBar: e.func
|
|
2505
2453
|
};
|
|
2506
2454
|
export {
|
|
2507
|
-
|
|
2455
|
+
wt as AmbitSelector,
|
|
2508
2456
|
Rt as ButtonsList,
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2457
|
+
j as DropdownList,
|
|
2458
|
+
os as EditAmbit,
|
|
2459
|
+
an as FiltersAmbit,
|
|
2460
|
+
un as Graphic,
|
|
2461
|
+
Ri as HeaderSection,
|
|
2462
|
+
Ln as IndicatorsList,
|
|
2463
|
+
Rn as LangSelector,
|
|
2464
|
+
Wn as Legend,
|
|
2465
|
+
Jn as LogoApp,
|
|
2466
|
+
ti as MapboxMap,
|
|
2467
|
+
ai as MaplibreMap,
|
|
2468
|
+
Pi as RightSidebar,
|
|
2469
|
+
mi as SectionBar,
|
|
2470
|
+
xi as TimeSlider,
|
|
2523
2471
|
Le as Tooltip,
|
|
2524
|
-
|
|
2525
|
-
|
|
2472
|
+
Ni as TopNavMenu,
|
|
2473
|
+
Fi as UserMenuTrigger
|
|
2526
2474
|
};
|