@tmf_ciclica/ciclicastorybook 1.1.148 → 1.1.151
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +833 -828
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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_1ks7x_2{display:flex;gap:8px}._buttonsContainer_1ks7x_2._vertical_1ks7x_6{flex-direction:column}._buttonsContainer_1ks7x_2._horizontal_1ks7x_9{flex-direction:row}._button_1ks7x_2{background:transparent;border:none;display:flex;align-items:center;cursor:pointer;padding:4px;position:relative}._button_1ks7x_2:hover{opacity:.8}._button_1ks7x_2._active_1ks7x_25{font-weight:700}._button_1ks7x_2 ._buttonName_1ks7x_28{margin:0 4px}._button_1ks7x_2:disabled{opacity:.5!important;cursor:auto}._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_4u41i_2,._container_4u41i_2 span{font-size:14px}._container_4u41i_2 ._unitLabel_4u41i_8{height:40px}._container_4u41i_2 ._slider_4u41i_11{height:6px;background-color:#ddd;border-radius:3px;position:relative}._container_4u41i_2 ._thumb_4u41i_17{height:20px;width:20px;background-color:#605b56;border-radius:50%;cursor:grab;top:-7px;position:absolute}._container_4u41i_2 ._track_4u41i_26{top:0;bottom:0;background:#605b56;border-radius:3px}._container_4u41i_2 ._labels_4u41i_32{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_1prh1_2{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}._slider_1prh1_2 ._playButton_1prh1_14,._slider_1prh1_2 ._playButton_1prh1_14._hover_1prh1_17{background-color:transparent!important}._slider_1prh1_2 ._playButton_1prh1_14 img{height:30px;width:30px}._sliderOpen_1prh1_25{right:490px}._sliderResults_1prh1_29{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_1prh1_29 ._playButton_1prh1_14,._sliderResults_1prh1_29 ._playButton_1prh1_14._hover_1prh1_17{background-color:transparent!important}._sliderResults_1prh1_29 ._playButton_1prh1_14 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_1qdhv_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_1qdhv_2 ._header_1qdhv_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._elementSelector_1qdhv_2 ._header_1qdhv_13 ._nameDateContainer_1qdhv_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_1qdhv_2 ._header_1qdhv_13 ._nameDateContainer_1qdhv_23 ._elementName_1qdhv_39{font-size:18px;font-weight:600;flex:1}._elementSelector_1qdhv_2 ._header_1qdhv_13 ._nameDateContainer_1qdhv_23 ._elementName_1qdhv_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1qdhv_2 ._header_1qdhv_13 ._nameDateContainer_1qdhv_23 ._elementDate_1qdhv_53{font-size:18px;font-weight:600;flex:.5}._elementSelector_1qdhv_2 ._header_1qdhv_13 ._nameDateContainer_1qdhv_23 ._elementDate_1qdhv_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1qdhv_2 ._header_1qdhv_13 ._buttonsContainer_1qdhv_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._elementSelector_1qdhv_2 ._elementListContainer_1qdhv_76{flex:1;width:100%}._elementSelector_1qdhv_2 ._newElementButtonContainer_1qdhv_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px;padding-top:50px}._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_1lekm_2{display:grid;width:100%}._rankingSliderContainer_1lekm_2 ._labelContainer_1lekm_6{margin-bottom:25px;color:#605b56}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10{width:100%;position:relative;display:flex;gap:14px;align-items:center;flex-wrap:nowrap;justify-content:center;height:48px}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._slider_1lekm_20{height:3px;background:#efefef;border-radius:3px;position:relative;min-width:250px}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._thumb_1lekm_27{height:15px;width:15px;border-radius:50%;cursor:grab;top:-100%;transform:translateY(-20%);outline:none}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._labels_1lekm_37{display:flex;justify-content:space-between;margin-top:8px;font-size:14px;color:#444}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._labels_1lekm_37 span{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:10px;height:20px;position:relative}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._labels_1lekm_37 span:before{content:"";background:#efefef;width:10px;height:10px;position:absolute;top:-14.5px;border-radius:50%}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._labels_1lekm_37 ._labelsText_1lekm_64{color:#605b56}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._minLabel_1lekm_67,._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._maxLabel_1lekm_67{align-self:baseline;padding-top:10px;color:#605b56;font-size:12px;white-space:nowrap;margin-top:-7px}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._minLabel_1lekm_67{text-align:right}._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}._statusTextContainer_ch14r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:128px;height:31px;border-radius:200px}._statusTextContainer_ch14r_2 span{font-size:16px;color:#605b56}._buttonsContainer_1c7dw_2{padding:5px 7px;background-color:#efefef;border-radius:10px;display:flex;gap:8px}._buttonsContainer_1c7dw_2 ._button_1c7dw_2{border-radius:10px;display:flex;align-items:center;cursor:pointer;padding:4px;color:#605b56}._buttonsContainer_1c7dw_2 ._button_1c7dw_2:hover{opacity:.8}._buttonsContainer_1c7dw_2 ._button_1c7dw_2._active_1c7dw_20{background:#b32f5d;color:#efefef}._switchContainer_194wl_2{display:flex;align-items:center;gap:10px;font-size:12px;justify-content:center}._switchContainer_194wl_2 ._labelRight_194wl_9,._switchContainer_194wl_2 ._labelLeft_194wl_9{white-space:nowrap;color:#605b56}._switchContainer_194wl_2 ._labelLeft_194wl_9{text-align:right}._switch_194wl_2{position:relative;display:inline-block;width:44px;height:24px}._switch_194wl_2 input{opacity:0;width:0;height:0}._switch_194wl_2 ._slider_194wl_28{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#fff;border-radius:24px;transition:background-color .3s;border:2px solid #605b56}._switch_194wl_2 ._slider_194wl_28:before{position:absolute;content:"";height:16px;width:16px;left:3px;bottom:2.5px;background-color:var(--switch-thumb-color, #ccc);border-radius:50%;transition:transform .3s,background-color .3s}._switch_194wl_2 input:checked+._slider_194wl_28:before{transform:translate(20px)}._switch_194wl_2._disabled_194wl_54{opacity:.5;pointer-events:none}._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_invf2_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_invf2_16{border-left:1px solid #ddd}._content_invf2_20{position:relative;padding:20px}._closeButton_invf2_25{position:fixed;top:28px;right:28px;font-size:24px;background:none;border:none;cursor:pointer;color:#333;transition:color .2s ease}._closeButton_invf2_25:hover{color:#000}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),_=require("react"),e=require("prop-types"),N=require("react-i18next"),Ie=require("framer-motion"),Wt=require("zustand"),Yt=require("d3"),Qt=require("mapbox-gl"),Xt=require("react-redux"),ce=require("react-map-gl/mapbox"),we=require("maplibre-gl"),Jt=require("pmtiles"),de=require("react-map-gl/maplibre"),e2=require("@reduxjs/toolkit"),t2=require("@mui/material/Slider"),Ue=require("@mui/material"),s2=require("@emotion/react"),n2=require("react-router-dom");function at(n){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const i in n)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(d,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}return d.default=n,Object.freeze(d)}const ae=at(_),Ge=at(Yt),i2="_ambitSelector_mcunf_2",o2="_header_mcunf_13",r2="_nameDateContainer_mcunf_23",a2="_ambitName_mcunf_39",l2="_ambitDate_mcunf_53",c2="_buttonsContainer_mcunf_67",d2="_ambitListContainer_mcunf_76",u2="_newAmbitButtonContainer_mcunf_80",Z={ambitSelector:i2,header:o2,nameDateContainer:r2,ambitName:a2,ambitDate:l2,buttonsContainer:c2,ambitListContainer:d2,newAmbitButtonContainer:u2},p2="_ambitItem_1qa6u_2",m2="_ambitNameDate_1qa6u_16",h2="_ambitName_1qa6u_16",g2="_ambitDate_1qa6u_35",C2="_ambitButtons_1qa6u_38",ue={ambitItem:p2,ambitNameDate:m2,ambitName:h2,ambitDate:g2,ambitButtons:C2},f2="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",x2="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",b2="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",_2="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",y2="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205138'%3e%3cpath%20id='Vector'%20d='M12.95%200.408447C7.659%200.408447%202.84899%202.77185%200.0832465%206.72621C-0.0277488%206.88808%20-0.0277488%207.09621%200.0832465%207.25807C2.84439%2011.2125%207.65437%2013.5712%2012.95%2013.5712C18.2456%2013.5712%2023.0556%2011.2125%2025.8168%207.25807C25.9278%207.0962%2025.9278%206.88807%2025.8168%206.72621C23.051%202.77184%2018.241%200.408447%2012.95%200.408447ZM12.95%2011.2217C10.619%2011.2217%208.71812%209.32083%208.71812%206.98984C8.71812%204.65885%2010.619%202.75796%2012.95%202.75796C15.281%202.75796%2017.1819%204.65883%2017.1819%206.98984C17.1819%209.32085%2015.281%2011.2217%2012.95%2011.2217Z'%20fill='%23B32F5D'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%2010.2966C14.7777%2010.2966%2016.2583%208.81607%2016.2583%206.98974C16.2583%205.1634%2014.7777%203.68286%2012.9514%203.68286C11.1251%203.68286%209.64453%205.1634%209.64453%206.98974C9.64453%208.81607%2011.1251%2010.2966%2012.9514%2010.2966Z'%20fill='%23B32F5D'/%3e%3c/g%3e%3c/svg%3e",v2="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",lt=({ambit:n,onClickCopy:d,onClickDelete:i,onClickFilters:o,onClickAmbit:s,isActive:r,activeColor:a,fontColor:l,moreInfo:c})=>{const{name:u,created_at:h,id:g,isBeingProcessed:f}=n;return t.jsxs("div",{className:ue.ambitItem,style:{borderBottom:`1px solid ${l}`},children:[t.jsxs("div",{className:ue.ambitNameDate,onClick:()=>s(g),children:[t.jsxs("div",{className:ue.ambitName,children:[t.jsx("img",{style:{marginRight:9},src:r?y2:v2}),t.jsx("span",{style:{color:r?a:l},children:u})]}),t.jsx("div",{className:ue.ambitDate,children:h?new Date(h).toLocaleDateString():""})]}),t.jsxs("div",{className:ue.ambitButtons,children:[f&&t.jsx("img",{src:_2}),t.jsx("button",{onClick:()=>o(g),disabled:n.is_default,children:t.jsx("img",{src:b2})}),t.jsx("button",{onClick:()=>d(g),children:t.jsx("img",{src:x2})}),t.jsx("button",{onClick:()=>i(g),disabled:n.is_default,children:t.jsx("img",{src:f2})})]})]})};lt.propTypes={ambit:e.shape({name:e.string.isRequired,created_at:e.string,id:e.string.isRequired,isBeingProcessed:e.bool}).isRequired,onClickCopy:e.func.isRequired,onClickDelete:e.func.isRequired,onClickFilters:e.func.isRequired,onClickAmbit:e.func.isRequired,isBeingProcessed:e.bool,isActive:e.bool,activeColor:e.string,fontColor:e.string,moreInfo:e.object};const We="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",j2="_generalButton_phq4n_2",w2={generalButton:j2},ge=({children:n,onClick:d,fontColor:i="#605B56",borderColor:o="#605B56",type:s="button",containerStyles:r={},disabled:a=!1})=>t.jsx("button",{className:w2.generalButton,style:{color:i,border:`1.5px solid ${o}`,...r},onClick:d,type:s,disabled:a,children:n}),ct=({ambitList:n,activeAmbitId:d,fontColor:i="#605B56",activeColor:o,nameLabel:s,dateLabel:r,newAmbitLabel:a="New field",buttonContainerStyles:l={},containerStyles:c={},onCLickNewAmbit:u=()=>console.log("New ambit clicked"),onClickCopy:h=p=>console.log(`Copy ambit: ${p}`),onCLickDelete:g=p=>console.log(`Delete ambit: ${p}`),onClickFilters:f=p=>console.log(`Filters clicked: ${p}`),onClickAmbit:b=p=>console.log(`OnCLickAmbit: ${p}`)})=>{const{t:p}=N.useTranslation(),[m,x]=_.useState(n);_.useEffect(()=>{n&&x(n)},[n]);const C=y=>{if(m&&m.length>0){let j=[...m];j.sort((v,w)=>v[y].localeCompare(w[y])),x(j)}};return t.jsxs("div",{className:Z.ambitSelector,style:{color:i,...c},children:[t.jsxs("div",{className:Z.header,style:{borderBottom:`1px solid ${i}`},children:[t.jsxs("div",{className:Z.nameDateContainer,children:[t.jsx("div",{className:Z.ambitName,children:t.jsxs("button",{onClick:()=>C("name"),children:[t.jsx("span",{children:p(s)}),t.jsx("img",{src:We})]})}),t.jsx("div",{className:Z.ambitDate,children:t.jsxs("button",{onClick:()=>C("date"),children:[t.jsx("span",{children:p(r)}),t.jsx("img",{src:We})]})})]}),t.jsx("div",{className:Z.buttonsContainer})]}),t.jsx("div",{className:Z.ambitListContainer,children:m&&m.length>0&&m.map(y=>t.jsx(lt,{isActive:d==y.id,ambit:y,fontColor:i,activeColor:o,onClickCopy:h,onClickDelete:g,onClickFilters:f,onClickAmbit:b},`ambitKey${y.id}`))}),t.jsx("div",{className:Z.newAmbitButtonContainer,children:t.jsx(ge,{style:{...l},onClick:u,borderColor:"grey",children:p(a)})})]})};ct.propTypes={ambitList:e.arrayOf(e.shape({name:e.string.isRequired,date:e.string.isRequired,id:e.string.isRequired})).isRequired,activeAmbitId:e.string,fontColor:e.string,activeColor:e.string,onClickCopy:e.func.isRequired,onCLickDelete:e.func.isRequired,onClickFilters:e.func.isRequired,onClickAmbit:e.func.isRequired,nameLabel:e.string,dateLabel:e.string,newAmbitLabel:e.string,buttonContainerStyles:e.object,containerStyles:e.object,onCLickNewAmbit:e.func};const N2="_buttonsContainer_1ks7x_2",k2="_vertical_1ks7x_6",S2="_horizontal_1ks7x_9",T2="_button_1ks7x_2",B2="_active_1ks7x_25",$2="_buttonName_1ks7x_28",Y={buttonsContainer:N2,vertical:k2,horizontal:S2,button:T2,active:B2,buttonName:$2},L2="_left_1l4m4_2",M2="_top_1l4m4_40",D2="_bottom_1l4m4_79",F2="_right_1l4m4_118",V2={left:L2,top:M2,bottom:D2,right:F2},H=({text:n,position:d,styleCustom:i=null})=>{const{t:o}=N.useTranslation();return t.jsx("div",{className:`tooltip ${V2[d]}`,style:i,children:o(n)})};H.propTypes={text:e.string.isRequired,position:e.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:e.object};const dt=({buttons:n=[],orientation:d="horizontal",showName:i=!0,namePosition:o="right",useTooltip:s=!1,tooltipPosition:r="top"})=>{const{t:a}=N.useTranslation();return t.jsx("div",{className:`${Y.buttonsContainer} ${d==="vertical"&&Y.vertical}
|
|
3
|
-
${d==="horizontal"&&Y.horizontal}`,children:n.map((l,c)=>{const{icon:u,activeIcon:
|
|
4
|
-
${g&&Y.active}`,disabled:p,children:m}),s&&t.jsx(H,{text:f,position:r})]},c)})})};dt.propTypes={buttons:e.arrayOf(e.shape({icon:e.node.isRequired,activeIcon:e.node,isActive:e.bool,name:e.string,onClick:e.func,disabled:e.bool})).isRequired,orientation:e.oneOf(["horizontal","vertical"]),showName:e.bool,namePosition:e.oneOf(["left","right"]),useTooltip:e.bool,tooltipPosition:e.oneOf(["top","bottom","left","right"])};const A2="_indicatorsCategory_1cu33_2",O2="_title_1cu33_5",Ne={indicatorsCategory:A2,title:O2},U=({isOpen:n,onClick:d,children:i,color:o,activeColor:s="#F8A925",title:r="Title",height:a=53,titleFontStyles:l,showBottomBar:c=!0,titleMarginChildren:u=25})=>{const{t:h}=N.useTranslation();return t.jsxs(Ie.motion.div,{className:Ne.indicatorsCategory,initial:{height:`${a}px`},animate:{height:n?"auto":`${a}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:n&&c?`1px solid ${s}`:"0px",marginBottom:n?"20px":"0px"},children:[t.jsxs("h2",{style:{...l,marginBottom:u||"auto"},className:`${Ne.title}`,onClick:d,children:[t.jsx("span",{style:{color:n?s:o},children:n?"-":"+"}),t.jsx("span",{style:{marginLeft:12,color:n?s:o},children:h(r)})]}),t.jsx("div",{className:Ne.content,children:i})]})};U.propTypes={isOpen:e.bool,onClick:e.func,children:e.node,color:e.string,activeColor:e.string,title:e.string,height:e.number,showBottomBar:e.bool,titleFontStyles:e.object};const q2=()=>t.jsx("div",{children:"EditAmbit"}),R2="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%201L13.9996%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14%201L1.00044%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",I2="_AppliedFiltersContainer_cokx9_2",E2="_AppliedFilterContent_cokx9_11",Ye={AppliedFiltersContainer:I2,AppliedFilterContent:E2},M=Wt.create(n=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56"})),ut=({title:n,onClick:d,isOpen:i=!0,textColor:o="#ffffff",backgroundColor:s="#605B5680",activeColor:r})=>{const{t:a}=N.useTranslation(),{tematicalFiltersSelected:l}=M(u=>u),c=u=>{M.setState(h=>({tematicalFiltersSelected:h.tematicalFiltersSelected.filter(g=>g.code!==u)}))};return t.jsx(U,{isOpen:i,onClick:d,title:n?a(n):"Applied Filters",activeColor:r,children:t.jsx("div",{className:Ye.AppliedFiltersContainer,children:l==null?void 0:l.map((u,h)=>t.jsxs("div",{className:Ye.AppliedFilterContent,style:{color:o,background:s},children:[a(u.name),t.jsx("img",{src:R2,alt:"CloseIcon",onClick:()=>c(u.code),style:{cursor:"pointer"}})]},h))})})};ut.propTypes={isOpen:e.bool,onClick:e.func,title:e.string,textColor:e.string,backgroundColor:e.string,indicators:e.arrayOf(e.shape({title:e.string.isRequired,Codename:e.string.isRequired})),activeColor:e.string};const pt=({title:n,onClick:d,isOpen:i=!0,textColor:o="#ffffff",backgroundColor:s="#605B5680",activeColor:r})=>{const{t:a}=N.useTranslation(),{tematicalFiltersSelected:l}=M(c=>c);return t.jsx(U,{isOpen:i,onClick:d,title:n?a(n):"Geographical Filters",activeColor:r,children:"A"})};pt.propTypes={isOpen:e.bool,onClick:e.func,title:e.string,textColor:e.string,backgroundColor:e.string,activeColor:e.string};const P2="_checkboxContainer_zld97_2",z2={checkboxContainer:P2},mt=({onClick:n,containerStyles:d,color:i="#605B56",indicator:o,value:s})=>{const{t:r}=N.useTranslation(),{title:a}=o||{},{fontColor:l,inputsColor:c}=M(u=>u);return t.jsxs("div",{style:{...d,color:i},role:"checkbox",className:z2.checkboxContainer,onClick:n,children:[t.jsx("input",{type:"checkbox",checked:typeof s=="boolean"?s:!0,value:s,readOnly:!0,style:{border:`1.5px solid ${s?c:l}`,backgroundColor:s?c:"white"}}),t.jsx("span",{className:"checkmark",children:r(a)})]})};mt.propTypes={onClick:e.func,value:e.bool,containerStyles:e.object,color:e.string,indicator:e.shape({title:e.string,codename:e.array}),checkedColor:e.string};function De(n,d){return De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},De(n,d)}function Z2(n,d){n.prototype=Object.create(d.prototype),n.prototype.constructor=n,De(n,d)}function ke(n){return n&&n.stopPropagation&&n.stopPropagation(),n&&n.preventDefault&&n.preventDefault(),!1}function Se(n){return n==null?[]:Array.isArray(n)?n.slice():[n]}function be(n){return n!==null&&n.length===1?n[0]:n.slice()}function _e(n){Object.keys(n).forEach(d=>{typeof document<"u"&&document.addEventListener(d,n[d],!1)})}function Q(n,d){return Fe(function(i,o){let s=i;return s<=o.min&&(s=o.min),s>=o.max&&(s=o.max),s}(n,d),d)}function Fe(n,d){const i=(n-d.min)%d.step;let o=n-i;return 2*Math.abs(i)>=d.step&&(o+=i>0?d.step:-d.step),parseFloat(o.toFixed(5))}let Ve=function(n){function d(o){var s;(s=n.call(this,o)||this).onKeyUp=()=>{s.onEnd()},s.onMouseUp=()=>{s.onEnd(s.getMouseEventMap())},s.onTouchEnd=l=>{l.preventDefault(),s.onEnd(s.getTouchEventMap())},s.onBlur=()=>{s.setState({index:-1},s.onEnd(s.getKeyDownEventMap()))},s.onMouseMove=l=>{s.setState({pending:!0});const c=s.getMousePosition(l),u=s.getDiffPosition(c[0]),h=s.getValueFromPosition(u);s.move(h)},s.onTouchMove=l=>{if(l.touches.length>1)return;s.setState({pending:!0});const c=s.getTouchPosition(l);if(s.isScrolling===void 0){const g=c[0]-s.startPosition[0],f=c[1]-s.startPosition[1];s.isScrolling=Math.abs(f)>Math.abs(g)}if(s.isScrolling)return void s.setState({index:-1});const u=s.getDiffPosition(c[0]),h=s.getValueFromPosition(u);s.move(h)},s.onKeyDown=l=>{if(!(l.ctrlKey||l.shiftKey||l.altKey||l.metaKey))switch(s.setState({pending:!0}),l.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":l.preventDefault(),s.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":l.preventDefault(),s.moveUpByStep();break;case"Home":l.preventDefault(),s.move(s.props.min);break;case"End":l.preventDefault(),s.move(s.props.max);break;case"PageDown":l.preventDefault(),s.moveDownByStep(s.props.pageFn(s.props.step));break;case"PageUp":l.preventDefault(),s.moveUpByStep(s.props.pageFn(s.props.step))}},s.onSliderMouseDown=l=>{if(!s.props.disabled&&l.button!==2){if(s.setState({pending:!0}),!s.props.snapDragDisabled){const c=s.getMousePosition(l);s.forceValueFromPosition(c[0],u=>{s.start(u,c[0]),_e(s.getMouseEventMap())})}ke(l)}},s.onSliderClick=l=>{if(!s.props.disabled&&s.props.onSliderClick&&!s.hasMoved){const c=s.getMousePosition(l),u=Q(s.calcValue(s.calcOffsetFromPosition(c[0])),s.props);s.props.onSliderClick(u)}},s.createOnKeyDown=l=>c=>{s.props.disabled||(s.start(l),_e(s.getKeyDownEventMap()),ke(c))},s.createOnMouseDown=l=>c=>{if(s.props.disabled||c.button===2)return;s.setState({pending:!0});const u=s.getMousePosition(c);s.start(l,u[0]),_e(s.getMouseEventMap()),ke(c)},s.createOnTouchStart=l=>c=>{if(s.props.disabled||c.touches.length>1)return;s.setState({pending:!0});const u=s.getTouchPosition(c);s.startPosition=u,s.isScrolling=void 0,s.start(l,u[0]),_e(s.getTouchEventMap()),function(h){h.stopPropagation&&h.stopPropagation()}(c)},s.handleResize=()=>{const l=window.setTimeout(()=>{s.pendingResizeTimeouts.shift(),s.resize()},0);s.pendingResizeTimeouts.push(l)},s.renderThumb=(l,c)=>{const u=s.props.thumbClassName+" "+s.props.thumbClassName+"-"+c+" "+(s.state.index===c?s.props.thumbActiveClassName:""),h={ref:f=>{s["thumb"+c]=f},key:s.props.thumbClassName+"-"+c,className:u,style:l,onMouseDown:s.createOnMouseDown(c),onTouchStart:s.createOnTouchStart(c),onFocus:s.createOnKeyDown(c),tabIndex:0,role:"slider","aria-orientation":s.props.orientation,"aria-valuenow":s.state.value[c],"aria-valuemin":s.props.min,"aria-valuemax":s.props.max,"aria-label":Array.isArray(s.props.ariaLabel)?s.props.ariaLabel[c]:s.props.ariaLabel,"aria-labelledby":Array.isArray(s.props.ariaLabelledby)?s.props.ariaLabelledby[c]:s.props.ariaLabelledby,"aria-disabled":s.props.disabled},g={index:c,value:be(s.state.value),valueNow:s.state.value[c]};return s.props.ariaValuetext&&(h["aria-valuetext"]=typeof s.props.ariaValuetext=="string"?s.props.ariaValuetext:s.props.ariaValuetext(g)),s.props.renderThumb(h,g)},s.renderTrack=(l,c,u)=>{const h={key:s.props.trackClassName+"-"+l,className:s.props.trackClassName+" "+s.props.trackClassName+"-"+l,style:s.buildTrackStyle(c,s.state.upperBound-u)},g={index:l,value:be(s.state.value)};return s.props.renderTrack(h,g)};let r=Se(o.value);r.length||(r=Se(o.defaultValue)),s.pendingResizeTimeouts=[];const a=[];for(let l=0;l<r.length;l+=1)r[l]=Q(r[l],o),a.push(l);return s.resizeObserver=null,s.resizeElementRef=_.createRef(),s.state={index:-1,upperBound:0,sliderLength:0,value:r,zIndices:a},s}Z2(d,n);var i=d.prototype;return i.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},d.getDerivedStateFromProps=function(o,s){const r=Se(o.value);return r.length?s.pending?null:{value:r.map(a=>Q(a,o))}:null},i.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},i.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},i.onEnd=function(o){o&&function(s){Object.keys(s).forEach(r=>{typeof document<"u"&&document.removeEventListener(r,s[r],!1)})}(o),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},i.getValue=function(){return be(this.state.value)},i.getClosestIndex=function(o){let s=Number.MAX_VALUE,r=-1;const{value:a}=this.state,l=a.length;for(let c=0;c<l;c+=1){const u=this.calcOffset(a[c]),h=Math.abs(o-u);h<s&&(s=h,r=c)}return r},i.getMousePosition=function(o){return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},i.getTouchPosition=function(o){const s=o.touches[0];return[s["page"+this.axisKey()],s["page"+this.orthogonalAxisKey()]]},i.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},i.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},i.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},i.getValueFromPosition=function(o){const s=o/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return Q(this.state.startValue+s,this.props)},i.getDiffPosition=function(o){let s=o-this.state.startPosition;return this.props.invert&&(s*=-1),s},i.resize=function(){const{slider:o,thumb0:s}=this;if(!o||!s)return;const r=this.sizeKey(),a=o.getBoundingClientRect(),l=o[r],c=a[this.posMaxKey()],u=a[this.posMinKey()],h=s.getBoundingClientRect()[r.replace("client","").toLowerCase()],g=l-h,f=Math.abs(c-u);this.state.upperBound===g&&this.state.sliderLength===f&&this.state.thumbSize===h||this.setState({upperBound:g,sliderLength:f,thumbSize:h})},i.calcOffset=function(o){const s=this.props.max-this.props.min;return s===0?0:(o-this.props.min)/s*this.state.upperBound},i.calcValue=function(o){return o/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},i.calcOffsetFromPosition=function(o){const{slider:s}=this,r=s.getBoundingClientRect(),a=r[this.posMaxKey()],l=r[this.posMinKey()];let c=o-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:l));return this.props.invert&&(c=this.state.sliderLength-c),c-=this.state.thumbSize/2,c},i.forceValueFromPosition=function(o,s){const r=this.calcOffsetFromPosition(o),a=this.getClosestIndex(r),l=Q(this.calcValue(r),this.props),c=this.state.value.slice();c[a]=l;for(let u=0;u<c.length-1;u+=1)if(c[u+1]-c[u]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:c},()=>{s(a),this.fireChangeEvent("onChange")})},i.clearPendingResizeTimeouts=function(){do{const o=this.pendingResizeTimeouts.shift();clearTimeout(o)}while(this.pendingResizeTimeouts.length)},i.start=function(o,s){const r=this["thumb"+o];r&&r.focus();const{zIndices:a}=this.state;a.splice(a.indexOf(o),1),a.push(o),this.setState(l=>({startValue:l.value[o],startPosition:s!==void 0?s:l.startPosition,index:o,zIndices:a}))},i.moveUpByStep=function(o){o===void 0&&(o=this.props.step);const s=this.state.value[this.state.index],r=Q(this.props.invert&&this.props.orientation==="horizontal"?s-o:s+o,this.props);this.move(Math.min(r,this.props.max))},i.moveDownByStep=function(o){o===void 0&&(o=this.props.step);const s=this.state.value[this.state.index],r=Q(this.props.invert&&this.props.orientation==="horizontal"?s+o:s-o,this.props);this.move(Math.max(r,this.props.min))},i.move=function(o){const s=this.state.value.slice(),{index:r}=this.state,{length:a}=s,l=s[r];if(o===l)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:c,max:u,min:h,minDistance:g}=this.props;if(!c){if(r>0){const f=s[r-1];o<f+g&&(o=f+g)}if(r<a-1){const f=s[r+1];o>f-g&&(o=f-g)}}s[r]=o,c&&a>1&&(o>l?(this.pushSucceeding(s,g,r),function(f,b,p,m){for(let x=0;x<f;x+=1){const C=m-x*p;b[f-1-x]>C&&(b[f-1-x]=C)}}(a,s,g,u)):o<l&&(this.pushPreceding(s,g,r),function(f,b,p,m){for(let x=0;x<f;x+=1){const C=m+x*p;b[x]<C&&(b[x]=C)}}(a,s,g,h))),this.setState({value:s},this.fireChangeEvent.bind(this,"onChange"))},i.pushSucceeding=function(o,s,r){let a,l;for(a=r,l=o[a]+s;o[a+1]!==null&&l>o[a+1];a+=1,l=o[a]+s)o[a+1]=Fe(l,this.props)},i.pushPreceding=function(o,s,r){for(let a=r,l=o[a]-s;o[a-1]!==null&&l<o[a-1];a-=1,l=o[a]-s)o[a-1]=Fe(l,this.props)},i.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},i.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},i.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},i.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},i.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},i.fireChangeEvent=function(o){this.props[o]&&this.props[o](be(this.state.value),this.state.index)},i.buildThumbStyle=function(o,s){const r={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(s)+1};return r[this.posMinKey()]=o+"px",r},i.buildTrackStyle=function(o,s){const r={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return r[this.posMinKey()]=o,r[this.posMaxKey()]=s,r},i.buildMarkStyle=function(o){var s;return(s={position:"absolute"})[this.posMinKey()]=o,s},i.renderThumbs=function(o){const{length:s}=o,r=[];for(let l=0;l<s;l+=1)r[l]=this.buildThumbStyle(o[l],l);const a=[];for(let l=0;l<s;l+=1)a[l]=this.renderThumb(r[l],l);return a},i.renderTracks=function(o){const s=[],r=o.length-1;s.push(this.renderTrack(0,0,o[0]));for(let a=0;a<r;a+=1)s.push(this.renderTrack(a+1,o[a],o[a+1]));return s.push(this.renderTrack(r+1,o[r],this.state.upperBound)),s},i.renderMarks=function(){let{marks:o}=this.props;const s=this.props.max-this.props.min+1;return typeof o=="boolean"?o=Array.from({length:s}).map((r,a)=>a):typeof o=="number"&&(o=Array.from({length:s}).map((r,a)=>a).filter(r=>r%o==0)),o.map(parseFloat).sort((r,a)=>r-a).map(r=>{const a=this.calcOffset(r),l={key:r,className:this.props.markClassName,style:this.buildMarkStyle(a)};return this.props.renderMark(l)})},i.render=function(){const o=[],{value:s}=this.state,r=s.length;for(let u=0;u<r;u+=1)o[u]=this.calcOffset(s[u],u);const a=this.props.withTracks?this.renderTracks(o):null,l=this.renderThumbs(o),c=this.props.marks?this.renderMarks():null;return _.createElement("div",{ref:u=>{this.slider=u,this.resizeElementRef.current=u},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},a,l,c)},d}(_.Component);Ve.displayName="ReactSlider",Ve.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)};var Ae=Ve;const K2="_container_4u41i_2",H2="_unitLabel_4u41i_8",U2="_slider_4u41i_11",G2="_thumb_4u41i_17",W2="_track_4u41i_26",Y2="_labels_4u41i_32",te={container:K2,unitLabel:H2,slider:U2,thumb:G2,track:W2,labels:Y2},ht=({min:n=0,max:d=100,step:i=1,onChange:o,width:s=300,unit:r,fontColor:a="#605B56",defaultValue:l,isDate:c})=>{const{t:u}=N.useTranslation(),h=c?new Date(n).getTime():null,g=c?new Date(d).getTime():null,[f,b]=_.useState(c?[h,g]:[n,d]),p=m=>{b(m),o==null||o({min:m[0],max:m[1]})};return _.useEffect(()=>{l||b(c?[h,g]:[n,d])},[l,c]),t.jsxs("div",{className:te.container,style:{width:`${s}px`,color:`${a}`},children:[t.jsx("div",{className:te.unitLabel,children:t.jsx("span",{children:u(r)})}),t.jsx(Ae,{className:te.slider,thumbClassName:te.thumb,trackClassName:te.track,min:c?h:n,max:c?g:d,step:c?(g-h)/30:i,value:f,onAfterChange:p,withTracks:!0,pearling:!c,minDistance:c?0:.1}),t.jsxs("div",{className:te.labels,children:[t.jsx("span",{children:c?new Date(f[0]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):f[0]}),t.jsx("span",{children:c?new Date(f[1]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):f[1]})]})]})};ht.propTypes={min:e.number,max:e.number,step:e.number,initialMin:e.number,initialMax:e.number,onChange:e.func,width:e.number,unit:e.string,fontColor:e.string,value:e.arrayOf(e.number)};const Q2="_tematicalFiltersInputContainer_1vm1r_2",X2="_inputTypeContainer_1vm1r_2",J2="_checkboxContainer_1vm1r_28",es="_absoluteSliderContainer_1vm1r_37",ye={tematicalFiltersInputContainer:Q2,inputTypeContainer:X2,checkboxContainer:J2,absoluteSliderContainer:es},Ee=({indicator:n,activeColor:d})=>{const[i,o]=_.useState(),{type:s,name:r,values:a,minValue:l,maxValue:c,unit:u,step:h,disabled:g,isDate:f}=n||{},b=_.useMemo(()=>s=="cat"||i=="cat",[i,s]),p=_.useMemo(()=>s=="abs"||i=="abs",[i,s]),{tematicalFiltersSelected:m,selectedIndicator:x,fontColor:C,inputsColor:y}=M(w=>w),j=w=>{if(console.log("onChangInput",w),w){const{min:k,max:S,valueClicked:T,allValues:q}=w||{},{code:G,type:A,source:xe}=n||{},P=p?"abs":b?"cat":"both";console.log("type: ",P);let R=G[0];A=="both"&&(R=P=="cat"?G[1]:G[0]),P=="cat"?M.setState(W=>{let z=W.tematicalFiltersSelected.find(D=>D.code===R);if(z){let D=[z.values];return z.values.includes(T)?D=z.values.filter(V=>V!==T):D=[...z.values,T],D.length==q.length?{tematicalFiltersSelected:W.tematicalFiltersSelected.filter(V=>V.code!==R)}:{tematicalFiltersSelected:W.tematicalFiltersSelected.map(V=>V.code===R?{...V,values:D}:V)}}else{let D=q.map((V,Gt)=>Gt);return{tematicalFiltersSelected:[...m,{type:"cat",code:R,values:D.filter(V=>V!==T),name:n.name,source:xe,isDate:f}]}}}):P=="abs"&&M.setState(W=>{let z=W.tematicalFiltersSelected.find(D=>D.code===R);if(k==n.minValue&&S==n.maxValue)return{tematicalFiltersSelected:W.tematicalFiltersSelected.filter(D=>D.code!==R)};if(z){let D={...z,min:k,max:S,type:P,isDate:f};return{tematicalFiltersSelected:W.tematicalFiltersSelected.map(V=>V.code===R?D:V)}}else return{tematicalFiltersSelected:[...m,{type:P,code:R,min:k,max:S,name:n.name,source:n.source}]}})}},v=_.useMemo(()=>{const w={};if((m==null?void 0:m.length)>0)for(const k of m)k.type==="cat"?w[k.code]=new Set(k.values):w[k.code]=[k.min,k.max];return w},[m]);return t.jsx("div",{className:ye.tematicalFiltersInputContainer,children:t.jsxs(U,{titleFontStyles:{fontSize:16,fontWeight:400,opacity:g?.5:1},title:r,isOpen:x==`id${r}`,onClick:()=>{g||M.setState(()=>({selectedIndicator:x==`id${r}`?"":`id${r}`}))},showBottomBar:!1,height:42,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:C,activeColor:d,children:[s=="both"&&t.jsxs("div",{className:ye.inputTypeContainer,style:{color:C},children:[t.jsxs("label",{children:[t.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{o("abs")},style:{marginRight:4,backgroundColor:i=="abs"?y:"white",border:`1.5px solid ${i=="abs"?y:C}`}}),"Absoluto"]}),t.jsxs("label",{children:[t.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{o("cat")},style:{marginRight:4,backgroundColor:i=="cat"?y:"white",border:`1.5px solid ${i=="cat"?y:C}`}}),"Categórico"]})]}),b&&t.jsx("div",{className:ye.checkboxContainer,children:a.map((w,k)=>{var S;return t.jsx(mt,{onClick:()=>j({valueClicked:k,allValues:a}),indicator:w,value:((S=v[n.code[s=="both"?1:0]])==null?void 0:S.has(k))||!v[n.code[s=="both"?1:0]]},`checkbox-${k}`)})}),(p||s=="glb")&&t.jsx("div",{className:ye.absoluteSliderContainer,children:t.jsx(ht,{onChange:j,min:l,max:c,unit:u,defaultValue:v[n.code[0]]?v[n.code[0]]:"",isDate:f,step:h})})]})})};Ee.propTypes={indicator:e.shape({name:e.string,type:e.string,code:e.arrayOf(e.string),values:e.arrayOf(e.shape({codename:e.oneOfType(e.array,e.string),title:e.string}))}),activeColor:e.string};const gt=({subcategory:n,fontColor:d,activeColor:i})=>{const{activeSubcategory:o}=M(a=>a),{name:s,indicators:r}=n||{};return t.jsx(U,{title:s,isOpen:o==`id${s}`,onClick:()=>{M.setState(a=>({activeSubcategory:a.activeSubcategory===`id${s}`?"":`id${s}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:48,color:d,activeColor:i,children:r==null?void 0:r.map((a,l)=>t.jsx(Ee,{indicator:a,fontColor:d,activeColor:i},`indicatorSub-${l}`))})};gt.propTypes={subcategory:e.shape({name:e.string,indicators:e.arrayOf(e.shape({name:e.string,value:e.string}))}),activeColor:e.string};const Ct=({category:n,activeColor:d})=>{const{name:i,subcategories:o,indicators:s}=n||{},{activeCategory:r,fontColor:a}=M(l=>l);return n&&t.jsx(U,{onClick:()=>{M.setState(l=>({activeCategory:r===`id${i}`?"":`id${i}`}))},title:i,isOpen:r===`id${i}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:a,activeColor:d,children:o?o.map((l,c)=>t.jsx(gt,{subcategory:l,fontColor:a,activeColor:d},`subcategory-${c}`)):s&&s.map((l,c)=>t.jsx(Ee,{indicator:l,fontColor:a,activeColor:d},`indicator-${c}`))})};Ct.propTypes={category:e.shape({name:e.string.isRequired,subcategories:e.array,indicators:e.array}),activeColor:e.string};const ft=({indicators:n,isOpen:d=!0,title:i,fontColor:o="#605B56",inputsColor:s="#605B56",activeColor:r})=>{const{tematicalFiltersSelected:a}=M(c=>c),{t:l}=N.useTranslation();return _.useEffect(()=>{console.log("filtersSelected changed: ",a)},[a]),_.useEffect(()=>{o&&M.setState(()=>({fontColor:o}))},[o]),_.useEffect(()=>{s&&M.setState(()=>({inputsColor:s}))},[s]),t.jsx(U,{isOpen:d,title:i?l(i):"Tematical filters",color:o,activeColor:r,children:n==null?void 0:n.map((c,u)=>t.jsx(Ct,{category:c,fontColor:o,activeColor:r},`category-${u}`))})};ft.propTypes={isOpen:e.bool,title:e.string,indicators:e.arrayOf(e.object),fontColor:e.string,onChangeTematicalFilters:e.func,inputsColor:e.string,activeColor:e.string};const ts="_FiltersAmbitContainer_1g9xx_2",ss="_FiltersAmbitHeader_1g9xx_7",ns="_FiltersAmbitTitle_1g9xx_15",is="_FiltersAmbitDescription_1g9xx_22",os="_FiltersAmbitDescriptionTitle_1g9xx_33",rs="_warning_1g9xx_37",se={FiltersAmbitContainer:ts,FiltersAmbitHeader:ss,FiltersAmbitTitle:ns,FiltersAmbitDescription:is,FiltersAmbitDescriptionTitle:os,warning:rs},xt=({ambitName:n,ambitDescription:d,defaultFilters:i,indicators:o,activeColor:s,textColor:r,backgroundColor:a,onChangeAppliedFilters:l,saveAmbit:c,namePlaceholder:u,descPlaceholder:h,filtersTypes:g=["geographical","tematical"],nameRequiredText:f,onlyFilters:b=!1})=>{const{t:p}=N.useTranslation(),{tematicalFiltersSelected:m}=M(S=>S),[x,C]=_.useState(n||null),[y,j]=_.useState(d||null),[v,w]=_.useState(!1);_.useEffect(()=>{i&&i.length>0&&M.setState(S=>({tematicalFiltersSelected:i}))},[i]),_.useEffect(()=>{console.log("filtersSelected changed: ",m),l(m)},[m]);const k=()=>{x?c({name:x,description:y}):w(!0)};return t.jsxs("div",{className:se.FiltersAmbitContainer,children:[!b&&t.jsxs("div",{className:se.FiltersAmbitHeader,children:[t.jsx("div",{className:se.FiltersAmbitTitle,children:t.jsx("input",{type:"text",onChange:S=>{w(!1),C(S.target.value)},value:x,placeholder:p(u)})}),t.jsx("div",{className:se.FiltersAmbitDescription,children:t.jsx("div",{className:se.FiltersAmbitDescriptionTitle,children:t.jsx("textarea",{value:y,onChange:S=>j(S.target.value),placeholder:p(h)})})})]}),t.jsx(ut,{title:p("applied_filters"),isOpen:!0,textColor:r||"#fff",backgroundColor:a||"#605B5680",activeColor:s}),g.includes("geographical")&&t.jsx(pt,{activeColor:s}),g.includes("tematical")&&t.jsx(ft,{indicators:o,inputsColor:s,textColor:r,title:"tematical_filters",activeColor:s}),v&&t.jsx("div",{className:se.warning,children:p(f)}),!b&&t.jsx("div",{className:"buttonContainer",children:t.jsx(ge,{onClick:()=>k(),children:p("save_ambit")})})]})};xt.propTypes={indicators:e.arrayOf(e.object).isRequired,ambitName:e.string,ambitDescription:e.string,defaultFilters:e.arrayOf(e.object),activeColor:e.string,backgroundColor:e.string,textColor:e.string,onChangeAppliedFilters:e.func,saveAmbit:e.func,namePlaceholder:e.string,descPlaceholder:e.string,filtersTypes:e.arrayOf(e.string).isRequired,nameRequiredText:e.string};const as="_barChartContainer_d2f1z_2",ls={barChartContainer:as},bt=({data:n,width:d=700,barHeight:i=25,gap:o=23,fontColor:s="#605B56",verticalPaddign:r=10,horizontalPaddign:a=20,leftPadding:l=200,numberOfDivisions:c=7,maxValue:u=null})=>{const{t:h}=N.useTranslation(),{xScale:g,ticks:f,height:b}=_.useMemo(()=>{if(n&&n.length>0){const p=(n==null?void 0:n.length)*(i+o)+r*2,m=Ge.max(n,y=>y.value)||1,x=Ge.scaleLinear().domain([0,u||m]).range([0,d-l]),C=Array.from({length:c+1},(y,j)=>u?u/c*j:m/c*j);return{xScale:x,ticks:C,height:p,width:d,verticalPaddign:r,horizontalPaddign:a}}else return{xScale:null,ticks:[],height:0}},[n,d,c,i,o,a,r,u]);return t.jsx("div",{className:ls.barChartContainer,children:t.jsx("svg",{width:d+a*2,height:b,children:t.jsxs("g",{transform:`translate(0,${o})`,children:[t.jsx("g",{transform:`translate(${l+a}, 0)`,children:f.map((p,m)=>{const x=g(p);return t.jsxs("g",{transform:`translate(${x}, 0)`,children:[t.jsx("line",{y1:0,y2:b-o*2,stroke:"#ccc"}),t.jsx("text",{y:b-o,textAnchor:"middle",fontSize:10,fill:s,children:parseInt(p)})]},m)})}),n&&n.length>0&&(n==null?void 0:n.map((p,m)=>{const x=g(p.value),C=m*(i+o);return t.jsxs("g",{transform:`translate(${l+a}, ${C})`,children:[t.jsx("text",{x:-24,y:i/2+5,textAnchor:"end",fill:s,children:h(p.title)}),t.jsx("rect",{width:x,height:i,fill:p.color,rx:0})]},m)}))]})})})};bt.propTypes={data:e.arrayOf(e.shape({title:e.string,value:e.number,color:e.string})),width:e.number,barHeight:e.number,gap:e.number,verticalPaddign:e.number,horizontalPaddign:e.number,numberOfDivisions:e.number,fontColor:e.string};const cs="_graphicContainer_c9zrg_2",ds="_titleContainer_c9zrg_14",Qe={graphicContainer:cs,titleContainer:ds},_t=({data:n,graphWidth:d=700,containerStyle:i,borderColor:o="#605B56",title:s="Graphic Title",fontColor:r="#605B56",maxValue:a=null,numberOfDivisions:l=7,leftPadding:c=200})=>{const{t:u}=N.useTranslation();return t.jsxs("div",{className:Qe.graphicContainer,style:{...i||{},border:`1.5px solid ${o}`},children:[t.jsx("div",{className:Qe.titleContainer,children:t.jsx("h2",{children:u(s)})}),t.jsx(bt,{data:n,width:d,fontColor:r,maxValue:a,numberOfDivisions:l,leftPadding:c})]})};_t.propTypes={data:e.arrayOf(e.shape({color:e.string.isRequired,value:e.number.isRequired,title:e.string.isRequired})),borderColor:e.string,title:e.string,graphWidth:e.number,containerStyle:e.object,fontColor:e.string,maxValue:e.number,numberOfDivisions:e.number,leftPadding:e.number};const us="_indicatorsCategory_1cu33_2",ps="_title_1cu33_5",ms="_list_1cu33_11",Te={indicatorsCategory:us,title:ps,list:ms},hs="_indicatorContainer_1go6h_2",gs="_indicatorNameContainer_1go6h_11",Cs="_dot_1go6h_17",fs="_indicatorName_1go6h_11",xs="_switchExternalContainer_1go6h_28",bs="_switchType_1go6h_37",_s="_switchTypeOptions_1go6h_41",ys="_optionContainer_1go6h_52",vs="_customRadious_1go6h_62",js="_optionText_1go6h_69",L={indicatorContainer:hs,indicatorNameContainer:gs,dot:Cs,indicatorName:fs,switchExternalContainer:xs,switchType:bs,switchTypeOptions:_s,optionContainer:ys,customRadious:vs,optionText:js},Pe=({indicator:n,values:d=[],activeColor:i,defaultColor:o="#92898A",activeIndicator:s,activeIndicatorType:r,onClickIndicator:a,multiple:l=!1,onChangeType:c})=>{const{t:u}=N.useTranslation(),{name:h,type:g,disabled:f}=n,[b,p]=_.useState(!1);_.useEffect(()=>{s&&p(l?s.some(C=>C.name==String(h)):s.name==h)},[s]);const m=()=>t.jsx("div",{className:L.switchExternalContainer,children:t.jsx("div",{className:L.switchType,children:t.jsxs("div",{className:L.switchTypeOptions,children:[t.jsxs("div",{className:L.optionContainer,onClick:()=>c("cat"),children:[t.jsx("span",{className:`${L.customRadious}`,style:{backgroundColor:r==="cat"?i:"transparent",borderColor:r==="cat"?i:o}}),t.jsx("h4",{className:L.optionText,style:{color:r==="cat"?i:o},children:u("indicators.cat")})]}),t.jsxs("div",{className:L.optionContainer,onClick:()=>c("abs"),children:[t.jsx("span",{className:`${L.customRadious}`,style:{backgroundColor:r==="abs"?i:"transparent",borderColor:r==="abs"?i:o}}),t.jsx("h4",{className:L.optionText,style:{color:r==="abs"?i:o},children:u("indicators.abs")})]})]})})}),x=()=>t.jsx("div",{className:L.switchExternalContainer,children:t.jsx("div",{className:L.switchType,children:t.jsx("div",{className:L.switchTypeOptions,children:d.map((C,y)=>t.jsxs("div",{className:L.optionContainer,children:[t.jsx("span",{className:L.customRadious}),t.jsx("h4",{children:u(C.unit)})]},y))})})});return t.jsxs("div",{className:L.indicatorContainer,children:[t.jsxs("div",{className:L.indicatorNameContainer,onClick:()=>!f&&a({indicator:n}),children:[t.jsx("div",{style:{border:b?`1px solid ${i}`:`1px solid ${o}`,opacity:f?.5:1},className:L.dot}),t.jsx("h4",{className:L.indicatorName,style:{color:b?i:o,opacity:f?.5:1},children:t.jsx(N.Trans,{i18nKey:h,components:{sup:t.jsx("sup",{})},shouldUnescape:!0})})]}),(s==null?void 0:s.name)===h&&g==="both"&&t.jsx("div",{children:m()}),(s==null?void 0:s.name)===h&&g==="twoUnits"&&t.jsx("div",{children:x()})]})};Pe.propTypes={indicator:e.shape({name:e.string,type:e.string}),values:e.oneOfType([e.bool,e.array]),activeColor:e.string,defaultColor:e.string,activeIndicator:e.oneOfType([e.object,e.array]),multiple:e.bool,onClickIndicator:e.func};const ws="_indicatorsSubCategory_1dzsi_2",Ns="_list_1dzsi_8",Xe={indicatorsSubCategory:ws,list:Ns},yt=({subcName:n,indicators:d,defaultColor:i,activeColor:o,activeSubCategory:s,onClickSubCategory:r,id:a,activeIndicator:l,onClickIndicator:c,multiple:u,activeIndicatorType:h,onChangeType:g})=>{const{t:f}=N.useTranslation(),[b,p]=_.useState(!1);return _.useEffect(()=>{p(s==a)},[s,a]),t.jsxs(Ie.motion.div,{className:Xe.indicatorsSubCategory,initial:{height:"43px"},animate:{height:b?"auto":"43px"},transition:{duration:.4},children:[t.jsx("button",{onClick:()=>r(a),children:t.jsxs("h3",{style:{color:b?o:i},children:[t.jsx("span",{style:{color:b?o:i},children:b?"-":"+"}),t.jsx("span",{style:{marginLeft:12,color:b?o:i},children:f(n)})]})}),d&&t.jsx("div",{className:Xe.list,children:d==null?void 0:d.map((m,x)=>t.jsx(Pe,{indicator:m,defaultColor:i,activeColor:o,activeIndicator:l,onClickIndicator:c,multiple:u,activeIndicatorType:h,onChangeType:g},"indicator"+x))})]})};yt.propTypes={subcName:e.string,indicators:e.array,activeColor:e.string,defaultColor:e.string,activeSubCategory:e.string,id:e.string,activeIndicator:e.oneOfType([e.object,e.array]),multiple:e.bool,onClickSubCategory:e.func,onClickIndicator:e.func};const vt=({cat:n,id:d,activeColor:i,defaultColor:o,onClickCategory:s,activeCategory:r,activeSubCategory:a,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:h,activeIndicatorType:g,onChangeType:f})=>{var x;const{t:b}=N.useTranslation(),[p,m]=_.useState(!1);return _.useEffect(()=>{m(r===d)},[r,d]),t.jsxs(Ie.motion.div,{className:Te.indicatorsCategory,initial:{height:"53px"},animate:{height:p?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:p?`1px solid ${i}`:"0px",marginBottom:p?"20px":"0px"},children:[t.jsxs("h2",{className:`${Te.title}`,onClick:()=>s(d),children:[t.jsx("span",{style:{color:p?i:o},children:p?"-":"+"}),t.jsx("span",{style:{marginLeft:12,color:p?i:o},children:b(n.name)})]}),n.subcategories?n.subcategories.map(({name:C,subcategory:y,indicators:j},v)=>t.jsx(yt,{id:y,activeSubCategory:a,subcName:C,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:h,activeColor:i,defaultColor:o,indicators:j,activeIndicatorType:g,onChangeType:f},`subcKey ${v}`)):t.jsx("div",{className:Te.list,children:(x=n.indicators)==null?void 0:x.map((C,y)=>t.jsx(Pe,{indicator:C,values:C.type=="twoUnits"&&C.values,activeColor:i,defaultColor:o,activeIndicator:c,onClickIndicator:u,multiple:h,activeIndicatorType:g,onChangeType:f},`indicator${y}`))})]})};vt.propTypes={cat:e.object,id:e.string,onChange:e.func,onClickCategory:e.func,activeCategory:e.string,activeSubCategory:e.string,onClickSubCategory:e.func,onClickIndicator:e.func,activeIndicator:e.oneOfType([e.object,e.array]),multiple:e.bool,activeColor:e.string,defaultColor:e.string};const ks="_indicatorsList_fklyu_2",Ss="_title_fklyu_6",Je={indicatorsList:ks,title:Ss},jt=({indicators:n,activeColor:d,defaultColor:i="#92898A",onChange:o,multiple:s=!1,defaultValue:r=null,changeIndType:a,activeIndicatorType:l})=>{const{t:c}=N.useTranslation(),[u,h]=_.useState(),[g,f]=_.useState(),[b,p]=_.useState(),m=v=>{h(u==v?null:v)},x=v=>{f(g==v?null:v)},C=({indicator:v})=>{console.log("onClickIndicator: ",v),y(v)},y=v=>{if(!s)p((b==null?void 0:b.name)==v.name?null:v);else{let w=b&&b.length>0?[...b]:[];p(w!=null&&w.some(k=>k.name==v.name)?w.filter(k=>k.name!=String(v.name)):[...w,v]),v.type=="both"&&a("cat")}};_.useEffect(()=>{console.log("activeindicator changed to: ",b),o&&typeof o=="function"&&b&&o({activeIndicator:b})},[b]),_.useLayoutEffect(()=>{if(r&&!b)if(s&&r&&Array.isArray(r)){let v=b&&b.length>0?[...b]:[];p([...v,...r]),j(r[0].name)}else y(r),j(r.name)},[]);const j=v=>{const w=n.find(k=>{if(k.subcategories){let S=k.subcategories.find(T=>T.indicators.find(q=>q.name==v));if(S)return f(S.subcategory),S}else return k.indicators.some(S=>S.name==v)});w&&h(w.category)};return t.jsxs("div",{className:Je.indicatorsList,children:[t.jsx("h2",{className:Je.title,style:{color:i},children:c("indicators.indicators")}),n.map((v,w)=>t.jsx(vt,{id:v.category,cat:v,onClickCategory:m,activeCategory:u,onClickSubCategory:x,activeSubCategory:g,onClickIndicator:C,activeIndicator:b,activeColor:d,defaultColor:i,multiple:s,onChange:o,onChangeType:a,activeIndicatorType:l},`categoryKey${w}`))]})};jt.propTypes={indicators:e.arrayOf(e.object),activeColor:e.string,defaultColor:e.string,onChange:e.func,changeIndType:e.func,multiple:e.bool,activeIndicator:e.oneOfType([e.object,e.array]),defaultValue:e.oneOfType([e.object,e.array]),activeIndicatorType:e.string};const Ts="_langSelector_o9enq_2",Bs="_currentLang_o9enq_14",$s="_arrow_o9enq_26",Ls="_prevImg_o9enq_29",Ms="_langMenu_o9enq_33",ne={langSelector:Ts,currentLang:Bs,arrow:$s,prevImg:Ls,langMenu:Ms},wt=({langs:n,arrow:d,imgPrev:i})=>{const[o,s]=_.useState(!1),{i18n:r}=N.useTranslation(),a=n.find(c=>c.code==r.language),l=c=>{r.changeLanguage(c),s(!1)};return t.jsxs("div",{className:ne.langSelector,children:[t.jsxs("div",{className:ne.currentLang,onClick:()=>{s(!o)},children:[i&&t.jsx("img",{className:ne.prevImg,src:i}),(a==null?void 0:a.titleSelected)||(a==null?void 0:a.title),t.jsx("img",{src:d,className:ne.arrow})]}),o&&t.jsx("div",{className:ne.langMenu,children:n.map(c=>t.jsx("button",{className:(a==null?void 0:a.code)==c.code?ne.active:"",onClick:()=>l(c.code),children:c.title},c.code))})]})};wt.propTypes={langs:e.arrayOf(e.shape({code:e.string,title:e.string,titleSelected:e.string})),color:e.string,bckColor:e.string,hoverColor:e.string,arrow:e.object,imgPrev:e.object};const Ds="_legendContainer_qs4x9_3",Fs="_closeButton_qs4x9_31",Vs="_titleContainer_qs4x9_59",As="_infoContainer_qs4x9_65",Os="_titleLegendList_qs4x9_76",qs="_legendListContainer_qs4x9_82",Rs="_gridContainer_qs4x9_82",Is="_elementLegendContainer_qs4x9_88",Es="_colorDot_qs4x9_94",Ps="_absoluteValueContainer_qs4x9_100",zs="_absoluteValueColor_qs4x9_103",Zs="_absoluteValueText_qs4x9_108",Ks="_noDataContainer_qs4x9_120",Hs="_noData_qs4x9_120",Us="_moreInfoContainer_qs4x9_141",$={legendContainer:Ds,closeButton:Fs,titleContainer:Vs,infoContainer:As,titleLegendList:Os,legendListContainer:qs,gridContainer:Rs,elementLegendContainer:Is,colorDot:Es,absoluteValueContainer:Ps,absoluteValueColor:zs,absoluteValueText:Zs,noDataContainer:Ks,noData:Hs,moreInfoContainer:Us},Nt=({containerStyles:n,title:d,infoList:i,legendList:o,legendListTitle:s,absoluteValue:r,onClickMoreInfo:a,buttonTitle:l,onClickClose:c})=>{const{t:u}=N.useTranslation();return t.jsxs("div",{style:n?{...n}:{},className:`${$.legendContainer}`,children:[t.jsx("button",{className:$.closeButton,onClick:c}),d&&t.jsx("div",{className:$.titleContainer,style:{marginBottom:(!i||i.length==0)&&"15px"},children:t.jsx("h2",{children:d})}),i&&i.length>0&&t.jsx("div",{className:$.infoContainer,children:t.jsx("ul",{children:i.map(({title:h,value:g})=>t.jsxs("li",{children:[t.jsx("h3",{className:$.title,children:`${h}:`}),t.jsxs("span",{className:$.value,children:[" ",g]})]},d))})}),t.jsx("h3",{className:$.titleLegendList,style:{marginTop:i&&i.length>0&&"30px"},children:s&&t.jsx(N.Trans,{i18nKey:s,components:{sup:t.jsx("sup",{})},shouldUnescape:!0})}),t.jsxs("div",{className:$.legendListContainer,children:[r?t.jsxs("div",{className:$.absoluteValueContainer,children:[t.jsx("div",{className:$.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${r.maxColor} 0%, ${r.midColor?`${r.midColor} 50%,`:""} ${r.minColor} 100%)`}}),t.jsxs("div",{className:$.absoluteValueText,children:[t.jsxs("span",{children:[r.maxValue," ",u(r.unit)]}),r.midValue&&t.jsxs("span",{children:[r.midValue," ",u(r.unit)]}),t.jsxs("span",{children:[r.minValue," ",u(r.unit)]})]})]}):o&&o.length>0&&t.jsx("div",{className:$.gridContainer,children:o.map(({title:h,color:g})=>t.jsxs("div",{className:$.elementLegendContainer,children:[t.jsx("div",{className:$.colorDot,style:{backgroundColor:g}}),t.jsxs("div",{className:$.titleLegendElement,children:[u(h)," "]})]},d))}),r.noDataColor&&t.jsxs("div",{className:$.noDataContainer,children:[t.jsx("div",{className:$.noData,style:{background:r.noDataColor}}),t.jsx("div",{className:$.absoluteValueText,children:t.jsx("span",{children:u(r.noDataText)})})]})]}),a&&t.jsx("button",{className:$.moreInfoContainer,onClick:a,children:l||u("moreInformation")})]})};Nt.propTypes={title:e.string,containerStyles:e.object,infoList:e.arrayOf(e.shape({title:e.string.isRequired,value:e.oneOfType([e.string,e.number])})),legendList:e.arrayOf(e.shape({title:e.string,color:e.string})),legendListTitle:e.string,absoluteValue:e.shape({maxColor:e.string,minColor:e.string,maxValue:e.number,minValue:e.number}),onClickMoreInfo:e.func,buttonTitle:e.string,onClickClose:e.func,noDataColor:e.string};const Gs="_logo_1ewa6_2",et={logo:Gs},kt=({src:n,alt:d,href:i})=>{const{t:o}=N.useTranslation(),s=t.jsx("img",{src:n,alt:o(d)});return i?t.jsx("div",{className:et.logo,children:t.jsx("a",{href:i,children:s})}):t.jsx("div",{className:et.logo,children:s})};kt.propTypes={src:e.string.isRequired,alt:e.string.isRequired,href:e.string,className:e.string};const Ws="_mapContainer_84pkf_2",Ys={mapContainer:Ws};Qt.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const St=({initialView:n={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:d=17,minZoom:i=8,mapStyle:o,firstSymbolLayer:s,cssProps:r="",onClick:a="",interactiveLayers:l=[],popUp:c=!1,sources:u=[],layers:h=[]})=>{const g=_.useRef(),[f,b]=_.useState(null),p=Xt.useSelector(m=>m.mapState.showTexts);return _.useEffect(()=>{if(g.current){const m=g.current.getMap();m.getStyle().layers.map(C=>{C.type=="symbol"&&C.id!="professionals"&&(p?m.setLayoutProperty(C.id,"visibility","visible"):m.setLayoutProperty(C.id,"visibility","none"))})}},[p]),t.jsx("div",{className:`${Ys.mapContainer}`,style:r,children:t.jsxs(ce,{initialViewState:n,ref:g,hash:!1,maxZoom:d,minZoom:i,mapStyle:o,onClick:a,interactiveLayerIds:l,children:[u.length&&u.map((m,x)=>t.jsx(ce.Source,{...m,children:h.length&&h.map((C,y)=>{if(C.sourceId==m.id)return t.jsx(ce.Layer,{...C.layer,beforeId:s},y)})},x)),t.jsx(ce.NavigationControl,{position:"bottom-right",visualizePitch:!0}),c&&f&&t.jsx(ce.Popup,{longitude:c.longitude,latitude:c.latitude,anchor:c.anchor,onClose:()=>b(null),children:c.content})]})})};St.propTypes={initialView:e.shape({latitude:e.number.isRequired,longitude:e.number.isRequired,zoom:e.number.isRequired}),mapStyle:e.object,firstSymbolLayer:e.string,cssProps:e.object,style:e.object,maxZoom:e.number,minZoom:e.number,onClick:e.func,interactiveLayers:e.array,popUp:e.shape({latitude:e.number,longitude:e.number,anchor:e.string,content:e.element}),textsUrl:e.string,sources:e.arrayOf(e.shape({id:e.string,type:e.string,url:e.string,data:e.object})),layers:e.arrayOf(e.shape({sourceId:e.string,layer:e.shape({id:e.string,type:e.string,sourceLayer:e.string,minZoom:e.number,maxZoom:e.number,paint:e.object})}))};const Qs="_mapContainer_b0pyr_3",Xs={mapContainer:Qs},Js="_FeaturePopUp_mt8l5_2",en="_title_mt8l5_9",tt={FeaturePopUp:Js,title:en},tn=({props:n})=>{const{t:d}=N.useTranslation();return t.jsx("div",{className:tt.FeaturePopUp,children:n.map(i=>t.jsxs("p",{children:[t.jsxs("span",{className:tt.title,children:[t.jsx(N.Trans,{i18nKey:i.name,components:{sup:t.jsx("sup",{})},shouldUnescape:!0}),":"]}),isNaN(i.value)?t.jsx(t.Fragment,{children:d(i.value)}):t.jsxs(t.Fragment,{children:[i.value.toLocaleString("de",{maximumFractionDigits:2})," ",d(i.unit)]})]}))})},Tt=({initialView:n={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:d=17,minZoom:i=8,mapStyle:o,firstSymbolLayer:s,cssProps:r={},onClick:a="",interactiveLayers:l=[],sources:c=[],layers:u=[],filters:h,popUpParams:g,onClosePopUp:f,showTexts:b})=>{console.log(h);const p=_.useRef();return _.useEffect(()=>{if(p.current){const m=p.current.getMap();m.getStyle().layers.map(C=>{C.type=="symbol"&&C.id!="professionals"&&(b?m.setLayoutProperty(C.id,"visibility","visible"):m.setLayoutProperty(C.id,"visibility","none"))})}},[b]),_.useEffect(()=>{let m=new Jt.Protocol;return we.addProtocol("pmtiles",m.tile),()=>{we.removeProtocol("pmtiles")}},[]),t.jsx("div",{className:`${Xs.mapContainer}`,style:r&&r,children:t.jsxs(de,{mapLib:we,initialViewState:n,ref:p,hash:!1,maxZoom:d,minZoom:i,mapStyle:o,onClick:a,interactiveLayerIds:l,children:[c.length&&c.map((m,x)=>t.jsx(de.Source,{...m,children:u.length&&u.map((C,y)=>{if(C.sourceId==m.id)return t.jsx(de.Layer,{...C.layer,beforeId:s,filter:h&&h},y)})},x)),t.jsx(de.NavigationControl,{position:"bottom-right",visualizePitch:!0}),g&&t.jsx(de.Popup,{longitude:g.lng,latitude:g.lat,onClose:f,children:t.jsx(tn,{props:g.props})})]})})};Tt.propTypes={initialView:e.shape({latitude:e.number.isRequired,longitude:e.number.isRequired,zoom:e.number.isRequired}),mapStyle:e.string,firstSymbolLayer:e.string,cssProps:e.object,style:e.object,maxZoom:e.number,minZoom:e.number,onClick:e.func,interactiveLayers:e.array,popUp:e.bool,sources:e.arrayOf(e.shape({id:e.string,type:e.string,url:e.string,data:e.object})),layers:e.arrayOf(e.shape({sourceId:e.string,layer:e.shape({id:e.string,type:e.string,sourceLayer:e.string,minZoom:e.number,maxZoom:e.number,paint:e.object})})),showTexts:e.bool,filters:e.array,popUpParams:e.object,onClosePopUp:e.func};const sn="_sectionBar_1egwc_2",nn="_leftContent_1egwc_14",on="_textContainer_1egwc_20",rn="_title_1egwc_27",an="_subtitle_1egwc_33",ln="_rightContent_1egwc_38",X={sectionBar:sn,leftContent:nn,textContainer:on,title:rn,subtitle:an,rightContent:ln},Bt=({leftIcon:n,title:d,subtitle:i,rightContent:o,mainColor:s,width:r})=>{const{t:a}=N.useTranslation();return t.jsxs("div",{className:X.sectionBar,style:{width:r&&r},children:[t.jsxs("div",{className:X.leftContent,children:[n&&t.jsx("img",{src:n,alt:"Icono",className:X.icon}),t.jsxs("div",{className:X.textContainer,children:[t.jsx("div",{className:X.title,children:a(d)}),i&&t.jsx("div",{className:X.subtitle,children:i})]})]}),t.jsx("div",{className:X.rightContent,children:o})]})};Bt.propTypes={leftIcon:e.string,title:e.string.isRequired,subtitle:e.string,rightContent:e.node,mainColor:e.string,width:e.oneOfType([e.string,e.number])};const cn=e2.createSlice({name:"mapSlice",initialState:{showTexts:!0,sliderSelectedYear:2025,activeIndicatorKey:0,activeIndicatorType:"cat",activeIndicatorUnit:null},reducers:{setShowTexts:(n,d)=>{n.showTexts=d.payload},setYear:(n,d)=>{n.sliderSelectedYear=d.payload},setActiveIndicatorKey:(n,d)=>{n.activeIndicatorKey=d.payload},setActiveIndicatorType:(n,d)=>{n.activeIndicatorType=d.payload},setActiveIndicatorUnit:(n,d)=>{n.activeIndicatorUnit=d.payload}}}),{setShowTexts:yi,setYear:vi,setActiveIndicatorKey:ji,setActiveIndicatorType:wi,setActiveIndicatorUnit:Ni}=cn.actions,dn="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",un="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",pn="_slider_1prh1_2",mn="_playButton_1prh1_14",hn="_sliderOpen_1prh1_25",gn="_sliderResults_1prh1_29",pe={slider:pn,playButton:mn,sliderOpen:hn,sliderResults:gn},$t=({onResults:n=!1,defaultYear:d=2025,firstYear:i=2025,lastYear:o=2050,zIndex:s=10,rightBarOpen:r=!1,onChange:a=l=>{console.log("year changed to ",l)}})=>{const[l,c]=_.useState(d),u=(C,y)=>{c(y),a(y)},[h,g]=_.useState(!1),f=()=>{g(!0)},b=()=>{g(!1)};((C,y)=>{const j=_.useRef();_.useEffect(()=>{j.current=C},[C]),_.useEffect(()=>{function v(){j.current()}{let w=setInterval(v,y);return()=>clearInterval(w)}},[y])})(()=>{h&&(l!=2050?(c(l+1),a(l+1)):(c(2025),a(2025)))},1e3);const m=Ue.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}}),x=[{label:"",value:2025},{label:"",value:2032},{label:"",value:2041},{label:"",value:2050}];return t.jsx(s2.ThemeProvider,{theme:m,children:t.jsxs(Ue.Box,{sx:{width:400},className:`${n?pe.sliderResults:pe.slider} ${r?pe.sliderOpen:""}`,style:{zIndex:s},children:[i,t.jsx(t2,{"aria-label":"TimeSlider",value:l,valueLabelDisplay:"on",step:1,marks:x,min:i,max:o,onChange:u,color:"primary",size:"small"}),o,!h&&t.jsx("button",{className:pe.playButton,onClick:f,children:t.jsx("img",{src:dn,alt:"Play"})}),h&&t.jsx("button",{className:pe.playButton,onClick:b,children:t.jsx("img",{src:un,alt:"Pause"})})]})})};$t.propTypes={defaultYear:e.number,onResults:e.bool,firstYear:e.number,lastYear:e.number,zIndex:e.number,rightBarOpen:e.bool,onChange:e.func};const Cn="_TopNavMenuContainer_12mp4_2",fn="_topNavOptions_12mp4_13",xn="_active_12mp4_27",Be={TopNavMenuContainer:Cn,topNavOptions:fn,active:xn},Lt=({options:n=[],containerStyles:d,borderColor:i="red",textColor:o="white",onChangeNavLink:s=r=>{console.log("Changed NavLink",r)}})=>{const{t:r}=N.useTranslation();return t.jsx("div",{className:Be.TopNavMenuContainer,style:{...d},children:n.map((a,l)=>t.jsx(n2.NavLink,{to:a.url,className:({isActive:c})=>`${Be.topNavOptions} ${c?Be.active:""} `,onClick:()=>s(a.url),style:({isActive:c})=>({color:o,borderBottom:c?`5px solid ${i}`:"5px solid transparent"}),children:r(a.name)},l))})};Lt.propTypes={options:e.arrayOf(e.object),cssProps:e.shape({borderColor:e.string.isRequired,textColor:e.string.isRequired})};const bn="_LogInButton_1vxj5_2",_n={LogInButton:bn},Mt=({cssClass:n,notLoggedInLabel:d="Log in",loggedInLabel:i="Log out",containerStyles:o,userName:s="",isLoggedIn:r=!1,onClickLogIn:a=()=>{console.log("Login clicked")},onClickLogOut:l=()=>{console.log("Logout clicked")}})=>{const{t:c}=N.useTranslation();return t.jsx("div",{style:{...o},className:`${_n.LogInButton} link ${n}`,onClick:r?l:a,children:r?s||c(i):c(d)})};Mt.propTypes={cssClass:e.string,notLoggedInLabel:e.string,loggedInLabel:e.string,containerStyles:e.object,userName:e.string,isLoggedIn:e.bool};const yn="_elementSelector_1qdhv_2",vn="_header_1qdhv_13",jn="_nameDateContainer_1qdhv_23",wn="_elementName_1qdhv_39",Nn="_elementDate_1qdhv_53",kn="_buttonsContainer_1qdhv_67",Sn="_elementListContainer_1qdhv_76",Tn="_newElementButtonContainer_1qdhv_80",I={elementSelector:yn,header:vn,nameDateContainer:jn,elementName:wn,elementDate:Nn,buttonsContainer:kn,elementListContainer:Sn,newElementButtonContainer:Tn},Bn="_listElement_1s506_2",$n="_elementNameDate_1s506_17",Ln="_elementNameContainer_1s506_27",Mn="_elementName_1s506_17",Dn="_elementDate_1s506_42",Fn="_elementButtons_1s506_45",Vn="_moreInfoContainer_1s506_68",An="_moreInfo_1s506_68",O={listElement:Bn,elementNameDate:$n,elementNameContainer:Ln,elementName:Mn,elementDate:Dn,elementButtons:Fn,break:"_break_1s506_63",moreInfoContainer:Vn,moreInfo:An},On="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",qn="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Rn="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",In="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",En="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.3062'%20cy='15.2144'%20r='14.3521'%20stroke='%2392898A'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9898%2012.7234V9.89008C11.9898%208.88815%2012.3811%207.92726%2013.0777%207.21879C13.7743%206.51032%2014.719%206.1123%2015.7041%206.1123C16.6892%206.1123%2017.6339%206.51032%2018.3305%207.21879C19.0271%207.92726%2019.4184%208.88815%2019.4184%209.89008V12.7234H20.347C20.8395%2012.7234%2021.3119%2012.9224%2021.6602%2013.2767C22.0084%2013.6309%2022.2041%2014.1113%2022.2041%2014.6123V21.2234C22.2041%2021.7244%2022.0084%2022.2048%2021.6602%2022.5591C21.3119%2022.9133%2020.8395%2023.1123%2020.347%2023.1123H11.0612C10.5687%2023.1123%2010.0963%2022.9133%209.74805%2022.5591C9.39976%2022.2048%209.2041%2021.7244%209.2041%2021.2234V14.6123C9.2041%2014.1113%209.39976%2013.6309%209.74805%2013.2767C10.0963%2012.9224%2010.5687%2012.7234%2011.0612%2012.7234H11.9898ZM13.847%209.89008C13.847%209.38912%2014.0426%208.90867%2014.3909%208.55444C14.7392%208.2002%2015.2116%208.00119%2015.7041%208.00119C16.1966%208.00119%2016.669%208.2002%2017.0173%208.55444C17.3656%208.90867%2017.5612%209.38912%2017.5612%209.89008V12.7234H13.847V9.89008ZM15.7041%2015.5567C15.9504%2015.5567%2016.1866%2015.6563%2016.3607%2015.8334C16.5348%2016.0105%2016.6327%2016.2507%2016.6327%2016.5012V19.3345C16.6327%2019.585%2016.5348%2019.8252%2016.3607%2020.0023C16.1866%2020.1795%2015.9504%2020.279%2015.7041%2020.279C15.4578%2020.279%2015.2216%2020.1795%2015.0475%2020.0023C14.8734%2019.8252%2014.7755%2019.585%2014.7755%2019.3345V16.5012C14.7755%2016.2507%2014.8734%2016.0105%2015.0475%2015.8334C15.2216%2015.6563%2015.4578%2015.5567%2015.7041%2015.5567Z'%20fill='%2392898A'/%3e%3c/svg%3e";var st;function Oe(){return Oe=Object.assign?Object.assign.bind():function(n){for(var d=1;d<arguments.length;d++){var i=arguments[d];for(var o in i)({}).hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},Oe.apply(null,arguments)}var Pn=function(d){return ae.createElement("svg",Oe({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},d),st||(st=ae.createElement("g",{fill:"currentColor"},ae.createElement("path",{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"}),ae.createElement("path",{d:"M12.951 10.297a3.307 3.307 0 1 0 0-6.614 3.307 3.307 0 0 0 0 6.614"}))))};const zn="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",Dt=({listelement:n,onClickElement:d,isActive:i,activeColor:o,fontColor:s,moreInfo:r,columns:a,elementButtons:l,processTooltip:c,defaultTooltip:u,showEye:h=!0})=>{const{name:g,created_at:f,id:b,isBeingProcessed:p}=n,[m,x]=_.useState(!1),{t:C}=N.useTranslation();return t.jsxs("div",{className:O.listElement,style:{borderBottom:`1px solid ${s}`},children:[t.jsx("div",{className:O.elementNameDate,onClick:()=>d(b),children:Object.keys(a).map(y=>y==="name"?t.jsx("div",{className:O.elementNameContainer,children:t.jsxs("div",{className:O.elementName,children:[h&&(i?t.jsx(Pn,{style:{color:o,marginRight:9}}):t.jsx("img",{style:{marginRight:9},src:zn,alt:"eye"})),t.jsx("span",{style:{color:i?o:s},children:g})]})}):y=="data"?t.jsx("div",{className:O.elementDate,children:f?new Date(f).toLocaleDateString():""}):t.jsx("div",{className:O.elementDate,children:n[y]}))}),t.jsxs("div",{className:O.elementButtons,children:[n.processing&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("img",{src:In}),t.jsx(H,{text:c,position:"left"})]}),l.filter&&!n.is_default&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:()=>l.filter.onclick(n),children:t.jsx("img",{src:Rn})}),t.jsx(H,{text:l.filter.tooltiptext,position:"left"})]}),l.copy&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:()=>l.copy.onclick(n),children:t.jsx("img",{src:qn})}),t.jsx(H,{text:l.copy.tooltiptext,position:"left"})]}),l.trash&&!n.is_default&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:()=>l.trash.onclick(n),children:t.jsx("img",{src:On})}),t.jsx(H,{text:l.trash.tooltiptext,position:"left"})]}),n.is_default&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("img",{src:En}),t.jsx(H,{text:u,position:"left"})]})]}),r&&t.jsx("div",{className:O.break}),r&&t.jsxs("div",{className:O.moreInfoContainer,children:[t.jsxs("div",{className:O.moreInfo,onClick:()=>x(!m),children:[t.jsx("span",{children:m?"-":"+"}),C(r.label)]}),r&&m&&t.jsx("div",{className:O.moreInfoInfo,children:n[r.info]})]})]})};Dt.propTypes={listelement:e.shape({name:e.string.isRequired,created_at:e.string,id:e.string.isRequired,isBeingProcessed:e.bool}).isRequired,onClickElement:e.func.isRequired,isActive:e.bool,activeColor:e.string,fontColor:e.string,moreInfo:e.object,columns:e.shape({name:e.string,data:e.string,ambit:e.string,escenari:e.string}),elementButtons:e.shape({copy:e.shape({onclick:e.func,tooltiptext:e.string}),delete:e.shape({onclick:e.func,tooltiptext:e.string}),filter:e.shape({onclick:e.func,tooltiptext:e.string})}),processTooltip:e.string,defaultTooltip:e.string,showEye:e.bool};const nt="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ft=({elementsList:n,activeElementId:d,fontColor:i="#605B56",activeColor:o,buttonContainerStyles:s={},containerStyles:r={},newElementButton:a,onClickElement:l=p=>console.log(`OnCLickElement: ${p}`),columns:c,elementButtons:u,moreInfo:h=!1,processTooltip:g,defaultTooltip:f,showEye:b=!0})=>{const{t:p}=N.useTranslation(),[m,x]=_.useState(n);_.useEffect(()=>{n&&x(n)},[n]);const C=y=>{if(m&&m.length>0){let j=[...m];j.sort((v,w)=>v[y].localeCompare(w[y])),x(j)}};return t.jsxs("div",{className:I.elementSelector,style:{color:i,...r},children:[t.jsxs("div",{className:I.header,style:{borderBottom:`1px solid ${i}`},children:[t.jsx("div",{className:I.nameDateContainer,children:Object.keys(c).map(y=>y==="name"?t.jsx("div",{className:I.elementName,children:t.jsxs("button",{onClick:()=>C("name"),children:[t.jsx("span",{children:p(c.name)}),t.jsx("img",{src:nt,alt:"order arrow"})]})},y):y==="data"?t.jsx("div",{className:I.elementDate,children:t.jsxs("button",{onClick:()=>C("date"),children:[t.jsx("span",{children:p(c.data)}),t.jsx("img",{src:nt,alt:"order arrow"})]})},y):t.jsx("div",{className:I.elementDate,children:t.jsx("span",{children:p(c[y])})},y))}),t.jsx("div",{className:I.buttonsContainer})]}),t.jsx("div",{className:I.elementListContainer,children:m&&m.length>0&&m.map(y=>t.jsx(Dt,{isActive:d==y.id,listelement:y,fontColor:i,activeColor:o,onClickElement:l,columns:c,elementButtons:u,moreInfo:h,processTooltip:g,defaultTooltip:f,showEye:b},`elementKey${y.id}`))}),a&&t.jsx("div",{className:I.newElementButtonContainer,children:t.jsx(ge,{style:{...s},onClick:a.onClick,borderColor:"grey",disabled:a.disabled||!1,children:p(a.label)})})]})};Ft.propTypes={elementList:e.arrayOf(e.shape({name:e.string.isRequired,created_at:e.string.isRequired,id:e.string.isRequired})).isRequired,activeElementId:e.string,fontColor:e.string,activeColor:e.string,onClickElement:e.func.isRequired,newElementButton:e.shape({label:e.string,onClick:e.func}),columns:e.shape({name:e.string,data:e.string,ambit:e.string,escenari:e.string}),elementButtons:e.shape({copy:e.shape({onclick:e.func,tooltiptext:e.string}),delete:e.shape({onclick:e.func,tooltiptext:e.string}),filter:e.shape({onclick:e.func,tooltiptext:e.string})}),buttonContainerStyles:e.object,containerStyles:e.object,onCLickNewElement:e.func,moreInfo:e.shape({label:e.string,info:e.any}),processTooltip:e.string,defaultTooltip:e.string,showEye:e.bool};const me={text:"text",password:"password",radioList:"radioList",select:"select"},Zn="_textInputContainer_1o3iy_2",Kn="_labelContainer_1o3iy_5",Hn="_inputContainer_1o3iy_8",Un="_showPasswordButton_1o3iy_14",Gn="_forgotPassButton_1o3iy_26",he={textInputContainer:Zn,labelContainer:Kn,inputContainer:Hn,showPasswordButton:Un,forgotPassButton:Gn};var Wn=n=>n.type==="checkbox",Yn=n=>n instanceof Date,Vt=n=>n==null;const Qn=n=>typeof n=="object";var Ce=n=>!Vt(n)&&!Array.isArray(n)&&Qn(n)&&!Yn(n),Xn=n=>Ce(n)&&n.target?Wn(n.target)?n.target.checked:n.target.value:n,Jn=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,e0=(n,d)=>n.has(Jn(d)),t0=n=>{const d=n.constructor&&n.constructor.prototype;return Ce(d)&&d.hasOwnProperty("isPrototypeOf")},s0=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function At(n){let d;const i=Array.isArray(n),o=typeof FileList<"u"?n instanceof FileList:!1;if(n instanceof Date)d=new Date(n);else if(!(s0&&(n instanceof Blob||o))&&(i||Ce(n)))if(d=i?[]:{},!i&&!t0(n))d=n;else for(const s in n)n.hasOwnProperty(s)&&(d[s]=At(n[s]));else return n;return d}var Ot=n=>/^\w*$/.test(n),qe=n=>n===void 0,n0=n=>Array.isArray(n)?n.filter(Boolean):[],qt=n=>n0(n.replace(/["|']|\]/g,"").split(/\.|\[/)),F=(n,d,i)=>{if(!d||!Ce(n))return i;const o=(Ot(d)?[d]:qt(d)).reduce((s,r)=>Vt(s)?s:s[r],n);return qe(o)||o===n?qe(n[d])?i:n[d]:o},$e=n=>typeof n=="boolean",it=(n,d,i)=>{let o=-1;const s=Ot(d)?[d]:qt(d),r=s.length,a=r-1;for(;++o<r;){const l=s[o];let c=i;if(o!==a){const u=n[l];c=Ce(u)||Array.isArray(u)?u:isNaN(+s[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;n[l]=c,n=n[l]}};const ot={BLUR:"blur",CHANGE:"change"},rt={all:"all"},Rt=_.createContext(null);Rt.displayName="HookFormContext";const ze=()=>_.useContext(Rt);var i0=(n,d,i,o=!0)=>{const s={defaultValues:d._defaultValues};for(const r in n)Object.defineProperty(s,r,{get:()=>{const a=r;return d._proxyFormState[a]!==rt.all&&(d._proxyFormState[a]=!o||rt.all),i&&(i[a]=!0),n[a]}});return s};const It=typeof window<"u"?ae.useLayoutEffect:ae.useEffect;function o0(n){const d=ze(),{control:i=d.control,disabled:o,name:s,exact:r}=n||{},[a,l]=_.useState(i._formState),c=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return It(()=>i._subscribe({name:s,formState:c.current,exact:r,callback:u=>{!o&&l({...i._formState,...u})}}),[s,o,r]),_.useEffect(()=>{c.current.isValid&&i._setValid(!0)},[i]),_.useMemo(()=>i0(a,i,c.current,!1),[a,i])}var r0=n=>typeof n=="string",a0=(n,d,i,o,s)=>r0(n)?F(i,n,s):Array.isArray(n)?n.map(r=>F(i,r)):i;function l0(n){const d=ze(),{control:i=d.control,name:o,defaultValue:s,disabled:r,exact:a}=n||{},l=_.useRef(s),[c,u]=_.useState(i._getWatch(o,l.current));return It(()=>i._subscribe({name:o,formState:{values:!0},exact:a,callback:h=>!r&&u(a0(o,i._names,h.values||i._formValues,!1,l.current))}),[o,i,r,a]),_.useEffect(()=>i._removeUnmounted()),c}function c0(n){const d=ze(),{name:i,disabled:o,control:s=d.control,shouldUnregister:r}=n,a=e0(s._names.array,i),l=l0({control:s,name:i,defaultValue:F(s._formValues,i,F(s._defaultValues,i,n.defaultValue)),exact:!0}),c=o0({control:s,name:i,exact:!0}),u=_.useRef(n),h=_.useRef(s.register(i,{...n.rules,value:l,...$e(n.disabled)?{disabled:n.disabled}:{}})),g=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!F(c.errors,i)},isDirty:{enumerable:!0,get:()=>!!F(c.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!F(c.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!F(c.validatingFields,i)},error:{enumerable:!0,get:()=>F(c.errors,i)}}),[c,i]),f=_.useCallback(x=>h.current.onChange({target:{value:Xn(x),name:i},type:ot.CHANGE}),[i]),b=_.useCallback(()=>h.current.onBlur({target:{value:F(s._formValues,i),name:i},type:ot.BLUR}),[i,s._formValues]),p=_.useCallback(x=>{const C=F(s._fields,i);C&&x&&(C._f.ref={focus:()=>x.focus&&x.focus(),select:()=>x.select&&x.select(),setCustomValidity:y=>x.setCustomValidity(y),reportValidity:()=>x.reportValidity()})},[s._fields,i]),m=_.useMemo(()=>({name:i,value:l,...$e(o)||c.disabled?{disabled:c.disabled||o}:{},onChange:f,onBlur:b,ref:p}),[i,o,c.disabled,f,b,p,l]);return _.useEffect(()=>{const x=s._options.shouldUnregister||r;s.register(i,{...u.current.rules,...$e(u.current.disabled)?{disabled:u.current.disabled}:{}});const C=(y,j)=>{const v=F(s._fields,y);v&&v._f&&(v._f.mount=j)};if(C(i,!0),x){const y=At(F(s._options.defaultValues,i));it(s._defaultValues,i,y),qe(F(s._formValues,i))&&it(s._formValues,i,y)}return!a&&s.register(i),()=>{(a?x&&!s._state.action:x)?s.unregister(i):C(i,!1)}},[i,s,a,r]),_.useEffect(()=>{s._setDisabledField({disabled:o,name:i})},[o,i,s]),_.useMemo(()=>({field:m,formState:c,fieldState:g}),[m,c,g])}const fe=n=>n.render(c0(n)),d0="_errorMessage_1xiyb_2",u0={errorMessage:d0},le=({errorMessage:n,errorColor:d="red",containerStyles:i})=>{const{t:o}=N.useTranslation();return t.jsx("div",{className:u0.errorMessage,style:{color:d,...i},children:n?o(n):""})},Re=({input:n,reactHookFormInstance:d})=>{const{code:i,type:o,label:s,maxLength:r,required:a,validateFunction:l,placeholder:c,errorColor:u="red",width:h=325,onClickForgotPass:g=()=>{console.log("Click on forgot password")},forgotPassLabel:f="forgot-password"}=n,{t:b}=N.useTranslation(),{control:p,trigger:m,clearErrors:x}=d,[C,y]=_.useState(!1),j=_.useRef(a);_.useEffect(()=>{j.current!==a&&(a?m(i):x(i),j.current=a)},[a,i,m,x]);const v=()=>o?o==="password"&&C?"text":o:"text";return t.jsx(fe,{name:i,control:p,rules:{required:a?`${b(s)} ${b("errorMessages.required")}`:!1,maxLength:r||void 0,validate:l||void 0},render:({field:w,fieldState:k})=>{var S;return t.jsxs("div",{className:he.textInputContainer,children:[t.jsxs("h3",{className:he.labelContainer,children:[b(s)," ",a&&t.jsx("label",{style:{color:k.error?u:""},children:"*"})]}),t.jsxs("div",{style:{position:"relative",width:h},className:he.inputContainer,children:[t.jsx("input",{type:v(),...w,placeholder:c?b(c):"",maxLength:r||void 0}),o=="password"&&t.jsx("button",{onClick:()=>y(!C),type:"button",className:he.showPasswordButton,children:C?"🙈":"👁️"})]}),o=="password"&&t.jsx("div",{className:he.forgotPassButton,children:t.jsx("button",{onClick:g,children:b(f)})}),t.jsx(le,{errorMessage:(S=k.error)==null?void 0:S.message,errorColor:u})]})}})},p0="_formContainer_b071f_2",m0="_formObjectContainer_b071f_11",h0="_buttonContainer_b071f_22",Le={formContainer:p0,formObjectContainer:m0,buttonContainer:h0},g0="_inputsContainer_10t9s_2",ie={inputsContainer:g0},C0="_selectInputContainer_1rj0h_2",f0="_labelContainer_1rj0h_6",x0="_inputContainer_1rj0h_9",b0="_selectInput_1rj0h_2",_0="_option_1rj0h_23",y0="_dropdownArrow_1rj0h_26",oe={selectInputContainer:C0,labelContainer:f0,inputContainer:x0,selectInput:b0,option:_0,dropdownArrow:y0},v0="data:image/svg+xml,%3csvg%20width='19'%20height='10'%20viewBox='0%200%2019%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%20311'%20d='M1%201.09961L8.79289%208.8925C9.18342%209.28303%209.81658%209.28303%2010.2071%208.8925L18%201.09961'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",Et=({input:n,reactHookFormInstance:d})=>{const{code:i,type:o,label:s,maxLength:r,required:a,validateFunction:l,placeholder:c,errorColor:u="red",width:h=325,options:g=[]}=n,{t:f}=N.useTranslation(),{control:b,trigger:p,clearErrors:m}=d,x=_.useRef(a);return _.useEffect(()=>{x.current!==a&&(a?p(i):m(i),x.current=a)},[a,i,p,m]),t.jsx(fe,{name:i,control:b,rules:{required:a?`${f(s)} ${f("errorMessages.required")}`:!1,validate:l?C=>{let y=d.getValues();l(C,y)}:void 0},render:({field:C,fieldState:y})=>{var j;return t.jsxs("div",{className:oe.selectInputContainer,children:[t.jsxs("h3",{className:oe.labelContainer,children:[f(s)," ",a&&t.jsx("label",{style:{color:y.error?u:""},children:"*"})]}),t.jsxs("div",{className:oe.inputContainer,style:{width:h},children:[t.jsxs("select",{...C,onChange:v=>{const w=v.target.value,k=g.every(S=>typeof S.value=="number")?Number(w):w;C.onChange(k)},className:oe.selectInput,children:[t.jsx("option",{value:"",disabled:!0,hidden:!0,children:f(c||"selectOption")}),g.map((v,w)=>t.jsx("option",{value:v.value,className:oe.option,children:f(v.label)},w))]}),t.jsx("img",{src:v0,alt:"Open",className:oe.dropdownArrow})]}),t.jsx(le,{errorMessage:(j=y.error)==null?void 0:j.message,errorColor:u})]})}})},j0="_radioButtonContainer_1e994_2",w0="_wholeInputContainer_1e994_5",N0="_questionContainer_1e994_27",k0="_radioQuestion_1e994_59",S0="_inputContainer_1e994_63",T0="_radioInput_1e994_93",J={radioButtonContainer:j0,wholeInputContainer:w0,questionContainer:N0,radioQuestion:k0,inputContainer:S0,radioInput:T0},Pt=({input:n,reactHookFormInstance:d})=>{const{code:i,label:o,required:s,validateFunction:r,errorColor:a="red",options:l=[],multi:c=!1}=n,{t:u}=N.useTranslation(),{control:h,trigger:g,clearErrors:f}=d,b=({options:x,onChange:C,actualValue:y})=>{if(c&&y&&y.length>0){let j=y.filter(v=>v!==x);C(j)}},p=({options:x,onChange:C,actualValue:y})=>{c?y&&y.length>0?C([...y,x]):C([x]):C(x)},m=_.useRef(s);return _.useEffect(()=>{m.current!==s&&(s?g(i):f(i),m.current=s)},[s,i,g,f]),t.jsx(fe,{control:h,name:i,rules:{validate:x=>s&&(x==null||x==="")?`${u(o)} ${u("errorMessages.required")}`:null},render:({formState:{errors:x},field:{onChange:C,onBlur:y,value:j,ref:v},fieldState:w})=>{var k;return t.jsx("div",{id:i+"id",className:J.radioButtonContainer,children:t.jsxs("div",{className:J.wholeInputContainer,children:[o&&t.jsx("div",{className:J.questionContainer,children:t.jsxs("h3",{htmlFor:i+"id",className:`${J.radioQuestion} ${s&&J.required}`,children:[u(o)," ",s&&t.jsx("label",{style:{color:w.error?a:""},children:"*"})]})}),t.jsxs("div",{className:J.inputContainer,children:[l.map(({label:S,value:T,disabled:q=!1,italicLabel:G},A)=>{const xe=j&&c?j.isArray&&(j==null?void 0:j.length)>0&&j.some(P=>P===T):j===T;return t.jsxs("label",{children:[t.jsx("input",{type:"radio",checked:xe,onChange:()=>{c?xe?b({actualValue:j,options:l,onChange:C}):p({actualValue:j,options:l,onChange:C}):C(T)},className:J.radioInput}),t.jsx("span",{className:"radio-custom"}),u(S)]},`inputRadio ${A}`)}),t.jsx(le,{errorMessage:(k=w.error)==null?void 0:k.message,errorColor:a})]})]})})}})},B0="_rankingSliderContainer_1lekm_2",$0="_labelContainer_1lekm_6",L0="_inputContainer_1lekm_10",M0="_slider_1lekm_20",D0="_thumb_1lekm_27",F0="_labels_1lekm_37",V0="_minLabel_1lekm_67",A0="_maxLabel_1lekm_67",B={rankingSliderContainer:B0,labelContainer:$0,inputContainer:L0,slider:M0,thumb:D0,labels:F0,minLabel:V0,maxLabel:A0},Ze=({input:n,reactHookFormInstance:d})=>{const{code:i,label:o,minValue:s=1,maxValue:r=5,defValue:a=3,thumbColor:l="#B32F5D",required:c,errorColor:u="red",labelWidth:h="300px",sliderWidth:g="300px",minText:f,maxText:b,disabled:p=!1,marks:m=Array.from({length:r-s+1},(T,q)=>s+q),showMarksNumber:x=!0}=n,{t:C}=N.useTranslation(),{control:y,trigger:j,clearErrors:v}=d||{},w=_.useRef(c),[k,S]=_.useState(a);return _.useEffect(()=>{d&&w.current!==c&&(c?j(i):v(i),w.current=c)},[c,i,j,v,d]),d?t.jsx(fe,{name:i,control:y,defaultValue:a,rules:{required:c?`${C(o)} ${C("errorMessages.required")}`:!1},render:({field:T,fieldState:q})=>{var G;return t.jsxs("div",{className:B.rankingSliderContainer,style:{gridTemplateColumns:`${o&&h} ${g}`},children:[o&&t.jsx("p",{className:B.labelContainer,children:C(o)}),t.jsxs("div",{className:B.inputContainer,children:[f&&t.jsx("div",{className:B.minLabel,children:C(f)}),t.jsxs("div",{children:[t.jsx(Ae,{min:s,max:r,step:1,value:T.value??a,onChange:A=>T.onChange(A),marks:!0,className:B.slider,thumbClassName:B.thumb,renderThumb:A=>t.jsx("div",{...A,style:{...A.style,backgroundColor:l}}),trackClassName:B.track,markClassName:B.mark,disabled:p}),m&&t.jsx("div",{className:B.labels,children:m.map(A=>t.jsx("span",{children:x&&A},A))})]}),b&&t.jsx("div",{className:B.maxLabel,children:C(b)})]}),t.jsx(le,{errorMessage:(G=q.error)==null?void 0:G.message,errorColor:u})]})}}):t.jsxs("div",{className:B.rankingSliderContainer,style:{gridTemplateColumns:`${o&&h} ${g}`},children:[o&&t.jsx("p",{className:B.labelContainer,children:C(o)}),t.jsxs("div",{className:B.inputContainer,children:[f&&t.jsx("div",{className:B.minLabel,children:C(f)}),t.jsxs("div",{children:[t.jsx(Ae,{min:s,max:r,step:1,value:k,onChange:T=>S(T),marks:!0,className:B.slider,thumbClassName:B.thumb,renderThumb:T=>t.jsx("div",{...T,style:{...T.style,backgroundColor:l}}),trackClassName:B.track,markClassName:B.mark,disabled:p}),m&&t.jsx("div",{className:B.labels,children:m.map(T=>t.jsx("span",{children:x&&T},T))})]}),b&&t.jsx("div",{className:B.maxLabel,children:C(b)})]})]})};Ze.propTypes={input:e.shape({code:e.string,label:e.string,minValue:e.number,maxValue:e.number,defValue:e.number,thumbColor:e.string,required:e.bool,errorColor:e.string,labelWidth:e.string,sliderWidth:e.string,minText:e.string,maxText:e.string}),reactHookFormInstance:e.object};const Me=({inputs:n,inputContainerStyles:d,reactHookFormInstance:i})=>{const{watch:o}=i,s=o(),r=_.useMemo(()=>n.map(a=>{const l=typeof a.required=="function"?a.required(s):a.required;return{...a,required:l}}),[n,s]);return t.jsx("div",{className:ie.inputsContainer,children:r==null?void 0:r.map((a,l)=>{const{inputType:c}=a;switch(c){case me.text:return t.jsx("div",{className:ie.inputContainer,style:{...d},children:t.jsx(Re,{input:a,reactHookFormInstance:i})},`${a.code}${l}`);case me.password:return t.jsx("div",{className:ie.inputContainer,style:{...d},children:t.jsx(Re,{input:a,reactHookFormInstance:i})},`${a.code}${l}`);case me.select:return t.jsx("div",{className:ie.inputContainer,style:{...d},children:t.jsx(Et,{input:a,reactHookFormInstance:i})},`${a.code}${l}`);case me.radioList:return t.jsx("div",{className:ie.inputContainer,style:{...d},children:t.jsx(Pt,{input:a,reactHookFormInstance:i})},`${a.code}${l}`);case me.rankingSlider:return t.jsx("div",{className:ie.inputContainer,style:{...d},children:t.jsx(Ze,{input:a,reactHookFormInstance:i})},`${a.code}${l}`);default:return t.jsx("div",{children:t.jsx("h4",{children:"Default"})},`${a.code}${l}`)}})})},O0=({reactHookFormInstance:n,formObject:d,CategoryComponent:i,inputContainerStyles:o,generalError:s,errorColor:r="red",submitButtonLabel:a="Submit",submitButtonStyles:l={width:325},activeCategory:c=null,onSubmit:u=h=>console.log("Form submitted with data: ",h)})=>{const{handleSubmit:h,control:g,formState:{errors:f}}=n,{t:b}=N.useTranslation();return t.jsxs("form",{className:Le.formContainer,onSubmit:h(u),children:[t.jsx("div",{className:Le.formObjectContainer,children:d&&d.map((p,m)=>{const{inputs:x}=p;return p.category?i?t.jsx("div",{style:{display:c&&p.categoryId!==c?"none":"inherit",width:"100%"},children:t.jsx(i,{title:p.category,children:t.jsx(Me,{inputs:x,control:g,inputContainerStyles:o,errorColor:r,formInstance:n})},`${p.category}${m}`)}):t.jsxs("div",{style:{width:"100%",display:c&&p.categoryId!==c?"none":"flex",flexDirection:"column"},children:[t.jsx("h2",{style:{marginBottom:20},children:b(p.category)}),t.jsx("div",{style:{paddingTop:50,width:"100%"},children:t.jsx(Me,{inputs:x,control:g,inputContainerStyles:o,errorColor:r,reactHookFormInstance:n})})]},`${p.category}${m}`):t.jsx("div",{style:{width:"100%"},children:t.jsx(Me,{inputContainerStyles:o,inputs:x,control:g,errorColor:r,reactHookFormInstance:n})},`inputKey${m}`)})}),t.jsxs("div",{className:Le.buttonContainer,children:[t.jsx(ge,{containerStyles:l,type:"submit",children:b(a)}),t.jsx(le,{errorMessage:s,errorColor:r})]})]})},q0="_overlay_mnd4j_2",R0="_modal_mnd4j_15",I0="_closeButton_mnd4j_29",E0="_icon_mnd4j_39",P0="_message_mnd4j_45",z0="_submessage_mnd4j_51",Z0="_buttonsContainer_mnd4j_57",K0="_buttonWrapper_mnd4j_64",K={overlay:q0,modal:R0,closeButton:I0,icon:E0,message:P0,submessage:z0,buttonsContainer:Z0,buttonWrapper:K0},zt=({onClose:n,icon:d,message:i,submessage:o,buttons:s,maxHeight:r="450px",maxWidth:a="450px"})=>t.jsx("div",{className:K.overlay,children:t.jsxs("div",{className:K.modal,style:{maxHeight:r,maxWidth:a},children:[t.jsx("button",{className:K.closeButton,onClick:n,"aria-label":"Close modal",children:"✕"}),d&&t.jsx("img",{src:d,alt:"icon",className:K.icon}),t.jsx("p",{className:K.message,children:i}),o&&t.jsx("p",{className:K.submessage,children:o}),s.length>0&&t.jsx("div",{className:K.buttonsContainer,children:s.map((l,c)=>t.jsx("div",{className:K.buttonWrapper,children:l},c))})]})});zt.propTypes={onClose:e.func.isRequired,icon:e.string,message:e.string.isRequired,submessage:e.string,buttons:e.arrayOf(e.node),maxHeight:e.string,maxWidth:e.string};const H0="_stepsContainer_1cyua_3",U0="_stepWrapper_1cyua_9",G0="_circleContainer_1cyua_19",W0="_circle_1cyua_19",Y0="_active_1cyua_39",Q0="_completed_1cyua_44",X0="_label_1cyua_50",J0="_labelActive_1cyua_56",ei="_connector_1cyua_61",E={stepsContainer:H0,stepWrapper:U0,circleContainer:G0,circle:W0,active:Y0,completed:Q0,label:X0,labelActive:J0,connector:ei},Ke=({steps:n,activeColor:d})=>t.jsx("div",{className:E.stepsContainer,children:n.map((i,o)=>{const s=i.status==="active",r=i.status==="completed";return t.jsxs("div",{className:E.stepWrapper,children:[t.jsxs("div",{className:E.circleContainer,children:[t.jsx("div",{className:`${E.circle}
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),y=require("react"),e=require("prop-types"),N=require("react-i18next"),Ie=require("framer-motion"),Wt=require("zustand"),Yt=require("d3"),Qt=require("mapbox-gl"),Xt=require("react-redux"),de=require("react-map-gl/mapbox"),we=require("maplibre-gl"),Jt=require("pmtiles"),ue=require("react-map-gl/maplibre"),e2=require("@reduxjs/toolkit"),t2=require("@mui/material/Slider"),Ue=require("@mui/material"),s2=require("@emotion/react"),n2=require("react-router-dom");function at(n){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const i in n)if(i!=="default"){const o=Object.getOwnPropertyDescriptor(n,i);Object.defineProperty(d,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}return d.default=n,Object.freeze(d)}const le=at(y),Ge=at(Yt),i2="_ambitSelector_mcunf_2",o2="_header_mcunf_13",r2="_nameDateContainer_mcunf_23",a2="_ambitName_mcunf_39",l2="_ambitDate_mcunf_53",c2="_buttonsContainer_mcunf_67",d2="_ambitListContainer_mcunf_76",u2="_newAmbitButtonContainer_mcunf_80",K={ambitSelector:i2,header:o2,nameDateContainer:r2,ambitName:a2,ambitDate:l2,buttonsContainer:c2,ambitListContainer:d2,newAmbitButtonContainer:u2},p2="_ambitItem_1qa6u_2",m2="_ambitNameDate_1qa6u_16",h2="_ambitName_1qa6u_16",g2="_ambitDate_1qa6u_35",C2="_ambitButtons_1qa6u_38",pe={ambitItem:p2,ambitNameDate:m2,ambitName:h2,ambitDate:g2,ambitButtons:C2},f2="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",x2="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",b2="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",_2="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",y2="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205138'%3e%3cpath%20id='Vector'%20d='M12.95%200.408447C7.659%200.408447%202.84899%202.77185%200.0832465%206.72621C-0.0277488%206.88808%20-0.0277488%207.09621%200.0832465%207.25807C2.84439%2011.2125%207.65437%2013.5712%2012.95%2013.5712C18.2456%2013.5712%2023.0556%2011.2125%2025.8168%207.25807C25.9278%207.0962%2025.9278%206.88807%2025.8168%206.72621C23.051%202.77184%2018.241%200.408447%2012.95%200.408447ZM12.95%2011.2217C10.619%2011.2217%208.71812%209.32083%208.71812%206.98984C8.71812%204.65885%2010.619%202.75796%2012.95%202.75796C15.281%202.75796%2017.1819%204.65883%2017.1819%206.98984C17.1819%209.32085%2015.281%2011.2217%2012.95%2011.2217Z'%20fill='%23B32F5D'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%2010.2966C14.7777%2010.2966%2016.2583%208.81607%2016.2583%206.98974C16.2583%205.1634%2014.7777%203.68286%2012.9514%203.68286C11.1251%203.68286%209.64453%205.1634%209.64453%206.98974C9.64453%208.81607%2011.1251%2010.2966%2012.9514%2010.2966Z'%20fill='%23B32F5D'/%3e%3c/g%3e%3c/svg%3e",v2="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",lt=({ambit:n,onClickCopy:d,onClickDelete:i,onClickFilters:o,onClickAmbit:s,isActive:r,activeColor:a,fontColor:l,moreInfo:c})=>{const{name:u,created_at:m,id:g,isBeingProcessed:b}=n;return t.jsxs("div",{className:pe.ambitItem,style:{borderBottom:`1px solid ${l}`},children:[t.jsxs("div",{className:pe.ambitNameDate,onClick:()=>s(g),children:[t.jsxs("div",{className:pe.ambitName,children:[t.jsx("img",{style:{marginRight:9},src:r?y2:v2}),t.jsx("span",{style:{color:r?a:l},children:u})]}),t.jsx("div",{className:pe.ambitDate,children:m?new Date(m).toLocaleDateString():""})]}),t.jsxs("div",{className:pe.ambitButtons,children:[b&&t.jsx("img",{src:_2}),t.jsx("button",{onClick:()=>o(g),disabled:n.is_default,children:t.jsx("img",{src:b2})}),t.jsx("button",{onClick:()=>d(g),children:t.jsx("img",{src:x2})}),t.jsx("button",{onClick:()=>i(g),disabled:n.is_default,children:t.jsx("img",{src:f2})})]})]})};lt.propTypes={ambit:e.shape({name:e.string.isRequired,created_at:e.string,id:e.string.isRequired,isBeingProcessed:e.bool}).isRequired,onClickCopy:e.func.isRequired,onClickDelete:e.func.isRequired,onClickFilters:e.func.isRequired,onClickAmbit:e.func.isRequired,isBeingProcessed:e.bool,isActive:e.bool,activeColor:e.string,fontColor:e.string,moreInfo:e.object};const We="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",j2="_generalButton_phq4n_2",w2={generalButton:j2},Ce=({children:n,onClick:d,fontColor:i="#605B56",borderColor:o="#605B56",type:s="button",containerStyles:r={},disabled:a=!1})=>t.jsx("button",{className:w2.generalButton,style:{color:i,border:`1.5px solid ${o}`,...r},onClick:d,type:s,disabled:a,children:n}),ct=({ambitList:n,activeAmbitId:d,fontColor:i="#605B56",activeColor:o,nameLabel:s,dateLabel:r,newAmbitLabel:a="New field",buttonContainerStyles:l={},containerStyles:c={},onCLickNewAmbit:u=()=>console.log("New ambit clicked"),onClickCopy:m=C=>console.log(`Copy ambit: ${C}`),onCLickDelete:g=C=>console.log(`Delete ambit: ${C}`),onClickFilters:b=C=>console.log(`Filters clicked: ${C}`),onClickAmbit:_=C=>console.log(`OnCLickAmbit: ${C}`)})=>{const{t:C}=N.useTranslation(),[h,p]=y.useState(n);y.useEffect(()=>{n&&p(n)},[n]);const f=x=>{if(h&&h.length>0){let w=[...h];w.sort((v,j)=>v[x].localeCompare(j[x])),p(w)}};return t.jsxs("div",{className:K.ambitSelector,style:{color:i,...c},children:[t.jsxs("div",{className:K.header,style:{borderBottom:`1px solid ${i}`},children:[t.jsxs("div",{className:K.nameDateContainer,children:[t.jsx("div",{className:K.ambitName,children:t.jsxs("button",{onClick:()=>f("name"),children:[t.jsx("span",{children:C(s)}),t.jsx("img",{src:We})]})}),t.jsx("div",{className:K.ambitDate,children:t.jsxs("button",{onClick:()=>f("date"),children:[t.jsx("span",{children:C(r)}),t.jsx("img",{src:We})]})})]}),t.jsx("div",{className:K.buttonsContainer})]}),t.jsx("div",{className:K.ambitListContainer,children:h&&h.length>0&&h.map(x=>t.jsx(lt,{isActive:d==x.id,ambit:x,fontColor:i,activeColor:o,onClickCopy:m,onClickDelete:g,onClickFilters:b,onClickAmbit:_},`ambitKey${x.id}`))}),t.jsx("div",{className:K.newAmbitButtonContainer,children:t.jsx(Ce,{style:{...l},onClick:u,borderColor:"grey",children:C(a)})})]})};ct.propTypes={ambitList:e.arrayOf(e.shape({name:e.string.isRequired,date:e.string.isRequired,id:e.string.isRequired})).isRequired,activeAmbitId:e.string,fontColor:e.string,activeColor:e.string,onClickCopy:e.func.isRequired,onCLickDelete:e.func.isRequired,onClickFilters:e.func.isRequired,onClickAmbit:e.func.isRequired,nameLabel:e.string,dateLabel:e.string,newAmbitLabel:e.string,buttonContainerStyles:e.object,containerStyles:e.object,onCLickNewAmbit:e.func};const N2="_buttonsContainer_1ks7x_2",k2="_vertical_1ks7x_6",S2="_horizontal_1ks7x_9",T2="_button_1ks7x_2",B2="_active_1ks7x_25",$2="_buttonName_1ks7x_28",Y={buttonsContainer:N2,vertical:k2,horizontal:S2,button:T2,active:B2,buttonName:$2},L2="_left_1l4m4_2",M2="_top_1l4m4_40",D2="_bottom_1l4m4_79",F2="_right_1l4m4_118",V2={left:L2,top:M2,bottom:D2,right:F2},U=({text:n,position:d,styleCustom:i=null})=>{const{t:o}=N.useTranslation();return t.jsx("div",{className:`tooltip ${V2[d]}`,style:i,children:o(n)})};U.propTypes={text:e.string.isRequired,position:e.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:e.object};const dt=({buttons:n=[],orientation:d="horizontal",showName:i=!0,namePosition:o="right",useTooltip:s=!1,tooltipPosition:r="top"})=>{const{t:a}=N.useTranslation();return t.jsx("div",{className:`${Y.buttonsContainer} ${d==="vertical"&&Y.vertical}
|
|
3
|
+
${d==="horizontal"&&Y.horizontal}`,children:n.map((l,c)=>{const{icon:u,activeIcon:m,isActive:g,name:b,onClick:_,disabled:C}=l,h=t.jsxs(t.Fragment,{children:[i&&o==="left"&&t.jsx("span",{className:Y.buttonName,children:a(b)}),t.jsx("img",{src:g?m:u,alt:a(b)}),i&&o==="right"&&t.jsx("span",{className:Y.buttonName,children:a(b)})]});return t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:_,className:`${Y.button}
|
|
4
|
+
${g&&Y.active}`,disabled:C,children:h}),s&&t.jsx(U,{text:b,position:r})]},c)})})};dt.propTypes={buttons:e.arrayOf(e.shape({icon:e.node.isRequired,activeIcon:e.node,isActive:e.bool,name:e.string,onClick:e.func,disabled:e.bool})).isRequired,orientation:e.oneOf(["horizontal","vertical"]),showName:e.bool,namePosition:e.oneOf(["left","right"]),useTooltip:e.bool,tooltipPosition:e.oneOf(["top","bottom","left","right"])};const A2="_indicatorsCategory_1cu33_2",O2="_title_1cu33_5",Ne={indicatorsCategory:A2,title:O2},G=({isOpen:n,onClick:d,children:i,color:o,activeColor:s="#F8A925",title:r="Title",height:a=53,titleFontStyles:l,showBottomBar:c=!0,titleMarginChildren:u=25})=>{const{t:m}=N.useTranslation();return t.jsxs(Ie.motion.div,{className:Ne.indicatorsCategory,initial:{height:`${a}px`},animate:{height:n?"auto":`${a}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:n&&c?`1px solid ${s}`:"0px",marginBottom:n?"20px":"0px"},children:[t.jsxs("h2",{style:{...l,marginBottom:u||"auto"},className:`${Ne.title}`,onClick:d,children:[t.jsx("span",{style:{color:n?s:o},children:n?"-":"+"}),t.jsx("span",{style:{marginLeft:12,color:n?s:o},children:m(r)})]}),t.jsx("div",{className:Ne.content,children:i})]})};G.propTypes={isOpen:e.bool,onClick:e.func,children:e.node,color:e.string,activeColor:e.string,title:e.string,height:e.number,showBottomBar:e.bool,titleFontStyles:e.object};const q2=()=>t.jsx("div",{children:"EditAmbit"}),R2="data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%201L13.9996%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14%201L1.00044%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",I2="_AppliedFiltersContainer_cokx9_2",E2="_AppliedFilterContent_cokx9_11",Ye={AppliedFiltersContainer:I2,AppliedFilterContent:E2},M=Wt.create(n=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56"})),ut=({title:n,onClick:d,isOpen:i=!0,textColor:o="#ffffff",backgroundColor:s="#605B5680",activeColor:r})=>{const{t:a}=N.useTranslation(),{tematicalFiltersSelected:l}=M(u=>u),c=u=>{M.setState(m=>({tematicalFiltersSelected:m.tematicalFiltersSelected.filter(g=>g.code!==u)}))};return t.jsx(G,{isOpen:i,onClick:d,title:n?a(n):"Applied Filters",activeColor:r,children:t.jsx("div",{className:Ye.AppliedFiltersContainer,children:l==null?void 0:l.map((u,m)=>t.jsxs("div",{className:Ye.AppliedFilterContent,style:{color:o,background:s},children:[a(u.name),t.jsx("img",{src:R2,alt:"CloseIcon",onClick:()=>c(u.code),style:{cursor:"pointer"}})]},m))})})};ut.propTypes={isOpen:e.bool,onClick:e.func,title:e.string,textColor:e.string,backgroundColor:e.string,indicators:e.arrayOf(e.shape({title:e.string.isRequired,Codename:e.string.isRequired})),activeColor:e.string};const pt=({title:n,onClick:d,isOpen:i=!0,textColor:o="#ffffff",backgroundColor:s="#605B5680",activeColor:r})=>{const{t:a}=N.useTranslation(),{tematicalFiltersSelected:l}=M(c=>c);return t.jsx(G,{isOpen:i,onClick:d,title:n?a(n):"Geographical Filters",activeColor:r,children:"A"})};pt.propTypes={isOpen:e.bool,onClick:e.func,title:e.string,textColor:e.string,backgroundColor:e.string,activeColor:e.string};const P2="_checkboxContainer_zld97_2",z2={checkboxContainer:P2},mt=({onClick:n,containerStyles:d,color:i="#605B56",indicator:o,value:s})=>{const{t:r}=N.useTranslation(),{title:a}=o||{},{fontColor:l,inputsColor:c}=M(u=>u);return t.jsxs("div",{style:{...d,color:i},role:"checkbox",className:z2.checkboxContainer,onClick:n,children:[t.jsx("input",{type:"checkbox",checked:typeof s=="boolean"?s:!0,value:s,readOnly:!0,style:{border:`1.5px solid ${s?c:l}`,backgroundColor:s?c:"white"}}),t.jsx("span",{className:"checkmark",children:r(a)})]})};mt.propTypes={onClick:e.func,value:e.bool,containerStyles:e.object,color:e.string,indicator:e.shape({title:e.string,codename:e.array}),checkedColor:e.string};function De(n,d){return De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},De(n,d)}function Z2(n,d){n.prototype=Object.create(d.prototype),n.prototype.constructor=n,De(n,d)}function ke(n){return n&&n.stopPropagation&&n.stopPropagation(),n&&n.preventDefault&&n.preventDefault(),!1}function Se(n){return n==null?[]:Array.isArray(n)?n.slice():[n]}function be(n){return n!==null&&n.length===1?n[0]:n.slice()}function _e(n){Object.keys(n).forEach(d=>{typeof document<"u"&&document.addEventListener(d,n[d],!1)})}function Q(n,d){return Fe(function(i,o){let s=i;return s<=o.min&&(s=o.min),s>=o.max&&(s=o.max),s}(n,d),d)}function Fe(n,d){const i=(n-d.min)%d.step;let o=n-i;return 2*Math.abs(i)>=d.step&&(o+=i>0?d.step:-d.step),parseFloat(o.toFixed(5))}let Ve=function(n){function d(o){var s;(s=n.call(this,o)||this).onKeyUp=()=>{s.onEnd()},s.onMouseUp=()=>{s.onEnd(s.getMouseEventMap())},s.onTouchEnd=l=>{l.preventDefault(),s.onEnd(s.getTouchEventMap())},s.onBlur=()=>{s.setState({index:-1},s.onEnd(s.getKeyDownEventMap()))},s.onMouseMove=l=>{s.setState({pending:!0});const c=s.getMousePosition(l),u=s.getDiffPosition(c[0]),m=s.getValueFromPosition(u);s.move(m)},s.onTouchMove=l=>{if(l.touches.length>1)return;s.setState({pending:!0});const c=s.getTouchPosition(l);if(s.isScrolling===void 0){const g=c[0]-s.startPosition[0],b=c[1]-s.startPosition[1];s.isScrolling=Math.abs(b)>Math.abs(g)}if(s.isScrolling)return void s.setState({index:-1});const u=s.getDiffPosition(c[0]),m=s.getValueFromPosition(u);s.move(m)},s.onKeyDown=l=>{if(!(l.ctrlKey||l.shiftKey||l.altKey||l.metaKey))switch(s.setState({pending:!0}),l.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":l.preventDefault(),s.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":l.preventDefault(),s.moveUpByStep();break;case"Home":l.preventDefault(),s.move(s.props.min);break;case"End":l.preventDefault(),s.move(s.props.max);break;case"PageDown":l.preventDefault(),s.moveDownByStep(s.props.pageFn(s.props.step));break;case"PageUp":l.preventDefault(),s.moveUpByStep(s.props.pageFn(s.props.step))}},s.onSliderMouseDown=l=>{if(!s.props.disabled&&l.button!==2){if(s.setState({pending:!0}),!s.props.snapDragDisabled){const c=s.getMousePosition(l);s.forceValueFromPosition(c[0],u=>{s.start(u,c[0]),_e(s.getMouseEventMap())})}ke(l)}},s.onSliderClick=l=>{if(!s.props.disabled&&s.props.onSliderClick&&!s.hasMoved){const c=s.getMousePosition(l),u=Q(s.calcValue(s.calcOffsetFromPosition(c[0])),s.props);s.props.onSliderClick(u)}},s.createOnKeyDown=l=>c=>{s.props.disabled||(s.start(l),_e(s.getKeyDownEventMap()),ke(c))},s.createOnMouseDown=l=>c=>{if(s.props.disabled||c.button===2)return;s.setState({pending:!0});const u=s.getMousePosition(c);s.start(l,u[0]),_e(s.getMouseEventMap()),ke(c)},s.createOnTouchStart=l=>c=>{if(s.props.disabled||c.touches.length>1)return;s.setState({pending:!0});const u=s.getTouchPosition(c);s.startPosition=u,s.isScrolling=void 0,s.start(l,u[0]),_e(s.getTouchEventMap()),function(m){m.stopPropagation&&m.stopPropagation()}(c)},s.handleResize=()=>{const l=window.setTimeout(()=>{s.pendingResizeTimeouts.shift(),s.resize()},0);s.pendingResizeTimeouts.push(l)},s.renderThumb=(l,c)=>{const u=s.props.thumbClassName+" "+s.props.thumbClassName+"-"+c+" "+(s.state.index===c?s.props.thumbActiveClassName:""),m={ref:b=>{s["thumb"+c]=b},key:s.props.thumbClassName+"-"+c,className:u,style:l,onMouseDown:s.createOnMouseDown(c),onTouchStart:s.createOnTouchStart(c),onFocus:s.createOnKeyDown(c),tabIndex:0,role:"slider","aria-orientation":s.props.orientation,"aria-valuenow":s.state.value[c],"aria-valuemin":s.props.min,"aria-valuemax":s.props.max,"aria-label":Array.isArray(s.props.ariaLabel)?s.props.ariaLabel[c]:s.props.ariaLabel,"aria-labelledby":Array.isArray(s.props.ariaLabelledby)?s.props.ariaLabelledby[c]:s.props.ariaLabelledby,"aria-disabled":s.props.disabled},g={index:c,value:be(s.state.value),valueNow:s.state.value[c]};return s.props.ariaValuetext&&(m["aria-valuetext"]=typeof s.props.ariaValuetext=="string"?s.props.ariaValuetext:s.props.ariaValuetext(g)),s.props.renderThumb(m,g)},s.renderTrack=(l,c,u)=>{const m={key:s.props.trackClassName+"-"+l,className:s.props.trackClassName+" "+s.props.trackClassName+"-"+l,style:s.buildTrackStyle(c,s.state.upperBound-u)},g={index:l,value:be(s.state.value)};return s.props.renderTrack(m,g)};let r=Se(o.value);r.length||(r=Se(o.defaultValue)),s.pendingResizeTimeouts=[];const a=[];for(let l=0;l<r.length;l+=1)r[l]=Q(r[l],o),a.push(l);return s.resizeObserver=null,s.resizeElementRef=y.createRef(),s.state={index:-1,upperBound:0,sliderLength:0,value:r,zIndices:a},s}Z2(d,n);var i=d.prototype;return i.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},d.getDerivedStateFromProps=function(o,s){const r=Se(o.value);return r.length?s.pending?null:{value:r.map(a=>Q(a,o))}:null},i.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},i.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},i.onEnd=function(o){o&&function(s){Object.keys(s).forEach(r=>{typeof document<"u"&&document.removeEventListener(r,s[r],!1)})}(o),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},i.getValue=function(){return be(this.state.value)},i.getClosestIndex=function(o){let s=Number.MAX_VALUE,r=-1;const{value:a}=this.state,l=a.length;for(let c=0;c<l;c+=1){const u=this.calcOffset(a[c]),m=Math.abs(o-u);m<s&&(s=m,r=c)}return r},i.getMousePosition=function(o){return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},i.getTouchPosition=function(o){const s=o.touches[0];return[s["page"+this.axisKey()],s["page"+this.orthogonalAxisKey()]]},i.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},i.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},i.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},i.getValueFromPosition=function(o){const s=o/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return Q(this.state.startValue+s,this.props)},i.getDiffPosition=function(o){let s=o-this.state.startPosition;return this.props.invert&&(s*=-1),s},i.resize=function(){const{slider:o,thumb0:s}=this;if(!o||!s)return;const r=this.sizeKey(),a=o.getBoundingClientRect(),l=o[r],c=a[this.posMaxKey()],u=a[this.posMinKey()],m=s.getBoundingClientRect()[r.replace("client","").toLowerCase()],g=l-m,b=Math.abs(c-u);this.state.upperBound===g&&this.state.sliderLength===b&&this.state.thumbSize===m||this.setState({upperBound:g,sliderLength:b,thumbSize:m})},i.calcOffset=function(o){const s=this.props.max-this.props.min;return s===0?0:(o-this.props.min)/s*this.state.upperBound},i.calcValue=function(o){return o/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},i.calcOffsetFromPosition=function(o){const{slider:s}=this,r=s.getBoundingClientRect(),a=r[this.posMaxKey()],l=r[this.posMinKey()];let c=o-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:l));return this.props.invert&&(c=this.state.sliderLength-c),c-=this.state.thumbSize/2,c},i.forceValueFromPosition=function(o,s){const r=this.calcOffsetFromPosition(o),a=this.getClosestIndex(r),l=Q(this.calcValue(r),this.props),c=this.state.value.slice();c[a]=l;for(let u=0;u<c.length-1;u+=1)if(c[u+1]-c[u]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:c},()=>{s(a),this.fireChangeEvent("onChange")})},i.clearPendingResizeTimeouts=function(){do{const o=this.pendingResizeTimeouts.shift();clearTimeout(o)}while(this.pendingResizeTimeouts.length)},i.start=function(o,s){const r=this["thumb"+o];r&&r.focus();const{zIndices:a}=this.state;a.splice(a.indexOf(o),1),a.push(o),this.setState(l=>({startValue:l.value[o],startPosition:s!==void 0?s:l.startPosition,index:o,zIndices:a}))},i.moveUpByStep=function(o){o===void 0&&(o=this.props.step);const s=this.state.value[this.state.index],r=Q(this.props.invert&&this.props.orientation==="horizontal"?s-o:s+o,this.props);this.move(Math.min(r,this.props.max))},i.moveDownByStep=function(o){o===void 0&&(o=this.props.step);const s=this.state.value[this.state.index],r=Q(this.props.invert&&this.props.orientation==="horizontal"?s+o:s-o,this.props);this.move(Math.max(r,this.props.min))},i.move=function(o){const s=this.state.value.slice(),{index:r}=this.state,{length:a}=s,l=s[r];if(o===l)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:c,max:u,min:m,minDistance:g}=this.props;if(!c){if(r>0){const b=s[r-1];o<b+g&&(o=b+g)}if(r<a-1){const b=s[r+1];o>b-g&&(o=b-g)}}s[r]=o,c&&a>1&&(o>l?(this.pushSucceeding(s,g,r),function(b,_,C,h){for(let p=0;p<b;p+=1){const f=h-p*C;_[b-1-p]>f&&(_[b-1-p]=f)}}(a,s,g,u)):o<l&&(this.pushPreceding(s,g,r),function(b,_,C,h){for(let p=0;p<b;p+=1){const f=h+p*C;_[p]<f&&(_[p]=f)}}(a,s,g,m))),this.setState({value:s},this.fireChangeEvent.bind(this,"onChange"))},i.pushSucceeding=function(o,s,r){let a,l;for(a=r,l=o[a]+s;o[a+1]!==null&&l>o[a+1];a+=1,l=o[a]+s)o[a+1]=Fe(l,this.props)},i.pushPreceding=function(o,s,r){for(let a=r,l=o[a]-s;o[a-1]!==null&&l<o[a-1];a-=1,l=o[a]-s)o[a-1]=Fe(l,this.props)},i.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},i.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},i.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},i.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},i.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},i.fireChangeEvent=function(o){this.props[o]&&this.props[o](be(this.state.value),this.state.index)},i.buildThumbStyle=function(o,s){const r={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(s)+1};return r[this.posMinKey()]=o+"px",r},i.buildTrackStyle=function(o,s){const r={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return r[this.posMinKey()]=o,r[this.posMaxKey()]=s,r},i.buildMarkStyle=function(o){var s;return(s={position:"absolute"})[this.posMinKey()]=o,s},i.renderThumbs=function(o){const{length:s}=o,r=[];for(let l=0;l<s;l+=1)r[l]=this.buildThumbStyle(o[l],l);const a=[];for(let l=0;l<s;l+=1)a[l]=this.renderThumb(r[l],l);return a},i.renderTracks=function(o){const s=[],r=o.length-1;s.push(this.renderTrack(0,0,o[0]));for(let a=0;a<r;a+=1)s.push(this.renderTrack(a+1,o[a],o[a+1]));return s.push(this.renderTrack(r+1,o[r],this.state.upperBound)),s},i.renderMarks=function(){let{marks:o}=this.props;const s=this.props.max-this.props.min+1;return typeof o=="boolean"?o=Array.from({length:s}).map((r,a)=>a):typeof o=="number"&&(o=Array.from({length:s}).map((r,a)=>a).filter(r=>r%o==0)),o.map(parseFloat).sort((r,a)=>r-a).map(r=>{const a=this.calcOffset(r),l={key:r,className:this.props.markClassName,style:this.buildMarkStyle(a)};return this.props.renderMark(l)})},i.render=function(){const o=[],{value:s}=this.state,r=s.length;for(let u=0;u<r;u+=1)o[u]=this.calcOffset(s[u],u);const a=this.props.withTracks?this.renderTracks(o):null,l=this.renderThumbs(o),c=this.props.marks?this.renderMarks():null;return y.createElement("div",{ref:u=>{this.slider=u,this.resizeElementRef.current=u},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},a,l,c)},d}(y.Component);Ve.displayName="ReactSlider",Ve.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=>y.createElement("div",n),renderTrack:n=>y.createElement("div",n),renderMark:n=>y.createElement("span",n)};var Ae=Ve;const K2="_container_4u41i_2",H2="_unitLabel_4u41i_8",U2="_slider_4u41i_11",G2="_thumb_4u41i_17",W2="_track_4u41i_26",Y2="_labels_4u41i_32",se={container:K2,unitLabel:H2,slider:U2,thumb:G2,track:W2,labels:Y2},ht=({min:n=0,max:d=100,step:i=1,onChange:o,width:s=300,unit:r,fontColor:a="#605B56",defaultValue:l,isDate:c})=>{const{t:u}=N.useTranslation(),m=c?new Date(n).getTime():null,g=c?new Date(d).getTime():null,[b,_]=y.useState(c?[m,g]:[n,d]),C=h=>{_(h),o==null||o({min:h[0],max:h[1]})};return y.useEffect(()=>{l||_(c?[m,g]:[n,d])},[l,c]),t.jsxs("div",{className:se.container,style:{width:`${s}px`,color:`${a}`},children:[t.jsx("div",{className:se.unitLabel,children:t.jsx("span",{children:u(r)})}),t.jsx(Ae,{className:se.slider,thumbClassName:se.thumb,trackClassName:se.track,min:c?m:n,max:c?g:d,step:c?(g-m)/30:i,value:b,onAfterChange:C,withTracks:!0,pearling:!c,minDistance:c?0:.1}),t.jsxs("div",{className:se.labels,children:[t.jsx("span",{children:c?new Date(b[0]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):b[0]}),t.jsx("span",{children:c?new Date(b[1]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):b[1]})]})]})};ht.propTypes={min:e.number,max:e.number,step:e.number,initialMin:e.number,initialMax:e.number,onChange:e.func,width:e.number,unit:e.string,fontColor:e.string,value:e.arrayOf(e.number)};const Q2="_tematicalFiltersInputContainer_1vm1r_2",X2="_inputTypeContainer_1vm1r_2",J2="_checkboxContainer_1vm1r_28",es="_absoluteSliderContainer_1vm1r_37",ye={tematicalFiltersInputContainer:Q2,inputTypeContainer:X2,checkboxContainer:J2,absoluteSliderContainer:es},Ee=({indicator:n,activeColor:d})=>{const[i,o]=y.useState(),{type:s,name:r,values:a,minValue:l,maxValue:c,unit:u,step:m,disabled:g,isDate:b}=n||{},_=y.useMemo(()=>s=="cat"||i=="cat",[i,s]),C=y.useMemo(()=>s=="abs"||i=="abs",[i,s]),{tematicalFiltersSelected:h,selectedIndicator:p,fontColor:f,inputsColor:x}=M(j=>j),w=j=>{if(console.log("onChangInput",j),j){const{min:k,max:S,valueClicked:A,allValues:$}=j||{},{code:P,type:te,source:O}=n||{},z=C?"abs":_?"cat":"both";console.log("type: ",z);let R=P[0];te=="both"&&(R=z=="cat"?P[1]:P[0]),z=="cat"?M.setState(W=>{let Z=W.tematicalFiltersSelected.find(D=>D.code===R);if(Z){let D=[Z.values];return Z.values.includes(A)?D=Z.values.filter(V=>V!==A):D=[...Z.values,A],D.length==$.length?{tematicalFiltersSelected:W.tematicalFiltersSelected.filter(V=>V.code!==R)}:{tematicalFiltersSelected:W.tematicalFiltersSelected.map(V=>V.code===R?{...V,values:D}:V)}}else{let D=$.map((V,Gt)=>Gt);return{tematicalFiltersSelected:[...h,{type:"cat",code:R,values:D.filter(V=>V!==A),name:n.name,source:O,isDate:b}]}}}):z=="abs"&&M.setState(W=>{let Z=W.tematicalFiltersSelected.find(D=>D.code===R);if(k==n.minValue&&S==n.maxValue)return{tematicalFiltersSelected:W.tematicalFiltersSelected.filter(D=>D.code!==R)};if(Z){let D={...Z,min:k,max:S,type:z,isDate:b};return{tematicalFiltersSelected:W.tematicalFiltersSelected.map(V=>V.code===R?D:V)}}else return{tematicalFiltersSelected:[...h,{type:z,code:R,min:k,max:S,name:n.name,source:n.source}]}})}},v=y.useMemo(()=>{const j={};if((h==null?void 0:h.length)>0)for(const k of h)k.type==="cat"?j[k.code]=new Set(k.values):j[k.code]=[k.min,k.max];return j},[h]);return t.jsx("div",{className:ye.tematicalFiltersInputContainer,children:t.jsxs(G,{titleFontStyles:{fontSize:16,fontWeight:400,opacity:g?.5:1},title:r,isOpen:p==`id${r}`,onClick:()=>{g||M.setState(()=>({selectedIndicator:p==`id${r}`?"":`id${r}`}))},showBottomBar:!1,height:42,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:f,activeColor:d,children:[s=="both"&&t.jsxs("div",{className:ye.inputTypeContainer,style:{color:f},children:[t.jsxs("label",{children:[t.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{o("abs")},style:{marginRight:4,backgroundColor:i=="abs"?x:"white",border:`1.5px solid ${i=="abs"?x:f}`}}),"Absoluto"]}),t.jsxs("label",{children:[t.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{o("cat")},style:{marginRight:4,backgroundColor:i=="cat"?x:"white",border:`1.5px solid ${i=="cat"?x:f}`}}),"Categórico"]})]}),_&&t.jsx("div",{className:ye.checkboxContainer,children:a.map((j,k)=>{var S;return t.jsx(mt,{onClick:()=>w({valueClicked:k,allValues:a}),indicator:j,value:((S=v[n.code[s=="both"?1:0]])==null?void 0:S.has(k))||!v[n.code[s=="both"?1:0]]},`checkbox-${k}`)})}),(C||s=="glb")&&t.jsx("div",{className:ye.absoluteSliderContainer,children:t.jsx(ht,{onChange:w,min:l,max:c,unit:u,defaultValue:v[n.code[0]]?v[n.code[0]]:"",isDate:b,step:m})})]})})};Ee.propTypes={indicator:e.shape({name:e.string,type:e.string,code:e.arrayOf(e.string),values:e.arrayOf(e.shape({codename:e.oneOfType(e.array,e.string),title:e.string}))}),activeColor:e.string};const gt=({subcategory:n,fontColor:d,activeColor:i})=>{const{activeSubcategory:o}=M(a=>a),{name:s,indicators:r}=n||{};return t.jsx(G,{title:s,isOpen:o==`id${s}`,onClick:()=>{M.setState(a=>({activeSubcategory:a.activeSubcategory===`id${s}`?"":`id${s}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:48,color:d,activeColor:i,children:r==null?void 0:r.map((a,l)=>t.jsx(Ee,{indicator:a,fontColor:d,activeColor:i},`indicatorSub-${l}`))})};gt.propTypes={subcategory:e.shape({name:e.string,indicators:e.arrayOf(e.shape({name:e.string,value:e.string}))}),activeColor:e.string};const Ct=({category:n,activeColor:d})=>{const{name:i,subcategories:o,indicators:s}=n||{},{activeCategory:r,fontColor:a}=M(l=>l);return n&&t.jsx(G,{onClick:()=>{M.setState(l=>({activeCategory:r===`id${i}`?"":`id${i}`}))},title:i,isOpen:r===`id${i}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:a,activeColor:d,children:o?o.map((l,c)=>t.jsx(gt,{subcategory:l,fontColor:a,activeColor:d},`subcategory-${c}`)):s&&s.map((l,c)=>t.jsx(Ee,{indicator:l,fontColor:a,activeColor:d},`indicator-${c}`))})};Ct.propTypes={category:e.shape({name:e.string.isRequired,subcategories:e.array,indicators:e.array}),activeColor:e.string};const ft=({indicators:n,isOpen:d=!0,title:i,fontColor:o="#605B56",inputsColor:s="#605B56",activeColor:r})=>{const{tematicalFiltersSelected:a}=M(c=>c),{t:l}=N.useTranslation();return y.useEffect(()=>{console.log("filtersSelected changed: ",a)},[a]),y.useEffect(()=>{o&&M.setState(()=>({fontColor:o}))},[o]),y.useEffect(()=>{s&&M.setState(()=>({inputsColor:s}))},[s]),t.jsx(G,{isOpen:d,title:i?l(i):"Tematical filters",color:o,activeColor:r,children:n==null?void 0:n.map((c,u)=>t.jsx(Ct,{category:c,fontColor:o,activeColor:r},`category-${u}`))})};ft.propTypes={isOpen:e.bool,title:e.string,indicators:e.arrayOf(e.object),fontColor:e.string,onChangeTematicalFilters:e.func,inputsColor:e.string,activeColor:e.string};const ts="_FiltersAmbitContainer_1g9xx_2",ss="_FiltersAmbitHeader_1g9xx_7",ns="_FiltersAmbitTitle_1g9xx_15",is="_FiltersAmbitDescription_1g9xx_22",os="_FiltersAmbitDescriptionTitle_1g9xx_33",rs="_warning_1g9xx_37",ne={FiltersAmbitContainer:ts,FiltersAmbitHeader:ss,FiltersAmbitTitle:ns,FiltersAmbitDescription:is,FiltersAmbitDescriptionTitle:os,warning:rs},xt=({ambitName:n,ambitDescription:d,defaultFilters:i,indicators:o,activeColor:s,textColor:r,backgroundColor:a,onChangeAppliedFilters:l,saveAmbit:c,namePlaceholder:u,descPlaceholder:m,filtersTypes:g=["geographical","tematical"],nameRequiredText:b,onlyFilters:_=!1})=>{const{t:C}=N.useTranslation(),{tematicalFiltersSelected:h}=M(S=>S),[p,f]=y.useState(n||null),[x,w]=y.useState(d||null),[v,j]=y.useState(!1);y.useEffect(()=>{i&&i.length>0&&M.setState(S=>({tematicalFiltersSelected:i}))},[i]),y.useEffect(()=>{console.log("filtersSelected changed: ",h),l(h)},[h]);const k=()=>{p?c({name:p,description:x}):j(!0)};return t.jsxs("div",{className:ne.FiltersAmbitContainer,children:[!_&&t.jsxs("div",{className:ne.FiltersAmbitHeader,children:[t.jsx("div",{className:ne.FiltersAmbitTitle,children:t.jsx("input",{type:"text",onChange:S=>{j(!1),f(S.target.value)},value:p,placeholder:C(u)})}),t.jsx("div",{className:ne.FiltersAmbitDescription,children:t.jsx("div",{className:ne.FiltersAmbitDescriptionTitle,children:t.jsx("textarea",{value:x,onChange:S=>w(S.target.value),placeholder:C(m)})})})]}),t.jsx(ut,{title:C("applied_filters"),isOpen:!0,textColor:r||"#fff",backgroundColor:a||"#605B5680",activeColor:s}),g.includes("geographical")&&t.jsx(pt,{activeColor:s}),g.includes("tematical")&&t.jsx(ft,{indicators:o,inputsColor:s,textColor:r,title:"tematical_filters",activeColor:s}),v&&t.jsx("div",{className:ne.warning,children:C(b)}),!_&&t.jsx("div",{className:"buttonContainer",children:t.jsx(Ce,{onClick:()=>k(),children:C("save_ambit")})})]})};xt.propTypes={indicators:e.arrayOf(e.object).isRequired,ambitName:e.string,ambitDescription:e.string,defaultFilters:e.arrayOf(e.object),activeColor:e.string,backgroundColor:e.string,textColor:e.string,onChangeAppliedFilters:e.func,saveAmbit:e.func,namePlaceholder:e.string,descPlaceholder:e.string,filtersTypes:e.arrayOf(e.string).isRequired,nameRequiredText:e.string};const as="_barChartContainer_d2f1z_2",ls={barChartContainer:as},bt=({data:n,width:d=700,barHeight:i=25,gap:o=23,fontColor:s="#605B56",verticalPaddign:r=10,horizontalPaddign:a=20,leftPadding:l=200,numberOfDivisions:c=7,maxValue:u=null})=>{const{t:m}=N.useTranslation(),{xScale:g,ticks:b,height:_}=y.useMemo(()=>{if(n&&n.length>0){const C=(n==null?void 0:n.length)*(i+o)+r*2,h=Ge.max(n,x=>x.value)||1,p=Ge.scaleLinear().domain([0,u||h]).range([0,d-l]),f=Array.from({length:c+1},(x,w)=>u?u/c*w:h/c*w);return{xScale:p,ticks:f,height:C,width:d,verticalPaddign:r,horizontalPaddign:a}}else return{xScale:null,ticks:[],height:0}},[n,d,c,i,o,a,r,u]);return t.jsx("div",{className:ls.barChartContainer,children:t.jsx("svg",{width:d+a*2,height:_,children:t.jsxs("g",{transform:`translate(0,${o})`,children:[t.jsx("g",{transform:`translate(${l+a}, 0)`,children:b.map((C,h)=>{const p=g(C);return t.jsxs("g",{transform:`translate(${p}, 0)`,children:[t.jsx("line",{y1:0,y2:_-o*2,stroke:"#ccc"}),t.jsx("text",{y:_-o,textAnchor:"middle",fontSize:10,fill:s,children:parseInt(C)})]},h)})}),n&&n.length>0&&(n==null?void 0:n.map((C,h)=>{const p=g(C.value),f=h*(i+o);return t.jsxs("g",{transform:`translate(${l+a}, ${f})`,children:[t.jsx("text",{x:-24,y:i/2+5,textAnchor:"end",fill:s,children:m(C.title)}),t.jsx("rect",{width:p,height:i,fill:C.color,rx:0})]},h)}))]})})})};bt.propTypes={data:e.arrayOf(e.shape({title:e.string,value:e.number,color:e.string})),width:e.number,barHeight:e.number,gap:e.number,verticalPaddign:e.number,horizontalPaddign:e.number,numberOfDivisions:e.number,fontColor:e.string};const cs="_graphicContainer_c9zrg_2",ds="_titleContainer_c9zrg_14",Qe={graphicContainer:cs,titleContainer:ds},_t=({data:n,graphWidth:d=700,containerStyle:i,borderColor:o="#605B56",title:s="Graphic Title",fontColor:r="#605B56",maxValue:a=null,numberOfDivisions:l=7,leftPadding:c=200})=>{const{t:u}=N.useTranslation();return t.jsxs("div",{className:Qe.graphicContainer,style:{...i||{},border:`1.5px solid ${o}`},children:[t.jsx("div",{className:Qe.titleContainer,children:t.jsx("h2",{children:u(s)})}),t.jsx(bt,{data:n,width:d,fontColor:r,maxValue:a,numberOfDivisions:l,leftPadding:c})]})};_t.propTypes={data:e.arrayOf(e.shape({color:e.string.isRequired,value:e.number.isRequired,title:e.string.isRequired})),borderColor:e.string,title:e.string,graphWidth:e.number,containerStyle:e.object,fontColor:e.string,maxValue:e.number,numberOfDivisions:e.number,leftPadding:e.number};const us="_indicatorsCategory_1cu33_2",ps="_title_1cu33_5",ms="_list_1cu33_11",Te={indicatorsCategory:us,title:ps,list:ms},hs="_indicatorContainer_1go6h_2",gs="_indicatorNameContainer_1go6h_11",Cs="_dot_1go6h_17",fs="_indicatorName_1go6h_11",xs="_switchExternalContainer_1go6h_28",bs="_switchType_1go6h_37",_s="_switchTypeOptions_1go6h_41",ys="_optionContainer_1go6h_52",vs="_customRadious_1go6h_62",js="_optionText_1go6h_69",L={indicatorContainer:hs,indicatorNameContainer:gs,dot:Cs,indicatorName:fs,switchExternalContainer:xs,switchType:bs,switchTypeOptions:_s,optionContainer:ys,customRadious:vs,optionText:js},Pe=({indicator:n,values:d=[],activeColor:i,defaultColor:o="#92898A",activeIndicator:s,activeIndicatorType:r,onClickIndicator:a,multiple:l=!1,onChangeType:c})=>{const{t:u}=N.useTranslation(),{name:m,type:g,disabled:b}=n,[_,C]=y.useState(!1);y.useEffect(()=>{s&&C(l?s.some(f=>f.name==String(m)):s.name==m)},[s]);const h=()=>t.jsx("div",{className:L.switchExternalContainer,children:t.jsx("div",{className:L.switchType,children:t.jsxs("div",{className:L.switchTypeOptions,children:[t.jsxs("div",{className:L.optionContainer,onClick:()=>c("cat"),children:[t.jsx("span",{className:`${L.customRadious}`,style:{backgroundColor:r==="cat"?i:"transparent",borderColor:r==="cat"?i:o}}),t.jsx("h4",{className:L.optionText,style:{color:r==="cat"?i:o},children:u("indicators.cat")})]}),t.jsxs("div",{className:L.optionContainer,onClick:()=>c("abs"),children:[t.jsx("span",{className:`${L.customRadious}`,style:{backgroundColor:r==="abs"?i:"transparent",borderColor:r==="abs"?i:o}}),t.jsx("h4",{className:L.optionText,style:{color:r==="abs"?i:o},children:u("indicators.abs")})]})]})})}),p=()=>t.jsx("div",{className:L.switchExternalContainer,children:t.jsx("div",{className:L.switchType,children:t.jsx("div",{className:L.switchTypeOptions,children:d.map((f,x)=>t.jsxs("div",{className:L.optionContainer,children:[t.jsx("span",{className:L.customRadious}),t.jsx("h4",{children:u(f.unit)})]},x))})})});return t.jsxs("div",{className:L.indicatorContainer,children:[t.jsxs("div",{className:L.indicatorNameContainer,onClick:()=>!b&&a({indicator:n}),children:[t.jsx("div",{style:{border:_?`1px solid ${i}`:`1px solid ${o}`,opacity:b?.5:1},className:L.dot}),t.jsx("h4",{className:L.indicatorName,style:{color:_?i:o,opacity:b?.5:1},children:t.jsx(N.Trans,{i18nKey:m,components:{sup:t.jsx("sup",{})},shouldUnescape:!0})})]}),(s==null?void 0:s.name)===m&&g==="both"&&t.jsx("div",{children:h()}),(s==null?void 0:s.name)===m&&g==="twoUnits"&&t.jsx("div",{children:p()})]})};Pe.propTypes={indicator:e.shape({name:e.string,type:e.string}),values:e.oneOfType([e.bool,e.array]),activeColor:e.string,defaultColor:e.string,activeIndicator:e.oneOfType([e.object,e.array]),multiple:e.bool,onClickIndicator:e.func};const ws="_indicatorsSubCategory_1dzsi_2",Ns="_list_1dzsi_8",Xe={indicatorsSubCategory:ws,list:Ns},yt=({subcName:n,indicators:d,defaultColor:i,activeColor:o,activeSubCategory:s,onClickSubCategory:r,id:a,activeIndicator:l,onClickIndicator:c,multiple:u,activeIndicatorType:m,onChangeType:g})=>{const{t:b}=N.useTranslation(),[_,C]=y.useState(!1);return y.useEffect(()=>{C(s==a)},[s,a]),t.jsxs(Ie.motion.div,{className:Xe.indicatorsSubCategory,initial:{height:"43px"},animate:{height:_?"auto":"43px"},transition:{duration:.4},children:[t.jsx("button",{onClick:()=>r(a),children:t.jsxs("h3",{style:{color:_?o:i},children:[t.jsx("span",{style:{color:_?o:i},children:_?"-":"+"}),t.jsx("span",{style:{marginLeft:12,color:_?o:i},children:b(n)})]})}),d&&t.jsx("div",{className:Xe.list,children:d==null?void 0:d.map((h,p)=>t.jsx(Pe,{indicator:h,defaultColor:i,activeColor:o,activeIndicator:l,onClickIndicator:c,multiple:u,activeIndicatorType:m,onChangeType:g},"indicator"+p))})]})};yt.propTypes={subcName:e.string,indicators:e.array,activeColor:e.string,defaultColor:e.string,activeSubCategory:e.string,id:e.string,activeIndicator:e.oneOfType([e.object,e.array]),multiple:e.bool,onClickSubCategory:e.func,onClickIndicator:e.func};const vt=({cat:n,id:d,activeColor:i,defaultColor:o,onClickCategory:s,activeCategory:r,activeSubCategory:a,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:m,activeIndicatorType:g,onChangeType:b})=>{var p;const{t:_}=N.useTranslation(),[C,h]=y.useState(!1);return y.useEffect(()=>{h(r===d)},[r,d]),t.jsxs(Ie.motion.div,{className:Te.indicatorsCategory,initial:{height:"53px"},animate:{height:C?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:C?`1px solid ${i}`:"0px",marginBottom:C?"20px":"0px"},children:[t.jsxs("h2",{className:`${Te.title}`,onClick:()=>s(d),children:[t.jsx("span",{style:{color:C?i:o},children:C?"-":"+"}),t.jsx("span",{style:{marginLeft:12,color:C?i:o},children:_(n.name)})]}),n.subcategories?n.subcategories.map(({name:f,subcategory:x,indicators:w},v)=>t.jsx(yt,{id:x,activeSubCategory:a,subcName:f,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:m,activeColor:i,defaultColor:o,indicators:w,activeIndicatorType:g,onChangeType:b},`subcKey ${v}`)):t.jsx("div",{className:Te.list,children:(p=n.indicators)==null?void 0:p.map((f,x)=>t.jsx(Pe,{indicator:f,values:f.type=="twoUnits"&&f.values,activeColor:i,defaultColor:o,activeIndicator:c,onClickIndicator:u,multiple:m,activeIndicatorType:g,onChangeType:b},`indicator${x}`))})]})};vt.propTypes={cat:e.object,id:e.string,onChange:e.func,onClickCategory:e.func,activeCategory:e.string,activeSubCategory:e.string,onClickSubCategory:e.func,onClickIndicator:e.func,activeIndicator:e.oneOfType([e.object,e.array]),multiple:e.bool,activeColor:e.string,defaultColor:e.string};const ks="_indicatorsList_fklyu_2",Ss="_title_fklyu_6",Je={indicatorsList:ks,title:Ss},jt=({indicators:n,activeColor:d,defaultColor:i="#92898A",onChange:o,multiple:s=!1,defaultValue:r=null,changeIndType:a,activeIndicatorType:l})=>{const{t:c}=N.useTranslation(),[u,m]=y.useState(),[g,b]=y.useState(),[_,C]=y.useState(),h=v=>{m(u==v?null:v)},p=v=>{b(g==v?null:v)},f=({indicator:v})=>{console.log("onClickIndicator: ",v),x(v)},x=v=>{if(!s)C((_==null?void 0:_.name)==v.name?null:v);else{let j=_&&_.length>0?[..._]:[];C(j!=null&&j.some(k=>k.name==v.name)?j.filter(k=>k.name!=String(v.name)):[...j,v]),v.type=="both"&&a("cat")}};y.useEffect(()=>{console.log("activeindicator changed to: ",_),o&&typeof o=="function"&&_&&o({activeIndicator:_})},[_]),y.useLayoutEffect(()=>{if(r&&!_)if(s&&r&&Array.isArray(r)){let v=_&&_.length>0?[..._]:[];C([...v,...r]),w(r[0].name)}else x(r),w(r.name)},[]);const w=v=>{const j=n.find(k=>{if(k.subcategories){let S=k.subcategories.find(A=>A.indicators.find($=>$.name==v));if(S)return b(S.subcategory),S}else return k.indicators.some(S=>S.name==v)});j&&m(j.category)};return t.jsxs("div",{className:Je.indicatorsList,children:[t.jsx("h2",{className:Je.title,style:{color:i},children:c("indicators.indicators")}),n.map((v,j)=>t.jsx(vt,{id:v.category,cat:v,onClickCategory:h,activeCategory:u,onClickSubCategory:p,activeSubCategory:g,onClickIndicator:f,activeIndicator:_,activeColor:d,defaultColor:i,multiple:s,onChange:o,onChangeType:a,activeIndicatorType:l},`categoryKey${j}`))]})};jt.propTypes={indicators:e.arrayOf(e.object),activeColor:e.string,defaultColor:e.string,onChange:e.func,changeIndType:e.func,multiple:e.bool,activeIndicator:e.oneOfType([e.object,e.array]),defaultValue:e.oneOfType([e.object,e.array]),activeIndicatorType:e.string};const Ts="_langSelector_o9enq_2",Bs="_currentLang_o9enq_14",$s="_arrow_o9enq_26",Ls="_prevImg_o9enq_29",Ms="_langMenu_o9enq_33",ie={langSelector:Ts,currentLang:Bs,arrow:$s,prevImg:Ls,langMenu:Ms},wt=({langs:n,arrow:d,imgPrev:i})=>{const[o,s]=y.useState(!1),{i18n:r}=N.useTranslation(),a=n.find(c=>c.code==r.language),l=c=>{r.changeLanguage(c),s(!1)};return t.jsxs("div",{className:ie.langSelector,children:[t.jsxs("div",{className:ie.currentLang,onClick:()=>{s(!o)},children:[i&&t.jsx("img",{className:ie.prevImg,src:i}),(a==null?void 0:a.titleSelected)||(a==null?void 0:a.title),t.jsx("img",{src:d,className:ie.arrow})]}),o&&t.jsx("div",{className:ie.langMenu,children:n.map(c=>t.jsx("button",{className:(a==null?void 0:a.code)==c.code?ie.active:"",onClick:()=>l(c.code),children:c.title},c.code))})]})};wt.propTypes={langs:e.arrayOf(e.shape({code:e.string,title:e.string,titleSelected:e.string})),color:e.string,bckColor:e.string,hoverColor:e.string,arrow:e.object,imgPrev:e.object};const Ds="_legendContainer_qs4x9_3",Fs="_closeButton_qs4x9_31",Vs="_titleContainer_qs4x9_59",As="_infoContainer_qs4x9_65",Os="_titleLegendList_qs4x9_76",qs="_legendListContainer_qs4x9_82",Rs="_gridContainer_qs4x9_82",Is="_elementLegendContainer_qs4x9_88",Es="_colorDot_qs4x9_94",Ps="_absoluteValueContainer_qs4x9_100",zs="_absoluteValueColor_qs4x9_103",Zs="_absoluteValueText_qs4x9_108",Ks="_noDataContainer_qs4x9_120",Hs="_noData_qs4x9_120",Us="_moreInfoContainer_qs4x9_141",B={legendContainer:Ds,closeButton:Fs,titleContainer:Vs,infoContainer:As,titleLegendList:Os,legendListContainer:qs,gridContainer:Rs,elementLegendContainer:Is,colorDot:Es,absoluteValueContainer:Ps,absoluteValueColor:zs,absoluteValueText:Zs,noDataContainer:Ks,noData:Hs,moreInfoContainer:Us},Nt=({containerStyles:n,title:d,infoList:i,legendList:o,legendListTitle:s,absoluteValue:r,onClickMoreInfo:a,buttonTitle:l,onClickClose:c})=>{const{t:u}=N.useTranslation();return t.jsxs("div",{style:n?{...n}:{},className:`${B.legendContainer}`,children:[t.jsx("button",{className:B.closeButton,onClick:c}),d&&t.jsx("div",{className:B.titleContainer,style:{marginBottom:(!i||i.length==0)&&"15px"},children:t.jsx("h2",{children:d})}),i&&i.length>0&&t.jsx("div",{className:B.infoContainer,children:t.jsx("ul",{children:i.map(({title:m,value:g})=>t.jsxs("li",{children:[t.jsx("h3",{className:B.title,children:`${m}:`}),t.jsxs("span",{className:B.value,children:[" ",g]})]},d))})}),t.jsx("h3",{className:B.titleLegendList,style:{marginTop:i&&i.length>0&&"30px"},children:s&&t.jsx(N.Trans,{i18nKey:s,components:{sup:t.jsx("sup",{})},shouldUnescape:!0})}),t.jsxs("div",{className:B.legendListContainer,children:[r?t.jsxs("div",{className:B.absoluteValueContainer,children:[t.jsx("div",{className:B.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${r.maxColor} 0%, ${r.midColor?`${r.midColor} 50%,`:""} ${r.minColor} 100%)`}}),t.jsxs("div",{className:B.absoluteValueText,children:[t.jsxs("span",{children:[r.maxValue," ",u(r.unit)]}),r.midValue&&t.jsxs("span",{children:[r.midValue," ",u(r.unit)]}),t.jsxs("span",{children:[r.minValue," ",u(r.unit)]})]})]}):o&&o.length>0&&t.jsx("div",{className:B.gridContainer,children:o.map(({title:m,color:g})=>t.jsxs("div",{className:B.elementLegendContainer,children:[t.jsx("div",{className:B.colorDot,style:{backgroundColor:g}}),t.jsxs("div",{className:B.titleLegendElement,children:[u(m)," "]})]},d))}),r.noDataColor&&t.jsxs("div",{className:B.noDataContainer,children:[t.jsx("div",{className:B.noData,style:{background:r.noDataColor}}),t.jsx("div",{className:B.absoluteValueText,children:t.jsx("span",{children:u(r.noDataText)})})]})]}),a&&t.jsx("button",{className:B.moreInfoContainer,onClick:a,children:l||u("moreInformation")})]})};Nt.propTypes={title:e.string,containerStyles:e.object,infoList:e.arrayOf(e.shape({title:e.string.isRequired,value:e.oneOfType([e.string,e.number])})),legendList:e.arrayOf(e.shape({title:e.string,color:e.string})),legendListTitle:e.string,absoluteValue:e.shape({maxColor:e.string,minColor:e.string,maxValue:e.number,minValue:e.number}),onClickMoreInfo:e.func,buttonTitle:e.string,onClickClose:e.func,noDataColor:e.string};const Gs="_logo_1ewa6_2",et={logo:Gs},kt=({src:n,alt:d,href:i})=>{const{t:o}=N.useTranslation(),s=t.jsx("img",{src:n,alt:o(d)});return i?t.jsx("div",{className:et.logo,children:t.jsx("a",{href:i,children:s})}):t.jsx("div",{className:et.logo,children:s})};kt.propTypes={src:e.string.isRequired,alt:e.string.isRequired,href:e.string,className:e.string};const Ws="_mapContainer_84pkf_2",Ys={mapContainer:Ws};Qt.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const St=({initialView:n={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:d=17,minZoom:i=8,mapStyle:o,firstSymbolLayer:s,cssProps:r="",onClick:a="",interactiveLayers:l=[],popUp:c=!1,sources:u=[],layers:m=[]})=>{const g=y.useRef(),[b,_]=y.useState(null),C=Xt.useSelector(h=>h.mapState.showTexts);return y.useEffect(()=>{if(g.current){const h=g.current.getMap();h.getStyle().layers.map(f=>{f.type=="symbol"&&f.id!="professionals"&&(C?h.setLayoutProperty(f.id,"visibility","visible"):h.setLayoutProperty(f.id,"visibility","none"))})}},[C]),t.jsx("div",{className:`${Ys.mapContainer}`,style:r,children:t.jsxs(de,{initialViewState:n,ref:g,hash:!1,maxZoom:d,minZoom:i,mapStyle:o,onClick:a,interactiveLayerIds:l,children:[u.length&&u.map((h,p)=>t.jsx(de.Source,{...h,children:m.length&&m.map((f,x)=>{if(f.sourceId==h.id)return t.jsx(de.Layer,{...f.layer,beforeId:s},x)})},p)),t.jsx(de.NavigationControl,{position:"bottom-right",visualizePitch:!0}),c&&b&&t.jsx(de.Popup,{longitude:c.longitude,latitude:c.latitude,anchor:c.anchor,onClose:()=>_(null),children:c.content})]})})};St.propTypes={initialView:e.shape({latitude:e.number.isRequired,longitude:e.number.isRequired,zoom:e.number.isRequired}),mapStyle:e.object,firstSymbolLayer:e.string,cssProps:e.object,style:e.object,maxZoom:e.number,minZoom:e.number,onClick:e.func,interactiveLayers:e.array,popUp:e.shape({latitude:e.number,longitude:e.number,anchor:e.string,content:e.element}),textsUrl:e.string,sources:e.arrayOf(e.shape({id:e.string,type:e.string,url:e.string,data:e.object})),layers:e.arrayOf(e.shape({sourceId:e.string,layer:e.shape({id:e.string,type:e.string,sourceLayer:e.string,minZoom:e.number,maxZoom:e.number,paint:e.object})}))};const Qs="_mapContainer_b0pyr_3",Xs={mapContainer:Qs},Js="_FeaturePopUp_mt8l5_2",en="_title_mt8l5_9",tt={FeaturePopUp:Js,title:en},tn=({props:n})=>{const{t:d}=N.useTranslation();return t.jsx("div",{className:tt.FeaturePopUp,children:n.map(i=>t.jsxs("p",{children:[t.jsxs("span",{className:tt.title,children:[t.jsx(N.Trans,{i18nKey:i.name,components:{sup:t.jsx("sup",{})},shouldUnescape:!0}),":"]}),isNaN(i.value)?t.jsx(t.Fragment,{children:d(i.value)}):t.jsxs(t.Fragment,{children:[i.value.toLocaleString("de",{maximumFractionDigits:2})," ",d(i.unit)]})]}))})},Tt=({initialView:n={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:d=17,minZoom:i=8,mapStyle:o,firstSymbolLayer:s,cssProps:r={},onClick:a="",interactiveLayers:l=[],sources:c=[],layers:u=[],filters:m,popUpParams:g,onClosePopUp:b,showTexts:_})=>{console.log(m);const C=y.useRef();return y.useEffect(()=>{if(C.current){const h=C.current.getMap();h.getStyle().layers.map(f=>{f.type=="symbol"&&f.id!="professionals"&&(_?h.setLayoutProperty(f.id,"visibility","visible"):h.setLayoutProperty(f.id,"visibility","none"))})}},[_]),y.useEffect(()=>{let h=new Jt.Protocol;return we.addProtocol("pmtiles",h.tile),()=>{we.removeProtocol("pmtiles")}},[]),t.jsx("div",{className:`${Xs.mapContainer}`,style:r&&r,children:t.jsxs(ue,{mapLib:we,initialViewState:n,ref:C,hash:!1,maxZoom:d,minZoom:i,mapStyle:o,onClick:a,interactiveLayerIds:l,children:[c.length&&c.map((h,p)=>t.jsx(ue.Source,{...h,children:u.length&&u.map((f,x)=>{if(f.sourceId==h.id)return t.jsx(ue.Layer,{...f.layer,beforeId:s,filter:m&&m},x)})},p)),t.jsx(ue.NavigationControl,{position:"bottom-right",visualizePitch:!0}),g&&t.jsx(ue.Popup,{longitude:g.lng,latitude:g.lat,onClose:b,children:t.jsx(tn,{props:g.props})})]})})};Tt.propTypes={initialView:e.shape({latitude:e.number.isRequired,longitude:e.number.isRequired,zoom:e.number.isRequired}),mapStyle:e.string,firstSymbolLayer:e.string,cssProps:e.object,style:e.object,maxZoom:e.number,minZoom:e.number,onClick:e.func,interactiveLayers:e.array,popUp:e.bool,sources:e.arrayOf(e.shape({id:e.string,type:e.string,url:e.string,data:e.object})),layers:e.arrayOf(e.shape({sourceId:e.string,layer:e.shape({id:e.string,type:e.string,sourceLayer:e.string,minZoom:e.number,maxZoom:e.number,paint:e.object})})),showTexts:e.bool,filters:e.array,popUpParams:e.object,onClosePopUp:e.func};const sn="_sectionBar_1egwc_2",nn="_leftContent_1egwc_14",on="_textContainer_1egwc_20",rn="_title_1egwc_27",an="_subtitle_1egwc_33",ln="_rightContent_1egwc_38",X={sectionBar:sn,leftContent:nn,textContainer:on,title:rn,subtitle:an,rightContent:ln},Bt=({leftIcon:n,title:d,subtitle:i,rightContent:o,mainColor:s,width:r})=>{const{t:a}=N.useTranslation();return t.jsxs("div",{className:X.sectionBar,style:{width:r&&r},children:[t.jsxs("div",{className:X.leftContent,children:[n&&t.jsx("img",{src:n,alt:"Icono",className:X.icon}),t.jsxs("div",{className:X.textContainer,children:[t.jsx("div",{className:X.title,children:a(d)}),i&&t.jsx("div",{className:X.subtitle,children:i})]})]}),t.jsx("div",{className:X.rightContent,children:o})]})};Bt.propTypes={leftIcon:e.string,title:e.string.isRequired,subtitle:e.string,rightContent:e.node,mainColor:e.string,width:e.oneOfType([e.string,e.number])};const cn=e2.createSlice({name:"mapSlice",initialState:{showTexts:!0,sliderSelectedYear:2025,activeIndicatorKey:0,activeIndicatorType:"cat",activeIndicatorUnit:null},reducers:{setShowTexts:(n,d)=>{n.showTexts=d.payload},setYear:(n,d)=>{n.sliderSelectedYear=d.payload},setActiveIndicatorKey:(n,d)=>{n.activeIndicatorKey=d.payload},setActiveIndicatorType:(n,d)=>{n.activeIndicatorType=d.payload},setActiveIndicatorUnit:(n,d)=>{n.activeIndicatorUnit=d.payload}}}),{setShowTexts:yi,setYear:vi,setActiveIndicatorKey:ji,setActiveIndicatorType:wi,setActiveIndicatorUnit:Ni}=cn.actions,dn="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",un="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",pn="_slider_1prh1_2",mn="_playButton_1prh1_14",hn="_sliderOpen_1prh1_25",gn="_sliderResults_1prh1_29",me={slider:pn,playButton:mn,sliderOpen:hn,sliderResults:gn},$t=({onResults:n=!1,defaultYear:d=2025,firstYear:i=2025,lastYear:o=2050,zIndex:s=10,rightBarOpen:r=!1,onChange:a=l=>{console.log("year changed to ",l)}})=>{const[l,c]=y.useState(d),u=(f,x)=>{c(x),a(x)},[m,g]=y.useState(!1),b=()=>{g(!0)},_=()=>{g(!1)};((f,x)=>{const w=y.useRef();y.useEffect(()=>{w.current=f},[f]),y.useEffect(()=>{function v(){w.current()}{let j=setInterval(v,x);return()=>clearInterval(j)}},[x])})(()=>{m&&(l!=2050?(c(l+1),a(l+1)):(c(2025),a(2025)))},1e3);const h=Ue.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}}),p=[{label:"",value:2025},{label:"",value:2032},{label:"",value:2041},{label:"",value:2050}];return t.jsx(s2.ThemeProvider,{theme:h,children:t.jsxs(Ue.Box,{sx:{width:400},className:`${n?me.sliderResults:me.slider} ${r?me.sliderOpen:""}`,style:{zIndex:s},children:[i,t.jsx(t2,{"aria-label":"TimeSlider",value:l,valueLabelDisplay:"on",step:1,marks:p,min:i,max:o,onChange:u,color:"primary",size:"small"}),o,!m&&t.jsx("button",{className:me.playButton,onClick:b,children:t.jsx("img",{src:dn,alt:"Play"})}),m&&t.jsx("button",{className:me.playButton,onClick:_,children:t.jsx("img",{src:un,alt:"Pause"})})]})})};$t.propTypes={defaultYear:e.number,onResults:e.bool,firstYear:e.number,lastYear:e.number,zIndex:e.number,rightBarOpen:e.bool,onChange:e.func};const Cn="_TopNavMenuContainer_12mp4_2",fn="_topNavOptions_12mp4_13",xn="_active_12mp4_27",Be={TopNavMenuContainer:Cn,topNavOptions:fn,active:xn},Lt=({options:n=[],containerStyles:d,borderColor:i="red",textColor:o="white",onChangeNavLink:s=r=>{console.log("Changed NavLink",r)}})=>{const{t:r}=N.useTranslation();return t.jsx("div",{className:Be.TopNavMenuContainer,style:{...d},children:n.map((a,l)=>t.jsx(n2.NavLink,{to:a.url,className:({isActive:c})=>`${Be.topNavOptions} ${c?Be.active:""} `,onClick:()=>s(a.url),style:({isActive:c})=>({color:o,borderBottom:c?`5px solid ${i}`:"5px solid transparent"}),children:r(a.name)},l))})};Lt.propTypes={options:e.arrayOf(e.object),cssProps:e.shape({borderColor:e.string.isRequired,textColor:e.string.isRequired})};const bn="_LogInButton_1vxj5_2",_n={LogInButton:bn},Mt=({cssClass:n,notLoggedInLabel:d="Log in",loggedInLabel:i="Log out",containerStyles:o,userName:s="",isLoggedIn:r=!1,onClickLogIn:a=()=>{console.log("Login clicked")},onClickLogOut:l=()=>{console.log("Logout clicked")}})=>{const{t:c}=N.useTranslation();return t.jsx("div",{style:{...o},className:`${_n.LogInButton} link ${n}`,onClick:r?l:a,children:r?s||c(i):c(d)})};Mt.propTypes={cssClass:e.string,notLoggedInLabel:e.string,loggedInLabel:e.string,containerStyles:e.object,userName:e.string,isLoggedIn:e.bool};const yn="_elementSelector_1qdhv_2",vn="_header_1qdhv_13",jn="_nameDateContainer_1qdhv_23",wn="_elementName_1qdhv_39",Nn="_elementDate_1qdhv_53",kn="_buttonsContainer_1qdhv_67",Sn="_elementListContainer_1qdhv_76",Tn="_newElementButtonContainer_1qdhv_80",I={elementSelector:yn,header:vn,nameDateContainer:jn,elementName:wn,elementDate:Nn,buttonsContainer:kn,elementListContainer:Sn,newElementButtonContainer:Tn},Bn="_listElement_1s506_2",$n="_elementNameDate_1s506_17",Ln="_elementNameContainer_1s506_27",Mn="_elementName_1s506_17",Dn="_elementDate_1s506_42",Fn="_elementButtons_1s506_45",Vn="_moreInfoContainer_1s506_68",An="_moreInfo_1s506_68",q={listElement:Bn,elementNameDate:$n,elementNameContainer:Ln,elementName:Mn,elementDate:Dn,elementButtons:Fn,break:"_break_1s506_63",moreInfoContainer:Vn,moreInfo:An},On="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",qn="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Rn="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",In="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",En="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.3062'%20cy='15.2144'%20r='14.3521'%20stroke='%2392898A'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9898%2012.7234V9.89008C11.9898%208.88815%2012.3811%207.92726%2013.0777%207.21879C13.7743%206.51032%2014.719%206.1123%2015.7041%206.1123C16.6892%206.1123%2017.6339%206.51032%2018.3305%207.21879C19.0271%207.92726%2019.4184%208.88815%2019.4184%209.89008V12.7234H20.347C20.8395%2012.7234%2021.3119%2012.9224%2021.6602%2013.2767C22.0084%2013.6309%2022.2041%2014.1113%2022.2041%2014.6123V21.2234C22.2041%2021.7244%2022.0084%2022.2048%2021.6602%2022.5591C21.3119%2022.9133%2020.8395%2023.1123%2020.347%2023.1123H11.0612C10.5687%2023.1123%2010.0963%2022.9133%209.74805%2022.5591C9.39976%2022.2048%209.2041%2021.7244%209.2041%2021.2234V14.6123C9.2041%2014.1113%209.39976%2013.6309%209.74805%2013.2767C10.0963%2012.9224%2010.5687%2012.7234%2011.0612%2012.7234H11.9898ZM13.847%209.89008C13.847%209.38912%2014.0426%208.90867%2014.3909%208.55444C14.7392%208.2002%2015.2116%208.00119%2015.7041%208.00119C16.1966%208.00119%2016.669%208.2002%2017.0173%208.55444C17.3656%208.90867%2017.5612%209.38912%2017.5612%209.89008V12.7234H13.847V9.89008ZM15.7041%2015.5567C15.9504%2015.5567%2016.1866%2015.6563%2016.3607%2015.8334C16.5348%2016.0105%2016.6327%2016.2507%2016.6327%2016.5012V19.3345C16.6327%2019.585%2016.5348%2019.8252%2016.3607%2020.0023C16.1866%2020.1795%2015.9504%2020.279%2015.7041%2020.279C15.4578%2020.279%2015.2216%2020.1795%2015.0475%2020.0023C14.8734%2019.8252%2014.7755%2019.585%2014.7755%2019.3345V16.5012C14.7755%2016.2507%2014.8734%2016.0105%2015.0475%2015.8334C15.2216%2015.6563%2015.4578%2015.5567%2015.7041%2015.5567Z'%20fill='%2392898A'/%3e%3c/svg%3e";var st;function Oe(){return Oe=Object.assign?Object.assign.bind():function(n){for(var d=1;d<arguments.length;d++){var i=arguments[d];for(var o in i)({}).hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},Oe.apply(null,arguments)}var Pn=function(d){return le.createElement("svg",Oe({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},d),st||(st=le.createElement("g",{fill:"currentColor"},le.createElement("path",{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"}),le.createElement("path",{d:"M12.951 10.297a3.307 3.307 0 1 0 0-6.614 3.307 3.307 0 0 0 0 6.614"}))))};const zn="data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%200%2026%2018'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205207'%3e%3cpath%20id='Vector'%20d='M12.9837%206.40625C11.1707%206.40625%209.69531%207.88162%209.69531%209.69462C9.69531%2010.0276%209.74618%2010.3514%209.83869%2010.652C9.93579%2010.9711%2010.0792%2011.2718%2010.2642%2011.54L14.8291%206.97512C14.5562%206.79013%2014.2602%206.64676%2013.9411%206.54962C13.6404%206.45712%2013.3167%206.40625%2012.9837%206.40625Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_2'%20d='M19.4938%204.44079C19.318%204.36678%2019.1191%204.40841%2018.985%204.53792L16.3534%207.16955V7.17415C16.543%207.42855%2016.7049%207.70604%2016.8344%208.00204C17.0656%208.52004%2017.1905%209.09354%2017.1905%209.69478C17.1905%2012.0165%2015.3035%2013.9035%2012.9818%2013.9035C12.3805%2013.9035%2011.807%2013.7787%2011.289%2013.5474C10.993%2013.4179%2010.7155%2013.256%2010.4611%2013.0664H10.4565L8.52788%2014.995C8.41225%2015.1153%208.36601%2015.2864%208.41225%2015.4437C8.45389%2015.6055%208.57875%2015.7304%208.74063%2015.772C10.0958%2016.1189%2011.511%2016.2947%2012.9494%2016.2947C18.245%2016.2947%2023.055%2013.9359%2025.8161%209.98153C25.9271%209.82429%2025.9271%209.61153%2025.8161%209.45427C24.2991%207.27591%2022.1115%205.54154%2019.4938%204.44079Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_3'%20d='M12.9843%2012.979C14.7973%2012.979%2016.268%2011.5082%2016.268%209.6952C16.268%209.35295%2016.2171%209.0292%2016.12%208.71933C16.0229%208.4002%2015.8749%208.10419%2015.6899%207.83594L11.125%2012.4008C11.3933%2012.5858%2011.6893%2012.7338%2012.0084%2012.831C12.3183%2012.9281%2012.6466%2012.979%2012.9843%2012.979Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_4'%20d='M9.12048%2011.3694C8.89386%2010.856%208.769%2010.2918%208.769%209.69516C8.769%207.3734%2010.656%205.48178%2012.9824%205.48178C13.579%205.48178%2014.1433%205.60667%2014.6566%205.83329C14.9526%205.95815%2015.2347%206.12004%2015.4891%206.31428L17.3808%204.42267L21.0114%200.792026C21.1918%200.611646%2021.1918%200.315664%2021.0114%200.135285C20.831%20-0.0450949%2020.535%20-0.0450949%2020.3546%200.135285L16.8951%203.59478C15.6186%203.28491%2014.2959%203.13228%2012.95%203.13228C7.65437%203.13228%202.84439%205.49565%200.0832465%209.45464C-0.0277488%209.61191%20-0.0277488%209.82467%200.0832465%209.9819C1.48001%2011.9845%203.44563%2013.6079%205.78125%2014.7087L3.37162%2017.1183C3.19127%2017.2986%203.19127%2017.5947%203.37162%2017.775C3.46412%2017.8629%203.57975%2017.9091%203.7%2017.9091C3.82026%2017.9091%203.93588%2017.8629%204.02839%2017.775L9.60151%2012.2019C9.40727%2011.9429%209.24536%2011.6654%209.12048%2011.3694Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",Dt=({listelement:n,onClickElement:d,isActive:i,activeColor:o,fontColor:s,moreInfo:r,columns:a,elementButtons:l,processTooltip:c,defaultTooltip:u,showEye:m=!0})=>{const{name:g,created_at:b,id:_,isBeingProcessed:C}=n,[h,p]=y.useState(!1),{t:f}=N.useTranslation();return t.jsxs("div",{className:q.listElement,style:{borderBottom:`1px solid ${s}`},children:[t.jsx("div",{className:q.elementNameDate,onClick:()=>d(_),children:Object.keys(a).map(x=>x==="name"?t.jsx("div",{className:q.elementNameContainer,children:t.jsxs("div",{className:q.elementName,children:[m&&(i?t.jsx(Pn,{style:{color:o,marginRight:9}}):t.jsx("img",{style:{marginRight:9},src:zn,alt:"eye"})),t.jsx("span",{style:{color:i?o:s},children:g})]})}):x=="data"?t.jsx("div",{className:q.elementDate,children:b?new Date(b).toLocaleDateString():""}):t.jsx("div",{className:q.elementDate,children:n[x]}))}),t.jsxs("div",{className:q.elementButtons,children:[n.processing&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("img",{src:In}),t.jsx(U,{text:c,position:"left"})]}),l.filter&&!n.is_default&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:()=>l.filter.onclick(n),children:t.jsx("img",{src:Rn})}),t.jsx(U,{text:l.filter.tooltiptext,position:"left"})]}),l.copy&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:()=>l.copy.onclick(n),children:t.jsx("img",{src:qn})}),t.jsx(U,{text:l.copy.tooltiptext,position:"left"})]}),l.trash&&!n.is_default&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:()=>l.trash.onclick(n),children:t.jsx("img",{src:On})}),t.jsx(U,{text:l.trash.tooltiptext,position:"left"})]}),n.is_default&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("img",{src:En}),t.jsx(U,{text:u,position:"left"})]})]}),r&&t.jsx("div",{className:q.break}),r&&t.jsxs("div",{className:q.moreInfoContainer,children:[t.jsxs("div",{className:q.moreInfo,onClick:()=>p(!h),children:[t.jsx("span",{children:h?"-":"+"}),f(r.label)]}),r&&h&&t.jsx("div",{className:q.moreInfoInfo,children:n[r.info]})]})]})};Dt.propTypes={listelement:e.shape({name:e.string.isRequired,created_at:e.string,id:e.string.isRequired,isBeingProcessed:e.bool}).isRequired,onClickElement:e.func.isRequired,isActive:e.bool,activeColor:e.string,fontColor:e.string,moreInfo:e.object,columns:e.shape({name:e.string,data:e.string,ambit:e.string,escenari:e.string}),elementButtons:e.shape({copy:e.shape({onclick:e.func,tooltiptext:e.string}),delete:e.shape({onclick:e.func,tooltiptext:e.string}),filter:e.shape({onclick:e.func,tooltiptext:e.string})}),processTooltip:e.string,defaultTooltip:e.string,showEye:e.bool};const nt="data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e",Ft=({elementsList:n,activeElementId:d,fontColor:i="#605B56",activeColor:o,buttonContainerStyles:s={},containerStyles:r={},newElementButton:a,onClickElement:l=C=>console.log(`OnCLickElement: ${C}`),columns:c,elementButtons:u,moreInfo:m=!1,processTooltip:g,defaultTooltip:b,showEye:_=!0})=>{const{t:C}=N.useTranslation(),[h,p]=y.useState(n);y.useEffect(()=>{n&&p(n)},[n]);const f=x=>{if(h&&h.length>0){let w=[...h];w.sort((v,j)=>v[x].localeCompare(j[x])),p(w)}};return t.jsxs("div",{className:I.elementSelector,style:{color:i,...r},children:[t.jsxs("div",{className:I.header,style:{borderBottom:`1px solid ${i}`},children:[t.jsx("div",{className:I.nameDateContainer,children:Object.keys(c).map(x=>x==="name"?t.jsx("div",{className:I.elementName,children:t.jsxs("button",{onClick:()=>f("name"),children:[t.jsx("span",{children:C(c.name)}),t.jsx("img",{src:nt,alt:"order arrow"})]})},x):x==="data"?t.jsx("div",{className:I.elementDate,children:t.jsxs("button",{onClick:()=>f("date"),children:[t.jsx("span",{children:C(c.data)}),t.jsx("img",{src:nt,alt:"order arrow"})]})},x):t.jsx("div",{className:I.elementDate,children:t.jsx("span",{children:C(c[x])})},x))}),t.jsx("div",{className:I.buttonsContainer})]}),t.jsx("div",{className:I.elementListContainer,children:h&&h.length>0&&h.map(x=>t.jsx(Dt,{isActive:d==x.id,listelement:x,fontColor:i,activeColor:o,onClickElement:l,columns:c,elementButtons:u,moreInfo:m,processTooltip:g,defaultTooltip:b,showEye:_},`elementKey${x.id}`))}),a&&t.jsx("div",{className:I.newElementButtonContainer,children:t.jsx(Ce,{style:{...s},onClick:a.onClick,borderColor:"grey",disabled:a.disabled||!1,children:C(a.label)})})]})};Ft.propTypes={elementList:e.arrayOf(e.shape({name:e.string.isRequired,created_at:e.string.isRequired,id:e.string.isRequired})).isRequired,activeElementId:e.string,fontColor:e.string,activeColor:e.string,onClickElement:e.func.isRequired,newElementButton:e.shape({label:e.string,onClick:e.func}),columns:e.shape({name:e.string,data:e.string,ambit:e.string,escenari:e.string}),elementButtons:e.shape({copy:e.shape({onclick:e.func,tooltiptext:e.string}),delete:e.shape({onclick:e.func,tooltiptext:e.string}),filter:e.shape({onclick:e.func,tooltiptext:e.string})}),buttonContainerStyles:e.object,containerStyles:e.object,onCLickNewElement:e.func,moreInfo:e.shape({label:e.string,info:e.any}),processTooltip:e.string,defaultTooltip:e.string,showEye:e.bool};const he={text:"text",password:"password",radioList:"radioList",select:"select"},Zn="_textInputContainer_1o3iy_2",Kn="_labelContainer_1o3iy_5",Hn="_inputContainer_1o3iy_8",Un="_showPasswordButton_1o3iy_14",Gn="_forgotPassButton_1o3iy_26",ge={textInputContainer:Zn,labelContainer:Kn,inputContainer:Hn,showPasswordButton:Un,forgotPassButton:Gn};var Wn=n=>n.type==="checkbox",Yn=n=>n instanceof Date,Vt=n=>n==null;const Qn=n=>typeof n=="object";var fe=n=>!Vt(n)&&!Array.isArray(n)&&Qn(n)&&!Yn(n),Xn=n=>fe(n)&&n.target?Wn(n.target)?n.target.checked:n.target.value:n,Jn=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,e0=(n,d)=>n.has(Jn(d)),t0=n=>{const d=n.constructor&&n.constructor.prototype;return fe(d)&&d.hasOwnProperty("isPrototypeOf")},s0=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function At(n){let d;const i=Array.isArray(n),o=typeof FileList<"u"?n instanceof FileList:!1;if(n instanceof Date)d=new Date(n);else if(!(s0&&(n instanceof Blob||o))&&(i||fe(n)))if(d=i?[]:{},!i&&!t0(n))d=n;else for(const s in n)n.hasOwnProperty(s)&&(d[s]=At(n[s]));else return n;return d}var Ot=n=>/^\w*$/.test(n),qe=n=>n===void 0,n0=n=>Array.isArray(n)?n.filter(Boolean):[],qt=n=>n0(n.replace(/["|']|\]/g,"").split(/\.|\[/)),F=(n,d,i)=>{if(!d||!fe(n))return i;const o=(Ot(d)?[d]:qt(d)).reduce((s,r)=>Vt(s)?s:s[r],n);return qe(o)||o===n?qe(n[d])?i:n[d]:o},$e=n=>typeof n=="boolean",it=(n,d,i)=>{let o=-1;const s=Ot(d)?[d]:qt(d),r=s.length,a=r-1;for(;++o<r;){const l=s[o];let c=i;if(o!==a){const u=n[l];c=fe(u)||Array.isArray(u)?u:isNaN(+s[o+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;n[l]=c,n=n[l]}};const ot={BLUR:"blur",CHANGE:"change"},rt={all:"all"},Rt=y.createContext(null);Rt.displayName="HookFormContext";const ze=()=>y.useContext(Rt);var i0=(n,d,i,o=!0)=>{const s={defaultValues:d._defaultValues};for(const r in n)Object.defineProperty(s,r,{get:()=>{const a=r;return d._proxyFormState[a]!==rt.all&&(d._proxyFormState[a]=!o||rt.all),i&&(i[a]=!0),n[a]}});return s};const It=typeof window<"u"?le.useLayoutEffect:le.useEffect;function o0(n){const d=ze(),{control:i=d.control,disabled:o,name:s,exact:r}=n||{},[a,l]=y.useState(i._formState),c=y.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return It(()=>i._subscribe({name:s,formState:c.current,exact:r,callback:u=>{!o&&l({...i._formState,...u})}}),[s,o,r]),y.useEffect(()=>{c.current.isValid&&i._setValid(!0)},[i]),y.useMemo(()=>i0(a,i,c.current,!1),[a,i])}var r0=n=>typeof n=="string",a0=(n,d,i,o,s)=>r0(n)?F(i,n,s):Array.isArray(n)?n.map(r=>F(i,r)):i;function l0(n){const d=ze(),{control:i=d.control,name:o,defaultValue:s,disabled:r,exact:a}=n||{},l=y.useRef(s),[c,u]=y.useState(i._getWatch(o,l.current));return It(()=>i._subscribe({name:o,formState:{values:!0},exact:a,callback:m=>!r&&u(a0(o,i._names,m.values||i._formValues,!1,l.current))}),[o,i,r,a]),y.useEffect(()=>i._removeUnmounted()),c}function c0(n){const d=ze(),{name:i,disabled:o,control:s=d.control,shouldUnregister:r}=n,a=e0(s._names.array,i),l=l0({control:s,name:i,defaultValue:F(s._formValues,i,F(s._defaultValues,i,n.defaultValue)),exact:!0}),c=o0({control:s,name:i,exact:!0}),u=y.useRef(n),m=y.useRef(s.register(i,{...n.rules,value:l,...$e(n.disabled)?{disabled:n.disabled}:{}})),g=y.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!F(c.errors,i)},isDirty:{enumerable:!0,get:()=>!!F(c.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!F(c.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!F(c.validatingFields,i)},error:{enumerable:!0,get:()=>F(c.errors,i)}}),[c,i]),b=y.useCallback(p=>m.current.onChange({target:{value:Xn(p),name:i},type:ot.CHANGE}),[i]),_=y.useCallback(()=>m.current.onBlur({target:{value:F(s._formValues,i),name:i},type:ot.BLUR}),[i,s._formValues]),C=y.useCallback(p=>{const f=F(s._fields,i);f&&p&&(f._f.ref={focus:()=>p.focus&&p.focus(),select:()=>p.select&&p.select(),setCustomValidity:x=>p.setCustomValidity(x),reportValidity:()=>p.reportValidity()})},[s._fields,i]),h=y.useMemo(()=>({name:i,value:l,...$e(o)||c.disabled?{disabled:c.disabled||o}:{},onChange:b,onBlur:_,ref:C}),[i,o,c.disabled,b,_,C,l]);return y.useEffect(()=>{const p=s._options.shouldUnregister||r;s.register(i,{...u.current.rules,...$e(u.current.disabled)?{disabled:u.current.disabled}:{}});const f=(x,w)=>{const v=F(s._fields,x);v&&v._f&&(v._f.mount=w)};if(f(i,!0),p){const x=At(F(s._options.defaultValues,i));it(s._defaultValues,i,x),qe(F(s._formValues,i))&&it(s._formValues,i,x)}return!a&&s.register(i),()=>{(a?p&&!s._state.action:p)?s.unregister(i):f(i,!1)}},[i,s,a,r]),y.useEffect(()=>{s._setDisabledField({disabled:o,name:i})},[o,i,s]),y.useMemo(()=>({field:h,formState:c,fieldState:g}),[h,c,g])}const xe=n=>n.render(c0(n)),d0="_errorMessage_1xiyb_2",u0={errorMessage:d0},ce=({errorMessage:n,errorColor:d="red",containerStyles:i})=>{const{t:o}=N.useTranslation();return t.jsx("div",{className:u0.errorMessage,style:{color:d,...i},children:n?o(n):""})},Re=({input:n,reactHookFormInstance:d})=>{const{code:i,type:o,label:s,maxLength:r,required:a,validateFunction:l,placeholder:c,errorColor:u="red",width:m=325,onClickForgotPass:g=()=>{console.log("Click on forgot password")},forgotPassLabel:b="forgot-password"}=n,{t:_}=N.useTranslation(),{control:C,trigger:h,clearErrors:p}=d,[f,x]=y.useState(!1),w=y.useRef(a);y.useEffect(()=>{w.current!==a&&(a?h(i):p(i),w.current=a)},[a,i,h,p]);const v=()=>o?o==="password"&&f?"text":o:"text";return t.jsx(xe,{name:i,control:C,rules:{required:a?`${_(s)} ${_("errorMessages.required")}`:!1,maxLength:r||void 0,validate:l||void 0},render:({field:j,fieldState:k})=>{var S;return t.jsxs("div",{className:ge.textInputContainer,children:[t.jsxs("h3",{className:ge.labelContainer,children:[_(s)," ",a&&t.jsx("label",{style:{color:k.error?u:""},children:"*"})]}),t.jsxs("div",{style:{position:"relative",width:m},className:ge.inputContainer,children:[t.jsx("input",{type:v(),...j,placeholder:c?_(c):"",maxLength:r||void 0}),o=="password"&&t.jsx("button",{onClick:()=>x(!f),type:"button",className:ge.showPasswordButton,children:f?"🙈":"👁️"})]}),o=="password"&&t.jsx("div",{className:ge.forgotPassButton,children:t.jsx("button",{onClick:g,children:_(b)})}),t.jsx(ce,{errorMessage:(S=k.error)==null?void 0:S.message,errorColor:u})]})}})},p0="_formContainer_b071f_2",m0="_formObjectContainer_b071f_11",h0="_buttonContainer_b071f_22",Le={formContainer:p0,formObjectContainer:m0,buttonContainer:h0},g0="_inputsContainer_10t9s_2",oe={inputsContainer:g0},C0="_selectInputContainer_1rj0h_2",f0="_labelContainer_1rj0h_6",x0="_inputContainer_1rj0h_9",b0="_selectInput_1rj0h_2",_0="_option_1rj0h_23",y0="_dropdownArrow_1rj0h_26",re={selectInputContainer:C0,labelContainer:f0,inputContainer:x0,selectInput:b0,option:_0,dropdownArrow:y0},v0="data:image/svg+xml,%3csvg%20width='19'%20height='10'%20viewBox='0%200%2019%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%20311'%20d='M1%201.09961L8.79289%208.8925C9.18342%209.28303%209.81658%209.28303%2010.2071%208.8925L18%201.09961'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e",Et=({input:n,reactHookFormInstance:d})=>{const{code:i,type:o,label:s,maxLength:r,required:a,validateFunction:l,placeholder:c,errorColor:u="red",width:m=325,options:g=[]}=n,{t:b}=N.useTranslation(),{control:_,trigger:C,clearErrors:h}=d,p=y.useRef(a);return y.useEffect(()=>{p.current!==a&&(a?C(i):h(i),p.current=a)},[a,i,C,h]),t.jsx(xe,{name:i,control:_,rules:{required:a?`${b(s)} ${b("errorMessages.required")}`:!1,validate:l?f=>{let x=d.getValues();return l(f,x)}:void 0},render:({field:f,fieldState:x})=>{var w;return t.jsxs("div",{className:re.selectInputContainer,children:[t.jsxs("h3",{className:re.labelContainer,children:[b(s)," ",a&&t.jsx("label",{style:{color:x.error?u:""},children:"*"})]}),t.jsxs("div",{className:re.inputContainer,style:{width:m},children:[t.jsxs("select",{...f,onChange:v=>{const j=v.target.value,k=g.every(S=>typeof S.value=="number")?Number(j):j;f.onChange(k)},className:re.selectInput,children:[t.jsx("option",{value:"",disabled:!0,hidden:!0,children:b(c||"selectOption")}),g.map((v,j)=>t.jsx("option",{value:v.value,className:re.option,children:b(v.label)},j))]}),t.jsx("img",{src:v0,alt:"Open",className:re.dropdownArrow})]}),t.jsx(ce,{errorMessage:(w=x.error)==null?void 0:w.message,errorColor:u})]})}})},j0="_radioButtonContainer_1e994_2",w0="_wholeInputContainer_1e994_5",N0="_questionContainer_1e994_27",k0="_radioQuestion_1e994_59",S0="_inputContainer_1e994_63",T0="_radioInput_1e994_93",J={radioButtonContainer:j0,wholeInputContainer:w0,questionContainer:N0,radioQuestion:k0,inputContainer:S0,radioInput:T0},Pt=({input:n,reactHookFormInstance:d})=>{const{code:i,label:o,required:s,validateFunction:r,errorColor:a="red",options:l=[],multi:c=!1}=n,{t:u}=N.useTranslation(),{control:m,trigger:g,clearErrors:b}=d,_=({options:p,onChange:f,actualValue:x})=>{if(c&&x&&x.length>0){let w=x.filter(v=>v!==p);f(w)}},C=({options:p,onChange:f,actualValue:x})=>{c?x&&x.length>0?f([...x,p]):f([p]):f(p)},h=y.useRef(s);return y.useEffect(()=>{h.current!==s&&(s?g(i):b(i),h.current=s)},[s,i,g,b]),t.jsx(xe,{control:m,name:i,rules:{validate:p=>s&&(p==null||p==="")?`${u(o)} ${u("errorMessages.required")}`:null},render:({formState:{errors:p},field:{onChange:f,onBlur:x,value:w,ref:v},fieldState:j})=>{var k;return t.jsx("div",{id:i+"id",className:J.radioButtonContainer,children:t.jsxs("div",{className:J.wholeInputContainer,children:[o&&t.jsx("div",{className:J.questionContainer,children:t.jsxs("h3",{htmlFor:i+"id",className:`${J.radioQuestion} ${s&&J.required}`,children:[u(o)," ",s&&t.jsx("label",{style:{color:j.error?a:""},children:"*"})]})}),t.jsxs("div",{className:J.inputContainer,children:[l.map(({label:S,value:A,disabled:$=!1,italicLabel:P},te)=>{const O=w&&c?w.isArray&&(w==null?void 0:w.length)>0&&w.some(z=>z===A):w===A;return t.jsxs("label",{children:[t.jsx("input",{type:"radio",checked:O,onChange:()=>{c?O?_({actualValue:w,options:l,onChange:f}):C({actualValue:w,options:l,onChange:f}):f(A)},className:J.radioInput}),t.jsx("span",{className:"radio-custom"}),u(S)]},`inputRadio ${te}`)}),t.jsx(ce,{errorMessage:(k=j.error)==null?void 0:k.message,errorColor:a})]})]})})}})},B0="_rankingSliderContainer_1lekm_2",$0="_labelContainer_1lekm_6",L0="_inputContainer_1lekm_10",M0="_slider_1lekm_20",D0="_thumb_1lekm_27",F0="_labels_1lekm_37",V0="_minLabel_1lekm_67",A0="_maxLabel_1lekm_67",T={rankingSliderContainer:B0,labelContainer:$0,inputContainer:L0,slider:M0,thumb:D0,labels:F0,minLabel:V0,maxLabel:A0},Ze=({input:n,reactHookFormInstance:d,onChange:i})=>{const{code:o,label:s,minValue:r=1,maxValue:a=5,defValue:l=3,thumbColor:c="#B32F5D",required:u,errorColor:m="red",labelWidth:g="300px",sliderWidth:b="300px",minText:_,maxText:C,disabled:h=!1,marks:p=Array.from({length:a-r+1},($,P)=>r+P),showMarksNumber:f=!0}=n,{t:x}=N.useTranslation(),{control:w,trigger:v,clearErrors:j}=d||{},k=y.useRef(u),[S,A]=y.useState(l);return y.useEffect(()=>{d&&k.current!==u&&(u?v(o):j(o),k.current=u)},[u,o,v,j,d]),d?t.jsx(xe,{name:o,control:w,defaultValue:l,rules:{required:u?`${x(s)} ${x("errorMessages.required")}`:!1},render:({field:$,fieldState:P})=>{var te;return t.jsxs("div",{className:T.rankingSliderContainer,style:{gridTemplateColumns:`${s&&g} ${b}`},children:[s&&t.jsx("p",{className:T.labelContainer,children:x(s)}),t.jsxs("div",{className:T.inputContainer,children:[_&&t.jsx("div",{className:T.minLabel,children:x(_)}),t.jsxs("div",{children:[t.jsx(Ae,{min:r,max:a,step:1,value:$.value??l,onChange:O=>$.onChange(O),marks:!0,className:T.slider,thumbClassName:T.thumb,renderThumb:O=>t.jsx("div",{...O,style:{...O.style,backgroundColor:c}}),trackClassName:T.track,markClassName:T.mark,disabled:h}),p&&t.jsx("div",{className:T.labels,children:p.map(O=>t.jsx("span",{children:f&&O},O))})]}),C&&t.jsx("div",{className:T.maxLabel,children:x(C)})]}),t.jsx(ce,{errorMessage:(te=P.error)==null?void 0:te.message,errorColor:m})]})}}):t.jsxs("div",{className:T.rankingSliderContainer,style:{gridTemplateColumns:`${s&&g} ${b}`},children:[s&&t.jsx("p",{className:T.labelContainer,children:x(s)}),t.jsxs("div",{className:T.inputContainer,children:[_&&t.jsx("div",{className:T.minLabel,children:x(_)}),t.jsxs("div",{children:[t.jsx(Ae,{min:r,max:a,step:1,value:S,onChange:$=>{A($),i&&i($)},marks:!0,className:T.slider,thumbClassName:T.thumb,renderThumb:$=>t.jsx("div",{...$,style:{...$.style,backgroundColor:c}}),trackClassName:T.track,markClassName:T.mark,disabled:h}),p&&t.jsx("div",{className:T.labels,children:p.map($=>t.jsx("span",{children:f&&$},$))})]}),C&&t.jsx("div",{className:T.maxLabel,children:x(C)})]})]})};Ze.propTypes={input:e.shape({code:e.string,label:e.string,minValue:e.number,maxValue:e.number,defValue:e.number,thumbColor:e.string,required:e.bool,errorColor:e.string,labelWidth:e.string,sliderWidth:e.string,minText:e.string,maxText:e.string}),reactHookFormInstance:e.object};const Me=({inputs:n,inputContainerStyles:d,reactHookFormInstance:i})=>{const{watch:o}=i,s=o(),r=y.useMemo(()=>n.map(a=>{const l=typeof a.required=="function"?a.required(s):a.required;return{...a,required:l}}),[n,s]);return t.jsx("div",{className:oe.inputsContainer,children:r==null?void 0:r.map((a,l)=>{const{inputType:c}=a;switch(c){case he.text:return t.jsx("div",{className:oe.inputContainer,style:{...d},children:t.jsx(Re,{input:a,reactHookFormInstance:i})},`${a.code}${l}`);case he.password:return t.jsx("div",{className:oe.inputContainer,style:{...d},children:t.jsx(Re,{input:a,reactHookFormInstance:i})},`${a.code}${l}`);case he.select:return t.jsx("div",{className:oe.inputContainer,style:{...d},children:t.jsx(Et,{input:a,reactHookFormInstance:i})},`${a.code}${l}`);case he.radioList:return t.jsx("div",{className:oe.inputContainer,style:{...d},children:t.jsx(Pt,{input:a,reactHookFormInstance:i})},`${a.code}${l}`);case he.rankingSlider:return t.jsx("div",{className:oe.inputContainer,style:{...d},children:t.jsx(Ze,{input:a,reactHookFormInstance:i})},`${a.code}${l}`);default:return t.jsx("div",{children:t.jsx("h4",{children:"Default"})},`${a.code}${l}`)}})})},O0=({reactHookFormInstance:n,formObject:d,CategoryComponent:i,inputContainerStyles:o,generalError:s,errorColor:r="red",submitButtonLabel:a="Submit",submitButtonStyles:l={width:325},activeCategory:c=null,onSubmit:u=m=>console.log("Form submitted with data: ",m)})=>{const{handleSubmit:m,control:g,formState:{errors:b}}=n,{t:_}=N.useTranslation();return t.jsxs("form",{className:Le.formContainer,onSubmit:m(u),children:[t.jsx("div",{className:Le.formObjectContainer,children:d&&d.map((C,h)=>{const{inputs:p}=C;return C.category?i?t.jsx("div",{style:{display:c&&C.categoryId!==c?"none":"inherit",width:"100%"},children:t.jsx(i,{title:C.category,children:t.jsx(Me,{inputs:p,control:g,inputContainerStyles:o,errorColor:r,formInstance:n})},`${C.category}${h}`)}):t.jsxs("div",{style:{width:"100%",display:c&&C.categoryId!==c?"none":"flex",flexDirection:"column"},children:[t.jsx("h2",{style:{marginBottom:20},children:_(C.category)}),t.jsx("div",{style:{paddingTop:50,width:"100%"},children:t.jsx(Me,{inputs:p,control:g,inputContainerStyles:o,errorColor:r,reactHookFormInstance:n})})]},`${C.category}${h}`):t.jsx("div",{style:{width:"100%"},children:t.jsx(Me,{inputContainerStyles:o,inputs:p,control:g,errorColor:r,reactHookFormInstance:n})},`inputKey${h}`)})}),t.jsxs("div",{className:Le.buttonContainer,children:[t.jsx(Ce,{containerStyles:l,type:"submit",children:_(a)}),t.jsx(ce,{errorMessage:s,errorColor:r})]})]})},q0="_overlay_mnd4j_2",R0="_modal_mnd4j_15",I0="_closeButton_mnd4j_29",E0="_icon_mnd4j_39",P0="_message_mnd4j_45",z0="_submessage_mnd4j_51",Z0="_buttonsContainer_mnd4j_57",K0="_buttonWrapper_mnd4j_64",H={overlay:q0,modal:R0,closeButton:I0,icon:E0,message:P0,submessage:z0,buttonsContainer:Z0,buttonWrapper:K0},zt=({onClose:n,icon:d,message:i,submessage:o,buttons:s,maxHeight:r="450px",maxWidth:a="450px"})=>t.jsx("div",{className:H.overlay,children:t.jsxs("div",{className:H.modal,style:{maxHeight:r,maxWidth:a},children:[t.jsx("button",{className:H.closeButton,onClick:n,"aria-label":"Close modal",children:"✕"}),d&&t.jsx("img",{src:d,alt:"icon",className:H.icon}),t.jsx("p",{className:H.message,children:i}),o&&t.jsx("p",{className:H.submessage,children:o}),s.length>0&&t.jsx("div",{className:H.buttonsContainer,children:s.map((l,c)=>t.jsx("div",{className:H.buttonWrapper,children:l},c))})]})});zt.propTypes={onClose:e.func.isRequired,icon:e.string,message:e.string.isRequired,submessage:e.string,buttons:e.arrayOf(e.node),maxHeight:e.string,maxWidth:e.string};const H0="_stepsContainer_1cyua_3",U0="_stepWrapper_1cyua_9",G0="_circleContainer_1cyua_19",W0="_circle_1cyua_19",Y0="_active_1cyua_39",Q0="_completed_1cyua_44",X0="_label_1cyua_50",J0="_labelActive_1cyua_56",ei="_connector_1cyua_61",E={stepsContainer:H0,stepWrapper:U0,circleContainer:G0,circle:W0,active:Y0,completed:Q0,label:X0,labelActive:J0,connector:ei},Ke=({steps:n,activeColor:d})=>t.jsx("div",{className:E.stepsContainer,children:n.map((i,o)=>{const s=i.status==="active",r=i.status==="completed";return t.jsxs("div",{className:E.stepWrapper,children:[t.jsxs("div",{className:E.circleContainer,children:[t.jsx("div",{className:`${E.circle}
|
|
5
5
|
${s?E.active:""}
|
|
6
6
|
${r?E.completed:""}`,style:s?{backgroundColor:d}:{},onClick:i.onClick,children:o+1}),o<n.length-1&&t.jsx("div",{className:E.connector})]}),t.jsx("div",{className:`${E.label} ${s?E.labelActive:""}`,children:i.name})]},o)})});Ke.propTypes={steps:e.arrayOf(e.shape({name:e.string.isRequired,onClick:e.func,status:e.oneOf(["inactive","active","completed"]).isRequired})).isRequired,activeColor:e.string};Ke.defaultProps={activeColor:"#C2185B"};const ti="_statusTextContainer_ch14r_2",si={statusTextContainer:ti},He=({text:n,color:d})=>t.jsx("div",{className:si.statusTextContainer,style:{background:d},children:t.jsx("span",{children:n})});He.propTypes={text:e.string,color:e.string};He.defaultProps={color:"#C2185B"};const ni="_buttonsContainer_1c7dw_2",ii="_button_1c7dw_2",oi="_active_1c7dw_20",ve={buttonsContainer:ni,button:ii,active:oi},Zt=({buttons:n=[]})=>{const{t:d}=N.useTranslation();return t.jsx("div",{className:`${ve.buttonsContainer}`,children:n.map((i,o)=>{const{isActive:s,name:r,onClick:a}=i;return t.jsx("div",{children:t.jsx("button",{onClick:a,className:`${ve.button}
|
|
7
|
-
${s&&ve.active}`,children:t.jsx("span",{className:ve.buttonName,children:d(r)})})},o)})})};Zt.propTypes={buttons:e.arrayOf(e.shape({isActive:e.bool,name:e.string,onClick:e.func})).isRequired};const ri="_switchContainer_194wl_2",ai="_labelRight_194wl_9",li="_labelLeft_194wl_9",ci="_slider_194wl_28",di="_disabled_194wl_54",
|
|
7
|
+
${s&&ve.active}`,children:t.jsx("span",{className:ve.buttonName,children:d(r)})})},o)})})};Zt.propTypes={buttons:e.arrayOf(e.shape({isActive:e.bool,name:e.string,onClick:e.func})).isRequired};const ri="_switchContainer_194wl_2",ai="_labelRight_194wl_9",li="_labelLeft_194wl_9",ci="_slider_194wl_28",di="_disabled_194wl_54",ae={switchContainer:ri,labelRight:ai,labelLeft:li,switch:"_switch_194wl_2",slider:ci,disabled:di},Kt=({input:n,reactHookFormInstance:d,onChange:i})=>{const{code:o,labelLeft:s,labelRight:r,defValue:a=!1,colorOn:l="#5A514D",disabled:c=!1,width:u=240}=n,{t:m}=N.useTranslation(),{control:g}=d||{},[b,_]=y.useState(a),C=p=>{_(p),i&&i(p)},h=(p,f)=>t.jsxs("div",{className:ae.switchContainer,style:{width:`${u}px`},children:[s&&t.jsx("span",{className:ae.labelLeft,style:{width:`${(u-74)/2}px`},children:m(s)}),t.jsxs("label",{className:`${ae.switch} ${c?ae.disabled:""}`,children:[t.jsx("input",{type:"checkbox",checked:!!p,onChange:()=>f(!p),disabled:c}),t.jsx("span",{className:ae.slider,style:{"--switch-thumb-color":p?l:"#ccc"}})]}),r&&t.jsx("span",{className:ae.labelRight,style:{width:`${(u-74)/2}px`},children:m(r)})]});return d?t.jsx(xe,{name:o,control:g,defaultValue:a,render:({field:p})=>h(p.value,p.onChange)}):h(b,C)};Kt.propTypes={input:e.shape({code:e.string,labelLeft:e.string,labelRight:e.string,defValue:e.bool,colorOn:e.string,disabled:e.bool}),reactHookFormInstance:e.object,onChange:e.func};const ui="_header_13kbt_2",pi="_leftComponents_13kbt_13",mi="_centerComponents_13kbt_14",hi="_rightComponents_13kbt_15",gi="_componentsContainer_13kbt_32",ee={header:ui,leftComponents:pi,centerComponents:mi,rightComponents:hi,componentsContainer:gi},Ht=({cssProps:n,leftComponents:d=[],centerComponents:i=[],rightComponents:o=[],zIndex:s=10,height:r=60,backgroundColor:a="#605B56",isFooter:l=!1})=>t.jsxs("div",{className:ee.header,style:{...n,zIndex:s,height:r,backgroundColor:a,top:l?"auto":0,bottom:l?0:"auto"},children:[t.jsx("div",{className:ee.leftComponents,children:d.map((c,u)=>t.jsx("div",{className:ee.componentsContainer,children:c},u))}),t.jsx("div",{className:ee.centerComponents,children:i.map((c,u)=>t.jsx("div",{className:ee.componentsContainer,children:c},u))}),t.jsx("div",{className:ee.rightComponents,children:o.map((c,u)=>t.jsx("div",{className:ee.componentsContainer,children:c},u))})]});Ht.propTypes={leftComponents:e.arrayOf(e.node),centerComponents:e.arrayOf(e.node),rightComponents:e.arrayOf(e.node),cssProps:e.object,zIndex:e.number,height:e.number,backgroundColor:e.string,isFooter:e.bool};const Ci="_sidebar_invf2_2",fi="_open_invf2_16",xi="_content_invf2_20",bi="_closeButton_invf2_25",je={sidebar:Ci,open:fi,content:xi,closeButton:bi},_i="data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%203699'%3e%3cpath%20id='Vector%20223'%20d='M1%201L18.1566%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20id='Vector%20224'%20d='M18.1575%201L1.00083%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e",Ut=({width:n="300px",children:d,showRightBar:i,onCloseBar:o})=>{const s=()=>{o()};return t.jsx("div",{className:`${je.sidebar} ${i?je.open:""}`,style:{width:i?n:0},children:i&&t.jsxs("div",{className:je.content,children:[t.jsx("button",{className:je.closeButton,onClick:s,children:t.jsx("img",{src:_i,alt:"Close Sidebar"})}),d]})})};Ut.propTypes={width:e.string,children:e.node,showRightBar:e.bool,onCloseBar:e.func};exports.AmbitSelector=ct;exports.ButtonsBar=Zt;exports.ButtonsList=dt;exports.DropdownList=G;exports.EditAmbit=q2;exports.ErrorMessage=ce;exports.FiltersAmbit=xt;exports.Form=O0;exports.GeneralButton=Ce;exports.Graphic=_t;exports.HeaderSection=Ht;exports.IndicatorsList=jt;exports.LangSelector=wt;exports.Legend=Nt;exports.ListSelector=Ft;exports.LogInButton=Mt;exports.LogoApp=kt;exports.MapboxMap=St;exports.MaplibreMap=Tt;exports.ModalAlert=zt;exports.RadioButtonInput=Pt;exports.RankingSlider=Ze;exports.RightSidebar=Ut;exports.SectionBar=Bt;exports.SelectInput=Et;exports.StatusText=He;exports.Steps=Ke;exports.Switch=Kt;exports.TextInput=Re;exports.TimeSlider=$t;exports.Tooltip=U;exports.TopNavMenu=Lt;
|