@tmf_ciclica/ciclicastorybook 1.1.113 → 1.1.114

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,9 +1,9 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";@import"https://unpkg.com/maplibre-gl@^5.3.0/dist/maplibre-gl.css";@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap";._ambitSelector_mcunf_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;height:100%;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39{font-size:18px;font-weight:600;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53{font-size:18px;font-weight:600;flex:.5}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._buttonsContainer_mcunf_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._ambitListContainer_mcunf_76{flex:1;width:100%}._ambitSelector_mcunf_2 ._newAmbitButtonContainer_mcunf_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px}._ambitItem_1qa6u_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:10px;width:100%;padding-bottom:30px;padding-top:30px}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitName_1qa6u_16{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;flex:1}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitDate_1qa6u_35{flex:.5}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38 button:disabled{opacity:.5;cursor:default}._generalButton_phq4n_2{padding:5px 95px;border-radius:100px}._generalButton_phq4n_2:disabled{opacity:.6}._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_1l4m4_2{position:absolute;width:auto;bottom:50%;right:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000}._left_1l4m4_2:before{content:"";position:absolute;top:50%;left:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent transparent #ccc;z-index:-2}._left_1l4m4_2:after{content:"";position:absolute;top:50%;left:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent transparent #fff;z-index:-1}._top_1l4m4_40{position:absolute;width:auto;bottom:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._top_1l4m4_40:before{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:#ccc transparent transparent transparent;z-index:-2}._top_1l4m4_40:after{content:"";position:absolute;top:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:#fff transparent transparent transparent;z-index:-1}._bottom_1l4m4_79{position:absolute;width:auto;top:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._bottom_1l4m4_79:before{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent #ccc transparent;z-index:-2}._bottom_1l4m4_79:after{content:"";position:absolute;bottom:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent #fff transparent;z-index:-1}._right_1l4m4_118{position:absolute;width:auto;bottom:50%;left:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:20px;margin:0;white-space:nowrap;color:#000;z-index:10}._right_1l4m4_118:before{content:"";position:absolute;top:50%;right:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent #ccc transparent transparent;z-index:-2}._right_1l4m4_118:after{content:"";position:absolute;top:50%;right:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent #fff transparent transparent;z-index:-1}._AppliedFiltersContainer_cokx9_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start;flex-wrap:wrap}._AppliedFiltersContainer_cokx9_2 ._AppliedFilterContent_cokx9_11{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_1g9xx_2{width:100%;height:100%;padding:28.5px 0 0 24px}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7{display:flex;flex-wrap:nowrap;justify-content:start;gap:30px;flex-direction:column;align-items:start}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitTitle_1g9xx_15{font-size:18px;font-weight:600;padding:0 0 26px;border-bottom:1.5px solid #605B56;width:100%}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitDescription_1g9xx_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_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitDescription_1g9xx_22 ._FiltersAmbitDescriptionTitle_1g9xx_33{font-size:18px;font-weight:600}._FiltersAmbitContainer_1g9xx_2 ._warning_1g9xx_37{color:red}._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_1go6h_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:center;gap:10px}._indicatorContainer_1go6h_2 ._indicatorNameContainer_1go6h_11{gap:10px;display:grid;grid-template-columns:15px auto;align-items:center}._indicatorContainer_1go6h_2 ._dot_1go6h_17{border-radius:100px;width:16px;height:16px}._indicatorContainer_1go6h_2 ._indicatorName_1go6h_11{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_1go6h_28{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:20px 0 0}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37{margin:0;width:100%}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:10px;cursor:pointer}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52 ._customRadious_1go6h_62{width:16px;height:16px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52 ._optionText_1go6h_69{font-weight:400}._indicatorsSubCategory_1dzsi_2{overflow:hidden}._indicatorsSubCategory_1dzsi_2 h3{text-align:left}._indicatorsSubCategory_1dzsi_2 ._list_1dzsi_8{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:start;margin:20px 0;gap:20px}._indicatorsList_fklyu_2{width:100%;padding-left:30px}._indicatorsList_fklyu_2 ._title_fklyu_6{border-bottom:1px solid;padding-bottom:25px;margin-bottom:32px}._langSelector_o9enq_2{position:relative;width:fit-content;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;height:100%}._currentLang_o9enq_14{color:#404040;cursor:pointer;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:5px;text-transform:capitalize}._currentLang_o9enq_14 ._arrow_o9enq_26{width:10px}._currentLang_o9enq_14 ._prevImg_o9enq_29{width:20px}._langMenu_o9enq_33{position:absolute;width:80px;background:#000!important;border-radius:8px}._langMenu_o9enq_33 button{cursor:pointer;background:#000!important;color:#ccc;width:100%;padding:4px 8px;text-align:left}._langMenu_o9enq_33 button:first-child{border-radius:8px 8px 0 0}._langMenu_o9enq_33 button:last-child{border-radius:0 0 8px 8px}._langMenu_o9enq_33 button:hover{color:#cbcbcb;background-color:#fafafa!important}._legendContainer_qs4x9_3{width:402px;background-color:#fdfdfd;color:#605b56;border:solid 1.5px #605b56;border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:flexStart;padding:20px;position:relative;overflow-y:scroll}._legendContainer_qs4x9_3::-webkit-scrollbar{width:8px}._legendContainer_qs4x9_3::-webkit-scrollbar-track{background:transparent;margin:5px 0}._legendContainer_qs4x9_3::-webkit-scrollbar-thumb{background-color:#ebebeb;border-radius:20px}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31{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_qs4x9_3 ._closeButton_qs4x9_31:before,._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:after{content:"";position:absolute;width:16px;height:2px;background-color:#333}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:before{transform:rotate(45deg)}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:after{transform:rotate(-45deg)}._legendContainer_qs4x9_3 ._titleContainer_qs4x9_59{border-bottom:solid 1.5px #605b56}._legendContainer_qs4x9_3 ._titleContainer_qs4x9_59 h2{padding-bottom:16px}._legendContainer_qs4x9_3 ._infoContainer_qs4x9_65{padding-top:20px}._legendContainer_qs4x9_3 ._infoContainer_qs4x9_65 ul li{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:row;align-items:center}._legendContainer_qs4x9_3 ._titleLegendList_qs4x9_76{font-size:20px;padding-bottom:20px;margin-bottom:20px;border-bottom:solid 1.5px #605b56}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._gridContainer_qs4x9_82{display:grid;grid-template-columns:auto;column-gap:20px;row-gap:15px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._gridContainer_qs4x9_82 ._elementLegendContainer_qs4x9_88{display:grid;grid-template-columns:23px auto;align-items:center;gap:5px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._gridContainer_qs4x9_82 ._elementLegendContainer_qs4x9_88 ._colorDot_qs4x9_94{width:22px;height:22px;border-radius:50%;margin-right:10px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._absoluteValueContainer_qs4x9_100{position:relative}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._absoluteValueContainer_qs4x9_100 ._absoluteValueColor_qs4x9_103{height:130px;width:22px;border-radius:20px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._absoluteValueContainer_qs4x9_100 ._absoluteValueText_qs4x9_108{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_qs4x9_3 ._legendListContainer_qs4x9_82 ._noDataContainer_qs4x9_120{position:relative;margin-top:10px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._noDataContainer_qs4x9_120 ._noData_qs4x9_120{height:22px;width:22px;border-radius:20px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._noDataContainer_qs4x9_120 ._absoluteValueText_qs4x9_108{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_qs4x9_3 ._moreInfoContainer_qs4x9_141{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_mt8l5_2{padding:15px;color:#92898a}._FeaturePopUp_mt8l5_2 p{margin-bottom:10px}._FeaturePopUp_mt8l5_2 ._title_mt8l5_9{font-weight:600;margin-right:5px;color:#92898a}._sectionBar_1egwc_2{height:70px;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid black;transition:width .3s ease}._leftContent_1egwc_14{display:flex;align-items:center;gap:12px}._textContainer_1egwc_20{display:flex;flex-direction:row;align-items:center;gap:8px}._title_1egwc_27{font-size:16px;font-weight:600;color:#000}._subtitle_1egwc_33{font-size:16px;color:#000}._rightContent_1egwc_38{display:flex;align-items:center;gap:8px}._slider_a19yo_2{position:absolute;padding:5px 20px;right:150px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;top:188px;transition:all .5s ease-out}._slider_a19yo_2 ._playButton_a19yo_17,._slider_a19yo_2 ._playButton_a19yo_17._hover_a19yo_20{background-color:transparent!important}._slider_a19yo_2 ._playButton_a19yo_17 img{height:30px;width:30px}._sliderOpen_a19yo_28{right:490px}._sliderResults_a19yo_32{position:absolute;top:75px;right:430px;padding:5px 20px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;transition:all .5s ease-out}._sliderResults_a19yo_32 ._playButton_a19yo_17,._sliderResults_a19yo_32 ._playButton_a19yo_17._hover_a19yo_20{background-color:transparent!important}._sliderResults_a19yo_32 ._playButton_a19yo_17 img{height:30px;width:30px}._TopNavMenuContainer_12mp4_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:fit-content;gap:80px;height:100%}._TopNavMenuContainer_12mp4_2 ._topNavOptions_12mp4_13{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer;padding:0 10px;text-align:center;border-bottom:5px solid transparent;border-top:5px solid transparent;height:100%}._TopNavMenuContainer_12mp4_2 ._active_12mp4_27{border-bottom:5px solid white}._LogInButton_1vxj5_2{height:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center}._elementSelector_fd7az_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;height:100%;flex:1}._elementSelector_fd7az_2 ._header_fd7az_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementName_fd7az_39{font-size:18px;font-weight:600;flex:1}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementName_fd7az_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementDate_fd7az_53{font-size:18px;font-weight:600;flex:.5}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementDate_fd7az_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_fd7az_2 ._header_fd7az_13 ._buttonsContainer_fd7az_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._elementSelector_fd7az_2 ._elementListContainer_fd7az_76{flex:1;width:100%}._elementSelector_fd7az_2 ._newElementButtonContainer_fd7az_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px}._listElement_1s506_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:5px;width:100%;padding-bottom:30px;padding-top:30px;flex-wrap:wrap}._listElement_1s506_2 ._elementNameDate_1s506_17{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementNameContainer_1s506_27{flex:1;display:flex;flex-direction:column;align-items:flex-start;position:relative}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementName_1s506_17{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementDate_1s506_42{flex:.5}._listElement_1s506_2 ._elementButtons_1s506_45{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._listElement_1s506_2 ._elementButtons_1s506_45 button:disabled{opacity:.5;cursor:default}._listElement_1s506_2 ._elementButtons_1s506_45 img{display:inline}._break_1s506_63{flex-basis:100%;height:0}._moreInfoContainer_1s506_68 ._moreInfo_1s506_68{display:flex;gap:5px;cursor:pointer}._textInputContainer_1o3iy_2{width:100%}._textInputContainer_1o3iy_2 ._labelContainer_1o3iy_5{margin-bottom:25px}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8{background-color:#605b5620;padding:7px;border-radius:4px;position:relative}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 ._showPasswordButton_1o3iy_14{position:absolute;right:15px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 input{width:100%}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26{margin-top:10px;cursor:pointer}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26 button{text-decoration:underline}._errorMessage_1xiyb_2{min-height:25px}._formContainer_b071f_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start;flex-direction:column}._formContainer_b071f_2 ._formObjectContainer_b071f_11{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:center;flex:1;width:100%;gap:80px}._formContainer_b071f_2 ._buttonContainer_b071f_22{width:100%;margin-top:30px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;gap:20px}._inputsContainer_10t9s_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;gap:30px}._selectInputContainer_1rj0h_2{width:100%;position:relative}._selectInputContainer_1rj0h_2 ._labelContainer_1rj0h_6{margin-bottom:25px}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9{position:relative}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._selectInput_1rj0h_2{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:100%;padding:9px 40px 9px 9px;border:1.5px solid #605b56;border-radius:4px;cursor:pointer}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._selectInput_1rj0h_2 ._option_1rj0h_23{cursor:pointer}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._dropdownArrow_1rj0h_26{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:16px;height:16px;pointer-events:none}._radioButtonContainer_1e994_2{width:100%}._radioButtonContainer_1e994_2 ._wholeInputContainer_1e994_5{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;width:100%;flex-wrap:wrap;position:relative;gap:15px}@media (width < 768px){._radioButtonContainer_1e994_2 ._wholeInputContainer_1e994_5{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start}}._radioButtonContainer_1e994_2 ._questionContainer_1e994_27{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;align-self:flex-start;position:relative}@media (width < 768px){._radioButtonContainer_1e994_2 ._questionContainer_1e994_27{min-width:auto;max-width:215px}}._radioButtonContainer_1e994_2 ._errorContainer_1e994_44{position:absolute;top:-25px;left:0}._radioButtonContainer_1e994_2 ._iconPrivacy_1e994_49{height:100%;padding-right:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._radioButtonContainer_1e994_2 ._radioQuestion_1e994_59{width:100%;flex:1}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;gap:10px;position:relative;height:100%}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63 label{text-align:left}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63 label input{margin-right:5px}@media (width < 768px){._radioButtonContainer_1e994_2 ._inputContainer_1e994_63{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;flex:1}}label,._radioInput_1e994_93{cursor:pointer}._rankingSliderContainer_1yj0p_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;width:100%}._rankingSliderContainer_1yj0p_2 ._labelContainer_1yj0p_11{margin-bottom:25px;color:#605b56}._rankingSliderContainer_1yj0p_2 ._inputContainer_1yj0p_15{width:100%;position:relative}._rankingSliderContainer_1yj0p_2 ._inputContainer_1yj0p_15 ._slider_1yj0p_19{height:6px;background:#efefef;border-radius:3px;position:relative}._rankingSliderContainer_1yj0p_2 ._inputContainer_1yj0p_15 ._thumb_1yj0p_25{height:10px;width:10px;border-radius:50%;cursor:grab;top:-50%;transform:translateY(10%);outline:none}._rankingSliderContainer_1yj0p_2 ._inputContainer_1yj0p_15 ._trackLeft_1yj0p_35,._rankingSliderContainer_1yj0p_2 ._inputContainer_1yj0p_15 ._trackRight_1yj0p_40{height:6px;border-radius:9999px}._rankingSliderContainer_1yj0p_2 ._inputContainer_1yj0p_15 ._labels_1yj0p_44{display:flex;justify-content:space-between;margin-top:8px;font-size:14px;color:#444}._rankingSliderContainer_1yj0p_2 ._inputContainer_1yj0p_15 ._labels_1yj0p_44 span{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:10px}._rankingSliderContainer_1yj0p_2 ._inputContainer_1yj0p_15 ._labels_1yj0p_44 ._labelsText_1yj0p_60{color:#605b56}._overlay_mnd4j_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9999}._modal_mnd4j_15{background:#fff;border-radius:12px;position:relative;padding:24px 32px;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 20px #0003;overflow:hidden;min-width:300px}._closeButton_mnd4j_29{position:absolute;top:3px;right:8px;background:transparent;border:none;font-size:20px;cursor:pointer}._icon_mnd4j_39{width:60px;height:60px;margin-bottom:16px}._message_mnd4j_45{font-size:18px;font-weight:700;margin-bottom:8px}._submessage_mnd4j_51{font-size:14px;color:#666;margin-bottom:20px}._buttonsContainer_mnd4j_57{display:flex;gap:12px;justify-content:center;flex-wrap:nowrap}._buttonWrapper_mnd4j_64{display:inline-flex}._stepsContainer_1cyua_3{display:flex;flex-direction:column;position:relative}._stepWrapper_1cyua_9{display:flex;align-items:center;position:relative;margin-bottom:1.5rem}._stepWrapper_1cyua_9:last-child{margin-bottom:0}._circleContainer_1cyua_19{position:relative}._circle_1cyua_19{width:28px;height:28px;border-radius:50%;border:2px solid #ccc;background-color:#fff;color:#aaa;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;cursor:pointer;z-index:1}._active_1cyua_39{color:#fff;border:none}._completed_1cyua_44{background-color:#ccc;color:#fff;border:none}._label_1cyua_50{margin-left:10px;font-size:14px;color:#aaa}._labelActive_1cyua_56{font-weight:700;color:#333}._connector_1cyua_61{position:absolute;left:50%;transform:translate(-50%);top:32px;width:1px;height:calc(100% - 10px);background-color:#ccc;z-index:0}._header_13kbt_2{width:100%;display:flex;align-items:center;position:absolute;top:0;left:0;padding:0 16px;background-color:#fff;border-bottom:1px solid black}._header_13kbt_2 ._leftComponents_13kbt_13,._header_13kbt_2 ._centerComponents_13kbt_14,._header_13kbt_2 ._rightComponents_13kbt_15{position:absolute;top:0;bottom:0;display:flex;align-items:center}._header_13kbt_2 ._leftComponents_13kbt_13{left:16px}._header_13kbt_2 ._centerComponents_13kbt_14{left:50%;transform:translate(-50%)}._header_13kbt_2 ._rightComponents_13kbt_15{right:16px}._header_13kbt_2 ._componentsContainer_13kbt_32{height:100%;width:100%}._sidebar_1fmjn_2{position:absolute;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_1fmjn_16{border-left:1px solid #ddd}._content_1fmjn_20{position:relative;padding:20px;height:100%}._closeButton_1fmjn_26{position:absolute;top:28px;right:28px;font-size:24px;background:none;border:none;cursor:pointer;color:#333;transition:color .2s ease}._closeButton_1fmjn_26:hover{color:#000}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
2
  import { jsxs as p, jsx as s, Fragment as Fe } from "react/jsx-runtime";
3
- import * as ce from "react";
4
- import $, { useState as D, useEffect as M, useMemo as he, useLayoutEffect as kt, useRef as ne } from "react";
3
+ import * as le from "react";
4
+ import $, { useState as L, useEffect as D, useMemo as me, useLayoutEffect as kt, useRef as te } from "react";
5
5
  import e from "prop-types";
6
- import { useTranslation as k, Trans as qe } from "react-i18next";
6
+ import { useTranslation as B, Trans as qe } from "react-i18next";
7
7
  import { motion as Ee } from "framer-motion";
8
8
  import { create as Bt } from "zustand";
9
9
  import * as Ze from "d3";
@@ -27,7 +27,7 @@ const Ut = "_ambitSelector_mcunf_2", Gt = "_header_mcunf_13", Wt = "_nameDateCon
27
27
  buttonsContainer: Xt,
28
28
  ambitListContainer: Jt,
29
29
  newAmbitButtonContainer: e2
30
- }, t2 = "_ambitItem_1qa6u_2", n2 = "_ambitNameDate_1qa6u_16", i2 = "_ambitName_1qa6u_16", o2 = "_ambitDate_1qa6u_35", s2 = "_ambitButtons_1qa6u_38", de = {
30
+ }, t2 = "_ambitItem_1qa6u_2", n2 = "_ambitNameDate_1qa6u_16", i2 = "_ambitName_1qa6u_16", o2 = "_ambitDate_1qa6u_35", s2 = "_ambitButtons_1qa6u_38", ce = {
31
31
  ambitItem: t2,
32
32
  ambitNameDate: n2,
33
33
  ambitName: i2,
@@ -44,15 +44,15 @@ const Ut = "_ambitSelector_mcunf_2", Gt = "_header_mcunf_13", Wt = "_nameDateCon
44
44
  fontColor: l,
45
45
  moreInfo: c
46
46
  }) => {
47
- const { nom: u, created_at: m, id: g, isBeingProcessed: _ } = n;
47
+ const { nom: u, created_at: h, id: g, isBeingProcessed: _ } = n;
48
48
  return /* @__PURE__ */ p(
49
49
  "div",
50
50
  {
51
- className: de.ambitItem,
51
+ className: ce.ambitItem,
52
52
  style: { borderBottom: `1px solid ${l}` },
53
53
  children: [
54
- /* @__PURE__ */ p("div", { className: de.ambitNameDate, onClick: () => t(g), children: [
55
- /* @__PURE__ */ p("div", { className: de.ambitName, children: [
54
+ /* @__PURE__ */ p("div", { className: ce.ambitNameDate, onClick: () => t(g), children: [
55
+ /* @__PURE__ */ p("div", { className: ce.ambitName, children: [
56
56
  /* @__PURE__ */ s(
57
57
  "img",
58
58
  {
@@ -62,9 +62,9 @@ const Ut = "_ambitSelector_mcunf_2", Gt = "_header_mcunf_13", Wt = "_nameDateCon
62
62
  ),
63
63
  /* @__PURE__ */ s("span", { style: { color: r ? a : l }, children: u })
64
64
  ] }),
65
- /* @__PURE__ */ s("div", { className: de.ambitDate, children: m ? new Date(m).toLocaleDateString() : "" })
65
+ /* @__PURE__ */ s("div", { className: ce.ambitDate, children: h ? new Date(h).toLocaleDateString() : "" })
66
66
  ] }),
67
- /* @__PURE__ */ p("div", { className: de.ambitButtons, children: [
67
+ /* @__PURE__ */ p("div", { className: ce.ambitButtons, children: [
68
68
  _ && /* @__PURE__ */ s("img", { src: c2 }),
69
69
  /* @__PURE__ */ s("button", { onClick: () => o(g), disabled: n.is_default, children: /* @__PURE__ */ s("img", { src: l2 }) }),
70
70
  /* @__PURE__ */ s("button", { onClick: () => d(g), children: /* @__PURE__ */ s("img", { src: a2 }) }),
@@ -127,19 +127,19 @@ const Ke = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
127
127
  buttonContainerStyles: l = {},
128
128
  containerStyles: c = {},
129
129
  onCLickNewAmbit: u = () => console.log("New ambit clicked"),
130
- onClickCopy: m = (h) => console.log(`Copy ambit: ${h}`),
131
- onCLickDelete: g = (h) => console.log(`Delete ambit: ${h}`),
132
- onClickFilters: _ = (h) => console.log(`Filters clicked: ${h}`),
133
- onClickAmbit: v = (h) => console.log(`OnCLickAmbit: ${h}`)
130
+ onClickCopy: h = (m) => console.log(`Copy ambit: ${m}`),
131
+ onCLickDelete: g = (m) => console.log(`Delete ambit: ${m}`),
132
+ onClickFilters: _ = (m) => console.log(`Filters clicked: ${m}`),
133
+ onClickAmbit: v = (m) => console.log(`OnCLickAmbit: ${m}`)
134
134
  }) => {
135
- const { t: h } = k(), [f, C] = D(n);
136
- M(() => {
135
+ const { t: m } = B(), [f, C] = L(n);
136
+ D(() => {
137
137
  n && C(n);
138
138
  }, [n]);
139
139
  const b = (y) => {
140
140
  if (f && f.length > 0) {
141
- let w = [...f];
142
- w.sort((x, N) => x[y].localeCompare(N[y])), C(w);
141
+ let N = [...f];
142
+ N.sort((x, w) => x[y].localeCompare(w[y])), C(N);
143
143
  }
144
144
  };
145
145
  return /* @__PURE__ */ p(
@@ -156,11 +156,11 @@ const Ke = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
156
156
  children: [
157
157
  /* @__PURE__ */ p("div", { className: U.nameDateContainer, children: [
158
158
  /* @__PURE__ */ s("div", { className: U.ambitName, children: /* @__PURE__ */ p("button", { onClick: () => b("name"), children: [
159
- /* @__PURE__ */ s("span", { children: h(t) }),
159
+ /* @__PURE__ */ s("span", { children: m(t) }),
160
160
  /* @__PURE__ */ s("img", { src: Ke })
161
161
  ] }) }),
162
162
  /* @__PURE__ */ s("div", { className: U.ambitDate, children: /* @__PURE__ */ p("button", { onClick: () => b("date"), children: [
163
- /* @__PURE__ */ s("span", { children: h(r) }),
163
+ /* @__PURE__ */ s("span", { children: m(r) }),
164
164
  /* @__PURE__ */ s("img", { src: Ke })
165
165
  ] }) })
166
166
  ] }),
@@ -175,7 +175,7 @@ const Ke = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
175
175
  ambit: y,
176
176
  fontColor: i,
177
177
  activeColor: o,
178
- onClickCopy: m,
178
+ onClickCopy: h,
179
179
  onClickDelete: g,
180
180
  onClickFilters: _,
181
181
  onClickAmbit: v
@@ -188,7 +188,7 @@ const Ke = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
188
188
  style: { ...l },
189
189
  onClick: u,
190
190
  borderColor: "grey",
191
- children: h(a)
191
+ children: m(a)
192
192
  }
193
193
  ) })
194
194
  ]
@@ -217,7 +217,7 @@ h2.propTypes = {
217
217
  containerStyles: e.object,
218
218
  onCLickNewAmbit: e.func
219
219
  };
220
- const g2 = "_buttonsContainer_1audx_2", C2 = "_vertical_1audx_6", f2 = "_horizontal_1audx_9", b2 = "_button_1audx_2", _2 = "_active_1audx_25", y2 = "_buttonName_1audx_28", Y = {
220
+ const g2 = "_buttonsContainer_1audx_2", C2 = "_vertical_1audx_6", f2 = "_horizontal_1audx_9", b2 = "_button_1audx_2", _2 = "_active_1audx_25", y2 = "_buttonName_1audx_28", W = {
221
221
  buttonsContainer: g2,
222
222
  vertical: C2,
223
223
  horizontal: f2,
@@ -229,11 +229,11 @@ const g2 = "_buttonsContainer_1audx_2", C2 = "_vertical_1audx_6", f2 = "_horizon
229
229
  top: x2,
230
230
  bottom: w2,
231
231
  right: N2
232
- }, te = ({ text: n, position: d, styleCustom: i = null }) => {
233
- const { t: o } = k();
232
+ }, ee = ({ text: n, position: d, styleCustom: i = null }) => {
233
+ const { t: o } = B();
234
234
  return /* @__PURE__ */ s("div", { className: `tooltip ${k2[d]}`, style: i, children: o(n) });
235
235
  };
236
- te.propTypes = {
236
+ ee.propTypes = {
237
237
  text: e.string.isRequired,
238
238
  position: e.oneOf(["top", "bottom", "left", "right"]).isRequired,
239
239
  styleCustom: e.object
@@ -246,35 +246,35 @@ const B2 = ({
246
246
  useTooltip: t = !1,
247
247
  tooltipPosition: r = "top"
248
248
  }) => {
249
- const { t: a } = k();
249
+ const { t: a } = B();
250
250
  return /* @__PURE__ */ s(
251
251
  "div",
252
252
  {
253
- className: `${Y.buttonsContainer} ${d === "vertical" && Y.vertical}
254
- ${d === "horizontal" && Y.horizontal}`,
253
+ className: `${W.buttonsContainer} ${d === "vertical" && W.vertical}
254
+ ${d === "horizontal" && W.horizontal}`,
255
255
  children: n.map((l, c) => {
256
256
  const {
257
257
  icon: u,
258
- activeIcon: m,
258
+ activeIcon: h,
259
259
  isActive: g,
260
260
  name: _,
261
261
  onClick: v
262
- } = l, h = /* @__PURE__ */ p(Fe, { children: [
263
- i && o === "left" && /* @__PURE__ */ s("span", { className: Y.buttonName, children: a(_) }),
264
- /* @__PURE__ */ s("img", { src: g ? m : u, alt: a(_) }),
265
- i && o === "right" && /* @__PURE__ */ s("span", { className: Y.buttonName, children: a(_) })
262
+ } = l, m = /* @__PURE__ */ p(Fe, { children: [
263
+ i && o === "left" && /* @__PURE__ */ s("span", { className: W.buttonName, children: a(_) }),
264
+ /* @__PURE__ */ s("img", { src: g ? h : u, alt: a(_) }),
265
+ i && o === "right" && /* @__PURE__ */ s("span", { className: W.buttonName, children: a(_) })
266
266
  ] });
267
267
  return /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
268
268
  /* @__PURE__ */ s(
269
269
  "button",
270
270
  {
271
271
  onClick: v,
272
- className: `${Y.button}
273
- ${g && Y.active}`,
274
- children: h
272
+ className: `${W.button}
273
+ ${g && W.active}`,
274
+ children: m
275
275
  }
276
276
  ),
277
- t && /* @__PURE__ */ s(te, { text: _, position: r })
277
+ t && /* @__PURE__ */ s(ee, { text: _, position: r })
278
278
  ] }, c);
279
279
  })
280
280
  }
@@ -300,7 +300,7 @@ B2.propTypes = {
300
300
  const S2 = "_indicatorsCategory_1cu33_2", $2 = "_title_1cu33_5", Ne = {
301
301
  indicatorsCategory: S2,
302
302
  title: $2
303
- }, ie = ({
303
+ }, ne = ({
304
304
  isOpen: n,
305
305
  onClick: d,
306
306
  children: i,
@@ -314,7 +314,7 @@ const S2 = "_indicatorsCategory_1cu33_2", $2 = "_title_1cu33_5", Ne = {
314
314
  showBottomBar: c = !0,
315
315
  titleMarginChildren: u = 25
316
316
  }) => {
317
- const { t: m } = k();
317
+ const { t: h } = B();
318
318
  return /* @__PURE__ */ p(
319
319
  Ee.div,
320
320
  {
@@ -339,7 +339,7 @@ const S2 = "_indicatorsCategory_1cu33_2", $2 = "_title_1cu33_5", Ne = {
339
339
  onClick: d,
340
340
  children: [
341
341
  /* @__PURE__ */ s("span", { style: { color: n ? t : o }, children: n ? "-" : "+" }),
342
- /* @__PURE__ */ s("span", { style: { marginLeft: 12, color: n ? t : o }, children: m(r) })
342
+ /* @__PURE__ */ s("span", { style: { marginLeft: 12, color: n ? t : o }, children: h(r) })
343
343
  ]
344
344
  }
345
345
  ),
@@ -348,7 +348,7 @@ const S2 = "_indicatorsCategory_1cu33_2", $2 = "_title_1cu33_5", Ne = {
348
348
  }
349
349
  );
350
350
  };
351
- ie.propTypes = {
351
+ ne.propTypes = {
352
352
  isOpen: e.bool,
353
353
  onClick: e.func,
354
354
  children: e.node,
@@ -370,24 +370,24 @@ const Ii = () => /* @__PURE__ */ s("div", { children: "EditAmbit" }), D2 = "data
370
370
  fontColor: "#605B56",
371
371
  inputsColor: "#605B56"
372
372
  })), st = ({ title: n, onClick: d, isOpen: i = !0, textColor: o = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
373
- const { t: a } = k(), { tematicalFiltersSelected: l } = V((u) => u), c = (u) => {
374
- V.setState((m) => ({
375
- tematicalFiltersSelected: m.tematicalFiltersSelected.filter(
373
+ const { t: a } = B(), { tematicalFiltersSelected: l } = V((u) => u), c = (u) => {
374
+ V.setState((h) => ({
375
+ tematicalFiltersSelected: h.tematicalFiltersSelected.filter(
376
376
  (g) => g.code !== u
377
377
  )
378
378
  }));
379
379
  };
380
380
  return /* @__PURE__ */ s(
381
- ie,
381
+ ne,
382
382
  {
383
383
  isOpen: i,
384
384
  onClick: d,
385
385
  title: n ? a(n) : "Applied Filters",
386
386
  activeColor: r,
387
- children: /* @__PURE__ */ s("div", { className: He.AppliedFiltersContainer, children: l == null ? void 0 : l.map((u, m) => /* @__PURE__ */ p("div", { className: He.AppliedFilterContent, style: { color: o, background: t }, children: [
387
+ children: /* @__PURE__ */ s("div", { className: He.AppliedFiltersContainer, children: l == null ? void 0 : l.map((u, h) => /* @__PURE__ */ p("div", { className: He.AppliedFilterContent, style: { color: o, background: t }, children: [
388
388
  a(u.name),
389
389
  /* @__PURE__ */ s("img", { src: D2, alt: "CloseIcon", onClick: () => c(u.code), style: { cursor: "pointer" } })
390
- ] }, m)) })
390
+ ] }, h)) })
391
391
  }
392
392
  );
393
393
  };
@@ -406,9 +406,9 @@ st.propTypes = {
406
406
  activeColor: e.string
407
407
  };
408
408
  const rt = ({ title: n, onClick: d, isOpen: i = !0, textColor: o = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
409
- const { t: a } = k(), { tematicalFiltersSelected: l } = V((c) => c);
409
+ const { t: a } = B(), { tematicalFiltersSelected: l } = V((c) => c);
410
410
  return /* @__PURE__ */ s(
411
- ie,
411
+ ne,
412
412
  {
413
413
  isOpen: i,
414
414
  onClick: d,
@@ -435,7 +435,7 @@ const T2 = "_checkboxContainer_zld97_2", F2 = {
435
435
  indicator: o,
436
436
  value: t
437
437
  }) => {
438
- const { t: r } = k(), { title: a } = o || {}, { fontColor: l, inputsColor: c } = V((u) => u);
438
+ const { t: r } = B(), { title: a } = o || {}, { fontColor: l, inputsColor: c } = V((u) => u);
439
439
  return /* @__PURE__ */ p(
440
440
  "div",
441
441
  {
@@ -495,7 +495,7 @@ function fe(n) {
495
495
  typeof document < "u" && document.addEventListener(d, n[d], !1);
496
496
  });
497
497
  }
498
- function Q(n, d) {
498
+ function Y(n, d) {
499
499
  return Ae(function(i, o) {
500
500
  let t = i;
501
501
  return t <= o.min && (t = o.min), t >= o.max && (t = o.max), t;
@@ -519,8 +519,8 @@ let Ie = function(n) {
519
519
  t.setState({ index: -1 }, t.onEnd(t.getKeyDownEventMap()));
520
520
  }, t.onMouseMove = (l) => {
521
521
  t.setState({ pending: !0 });
522
- const c = t.getMousePosition(l), u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
523
- t.move(m);
522
+ const c = t.getMousePosition(l), u = t.getDiffPosition(c[0]), h = t.getValueFromPosition(u);
523
+ t.move(h);
524
524
  }, t.onTouchMove = (l) => {
525
525
  if (l.touches.length > 1) return;
526
526
  t.setState({ pending: !0 });
@@ -530,8 +530,8 @@ let Ie = function(n) {
530
530
  t.isScrolling = Math.abs(_) > Math.abs(g);
531
531
  }
532
532
  if (t.isScrolling) return void t.setState({ index: -1 });
533
- const u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
534
- t.move(m);
533
+ const u = t.getDiffPosition(c[0]), h = t.getValueFromPosition(u);
534
+ t.move(h);
535
535
  }, t.onKeyDown = (l) => {
536
536
  if (!(l.ctrlKey || l.shiftKey || l.altKey || l.metaKey)) switch (t.setState({ pending: !0 }), l.key) {
537
537
  case "ArrowLeft":
@@ -570,7 +570,7 @@ let Ie = function(n) {
570
570
  }
571
571
  }, t.onSliderClick = (l) => {
572
572
  if (!t.props.disabled && t.props.onSliderClick && !t.hasMoved) {
573
- const c = t.getMousePosition(l), u = Q(t.calcValue(t.calcOffsetFromPosition(c[0])), t.props);
573
+ const c = t.getMousePosition(l), u = Y(t.calcValue(t.calcOffsetFromPosition(c[0])), t.props);
574
574
  t.props.onSliderClick(u);
575
575
  }
576
576
  }, t.createOnKeyDown = (l) => (c) => {
@@ -584,8 +584,8 @@ let Ie = function(n) {
584
584
  if (t.props.disabled || c.touches.length > 1) return;
585
585
  t.setState({ pending: !0 });
586
586
  const u = t.getTouchPosition(c);
587
- t.startPosition = u, t.isScrolling = void 0, t.start(l, u[0]), fe(t.getTouchEventMap()), function(m) {
588
- m.stopPropagation && m.stopPropagation();
587
+ t.startPosition = u, t.isScrolling = void 0, t.start(l, u[0]), fe(t.getTouchEventMap()), function(h) {
588
+ h.stopPropagation && h.stopPropagation();
589
589
  }(c);
590
590
  }, t.handleResize = () => {
591
591
  const l = window.setTimeout(() => {
@@ -593,18 +593,18 @@ let Ie = function(n) {
593
593
  }, 0);
594
594
  t.pendingResizeTimeouts.push(l);
595
595
  }, t.renderThumb = (l, c) => {
596
- const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), m = { ref: (_) => {
596
+ const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), h = { ref: (_) => {
597
597
  t["thumb" + c] = _;
598
598
  }, key: t.props.thumbClassName + "-" + c, className: u, style: l, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, g = { index: c, value: Ce(t.state.value), valueNow: t.state.value[c] };
599
- return t.props.ariaValuetext && (m["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(g)), t.props.renderThumb(m, g);
599
+ return t.props.ariaValuetext && (h["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(g)), t.props.renderThumb(h, g);
600
600
  }, t.renderTrack = (l, c, u) => {
601
- const m = { key: t.props.trackClassName + "-" + l, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + l, style: t.buildTrackStyle(c, t.state.upperBound - u) }, g = { index: l, value: Ce(t.state.value) };
602
- return t.props.renderTrack(m, g);
601
+ const h = { key: t.props.trackClassName + "-" + l, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + l, style: t.buildTrackStyle(c, t.state.upperBound - u) }, g = { index: l, value: Ce(t.state.value) };
602
+ return t.props.renderTrack(h, g);
603
603
  };
604
604
  let r = Be(o.value);
605
605
  r.length || (r = Be(o.defaultValue)), t.pendingResizeTimeouts = [];
606
606
  const a = [];
607
- for (let l = 0; l < r.length; l += 1) r[l] = Q(r[l], o), a.push(l);
607
+ for (let l = 0; l < r.length; l += 1) r[l] = Y(r[l], o), a.push(l);
608
608
  return t.resizeObserver = null, t.resizeElementRef = $.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: r, zIndices: a }, t;
609
609
  }
610
610
  V2(d, n);
@@ -613,7 +613,7 @@ let Ie = function(n) {
613
613
  typeof window < "u" && (this.resizeObserver = new ResizeObserver(this.handleResize), this.resizeObserver.observe(this.resizeElementRef.current), this.resize());
614
614
  }, d.getDerivedStateFromProps = function(o, t) {
615
615
  const r = Be(o.value);
616
- return r.length ? t.pending ? null : { value: r.map((a) => Q(a, o)) } : null;
616
+ return r.length ? t.pending ? null : { value: r.map((a) => Y(a, o)) } : null;
617
617
  }, i.componentDidUpdate = function() {
618
618
  this.state.upperBound === 0 && this.resize();
619
619
  }, i.componentWillUnmount = function() {
@@ -630,8 +630,8 @@ let Ie = function(n) {
630
630
  let t = Number.MAX_VALUE, r = -1;
631
631
  const { value: a } = this.state, l = a.length;
632
632
  for (let c = 0; c < l; c += 1) {
633
- const u = this.calcOffset(a[c]), m = Math.abs(o - u);
634
- m < t && (t = m, r = c);
633
+ const u = this.calcOffset(a[c]), h = Math.abs(o - u);
634
+ h < t && (t = h, r = c);
635
635
  }
636
636
  return r;
637
637
  }, i.getMousePosition = function(o) {
@@ -647,15 +647,15 @@ let Ie = function(n) {
647
647
  return { touchmove: this.onTouchMove, touchend: this.onTouchEnd };
648
648
  }, i.getValueFromPosition = function(o) {
649
649
  const t = o / (this.state.sliderLength - this.state.thumbSize) * (this.props.max - this.props.min);
650
- return Q(this.state.startValue + t, this.props);
650
+ return Y(this.state.startValue + t, this.props);
651
651
  }, i.getDiffPosition = function(o) {
652
652
  let t = o - this.state.startPosition;
653
653
  return this.props.invert && (t *= -1), t;
654
654
  }, i.resize = function() {
655
655
  const { slider: o, thumb0: t } = this;
656
656
  if (!o || !t) return;
657
- const r = this.sizeKey(), a = o.getBoundingClientRect(), l = o[r], c = a[this.posMaxKey()], u = a[this.posMinKey()], m = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], g = l - m, _ = Math.abs(c - u);
658
- this.state.upperBound === g && this.state.sliderLength === _ && this.state.thumbSize === m || this.setState({ upperBound: g, sliderLength: _, thumbSize: m });
657
+ const r = this.sizeKey(), a = o.getBoundingClientRect(), l = o[r], c = a[this.posMaxKey()], u = a[this.posMinKey()], h = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], g = l - h, _ = Math.abs(c - u);
658
+ this.state.upperBound === g && this.state.sliderLength === _ && this.state.thumbSize === h || this.setState({ upperBound: g, sliderLength: _, thumbSize: h });
659
659
  }, i.calcOffset = function(o) {
660
660
  const t = this.props.max - this.props.min;
661
661
  return t === 0 ? 0 : (o - this.props.min) / t * this.state.upperBound;
@@ -666,7 +666,7 @@ let Ie = function(n) {
666
666
  let c = o - (window["page" + this.axisKey() + "Offset"] + (this.props.invert ? a : l));
667
667
  return this.props.invert && (c = this.state.sliderLength - c), c -= this.state.thumbSize / 2, c;
668
668
  }, i.forceValueFromPosition = function(o, t) {
669
- const r = this.calcOffsetFromPosition(o), a = this.getClosestIndex(r), l = Q(this.calcValue(r), this.props), c = this.state.value.slice();
669
+ const r = this.calcOffsetFromPosition(o), a = this.getClosestIndex(r), l = Y(this.calcValue(r), this.props), c = this.state.value.slice();
670
670
  c[a] = l;
671
671
  for (let u = 0; u < c.length - 1; u += 1) if (c[u + 1] - c[u] < this.props.minDistance) return;
672
672
  this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value: c }, () => {
@@ -684,17 +684,17 @@ let Ie = function(n) {
684
684
  a.splice(a.indexOf(o), 1), a.push(o), this.setState((l) => ({ startValue: l.value[o], startPosition: t !== void 0 ? t : l.startPosition, index: o, zIndices: a }));
685
685
  }, i.moveUpByStep = function(o) {
686
686
  o === void 0 && (o = this.props.step);
687
- const t = this.state.value[this.state.index], r = Q(this.props.invert && this.props.orientation === "horizontal" ? t - o : t + o, this.props);
687
+ const t = this.state.value[this.state.index], r = Y(this.props.invert && this.props.orientation === "horizontal" ? t - o : t + o, this.props);
688
688
  this.move(Math.min(r, this.props.max));
689
689
  }, i.moveDownByStep = function(o) {
690
690
  o === void 0 && (o = this.props.step);
691
- const t = this.state.value[this.state.index], r = Q(this.props.invert && this.props.orientation === "horizontal" ? t + o : t - o, this.props);
691
+ const t = this.state.value[this.state.index], r = Y(this.props.invert && this.props.orientation === "horizontal" ? t + o : t - o, this.props);
692
692
  this.move(Math.max(r, this.props.min));
693
693
  }, i.move = function(o) {
694
694
  const t = this.state.value.slice(), { index: r } = this.state, { length: a } = t, l = t[r];
695
695
  if (o === l) return;
696
696
  this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
697
- const { pearling: c, max: u, min: m, minDistance: g } = this.props;
697
+ const { pearling: c, max: u, min: h, minDistance: g } = this.props;
698
698
  if (!c) {
699
699
  if (r > 0) {
700
700
  const _ = t[r - 1];
@@ -705,17 +705,17 @@ let Ie = function(n) {
705
705
  o > _ - g && (o = _ - g);
706
706
  }
707
707
  }
708
- t[r] = o, c && a > 1 && (o > l ? (this.pushSucceeding(t, g, r), function(_, v, h, f) {
708
+ t[r] = o, c && a > 1 && (o > l ? (this.pushSucceeding(t, g, r), function(_, v, m, f) {
709
709
  for (let C = 0; C < _; C += 1) {
710
- const b = f - C * h;
710
+ const b = f - C * m;
711
711
  v[_ - 1 - C] > b && (v[_ - 1 - C] = b);
712
712
  }
713
- }(a, t, g, u)) : o < l && (this.pushPreceding(t, g, r), function(_, v, h, f) {
713
+ }(a, t, g, u)) : o < l && (this.pushPreceding(t, g, r), function(_, v, m, f) {
714
714
  for (let C = 0; C < _; C += 1) {
715
- const b = f + C * h;
715
+ const b = f + C * m;
716
716
  v[C] < b && (v[C] = b);
717
717
  }
718
- }(a, t, g, m))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
718
+ }(a, t, g, h))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
719
719
  }, i.pushSucceeding = function(o, t, r) {
720
720
  let a, l;
721
721
  for (a = r, l = o[a] + t; o[a + 1] !== null && l > o[a + 1]; a += 1, l = o[a] + t) o[a + 1] = Ae(l, this.props);
@@ -771,7 +771,7 @@ let Ie = function(n) {
771
771
  }($.Component);
772
772
  Ie.displayName = "ReactSlider", Ie.defaultProps = { min: 0, max: 100, step: 1, pageFn: (n) => 10 * n, 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: (n) => $.createElement("div", n), renderTrack: (n) => $.createElement("div", n), renderMark: (n) => $.createElement("span", n) };
773
773
  var lt = Ie;
774
- const A2 = "_container_15vgv_2", I2 = "_unitLabel_15vgv_9", O2 = "_slider_15vgv_12", R2 = "_thumb_15vgv_18", q2 = "_track_15vgv_27", E2 = "_labels_15vgv_33", oe = {
774
+ const A2 = "_container_15vgv_2", I2 = "_unitLabel_15vgv_9", O2 = "_slider_15vgv_12", R2 = "_thumb_15vgv_18", q2 = "_track_15vgv_27", E2 = "_labels_15vgv_33", ie = {
775
775
  container: A2,
776
776
  unitLabel: I2,
777
777
  slider: O2,
@@ -788,24 +788,24 @@ const A2 = "_container_15vgv_2", I2 = "_unitLabel_15vgv_9", O2 = "_slider_15vgv_
788
788
  fontColor: a = "#605B56",
789
789
  defaultValue: l
790
790
  }) => {
791
- const { t: c } = k(), [u, m] = D([n, d]), g = (_) => {
792
- m(_), o == null || o({ min: _[0], max: _[1] });
791
+ const { t: c } = B(), [u, h] = L([n, d]), g = (_) => {
792
+ h(_), o == null || o({ min: _[0], max: _[1] });
793
793
  };
794
- return M(() => {
795
- l || m([n, d]);
794
+ return D(() => {
795
+ l || h([n, d]);
796
796
  }, [l]), /* @__PURE__ */ p(
797
797
  "div",
798
798
  {
799
- className: oe.container,
799
+ className: ie.container,
800
800
  style: { width: `${t}px`, color: `${a}` },
801
801
  children: [
802
- /* @__PURE__ */ s("div", { className: oe.unitLabel, children: /* @__PURE__ */ s("span", { children: c(r) }) }),
802
+ /* @__PURE__ */ s("div", { className: ie.unitLabel, children: /* @__PURE__ */ s("span", { children: c(r) }) }),
803
803
  /* @__PURE__ */ s(
804
804
  lt,
805
805
  {
806
- className: oe.slider,
807
- thumbClassName: oe.thumb,
808
- trackClassName: oe.track,
806
+ className: ie.slider,
807
+ thumbClassName: ie.thumb,
808
+ trackClassName: ie.track,
809
809
  min: n,
810
810
  max: d,
811
811
  step: i,
@@ -816,7 +816,7 @@ const A2 = "_container_15vgv_2", I2 = "_unitLabel_15vgv_9", O2 = "_slider_15vgv_
816
816
  minDistance: 0.1
817
817
  }
818
818
  ),
819
- /* @__PURE__ */ p("div", { className: oe.labels, children: [
819
+ /* @__PURE__ */ p("div", { className: ie.labels, children: [
820
820
  /* @__PURE__ */ s("span", { children: u[0] }),
821
821
  /* @__PURE__ */ s("span", { children: u[1] })
822
822
  ] })
@@ -846,97 +846,97 @@ const P2 = "_tematicalFiltersInputContainer_1vm1r_2", j2 = "_inputTypeContainer_
846
846
  //onChangeBothType
847
847
  activeColor: d
848
848
  }) => {
849
- const [i, o] = D(), {
849
+ const [i, o] = L(), {
850
850
  type: t,
851
851
  name: r,
852
852
  values: a,
853
853
  minValue: l,
854
854
  maxValue: c,
855
855
  unit: u,
856
- step: m,
856
+ step: h,
857
857
  disabled: g
858
- } = n || {}, _ = he(
858
+ } = n || {}, _ = me(
859
859
  () => t == "cat" || i == "cat",
860
860
  [i, t]
861
- ), v = he(
861
+ ), v = me(
862
862
  () => t == "abs" || i == "abs",
863
863
  [i, t]
864
864
  ), {
865
- tematicalFiltersSelected: h,
865
+ tematicalFiltersSelected: m,
866
866
  selectedIndicator: f,
867
867
  fontColor: C,
868
868
  inputsColor: b
869
869
  } = V((x) => x), y = (x) => {
870
870
  if (console.log("onChangInput", x), x) {
871
- const { min: N, max: B, valueClicked: S, allValues: E } = x || {}, { code: A, type: W } = n || {}, P = v ? "abs" : _ ? "cat" : W == "glb" ? "glb" : "both";
871
+ const { min: w, max: S, valueClicked: k, allValues: q } = x || {}, { code: K, type: xe } = n || {}, P = v ? "abs" : _ ? "cat" : xe == "glb" ? "glb" : "both";
872
872
  console.log("type: ", P);
873
- let q = A[0];
874
- W == "both" && (q = P == "cat" ? A[1] : A[0]), P == "cat" ? V.setState((z) => {
875
- let H = z.tematicalFiltersSelected.find(
876
- (F) => F.code === q
873
+ let R = K[0];
874
+ xe == "both" && (R = P == "cat" ? K[1] : K[0]), P == "cat" ? V.setState((j) => {
875
+ let H = j.tematicalFiltersSelected.find(
876
+ (F) => F.code === R
877
877
  );
878
878
  if (H) {
879
879
  let F = [H.values];
880
- return H.values.includes(S) ? F = H.values.filter(
881
- (O) => O !== S
882
- ) : F = [...H.values, S], F.length == E.length ? {
883
- tematicalFiltersSelected: z.tematicalFiltersSelected.filter(
884
- (O) => O.code !== q
880
+ return H.values.includes(k) ? F = H.values.filter(
881
+ (I) => I !== k
882
+ ) : F = [...H.values, k], F.length == q.length ? {
883
+ tematicalFiltersSelected: j.tematicalFiltersSelected.filter(
884
+ (I) => I.code !== R
885
885
  )
886
886
  } : {
887
- tematicalFiltersSelected: z.tematicalFiltersSelected.map(
888
- (O) => O.code === q ? { ...O, values: F } : O
887
+ tematicalFiltersSelected: j.tematicalFiltersSelected.map(
888
+ (I) => I.code === R ? { ...I, values: F } : I
889
889
  )
890
890
  };
891
891
  } else {
892
- let F = E.map((O, Nt) => Nt);
892
+ let F = q.map((I, Nt) => Nt);
893
893
  return {
894
894
  tematicalFiltersSelected: [
895
- ...h,
895
+ ...m,
896
896
  {
897
897
  type: "cat",
898
- code: q,
899
- values: F.filter((O) => O !== S),
898
+ code: R,
899
+ values: F.filter((I) => I !== k),
900
900
  name: n.name
901
901
  }
902
902
  ]
903
903
  };
904
904
  }
905
- }) : (P == "abs" || P == "glb") && V.setState((z) => {
906
- let H = z.tematicalFiltersSelected.find(
907
- (F) => F.code === q
905
+ }) : (P == "abs" || P == "glb") && V.setState((j) => {
906
+ let H = j.tematicalFiltersSelected.find(
907
+ (F) => F.code === R
908
908
  );
909
- if (N == n.minValue && B == n.maxValue)
909
+ if (w == n.minValue && S == n.maxValue)
910
910
  return {
911
- tematicalFiltersSelected: z.tematicalFiltersSelected.filter(
912
- (F) => F.code !== q
911
+ tematicalFiltersSelected: j.tematicalFiltersSelected.filter(
912
+ (F) => F.code !== R
913
913
  )
914
914
  };
915
915
  if (H) {
916
916
  let F = { ...H };
917
- return F.min = N, F.max = B, F.type = P, {
918
- tematicalFiltersSelected: z.tematicalFiltersSelected.map(
919
- (O) => O.code === q ? F : O
917
+ return F.min = w, F.max = S, F.type = P, {
918
+ tematicalFiltersSelected: j.tematicalFiltersSelected.map(
919
+ (I) => I.code === R ? F : I
920
920
  )
921
921
  };
922
922
  } else
923
923
  return {
924
924
  tematicalFiltersSelected: [
925
- ...h,
926
- { type: P, code: q, min: N, max: B, name: n.name }
925
+ ...m,
926
+ { type: P, code: R, min: w, max: S, name: n.name }
927
927
  ]
928
928
  };
929
929
  });
930
930
  }
931
- }, w = he(() => {
931
+ }, N = me(() => {
932
932
  const x = {};
933
- if ((h == null ? void 0 : h.length) > 0)
934
- for (const N of h)
935
- N.type === "cat" ? x[N.code] = new Set(N.values) : x[N.code] = [N.min, N.max];
933
+ if ((m == null ? void 0 : m.length) > 0)
934
+ for (const w of m)
935
+ w.type === "cat" ? x[w.code] = new Set(w.values) : x[w.code] = [w.min, w.max];
936
936
  return x;
937
- }, [h]);
937
+ }, [m]);
938
938
  return /* @__PURE__ */ s("div", { className: be.tematicalFiltersInputContainer, children: /* @__PURE__ */ p(
939
- ie,
939
+ ne,
940
940
  {
941
941
  titleFontStyles: {
942
942
  fontSize: 16,
@@ -1004,16 +1004,16 @@ const P2 = "_tematicalFiltersInputContainer_1vm1r_2", j2 = "_inputTypeContainer_
1004
1004
  ]
1005
1005
  }
1006
1006
  ),
1007
- _ && /* @__PURE__ */ s("div", { className: be.checkboxContainer, children: a.map((x, N) => {
1008
- var B;
1007
+ _ && /* @__PURE__ */ s("div", { className: be.checkboxContainer, children: a.map((x, w) => {
1008
+ var S;
1009
1009
  return /* @__PURE__ */ s(
1010
1010
  at,
1011
1011
  {
1012
- onClick: () => y({ valueClicked: N, allValues: a }),
1012
+ onClick: () => y({ valueClicked: w, allValues: a }),
1013
1013
  indicator: x,
1014
- value: ((B = w[n.code[t == "both" ? 1 : 0]]) == null ? void 0 : B.has(N)) || !w[n.code[t == "both" ? 1 : 0]]
1014
+ value: ((S = N[n.code[t == "both" ? 1 : 0]]) == null ? void 0 : S.has(w)) || !N[n.code[t == "both" ? 1 : 0]]
1015
1015
  },
1016
- `checkbox-${N}`
1016
+ `checkbox-${w}`
1017
1017
  );
1018
1018
  }) }),
1019
1019
  (v || t == "glb") && /* @__PURE__ */ s("div", { className: be.absoluteSliderContainer, children: /* @__PURE__ */ s(
@@ -1023,8 +1023,8 @@ const P2 = "_tematicalFiltersInputContainer_1vm1r_2", j2 = "_inputTypeContainer_
1023
1023
  min: l,
1024
1024
  max: c,
1025
1025
  unit: u,
1026
- defaultValue: w[n.code[0]] ? w[n.code[0]] : "",
1027
- step: m
1026
+ defaultValue: N[n.code[0]] ? N[n.code[0]] : "",
1027
+ step: h
1028
1028
  }
1029
1029
  ) })
1030
1030
  ]
@@ -1054,7 +1054,7 @@ const dt = ({
1054
1054
  }) => {
1055
1055
  const { activeSubcategory: o } = V((a) => a), { name: t, indicators: r } = n || {};
1056
1056
  return /* @__PURE__ */ s(
1057
- ie,
1057
+ ne,
1058
1058
  {
1059
1059
  title: t,
1060
1060
  isOpen: o == `id${t}`,
@@ -1101,7 +1101,7 @@ const ut = ({
1101
1101
  }) => {
1102
1102
  const { name: i, subcategories: o, indicators: t } = n || {}, { activeCategory: r, fontColor: a } = V((l) => l);
1103
1103
  return n && /* @__PURE__ */ s(
1104
- ie,
1104
+ ne,
1105
1105
  {
1106
1106
  onClick: () => {
1107
1107
  V.setState((l) => ({
@@ -1152,13 +1152,13 @@ const pt = ({
1152
1152
  inputsColor: t = "#605B56",
1153
1153
  activeColor: r
1154
1154
  }) => {
1155
- const { tematicalFiltersSelected: a } = V((c) => c), { t: l } = k();
1156
- return M(() => {
1155
+ const { tematicalFiltersSelected: a } = V((c) => c), { t: l } = B();
1156
+ return D(() => {
1157
1157
  o && V.setState(() => ({ fontColor: o }));
1158
- }, [o]), M(() => {
1158
+ }, [o]), D(() => {
1159
1159
  t && V.setState(() => ({ inputsColor: t }));
1160
1160
  }, [t]), /* @__PURE__ */ s(
1161
- ie,
1161
+ ne,
1162
1162
  {
1163
1163
  isOpen: d,
1164
1164
  title: i ? l(i) : "Tematical filters",
@@ -1185,7 +1185,7 @@ pt.propTypes = {
1185
1185
  inputsColor: e.string,
1186
1186
  activeColor: e.string
1187
1187
  };
1188
- const K2 = "_FiltersAmbitContainer_1g9xx_2", H2 = "_FiltersAmbitHeader_1g9xx_7", U2 = "_FiltersAmbitTitle_1g9xx_15", G2 = "_FiltersAmbitDescription_1g9xx_22", W2 = "_FiltersAmbitDescriptionTitle_1g9xx_33", Y2 = "_warning_1g9xx_37", se = {
1188
+ const K2 = "_FiltersAmbitContainer_1g9xx_2", H2 = "_FiltersAmbitHeader_1g9xx_7", U2 = "_FiltersAmbitTitle_1g9xx_15", G2 = "_FiltersAmbitDescription_1g9xx_22", W2 = "_FiltersAmbitDescriptionTitle_1g9xx_33", Y2 = "_warning_1g9xx_37", oe = {
1189
1189
  FiltersAmbitContainer: K2,
1190
1190
  FiltersAmbitHeader: H2,
1191
1191
  FiltersAmbitTitle: U2,
@@ -1203,49 +1203,49 @@ const K2 = "_FiltersAmbitContainer_1g9xx_2", H2 = "_FiltersAmbitHeader_1g9xx_7",
1203
1203
  onChangeAppliedFilters: l,
1204
1204
  saveAmbit: c,
1205
1205
  namePlaceholder: u,
1206
- descPlaceholder: m,
1206
+ descPlaceholder: h,
1207
1207
  filtersTypes: g = ["geographical", "tematical"],
1208
1208
  nameRequiredText: _,
1209
1209
  onlyFilters: v = !1
1210
1210
  //usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
1211
1211
  }) => {
1212
- const { t: h } = k(), { tematicalFiltersSelected: f } = V((S) => S), [C, b] = D(n || null), [y, w] = D(d || null), [x, N] = D(!1);
1213
- M(() => {
1214
- i && i.length > 0 && V.setState((S) => ({
1212
+ const { t: m } = B(), { tematicalFiltersSelected: f } = V((k) => k), [C, b] = L(n || null), [y, N] = L(d || null), [x, w] = L(!1);
1213
+ D(() => {
1214
+ i && i.length > 0 && V.setState((k) => ({
1215
1215
  tematicalFiltersSelected: i
1216
1216
  }));
1217
- }, [i]), M(() => {
1217
+ }, [i]), D(() => {
1218
1218
  console.log("filtersSelected changed: ", f), l(f);
1219
1219
  }, [f]);
1220
- const B = () => {
1221
- C ? c({ name: C, description: y }) : N(!0);
1220
+ const S = () => {
1221
+ C ? c({ name: C, description: y }) : w(!0);
1222
1222
  };
1223
- return /* @__PURE__ */ p("div", { className: se.FiltersAmbitContainer, children: [
1224
- !v && /* @__PURE__ */ p("div", { className: se.FiltersAmbitHeader, children: [
1225
- /* @__PURE__ */ s("div", { className: se.FiltersAmbitTitle, children: /* @__PURE__ */ s(
1223
+ return /* @__PURE__ */ p("div", { className: oe.FiltersAmbitContainer, children: [
1224
+ !v && /* @__PURE__ */ p("div", { className: oe.FiltersAmbitHeader, children: [
1225
+ /* @__PURE__ */ s("div", { className: oe.FiltersAmbitTitle, children: /* @__PURE__ */ s(
1226
1226
  "input",
1227
1227
  {
1228
1228
  type: "text",
1229
- onChange: (S) => {
1230
- N(!1), b(S.target.value);
1229
+ onChange: (k) => {
1230
+ w(!1), b(k.target.value);
1231
1231
  },
1232
1232
  value: C,
1233
- placeholder: h(u)
1233
+ placeholder: m(u)
1234
1234
  }
1235
1235
  ) }),
1236
- /* @__PURE__ */ s("div", { className: se.FiltersAmbitDescription, children: /* @__PURE__ */ s("div", { className: se.FiltersAmbitDescriptionTitle, children: /* @__PURE__ */ s(
1236
+ /* @__PURE__ */ s("div", { className: oe.FiltersAmbitDescription, children: /* @__PURE__ */ s("div", { className: oe.FiltersAmbitDescriptionTitle, children: /* @__PURE__ */ s(
1237
1237
  "textarea",
1238
1238
  {
1239
1239
  value: y,
1240
- onChange: (S) => w(S.target.value),
1241
- placeholder: h(m)
1240
+ onChange: (k) => N(k.target.value),
1241
+ placeholder: m(h)
1242
1242
  }
1243
1243
  ) }) })
1244
1244
  ] }),
1245
1245
  /* @__PURE__ */ s(
1246
1246
  st,
1247
1247
  {
1248
- title: h("applied_filters"),
1248
+ title: m("applied_filters"),
1249
1249
  isOpen: !0,
1250
1250
  textColor: r || "#fff",
1251
1251
  backgroundColor: a || "#605B5680",
@@ -1263,8 +1263,8 @@ const K2 = "_FiltersAmbitContainer_1g9xx_2", H2 = "_FiltersAmbitHeader_1g9xx_7",
1263
1263
  activeColor: t
1264
1264
  }
1265
1265
  ),
1266
- x && /* @__PURE__ */ s("div", { className: se.warning, children: h(_) }),
1267
- !v && /* @__PURE__ */ s("div", { className: "buttonContainer", children: /* @__PURE__ */ s(ye, { onClick: () => B(), children: h("save_ambit") }) })
1266
+ x && /* @__PURE__ */ s("div", { className: oe.warning, children: m(_) }),
1267
+ !v && /* @__PURE__ */ s("div", { className: "buttonContainer", children: /* @__PURE__ */ s(ye, { onClick: () => S(), children: m("save_ambit") }) })
1268
1268
  ] });
1269
1269
  };
1270
1270
  Q2.propTypes = {
@@ -1296,13 +1296,13 @@ const X2 = "_barChartContainer_d2f1z_2", J2 = {
1296
1296
  numberOfDivisions: c = 7,
1297
1297
  maxValue: u = null
1298
1298
  }) => {
1299
- const { t: m } = k(), { xScale: g, ticks: _, height: v } = he(() => {
1299
+ const { t: h } = B(), { xScale: g, ticks: _, height: v } = me(() => {
1300
1300
  if (n && n.length > 0) {
1301
- const h = (n == null ? void 0 : n.length) * (i + o) + r * 2, f = Ze.max(n, (y) => y.value) || 1, C = Ze.scaleLinear().domain([0, u || f]).range([0, d - l]), b = Array.from({ length: c + 1 }, (y, w) => u ? u / c * w : f / c * w);
1301
+ const m = (n == null ? void 0 : n.length) * (i + o) + r * 2, f = Ze.max(n, (y) => y.value) || 1, C = Ze.scaleLinear().domain([0, u || f]).range([0, d - l]), b = Array.from({ length: c + 1 }, (y, N) => u ? u / c * N : f / c * N);
1302
1302
  return {
1303
1303
  xScale: C,
1304
1304
  ticks: b,
1305
- height: h,
1305
+ height: m,
1306
1306
  width: d,
1307
1307
  verticalPaddign: r,
1308
1308
  horizontalPaddign: a
@@ -1320,8 +1320,8 @@ const X2 = "_barChartContainer_d2f1z_2", J2 = {
1320
1320
  u
1321
1321
  ]);
1322
1322
  return /* @__PURE__ */ s("div", { className: J2.barChartContainer, children: /* @__PURE__ */ s("svg", { width: d + a * 2, height: v, children: /* @__PURE__ */ p("g", { transform: `translate(0,${o})`, children: [
1323
- /* @__PURE__ */ s("g", { transform: `translate(${l + a}, 0)`, children: _.map((h, f) => {
1324
- const C = g(h);
1323
+ /* @__PURE__ */ s("g", { transform: `translate(${l + a}, 0)`, children: _.map((m, f) => {
1324
+ const C = g(m);
1325
1325
  return /* @__PURE__ */ p("g", { transform: `translate(${C}, 0)`, children: [
1326
1326
  /* @__PURE__ */ s(
1327
1327
  "line",
@@ -1338,13 +1338,13 @@ const X2 = "_barChartContainer_d2f1z_2", J2 = {
1338
1338
  textAnchor: "middle",
1339
1339
  fontSize: 10,
1340
1340
  fill: t,
1341
- children: parseInt(h)
1341
+ children: parseInt(m)
1342
1342
  }
1343
1343
  )
1344
1344
  ] }, f);
1345
1345
  }) }),
1346
- n && n.length > 0 && (n == null ? void 0 : n.map((h, f) => {
1347
- const C = g(h.value), b = f * (i + o);
1346
+ n && n.length > 0 && (n == null ? void 0 : n.map((m, f) => {
1347
+ const C = g(m.value), b = f * (i + o);
1348
1348
  return /* @__PURE__ */ p(
1349
1349
  "g",
1350
1350
  {
@@ -1357,7 +1357,7 @@ const X2 = "_barChartContainer_d2f1z_2", J2 = {
1357
1357
  y: i / 2 + 5,
1358
1358
  textAnchor: "end",
1359
1359
  fill: t,
1360
- children: m(h.title)
1360
+ children: h(m.title)
1361
1361
  }
1362
1362
  ),
1363
1363
  /* @__PURE__ */ s(
@@ -1365,7 +1365,7 @@ const X2 = "_barChartContainer_d2f1z_2", J2 = {
1365
1365
  {
1366
1366
  width: C,
1367
1367
  height: i,
1368
- fill: h.color,
1368
+ fill: m.color,
1369
1369
  rx: 0
1370
1370
  }
1371
1371
  )
@@ -1406,7 +1406,7 @@ const e0 = "_graphicContainer_c9zrg_2", t0 = "_titleContainer_c9zrg_14", Ue = {
1406
1406
  numberOfDivisions: l = 7,
1407
1407
  leftPadding: c = 200
1408
1408
  }) => {
1409
- const { t: u } = k();
1409
+ const { t: u } = B();
1410
1410
  return /* @__PURE__ */ p(
1411
1411
  "div",
1412
1412
  {
@@ -1475,12 +1475,12 @@ const i0 = "_indicatorsCategory_1cu33_2", o0 = "_title_1cu33_5", s0 = "_list_1cu
1475
1475
  multiple: l = !1,
1476
1476
  onChangeType: c
1477
1477
  }) => {
1478
- const { t: u } = k(), { name: m, type: g, disabled: _ } = n, [v, h] = D(!1);
1479
- M(() => {
1480
- t && h(
1478
+ const { t: u } = B(), { name: h, type: g, disabled: _ } = n, [v, m] = L(!1);
1479
+ D(() => {
1480
+ t && m(
1481
1481
  l ? t.some(
1482
- (b) => b.name == String(m)
1483
- ) : t.name == m
1482
+ (b) => b.name == String(h)
1483
+ ) : t.name == h
1484
1484
  );
1485
1485
  }, [t]);
1486
1486
  const f = () => /* @__PURE__ */ s("div", { className: T.switchExternalContainer, children: /* @__PURE__ */ s("div", { className: T.switchType, children: /* @__PURE__ */ p("div", { className: T.switchTypeOptions, children: [
@@ -1586,7 +1586,7 @@ const i0 = "_indicatorsCategory_1cu33_2", o0 = "_title_1cu33_5", s0 = "_list_1cu
1586
1586
  children: /* @__PURE__ */ s(
1587
1587
  qe,
1588
1588
  {
1589
- i18nKey: m,
1589
+ i18nKey: h,
1590
1590
  components: { sup: /* @__PURE__ */ s("sup", {}) },
1591
1591
  shouldUnescape: !0
1592
1592
  }
@@ -1596,8 +1596,8 @@ const i0 = "_indicatorsCategory_1cu33_2", o0 = "_title_1cu33_5", s0 = "_list_1cu
1596
1596
  ]
1597
1597
  }
1598
1598
  ),
1599
- (t == null ? void 0 : t.name) === m && g === "both" && /* @__PURE__ */ s("div", { children: f() }),
1600
- (t == null ? void 0 : t.name) === m && g === "twoUnits" && /* @__PURE__ */ s("div", { children: C() })
1599
+ (t == null ? void 0 : t.name) === h && g === "both" && /* @__PURE__ */ s("div", { children: f() }),
1600
+ (t == null ? void 0 : t.name) === h && g === "twoUnits" && /* @__PURE__ */ s("div", { children: C() })
1601
1601
  ] });
1602
1602
  };
1603
1603
  je.propTypes = {
@@ -1626,12 +1626,12 @@ const C0 = "_indicatorsSubCategory_1dzsi_2", f0 = "_list_1dzsi_8", Ge = {
1626
1626
  activeIndicator: l,
1627
1627
  onClickIndicator: c,
1628
1628
  multiple: u,
1629
- activeIndicatorType: m,
1629
+ activeIndicatorType: h,
1630
1630
  onChangeType: g
1631
1631
  }) => {
1632
- const { t: _ } = k(), [v, h] = D(!1);
1633
- return M(() => {
1634
- h(t == a);
1632
+ const { t: _ } = B(), [v, m] = L(!1);
1633
+ return D(() => {
1634
+ m(t == a);
1635
1635
  }, [t, a]), /* @__PURE__ */ p(
1636
1636
  Ee.div,
1637
1637
  {
@@ -1659,7 +1659,7 @@ const C0 = "_indicatorsSubCategory_1dzsi_2", f0 = "_list_1dzsi_8", Ge = {
1659
1659
  activeIndicator: l,
1660
1660
  onClickIndicator: c,
1661
1661
  multiple: u,
1662
- activeIndicatorType: m,
1662
+ activeIndicatorType: h,
1663
1663
  onChangeType: g
1664
1664
  },
1665
1665
  "indicator" + C
@@ -1691,39 +1691,39 @@ const gt = ({
1691
1691
  onClickSubCategory: l,
1692
1692
  activeIndicator: c,
1693
1693
  onClickIndicator: u,
1694
- multiple: m,
1694
+ multiple: h,
1695
1695
  activeIndicatorType: g,
1696
1696
  onChangeType: _
1697
1697
  }) => {
1698
1698
  var C;
1699
- const { t: v } = k(), [h, f] = D(!1);
1700
- return M(() => {
1699
+ const { t: v } = B(), [m, f] = L(!1);
1700
+ return D(() => {
1701
1701
  f(r === d);
1702
1702
  }, [r, d]), /* @__PURE__ */ p(
1703
1703
  Ee.div,
1704
1704
  {
1705
1705
  className: Se.indicatorsCategory,
1706
1706
  initial: { height: "53px" },
1707
- animate: { height: h ? "auto" : "53px" },
1707
+ animate: { height: m ? "auto" : "53px" },
1708
1708
  transition: { duration: 0.4 },
1709
1709
  style: {
1710
1710
  backgroundColor: "white",
1711
- borderBottom: h ? `1px solid ${i}` : "0px",
1712
- marginBottom: h ? "20px" : "0px"
1711
+ borderBottom: m ? `1px solid ${i}` : "0px",
1712
+ marginBottom: m ? "20px" : "0px"
1713
1713
  },
1714
1714
  children: [
1715
1715
  /* @__PURE__ */ p("h2", { className: `${Se.title}`, onClick: () => t(d), children: [
1716
- /* @__PURE__ */ s("span", { style: { color: h ? i : o }, children: h ? "-" : "+" }),
1716
+ /* @__PURE__ */ s("span", { style: { color: m ? i : o }, children: m ? "-" : "+" }),
1717
1717
  /* @__PURE__ */ s(
1718
1718
  "span",
1719
1719
  {
1720
- style: { marginLeft: 12, color: h ? i : o },
1720
+ style: { marginLeft: 12, color: m ? i : o },
1721
1721
  children: v(n.name)
1722
1722
  }
1723
1723
  )
1724
1724
  ] }),
1725
1725
  n.subcategories ? n.subcategories.map(
1726
- ({ name: b, subcategory: y, indicators: w }, x) => /* @__PURE__ */ s(
1726
+ ({ name: b, subcategory: y, indicators: N }, x) => /* @__PURE__ */ s(
1727
1727
  ht,
1728
1728
  {
1729
1729
  id: y,
@@ -1732,10 +1732,10 @@ const gt = ({
1732
1732
  onClickSubCategory: l,
1733
1733
  activeIndicator: c,
1734
1734
  onClickIndicator: u,
1735
- multiple: m,
1735
+ multiple: h,
1736
1736
  activeColor: i,
1737
1737
  defaultColor: o,
1738
- indicators: w,
1738
+ indicators: N,
1739
1739
  activeIndicatorType: g,
1740
1740
  onChangeType: _
1741
1741
  },
@@ -1750,7 +1750,7 @@ const gt = ({
1750
1750
  defaultColor: o,
1751
1751
  activeIndicator: c,
1752
1752
  onClickIndicator: u,
1753
- multiple: m,
1753
+ multiple: h,
1754
1754
  activeIndicatorType: g,
1755
1755
  onChangeType: _
1756
1756
  },
@@ -1791,54 +1791,54 @@ const b0 = "_indicatorsList_fklyu_2", _0 = "_title_fklyu_6", We = {
1791
1791
  changeIndType: a,
1792
1792
  activeIndicatorType: l
1793
1793
  }) => {
1794
- const { t: c } = k(), [u, m] = D(), [g, _] = D(), [v, h] = D(), f = (x) => {
1795
- m(u == x ? null : x);
1794
+ const { t: c } = B(), [u, h] = L(), [g, _] = L(), [v, m] = L(), f = (x) => {
1795
+ h(u == x ? null : x);
1796
1796
  }, C = (x) => {
1797
1797
  _(g == x ? null : x);
1798
1798
  }, b = ({ indicator: x }) => {
1799
1799
  console.log("onClickIndicator: ", x), y(x);
1800
1800
  }, y = (x) => {
1801
1801
  if (!t)
1802
- h(
1802
+ m(
1803
1803
  (v == null ? void 0 : v.name) == x.name ? null : x
1804
1804
  );
1805
1805
  else {
1806
- let N = v && v.length > 0 ? [...v] : [];
1807
- h(
1808
- N != null && N.some(
1809
- (B) => B.name == x.name
1810
- ) ? N.filter(
1811
- (B) => B.name != String(x.name)
1812
- ) : [...N, x]
1806
+ let w = v && v.length > 0 ? [...v] : [];
1807
+ m(
1808
+ w != null && w.some(
1809
+ (S) => S.name == x.name
1810
+ ) ? w.filter(
1811
+ (S) => S.name != String(x.name)
1812
+ ) : [...w, x]
1813
1813
  ), x.type == "both" && a("cat");
1814
1814
  }
1815
1815
  };
1816
- M(() => {
1816
+ D(() => {
1817
1817
  console.log("activeindicator changed to: ", v), o && typeof o == "function" && v && o({ activeIndicator: v });
1818
1818
  }, [v]), kt(() => {
1819
1819
  if (r && !v)
1820
1820
  if (t && r && Array.isArray(r)) {
1821
1821
  let x = v && v.length > 0 ? [...v] : [];
1822
- h([...x, ...r]), w(r[0].name);
1822
+ m([...x, ...r]), N(r[0].name);
1823
1823
  } else
1824
- y(r), w(r.name);
1824
+ y(r), N(r.name);
1825
1825
  }, []);
1826
- const w = (x) => {
1827
- const N = n.find((B) => {
1828
- if (B.subcategories) {
1829
- let S = B.subcategories.find(
1830
- (E) => E.indicators.find((A) => A.name == x)
1826
+ const N = (x) => {
1827
+ const w = n.find((S) => {
1828
+ if (S.subcategories) {
1829
+ let k = S.subcategories.find(
1830
+ (q) => q.indicators.find((K) => K.name == x)
1831
1831
  );
1832
- if (S)
1833
- return _(S.subcategory), S;
1832
+ if (k)
1833
+ return _(k.subcategory), k;
1834
1834
  } else
1835
- return B.indicators.some((S) => S.name == x);
1835
+ return S.indicators.some((k) => k.name == x);
1836
1836
  });
1837
- N && m(N.category);
1837
+ w && h(w.category);
1838
1838
  };
1839
1839
  return /* @__PURE__ */ p("div", { className: We.indicatorsList, children: [
1840
1840
  /* @__PURE__ */ s("h2", { className: We.title, style: { color: i }, children: c("indicators.indicators") }),
1841
- n.map((x, N) => /* @__PURE__ */ s(
1841
+ n.map((x, w) => /* @__PURE__ */ s(
1842
1842
  gt,
1843
1843
  {
1844
1844
  id: x.category,
@@ -1856,7 +1856,7 @@ const b0 = "_indicatorsList_fklyu_2", _0 = "_title_fklyu_6", We = {
1856
1856
  onChangeType: a,
1857
1857
  activeIndicatorType: l
1858
1858
  },
1859
- `categoryKey${N}`
1859
+ `categoryKey${w}`
1860
1860
  ))
1861
1861
  ] });
1862
1862
  };
@@ -1871,35 +1871,35 @@ y0.propTypes = {
1871
1871
  defaultValue: e.oneOfType([e.object, e.array]),
1872
1872
  activeIndicatorType: e.string
1873
1873
  };
1874
- const v0 = "_langSelector_o9enq_2", x0 = "_currentLang_o9enq_14", w0 = "_arrow_o9enq_26", N0 = "_prevImg_o9enq_29", k0 = "_langMenu_o9enq_33", re = {
1874
+ const v0 = "_langSelector_o9enq_2", x0 = "_currentLang_o9enq_14", w0 = "_arrow_o9enq_26", N0 = "_prevImg_o9enq_29", k0 = "_langMenu_o9enq_33", se = {
1875
1875
  langSelector: v0,
1876
1876
  currentLang: x0,
1877
1877
  arrow: w0,
1878
1878
  prevImg: N0,
1879
1879
  langMenu: k0
1880
1880
  }, B0 = ({ langs: n, arrow: d, imgPrev: i }) => {
1881
- const [o, t] = D(!1), { i18n: r } = k(), a = n.find((c) => c.code == r.language), l = (c) => {
1881
+ const [o, t] = L(!1), { i18n: r } = B(), a = n.find((c) => c.code == r.language), l = (c) => {
1882
1882
  r.changeLanguage(c), t(!1);
1883
1883
  };
1884
- return /* @__PURE__ */ p("div", { className: re.langSelector, children: [
1884
+ return /* @__PURE__ */ p("div", { className: se.langSelector, children: [
1885
1885
  /* @__PURE__ */ p(
1886
1886
  "div",
1887
1887
  {
1888
- className: re.currentLang,
1888
+ className: se.currentLang,
1889
1889
  onClick: () => {
1890
1890
  t(!o);
1891
1891
  },
1892
1892
  children: [
1893
- i && /* @__PURE__ */ s("img", { className: re.prevImg, src: i }),
1893
+ i && /* @__PURE__ */ s("img", { className: se.prevImg, src: i }),
1894
1894
  (a == null ? void 0 : a.titleSelected) || (a == null ? void 0 : a.title),
1895
- /* @__PURE__ */ s("img", { src: d, className: re.arrow })
1895
+ /* @__PURE__ */ s("img", { src: d, className: se.arrow })
1896
1896
  ]
1897
1897
  }
1898
1898
  ),
1899
- o && /* @__PURE__ */ s("div", { className: re.langMenu, children: n.map((c) => /* @__PURE__ */ s(
1899
+ o && /* @__PURE__ */ s("div", { className: se.langMenu, children: n.map((c) => /* @__PURE__ */ s(
1900
1900
  "button",
1901
1901
  {
1902
- className: (a == null ? void 0 : a.code) == c.code ? re.active : "",
1902
+ className: (a == null ? void 0 : a.code) == c.code ? se.active : "",
1903
1903
  onClick: () => l(c.code),
1904
1904
  children: c.title
1905
1905
  },
@@ -1921,7 +1921,7 @@ B0.propTypes = {
1921
1921
  arrow: e.object,
1922
1922
  imgPrev: e.object
1923
1923
  };
1924
- const S0 = "_legendContainer_qs4x9_3", $0 = "_closeButton_qs4x9_31", D0 = "_titleContainer_qs4x9_59", M0 = "_infoContainer_qs4x9_65", L0 = "_titleLegendList_qs4x9_76", T0 = "_legendListContainer_qs4x9_82", F0 = "_gridContainer_qs4x9_82", V0 = "_elementLegendContainer_qs4x9_88", A0 = "_colorDot_qs4x9_94", I0 = "_absoluteValueContainer_qs4x9_100", O0 = "_absoluteValueColor_qs4x9_103", R0 = "_absoluteValueText_qs4x9_108", q0 = "_noDataContainer_qs4x9_120", E0 = "_noData_qs4x9_120", P0 = "_moreInfoContainer_qs4x9_141", L = {
1924
+ const S0 = "_legendContainer_qs4x9_3", $0 = "_closeButton_qs4x9_31", D0 = "_titleContainer_qs4x9_59", M0 = "_infoContainer_qs4x9_65", L0 = "_titleLegendList_qs4x9_76", T0 = "_legendListContainer_qs4x9_82", F0 = "_gridContainer_qs4x9_82", V0 = "_elementLegendContainer_qs4x9_88", A0 = "_colorDot_qs4x9_94", I0 = "_absoluteValueContainer_qs4x9_100", O0 = "_absoluteValueColor_qs4x9_103", R0 = "_absoluteValueText_qs4x9_108", q0 = "_noDataContainer_qs4x9_120", E0 = "_noData_qs4x9_120", P0 = "_moreInfoContainer_qs4x9_141", M = {
1925
1925
  legendContainer: S0,
1926
1926
  closeButton: $0,
1927
1927
  titleContainer: D0,
@@ -1960,35 +1960,35 @@ const S0 = "_legendContainer_qs4x9_3", $0 = "_closeButton_qs4x9_31", D0 = "_titl
1960
1960
  buttonTitle: l,
1961
1961
  onClickClose: c
1962
1962
  }) => {
1963
- const { t: u } = k();
1963
+ const { t: u } = B();
1964
1964
  return /* @__PURE__ */ p(
1965
1965
  "div",
1966
1966
  {
1967
1967
  style: n ? { ...n } : {},
1968
- className: `${L.legendContainer}`,
1968
+ className: `${M.legendContainer}`,
1969
1969
  children: [
1970
- /* @__PURE__ */ s("button", { className: L.closeButton, onClick: c }),
1971
- d && /* @__PURE__ */ s("div", { className: L.titleContainer, style: { marginBottom: (!i || i.length == 0) && "15px" }, children: /* @__PURE__ */ s("h2", { children: d }) }),
1972
- i && i.length > 0 && /* @__PURE__ */ s("div", { className: L.infoContainer, children: /* @__PURE__ */ s("ul", { children: i.map(({ title: m, value: g }) => /* @__PURE__ */ p("li", { children: [
1973
- /* @__PURE__ */ s("h3", { className: L.title, children: `${m}:` }),
1974
- /* @__PURE__ */ p("span", { className: L.value, children: [
1970
+ /* @__PURE__ */ s("button", { className: M.closeButton, onClick: c }),
1971
+ d && /* @__PURE__ */ s("div", { className: M.titleContainer, style: { marginBottom: (!i || i.length == 0) && "15px" }, children: /* @__PURE__ */ s("h2", { children: d }) }),
1972
+ i && i.length > 0 && /* @__PURE__ */ s("div", { className: M.infoContainer, children: /* @__PURE__ */ s("ul", { children: i.map(({ title: h, value: g }) => /* @__PURE__ */ p("li", { children: [
1973
+ /* @__PURE__ */ s("h3", { className: M.title, children: `${h}:` }),
1974
+ /* @__PURE__ */ p("span", { className: M.value, children: [
1975
1975
  "  ",
1976
1976
  g
1977
1977
  ] })
1978
1978
  ] }, d)) }) }),
1979
- /* @__PURE__ */ s("h3", { className: L.titleLegendList, style: { marginTop: i && i.length > 0 && "30px" }, children: t && /* @__PURE__ */ s(qe, { i18nKey: t, components: { sup: /* @__PURE__ */ s("sup", {}) }, shouldUnescape: !0 }) }),
1980
- /* @__PURE__ */ p("div", { className: L.legendListContainer, children: [
1981
- r ? /* @__PURE__ */ p("div", { className: L.absoluteValueContainer, children: [
1979
+ /* @__PURE__ */ s("h3", { className: M.titleLegendList, style: { marginTop: i && i.length > 0 && "30px" }, children: t && /* @__PURE__ */ s(qe, { i18nKey: t, components: { sup: /* @__PURE__ */ s("sup", {}) }, shouldUnescape: !0 }) }),
1980
+ /* @__PURE__ */ p("div", { className: M.legendListContainer, children: [
1981
+ r ? /* @__PURE__ */ p("div", { className: M.absoluteValueContainer, children: [
1982
1982
  /* @__PURE__ */ s(
1983
1983
  "div",
1984
1984
  {
1985
- className: L.absoluteValueColor,
1985
+ className: M.absoluteValueColor,
1986
1986
  style: {
1987
1987
  background: `linear-gradient(to bottom, ${r.maxColor} 0%, ${r.midColor ? `${r.midColor} 50%,` : ""} ${r.minColor} 100%)`
1988
1988
  }
1989
1989
  }
1990
1990
  ),
1991
- /* @__PURE__ */ p("div", { className: L.absoluteValueText, children: [
1991
+ /* @__PURE__ */ p("div", { className: M.absoluteValueText, children: [
1992
1992
  /* @__PURE__ */ p("span", { children: [
1993
1993
  r.maxValue,
1994
1994
  " ",
@@ -2005,35 +2005,35 @@ const S0 = "_legendContainer_qs4x9_3", $0 = "_closeButton_qs4x9_31", D0 = "_titl
2005
2005
  u(r.unit)
2006
2006
  ] })
2007
2007
  ] })
2008
- ] }) : o && o.length > 0 && /* @__PURE__ */ s("div", { className: L.gridContainer, children: o.map(
2009
- ({ title: m, color: g }) => /* @__PURE__ */ p("div", { className: L.elementLegendContainer, children: [
2008
+ ] }) : o && o.length > 0 && /* @__PURE__ */ s("div", { className: M.gridContainer, children: o.map(
2009
+ ({ title: h, color: g }) => /* @__PURE__ */ p("div", { className: M.elementLegendContainer, children: [
2010
2010
  /* @__PURE__ */ s(
2011
2011
  "div",
2012
2012
  {
2013
- className: L.colorDot,
2013
+ className: M.colorDot,
2014
2014
  style: { backgroundColor: g }
2015
2015
  }
2016
2016
  ),
2017
- /* @__PURE__ */ p("div", { className: L.titleLegendElement, children: [
2018
- u(m),
2017
+ /* @__PURE__ */ p("div", { className: M.titleLegendElement, children: [
2018
+ u(h),
2019
2019
  " "
2020
2020
  ] })
2021
2021
  ] }, d)
2022
2022
  ) }),
2023
- r.noDataColor && /* @__PURE__ */ p("div", { className: L.noDataContainer, children: [
2023
+ r.noDataColor && /* @__PURE__ */ p("div", { className: M.noDataContainer, children: [
2024
2024
  /* @__PURE__ */ s(
2025
2025
  "div",
2026
2026
  {
2027
- className: L.noData,
2027
+ className: M.noData,
2028
2028
  style: {
2029
2029
  background: r.noDataColor
2030
2030
  }
2031
2031
  }
2032
2032
  ),
2033
- /* @__PURE__ */ s("div", { className: L.absoluteValueText, children: /* @__PURE__ */ s("span", { children: u(r.noDataText) }) })
2033
+ /* @__PURE__ */ s("div", { className: M.absoluteValueText, children: /* @__PURE__ */ s("span", { children: u(r.noDataText) }) })
2034
2034
  ] })
2035
2035
  ] }),
2036
- a && /* @__PURE__ */ s("button", { className: L.moreInfoContainer, onClick: a, children: l || u("moreInformation") })
2036
+ a && /* @__PURE__ */ s("button", { className: M.moreInfoContainer, onClick: a, children: l || u("moreInformation") })
2037
2037
  ]
2038
2038
  }
2039
2039
  );
@@ -2068,7 +2068,7 @@ j0.propTypes = {
2068
2068
  const z0 = "_logo_1ewa6_2", Ye = {
2069
2069
  logo: z0
2070
2070
  }, Z0 = ({ src: n, alt: d, href: i }) => {
2071
- const { t: o } = k(), t = /* @__PURE__ */ s("img", { src: n, alt: o(d) });
2071
+ const { t: o } = B(), t = /* @__PURE__ */ s("img", { src: n, alt: o(d) });
2072
2072
  return i ? /* @__PURE__ */ s("div", { className: Ye.logo, children: /* @__PURE__ */ s("a", { href: i, children: t }) }) : /* @__PURE__ */ s("div", { className: Ye.logo, children: t });
2073
2073
  };
2074
2074
  Z0.propTypes = {
@@ -2092,17 +2092,17 @@ const U0 = ({
2092
2092
  interactiveLayers: l = [],
2093
2093
  popUp: c = !1,
2094
2094
  sources: u = [],
2095
- layers: m = []
2095
+ layers: h = []
2096
2096
  }) => {
2097
- const g = ne(), [_, v] = D(null), h = $t((f) => f.mapState.showTexts);
2098
- return M(() => {
2097
+ const g = te(), [_, v] = L(null), m = $t((f) => f.mapState.showTexts);
2098
+ return D(() => {
2099
2099
  if (g.current) {
2100
2100
  const f = g.current.getMap();
2101
2101
  f.getStyle().layers.map((b) => {
2102
- b.type == "symbol" && b.id != "professionals" && (h ? f.setLayoutProperty(b.id, "visibility", "visible") : f.setLayoutProperty(b.id, "visibility", "none"));
2102
+ b.type == "symbol" && b.id != "professionals" && (m ? f.setLayoutProperty(b.id, "visibility", "visible") : f.setLayoutProperty(b.id, "visibility", "none"));
2103
2103
  });
2104
2104
  }
2105
- }, [h]), /* @__PURE__ */ s("div", { className: `${H0.mapContainer}`, style: r, children: /* @__PURE__ */ p(
2105
+ }, [m]), /* @__PURE__ */ s("div", { className: `${H0.mapContainer}`, style: r, children: /* @__PURE__ */ p(
2106
2106
  Mt,
2107
2107
  {
2108
2108
  initialViewState: n,
@@ -2118,7 +2118,7 @@ const U0 = ({
2118
2118
  Lt,
2119
2119
  {
2120
2120
  ...f,
2121
- children: m.length && m.map((b, y) => {
2121
+ children: h.length && h.map((b, y) => {
2122
2122
  if (b.sourceId == f.id) return /* @__PURE__ */ s(
2123
2123
  Tt,
2124
2124
  {
@@ -2197,7 +2197,7 @@ const G0 = "_mapContainer_b0pyr_3", W0 = {
2197
2197
  FeaturePopUp: Y0,
2198
2198
  title: Q0
2199
2199
  }, X0 = ({ props: n }) => {
2200
- const { t: d } = k();
2200
+ const { t: d } = B();
2201
2201
  return /* @__PURE__ */ s("div", { className: Qe.FeaturePopUp, children: n.map((i) => /* @__PURE__ */ p("p", { children: [
2202
2202
  /* @__PURE__ */ p("span", { className: Qe.title, children: [
2203
2203
  /* @__PURE__ */ s(qe, { i18nKey: i.name, components: { sup: /* @__PURE__ */ s("sup", {}) }, shouldUnescape: !0 }),
@@ -2220,21 +2220,21 @@ const G0 = "_mapContainer_b0pyr_3", W0 = {
2220
2220
  interactiveLayers: l = [],
2221
2221
  sources: c = [],
2222
2222
  layers: u = [],
2223
- filters: m,
2223
+ filters: h,
2224
2224
  popUpParams: g,
2225
2225
  onClosePopUp: _,
2226
2226
  showTexts: v
2227
2227
  }) => {
2228
- console.log(m);
2229
- const h = ne();
2230
- return M(() => {
2231
- if (h.current) {
2232
- const f = h.current.getMap();
2228
+ console.log(h);
2229
+ const m = te();
2230
+ return D(() => {
2231
+ if (m.current) {
2232
+ const f = m.current.getMap();
2233
2233
  f.getStyle().layers.map((b) => {
2234
2234
  b.type == "symbol" && b.id != "professionals" && (v ? f.setLayoutProperty(b.id, "visibility", "visible") : f.setLayoutProperty(b.id, "visibility", "none"));
2235
2235
  });
2236
2236
  }
2237
- }, [v]), M(() => {
2237
+ }, [v]), D(() => {
2238
2238
  let f = new At();
2239
2239
  return we.addProtocol("pmtiles", f.tile), () => {
2240
2240
  we.removeProtocol("pmtiles");
@@ -2244,7 +2244,7 @@ const G0 = "_mapContainer_b0pyr_3", W0 = {
2244
2244
  {
2245
2245
  mapLib: we,
2246
2246
  initialViewState: n,
2247
- ref: h,
2247
+ ref: m,
2248
2248
  hash: !1,
2249
2249
  maxZoom: d,
2250
2250
  minZoom: i,
@@ -2262,7 +2262,7 @@ const G0 = "_mapContainer_b0pyr_3", W0 = {
2262
2262
  {
2263
2263
  ...b.layer,
2264
2264
  beforeId: t,
2265
- filter: m && m
2265
+ filter: h && h
2266
2266
  },
2267
2267
  y
2268
2268
  );
@@ -2327,7 +2327,7 @@ J0.propTypes = {
2327
2327
  popUpParams: e.object,
2328
2328
  onClosePopUp: e.func
2329
2329
  };
2330
- const en = "_sectionBar_1egwc_2", tn = "_leftContent_1egwc_14", nn = "_textContainer_1egwc_20", on = "_title_1egwc_27", sn = "_subtitle_1egwc_33", rn = "_rightContent_1egwc_38", X = {
2330
+ const en = "_sectionBar_1egwc_2", tn = "_leftContent_1egwc_14", nn = "_textContainer_1egwc_20", on = "_title_1egwc_27", sn = "_subtitle_1egwc_33", rn = "_rightContent_1egwc_38", Q = {
2331
2331
  sectionBar: en,
2332
2332
  leftContent: tn,
2333
2333
  textContainer: nn,
@@ -2342,16 +2342,16 @@ const en = "_sectionBar_1egwc_2", tn = "_leftContent_1egwc_14", nn = "_textConta
2342
2342
  mainColor: t,
2343
2343
  width: r
2344
2344
  }) => {
2345
- const { t: a } = k();
2346
- return /* @__PURE__ */ p("div", { className: X.sectionBar, style: { width: r && r }, children: [
2347
- /* @__PURE__ */ p("div", { className: X.leftContent, children: [
2348
- n && /* @__PURE__ */ s("img", { src: n, alt: "Icono", className: X.icon }),
2349
- /* @__PURE__ */ p("div", { className: X.textContainer, children: [
2350
- /* @__PURE__ */ s("div", { className: X.title, children: a(d) }),
2351
- i && /* @__PURE__ */ s("div", { className: X.subtitle, children: i })
2345
+ const { t: a } = B();
2346
+ return /* @__PURE__ */ p("div", { className: Q.sectionBar, style: { width: r && r }, children: [
2347
+ /* @__PURE__ */ p("div", { className: Q.leftContent, children: [
2348
+ n && /* @__PURE__ */ s("img", { src: n, alt: "Icono", className: Q.icon }),
2349
+ /* @__PURE__ */ p("div", { className: Q.textContainer, children: [
2350
+ /* @__PURE__ */ s("div", { className: Q.title, children: a(d) }),
2351
+ i && /* @__PURE__ */ s("div", { className: Q.subtitle, children: i })
2352
2352
  ] })
2353
2353
  ] }),
2354
- /* @__PURE__ */ s("div", { className: X.rightContent, children: o })
2354
+ /* @__PURE__ */ s("div", { className: Q.rightContent, children: o })
2355
2355
  ] });
2356
2356
  }, an = Pt({
2357
2357
  name: "mapSlice",
@@ -2379,34 +2379,34 @@ const en = "_sectionBar_1egwc_2", tn = "_leftContent_1egwc_14", nn = "_textConta
2379
2379
  n.activeIndicatorUnit = d.payload;
2380
2380
  }
2381
2381
  }
2382
- }), { setShowTexts: Ri, setYear: $e, setActiveIndicatorKey: qi, setActiveIndicatorType: Ei, setActiveIndicatorUnit: Pi } = an.actions, ln = "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", cn = "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", dn = "_slider_a19yo_2", un = "_playButton_a19yo_17", pn = "_sliderOpen_a19yo_28", mn = "_sliderResults_a19yo_32", ue = {
2382
+ }), { setShowTexts: Ri, setYear: $e, setActiveIndicatorKey: qi, setActiveIndicatorType: Ei, setActiveIndicatorUnit: Pi } = an.actions, ln = "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", cn = "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", dn = "_slider_a19yo_2", un = "_playButton_a19yo_17", pn = "_sliderOpen_a19yo_28", mn = "_sliderResults_a19yo_32", de = {
2383
2383
  slider: dn,
2384
2384
  playButton: un,
2385
2385
  sliderOpen: pn,
2386
2386
  sliderResults: mn
2387
2387
  }, hn = ({ onResults: n = !1, defaultYear: d = 2025, firstYear: i = 2025, lastYear: o = 2050, zIndex: t = 10, rightBarOpen: r = !1 }) => {
2388
- const [a, l] = D(d), c = Dt(), u = (b, y) => {
2388
+ const [a, l] = L(d), c = Dt(), u = (b, y) => {
2389
2389
  l(y), c($e(y - 2e3));
2390
- }, [m, g] = D(!1), _ = () => {
2390
+ }, [h, g] = L(!1), _ = () => {
2391
2391
  g(!0);
2392
2392
  }, v = () => {
2393
2393
  g(!1);
2394
2394
  };
2395
2395
  ((b, y) => {
2396
- const w = ne();
2397
- M(() => {
2398
- w.current = b;
2399
- }, [b]), M(() => {
2396
+ const N = te();
2397
+ D(() => {
2398
+ N.current = b;
2399
+ }, [b]), D(() => {
2400
2400
  function x() {
2401
- w.current();
2401
+ N.current();
2402
2402
  }
2403
2403
  {
2404
- let N = setInterval(x, y);
2405
- return () => clearInterval(N);
2404
+ let w = setInterval(x, y);
2405
+ return () => clearInterval(w);
2406
2406
  }
2407
2407
  }, [y]);
2408
2408
  })(() => {
2409
- m && (a != 2050 ? (l(a + 1), c($e(a - 2e3 + 1))) : (l(2025), c($e(25))));
2409
+ h && (a != 2050 ? (l(a + 1), c($e(a - 2e3 + 1))) : (l(2025), c($e(25))));
2410
2410
  }, 1e3);
2411
2411
  const f = zt({
2412
2412
  palette: {
@@ -2440,7 +2440,7 @@ const en = "_sectionBar_1egwc_2", tn = "_leftContent_1egwc_14", nn = "_textConta
2440
2440
  Zt,
2441
2441
  {
2442
2442
  sx: { width: 400 },
2443
- className: `${n ? ue.sliderResults : ue.slider} ${r ? ue.sliderOpen : ""}`,
2443
+ className: `${n ? de.sliderResults : de.slider} ${r ? de.sliderOpen : ""}`,
2444
2444
  style: { zIndex: t },
2445
2445
  children: [
2446
2446
  i,
@@ -2460,8 +2460,8 @@ const en = "_sectionBar_1egwc_2", tn = "_leftContent_1egwc_14", nn = "_textConta
2460
2460
  }
2461
2461
  ),
2462
2462
  o,
2463
- !m && /* @__PURE__ */ s("button", { className: ue.playButton, onClick: _, children: /* @__PURE__ */ s("img", { src: ln, alt: "Play" }) }),
2464
- m && /* @__PURE__ */ s("button", { className: ue.playButton, onClick: v, children: /* @__PURE__ */ s("img", { src: cn, alt: "Pause" }) })
2463
+ !h && /* @__PURE__ */ s("button", { className: de.playButton, onClick: _, children: /* @__PURE__ */ s("img", { src: ln, alt: "Play" }) }),
2464
+ h && /* @__PURE__ */ s("button", { className: de.playButton, onClick: v, children: /* @__PURE__ */ s("img", { src: cn, alt: "Pause" }) })
2465
2465
  ]
2466
2466
  }
2467
2467
  ) });
@@ -2487,7 +2487,7 @@ const gn = "_TopNavMenuContainer_12mp4_2", Cn = "_topNavOptions_12mp4_13", fn =
2487
2487
  console.log("Changed NavLink", r);
2488
2488
  }
2489
2489
  }) => {
2490
- const { t: r } = k();
2490
+ const { t: r } = B();
2491
2491
  return /* @__PURE__ */ s("div", { className: De.TopNavMenuContainer, style: { ...d }, children: n.map((a, l) => /* @__PURE__ */ s(
2492
2492
  Ht,
2493
2493
  {
@@ -2529,7 +2529,7 @@ const _n = "_LogInButton_1vxj5_2", yn = {
2529
2529
  console.log("Logout clicked");
2530
2530
  }
2531
2531
  }) => {
2532
- const { t: c } = k();
2532
+ const { t: c } = B();
2533
2533
  return /* @__PURE__ */ s(
2534
2534
  "div",
2535
2535
  {
@@ -2548,7 +2548,7 @@ vn.propTypes = {
2548
2548
  userName: e.string,
2549
2549
  isLoggedIn: e.bool
2550
2550
  };
2551
- const xn = "_elementSelector_fd7az_2", wn = "_header_fd7az_13", Nn = "_nameDateContainer_fd7az_23", kn = "_elementName_fd7az_39", Bn = "_elementDate_fd7az_53", Sn = "_buttonsContainer_fd7az_67", $n = "_elementListContainer_fd7az_76", Dn = "_newElementButtonContainer_fd7az_80", Z = {
2551
+ const xn = "_elementSelector_fd7az_2", wn = "_header_fd7az_13", Nn = "_nameDateContainer_fd7az_23", kn = "_elementName_fd7az_39", Bn = "_elementDate_fd7az_53", Sn = "_buttonsContainer_fd7az_67", $n = "_elementListContainer_fd7az_76", Dn = "_newElementButtonContainer_fd7az_80", z = {
2552
2552
  elementSelector: xn,
2553
2553
  header: wn,
2554
2554
  nameDateContainer: Nn,
@@ -2557,7 +2557,7 @@ const xn = "_elementSelector_fd7az_2", wn = "_header_fd7az_13", Nn = "_nameDateC
2557
2557
  buttonsContainer: Sn,
2558
2558
  elementListContainer: $n,
2559
2559
  newElementButtonContainer: Dn
2560
- }, Mn = "_listElement_1s506_2", Ln = "_elementNameDate_1s506_17", Tn = "_elementNameContainer_1s506_27", Fn = "_elementName_1s506_17", Vn = "_elementDate_1s506_42", An = "_elementButtons_1s506_45", In = "_moreInfoContainer_1s506_68", On = "_moreInfo_1s506_68", j = {
2560
+ }, Mn = "_listElement_1s506_2", Ln = "_elementNameDate_1s506_17", Tn = "_elementNameContainer_1s506_27", Fn = "_elementName_1s506_17", Vn = "_elementDate_1s506_42", An = "_elementButtons_1s506_45", In = "_moreInfoContainer_1s506_68", On = "_moreInfo_1s506_68", E = {
2561
2561
  listElement: Mn,
2562
2562
  elementNameDate: Ln,
2563
2563
  elementNameContainer: Tn,
@@ -2579,16 +2579,16 @@ function Oe() {
2579
2579
  }, Oe.apply(null, arguments);
2580
2580
  }
2581
2581
  var zn = function(d) {
2582
- return /* @__PURE__ */ ce.createElement("svg", Oe({
2582
+ return /* @__PURE__ */ le.createElement("svg", Oe({
2583
2583
  xmlns: "http://www.w3.org/2000/svg",
2584
2584
  width: 26,
2585
2585
  height: 14,
2586
2586
  fill: "none"
2587
- }, d), Xe || (Xe = /* @__PURE__ */ ce.createElement("g", {
2587
+ }, d), Xe || (Xe = /* @__PURE__ */ le.createElement("g", {
2588
2588
  fill: "currentColor"
2589
- }, /* @__PURE__ */ ce.createElement("path", {
2589
+ }, /* @__PURE__ */ le.createElement("path", {
2590
2590
  d: "M12.95.408C7.659.408 2.849 2.772.083 6.726a.47.47 0 0 0 0 .532c2.761 3.955 7.571 6.313 12.867 6.313s10.106-2.358 12.867-6.313a.47.47 0 0 0 0-.532C23.05 2.772 18.24.408 12.95.408m0 10.814A4.24 4.24 0 0 1 8.718 6.99a4.24 4.24 0 0 1 4.232-4.232 4.24 4.24 0 0 1 4.232 4.232 4.24 4.24 0 0 1-4.232 4.232"
2591
- }), /* @__PURE__ */ ce.createElement("path", {
2591
+ }), /* @__PURE__ */ le.createElement("path", {
2592
2592
  d: "M12.951 10.297a3.307 3.307 0 1 0 0-6.614 3.307 3.307 0 0 0 0 6.614"
2593
2593
  }))));
2594
2594
  };
@@ -2603,17 +2603,17 @@ const Zn = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2603
2603
  elementButtons: l,
2604
2604
  processTooltip: c,
2605
2605
  defaultTooltip: u,
2606
- showEye: m = !0
2606
+ showEye: h = !0
2607
2607
  }) => {
2608
- const { nom: g, created_at: _, id: v, isBeingProcessed: h } = n, [f, C] = D(!1), { t: b } = k();
2608
+ const { nom: g, created_at: _, id: v, isBeingProcessed: m } = n, [f, C] = L(!1), { t: b } = B();
2609
2609
  return /* @__PURE__ */ p(
2610
2610
  "div",
2611
2611
  {
2612
- className: j.listElement,
2612
+ className: E.listElement,
2613
2613
  style: { borderBottom: `1px solid ${t}` },
2614
2614
  children: [
2615
- /* @__PURE__ */ s("div", { className: j.elementNameDate, onClick: () => d(v), children: Object.keys(a).map((y) => y === "nom" ? /* @__PURE__ */ s("div", { className: j.elementNameContainer, children: /* @__PURE__ */ p("div", { className: j.elementName, children: [
2616
- m && (i ? /* @__PURE__ */ s(zn, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ s(
2615
+ /* @__PURE__ */ s("div", { className: E.elementNameDate, onClick: () => d(v), children: Object.keys(a).map((y) => y === "nom" ? /* @__PURE__ */ s("div", { className: E.elementNameContainer, children: /* @__PURE__ */ p("div", { className: E.elementName, children: [
2616
+ h && (i ? /* @__PURE__ */ s(zn, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ s(
2617
2617
  "img",
2618
2618
  {
2619
2619
  style: { marginRight: 9 },
@@ -2622,36 +2622,36 @@ const Zn = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2622
2622
  }
2623
2623
  )),
2624
2624
  /* @__PURE__ */ s("span", { style: { color: i ? o : t }, children: g })
2625
- ] }) }) : y == "data" ? /* @__PURE__ */ s("div", { className: j.elementDate, children: _ ? new Date(_).toLocaleDateString() : "" }) : /* @__PURE__ */ s("div", { className: j.elementDate, children: n[y] })) }),
2626
- /* @__PURE__ */ p("div", { className: j.elementButtons, children: [
2625
+ ] }) }) : y == "data" ? /* @__PURE__ */ s("div", { className: E.elementDate, children: _ ? new Date(_).toLocaleDateString() : "" }) : /* @__PURE__ */ s("div", { className: E.elementDate, children: n[y] })) }),
2626
+ /* @__PURE__ */ p("div", { className: E.elementButtons, children: [
2627
2627
  n.processing && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2628
2628
  /* @__PURE__ */ s("img", { src: Pn }),
2629
- /* @__PURE__ */ s(te, { text: c, position: "left" })
2629
+ /* @__PURE__ */ s(ee, { text: c, position: "left" })
2630
2630
  ] }),
2631
2631
  l.filter && !n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2632
2632
  /* @__PURE__ */ s("button", { onClick: () => l.filter.onclick(n), children: /* @__PURE__ */ s("img", { src: En }) }),
2633
- /* @__PURE__ */ s(te, { text: l.filter.tooltiptext, position: "left" })
2633
+ /* @__PURE__ */ s(ee, { text: l.filter.tooltiptext, position: "left" })
2634
2634
  ] }),
2635
2635
  l.copy && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2636
2636
  /* @__PURE__ */ s("button", { onClick: () => l.copy.onclick(n), children: /* @__PURE__ */ s("img", { src: qn }) }),
2637
- /* @__PURE__ */ s(te, { text: l.copy.tooltiptext, position: "left" })
2637
+ /* @__PURE__ */ s(ee, { text: l.copy.tooltiptext, position: "left" })
2638
2638
  ] }),
2639
2639
  l.trash && !n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2640
2640
  /* @__PURE__ */ s("button", { onClick: () => l.trash.onclick(n), children: /* @__PURE__ */ s("img", { src: Rn }) }),
2641
- /* @__PURE__ */ s(te, { text: l.trash.tooltiptext, position: "left" })
2641
+ /* @__PURE__ */ s(ee, { text: l.trash.tooltiptext, position: "left" })
2642
2642
  ] }),
2643
2643
  n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2644
2644
  /* @__PURE__ */ s("img", { src: jn }),
2645
- /* @__PURE__ */ s(te, { text: u, position: "left" })
2645
+ /* @__PURE__ */ s(ee, { text: u, position: "left" })
2646
2646
  ] })
2647
2647
  ] }),
2648
- r && /* @__PURE__ */ s("div", { className: j.break }),
2649
- r && /* @__PURE__ */ p("div", { className: j.moreInfoContainer, children: [
2650
- /* @__PURE__ */ p("div", { className: j.moreInfo, onClick: () => C(!f), children: [
2648
+ r && /* @__PURE__ */ s("div", { className: E.break }),
2649
+ r && /* @__PURE__ */ p("div", { className: E.moreInfoContainer, children: [
2650
+ /* @__PURE__ */ p("div", { className: E.moreInfo, onClick: () => C(!f), children: [
2651
2651
  /* @__PURE__ */ s("span", { children: f ? "-" : "+" }),
2652
2652
  b(r.label)
2653
2653
  ] }),
2654
- r && f && /* @__PURE__ */ s("div", { className: j.moreInfoInfo, children: n[r.info] })
2654
+ r && f && /* @__PURE__ */ s("div", { className: E.moreInfoInfo, children: n[r.info] })
2655
2655
  ] })
2656
2656
  ]
2657
2657
  }
@@ -2702,12 +2702,12 @@ const Je = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2702
2702
  containerStyles: r = {},
2703
2703
  newElementButton: a,
2704
2704
  //{label: 'text', onClick: function(), disabled}/null
2705
- onClickElement: l = (h) => console.log(`OnCLickElement: ${h}`),
2705
+ onClickElement: l = (m) => console.log(`OnCLickElement: ${m}`),
2706
2706
  columns: c,
2707
2707
  // {'nom': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
2708
2708
  elementButtons: u,
2709
2709
  //{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
2710
- moreInfo: m = !1,
2710
+ moreInfo: h = !1,
2711
2711
  //{label: 'x'}
2712
2712
  processTooltip: g,
2713
2713
  //texto para el tooltip del simbolo "En proceso"
@@ -2715,40 +2715,40 @@ const Je = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2715
2715
  //texto para el tooltip del símbolo de candado para los elementos default
2716
2716
  showEye: v = !0
2717
2717
  }) => {
2718
- const { t: h } = k(), [f, C] = D(n);
2719
- M(() => {
2718
+ const { t: m } = B(), [f, C] = L(n);
2719
+ D(() => {
2720
2720
  n && C(n);
2721
2721
  }, [n]);
2722
2722
  const b = (y) => {
2723
2723
  if (f && f.length > 0) {
2724
- let w = [...f];
2725
- w.sort((x, N) => x[y].localeCompare(N[y])), C(w);
2724
+ let N = [...f];
2725
+ N.sort((x, w) => x[y].localeCompare(w[y])), C(N);
2726
2726
  }
2727
2727
  };
2728
2728
  return /* @__PURE__ */ p(
2729
2729
  "div",
2730
2730
  {
2731
- className: Z.elementSelector,
2731
+ className: z.elementSelector,
2732
2732
  style: { color: i, ...r },
2733
2733
  children: [
2734
2734
  /* @__PURE__ */ p(
2735
2735
  "div",
2736
2736
  {
2737
- className: Z.header,
2737
+ className: z.header,
2738
2738
  style: { borderBottom: `1px solid ${i}` },
2739
2739
  children: [
2740
- /* @__PURE__ */ s("div", { className: Z.nameDateContainer, children: Object.keys(c).map((y) => y === "nom" ? /* @__PURE__ */ s("div", { className: Z.elementName, children: /* @__PURE__ */ p("button", { onClick: () => b("name"), children: [
2741
- /* @__PURE__ */ s("span", { children: h(c.nom) }),
2740
+ /* @__PURE__ */ s("div", { className: z.nameDateContainer, children: Object.keys(c).map((y) => y === "nom" ? /* @__PURE__ */ s("div", { className: z.elementName, children: /* @__PURE__ */ p("button", { onClick: () => b("name"), children: [
2741
+ /* @__PURE__ */ s("span", { children: m(c.nom) }),
2742
2742
  /* @__PURE__ */ s("img", { src: Je, alt: "order arrow" })
2743
- ] }) }, y) : y === "data" ? /* @__PURE__ */ s("div", { className: Z.elementDate, children: /* @__PURE__ */ p("button", { onClick: () => b("date"), children: [
2744
- /* @__PURE__ */ s("span", { children: h(c.data) }),
2743
+ ] }) }, y) : y === "data" ? /* @__PURE__ */ s("div", { className: z.elementDate, children: /* @__PURE__ */ p("button", { onClick: () => b("date"), children: [
2744
+ /* @__PURE__ */ s("span", { children: m(c.data) }),
2745
2745
  /* @__PURE__ */ s("img", { src: Je, alt: "order arrow" })
2746
- ] }) }, y) : /* @__PURE__ */ s("div", { className: Z.elementDate, children: /* @__PURE__ */ s("span", { children: h(c[y]) }) }, y)) }),
2747
- /* @__PURE__ */ s("div", { className: Z.buttonsContainer })
2746
+ ] }) }, y) : /* @__PURE__ */ s("div", { className: z.elementDate, children: /* @__PURE__ */ s("span", { children: m(c[y]) }) }, y)) }),
2747
+ /* @__PURE__ */ s("div", { className: z.buttonsContainer })
2748
2748
  ]
2749
2749
  }
2750
2750
  ),
2751
- /* @__PURE__ */ s("div", { className: Z.elementListContainer, children: f && f.length > 0 && f.map((y) => /* @__PURE__ */ s(
2751
+ /* @__PURE__ */ s("div", { className: z.elementListContainer, children: f && f.length > 0 && f.map((y) => /* @__PURE__ */ s(
2752
2752
  Ct,
2753
2753
  {
2754
2754
  isActive: d == y.id,
@@ -2758,21 +2758,21 @@ const Je = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2758
2758
  onClickElement: l,
2759
2759
  columns: c,
2760
2760
  elementButtons: u,
2761
- moreInfo: m,
2761
+ moreInfo: h,
2762
2762
  processTooltip: g,
2763
2763
  defaultTooltip: _,
2764
2764
  showEye: v
2765
2765
  },
2766
2766
  `elementKey${y.id}`
2767
2767
  )) }),
2768
- a && /* @__PURE__ */ s("div", { className: Z.newElementButtonContainer, children: /* @__PURE__ */ s(
2768
+ a && /* @__PURE__ */ s("div", { className: z.newElementButtonContainer, children: /* @__PURE__ */ s(
2769
2769
  ye,
2770
2770
  {
2771
2771
  style: { ...t },
2772
2772
  onClick: a.onClick,
2773
2773
  borderColor: "grey",
2774
2774
  disabled: a.disabled || !1,
2775
- children: h(a.label)
2775
+ children: m(a.label)
2776
2776
  }
2777
2777
  ) })
2778
2778
  ]
@@ -2826,12 +2826,12 @@ Kn.propTypes = {
2826
2826
  defaultTooltip: e.string,
2827
2827
  showEye: e.bool
2828
2828
  };
2829
- const pe = {
2829
+ const ue = {
2830
2830
  text: "text",
2831
2831
  password: "password",
2832
2832
  radioList: "radioList",
2833
2833
  select: "select"
2834
- }, Hn = "_textInputContainer_1o3iy_2", Un = "_labelContainer_1o3iy_5", Gn = "_inputContainer_1o3iy_8", Wn = "_showPasswordButton_1o3iy_14", Yn = "_forgotPassButton_1o3iy_26", me = {
2834
+ }, Hn = "_textInputContainer_1o3iy_2", Un = "_labelContainer_1o3iy_5", Gn = "_inputContainer_1o3iy_8", Wn = "_showPasswordButton_1o3iy_14", Yn = "_forgotPassButton_1o3iy_26", pe = {
2835
2835
  textInputContainer: Hn,
2836
2836
  labelContainer: Un,
2837
2837
  inputContainer: Gn,
@@ -2840,16 +2840,16 @@ const pe = {
2840
2840
  };
2841
2841
  var Qn = (n) => n.type === "checkbox", Xn = (n) => n instanceof Date, ft = (n) => n == null;
2842
2842
  const Jn = (n) => typeof n == "object";
2843
- var ge = (n) => !ft(n) && !Array.isArray(n) && Jn(n) && !Xn(n), e1 = (n) => ge(n) && n.target ? Qn(n.target) ? n.target.checked : n.target.value : n, t1 = (n) => n.substring(0, n.search(/\.\d+(\.|$)/)) || n, n1 = (n, d) => n.has(t1(d)), i1 = (n) => {
2843
+ var he = (n) => !ft(n) && !Array.isArray(n) && Jn(n) && !Xn(n), e1 = (n) => he(n) && n.target ? Qn(n.target) ? n.target.checked : n.target.value : n, t1 = (n) => n.substring(0, n.search(/\.\d+(\.|$)/)) || n, n1 = (n, d) => n.has(t1(d)), i1 = (n) => {
2844
2844
  const d = n.constructor && n.constructor.prototype;
2845
- return ge(d) && d.hasOwnProperty("isPrototypeOf");
2845
+ return he(d) && d.hasOwnProperty("isPrototypeOf");
2846
2846
  }, o1 = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
2847
2847
  function bt(n) {
2848
2848
  let d;
2849
2849
  const i = Array.isArray(n), o = typeof FileList < "u" ? n instanceof FileList : !1;
2850
2850
  if (n instanceof Date)
2851
2851
  d = new Date(n);
2852
- else if (!(o1 && (n instanceof Blob || o)) && (i || ge(n)))
2852
+ else if (!(o1 && (n instanceof Blob || o)) && (i || he(n)))
2853
2853
  if (d = i ? [] : {}, !i && !i1(n))
2854
2854
  d = n;
2855
2855
  else
@@ -2859,8 +2859,8 @@ function bt(n) {
2859
2859
  return n;
2860
2860
  return d;
2861
2861
  }
2862
- var _t = (n) => /^\w*$/.test(n), Re = (n) => n === void 0, s1 = (n) => Array.isArray(n) ? n.filter(Boolean) : [], yt = (n) => s1(n.replace(/["|']|\]/g, "").split(/\.|\[/)), I = (n, d, i) => {
2863
- if (!d || !ge(n))
2862
+ var _t = (n) => /^\w*$/.test(n), Re = (n) => n === void 0, s1 = (n) => Array.isArray(n) ? n.filter(Boolean) : [], yt = (n) => s1(n.replace(/["|']|\]/g, "").split(/\.|\[/)), A = (n, d, i) => {
2863
+ if (!d || !he(n))
2864
2864
  return i;
2865
2865
  const o = (_t(d) ? [d] : yt(d)).reduce((t, r) => ft(t) ? t : t[r], n);
2866
2866
  return Re(o) || o === n ? Re(n[d]) ? i : n[d] : o;
@@ -2872,7 +2872,7 @@ var _t = (n) => /^\w*$/.test(n), Re = (n) => n === void 0, s1 = (n) => Array.isA
2872
2872
  let c = i;
2873
2873
  if (o !== a) {
2874
2874
  const u = n[l];
2875
- c = ge(u) || Array.isArray(u) ? u : isNaN(+t[o + 1]) ? {} : [];
2875
+ c = he(u) || Array.isArray(u) ? u : isNaN(+t[o + 1]) ? {} : [];
2876
2876
  }
2877
2877
  if (l === "__proto__" || l === "constructor" || l === "prototype")
2878
2878
  return;
@@ -2900,7 +2900,7 @@ var r1 = (n, d, i, o = !0) => {
2900
2900
  });
2901
2901
  return t;
2902
2902
  };
2903
- const xt = typeof window < "u" ? ce.useLayoutEffect : ce.useEffect;
2903
+ const xt = typeof window < "u" ? le.useLayoutEffect : le.useEffect;
2904
2904
  function a1(n) {
2905
2905
  const d = ze(), { control: i = d.control, disabled: o, name: t, exact: r } = n || {}, [a, l] = $.useState(i._formState), c = $.useRef({
2906
2906
  isDirty: !1,
@@ -2926,7 +2926,7 @@ function a1(n) {
2926
2926
  c.current.isValid && i._setValid(!0);
2927
2927
  }, [i]), $.useMemo(() => r1(a, i, c.current, !1), [a, i]);
2928
2928
  }
2929
- var l1 = (n) => typeof n == "string", c1 = (n, d, i, o, t) => l1(n) ? I(i, n, t) : Array.isArray(n) ? n.map((r) => I(i, r)) : i;
2929
+ var l1 = (n) => typeof n == "string", c1 = (n, d, i, o, t) => l1(n) ? A(i, n, t) : Array.isArray(n) ? n.map((r) => A(i, r)) : i;
2930
2930
  function d1(n) {
2931
2931
  const d = ze(), { control: i = d.control, name: o, defaultValue: t, disabled: r, exact: a } = n || {}, l = $.useRef(t), [c, u] = $.useState(i._getWatch(o, l.current));
2932
2932
  return xt(() => i._subscribe({
@@ -2935,58 +2935,58 @@ function d1(n) {
2935
2935
  values: !0
2936
2936
  },
2937
2937
  exact: a,
2938
- callback: (m) => !r && u(c1(o, i._names, m.values || i._formValues, !1, l.current))
2938
+ callback: (h) => !r && u(c1(o, i._names, h.values || i._formValues, !1, l.current))
2939
2939
  }), [o, i, r, a]), $.useEffect(() => i._removeUnmounted()), c;
2940
2940
  }
2941
2941
  function u1(n) {
2942
2942
  const d = ze(), { name: i, disabled: o, control: t = d.control, shouldUnregister: r } = n, a = n1(t._names.array, i), l = d1({
2943
2943
  control: t,
2944
2944
  name: i,
2945
- defaultValue: I(t._formValues, i, I(t._defaultValues, i, n.defaultValue)),
2945
+ defaultValue: A(t._formValues, i, A(t._defaultValues, i, n.defaultValue)),
2946
2946
  exact: !0
2947
2947
  }), c = a1({
2948
2948
  control: t,
2949
2949
  name: i,
2950
2950
  exact: !0
2951
- }), u = $.useRef(n), m = $.useRef(t.register(i, {
2951
+ }), u = $.useRef(n), h = $.useRef(t.register(i, {
2952
2952
  ...n.rules,
2953
2953
  value: l,
2954
2954
  ...Me(n.disabled) ? { disabled: n.disabled } : {}
2955
2955
  })), g = $.useMemo(() => Object.defineProperties({}, {
2956
2956
  invalid: {
2957
2957
  enumerable: !0,
2958
- get: () => !!I(c.errors, i)
2958
+ get: () => !!A(c.errors, i)
2959
2959
  },
2960
2960
  isDirty: {
2961
2961
  enumerable: !0,
2962
- get: () => !!I(c.dirtyFields, i)
2962
+ get: () => !!A(c.dirtyFields, i)
2963
2963
  },
2964
2964
  isTouched: {
2965
2965
  enumerable: !0,
2966
- get: () => !!I(c.touchedFields, i)
2966
+ get: () => !!A(c.touchedFields, i)
2967
2967
  },
2968
2968
  isValidating: {
2969
2969
  enumerable: !0,
2970
- get: () => !!I(c.validatingFields, i)
2970
+ get: () => !!A(c.validatingFields, i)
2971
2971
  },
2972
2972
  error: {
2973
2973
  enumerable: !0,
2974
- get: () => I(c.errors, i)
2974
+ get: () => A(c.errors, i)
2975
2975
  }
2976
- }), [c, i]), _ = $.useCallback((C) => m.current.onChange({
2976
+ }), [c, i]), _ = $.useCallback((C) => h.current.onChange({
2977
2977
  target: {
2978
2978
  value: e1(C),
2979
2979
  name: i
2980
2980
  },
2981
2981
  type: tt.CHANGE
2982
- }), [i]), v = $.useCallback(() => m.current.onBlur({
2982
+ }), [i]), v = $.useCallback(() => h.current.onBlur({
2983
2983
  target: {
2984
- value: I(t._formValues, i),
2984
+ value: A(t._formValues, i),
2985
2985
  name: i
2986
2986
  },
2987
2987
  type: tt.BLUR
2988
- }), [i, t._formValues]), h = $.useCallback((C) => {
2989
- const b = I(t._fields, i);
2988
+ }), [i, t._formValues]), m = $.useCallback((C) => {
2989
+ const b = A(t._fields, i);
2990
2990
  b && C && (b._f.ref = {
2991
2991
  focus: () => C.focus && C.focus(),
2992
2992
  select: () => C.select && C.select(),
@@ -2999,21 +2999,21 @@ function u1(n) {
2999
2999
  ...Me(o) || c.disabled ? { disabled: c.disabled || o } : {},
3000
3000
  onChange: _,
3001
3001
  onBlur: v,
3002
- ref: h
3003
- }), [i, o, c.disabled, _, v, h, l]);
3002
+ ref: m
3003
+ }), [i, o, c.disabled, _, v, m, l]);
3004
3004
  return $.useEffect(() => {
3005
3005
  const C = t._options.shouldUnregister || r;
3006
3006
  t.register(i, {
3007
3007
  ...u.current.rules,
3008
3008
  ...Me(u.current.disabled) ? { disabled: u.current.disabled } : {}
3009
3009
  });
3010
- const b = (y, w) => {
3011
- const x = I(t._fields, y);
3012
- x && x._f && (x._f.mount = w);
3010
+ const b = (y, N) => {
3011
+ const x = A(t._fields, y);
3012
+ x && x._f && (x._f.mount = N);
3013
3013
  };
3014
3014
  if (b(i, !0), C) {
3015
- const y = bt(I(t._options.defaultValues, i));
3016
- et(t._defaultValues, i, y), Re(I(t._formValues, i)) && et(t._formValues, i, y);
3015
+ const y = bt(A(t._options.defaultValues, i));
3016
+ et(t._defaultValues, i, y), Re(A(t._formValues, i)) && et(t._formValues, i, y);
3017
3017
  }
3018
3018
  return !a && t.register(i), () => {
3019
3019
  (a ? C && !t._state.action : C) ? t.unregister(i) : b(i, !1);
@@ -3031,12 +3031,12 @@ function u1(n) {
3031
3031
  }
3032
3032
  const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3033
3033
  errorMessage: p1
3034
- }, xe = ({
3034
+ }, ge = ({
3035
3035
  errorMessage: n,
3036
3036
  errorColor: d = "red",
3037
3037
  containerStyles: i
3038
3038
  }) => {
3039
- const { t: o } = k();
3039
+ const { t: o } = B();
3040
3040
  return /* @__PURE__ */ s(
3041
3041
  "div",
3042
3042
  {
@@ -3055,45 +3055,45 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3055
3055
  validateFunction: l,
3056
3056
  placeholder: c,
3057
3057
  errorColor: u = "red",
3058
- width: m = 325,
3058
+ width: h = 325,
3059
3059
  onClickForgotPass: g = () => {
3060
3060
  console.log("Click on forgot password");
3061
3061
  },
3062
3062
  forgotPassLabel: _ = "forgot-password"
3063
- } = n, { t: v } = k(), { control: h, trigger: f, clearErrors: C } = d, [b, y] = D(!1), w = ne(a);
3064
- M(() => {
3065
- w.current !== a && (a ? f(i) : C(i), w.current = a);
3063
+ } = n, { t: v } = B(), { control: m, trigger: f, clearErrors: C } = d, [b, y] = L(!1), N = te(a);
3064
+ D(() => {
3065
+ N.current !== a && (a ? f(i) : C(i), N.current = a);
3066
3066
  }, [a, i, f, C]);
3067
3067
  const x = () => o ? o === "password" && b ? "text" : o : "text";
3068
3068
  return /* @__PURE__ */ s(
3069
3069
  ve,
3070
3070
  {
3071
3071
  name: i,
3072
- control: h,
3072
+ control: m,
3073
3073
  rules: {
3074
3074
  required: a ? `${v(t)} ${v("errorMessages.required")}` : !1,
3075
3075
  maxLength: r || void 0,
3076
3076
  validate: l || void 0
3077
3077
  },
3078
- render: ({ field: N, fieldState: B }) => {
3079
- var S;
3080
- return /* @__PURE__ */ p("div", { className: me.textInputContainer, children: [
3081
- /* @__PURE__ */ p("h3", { className: me.labelContainer, children: [
3078
+ render: ({ field: w, fieldState: S }) => {
3079
+ var k;
3080
+ return /* @__PURE__ */ p("div", { className: pe.textInputContainer, children: [
3081
+ /* @__PURE__ */ p("h3", { className: pe.labelContainer, children: [
3082
3082
  v(t),
3083
3083
  " ",
3084
- a && /* @__PURE__ */ s("label", { style: { color: B.error ? u : "" }, children: "*" })
3084
+ a && /* @__PURE__ */ s("label", { style: { color: S.error ? u : "" }, children: "*" })
3085
3085
  ] }),
3086
3086
  /* @__PURE__ */ p(
3087
3087
  "div",
3088
3088
  {
3089
- style: { position: "relative", width: m },
3090
- className: me.inputContainer,
3089
+ style: { position: "relative", width: h },
3090
+ className: pe.inputContainer,
3091
3091
  children: [
3092
3092
  /* @__PURE__ */ s(
3093
3093
  "input",
3094
3094
  {
3095
3095
  type: x(),
3096
- ...N,
3096
+ ...w,
3097
3097
  placeholder: c ? v(c) : "",
3098
3098
  maxLength: r || void 0
3099
3099
  }
@@ -3103,18 +3103,18 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3103
3103
  {
3104
3104
  onClick: () => y(!b),
3105
3105
  type: "button",
3106
- className: me.showPasswordButton,
3106
+ className: pe.showPasswordButton,
3107
3107
  children: b ? "🙈" : "👁️"
3108
3108
  }
3109
3109
  )
3110
3110
  ]
3111
3111
  }
3112
3112
  ),
3113
- o == "password" && /* @__PURE__ */ s("div", { className: me.forgotPassButton, children: /* @__PURE__ */ s("button", { onClick: g, children: v(_) }) }),
3113
+ o == "password" && /* @__PURE__ */ s("div", { className: pe.forgotPassButton, children: /* @__PURE__ */ s("button", { onClick: g, children: v(_) }) }),
3114
3114
  /* @__PURE__ */ s(
3115
- xe,
3115
+ ge,
3116
3116
  {
3117
- errorMessage: (S = B.error) == null ? void 0 : S.message,
3117
+ errorMessage: (k = S.error) == null ? void 0 : k.message,
3118
3118
  errorColor: u
3119
3119
  }
3120
3120
  )
@@ -3126,9 +3126,9 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3126
3126
  formContainer: h1,
3127
3127
  formObjectContainer: g1,
3128
3128
  buttonContainer: C1
3129
- }, f1 = "_inputsContainer_10t9s_2", ae = {
3129
+ }, f1 = "_inputsContainer_10t9s_2", re = {
3130
3130
  inputsContainer: f1
3131
- }, b1 = "_selectInputContainer_1rj0h_2", _1 = "_labelContainer_1rj0h_6", y1 = "_inputContainer_1rj0h_9", v1 = "_selectInput_1rj0h_2", x1 = "_option_1rj0h_23", w1 = "_dropdownArrow_1rj0h_26", le = {
3131
+ }, b1 = "_selectInputContainer_1rj0h_2", _1 = "_labelContainer_1rj0h_6", y1 = "_inputContainer_1rj0h_9", v1 = "_selectInput_1rj0h_2", x1 = "_option_1rj0h_23", w1 = "_dropdownArrow_1rj0h_26", ae = {
3132
3132
  selectInputContainer: b1,
3133
3133
  labelContainer: _1,
3134
3134
  inputContainer: y1,
@@ -3145,12 +3145,12 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3145
3145
  validateFunction: l,
3146
3146
  placeholder: c,
3147
3147
  errorColor: u = "red",
3148
- width: m = 325,
3148
+ width: h = 325,
3149
3149
  options: g = []
3150
- } = n, { t: _ } = k(), { control: v, trigger: h, clearErrors: f } = d, C = ne(a);
3151
- return M(() => {
3152
- C.current !== a && (a ? h(i) : f(i), C.current = a);
3153
- }, [a, i, h, f]), /* @__PURE__ */ s(
3150
+ } = n, { t: _ } = B(), { control: v, trigger: m, clearErrors: f } = d, C = te(a);
3151
+ return D(() => {
3152
+ C.current !== a && (a ? m(i) : f(i), C.current = a);
3153
+ }, [a, i, m, f]), /* @__PURE__ */ s(
3154
3154
  ve,
3155
3155
  {
3156
3156
  name: i,
@@ -3160,33 +3160,33 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3160
3160
  validate: l || void 0
3161
3161
  },
3162
3162
  render: ({ field: b, fieldState: y }) => {
3163
- var w;
3164
- return /* @__PURE__ */ p("div", { className: le.selectInputContainer, children: [
3165
- /* @__PURE__ */ p("h3", { className: le.labelContainer, children: [
3163
+ var N;
3164
+ return /* @__PURE__ */ p("div", { className: ae.selectInputContainer, children: [
3165
+ /* @__PURE__ */ p("h3", { className: ae.labelContainer, children: [
3166
3166
  _(t),
3167
3167
  " ",
3168
3168
  a && /* @__PURE__ */ s("label", { style: { color: y.error ? u : "" }, children: "*" })
3169
3169
  ] }),
3170
- /* @__PURE__ */ p("div", { className: le.inputContainer, style: { width: m }, children: [
3170
+ /* @__PURE__ */ p("div", { className: ae.inputContainer, style: { width: h }, children: [
3171
3171
  /* @__PURE__ */ p(
3172
3172
  "select",
3173
3173
  {
3174
3174
  ...b,
3175
3175
  onChange: (x) => {
3176
- const N = x.target.value, B = g.every((S) => typeof S.value == "number") ? Number(N) : N;
3177
- b.onChange(B);
3176
+ const w = x.target.value, S = g.every((k) => typeof k.value == "number") ? Number(w) : w;
3177
+ b.onChange(S);
3178
3178
  },
3179
- className: le.selectInput,
3179
+ className: ae.selectInput,
3180
3180
  children: [
3181
3181
  /* @__PURE__ */ s("option", { value: "", disabled: !0, hidden: !0, children: _(c || "selectOption") }),
3182
- g.map((x, N) => /* @__PURE__ */ s(
3182
+ g.map((x, w) => /* @__PURE__ */ s(
3183
3183
  "option",
3184
3184
  {
3185
3185
  value: x.value,
3186
- className: le.option,
3186
+ className: ae.option,
3187
3187
  children: _(x.label)
3188
3188
  },
3189
- N
3189
+ w
3190
3190
  ))
3191
3191
  ]
3192
3192
  }
@@ -3196,14 +3196,14 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3196
3196
  {
3197
3197
  src: N1,
3198
3198
  alt: "Open",
3199
- className: le.dropdownArrow
3199
+ className: ae.dropdownArrow
3200
3200
  }
3201
3201
  )
3202
3202
  ] }),
3203
3203
  /* @__PURE__ */ s(
3204
- xe,
3204
+ ge,
3205
3205
  {
3206
- errorMessage: (w = y.error) == null ? void 0 : w.message,
3206
+ errorMessage: (N = y.error) == null ? void 0 : N.message,
3207
3207
  errorColor: u
3208
3208
  }
3209
3209
  )
@@ -3211,7 +3211,7 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3211
3211
  }
3212
3212
  }
3213
3213
  );
3214
- }, B1 = "_radioButtonContainer_1e994_2", S1 = "_wholeInputContainer_1e994_5", $1 = "_questionContainer_1e994_27", D1 = "_radioQuestion_1e994_59", M1 = "_inputContainer_1e994_63", L1 = "_radioInput_1e994_93", J = {
3214
+ }, B1 = "_radioButtonContainer_1e994_2", S1 = "_wholeInputContainer_1e994_5", $1 = "_questionContainer_1e994_27", D1 = "_radioQuestion_1e994_59", M1 = "_inputContainer_1e994_63", L1 = "_radioInput_1e994_93", X = {
3215
3215
  radioButtonContainer: B1,
3216
3216
  wholeInputContainer: S1,
3217
3217
  questionContainer: $1,
@@ -3227,87 +3227,87 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3227
3227
  errorColor: a = "red",
3228
3228
  options: l = [],
3229
3229
  multi: c = !1
3230
- } = n, { t: u } = k(), { control: m, trigger: g, clearErrors: _ } = d, v = ({ options: C, onChange: b, actualValue: y }) => {
3230
+ } = n, { t: u } = B(), { control: h, trigger: g, clearErrors: _ } = d, v = ({ options: C, onChange: b, actualValue: y }) => {
3231
3231
  if (c && y && y.length > 0) {
3232
- let w = y.filter((x) => x !== C);
3233
- b(w);
3232
+ let N = y.filter((x) => x !== C);
3233
+ b(N);
3234
3234
  }
3235
- }, h = ({ options: C, onChange: b, actualValue: y }) => {
3235
+ }, m = ({ options: C, onChange: b, actualValue: y }) => {
3236
3236
  c ? y && y.length > 0 ? b([...y, C]) : b([C]) : b(C);
3237
- }, f = ne(t);
3238
- return M(() => {
3237
+ }, f = te(t);
3238
+ return D(() => {
3239
3239
  f.current !== t && (t ? g(i) : _(i), f.current = t);
3240
3240
  }, [t, i, g, _]), /* @__PURE__ */ s(
3241
3241
  ve,
3242
3242
  {
3243
- control: m,
3243
+ control: h,
3244
3244
  name: i,
3245
3245
  rules: {
3246
3246
  validate: (C) => t && (C == null || C === "") ? `${u(o)} ${u("errorMessages.required")}` : null
3247
3247
  },
3248
3248
  render: ({
3249
3249
  formState: { errors: C },
3250
- field: { onChange: b, onBlur: y, value: w, ref: x },
3251
- fieldState: N
3250
+ field: { onChange: b, onBlur: y, value: N, ref: x },
3251
+ fieldState: w
3252
3252
  }) => {
3253
- var B;
3254
- return /* @__PURE__ */ s("div", { id: i + "id", className: J.radioButtonContainer, children: /* @__PURE__ */ p("div", { className: J.wholeInputContainer, children: [
3255
- o && /* @__PURE__ */ s("div", { className: J.questionContainer, children: /* @__PURE__ */ p(
3253
+ var S;
3254
+ return /* @__PURE__ */ s("div", { id: i + "id", className: X.radioButtonContainer, children: /* @__PURE__ */ p("div", { className: X.wholeInputContainer, children: [
3255
+ o && /* @__PURE__ */ s("div", { className: X.questionContainer, children: /* @__PURE__ */ p(
3256
3256
  "h3",
3257
3257
  {
3258
3258
  htmlFor: i + "id",
3259
- className: `${J.radioQuestion} ${t && J.required}`,
3259
+ className: `${X.radioQuestion} ${t && X.required}`,
3260
3260
  children: [
3261
3261
  u(o),
3262
3262
  " ",
3263
3263
  t && /* @__PURE__ */ s(
3264
3264
  "label",
3265
3265
  {
3266
- style: { color: N.error ? a : "" },
3266
+ style: { color: w.error ? a : "" },
3267
3267
  children: "*"
3268
3268
  }
3269
3269
  )
3270
3270
  ]
3271
3271
  }
3272
3272
  ) }),
3273
- /* @__PURE__ */ p("div", { className: J.inputContainer, children: [
3273
+ /* @__PURE__ */ p("div", { className: X.inputContainer, children: [
3274
3274
  l.map(
3275
3275
  ({
3276
- label: S,
3277
- value: E,
3278
- disabled: A = !1,
3279
- italicLabel: W
3276
+ label: k,
3277
+ value: q,
3278
+ disabled: K = !1,
3279
+ italicLabel: xe
3280
3280
  }, P) => {
3281
- const q = w && c ? w.isArray && (w == null ? void 0 : w.length) > 0 && w.some((z) => z === E) : w === E;
3281
+ const R = N && c ? N.isArray && (N == null ? void 0 : N.length) > 0 && N.some((j) => j === q) : N === q;
3282
3282
  return /* @__PURE__ */ p("label", { children: [
3283
3283
  /* @__PURE__ */ s(
3284
3284
  "input",
3285
3285
  {
3286
3286
  type: "radio",
3287
- checked: q,
3287
+ checked: R,
3288
3288
  onChange: () => {
3289
- c ? q ? v({
3290
- actualValue: w,
3289
+ c ? R ? v({
3290
+ actualValue: N,
3291
3291
  options: l,
3292
3292
  onChange: b
3293
- }) : h({
3294
- actualValue: w,
3293
+ }) : m({
3294
+ actualValue: N,
3295
3295
  options: l,
3296
3296
  onChange: b
3297
- }) : b(E);
3297
+ }) : b(q);
3298
3298
  },
3299
- className: J.radioInput
3299
+ className: X.radioInput
3300
3300
  }
3301
3301
  ),
3302
3302
  /* @__PURE__ */ s("span", { className: "radio-custom" }),
3303
- u(S)
3303
+ u(k)
3304
3304
  ] }, `inputRadio ${P}`);
3305
3305
  }
3306
3306
  ),
3307
3307
  /* @__PURE__ */ s(
3308
- xe,
3308
+ ge,
3309
3309
  {
3310
- errorMessage: (B = N.error) == null ? void 0 : B.message,
3310
+ errorMessage: (S = w.error) == null ? void 0 : S.message,
3311
3311
  errorColor: a
3312
3312
  }
3313
3313
  )
@@ -3316,7 +3316,7 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3316
3316
  }
3317
3317
  }
3318
3318
  );
3319
- }, F1 = "_rankingSliderContainer_1yj0p_2", V1 = "_labelContainer_1yj0p_11", A1 = "_inputContainer_1yj0p_15", I1 = "_slider_1yj0p_19", O1 = "_thumb_1yj0p_25", R1 = "_trackLeft_1yj0p_35", q1 = "_trackRight_1yj0p_40", E1 = "_labels_1yj0p_44", P1 = "_labelsText_1yj0p_60", R = {
3319
+ }, F1 = "_rankingSliderContainer_1yj0p_2", V1 = "_labelContainer_1yj0p_11", A1 = "_inputContainer_1yj0p_15", I1 = "_slider_1yj0p_19", O1 = "_thumb_1yj0p_25", R1 = "_trackLeft_1yj0p_35", q1 = "_trackRight_1yj0p_40", E1 = "_labels_1yj0p_44", P1 = "_labelsText_1yj0p_60", O = {
3320
3320
  rankingSliderContainer: F1,
3321
3321
  labelContainer: V1,
3322
3322
  inputContainer: A1,
@@ -3329,90 +3329,97 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3329
3329
  }, j1 = ({ input: n, reactHookFormInstance: d }) => {
3330
3330
  const {
3331
3331
  code: i,
3332
- type: o,
3333
- label: t,
3334
- minValue: r = 1,
3335
- maxValue: a = 5,
3336
- defValue: l = 3,
3337
- thumbColor: c = "#B32F5D",
3338
- trackColors: u = ["#B32F5D", "#EFEFEF"],
3332
+ label: o,
3333
+ minValue: t = 1,
3334
+ maxValue: r = 5,
3335
+ defValue: a = 3,
3336
+ thumbColor: l = "#B32F5D",
3337
+ trackColors: c = ["#B32F5D", "#EFEFEF"],
3339
3338
  // [ LEFT, RIGHT ],
3340
- required: m,
3341
- errorColor: g = "red",
3342
- width: _ = 265,
3343
- minText: v,
3344
- maxText: h
3345
- } = n, { t: f } = k(), { control: C, trigger: b, clearErrors: y } = d, w = ne(m);
3346
- M(() => {
3347
- w.current !== m && (m ? b(i) : y(i), w.current = m);
3348
- }, [m, i, b, y]);
3349
- const [x, N] = D(3), B = Array.from({ length: a - r + 1 }, (S, E) => r + E);
3339
+ required: u,
3340
+ errorColor: h = "red",
3341
+ width: g = 265,
3342
+ minText: _,
3343
+ maxText: v
3344
+ } = n, { t: m } = B(), { control: f, trigger: C, clearErrors: b } = d, y = te(u);
3345
+ D(() => {
3346
+ y.current !== u && (u ? C(i) : b(i), y.current = u);
3347
+ }, [u, i, C, b]);
3348
+ const N = Array.from(
3349
+ { length: r - t + 1 },
3350
+ (x, w) => t + w
3351
+ );
3350
3352
  return /* @__PURE__ */ s(
3351
3353
  ve,
3352
3354
  {
3353
3355
  name: i,
3354
- control: C,
3356
+ control: f,
3357
+ defaultValue: a,
3355
3358
  rules: {
3356
- // required: required
3357
- // ? `${t(label)} ${t("errorMessages.required")}`
3358
- // : false,
3359
- // maxLength: maxLength || undefined,
3360
- // validate: validateFunction || undefined,
3359
+ required: u ? `${m(o)} ${m("errorMessages.required")}` : !1
3361
3360
  },
3362
- render: ({ field: S, fieldState: E }) => /* @__PURE__ */ p("div", { className: R.rankingSliderContainer, children: [
3363
- /* @__PURE__ */ p("p", { className: R.labelContainer, children: [
3364
- f(t),
3365
- " "
3366
- ] }),
3367
- /* @__PURE__ */ p("div", { className: R.inputContainer, style: { width: _ }, children: [
3368
- /* @__PURE__ */ s(
3369
- lt,
3370
- {
3371
- min: r,
3372
- max: a,
3373
- step: 1,
3374
- value: x,
3375
- defaultValue: l,
3376
- onChange: N,
3377
- marks: !0,
3378
- className: R.slider,
3379
- thumbClassName: R.thumb,
3380
- renderThumb: (A, W) => /* @__PURE__ */ s(
3381
- "div",
3382
- {
3383
- ...A,
3384
- style: {
3385
- ...A.style,
3386
- backgroundColor: c
3387
- }
3388
- }
3389
- ),
3390
- renderTrack: (A, W) => {
3391
- const P = `${A.className || ""} ${W.index === 0 ? R.trackLeft : R.trackRight}`;
3392
- return /* @__PURE__ */ s(
3361
+ render: ({ field: x, fieldState: w }) => {
3362
+ var S;
3363
+ return /* @__PURE__ */ p("div", { className: O.rankingSliderContainer, children: [
3364
+ /* @__PURE__ */ p("p", { className: O.labelContainer, children: [
3365
+ m(o),
3366
+ " "
3367
+ ] }),
3368
+ /* @__PURE__ */ p("div", { className: O.inputContainer, style: { width: g }, children: [
3369
+ /* @__PURE__ */ s(
3370
+ lt,
3371
+ {
3372
+ min: t,
3373
+ max: r,
3374
+ step: 1,
3375
+ value: x.value ?? a,
3376
+ onChange: (k) => x.onChange(k),
3377
+ marks: !0,
3378
+ className: O.slider,
3379
+ thumbClassName: O.thumb,
3380
+ renderThumb: (k) => /* @__PURE__ */ s(
3393
3381
  "div",
3394
3382
  {
3395
- ...A,
3396
- className: P,
3383
+ ...k,
3397
3384
  style: {
3398
- ...A.style,
3399
- backgroundColor: u[W.index] || "#000"
3400
- // color según índice
3385
+ ...k.style,
3386
+ backgroundColor: l
3401
3387
  }
3402
3388
  }
3403
- );
3404
- },
3405
- trackClassName: R.track,
3406
- markClassName: R.mark
3389
+ ),
3390
+ renderTrack: (k, q) => {
3391
+ const K = `${k.className || ""} ${q.index === 0 ? O.trackLeft : O.trackRight}`;
3392
+ return /* @__PURE__ */ s(
3393
+ "div",
3394
+ {
3395
+ ...k,
3396
+ className: K,
3397
+ style: {
3398
+ ...k.style,
3399
+ backgroundColor: c[q.index] || "#000"
3400
+ }
3401
+ }
3402
+ );
3403
+ },
3404
+ trackClassName: O.track,
3405
+ markClassName: O.mark
3406
+ }
3407
+ ),
3408
+ /* @__PURE__ */ s("div", { className: O.labels, children: N.map((k) => /* @__PURE__ */ s("span", { children: k }, k)) }),
3409
+ /* @__PURE__ */ p("div", { className: O.labels, children: [
3410
+ /* @__PURE__ */ s("span", { className: O.labelsText, children: m(_) }),
3411
+ /* @__PURE__ */ s("span", { className: O.labelsText, children: m(v) })
3412
+ ] })
3413
+ ] }),
3414
+ /* @__PURE__ */ s(
3415
+ ge,
3416
+ {
3417
+ errorMessage: (S = w.error) == null ? void 0 : S.message,
3418
+ errorColor: h
3407
3419
  }
3408
- ),
3409
- /* @__PURE__ */ s("div", { className: R.labels, children: B.map((A) => /* @__PURE__ */ s("span", { children: A }, A)) }),
3410
- /* @__PURE__ */ p("div", { className: R.labels, children: [
3411
- /* @__PURE__ */ s("span", { className: R.labelsText, children: f(v) }),
3412
- /* @__PURE__ */ s("span", { className: R.labelsText, children: f(h) })
3413
- ] })
3414
- ] })
3415
- ] })
3420
+ )
3421
+ ] });
3422
+ }
3416
3423
  }
3417
3424
  );
3418
3425
  }, Te = ({
@@ -3420,21 +3427,21 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3420
3427
  inputContainerStyles: d,
3421
3428
  reactHookFormInstance: i
3422
3429
  }) => {
3423
- const { watch: o } = i, t = o(), r = he(() => n.map((a) => {
3430
+ const { watch: o } = i, t = o(), r = me(() => n.map((a) => {
3424
3431
  const l = typeof a.required == "function" ? a.required(t) : a.required;
3425
3432
  return {
3426
3433
  ...a,
3427
3434
  required: l
3428
3435
  };
3429
3436
  }), [n, t]);
3430
- return /* @__PURE__ */ s("div", { className: ae.inputsContainer, children: r == null ? void 0 : r.map((a, l) => {
3437
+ return /* @__PURE__ */ s("div", { className: re.inputsContainer, children: r == null ? void 0 : r.map((a, l) => {
3431
3438
  const { inputType: c } = a;
3432
3439
  switch (c) {
3433
- case pe.text:
3440
+ case ue.text:
3434
3441
  return /* @__PURE__ */ s(
3435
3442
  "div",
3436
3443
  {
3437
- className: ae.inputContainer,
3444
+ className: re.inputContainer,
3438
3445
  style: { ...d },
3439
3446
  children: /* @__PURE__ */ s(
3440
3447
  it,
@@ -3446,11 +3453,11 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3446
3453
  },
3447
3454
  `${a.code}${l}`
3448
3455
  );
3449
- case pe.password:
3456
+ case ue.password:
3450
3457
  return /* @__PURE__ */ s(
3451
3458
  "div",
3452
3459
  {
3453
- className: ae.inputContainer,
3460
+ className: re.inputContainer,
3454
3461
  style: { ...d },
3455
3462
  children: /* @__PURE__ */ s(
3456
3463
  it,
@@ -3462,11 +3469,11 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3462
3469
  },
3463
3470
  `${a.code}${l}`
3464
3471
  );
3465
- case pe.select:
3472
+ case ue.select:
3466
3473
  return /* @__PURE__ */ s(
3467
3474
  "div",
3468
3475
  {
3469
- className: ae.inputContainer,
3476
+ className: re.inputContainer,
3470
3477
  style: { ...d },
3471
3478
  children: /* @__PURE__ */ s(
3472
3479
  k1,
@@ -3478,11 +3485,11 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3478
3485
  },
3479
3486
  `${a.code}${l}`
3480
3487
  );
3481
- case pe.radioList:
3488
+ case ue.radioList:
3482
3489
  return /* @__PURE__ */ s(
3483
3490
  "div",
3484
3491
  {
3485
- className: ae.inputContainer,
3492
+ className: re.inputContainer,
3486
3493
  style: { ...d },
3487
3494
  children: /* @__PURE__ */ s(
3488
3495
  T1,
@@ -3494,11 +3501,11 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3494
3501
  },
3495
3502
  `${a.code}${l}`
3496
3503
  );
3497
- case pe.rankingSlider:
3504
+ case ue.rankingSlider:
3498
3505
  return /* @__PURE__ */ s(
3499
3506
  "div",
3500
3507
  {
3501
- className: ae.inputContainer,
3508
+ className: re.inputContainer,
3502
3509
  style: { ...d },
3503
3510
  children: /* @__PURE__ */ s(
3504
3511
  j1,
@@ -3528,27 +3535,27 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3528
3535
  submitButtonStyles: l = { width: 325 },
3529
3536
  activeCategory: c = null,
3530
3537
  // If provided, only the category with this categoryId will be displayed.
3531
- onSubmit: u = (m) => console.log("Form submitted with data: ", m)
3538
+ onSubmit: u = (h) => console.log("Form submitted with data: ", h)
3532
3539
  }) => {
3533
3540
  const {
3534
- handleSubmit: m,
3541
+ handleSubmit: h,
3535
3542
  control: g,
3536
3543
  formState: { errors: _ }
3537
- } = n, { t: v } = k();
3538
- return /* @__PURE__ */ p("form", { className: Le.formContainer, onSubmit: m(u), children: [
3539
- /* @__PURE__ */ s("div", { className: Le.formObjectContainer, children: d && d.map((h, f) => {
3540
- const { inputs: C } = h;
3541
- return h.category ? i ? /* @__PURE__ */ s(
3544
+ } = n, { t: v } = B();
3545
+ return /* @__PURE__ */ p("form", { className: Le.formContainer, onSubmit: h(u), children: [
3546
+ /* @__PURE__ */ s("div", { className: Le.formObjectContainer, children: d && d.map((m, f) => {
3547
+ const { inputs: C } = m;
3548
+ return m.category ? i ? /* @__PURE__ */ s(
3542
3549
  "div",
3543
3550
  {
3544
3551
  style: {
3545
- display: c && h.categoryId !== c ? "none" : "inherit",
3552
+ display: c && m.categoryId !== c ? "none" : "inherit",
3546
3553
  width: "100%"
3547
3554
  },
3548
3555
  children: /* @__PURE__ */ s(
3549
3556
  i,
3550
3557
  {
3551
- title: h.category,
3558
+ title: m.category,
3552
3559
  children: /* @__PURE__ */ s(
3553
3560
  Te,
3554
3561
  {
@@ -3560,7 +3567,7 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3560
3567
  }
3561
3568
  )
3562
3569
  },
3563
- `${h.category}${f}`
3570
+ `${m.category}${f}`
3564
3571
  )
3565
3572
  }
3566
3573
  ) : /* @__PURE__ */ p(
@@ -3568,11 +3575,11 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3568
3575
  {
3569
3576
  style: {
3570
3577
  width: "100%",
3571
- display: c && h.categoryId !== c ? "none" : "flex",
3578
+ display: c && m.categoryId !== c ? "none" : "flex",
3572
3579
  flexDirection: "column"
3573
3580
  },
3574
3581
  children: [
3575
- /* @__PURE__ */ s("h2", { style: { marginBottom: 20 }, children: v(h.category) }),
3582
+ /* @__PURE__ */ s("h2", { style: { marginBottom: 20 }, children: v(m.category) }),
3576
3583
  /* @__PURE__ */ s("div", { style: { paddingTop: 50, width: "100%" }, children: /* @__PURE__ */ s(
3577
3584
  Te,
3578
3585
  {
@@ -3585,7 +3592,7 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3585
3592
  ) })
3586
3593
  ]
3587
3594
  },
3588
- `${h.category}${f}`
3595
+ `${m.category}${f}`
3589
3596
  ) : /* @__PURE__ */ s("div", { style: { width: "100%" }, children: /* @__PURE__ */ s(
3590
3597
  Te,
3591
3598
  {
@@ -3599,7 +3606,7 @@ const ve = (n) => n.render(u1(n)), p1 = "_errorMessage_1xiyb_2", m1 = {
3599
3606
  }) }),
3600
3607
  /* @__PURE__ */ p("div", { className: Le.buttonContainer, children: [
3601
3608
  /* @__PURE__ */ s(ye, { containerStyles: l, type: "submit", children: v(a) }),
3602
- /* @__PURE__ */ s(xe, { errorMessage: t, errorColor: r })
3609
+ /* @__PURE__ */ s(ge, { errorMessage: t, errorColor: r })
3603
3610
  ] })
3604
3611
  ] });
3605
3612
  }, z1 = "_overlay_mnd4j_2", Z1 = "_modal_mnd4j_15", K1 = "_closeButton_mnd4j_29", H1 = "_icon_mnd4j_39", U1 = "_message_mnd4j_45", G1 = "_submessage_mnd4j_51", W1 = "_buttonsContainer_mnd4j_57", Y1 = "_buttonWrapper_mnd4j_64", G = {
@@ -3649,7 +3656,7 @@ Q1.propTypes = {
3649
3656
  /** Anchura máxima del modal (por defecto 400px) */
3650
3657
  maxWidth: e.string
3651
3658
  };
3652
- const X1 = "_stepsContainer_1cyua_3", J1 = "_stepWrapper_1cyua_9", ei = "_circleContainer_1cyua_19", ti = "_circle_1cyua_19", ni = "_active_1cyua_39", ii = "_completed_1cyua_44", oi = "_label_1cyua_50", si = "_labelActive_1cyua_56", ri = "_connector_1cyua_61", K = {
3659
+ const X1 = "_stepsContainer_1cyua_3", J1 = "_stepWrapper_1cyua_9", ei = "_circleContainer_1cyua_19", ti = "_circle_1cyua_19", ni = "_active_1cyua_39", ii = "_completed_1cyua_44", oi = "_label_1cyua_50", si = "_labelActive_1cyua_56", ri = "_connector_1cyua_61", Z = {
3653
3660
  stepsContainer: X1,
3654
3661
  stepWrapper: J1,
3655
3662
  circleContainer: ei,
@@ -3659,27 +3666,27 @@ const X1 = "_stepsContainer_1cyua_3", J1 = "_stepWrapper_1cyua_9", ei = "_circle
3659
3666
  label: oi,
3660
3667
  labelActive: si,
3661
3668
  connector: ri
3662
- }, wt = ({ steps: n, activeColor: d }) => /* @__PURE__ */ s("div", { className: K.stepsContainer, children: n.map((i, o) => {
3669
+ }, wt = ({ steps: n, activeColor: d }) => /* @__PURE__ */ s("div", { className: Z.stepsContainer, children: n.map((i, o) => {
3663
3670
  const t = i.status === "active", r = i.status === "completed";
3664
- return /* @__PURE__ */ p("div", { className: K.stepWrapper, children: [
3665
- /* @__PURE__ */ p("div", { className: K.circleContainer, children: [
3671
+ return /* @__PURE__ */ p("div", { className: Z.stepWrapper, children: [
3672
+ /* @__PURE__ */ p("div", { className: Z.circleContainer, children: [
3666
3673
  /* @__PURE__ */ s(
3667
3674
  "div",
3668
3675
  {
3669
- className: `${K.circle}
3670
- ${t ? K.active : ""}
3671
- ${r ? K.completed : ""}`,
3676
+ className: `${Z.circle}
3677
+ ${t ? Z.active : ""}
3678
+ ${r ? Z.completed : ""}`,
3672
3679
  style: t ? { backgroundColor: d } : {},
3673
3680
  onClick: i.onClick,
3674
3681
  children: o + 1
3675
3682
  }
3676
3683
  ),
3677
- o < n.length - 1 && /* @__PURE__ */ s("div", { className: K.connector })
3684
+ o < n.length - 1 && /* @__PURE__ */ s("div", { className: Z.connector })
3678
3685
  ] }),
3679
3686
  /* @__PURE__ */ s(
3680
3687
  "div",
3681
3688
  {
3682
- className: `${K.label} ${t ? K.labelActive : ""}`,
3689
+ className: `${Z.label} ${t ? Z.labelActive : ""}`,
3683
3690
  children: i.name
3684
3691
  }
3685
3692
  )
@@ -3699,7 +3706,7 @@ wt.defaultProps = {
3699
3706
  activeColor: "#C2185B"
3700
3707
  // color por defecto
3701
3708
  };
3702
- const ai = "_header_13kbt_2", li = "_leftComponents_13kbt_13", ci = "_centerComponents_13kbt_14", di = "_rightComponents_13kbt_15", ui = "_componentsContainer_13kbt_32", ee = {
3709
+ const ai = "_header_13kbt_2", li = "_leftComponents_13kbt_13", ci = "_centerComponents_13kbt_14", di = "_rightComponents_13kbt_15", ui = "_componentsContainer_13kbt_32", J = {
3703
3710
  header: ai,
3704
3711
  leftComponents: li,
3705
3712
  centerComponents: ci,
@@ -3718,7 +3725,7 @@ const ai = "_header_13kbt_2", li = "_leftComponents_13kbt_13", ci = "_centerComp
3718
3725
  }) => /* @__PURE__ */ p(
3719
3726
  "div",
3720
3727
  {
3721
- className: ee.header,
3728
+ className: J.header,
3722
3729
  style: {
3723
3730
  ...n,
3724
3731
  zIndex: t,
@@ -3728,9 +3735,9 @@ const ai = "_header_13kbt_2", li = "_leftComponents_13kbt_13", ci = "_centerComp
3728
3735
  bottom: l ? 0 : "auto"
3729
3736
  },
3730
3737
  children: [
3731
- /* @__PURE__ */ s("div", { className: ee.leftComponents, children: d.map((c, u) => /* @__PURE__ */ s("div", { className: ee.componentsContainer, children: c }, u)) }),
3732
- /* @__PURE__ */ s("div", { className: ee.centerComponents, children: i.map((c, u) => /* @__PURE__ */ s("div", { className: ee.componentsContainer, children: c }, u)) }),
3733
- /* @__PURE__ */ s("div", { className: ee.rightComponents, children: o.map((c, u) => /* @__PURE__ */ s("div", { className: ee.componentsContainer, children: c }, u)) })
3738
+ /* @__PURE__ */ s("div", { className: J.leftComponents, children: d.map((c, u) => /* @__PURE__ */ s("div", { className: J.componentsContainer, children: c }, u)) }),
3739
+ /* @__PURE__ */ s("div", { className: J.centerComponents, children: i.map((c, u) => /* @__PURE__ */ s("div", { className: J.componentsContainer, children: c }, u)) }),
3740
+ /* @__PURE__ */ s("div", { className: J.rightComponents, children: o.map((c, u) => /* @__PURE__ */ s("div", { className: J.componentsContainer, children: c }, u)) })
3734
3741
  ]
3735
3742
  }
3736
3743
  );
@@ -3779,9 +3786,9 @@ bi.propTypes = {
3779
3786
  export {
3780
3787
  h2 as AmbitSelector,
3781
3788
  B2 as ButtonsList,
3782
- ie as DropdownList,
3789
+ ne as DropdownList,
3783
3790
  Ii as EditAmbit,
3784
- xe as ErrorMessage,
3791
+ ge as ErrorMessage,
3785
3792
  Q2 as FiltersAmbit,
3786
3793
  ji as Form,
3787
3794
  ye as GeneralButton,
@@ -3804,6 +3811,6 @@ export {
3804
3811
  wt as Steps,
3805
3812
  it as TextInput,
3806
3813
  hn as TimeSlider,
3807
- te as Tooltip,
3814
+ ee as Tooltip,
3808
3815
  bn as TopNavMenu
3809
3816
  };