@tmf_ciclica/ciclicastorybook 1.2.6 → 1.2.7
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 +5 -5
- package/dist/index.es.js +830 -785
- 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}._indicatorsCategory_11gdl_2{overflow:hidden;min-height:50px}._indicatorsCategory_11gdl_2 ._title_11gdl_6{align-items:center;gap:10px;cursor:pointer;display:grid;height:50px;grid-template-columns:12px auto}._indicatorsCategory_11gdl_2 ._title_11gdl_6._mainTitle_11gdl_14{border-bottom:1px solid;height:70px}._indicatorsCategory_11gdl_2 ._list_11gdl_18{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._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}._GeographicalFilters_cn837_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start}._GeographicalFilters_cn837_2 ._AppliedFilterContent_cn837_10{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:row;align-items:center;font-size:16px;font-weight:400;height:35px;width:fit-content;padding:20px;border-radius:100px}._layersList_cn837_25{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:column;align-items:flex-start}._layerName_cn837_34{padding-left:25px;cursor:pointer}._checkboxContainer_1nxra_2{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:400;cursor:pointer}._checkboxContainer_1nxra_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_bp6cj_2{width:100%;height:100%;padding-left:24px;position:relative;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:start;gap:20px}._FiltersAmbitContainer_bp6cj_2 ._FiltersAmbitHeader_bp6cj_15{display:flex;flex-wrap:nowrap;justify-content:start;gap:30px;flex-direction:column;align-items:start}._FiltersAmbitContainer_bp6cj_2 ._FiltersAmbitHeader_bp6cj_15 ._FiltersAmbitTitle_bp6cj_23{font-size:18px;font-weight:600;border-bottom:1.5px solid #605B56;width:100%;height:70px;display:flex;align-items:center}._FiltersAmbitContainer_bp6cj_2 ._FiltersAmbitHeader_bp6cj_15 ._FiltersAmbitDescription_bp6cj_32{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_bp6cj_2 ._FiltersAmbitHeader_bp6cj_15 ._FiltersAmbitDescription_bp6cj_32 ._FiltersAmbitDescriptionTitle_bp6cj_43{font-size:18px;font-weight:600}._FiltersAmbitContainer_bp6cj_2 ._warning_bp6cj_47{color:red}._FiltersAmbitContainer_bp6cj_2 ._buttonContainer_bp6cj_50{width:100%;margin-left:-24px;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:column;align-items:center;margin-bottom:20px;height:60px}._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_arwy3_2{overflow:hidden}._indicatorsCategory_arwy3_2 ._title_arwy3_5{align-items:center;gap:10px;cursor:pointer;margin-bottom:25px;display:grid;grid-template-columns:12px auto}._indicatorsCategory_arwy3_2 ._list_arwy3_13{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._indicatorContainer_17b40_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:center;gap:10px}._indicatorContainer_17b40_2 ._indicatorNameContainer_17b40_11{gap:8px;display:grid;grid-template-columns:15px auto;align-items:center}._indicatorContainer_17b40_2 ._dot_17b40_17{border-radius:100px;width:13px;height:13px;display:flex;align-items:center;justify-content:center}._indicatorContainer_17b40_2 ._indicatorName_17b40_11{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_17b40_31{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start}._switchExternalContainer_17b40_31 ._switchType_17b40_39{margin:0;width:100%}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43 ._optionContainer_17b40_54{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:9px;cursor:pointer}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43 ._optionContainer_17b40_54 ._customRadious_17b40_64{width:13px;height:13px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43 ._optionContainer_17b40_54 ._optionText_17b40_71{font-weight:400}._indicatorsSubCategory_1nuug_2{overflow:hidden}._indicatorsSubCategory_1nuug_2 h3{text-align:left;display:grid;gap:10px;grid-template-columns:12px auto}._indicatorsSubCategory_1nuug_2 ._list_1nuug_11{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:start;margin:20px 0;gap:20px}._indicatorsList_13b3m_2{width:100%;padding-left:30px}._indicatorsList_13b3m_2 ._title_13b3m_6{border-bottom:1px solid;height:70px;display:flex;align-items:center;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_1ox68_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;padding-left:24px;min-height:100%;flex:1}._elementSelector_1ox68_2 ._header_1ox68_14{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;height:70px}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24{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_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementName_1ox68_40{font-size:18px;font-weight:600;flex:1}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementName_1ox68_40 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementDate_1ox68_54{font-size:18px;font-weight:600;flex:.5}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementDate_1ox68_54 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1ox68_2 ._header_1ox68_14 ._buttonsContainer_1ox68_68{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._elementSelector_1ox68_2 ._elementListContainer_1ox68_77{flex:1;width:100%}._elementSelector_1ox68_2 ._newElementButtonContainer_1ox68_81{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_1evjl_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;padding-right:15px}._listElement_1evjl_2 ._elementNameDate_1evjl_18{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._listElement_1evjl_2 ._elementNameDate_1evjl_18 ._elementNameContainer_1evjl_28{flex:1;display:flex;flex-direction:column;align-items:flex-start;position:relative}._listElement_1evjl_2 ._elementNameDate_1evjl_18 ._elementName_1evjl_18{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._listElement_1evjl_2 ._elementNameDate_1evjl_18 ._elementDate_1evjl_43{flex:.5}._listElement_1evjl_2 ._elementButtons_1evjl_46{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._listElement_1evjl_2 ._elementButtons_1evjl_46 button:disabled{opacity:.5;cursor:default}._listElement_1evjl_2 ._elementButtons_1evjl_46 img{display:inline}._break_1evjl_64{flex-basis:100%;height:0}._moreInfoContainer_1evjl_69 ._moreInfo_1evjl_69{display:flex;gap:5px;cursor:pointer}._formContainer_asv64_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start;flex-direction:column}._formContainer_asv64_2 ._categorySelectorContainer_asv64_11{margin-bottom:5px;width:100%}._formContainer_asv64_2 ._formObjectContainer_asv64_15{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:center;flex:1;width:100%;gap:80px}._formContainer_asv64_2 ._buttonContainer_asv64_26{width:100%;margin-top:30px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;gap:20px}._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}._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}._categorySelector_1t164_2{min-height:50px;width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:10px;background-color:#efefef;border-radius:10px;padding:5px}._categorySelector_1t164_2 ._sectionItemActive_1t164_16{color:#fff}._categorySelector_1t164_2 ._sectionItem_1t164_16{border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;padding:5px;min-width:120px;height:100%}._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}._overlay_1xyw2_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999}._popup_1xyw2_15{background:#fff;padding:2rem;border-radius:12px;display:flex;flex-direction:column;align-items:center;box-shadow:0 4px 20px #0003}._gif_1xyw2_25{width:120px;height:auto;margin-bottom:1rem}._message_1xyw2_31{font-size:1.1rem;text-align:center}._container_gnwec_2{position:relative}._burger_gnwec_6{position:fixed;top:1rem;right:1rem;width:32px;height:32px;display:flex;flex-direction:column;justify-content:space-between;background:none;border:none;padding:0;cursor:pointer;z-index:1000}._burger_gnwec_6 span{display:block;height:4px;border-radius:2px;transition:.3s ease}._open_gnwec_29 span:nth-child(1){transform:translateY(18px) rotate(45deg)}._open_gnwec_29 span:nth-child(2){opacity:0}._open_gnwec_29 span:nth-child(3){transform:translateY(-10px) rotate(-45deg)}._menu_gnwec_41{position:fixed;top:0;right:0;width:250px;height:100vh;padding:1.5rem;display:flex;flex-direction:column;box-shadow:-2px 0 8px #00000026;animation:_slideIn_gnwec_1 .3s ease forwards;z-index:999}@keyframes _slideIn_gnwec_1{0%{transform:translate(100%)}to{transform:translate(0)}}._close_gnwec_63{align-self:flex-end;background:none;border:none;font-size:24px;cursor:pointer}._list_gnwec_71{list-style:none;padding:0;margin-top:50px;display:flex;flex-direction:column;gap:1rem}._link_gnwec_80,._button_gnwec_81{text-decoration:none;color:inherit;font-size:18px;border:none;background:none;cursor:pointer}._active_gnwec_90{font-weight:700;border-bottom:3px solid}._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_1kaqu_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_1kaqu_16{border-left:1px solid #ddd}._content_1kaqu_20{position:relative;height:100%}._closeButton_1kaqu_25{position:absolute;top:28px;right:28px;font-size:24px;background:none;border:none;cursor:pointer;color:#333;transition:color .2s ease;z-index:10}._closeButton_1kaqu_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"),b=require("react"),e=require("prop-types"),T=require("react-i18next"),Ke=require("framer-motion"),xt=require("zustand"),a2=require("d3"),l2=require("mapbox-gl"),c2=require("react-redux"),ue=require("react-map-gl/mapbox"),Me=require("maplibre-gl"),d2=require("pmtiles"),pe=require("react-map-gl/maplibre"),u2=require("@reduxjs/toolkit"),p2=require("@mui/material/Slider"),tt=require("@mui/material"),m2=require("@emotion/react"),ft=require("react-router-dom");function bt(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 ce=bt(b),Ve=bt(a2),h2="_ambitSelector_mcunf_2",g2="_header_mcunf_13",C2="_nameDateContainer_mcunf_23",x2="_ambitName_mcunf_39",f2="_ambitDate_mcunf_53",b2="_buttonsContainer_mcunf_67",y2="_ambitListContainer_mcunf_76",_2="_newAmbitButtonContainer_mcunf_80",W={ambitSelector:h2,header:g2,nameDateContainer:C2,ambitName:x2,ambitDate:f2,buttonsContainer:b2,ambitListContainer:y2,newAmbitButtonContainer:_2},v2="_ambitItem_1qa6u_2",j2="_ambitNameDate_1qa6u_16",w2="_ambitName_1qa6u_16",N2="_ambitDate_1qa6u_35",k2="_ambitButtons_1qa6u_38",me={ambitItem:v2,ambitNameDate:j2,ambitName:w2,ambitDate:N2,ambitButtons:k2},S2="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",T2="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",$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%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",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%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",L2="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",M2="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",yt=({ambit:n,onClickCopy:d,onClickDelete:i,onClickFilters:o,onClickAmbit:s,isActive:r,activeColor:c,fontColor:a,moreInfo:l})=>{const{name:u,created_at:m,id:h,isBeingProcessed:x}=n;return t.jsxs("div",{className:me.ambitItem,style:{borderBottom:`1px solid ${a}`},children:[t.jsxs("div",{className:me.ambitNameDate,onClick:()=>s(h),children:[t.jsxs("div",{className:me.ambitName,children:[t.jsx("img",{style:{marginRight:9},src:r?L2:M2}),t.jsx("span",{style:{color:r?c:a},children:u})]}),t.jsx("div",{className:me.ambitDate,children:m?new Date(m).toLocaleDateString():""})]}),t.jsxs("div",{className:me.ambitButtons,children:[x&&t.jsx("img",{src:B2}),t.jsx("button",{onClick:()=>o(h),disabled:n.is_default,children:t.jsx("img",{src:$2})}),t.jsx("button",{onClick:()=>d(h),children:t.jsx("img",{src:T2})}),t.jsx("button",{onClick:()=>i(h),disabled:n.is_default,children:t.jsx("img",{src:S2})})]})]})};yt.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 st="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",V2="_generalButton_phq4n_2",D2={generalButton:V2},be=({children:n,onClick:d,fontColor:i="#605B56",borderColor:o="#605B56",backgroundColor:s="#fff",type:r="button",containerStyles:c={},disabled:a=!1})=>t.jsx("button",{className:D2.generalButton,style:{color:i,border:`1.5px solid ${o}`,background:s,...c},onClick:d,type:r,disabled:a,children:n}),_t=({ambitList:n,activeAmbitId:d,fontColor:i="#605B56",activeColor:o,nameLabel:s,dateLabel:r,newAmbitLabel:c="New field",buttonContainerStyles:a={},containerStyles:l={},onCLickNewAmbit:u=()=>console.log("New ambit clicked"),onClickCopy:m=_=>console.log(`Copy ambit: ${_}`),onCLickDelete:h=_=>console.log(`Delete ambit: ${_}`),onClickFilters:x=_=>console.log(`Filters clicked: ${_}`),onClickAmbit:C=_=>console.log(`OnCLickAmbit: ${_}`)})=>{const{t:_}=T.useTranslation(),[y,f]=b.useState(n);b.useEffect(()=>{n&&f(n)},[n]);const p=g=>{if(y&&y.length>0){let j=[...y];j.sort((v,w)=>v[g].localeCompare(w[g])),f(j)}};return t.jsxs("div",{className:W.ambitSelector,style:{color:i,...l},children:[t.jsxs("div",{className:W.header,style:{borderBottom:`1px solid ${i}`},children:[t.jsxs("div",{className:W.nameDateContainer,children:[t.jsx("div",{className:W.ambitName,children:t.jsxs("button",{onClick:()=>p("name"),children:[t.jsx("span",{children:_(s)}),t.jsx("img",{src:st})]})}),t.jsx("div",{className:W.ambitDate,children:t.jsxs("button",{onClick:()=>p("date"),children:[t.jsx("span",{children:_(r)}),t.jsx("img",{src:st})]})})]}),t.jsx("div",{className:W.buttonsContainer})]}),t.jsx("div",{className:W.ambitListContainer,children:y&&y.length>0&&y.map(g=>t.jsx(yt,{isActive:d==g.id,ambit:g,fontColor:i,activeColor:o,onClickCopy:m,onClickDelete:h,onClickFilters:x,onClickAmbit:C},`ambitKey${g.id}`))}),t.jsx("div",{className:W.newAmbitButtonContainer,children:t.jsx(be,{style:{...a},onClick:u,borderColor:"grey",children:_(c)})})]})};_t.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 F2="_buttonsContainer_1ks7x_2",A2="_vertical_1ks7x_6",I2="_horizontal_1ks7x_9",O2="_button_1ks7x_2",R2="_active_1ks7x_25",q2="_buttonName_1ks7x_28",J={buttonsContainer:F2,vertical:A2,horizontal:I2,button:O2,active:R2,buttonName:q2},E2="_left_1l4m4_2",P2="_top_1l4m4_40",Z2="_bottom_1l4m4_79",z2="_right_1l4m4_118",H2={left:E2,top:P2,bottom:Z2,right:z2},Y=({text:n,position:d,styleCustom:i=null})=>{const{t:o}=T.useTranslation();return t.jsx("div",{className:`tooltip ${H2[d]}`,style:i,children:o(n)})};Y.propTypes={text:e.string.isRequired,position:e.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:e.object};const vt=({buttons:n=[],orientation:d="horizontal",showName:i=!0,namePosition:o="right",useTooltip:s=!1,tooltipPosition:r="top"})=>{const{t:c}=T.useTranslation();return t.jsx("div",{className:`${J.buttonsContainer} ${d==="vertical"&&J.vertical}
|
|
3
|
-
${d==="horizontal"&&J.horizontal}`,children:n.map((a,
|
|
4
|
-
${h&&J.active}`,disabled:_,children:y}),s&&t.jsx(Y,{text:x,position:r})]},l)})})};vt.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 K2="_indicatorsCategory_11gdl_2",U2="_title_11gdl_6",W2="_mainTitle_11gdl_14",je={indicatorsCategory:K2,title:U2,mainTitle:W2},Q=({isOpen:n,onClick:d,children:i,color:o,activeColor:s="#F8A925",title:r="Title",height:c=53,titleFontStyles:a,showBottomBar:l=!0,titleMarginChildren:u=15,mainTitle:m=!1})=>{const{t:h}=T.useTranslation();return t.jsxs(Ke.motion.div,{className:je.indicatorsCategory,initial:{height:`${c}px`},animate:{height:n?"auto":`${c}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:n&&l?`1px solid ${s}`:"0px",minHeight:m?"70px":"50px"},children:[t.jsxs("h2",{style:{...a},className:`${je.title} ${m&&je.mainTitle}`,onClick:d,children:[t.jsx("span",{style:{color:n?s:o},children:n?"-":"+"}),t.jsx("span",{style:{color:n?s:o},children:h(r)})]}),t.jsx("div",{className:je.content,style:{padding:m?"20px 0px":"0px"},children:i})]})};Q.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 G2=()=>t.jsx("div",{children:"EditAmbit"}),Y2="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",Q2="_AppliedFiltersContainer_cokx9_2",X2="_AppliedFilterContent_cokx9_11",nt={AppliedFiltersContainer:Q2,AppliedFilterContent:X2},L=xt.create(n=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56",activeFiltersType:null,geoLayers:[]})),jt=({title:n,onClick:d,isOpen:i=!0,textColor:o="#ffffff",backgroundColor:s="#605B5680",activeColor:r,fontColor:c="#605B56"})=>{const{t:a}=T.useTranslation(),{tematicalFiltersSelected:l,activeFiltersType:u}=L(x=>x),m=x=>{L.setState(C=>({tematicalFiltersSelected:C.tematicalFiltersSelected.filter(_=>_.code!==x)}))},h=()=>{u=="applied"?L.setState(()=>({activeFiltersType:null})):L.setState(()=>({activeFiltersType:"applied"}))};return t.jsx(Q,{isOpen:i,onClick:h,title:n?a(n):"Applied Filters",activeColor:r,mainTitle:!0,color:c,children:t.jsx("div",{className:nt.AppliedFiltersContainer,children:l==null?void 0:l.map((x,C)=>t.jsxs("div",{className:nt.AppliedFilterContent,style:{color:o,background:s},children:[a(x.name),t.jsx("img",{src:Y2,alt:"CloseIcon",onClick:()=>m(x.code),style:{cursor:"pointer"}})]},C))})})};jt.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 J2="_layersList_cn837_25",es="_layerName_cn837_34",it={layersList:J2,layerName:es},wt=({title:n,isOpen:d=!0,fontColor:i="#605B56",backgroundColor:o="#605B5680",activeColor:s,onGeoLayersChange:r})=>{const{t:c}=T.useTranslation(),{activeFiltersType:a,geoLayers:l}=L(h=>h),u=()=>{a=="geographical"?L.setState(()=>({activeFiltersType:null})):L.setState(()=>({activeFiltersType:"geographical"}))},m=h=>{L.setState(x=>({geoLayers:x.geoLayers.map(C=>({...C,active:C.name===h.name}))})),r(l)};return b.useEffect(()=>{r&&r(l)},[l]),t.jsx(Q,{isOpen:a=="geographical",onClick:u,title:n?c(n):"Geographical Filters",activeColor:s,color:i,mainTitle:!0,children:t.jsx("div",{className:`${it.layersList}`,children:l.map(h=>t.jsxs("div",{className:`${it.layerName}`,style:{color:h.active?s:i,fontWeight:h.active?"bold":"normal"},onClick:()=>m(h),children:[c(h.name),h.active]}))})})};wt.propTypes={isOpen:e.bool,onClick:e.func,title:e.string,textColor:e.string,backgroundColor:e.string,activeColor:e.string};const ts="_checkboxContainer_1nxra_2",ss={checkboxContainer:ts},Nt=({onClick:n,containerStyles:d,color:i="#605B56",indicator:o,value:s})=>{const{t:r}=T.useTranslation(),{title:c}=o||{},{fontColor:a,inputsColor:l}=L(u=>u);return t.jsxs("div",{style:{...d,color:i},role:"checkbox",className:ss.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?l:a}`,backgroundColor:s?l:"white"}}),t.jsx("span",{className:"checkmark",children:r(c)})]})};Nt.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 Oe(n,d){return Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},Oe(n,d)}function ns(n,d){n.prototype=Object.create(d.prototype),n.prototype.constructor=n,Oe(n,d)}function De(n){return n&&n.stopPropagation&&n.stopPropagation(),n&&n.preventDefault&&n.preventDefault(),!1}function Fe(n){return n==null?[]:Array.isArray(n)?n.slice():[n]}function we(n){return n!==null&&n.length===1?n[0]:n.slice()}function Ne(n){Object.keys(n).forEach(d=>{typeof document<"u"&&document.addEventListener(d,n[d],!1)})}function ee(n,d){return Re(function(i,o){let s=i;return s<=o.min&&(s=o.min),s>=o.max&&(s=o.max),s}(n,d),d)}function Re(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 qe=function(n){function d(o){var s;(s=n.call(this,o)||this).onKeyUp=()=>{s.onEnd()},s.onMouseUp=()=>{s.onEnd(s.getMouseEventMap())},s.onTouchEnd=a=>{a.preventDefault(),s.onEnd(s.getTouchEventMap())},s.onBlur=()=>{s.setState({index:-1},s.onEnd(s.getKeyDownEventMap()))},s.onMouseMove=a=>{s.setState({pending:!0});const l=s.getMousePosition(a),u=s.getDiffPosition(l[0]),m=s.getValueFromPosition(u);s.move(m)},s.onTouchMove=a=>{if(a.touches.length>1)return;s.setState({pending:!0});const l=s.getTouchPosition(a);if(s.isScrolling===void 0){const h=l[0]-s.startPosition[0],x=l[1]-s.startPosition[1];s.isScrolling=Math.abs(x)>Math.abs(h)}if(s.isScrolling)return void s.setState({index:-1});const u=s.getDiffPosition(l[0]),m=s.getValueFromPosition(u);s.move(m)},s.onKeyDown=a=>{if(!(a.ctrlKey||a.shiftKey||a.altKey||a.metaKey))switch(s.setState({pending:!0}),a.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":a.preventDefault(),s.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":a.preventDefault(),s.moveUpByStep();break;case"Home":a.preventDefault(),s.move(s.props.min);break;case"End":a.preventDefault(),s.move(s.props.max);break;case"PageDown":a.preventDefault(),s.moveDownByStep(s.props.pageFn(s.props.step));break;case"PageUp":a.preventDefault(),s.moveUpByStep(s.props.pageFn(s.props.step))}},s.onSliderMouseDown=a=>{if(!s.props.disabled&&a.button!==2){if(s.setState({pending:!0}),!s.props.snapDragDisabled){const l=s.getMousePosition(a);s.forceValueFromPosition(l[0],u=>{s.start(u,l[0]),Ne(s.getMouseEventMap())})}De(a)}},s.onSliderClick=a=>{if(!s.props.disabled&&s.props.onSliderClick&&!s.hasMoved){const l=s.getMousePosition(a),u=ee(s.calcValue(s.calcOffsetFromPosition(l[0])),s.props);s.props.onSliderClick(u)}},s.createOnKeyDown=a=>l=>{s.props.disabled||(s.start(a),Ne(s.getKeyDownEventMap()),De(l))},s.createOnMouseDown=a=>l=>{if(s.props.disabled||l.button===2)return;s.setState({pending:!0});const u=s.getMousePosition(l);s.start(a,u[0]),Ne(s.getMouseEventMap()),De(l)},s.createOnTouchStart=a=>l=>{if(s.props.disabled||l.touches.length>1)return;s.setState({pending:!0});const u=s.getTouchPosition(l);s.startPosition=u,s.isScrolling=void 0,s.start(a,u[0]),Ne(s.getTouchEventMap()),function(m){m.stopPropagation&&m.stopPropagation()}(l)},s.handleResize=()=>{const a=window.setTimeout(()=>{s.pendingResizeTimeouts.shift(),s.resize()},0);s.pendingResizeTimeouts.push(a)},s.renderThumb=(a,l)=>{const u=s.props.thumbClassName+" "+s.props.thumbClassName+"-"+l+" "+(s.state.index===l?s.props.thumbActiveClassName:""),m={ref:x=>{s["thumb"+l]=x},key:s.props.thumbClassName+"-"+l,className:u,style:a,onMouseDown:s.createOnMouseDown(l),onTouchStart:s.createOnTouchStart(l),onFocus:s.createOnKeyDown(l),tabIndex:0,role:"slider","aria-orientation":s.props.orientation,"aria-valuenow":s.state.value[l],"aria-valuemin":s.props.min,"aria-valuemax":s.props.max,"aria-label":Array.isArray(s.props.ariaLabel)?s.props.ariaLabel[l]:s.props.ariaLabel,"aria-labelledby":Array.isArray(s.props.ariaLabelledby)?s.props.ariaLabelledby[l]:s.props.ariaLabelledby,"aria-disabled":s.props.disabled},h={index:l,value:we(s.state.value),valueNow:s.state.value[l]};return s.props.ariaValuetext&&(m["aria-valuetext"]=typeof s.props.ariaValuetext=="string"?s.props.ariaValuetext:s.props.ariaValuetext(h)),s.props.renderThumb(m,h)},s.renderTrack=(a,l,u)=>{const m={key:s.props.trackClassName+"-"+a,className:s.props.trackClassName+" "+s.props.trackClassName+"-"+a,style:s.buildTrackStyle(l,s.state.upperBound-u)},h={index:a,value:we(s.state.value)};return s.props.renderTrack(m,h)};let r=Fe(o.value);r.length||(r=Fe(o.defaultValue)),s.pendingResizeTimeouts=[];const c=[];for(let a=0;a<r.length;a+=1)r[a]=ee(r[a],o),c.push(a);return s.resizeObserver=null,s.resizeElementRef=b.createRef(),s.state={index:-1,upperBound:0,sliderLength:0,value:r,zIndices:c},s}ns(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=Fe(o.value);return r.length?s.pending?null:{value:r.map(c=>ee(c,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 we(this.state.value)},i.getClosestIndex=function(o){let s=Number.MAX_VALUE,r=-1;const{value:c}=this.state,a=c.length;for(let l=0;l<a;l+=1){const u=this.calcOffset(c[l]),m=Math.abs(o-u);m<s&&(s=m,r=l)}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 ee(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(),c=o.getBoundingClientRect(),a=o[r],l=c[this.posMaxKey()],u=c[this.posMinKey()],m=s.getBoundingClientRect()[r.replace("client","").toLowerCase()],h=a-m,x=Math.abs(l-u);this.state.upperBound===h&&this.state.sliderLength===x&&this.state.thumbSize===m||this.setState({upperBound:h,sliderLength:x,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(),c=r[this.posMaxKey()],a=r[this.posMinKey()];let l=o-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?c:a));return this.props.invert&&(l=this.state.sliderLength-l),l-=this.state.thumbSize/2,l},i.forceValueFromPosition=function(o,s){const r=this.calcOffsetFromPosition(o),c=this.getClosestIndex(r),a=ee(this.calcValue(r),this.props),l=this.state.value.slice();l[c]=a;for(let u=0;u<l.length-1;u+=1)if(l[u+1]-l[u]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:l},()=>{s(c),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:c}=this.state;c.splice(c.indexOf(o),1),c.push(o),this.setState(a=>({startValue:a.value[o],startPosition:s!==void 0?s:a.startPosition,index:o,zIndices:c}))},i.moveUpByStep=function(o){o===void 0&&(o=this.props.step);const s=this.state.value[this.state.index],r=ee(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=ee(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:c}=s,a=s[r];if(o===a)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:l,max:u,min:m,minDistance:h}=this.props;if(!l){if(r>0){const x=s[r-1];o<x+h&&(o=x+h)}if(r<c-1){const x=s[r+1];o>x-h&&(o=x-h)}}s[r]=o,l&&c>1&&(o>a?(this.pushSucceeding(s,h,r),function(x,C,_,y){for(let f=0;f<x;f+=1){const p=y-f*_;C[x-1-f]>p&&(C[x-1-f]=p)}}(c,s,h,u)):o<a&&(this.pushPreceding(s,h,r),function(x,C,_,y){for(let f=0;f<x;f+=1){const p=y+f*_;C[f]<p&&(C[f]=p)}}(c,s,h,m))),this.setState({value:s},this.fireChangeEvent.bind(this,"onChange"))},i.pushSucceeding=function(o,s,r){let c,a;for(c=r,a=o[c]+s;o[c+1]!==null&&a>o[c+1];c+=1,a=o[c]+s)o[c+1]=Re(a,this.props)},i.pushPreceding=function(o,s,r){for(let c=r,a=o[c]-s;o[c-1]!==null&&a<o[c-1];c-=1,a=o[c]-s)o[c-1]=Re(a,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](we(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 a=0;a<s;a+=1)r[a]=this.buildThumbStyle(o[a],a);const c=[];for(let a=0;a<s;a+=1)c[a]=this.renderThumb(r[a],a);return c},i.renderTracks=function(o){const s=[],r=o.length-1;s.push(this.renderTrack(0,0,o[0]));for(let c=0;c<r;c+=1)s.push(this.renderTrack(c+1,o[c],o[c+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,c)=>c):typeof o=="number"&&(o=Array.from({length:s}).map((r,c)=>c).filter(r=>r%o==0)),o.map(parseFloat).sort((r,c)=>r-c).map(r=>{const c=this.calcOffset(r),a={key:r,className:this.props.markClassName,style:this.buildMarkStyle(c)};return this.props.renderMark(a)})},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 c=this.props.withTracks?this.renderTracks(o):null,a=this.renderThumbs(o),l=this.props.marks?this.renderMarks():null;return b.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},c,a,l)},d}(b.Component);qe.displayName="ReactSlider",qe.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=>b.createElement("div",n),renderTrack:n=>b.createElement("div",n),renderMark:n=>b.createElement("span",n)};var Ee=qe;const is="_container_4u41i_2",os="_unitLabel_4u41i_8",rs="_slider_4u41i_11",as="_thumb_4u41i_17",ls="_track_4u41i_26",cs="_labels_4u41i_32",oe={container:is,unitLabel:os,slider:rs,thumb:as,track:ls,labels:cs},kt=({min:n=0,max:d=100,step:i=1,onChange:o,width:s=300,unit:r,fontColor:c="#605B56",defaultValue:a,isDate:l})=>{const{t:u}=T.useTranslation(),m=l?new Date(n).getTime():null,h=l?new Date(d).getTime():null,[x,C]=b.useState(l?[m,h]:[n,d]),_=y=>{C(y),o==null||o({min:y[0],max:y[1]})};return b.useEffect(()=>{a||C(l?[m,h]:[n,d])},[a,l]),t.jsxs("div",{className:oe.container,style:{width:`${s}px`,color:`${c}`},children:[t.jsx("div",{className:oe.unitLabel,children:t.jsx("span",{children:u(r)})}),t.jsx(Ee,{className:oe.slider,thumbClassName:oe.thumb,trackClassName:oe.track,min:l?m:n,max:l?h:d,step:l?(h-m)/30:i,value:x,onAfterChange:_,withTracks:!0,pearling:!l,minDistance:l?0:.1}),t.jsxs("div",{className:oe.labels,children:[t.jsx("span",{children:l?new Date(x[0]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):x[0]}),t.jsx("span",{children:l?new Date(x[1]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):x[1]})]})]})};kt.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 ds="_tematicalFiltersInputContainer_1vm1r_2",us="_inputTypeContainer_1vm1r_2",ps="_checkboxContainer_1vm1r_28",ms="_absoluteSliderContainer_1vm1r_37",ke={tematicalFiltersInputContainer:ds,inputTypeContainer:us,checkboxContainer:ps,absoluteSliderContainer:ms},Ue=({indicator:n,activeColor:d})=>{const[i,o]=b.useState(),{type:s,name:r,values:c,minValue:a,maxValue:l,unit:u,step:m,disabled:h,isDate:x}=n||{},C=b.useMemo(()=>s=="cat"||i=="cat",[i,s]),_=b.useMemo(()=>s=="abs"||i=="abs",[i,s]),{tematicalFiltersSelected:y,selectedIndicator:f,fontColor:p,inputsColor:g}=L(w=>w),j=w=>{if(w){const{min:k,max:S,valueClicked:N,allValues:$}=w||{},{code:M,type:P,source:B}=n||{},R=_?"abs":C?"cat":"both";let q=M[0];P=="both"&&(q=R=="cat"?M[1]:M[0]),R=="cat"?L.setState(X=>{let U=X.tematicalFiltersSelected.find(A=>A.code===q);if(U){let A=[U.values];return U.values.includes(N)?A=U.values.filter(O=>O!==N):A=[...U.values,N],A.length==$.length?{tematicalFiltersSelected:X.tematicalFiltersSelected.filter(O=>O.code!==q)}:{tematicalFiltersSelected:X.tematicalFiltersSelected.map(O=>O.code===q?{...O,values:A}:O)}}else{let A=$.map((O,r2)=>r2);return{tematicalFiltersSelected:[...y,{type:"cat",code:q,values:A.filter(O=>O!==N),name:n.name,source:B,isDate:x}]}}}):R=="abs"&&L.setState(X=>{let U=X.tematicalFiltersSelected.find(A=>A.code===q);if(k==n.minValue&&S==n.maxValue)return{tematicalFiltersSelected:X.tematicalFiltersSelected.filter(A=>A.code!==q)};if(U){let A={...U,min:k,max:S,type:R,isDate:x};return{tematicalFiltersSelected:X.tematicalFiltersSelected.map(O=>O.code===q?A:O)}}else return{tematicalFiltersSelected:[...y,{type:R,code:q,min:k,max:S,name:n.name,source:n.source}]}})}},v=b.useMemo(()=>{const w={};if((y==null?void 0:y.length)>0)for(const k of y)k.type==="cat"?w[k.code]=new Set(k.values):w[k.code]=[k.min,k.max];return w},[y]);return t.jsx("div",{className:ke.tematicalFiltersInputContainer,children:t.jsxs(Q,{titleFontStyles:{fontSize:16,fontWeight:400,opacity:h?.5:1},title:r,isOpen:f==`id${r}`,onClick:()=>{h||L.setState(()=>({selectedIndicator:f==`id${r}`?"":`id${r}`}))},showBottomBar:!1,height:42,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:p,activeColor:d,children:[s=="both"&&t.jsxs("div",{className:ke.inputTypeContainer,style:{color:p},children:[t.jsxs("label",{children:[t.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{o("abs")},style:{marginRight:4,backgroundColor:i=="abs"?g:"white",border:`1.5px solid ${i=="abs"?g:p}`}}),"Absoluto"]}),t.jsxs("label",{children:[t.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{o("cat")},style:{marginRight:4,backgroundColor:i=="cat"?g:"white",border:`1.5px solid ${i=="cat"?g:p}`}}),"Categórico"]})]}),C&&t.jsx("div",{className:ke.checkboxContainer,children:c.map((w,k)=>{var S;return t.jsx(Nt,{onClick:()=>j({valueClicked:k,allValues:c}),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}`)})}),(_||s=="glb")&&t.jsx("div",{className:ke.absoluteSliderContainer,children:t.jsx(kt,{onChange:j,min:a,max:l,unit:u,defaultValue:v[n.code[0]]?v[n.code[0]]:"",isDate:x,step:m})})]})})};Ue.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 St=({subcategory:n,fontColor:d,activeColor:i})=>{const{activeSubcategory:o}=L(c=>c),{name:s,indicators:r}=n||{};return t.jsx(Q,{title:s,isOpen:o==`id${s}`,onClick:()=>{L.setState(c=>({activeSubcategory:c.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((c,a)=>t.jsx(Ue,{indicator:c,fontColor:d,activeColor:i},`indicatorSub-${a}`))})};St.propTypes={subcategory:e.shape({name:e.string,indicators:e.arrayOf(e.shape({name:e.string,value:e.string}))}),activeColor:e.string};const Tt=({category:n,activeColor:d})=>{const{name:i,subcategories:o,indicators:s}=n||{},{activeCategory:r,fontColor:c}=L(a=>a);return n&&t.jsx(Q,{onClick:()=>{L.setState(a=>({activeCategory:r===`id${i}`?"":`id${i}`}))},title:i,isOpen:r===`id${i}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:c,activeColor:d,children:o?o.map((a,l)=>t.jsx(St,{subcategory:a,fontColor:c,activeColor:d},`subcategory-${l}`)):s&&s.map((a,l)=>t.jsx(Ue,{indicator:a,fontColor:c,activeColor:d},`indicator-${l}`))})};Tt.propTypes={category:e.shape({name:e.string.isRequired,subcategories:e.array,indicators:e.array}),activeColor:e.string};const $t=({indicators:n,isOpen:d=!0,title:i,fontColor:o="#605B56",inputsColor:s="#605B56",activeColor:r})=>{const{tematicalFiltersSelected:c,activeFiltersType:a}=L(m=>m),{t:l}=T.useTranslation();b.useEffect(()=>{},[c]),b.useEffect(()=>{o&&L.setState(()=>({fontColor:o}))},[o]),b.useEffect(()=>{s&&L.setState(()=>({inputsColor:s}))},[s]);const u=()=>{a=="tematical"?L.setState(()=>({activeFiltersType:null})):L.setState(()=>({activeFiltersType:"tematical"}))};return t.jsx(Q,{isOpen:a=="tematical",title:i?l(i):"Tematical filters",color:o,activeColor:r,onClick:u,mainTitle:!0,children:n==null?void 0:n.map((m,h)=>t.jsx(Tt,{category:m,fontColor:o,activeColor:r},`category-${h}`))})};$t.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 hs="_FiltersAmbitContainer_bp6cj_2",gs="_FiltersAmbitHeader_bp6cj_15",Cs="_FiltersAmbitTitle_bp6cj_23",xs="_FiltersAmbitDescription_bp6cj_32",fs="_FiltersAmbitDescriptionTitle_bp6cj_43",bs="_warning_bp6cj_47",ys="_buttonContainer_bp6cj_50",te={FiltersAmbitContainer:hs,FiltersAmbitHeader:gs,FiltersAmbitTitle:Cs,FiltersAmbitDescription:xs,FiltersAmbitDescriptionTitle:fs,warning:bs,buttonContainer:ys},Bt=({ambitName:n,ambitDescription:d,defaultFilters:i,indicators:o,activeColor:s,textColor:r,backgroundColor:c,onChangeAppliedFilters:a,saveAmbit:l,namePlaceholder:u,descPlaceholder:m,filtersTypes:h=["geographical","tematical"],nameRequiredText:x,geoFilterLayers:C=[],onGeoLayersChange:_,onlyFilters:y=!1,descriptionRequired:f=!1})=>{const{t:p}=T.useTranslation(),{tematicalFiltersSelected:g,activeFiltersType:j,geoLayers:v}=L(B=>B),[w,k]=b.useState(n||null),[S,N]=b.useState(d||null),[$,M]=b.useState(!1);b.useEffect(()=>{i&&i.length>0&&L.setState(B=>({tematicalFiltersSelected:i}))},[i]),b.useEffect(()=>{h.includes("geographical")&&v!=C&&L.setState({geoLayers:C})},[C]),b.useEffect(()=>{a(g)},[g]);const P=()=>{f?w&&S?l({name:w,description:S}):M(!0):w?l({name:w,description:S}):M(!0)};return b.useEffect(()=>{h.includes("geographical")&&j!="geographical"&&v.length>0&&L.setState(B=>({geoLayers:B.geoLayers.map(R=>({...R,active:!1}))}))},[j]),t.jsxs("div",{className:te.FiltersAmbitContainer,children:[t.jsxs("div",{children:[!y&&t.jsxs("div",{className:te.FiltersAmbitHeader,children:[t.jsx("div",{className:te.FiltersAmbitTitle,children:t.jsx("input",{type:"text",onChange:B=>{M(!1),k(B.target.value)},value:w,placeholder:p(u)})}),t.jsx("div",{className:te.FiltersAmbitDescription,children:t.jsx("div",{className:te.FiltersAmbitDescriptionTitle,children:t.jsx("textarea",{value:S,onChange:B=>{f&&M(!1),N(B.target.value)},placeholder:p(m)})})})]}),t.jsx(jt,{title:p("applied_filters"),isOpen:j=="applied",textColor:r||"#fff",backgroundColor:c||"#605B5680",activeColor:s}),h.includes("geographical")&&t.jsx(wt,{title:"geo_filters",activeColor:s,onGeoLayersChange:_}),h.includes("tematical")&&t.jsx($t,{indicators:o,inputsColor:s,textColor:r,title:"tematical_filters",activeColor:s})]}),!y&&t.jsxs("div",{className:te.buttonContainer,children:[$&&t.jsx("div",{className:te.warning,children:p(x)}),t.jsx(be,{onClick:()=>P(),children:p("save_ambit")})]})]})};Bt.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 We=({data:n,length:d=700,barHeight:i=25,gap:o=23,fontColor:s="#605B56",leftPadding:r=200,numberOfDivisions:c=7,maxValue:a=null,orientation:l="horizontal",horizontalPadding:u=l=="vertical"?50:20,verticalPadding:m=10})=>{const{xScale:x,yScale:C,ticks:_,height:y,chartWidth:f}=b.useMemo(()=>{if(n&&n.length>0){const p=Ve.max(n,j=>j.value)||1,g=a||p;if(l==="vertical"){const j=n.length*(i+o)+u*2,v=d,k=Ve.scaleLinear().domain([0,g]).range([v-100,m]),S=Array.from({length:c+1},(N,$)=>g/c*$);return{yScale:k,ticks:S,height:v,chartWidth:j}}else{const j=n.length*(i+o)+m*2+50,v=Ve.scaleLinear().domain([0,g]).range([0,d-r]),w=Array.from({length:c+1},(k,S)=>g/c*S);return{xScale:v,ticks:w,height:j,chartWidth:d}}}else return{xScale:null,yScale:null,ticks:[],height:0,chartWidth:d}},[n,d,c,i,o,u,m,a,l]);return l==="vertical"?t.jsx("div",{style:{overflow:"auto"},children:t.jsx("svg",{width:f,height:y,children:t.jsxs("g",{transform:`translate(${u}, 0)`,children:[t.jsx("g",{children:_.map((p,g)=>{const j=C(p);return t.jsxs("g",{children:[t.jsx("line",{x1:0,x2:f-u*2,y1:j,y2:j,stroke:"#ccc"}),t.jsx("text",{x:-10,y:j+4,textAnchor:"end",fontSize:10,fill:s,children:parseInt(p)})]},g)})}),n&&n.length>0&&n.map((p,g)=>{const j=C(0)-C(p.value),v=g*(i+o),w=C(p.value);return t.jsxs("g",{children:[t.jsx("rect",{x:v,y:w,width:i,height:j,fill:p.color,rx:0}),t.jsx("text",{x:v+i/2,y:y-10,textAnchor:"start",fill:s,fontSize:12,transform:`rotate(-90, ${v+i/2}, ${y-10})`,children:p.title})]},g)})]})})}):t.jsx("div",{style:{overflow:"auto"},children:t.jsx("svg",{width:f+u*2,height:y,children:t.jsxs("g",{transform:`translate(0,${o})`,children:[t.jsx("g",{transform:`translate(${r+u}, 0)`,children:_.map((p,g)=>{const j=x(p);return t.jsxs("g",{transform:`translate(${j}, 0)`,children:[t.jsx("line",{y1:0,y2:y-50-o*2,stroke:"#ccc"}),t.jsx("text",{y:y-50-o,textAnchor:"middle",fontSize:10,fill:s,children:parseInt(p)})]},g)})}),n&&n.length>0&&n.map((p,g)=>{const j=x(p.value),v=g*(i+o);return t.jsxs("g",{transform:`translate(${r+u}, ${v})`,children:[t.jsx("text",{x:-24,y:i/2+5,textAnchor:"end",fill:s,children:p.title}),t.jsx("rect",{width:j,height:i,fill:p.color,rx:0})]},g)})]})})})};We.propTypes={data:e.arrayOf(e.shape({title:e.string,value:e.number,color:e.string})),length:e.number,barHeight:e.number,gap:e.number,verticalPadding:e.number,horizontalPadding:e.number,numberOfDivisions:e.number,fontColor:e.string,leftPadding:e.number,maxValue:e.number,orientation:e.oneOf(["horizontal","vertical"])};const _s="_graphicContainer_c9zrg_2",vs="_titleContainer_c9zrg_14",ot={graphicContainer:_s,titleContainer:vs},Lt=({data:n,graphLength:d=700,containerStyle:i,borderColor:o="#605B56",title:s="Graphic Title",fontColor:r="#605B56",maxValue:c=null,numberOfDivisions:a=7,leftPadding:l=-200,orientation:u="horizontal"})=>{const{t:m}=T.useTranslation();return t.jsxs("div",{className:ot.graphicContainer,style:{...i||{},border:`1.5px solid ${o}`,paddingBottom:40},children:[t.jsx("div",{className:ot.titleContainer,children:t.jsx("h2",{children:m(s)})}),t.jsx(We,{data:n,length:d,fontColor:r,maxValue:c,numberOfDivisions:a,leftPadding:l,orientation:u})]})};Lt.propTypes={data:e.arrayOf(e.shape({color:e.string.isRequired,value:e.number.isRequired,title:e.string.isRequired})),borderColor:e.string,title:e.string,graphLength:e.number,containerStyle:e.object,fontColor:e.string,maxValue:e.number,numberOfDivisions:e.number,leftPadding:e.number};const js="_indicatorsCategory_arwy3_2",ws="_title_arwy3_5",Ns="_list_arwy3_13",Se={indicatorsCategory:js,title:ws,list:Ns},rt="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23605B56'/%3e%3c/svg%3e",ks="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23ffffff'/%3e%3c/svg%3e",Ss="_indicatorContainer_17b40_2",Ts="_indicatorNameContainer_17b40_11",$s="_dot_17b40_17",Bs="_indicatorName_17b40_11",Ls="_switchExternalContainer_17b40_31",Ms="_switchType_17b40_39",Vs="_switchTypeOptions_17b40_43",Ds="_optionContainer_17b40_54",Fs="_customRadious_17b40_64",As="_optionText_17b40_71",F={indicatorContainer:Ss,indicatorNameContainer:Ts,dot:$s,indicatorName:Bs,switchExternalContainer:Ls,switchType:Ms,switchTypeOptions:Vs,optionContainer:Ds,customRadious:Fs,optionText:As},Ge=({indicator:n,values:d=[],activeColor:i,defaultColor:o="#92898A",activeIndicator:s,activeIndicatorType:r,onClickIndicator:c,multiple:a=!1,onChangeType:l})=>{const{t:u}=T.useTranslation(),{name:m,type:h,disabled:x}=n;console.log(rt);const[C,_]=b.useState(!1);b.useEffect(()=>{s&&_(a?s.some(p=>p.name==String(m)):s.name==m)},[s]);const y=()=>t.jsx("div",{className:F.switchExternalContainer,children:t.jsx("div",{className:F.switchType,children:t.jsxs("div",{className:F.switchTypeOptions,children:[t.jsxs("div",{className:F.optionContainer,onClick:()=>l("cat"),children:[t.jsx("span",{className:`${F.customRadious}`,style:{backgroundColor:r==="cat"?i:"transparent",borderColor:r==="cat"?i:o}}),t.jsx("h4",{className:F.optionText,style:{color:r==="cat"?i:o},children:u("indicators.cat")})]}),t.jsxs("div",{className:F.optionContainer,onClick:()=>l("abs"),children:[t.jsx("span",{className:`${F.customRadious}`,style:{backgroundColor:r==="abs"?i:"transparent",borderColor:r==="abs"?i:o}}),t.jsx("h4",{className:F.optionText,style:{color:r==="abs"?i:o},children:u("indicators.abs")})]})]})})}),f=()=>t.jsx("div",{className:F.switchExternalContainer,children:t.jsx("div",{className:F.switchType,children:t.jsx("div",{className:F.switchTypeOptions,children:d.map((p,g)=>t.jsxs("div",{className:F.optionContainer,children:[t.jsx("span",{className:F.customRadious}),t.jsx("h4",{children:u(p.unit)})]},g))})})});return t.jsxs("div",{className:F.indicatorContainer,children:[t.jsxs("div",{className:F.indicatorNameContainer,onClick:()=>!x&&c({indicator:n}),children:[t.jsx("div",{style:{border:C?`1px solid ${i}`:`1px solid ${o}`,opacity:x?.5:1,backgroundColor:C?i:"transparent"},className:F.dot,children:a&&t.jsx("img",{src:C?ks:rt,alt:""})}),t.jsx("h4",{className:F.indicatorName,style:{color:C?i:o,opacity:x?.5:1},children:t.jsx(T.Trans,{i18nKey:m,components:{sup:t.jsx("sup",{})},shouldUnescape:!0})})]}),(s==null?void 0:s.name)===m&&h==="both"&&t.jsx("div",{children:y()}),(s==null?void 0:s.name)===m&&h==="twoUnits"&&t.jsx("div",{children:f()})]})};Ge.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 Is="_indicatorsSubCategory_1nuug_2",Os="_list_1nuug_11",at={indicatorsSubCategory:Is,list:Os},Mt=({subcName:n,indicators:d,defaultColor:i,activeColor:o,activeSubCategory:s,onClickSubCategory:r,id:c,activeIndicator:a,onClickIndicator:l,multiple:u,activeIndicatorType:m,onChangeType:h})=>{const{t:x}=T.useTranslation(),[C,_]=b.useState(!1);return b.useEffect(()=>{_(s==c)},[s,c]),t.jsxs(Ke.motion.div,{className:at.indicatorsSubCategory,initial:{height:"43px"},animate:{height:C?"auto":"43px"},transition:{duration:.4},children:[t.jsx("button",{onClick:()=>r(c),children:t.jsxs("h3",{style:{color:C?o:i},children:[t.jsx("span",{style:{color:C?o:i},children:C?"-":"+"}),t.jsx("span",{style:{color:C?o:i},children:x(n)})]})}),d&&t.jsx("div",{className:at.list,children:d==null?void 0:d.map((y,f)=>t.jsx(Ge,{indicator:y,defaultColor:i,activeColor:o,activeIndicator:a,onClickIndicator:l,multiple:u,activeIndicatorType:m,onChangeType:h},"indicator"+f))})]})};Mt.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:c,onClickSubCategory:a,activeIndicator:l,onClickIndicator:u,multiple:m,activeIndicatorType:h,onChangeType:x})=>{var f;const{t:C}=T.useTranslation(),[_,y]=b.useState(!1);return b.useEffect(()=>{y(r===d)},[r,d]),t.jsxs(Ke.motion.div,{className:Se.indicatorsCategory,initial:{height:"53px"},animate:{height:_?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:_?`1px solid ${i}`:"0px",marginBottom:_?"20px":"0px"},children:[t.jsxs("h2",{className:`${Se.title}`,onClick:()=>s(d),children:[t.jsx("span",{className:Se.plus,style:{color:_?i:o},children:_?"-":"+"}),t.jsx("span",{style:{color:_?i:o},children:C(n.name)})]}),n.subcategories?n.subcategories.map(({name:p,subcategory:g,indicators:j},v)=>t.jsx(Mt,{id:g,activeSubCategory:c,subcName:p,onClickSubCategory:a,activeIndicator:l,onClickIndicator:u,multiple:m,activeColor:i,defaultColor:o,indicators:j,activeIndicatorType:h,onChangeType:x},`subcKey ${v}`)):t.jsx("div",{className:Se.list,children:(f=n.indicators)==null?void 0:f.map((p,g)=>t.jsx(Ge,{indicator:p,values:p.type=="twoUnits"&&p.values,activeColor:i,defaultColor:o,activeIndicator:l,onClickIndicator:u,multiple:m,activeIndicatorType:h,onChangeType:x},`indicator${g}`))})]})};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 Rs="_indicatorsList_13b3m_2",qs="_title_13b3m_6",lt={indicatorsList:Rs,title:qs},Dt=({indicators:n,activeColor:d,defaultColor:i="#92898A",onChange:o,multiple:s=!1,defaultValue:r=null,changeIndType:c,activeIndicatorType:a})=>{const{t:l}=T.useTranslation(),[u,m]=b.useState(),[h,x]=b.useState(),[C,_]=b.useState(),y=v=>{m(u==v?null:v)},f=v=>{x(h==v?null:v)},p=({indicator:v})=>{g(v)},g=v=>{if(!s)_((C==null?void 0:C.name)==v.name?null:v);else{let w=C&&C.length>0?[...C]:[];_(w!=null&&w.some(k=>k.name==v.name)?w.filter(k=>k.name!=String(v.name)):[...w,v]),v.type=="both"&&c("cat")}};b.useEffect(()=>{o&&typeof o=="function"&&C&&o({activeIndicator:C})},[C]),b.useLayoutEffect(()=>{if(r&&!C)if(s&&r&&Array.isArray(r)){let v=C&&C.length>0?[...C]:[];_([...v,...r]),j(r[0].name)}else g(r),j(r.name)},[]);const j=v=>{const w=n.find(k=>{if(k.subcategories){let S=k.subcategories.find(N=>N.indicators.find($=>$.name==v));if(S)return x(S.subcategory),S}else return k.indicators.some(S=>S.name==v)});w&&m(w.category)};return t.jsxs("div",{className:lt.indicatorsList,children:[t.jsx("h2",{className:lt.title,style:{color:i},children:l("indicators.indicators")}),n.map((v,w)=>t.jsx(Vt,{id:v.category,cat:v,onClickCategory:y,activeCategory:u,onClickSubCategory:f,activeSubCategory:h,onClickIndicator:p,activeIndicator:C,activeColor:d,defaultColor:i,multiple:s,onChange:o,onChangeType:c,activeIndicatorType:a},`categoryKey${w}`))]})};Dt.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 Es="_langSelector_o9enq_2",Ps="_currentLang_o9enq_14",Zs="_arrow_o9enq_26",zs="_prevImg_o9enq_29",Hs="_langMenu_o9enq_33",re={langSelector:Es,currentLang:Ps,arrow:Zs,prevImg:zs,langMenu:Hs},Ft=({langs:n,arrow:d,imgPrev:i})=>{const[o,s]=b.useState(!1),{i18n:r}=T.useTranslation(),c=n.find(l=>l.code==r.language),a=l=>{r.changeLanguage(l),s(!1)};return t.jsxs("div",{className:re.langSelector,children:[t.jsxs("div",{className:re.currentLang,onClick:()=>{s(!o)},children:[i&&t.jsx("img",{className:re.prevImg,src:i}),(c==null?void 0:c.titleSelected)||(c==null?void 0:c.title),t.jsx("img",{src:d,className:re.arrow})]}),o&&t.jsx("div",{className:re.langMenu,children:n.map(l=>t.jsx("button",{className:(c==null?void 0:c.code)==l.code?re.active:"",onClick:()=>a(l.code),children:l.title},l.code))})]})};Ft.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 Ks="_legendContainer_qs4x9_3",Us="_closeButton_qs4x9_31",Ws="_titleContainer_qs4x9_59",Gs="_infoContainer_qs4x9_65",Ys="_titleLegendList_qs4x9_76",Qs="_legendListContainer_qs4x9_82",Xs="_gridContainer_qs4x9_82",Js="_elementLegendContainer_qs4x9_88",e0="_colorDot_qs4x9_94",t0="_absoluteValueContainer_qs4x9_100",s0="_absoluteValueColor_qs4x9_103",n0="_absoluteValueText_qs4x9_108",i0="_noDataContainer_qs4x9_120",o0="_noData_qs4x9_120",r0="_moreInfoContainer_qs4x9_141",D={legendContainer:Ks,closeButton:Us,titleContainer:Ws,infoContainer:Gs,titleLegendList:Ys,legendListContainer:Qs,gridContainer:Xs,elementLegendContainer:Js,colorDot:e0,absoluteValueContainer:t0,absoluteValueColor:s0,absoluteValueText:n0,noDataContainer:i0,noData:o0,moreInfoContainer:r0},At=({containerStyles:n,title:d,infoList:i,legendList:o,legendListTitle:s,absoluteValue:r,onClickMoreInfo:c,buttonTitle:a,onClickClose:l})=>{const{t:u}=T.useTranslation();return t.jsxs("div",{style:n?{...n}:{},className:`${D.legendContainer}`,children:[t.jsx("button",{className:D.closeButton,onClick:l}),d&&t.jsx("div",{className:D.titleContainer,style:{marginBottom:(!i||i.length==0)&&"15px"},children:t.jsx("h2",{children:d})}),i&&i.length>0&&t.jsx("div",{className:D.infoContainer,children:t.jsx("ul",{children:i.map(({title:m,value:h})=>t.jsxs("li",{children:[t.jsx("h3",{className:D.title,children:`${m}:`}),t.jsxs("span",{className:D.value,children:[" ",h]})]},d))})}),t.jsx("h3",{className:D.titleLegendList,style:{marginTop:i&&i.length>0&&"30px"},children:s&&t.jsx(T.Trans,{i18nKey:s,components:{sup:t.jsx("sup",{})},shouldUnescape:!0})}),t.jsxs("div",{className:D.legendListContainer,children:[r?t.jsxs("div",{className:D.absoluteValueContainer,children:[t.jsx("div",{className:D.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${r.maxColor} 0%, ${r.midColor?`${r.midColor} 50%,`:""} ${r.minColor} 100%)`}}),t.jsxs("div",{className:D.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:D.gridContainer,children:o.map(({title:m,color:h})=>t.jsxs("div",{className:D.elementLegendContainer,children:[t.jsx("div",{className:D.colorDot,style:{backgroundColor:h}}),t.jsxs("div",{className:D.titleLegendElement,children:[u(m)," "]})]},d))}),r.noDataColor&&t.jsxs("div",{className:D.noDataContainer,children:[t.jsx("div",{className:D.noData,style:{background:r.noDataColor}}),t.jsx("div",{className:D.absoluteValueText,children:t.jsx("span",{children:u(r.noDataText)})})]})]}),c&&t.jsx("button",{className:D.moreInfoContainer,onClick:c,children:a||u("moreInformation")})]})};At.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 a0="_logo_1ewa6_2",ct={logo:a0},It=({src:n,alt:d,href:i})=>{const{t:o}=T.useTranslation(),s=t.jsx("img",{src:n,alt:o(d)});return i?t.jsx("div",{className:ct.logo,children:t.jsx("a",{href:i,children:s})}):t.jsx("div",{className:ct.logo,children:s})};It.propTypes={src:e.string.isRequired,alt:e.string.isRequired,href:e.string,className:e.string};const l0="_mapContainer_84pkf_2",c0={mapContainer:l0};l2.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const Ot=({initialView:n={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:d=17,minZoom:i=8,mapStyle:o,firstSymbolLayer:s,cssProps:r="",onClick:c="",interactiveLayers:a=[],popUp:l=!1,sources:u=[],layers:m=[]})=>{const h=b.useRef(),[x,C]=b.useState(null),_=c2.useSelector(y=>y.mapState.showTexts);return b.useEffect(()=>{if(h.current){const y=h.current.getMap();y.getStyle().layers.map(p=>{p.type=="symbol"&&p.id!="professionals"&&(_?y.setLayoutProperty(p.id,"visibility","visible"):y.setLayoutProperty(p.id,"visibility","none"))})}},[_]),t.jsx("div",{className:`${c0.mapContainer}`,style:r,children:t.jsxs(ue,{initialViewState:n,ref:h,hash:!1,maxZoom:d,minZoom:i,mapStyle:o,onClick:c,interactiveLayerIds:a,children:[u.length&&u.map((y,f)=>t.jsx(ue.Source,{...y,children:m.length&&m.map((p,g)=>{if(p.sourceId==y.id)return t.jsx(ue.Layer,{...p.layer,beforeId:s},g)})},f)),t.jsx(ue.NavigationControl,{position:"bottom-right",visualizePitch:!0}),l&&x&&t.jsx(ue.Popup,{longitude:l.longitude,latitude:l.latitude,anchor:l.anchor,onClose:()=>C(null),children:l.content})]})})};Ot.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 d0="_mapContainer_b0pyr_3",u0={mapContainer:d0},p0="_FeaturePopUp_mt8l5_2",m0="_title_mt8l5_9",dt={FeaturePopUp:p0,title:m0},h0=({props:n})=>{const{t:d}=T.useTranslation();return t.jsx("div",{className:dt.FeaturePopUp,children:n.map(i=>t.jsxs("p",{children:[t.jsxs("span",{className:dt.title,children:[t.jsx(T.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)]})]}))})},Rt=({initialView:n={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:d=17,minZoom:i=8,mapStyle:o,firstSymbolLayer:s,cssProps:r={},onClick:c="",interactiveLayers:a=[],sources:l=[],layers:u=[],popUpParams:m,onClosePopUp:h,showTexts:x,hash:C=!1})=>{const _=b.useRef();return b.useEffect(()=>{if(_.current){const y=_.current.getMap();y.getStyle().layers.map(p=>{p.type=="symbol"&&p.id!="professionals"&&(x?y.setLayoutProperty(p.id,"visibility","visible"):y.setLayoutProperty(p.id,"visibility","none"))})}},[x]),b.useEffect(()=>{let y=new d2.Protocol;return Me.addProtocol("pmtiles",y.tile),()=>{Me.removeProtocol("pmtiles")}},[]),t.jsx("div",{className:`${u0.mapContainer}`,style:r&&r,children:t.jsxs(pe,{mapLib:Me,initialViewState:n,ref:_,hash:C,maxZoom:d,minZoom:i,mapStyle:o,onClick:c,interactiveLayerIds:a,children:[l.length&&l.map((y,f)=>t.jsx(pe.Source,{...y,children:u.length&&u.map((p,g)=>{if(p.sourceId==y.id)return t.jsx(pe.Layer,{...p.layer,beforeId:s,filter:p.filters?p.filters:["all"],layout:{visibility:p.layer.visibility||"visible"}},g)})},f)),t.jsx(pe.NavigationControl,{position:"bottom-right",visualizePitch:!0}),m&&t.jsx(pe.Popup,{longitude:m.lng,latitude:m.lat,onClose:h,children:t.jsx(h0,{props:m.props})})]})})};Rt.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,visibility:e.string}),filters:e.array})),showTexts:e.bool,popUpParams:e.object,onClosePopUp:e.func};const g0="_sectionBar_1egwc_2",C0="_leftContent_1egwc_14",x0="_textContainer_1egwc_20",f0="_title_1egwc_27",b0="_subtitle_1egwc_33",y0="_rightContent_1egwc_38",se={sectionBar:g0,leftContent:C0,textContainer:x0,title:f0,subtitle:b0,rightContent:y0},qt=({leftIcon:n,title:d,subtitle:i,rightContent:o,mainColor:s,width:r,borderTop:c=!1})=>{const{t:a}=T.useTranslation();return t.jsxs("div",{className:se.sectionBar,style:{width:r&&r,borderTop:c?"1px solid #000":"0px"},children:[t.jsxs("div",{className:se.leftContent,children:[n&&t.jsx("img",{src:n,alt:"Icono",className:se.icon}),t.jsxs("div",{className:se.textContainer,children:[t.jsx("div",{className:se.title,children:a(d)}),i&&t.jsx("div",{className:se.subtitle,children:i})]})]}),t.jsx("div",{className:se.rightContent,children:o})]})};qt.propTypes={leftIcon:e.string,title:e.string.isRequired,subtitle:e.string,rightContent:e.node,mainColor:e.string,width:e.oneOfType([e.string,e.number]),borderTop:e.bool};const _0=u2.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:Qi,setYear:Xi,setActiveIndicatorKey:Ji,setActiveIndicatorType:e1,setActiveIndicatorUnit:t1}=_0.actions,v0="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",j0="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",w0="_slider_1prh1_2",N0="_playButton_1prh1_14",k0="_sliderOpen_1prh1_25",S0="_sliderResults_1prh1_29",he={slider:w0,playButton:N0,sliderOpen:k0,sliderResults:S0},Et=({onResults:n=!1,defaultYear:d=2025,firstYear:i=2025,lastYear:o=2050,zIndex:s=10,rightBarOpen:r=!1,onChange:c=a=>{console.log("year changed to ",a)}})=>{const[a,l]=b.useState(d),u=(p,g)=>{l(g),c(g)},[m,h]=b.useState(!1),x=()=>{h(!0)},C=()=>{h(!1)};((p,g)=>{const j=b.useRef();b.useEffect(()=>{j.current=p},[p]),b.useEffect(()=>{function v(){j.current()}{let w=setInterval(v,g);return()=>clearInterval(w)}},[g])})(()=>{m&&(a!=2050?(l(a+1),c(a+1)):(l(2025),c(2025)))},1e3);const y=tt.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}}),f=[{label:"",value:2025},{label:"",value:2032},{label:"",value:2041},{label:"",value:2050}];return t.jsx(m2.ThemeProvider,{theme:y,children:t.jsxs(tt.Box,{sx:{width:400},className:`${n?he.sliderResults:he.slider} ${r?he.sliderOpen:""}`,style:{zIndex:s},children:[i,t.jsx(p2,{"aria-label":"TimeSlider",value:a,valueLabelDisplay:"on",step:1,marks:f,min:i,max:o,onChange:u,color:"primary",size:"small"}),o,!m&&t.jsx("button",{className:he.playButton,onClick:x,children:t.jsx("img",{src:v0,alt:"Play"})}),m&&t.jsx("button",{className:he.playButton,onClick:C,children:t.jsx("img",{src:j0,alt:"Pause"})})]})})};Et.propTypes={defaultYear:e.number,onResults:e.bool,firstYear:e.number,lastYear:e.number,zIndex:e.number,rightBarOpen:e.bool,onChange:e.func};const T0="_TopNavMenuContainer_12mp4_2",$0="_topNavOptions_12mp4_13",B0="_active_12mp4_27",Ae={TopNavMenuContainer:T0,topNavOptions:$0,active:B0},Pt=({options:n=[],containerStyles:d,borderColor:i="red",textColor:o="white",onChangeNavLink:s=r=>{console.log("Changed NavLink",r)}})=>{const{t:r}=T.useTranslation();return t.jsx("div",{className:Ae.TopNavMenuContainer,style:{...d},children:n.map((c,a)=>t.jsx(ft.NavLink,{to:c.url,className:({isActive:l})=>`${Ae.topNavOptions} ${l?Ae.active:""} `,onClick:()=>s(c.url),style:({isActive:l})=>({color:o,borderBottom:l?`5px solid ${i}`:"5px solid transparent"}),children:r(c.name)},a))})};Pt.propTypes={options:e.arrayOf(e.object),cssProps:e.shape({borderColor:e.string.isRequired,textColor:e.string.isRequired})};const L0="_LogInButton_1vxj5_2",M0={LogInButton:L0},Zt=({cssClass:n,notLoggedInLabel:d="Log in",loggedInLabel:i="Log out",containerStyles:o,userName:s="",isLoggedIn:r=!1,onClickLogIn:c=()=>{console.log("Login clicked")},onClickLogOut:a=()=>{console.log("Logout clicked")}})=>{const{t:l}=T.useTranslation();return t.jsx("div",{style:{...o},className:`${M0.LogInButton} link ${n}`,onClick:r?a:c,children:r?s||l(i):l(d)})};Zt.propTypes={cssClass:e.string,notLoggedInLabel:e.string,loggedInLabel:e.string,containerStyles:e.object,userName:e.string,isLoggedIn:e.bool};const V0="_elementSelector_1ox68_2",D0="_header_1ox68_14",F0="_nameDateContainer_1ox68_24",A0="_elementName_1ox68_40",I0="_elementDate_1ox68_54",O0="_buttonsContainer_1ox68_68",R0="_elementListContainer_1ox68_77",q0="_newElementButtonContainer_1ox68_81",z={elementSelector:V0,header:D0,nameDateContainer:F0,elementName:A0,elementDate:I0,buttonsContainer:O0,elementListContainer:R0,newElementButtonContainer:q0},E0="_listElement_1evjl_2",P0="_elementNameDate_1evjl_18",Z0="_elementNameContainer_1evjl_28",z0="_elementName_1evjl_18",H0="_elementDate_1evjl_43",K0="_elementButtons_1evjl_46",U0="_moreInfoContainer_1evjl_69",W0="_moreInfo_1evjl_69",Z={listElement:E0,elementNameDate:P0,elementNameContainer:Z0,elementName:z0,elementDate:H0,elementButtons:K0,break:"_break_1evjl_64",moreInfoContainer:U0,moreInfo:W0},G0="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",Y0="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",Q0="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",X0="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",J0="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 ut;function Pe(){return Pe=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},Pe.apply(null,arguments)}var en=function(d){return ce.createElement("svg",Pe({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},d),ut||(ut=ce.createElement("g",{fill:"currentColor"},ce.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"}),ce.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 tn="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",zt=({listelement:n,onClickElement:d,isActive:i,activeColor:o,fontColor:s,moreInfo:r,columns:c,elementButtons:a,processTooltip:l,defaultTooltip:u,showEye:m=!0})=>{const{name:h,created_at:x,id:C,isBeingProcessed:_}=n,[y,f]=b.useState(!1),{t:p}=T.useTranslation();return t.jsxs("div",{className:Z.listElement,style:{borderBottom:`1px solid ${s}`},children:[t.jsx("div",{className:Z.elementNameDate,onClick:()=>d(C),children:Object.keys(c).map(g=>g==="name"?t.jsx("div",{className:Z.elementNameContainer,children:t.jsxs("div",{className:Z.elementName,children:[m&&(i?t.jsx(en,{style:{color:o,marginRight:9}}):t.jsx("img",{style:{marginRight:9},src:tn,alt:"eye"})),t.jsx("span",{style:{color:i?o:s},children:h})]})}):g=="data"?t.jsx("div",{className:Z.elementDate,children:x?new Date(x).toLocaleDateString():""}):t.jsx("div",{className:Z.elementDate,children:n[g]}))}),t.jsxs("div",{className:Z.elementButtons,children:[n.processing&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("img",{src:X0}),t.jsx(Y,{text:l,position:"left"})]}),a.filter&&!n.is_default&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:()=>a.filter.onclick(n),children:t.jsx("img",{src:Q0})}),t.jsx(Y,{text:a.filter.tooltiptext,position:"left"})]}),a.copy&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:()=>a.copy.onclick(n),children:t.jsx("img",{src:Y0})}),t.jsx(Y,{text:a.copy.tooltiptext,position:"left"})]}),a.trash&&!n.is_default&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:()=>a.trash.onclick(n),children:t.jsx("img",{src:G0})}),t.jsx(Y,{text:a.trash.tooltiptext,position:"left"})]}),n.is_default&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("img",{src:J0}),t.jsx(Y,{text:u,position:"left"})]})]}),r&&t.jsx("div",{className:Z.break}),r&&t.jsxs("div",{className:Z.moreInfoContainer,children:[t.jsxs("div",{className:Z.moreInfo,onClick:()=>f(!y),children:[t.jsx("span",{children:y?"-":"+"}),p(r.label)]}),r&&y&&t.jsx("div",{className:Z.moreInfoInfo,children:n[r.info]})]})]})};zt.propTypes={listelement:e.shape({name:e.string.isRequired,created_at:e.string,id:e.any.isRequired,isBeingProcessed:e.bool}).isRequired,onClickElement:e.func.isRequired,isActive:e.bool,activeColor:e.string,fontColor:e.string,moreInfo:e.any,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 pt="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",Ht=({elementsList:n,activeElementId:d,fontColor:i="#605B56",activeColor:o,buttonContainerStyles:s={},containerStyles:r={},newElementButton:c,onClickElement:a=_=>console.log(`OnCLickElement: ${_}`),columns:l,elementButtons:u,moreInfo:m=!1,processTooltip:h,defaultTooltip:x,showEye:C=!0})=>{const{t:_}=T.useTranslation(),[y,f]=b.useState(n);b.useEffect(()=>{n&&f(n)},[n]);const p=g=>{if(y&&y.length>0){let j=[...y];j.sort((v,w)=>v[g].localeCompare(w[g])),f(j)}};return t.jsxs("div",{className:z.elementSelector,style:{color:i,...r},children:[t.jsxs("div",{className:z.header,style:{borderBottom:`1px solid ${i}`},children:[t.jsx("div",{className:z.nameDateContainer,children:Object.keys(l).map(g=>g==="name"?t.jsx("div",{className:z.elementName,children:t.jsxs("button",{onClick:()=>p("name"),children:[t.jsx("span",{children:_(l.name)}),t.jsx("img",{src:pt,alt:"order arrow"})]})},g):g==="data"?t.jsx("div",{className:z.elementDate,children:t.jsxs("button",{onClick:()=>p("date"),children:[t.jsx("span",{children:_(l.data)}),t.jsx("img",{src:pt,alt:"order arrow"})]})},g):t.jsx("div",{className:z.elementDate,children:t.jsx("span",{children:_(l[g])})},g))}),t.jsx("div",{className:z.buttonsContainer})]}),t.jsx("div",{className:z.elementListContainer,children:y&&y.length>0&&y.map(g=>t.jsx(zt,{isActive:d==g.id,listelement:g,fontColor:i,activeColor:o,onClickElement:a,columns:l,elementButtons:u,moreInfo:m,processTooltip:h,defaultTooltip:x,showEye:C},`elementKey${g.id}`))}),c&&t.jsx("div",{className:z.newElementButtonContainer,children:t.jsx(be,{style:{...s},onClick:c.onClick,borderColor:"grey",disabled:c.disabled||!1,children:_(c.label)})})]})};Ht.propTypes={elementsList:e.arrayOf(e.shape({name:e.string.isRequired,created_at:e.string,id:e.any.isRequired})).isRequired,activeElementId:e.any,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 sn="_formContainer_asv64_2",nn="_categorySelectorContainer_asv64_11",on="_formObjectContainer_asv64_15",rn="_buttonContainer_asv64_26",ge={formContainer:sn,categorySelectorContainer:nn,formObjectContainer:on,buttonContainer:rn},Ce={text:"text",password:"password",radioList:"radioList",select:"select"};var an=n=>n.type==="checkbox",ln=n=>n instanceof Date,Kt=n=>n==null;const cn=n=>typeof n=="object";var ye=n=>!Kt(n)&&!Array.isArray(n)&&cn(n)&&!ln(n),dn=n=>ye(n)&&n.target?an(n.target)?n.target.checked:n.target.value:n,un=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,pn=(n,d)=>n.has(un(d)),mn=n=>{const d=n.constructor&&n.constructor.prototype;return ye(d)&&d.hasOwnProperty("isPrototypeOf")},hn=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ut(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(!(hn&&(n instanceof Blob||o))&&(i||ye(n)))if(d=i?[]:{},!i&&!mn(n))d=n;else for(const s in n)n.hasOwnProperty(s)&&(d[s]=Ut(n[s]));else return n;return d}var Wt=n=>/^\w*$/.test(n),Ze=n=>n===void 0,gn=n=>Array.isArray(n)?n.filter(Boolean):[],Gt=n=>gn(n.replace(/["|']|\]/g,"").split(/\.|\[/)),I=(n,d,i)=>{if(!d||!ye(n))return i;const o=(Wt(d)?[d]:Gt(d)).reduce((s,r)=>Kt(s)?s:s[r],n);return Ze(o)||o===n?Ze(n[d])?i:n[d]:o},Ie=n=>typeof n=="boolean",mt=(n,d,i)=>{let o=-1;const s=Wt(d)?[d]:Gt(d),r=s.length,c=r-1;for(;++o<r;){const a=s[o];let l=i;if(o!==c){const u=n[a];l=ye(u)||Array.isArray(u)?u:isNaN(+s[o+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;n[a]=l,n=n[a]}};const ht={BLUR:"blur",CHANGE:"change"},gt={all:"all"},Yt=b.createContext(null);Yt.displayName="HookFormContext";const Ye=()=>b.useContext(Yt);var Cn=(n,d,i,o=!0)=>{const s={defaultValues:d._defaultValues};for(const r in n)Object.defineProperty(s,r,{get:()=>{const c=r;return d._proxyFormState[c]!==gt.all&&(d._proxyFormState[c]=!o||gt.all),i&&(i[c]=!0),n[c]}});return s};const Qt=typeof window<"u"?ce.useLayoutEffect:ce.useEffect;function xn(n){const d=Ye(),{control:i=d.control,disabled:o,name:s,exact:r}=n||{},[c,a]=b.useState(i._formState),l=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Qt(()=>i._subscribe({name:s,formState:l.current,exact:r,callback:u=>{!o&&a({...i._formState,...u})}}),[s,o,r]),b.useEffect(()=>{l.current.isValid&&i._setValid(!0)},[i]),b.useMemo(()=>Cn(c,i,l.current,!1),[c,i])}var fn=n=>typeof n=="string",bn=(n,d,i,o,s)=>fn(n)?I(i,n,s):Array.isArray(n)?n.map(r=>I(i,r)):i;function yn(n){const d=Ye(),{control:i=d.control,name:o,defaultValue:s,disabled:r,exact:c}=n||{},a=b.useRef(s),[l,u]=b.useState(i._getWatch(o,a.current));return Qt(()=>i._subscribe({name:o,formState:{values:!0},exact:c,callback:m=>!r&&u(bn(o,i._names,m.values||i._formValues,!1,a.current))}),[o,i,r,c]),b.useEffect(()=>i._removeUnmounted()),l}function _n(n){const d=Ye(),{name:i,disabled:o,control:s=d.control,shouldUnregister:r}=n,c=pn(s._names.array,i),a=yn({control:s,name:i,defaultValue:I(s._formValues,i,I(s._defaultValues,i,n.defaultValue)),exact:!0}),l=xn({control:s,name:i,exact:!0}),u=b.useRef(n),m=b.useRef(s.register(i,{...n.rules,value:a,...Ie(n.disabled)?{disabled:n.disabled}:{}})),h=b.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!I(l.errors,i)},isDirty:{enumerable:!0,get:()=>!!I(l.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!I(l.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!I(l.validatingFields,i)},error:{enumerable:!0,get:()=>I(l.errors,i)}}),[l,i]),x=b.useCallback(f=>m.current.onChange({target:{value:dn(f),name:i},type:ht.CHANGE}),[i]),C=b.useCallback(()=>m.current.onBlur({target:{value:I(s._formValues,i),name:i},type:ht.BLUR}),[i,s._formValues]),_=b.useCallback(f=>{const p=I(s._fields,i);p&&f&&(p._f.ref={focus:()=>f.focus&&f.focus(),select:()=>f.select&&f.select(),setCustomValidity:g=>f.setCustomValidity(g),reportValidity:()=>f.reportValidity()})},[s._fields,i]),y=b.useMemo(()=>({name:i,value:a,...Ie(o)||l.disabled?{disabled:l.disabled||o}:{},onChange:x,onBlur:C,ref:_}),[i,o,l.disabled,x,C,_,a]);return b.useEffect(()=>{const f=s._options.shouldUnregister||r;s.register(i,{...u.current.rules,...Ie(u.current.disabled)?{disabled:u.current.disabled}:{}});const p=(g,j)=>{const v=I(s._fields,g);v&&v._f&&(v._f.mount=j)};if(p(i,!0),f){const g=Ut(I(s._options.defaultValues,i));mt(s._defaultValues,i,g),Ze(I(s._formValues,i))&&mt(s._formValues,i,g)}return!c&&s.register(i),()=>{(c?f&&!s._state.action:f)?s.unregister(i):p(i,!1)}},[i,s,c,r]),b.useEffect(()=>{s._setDisabledField({disabled:o,name:i})},[o,i,s]),b.useMemo(()=>({field:y,formState:l,fieldState:h}),[y,l,h])}const _e=n=>n.render(_n(n)),vn="_textInputContainer_1o3iy_2",jn="_labelContainer_1o3iy_5",wn="_inputContainer_1o3iy_8",Nn="_showPasswordButton_1o3iy_14",kn="_forgotPassButton_1o3iy_26",xe={textInputContainer:vn,labelContainer:jn,inputContainer:wn,showPasswordButton:Nn,forgotPassButton:kn},Sn="_errorMessage_1xiyb_2",Tn={errorMessage:Sn},de=({errorMessage:n,errorColor:d="red",containerStyles:i})=>{const{t:o}=T.useTranslation();return t.jsx("div",{className:Tn.errorMessage,style:{color:d,...i},children:n?o(n):""})},$n="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%205763'%3e%3cpath%20id='Vector'%20d='M12.95%200C7.659%200%202.84899%202.3634%200.0832465%206.31776C-0.0277488%206.47963%20-0.0277488%206.68776%200.0832465%206.84962C2.84439%2010.804%207.65437%2013.1628%2012.95%2013.1628C18.2456%2013.1628%2023.0556%2010.804%2025.8168%206.84962C25.9278%206.68775%2025.9278%206.47963%2025.8168%206.31776C23.051%202.36339%2018.241%200%2012.95%200ZM12.95%2010.8132C10.619%2010.8132%208.71812%208.91238%208.71812%206.58139C8.71812%204.25041%2010.619%202.34951%2012.95%202.34951C15.281%202.34951%2017.1819%204.25038%2017.1819%206.58139C17.1819%208.91241%2015.281%2010.8132%2012.95%2010.8132Z'%20fill='white'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%209.88816C14.7777%209.88816%2016.2583%208.40763%2016.2583%206.58129C16.2583%204.75495%2014.7777%203.27441%2012.9514%203.27441C11.1251%203.27441%209.64453%204.75495%209.64453%206.58129C9.64453%208.40763%2011.1251%209.88816%2012.9514%209.88816Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Bn="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%205995'%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='white'%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='white'%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='white'%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='white'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",ve=xt.create(n=>({errorColor:"red"})),ze=({input:n,reactHookFormInstance:d})=>{const{code:i,type:o,label:s,maxLength:r,required:c,validateFunction:a,placeholder:l,errorColor:u="red",width:m=325,onClickForgotPass:h=()=>{console.log("Click on forgot password")},forgotPassLabel:x="forgot-password"}=n,{t:C}=T.useTranslation(),{control:_,trigger:y,clearErrors:f}=d,{errorColor:p}=ve(w=>w),[g,j]=b.useState(!1);b.useRef(c);const v=()=>o?o==="password"&&g?"text":o:"text";return t.jsx(_e,{name:i,control:_,rules:{required:c?`${C(s)} ${C("errorMessages.required")}`:!1,maxLength:r||void 0,validate:a||void 0},render:({field:w,fieldState:k})=>{var S;return t.jsxs("div",{className:xe.textInputContainer,children:[t.jsxs("h3",{className:xe.labelContainer,children:[C(s)," ",c&&t.jsx("label",{style:{color:k.error?u:""},children:"*"})]}),t.jsxs("div",{style:{position:"relative",width:m},className:xe.inputContainer,children:[t.jsx("input",{type:v(),...w,placeholder:l?C(l):"",maxLength:r||void 0}),o=="password"&&t.jsx("button",{onClick:()=>j(!g),type:"button",className:xe.showPasswordButton,children:t.jsx("img",{src:g?Bn:$n,alt:C("show-password")})})]}),o=="password"&&t.jsx("div",{className:xe.forgotPassButton,children:t.jsx("button",{onClick:h,children:C(x)})}),t.jsx(de,{errorMessage:(S=k.error)==null?void 0:S.message,errorColor:p||u})]})}})},Ln="_inputsContainer_10t9s_2",ae={inputsContainer:Ln},Mn="_selectInputContainer_1rj0h_2",Vn="_labelContainer_1rj0h_6",Dn="_inputContainer_1rj0h_9",Fn="_selectInput_1rj0h_2",An="_option_1rj0h_23",In="_dropdownArrow_1rj0h_26",E={selectInputContainer:Mn,labelContainer:Vn,inputContainer:Dn,selectInput:Fn,option:An,dropdownArrow:In},Ct="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",Xt=({input:n,reactHookFormInstance:d,onChange:i})=>{const{code:o,type:s,label:r,maxLength:c,required:a,validateFunction:l,placeholder:u,errorColor:m="red",width:h=325,options:x=[]}=n,{t:C}=T.useTranslation(),{control:_,trigger:y,clearErrors:f}=d||{},{errorColor:p}=ve(v=>v);b.useRef(a);const[g,j]=b.useState(null);return b.useEffect(()=>{g&&i&&i(g)},[g,i]),d?t.jsx(_e,{name:o,control:_,rules:{required:a?`${C(r)} ${C("errorMessages.required")}`:!1,validate:l?v=>{let w=d.getValues();return l(v,w)}:void 0},render:({field:v,fieldState:w})=>{var k;return t.jsxs("div",{className:E.selectInputContainer,children:[r&&t.jsxs("h3",{className:E.labelContainer,children:[C(r)," ",a&&t.jsx("label",{style:{color:w.error?m:""},children:"*"})]}),t.jsxs("div",{className:E.inputContainer,style:{width:h},children:[t.jsxs("select",{...v,onChange:S=>{const N=S.target.value,$=x.every(M=>typeof M.value=="number")?Number(N):N;v.onChange($)},className:E.selectInput,children:[t.jsx("option",{value:"",disabled:!0,hidden:!0,children:C(u||"selectOption")}),x.map((S,N)=>t.jsx("option",{value:S.value,className:E.option,children:C(S.label)},N))]}),t.jsx("img",{src:Ct,alt:"Open",className:E.dropdownArrow})]}),t.jsx(de,{errorMessage:(k=w.error)==null?void 0:k.message,errorColor:p||m})]})}}):t.jsxs("div",{className:E.selectInputContainer,children:[r&&t.jsxs("h3",{className:E.labelContainer,children:[C(r)," ",a&&t.jsx("label",{children:"*"})]}),t.jsxs("div",{className:E.inputContainer,style:{width:h},children:[t.jsxs("select",{value:g||"",onChange:v=>{const w=v.target.value,k=x.every(S=>typeof S.value=="number")?Number(w):w;j(k)},className:E.selectInput,children:[t.jsx("option",{value:"",disabled:!0,hidden:!0,children:C(u||"selectOption")}),x.map((v,w)=>t.jsx("option",{value:v.value,className:E.option,children:C(v.label)},w))]}),t.jsx("img",{src:Ct,alt:"Open",className:E.dropdownArrow})]})]})},On="_radioButtonContainer_1e994_2",Rn="_wholeInputContainer_1e994_5",qn="_questionContainer_1e994_27",En="_radioQuestion_1e994_59",Pn="_inputContainer_1e994_63",Zn="_radioInput_1e994_93",ne={radioButtonContainer:On,wholeInputContainer:Rn,questionContainer:qn,radioQuestion:En,inputContainer:Pn,radioInput:Zn},Jt=({input:n,reactHookFormInstance:d})=>{const{code:i,label:o,required:s,validateFunction:r,errorColor:c="red",options:a=[],multi:l=!1}=n,{t:u}=T.useTranslation(),{control:m,trigger:h,clearErrors:x}=d,{errorColor:C}=ve(f=>f),_=({options:f,onChange:p,actualValue:g})=>{if(l&&g&&g.length>0){let j=g.filter(v=>v!==f);p(j)}},y=({options:f,onChange:p,actualValue:g})=>{l?g&&g.length>0?p([...g,f]):p([f]):p(f)};return b.useRef(s),t.jsx(_e,{control:m,name:i,rules:{validate:f=>s&&(f==null||f==="")?`${u(o)} ${u("errorMessages.required")}`:null},render:({formState:{errors:f},field:{onChange:p,onBlur:g,value:j,ref:v},fieldState:w})=>{var k;return t.jsx("div",{id:i+"id",className:ne.radioButtonContainer,children:t.jsxs("div",{className:ne.wholeInputContainer,children:[o&&t.jsx("div",{className:ne.questionContainer,children:t.jsxs("h3",{htmlFor:i+"id",className:`${ne.radioQuestion} ${s&&ne.required}`,children:[u(o)," ",s&&t.jsx("label",{style:{color:w.error?c:""},children:"*"})]})}),t.jsxs("div",{className:ne.inputContainer,children:[a.map(({label:S,value:N,disabled:$=!1,italicLabel:M},P)=>{const B=j&&l?j.isArray&&(j==null?void 0:j.length)>0&&j.some(R=>R===N):j===N;return t.jsxs("label",{children:[t.jsx("input",{type:"radio",checked:B,onChange:()=>{l?B?_({actualValue:j,options:a,onChange:p}):y({actualValue:j,options:a,onChange:p}):p(N)},className:ne.radioInput}),t.jsx("span",{className:"radio-custom"}),u(S)]},`inputRadio ${P}`)}),t.jsx(de,{errorMessage:(k=w.error)==null?void 0:k.message,errorColor:C||c})]})]})})}})},zn="_rankingSliderContainer_1lekm_2",Hn="_labelContainer_1lekm_6",Kn="_inputContainer_1lekm_10",Un="_slider_1lekm_20",Wn="_thumb_1lekm_27",Gn="_labels_1lekm_37",Yn="_minLabel_1lekm_67",Qn="_maxLabel_1lekm_67",V={rankingSliderContainer:zn,labelContainer:Hn,inputContainer:Kn,slider:Un,thumb:Wn,labels:Gn,minLabel:Yn,maxLabel:Qn},Qe=({input:n,reactHookFormInstance:d,onChange:i})=>{const{code:o,label:s,minValue:r=1,maxValue:c=5,defValue:a=3,thumbColor:l="#B32F5D",required:u,errorColor:m="red",labelWidth:h="300px",sliderWidth:x="300px",minText:C,maxText:_,disabled:y=!1,marks:f=Array.from({length:c-r+1},($,M)=>r+M),showMarksNumber:p=!0}=n,{t:g}=T.useTranslation(),{control:j,trigger:v,clearErrors:w}=d||{};b.useRef(u);const{errorColorForm:k}=ve($=>$),[S,N]=b.useState(a);return d?t.jsx(_e,{name:o,control:j,defaultValue:a,rules:{required:u?`${g(s)} ${g("errorMessages.required")}`:!1},render:({field:$,fieldState:M})=>{var P;return t.jsxs("div",{className:V.rankingSliderContainer,style:{gridTemplateColumns:`${s&&h} ${x}`},children:[s&&t.jsx("p",{className:V.labelContainer,children:g(s)}),t.jsxs("div",{className:V.inputContainer,children:[C&&t.jsx("div",{className:V.minLabel,children:g(C)}),t.jsxs("div",{children:[t.jsx(Ee,{min:r,max:c,step:1,value:$.value??a,onChange:B=>$.onChange(B),marks:!0,className:V.slider,thumbClassName:V.thumb,renderThumb:B=>t.jsx("div",{...B,style:{...B.style,backgroundColor:l}}),trackClassName:V.track,markClassName:V.mark,disabled:y}),f&&t.jsx("div",{className:V.labels,children:f.map(B=>t.jsx("span",{children:p&&B},B))})]}),_&&t.jsx("div",{className:V.maxLabel,children:g(_)})]}),t.jsx(de,{errorMessage:(P=M.error)==null?void 0:P.message,errorColor:k||m})]})}}):t.jsxs("div",{className:V.rankingSliderContainer,style:{gridTemplateColumns:`${s&&h} ${x}`},children:[s&&t.jsx("p",{className:V.labelContainer,children:g(s)}),t.jsxs("div",{className:V.inputContainer,children:[C&&t.jsx("div",{className:V.minLabel,children:g(C)}),t.jsxs("div",{children:[t.jsx(Ee,{min:r,max:c,step:1,value:S,onChange:$=>{N($),i&&i($)},marks:!0,className:V.slider,thumbClassName:V.thumb,renderThumb:$=>t.jsx("div",{...$,style:{...$.style,backgroundColor:l}}),trackClassName:V.track,markClassName:V.mark,disabled:y}),f&&t.jsx("div",{className:V.labels,children:f.map($=>t.jsx("span",{children:p&&$},$))})]}),_&&t.jsx("div",{className:V.maxLabel,children:g(_)})]})]})};Qe.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 fe=({inputs:n,inputContainerStyles:d,reactHookFormInstance:i})=>{console.log("inputs: ",n);const{watch:o}=i,s=o(),r=b.useMemo(()=>n==null?void 0:n.map(c=>{const a=typeof c.required=="function"?c.required(s):c.required;return{...c,required:a}}),[n,s]);return t.jsx("div",{className:ae.inputsContainer,children:r==null?void 0:r.map((c,a)=>{const{inputType:l}=c;switch(l){case Ce.text:return t.jsx("div",{className:ae.inputContainer,style:{...d},children:t.jsx(ze,{input:c,reactHookFormInstance:i})},`${c.code}${a}`);case Ce.password:return t.jsx("div",{className:ae.inputContainer,style:{...d},children:t.jsx(ze,{input:c,reactHookFormInstance:i})},`${c.code}${a}`);case Ce.select:return t.jsx("div",{className:ae.inputContainer,style:{...d},children:t.jsx(Xt,{input:c,reactHookFormInstance:i})},`${c.code}${a}`);case Ce.radioList:return t.jsx("div",{className:ae.inputContainer,style:{...d},children:t.jsx(Jt,{input:c,reactHookFormInstance:i})},`${c.code}${a}`);case Ce.rankingSlider:return t.jsx("div",{className:ae.inputContainer,style:{...d},children:t.jsx(Qe,{input:c,reactHookFormInstance:i})},`${c.code}${a}`);default:return t.jsx("div",{children:t.jsx("h4",{children:"Default"})},`${c.code}${a}`)}})})},Xn="_categorySelector_1t164_2",Jn="_sectionItemActive_1t164_16",ei="_sectionItem_1t164_16",Te={categorySelector:Xn,sectionItemActive:Jn,sectionItem:ei},He=({categories:n,onChange:d,activeCategory:i,activeColor:o,containerStyles:s={}})=>{const{t:r}=T.useTranslation(),c=a=>{d(a)};return t.jsx("div",{className:Te.categorySelector,style:s?{...s}:{},children:n.map((a,l)=>{const{id:u,label:m}=a,h=i==u;return t.jsx("button",{className:`${Te.sectionItem} ${h?Te.sectionItemActive:""}`,type:"button",style:{backgroundColor:h?o:"inherit"},onClick:()=>c(u),children:t.jsx("span",{style:{color:h?"white":"inherit"},className:Te.sectionLabel,children:r(m)})},`keySection${l}`)})})},ti=({reactHookFormInstance:n,formObject:d,CategoryComponent:i,inputContainerStyles:o,generalError:s,errorColor:r="red",submitButtonLabel:c="Submit",submitButtonStyles:a={width:325},showCategorySelector:l=!0,defaultCategory:u=null,categoryLabel:m="Select Category",activeCategory:h=null,activeCategoryColor:x="#b32f5d",onSubmit:C=_=>console.log("Form submitted with: ",_)})=>{const{t:_}=T.useTranslation(),{handleSubmit:y,control:f}=n;b.useEffect(()=>{r&&ve.setState(()=>({errorColor:r}))},[r]);const p=b.useMemo(()=>d?d.filter(N=>N.category).map(N=>{var $;return{id:N.categoryId,label:N.category,hasSubcategories:(($=N.subcategories)==null?void 0:$.length)>0}}):[],[d]),g=N=>{const $=d==null?void 0:d.find(M=>M.categoryId===N);return($==null?void 0:$.subcategories)||[]},[j,v]=b.useState(h||u||null),[w,k]=b.useState(null);b.useEffect(()=>{!j&&p.length>0&&v(p[0].id)},[p,j]),b.useEffect(()=>{const N=g(j);!w&&(N==null?void 0:N.length)>0&&k(N[0].id)},[j,w,d]);const S=(N,$)=>{var M;if(((M=N.subcategories)==null?void 0:M.length)>0){const P=N.subcategories;return t.jsxs("div",{children:[t.jsx("div",{className:ge.categorySelectorContainer,children:t.jsx(He,{activeCategory:w,categories:P,onChange:B=>k(B),activeColor:x})},N.categoryId),P.map((B,R)=>{const q=!w||B.id===w;return i?t.jsx("div",{style:{display:q?"block":"none",width:"100%"},children:t.jsx(i,{title:B.label,children:t.jsx(fe,{inputs:B.inputs,control:f,inputContainerStyles:o,errorColor:r,reactHookFormInstance:n})},B.id)},`${B.id}${R}`):t.jsxs("div",{style:{width:"100%",display:q?"block":"none"},children:[t.jsx("h3",{style:{marginBottom:15},children:_(B.label)}),t.jsx(fe,{inputs:B.inputs,control:f,inputContainerStyles:o,errorColor:r,reactHookFormInstance:n})]},`${B.id}${R}`)})]})}return i?t.jsx(i,{title:N.category,children:t.jsx(fe,{inputs:N.inputs,control:f,inputContainerStyles:o,errorColor:r,reactHookFormInstance:n})},N.categoryId):t.jsxs("div",{style:{width:"100%"},children:[t.jsx("h2",{children:_(N.category)}),t.jsx(fe,{inputs:N.inputs,control:f,inputContainerStyles:o,errorColor:r,reactHookFormInstance:n})]},N.categoryId)};return t.jsxs("form",{className:ge.formContainer,onSubmit:y(C),children:[l&&p.length>0&&t.jsx("div",{className:ge.categorySelectorContainer,children:t.jsx(He,{activeCategory:j,categories:p,onChange:N=>{v(N),k(null)},activeColor:x})}),t.jsx("div",{className:ge.formObjectContainer,children:d==null?void 0:d.map((N,$)=>{const M=N.categoryId===j;return N.category&&!M?null:N.category&&M?t.jsx("div",{style:{width:"100%"},children:S(N)},N.categoryId):t.jsx(fe,{inputs:N.inputs,control:f,inputContainerStyles:o,errorColor:r,reactHookFormInstance:n})})}),t.jsxs("div",{className:ge.buttonContainer,children:[t.jsx(be,{containerStyles:a,type:"submit",children:_(c)}),t.jsx(de,{errorMessage:s,errorColor:r})]})]})},si="_overlay_mnd4j_2",ni="_modal_mnd4j_15",ii="_closeButton_mnd4j_29",oi="_icon_mnd4j_39",ri="_message_mnd4j_45",ai="_submessage_mnd4j_51",li="_buttonsContainer_mnd4j_57",ci="_buttonWrapper_mnd4j_64",G={overlay:si,modal:ni,closeButton:ii,icon:oi,message:ri,submessage:ai,buttonsContainer:li,buttonWrapper:ci},e2=({onClose:n,icon:d,message:i,submessage:o,buttons:s,maxHeight:r="450px",maxWidth:c="450px"})=>t.jsx("div",{className:G.overlay,children:t.jsxs("div",{className:G.modal,style:{maxHeight:r,maxWidth:c},children:[t.jsx("button",{className:G.closeButton,onClick:n,"aria-label":"Close modal",children:"✕"}),d&&t.jsx("img",{src:d,alt:"icon",className:G.icon}),t.jsx("p",{className:G.message,children:i}),o&&t.jsx("p",{className:G.submessage,children:o}),s.length>0&&t.jsx("div",{className:G.buttonsContainer,children:s.map((a,l)=>t.jsx("div",{className:G.buttonWrapper,children:a},l))})]})});e2.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 di="_stepsContainer_1cyua_3",ui="_stepWrapper_1cyua_9",pi="_circleContainer_1cyua_19",mi="_circle_1cyua_19",hi="_active_1cyua_39",gi="_completed_1cyua_44",Ci="_label_1cyua_50",xi="_labelActive_1cyua_56",fi="_connector_1cyua_61",H={stepsContainer:di,stepWrapper:ui,circleContainer:pi,circle:mi,active:hi,completed:gi,label:Ci,labelActive:xi,connector:fi},Xe=({steps:n,activeColor:d})=>t.jsx("div",{className:H.stepsContainer,children:n.map((i,o)=>{const s=i.status==="active",r=i.status==="completed";return t.jsxs("div",{className:H.stepWrapper,children:[t.jsxs("div",{className:H.circleContainer,children:[t.jsx("div",{className:`${H.circle}
|
|
2
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),y=require("react"),e=require("prop-types"),T=require("react-i18next"),Ke=require("framer-motion"),xt=require("zustand"),a2=require("d3"),l2=require("mapbox-gl"),c2=require("react-redux"),ue=require("react-map-gl/mapbox"),Me=require("maplibre-gl"),d2=require("pmtiles"),pe=require("react-map-gl/maplibre"),u2=require("@reduxjs/toolkit"),p2=require("@mui/material/Slider"),tt=require("@mui/material"),m2=require("@emotion/react"),ft=require("react-router-dom");function bt(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 ce=bt(y),Ve=bt(a2),h2="_ambitSelector_mcunf_2",g2="_header_mcunf_13",C2="_nameDateContainer_mcunf_23",x2="_ambitName_mcunf_39",f2="_ambitDate_mcunf_53",b2="_buttonsContainer_mcunf_67",y2="_ambitListContainer_mcunf_76",_2="_newAmbitButtonContainer_mcunf_80",U={ambitSelector:h2,header:g2,nameDateContainer:C2,ambitName:x2,ambitDate:f2,buttonsContainer:b2,ambitListContainer:y2,newAmbitButtonContainer:_2},v2="_ambitItem_1qa6u_2",j2="_ambitNameDate_1qa6u_16",w2="_ambitName_1qa6u_16",N2="_ambitDate_1qa6u_35",k2="_ambitButtons_1qa6u_38",me={ambitItem:v2,ambitNameDate:j2,ambitName:w2,ambitDate:N2,ambitButtons:k2},S2="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",T2="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",$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%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",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%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",L2="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",M2="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",yt=({ambit:n,onClickCopy:d,onClickDelete:i,onClickFilters:o,onClickAmbit:s,isActive:r,activeColor:l,fontColor:a,moreInfo:c})=>{const{name:u,created_at:m,id:h,isBeingProcessed:x}=n;return t.jsxs("div",{className:me.ambitItem,style:{borderBottom:`1px solid ${a}`},children:[t.jsxs("div",{className:me.ambitNameDate,onClick:()=>s(h),children:[t.jsxs("div",{className:me.ambitName,children:[t.jsx("img",{style:{marginRight:9},src:r?L2:M2}),t.jsx("span",{style:{color:r?l:a},children:u})]}),t.jsx("div",{className:me.ambitDate,children:m?new Date(m).toLocaleDateString():""})]}),t.jsxs("div",{className:me.ambitButtons,children:[x&&t.jsx("img",{src:B2}),t.jsx("button",{onClick:()=>o(h),disabled:n.is_default,children:t.jsx("img",{src:$2})}),t.jsx("button",{onClick:()=>d(h),children:t.jsx("img",{src:T2})}),t.jsx("button",{onClick:()=>i(h),disabled:n.is_default,children:t.jsx("img",{src:S2})})]})]})};yt.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 st="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",V2="_generalButton_phq4n_2",D2={generalButton:V2},be=({children:n,onClick:d,fontColor:i="#605B56",borderColor:o="#605B56",backgroundColor:s="#fff",type:r="button",containerStyles:l={},disabled:a=!1})=>t.jsx("button",{className:D2.generalButton,style:{color:i,border:`1.5px solid ${o}`,background:s,...l},onClick:d,type:r,disabled:a,children:n}),_t=({ambitList:n,activeAmbitId:d,fontColor:i="#605B56",activeColor:o,nameLabel:s,dateLabel:r,newAmbitLabel:l="New field",buttonContainerStyles:a={},containerStyles:c={},onCLickNewAmbit:u=()=>console.log("New ambit clicked"),onClickCopy:m=_=>console.log(`Copy ambit: ${_}`),onCLickDelete:h=_=>console.log(`Delete ambit: ${_}`),onClickFilters:x=_=>console.log(`Filters clicked: ${_}`),onClickAmbit:g=_=>console.log(`OnCLickAmbit: ${_}`)})=>{const{t:_}=T.useTranslation(),[f,b]=y.useState(n);y.useEffect(()=>{n&&b(n)},[n]);const p=C=>{if(f&&f.length>0){let j=[...f];j.sort((v,w)=>v[C].localeCompare(w[C])),b(j)}};return t.jsxs("div",{className:U.ambitSelector,style:{color:i,...c},children:[t.jsxs("div",{className:U.header,style:{borderBottom:`1px solid ${i}`},children:[t.jsxs("div",{className:U.nameDateContainer,children:[t.jsx("div",{className:U.ambitName,children:t.jsxs("button",{onClick:()=>p("name"),children:[t.jsx("span",{children:_(s)}),t.jsx("img",{src:st})]})}),t.jsx("div",{className:U.ambitDate,children:t.jsxs("button",{onClick:()=>p("date"),children:[t.jsx("span",{children:_(r)}),t.jsx("img",{src:st})]})})]}),t.jsx("div",{className:U.buttonsContainer})]}),t.jsx("div",{className:U.ambitListContainer,children:f&&f.length>0&&f.map(C=>t.jsx(yt,{isActive:d==C.id,ambit:C,fontColor:i,activeColor:o,onClickCopy:m,onClickDelete:h,onClickFilters:x,onClickAmbit:g},`ambitKey${C.id}`))}),t.jsx("div",{className:U.newAmbitButtonContainer,children:t.jsx(be,{style:{...a},onClick:u,borderColor:"grey",children:_(l)})})]})};_t.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 F2="_buttonsContainer_1ks7x_2",A2="_vertical_1ks7x_6",I2="_horizontal_1ks7x_9",O2="_button_1ks7x_2",R2="_active_1ks7x_25",q2="_buttonName_1ks7x_28",J={buttonsContainer:F2,vertical:A2,horizontal:I2,button:O2,active:R2,buttonName:q2},E2="_left_1l4m4_2",P2="_top_1l4m4_40",z2="_bottom_1l4m4_79",Z2="_right_1l4m4_118",H2={left:E2,top:P2,bottom:z2,right:Z2},Y=({text:n,position:d,styleCustom:i=null})=>{const{t:o}=T.useTranslation();return t.jsx("div",{className:`tooltip ${H2[d]}`,style:i,children:o(n)})};Y.propTypes={text:e.string.isRequired,position:e.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:e.object};const vt=({buttons:n=[],orientation:d="horizontal",showName:i=!0,namePosition:o="right",useTooltip:s=!1,tooltipPosition:r="top"})=>{const{t:l}=T.useTranslation();return t.jsx("div",{className:`${J.buttonsContainer} ${d==="vertical"&&J.vertical}
|
|
3
|
+
${d==="horizontal"&&J.horizontal}`,children:n.map((a,c)=>{const{icon:u,activeIcon:m,isActive:h,name:x,onClick:g,disabled:_}=a,f=t.jsxs(t.Fragment,{children:[i&&o==="left"&&t.jsx("span",{className:J.buttonName,children:l(x)}),t.jsx("img",{src:h?m:u,alt:l(x)}),i&&o==="right"&&t.jsx("span",{className:J.buttonName,children:l(x)})]});return t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:g,className:`${J.button}
|
|
4
|
+
${h&&J.active}`,disabled:_,children:f}),s&&t.jsx(Y,{text:x,position:r})]},c)})})};vt.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 K2="_indicatorsCategory_11gdl_2",U2="_title_11gdl_6",W2="_mainTitle_11gdl_14",je={indicatorsCategory:K2,title:U2,mainTitle:W2},X=({isOpen:n,onClick:d,children:i,color:o,activeColor:s="#F8A925",title:r="Title",height:l=53,titleFontStyles:a,showBottomBar:c=!0,titleMarginChildren:u=15,mainTitle:m=!1})=>{const{t:h}=T.useTranslation();return t.jsxs(Ke.motion.div,{className:je.indicatorsCategory,initial:{height:`${l}px`},animate:{height:n?"auto":`${l}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:n&&c?`1px solid ${s}`:"0px",minHeight:m?"70px":"50px"},children:[t.jsxs("h2",{style:{...a},className:`${je.title} ${m&&je.mainTitle}`,onClick:d,children:[t.jsx("span",{style:{color:n?s:o},children:n?"-":"+"}),t.jsx("span",{style:{color:n?s:o},children:h(r)})]}),t.jsx("div",{className:je.content,style:{padding:m?"20px 0px":"0px"},children:i})]})};X.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 G2=()=>t.jsx("div",{children:"EditAmbit"}),Y2="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",X2="_AppliedFiltersContainer_cokx9_2",Q2="_AppliedFilterContent_cokx9_11",nt={AppliedFiltersContainer:X2,AppliedFilterContent:Q2},L=xt.create(n=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56",activeFiltersType:null,geoLayers:[]})),jt=({title:n,onClick:d,isOpen:i=!0,textColor:o="#ffffff",backgroundColor:s="#605B5680",activeColor:r,fontColor:l="#605B56"})=>{const{t:a}=T.useTranslation(),{tematicalFiltersSelected:c,activeFiltersType:u}=L(x=>x),m=x=>{L.setState(g=>({tematicalFiltersSelected:g.tematicalFiltersSelected.filter(_=>_.code!==x)}))},h=()=>{u=="applied"?L.setState(()=>({activeFiltersType:null})):L.setState(()=>({activeFiltersType:"applied"}))};return t.jsx(X,{isOpen:i,onClick:h,title:n?a(n):"Applied Filters",activeColor:r,mainTitle:!0,color:l,children:t.jsx("div",{className:nt.AppliedFiltersContainer,children:c==null?void 0:c.map((x,g)=>t.jsxs("div",{className:nt.AppliedFilterContent,style:{color:o,background:s},children:[a(x.name),t.jsx("img",{src:Y2,alt:"CloseIcon",onClick:()=>m(x.code),style:{cursor:"pointer"}})]},g))})})};jt.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 J2="_layersList_cn837_25",es="_layerName_cn837_34",it={layersList:J2,layerName:es},wt=({title:n,isOpen:d=!0,fontColor:i="#605B56",backgroundColor:o="#605B5680",activeColor:s,onGeoLayersChange:r})=>{const{t:l}=T.useTranslation(),{activeFiltersType:a,geoLayers:c}=L(h=>h),u=()=>{a=="geographical"?L.setState(()=>({activeFiltersType:null})):L.setState(()=>({activeFiltersType:"geographical"}))},m=h=>{L.setState(x=>({geoLayers:x.geoLayers.map(g=>({...g,active:g.name===h.name}))})),r(c)};return y.useEffect(()=>{r&&r(c)},[c]),t.jsx(X,{isOpen:a=="geographical",onClick:u,title:n?l(n):"Geographical Filters",activeColor:s,color:i,mainTitle:!0,children:t.jsx("div",{className:`${it.layersList}`,children:c.map(h=>t.jsxs("div",{className:`${it.layerName}`,style:{color:h.active?s:i,fontWeight:h.active?"bold":"normal"},onClick:()=>m(h),children:[l(h.name),h.active]}))})})};wt.propTypes={isOpen:e.bool,onClick:e.func,title:e.string,textColor:e.string,backgroundColor:e.string,activeColor:e.string};const ts="_checkboxContainer_1nxra_2",ss={checkboxContainer:ts},Nt=({onClick:n,containerStyles:d,color:i="#605B56",indicator:o,value:s})=>{const{t:r}=T.useTranslation(),{title:l}=o||{},{fontColor:a,inputsColor:c}=L(u=>u);return t.jsxs("div",{style:{...d,color:i},role:"checkbox",className:ss.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:a}`,backgroundColor:s?c:"white"}}),t.jsx("span",{className:"checkmark",children:r(l)})]})};Nt.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 Oe(n,d){return Oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,o){return i.__proto__=o,i},Oe(n,d)}function ns(n,d){n.prototype=Object.create(d.prototype),n.prototype.constructor=n,Oe(n,d)}function De(n){return n&&n.stopPropagation&&n.stopPropagation(),n&&n.preventDefault&&n.preventDefault(),!1}function Fe(n){return n==null?[]:Array.isArray(n)?n.slice():[n]}function we(n){return n!==null&&n.length===1?n[0]:n.slice()}function Ne(n){Object.keys(n).forEach(d=>{typeof document<"u"&&document.addEventListener(d,n[d],!1)})}function ee(n,d){return Re(function(i,o){let s=i;return s<=o.min&&(s=o.min),s>=o.max&&(s=o.max),s}(n,d),d)}function Re(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 qe=function(n){function d(o){var s;(s=n.call(this,o)||this).onKeyUp=()=>{s.onEnd()},s.onMouseUp=()=>{s.onEnd(s.getMouseEventMap())},s.onTouchEnd=a=>{a.preventDefault(),s.onEnd(s.getTouchEventMap())},s.onBlur=()=>{s.setState({index:-1},s.onEnd(s.getKeyDownEventMap()))},s.onMouseMove=a=>{s.setState({pending:!0});const c=s.getMousePosition(a),u=s.getDiffPosition(c[0]),m=s.getValueFromPosition(u);s.move(m)},s.onTouchMove=a=>{if(a.touches.length>1)return;s.setState({pending:!0});const c=s.getTouchPosition(a);if(s.isScrolling===void 0){const h=c[0]-s.startPosition[0],x=c[1]-s.startPosition[1];s.isScrolling=Math.abs(x)>Math.abs(h)}if(s.isScrolling)return void s.setState({index:-1});const u=s.getDiffPosition(c[0]),m=s.getValueFromPosition(u);s.move(m)},s.onKeyDown=a=>{if(!(a.ctrlKey||a.shiftKey||a.altKey||a.metaKey))switch(s.setState({pending:!0}),a.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":a.preventDefault(),s.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":a.preventDefault(),s.moveUpByStep();break;case"Home":a.preventDefault(),s.move(s.props.min);break;case"End":a.preventDefault(),s.move(s.props.max);break;case"PageDown":a.preventDefault(),s.moveDownByStep(s.props.pageFn(s.props.step));break;case"PageUp":a.preventDefault(),s.moveUpByStep(s.props.pageFn(s.props.step))}},s.onSliderMouseDown=a=>{if(!s.props.disabled&&a.button!==2){if(s.setState({pending:!0}),!s.props.snapDragDisabled){const c=s.getMousePosition(a);s.forceValueFromPosition(c[0],u=>{s.start(u,c[0]),Ne(s.getMouseEventMap())})}De(a)}},s.onSliderClick=a=>{if(!s.props.disabled&&s.props.onSliderClick&&!s.hasMoved){const c=s.getMousePosition(a),u=ee(s.calcValue(s.calcOffsetFromPosition(c[0])),s.props);s.props.onSliderClick(u)}},s.createOnKeyDown=a=>c=>{s.props.disabled||(s.start(a),Ne(s.getKeyDownEventMap()),De(c))},s.createOnMouseDown=a=>c=>{if(s.props.disabled||c.button===2)return;s.setState({pending:!0});const u=s.getMousePosition(c);s.start(a,u[0]),Ne(s.getMouseEventMap()),De(c)},s.createOnTouchStart=a=>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(a,u[0]),Ne(s.getTouchEventMap()),function(m){m.stopPropagation&&m.stopPropagation()}(c)},s.handleResize=()=>{const a=window.setTimeout(()=>{s.pendingResizeTimeouts.shift(),s.resize()},0);s.pendingResizeTimeouts.push(a)},s.renderThumb=(a,c)=>{const u=s.props.thumbClassName+" "+s.props.thumbClassName+"-"+c+" "+(s.state.index===c?s.props.thumbActiveClassName:""),m={ref:x=>{s["thumb"+c]=x},key:s.props.thumbClassName+"-"+c,className:u,style:a,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},h={index:c,value:we(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(h)),s.props.renderThumb(m,h)},s.renderTrack=(a,c,u)=>{const m={key:s.props.trackClassName+"-"+a,className:s.props.trackClassName+" "+s.props.trackClassName+"-"+a,style:s.buildTrackStyle(c,s.state.upperBound-u)},h={index:a,value:we(s.state.value)};return s.props.renderTrack(m,h)};let r=Fe(o.value);r.length||(r=Fe(o.defaultValue)),s.pendingResizeTimeouts=[];const l=[];for(let a=0;a<r.length;a+=1)r[a]=ee(r[a],o),l.push(a);return s.resizeObserver=null,s.resizeElementRef=y.createRef(),s.state={index:-1,upperBound:0,sliderLength:0,value:r,zIndices:l},s}ns(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=Fe(o.value);return r.length?s.pending?null:{value:r.map(l=>ee(l,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 we(this.state.value)},i.getClosestIndex=function(o){let s=Number.MAX_VALUE,r=-1;const{value:l}=this.state,a=l.length;for(let c=0;c<a;c+=1){const u=this.calcOffset(l[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 ee(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(),l=o.getBoundingClientRect(),a=o[r],c=l[this.posMaxKey()],u=l[this.posMinKey()],m=s.getBoundingClientRect()[r.replace("client","").toLowerCase()],h=a-m,x=Math.abs(c-u);this.state.upperBound===h&&this.state.sliderLength===x&&this.state.thumbSize===m||this.setState({upperBound:h,sliderLength:x,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(),l=r[this.posMaxKey()],a=r[this.posMinKey()];let c=o-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?l:a));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),l=this.getClosestIndex(r),a=ee(this.calcValue(r),this.props),c=this.state.value.slice();c[l]=a;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(l),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:l}=this.state;l.splice(l.indexOf(o),1),l.push(o),this.setState(a=>({startValue:a.value[o],startPosition:s!==void 0?s:a.startPosition,index:o,zIndices:l}))},i.moveUpByStep=function(o){o===void 0&&(o=this.props.step);const s=this.state.value[this.state.index],r=ee(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=ee(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:l}=s,a=s[r];if(o===a)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:c,max:u,min:m,minDistance:h}=this.props;if(!c){if(r>0){const x=s[r-1];o<x+h&&(o=x+h)}if(r<l-1){const x=s[r+1];o>x-h&&(o=x-h)}}s[r]=o,c&&l>1&&(o>a?(this.pushSucceeding(s,h,r),function(x,g,_,f){for(let b=0;b<x;b+=1){const p=f-b*_;g[x-1-b]>p&&(g[x-1-b]=p)}}(l,s,h,u)):o<a&&(this.pushPreceding(s,h,r),function(x,g,_,f){for(let b=0;b<x;b+=1){const p=f+b*_;g[b]<p&&(g[b]=p)}}(l,s,h,m))),this.setState({value:s},this.fireChangeEvent.bind(this,"onChange"))},i.pushSucceeding=function(o,s,r){let l,a;for(l=r,a=o[l]+s;o[l+1]!==null&&a>o[l+1];l+=1,a=o[l]+s)o[l+1]=Re(a,this.props)},i.pushPreceding=function(o,s,r){for(let l=r,a=o[l]-s;o[l-1]!==null&&a<o[l-1];l-=1,a=o[l]-s)o[l-1]=Re(a,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](we(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 a=0;a<s;a+=1)r[a]=this.buildThumbStyle(o[a],a);const l=[];for(let a=0;a<s;a+=1)l[a]=this.renderThumb(r[a],a);return l},i.renderTracks=function(o){const s=[],r=o.length-1;s.push(this.renderTrack(0,0,o[0]));for(let l=0;l<r;l+=1)s.push(this.renderTrack(l+1,o[l],o[l+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,l)=>l):typeof o=="number"&&(o=Array.from({length:s}).map((r,l)=>l).filter(r=>r%o==0)),o.map(parseFloat).sort((r,l)=>r-l).map(r=>{const l=this.calcOffset(r),a={key:r,className:this.props.markClassName,style:this.buildMarkStyle(l)};return this.props.renderMark(a)})},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 l=this.props.withTracks?this.renderTracks(o):null,a=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},l,a,c)},d}(y.Component);qe.displayName="ReactSlider",qe.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 Ee=qe;const is="_container_4u41i_2",os="_unitLabel_4u41i_8",rs="_slider_4u41i_11",as="_thumb_4u41i_17",ls="_track_4u41i_26",cs="_labels_4u41i_32",oe={container:is,unitLabel:os,slider:rs,thumb:as,track:ls,labels:cs},kt=({min:n=0,max:d=100,step:i=1,onChange:o,width:s=300,unit:r,fontColor:l="#605B56",defaultValue:a,isDate:c})=>{const{t:u}=T.useTranslation(),m=c?new Date(n).getTime():null,h=c?new Date(d).getTime():null,[x,g]=y.useState(c?[m,h]:[n,d]),_=f=>{g(f),o==null||o({min:f[0],max:f[1]})};return y.useEffect(()=>{a||g(c?[m,h]:[n,d])},[a,c]),t.jsxs("div",{className:oe.container,style:{width:`${s}px`,color:`${l}`},children:[t.jsx("div",{className:oe.unitLabel,children:t.jsx("span",{children:u(r)})}),t.jsx(Ee,{className:oe.slider,thumbClassName:oe.thumb,trackClassName:oe.track,min:c?m:n,max:c?h:d,step:c?(h-m)/30:i,value:x,onAfterChange:_,withTracks:!0,pearling:!c,minDistance:c?0:.1}),t.jsxs("div",{className:oe.labels,children:[t.jsx("span",{children:c?new Date(x[0]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):x[0]}),t.jsx("span",{children:c?new Date(x[1]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):x[1]})]})]})};kt.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 ds="_tematicalFiltersInputContainer_1vm1r_2",us="_inputTypeContainer_1vm1r_2",ps="_checkboxContainer_1vm1r_28",ms="_absoluteSliderContainer_1vm1r_37",ke={tematicalFiltersInputContainer:ds,inputTypeContainer:us,checkboxContainer:ps,absoluteSliderContainer:ms},Ue=({indicator:n,activeColor:d})=>{const[i,o]=y.useState(),{type:s,name:r,values:l,minValue:a,maxValue:c,unit:u,step:m,disabled:h,isDate:x}=n||{},g=y.useMemo(()=>s=="cat"||i=="cat",[i,s]),_=y.useMemo(()=>s=="abs"||i=="abs",[i,s]),{tematicalFiltersSelected:f,selectedIndicator:b,fontColor:p,inputsColor:C}=L(w=>w),j=w=>{if(w){const{min:k,max:S,valueClicked:N,allValues:$}=w||{},{code:M,type:P,source:B}=n||{},R=_?"abs":g?"cat":"both";let q=M[0];P=="both"&&(q=R=="cat"?M[1]:M[0]),R=="cat"?L.setState(Q=>{let K=Q.tematicalFiltersSelected.find(A=>A.code===q);if(K){let A=[K.values];return K.values.includes(N)?A=K.values.filter(O=>O!==N):A=[...K.values,N],A.length==$.length?{tematicalFiltersSelected:Q.tematicalFiltersSelected.filter(O=>O.code!==q)}:{tematicalFiltersSelected:Q.tematicalFiltersSelected.map(O=>O.code===q?{...O,values:A}:O)}}else{let A=$.map((O,r2)=>r2);return{tematicalFiltersSelected:[...f,{type:"cat",code:q,values:A.filter(O=>O!==N),name:n.name,source:B,isDate:x}]}}}):R=="abs"&&L.setState(Q=>{let K=Q.tematicalFiltersSelected.find(A=>A.code===q);if(k==n.minValue&&S==n.maxValue)return{tematicalFiltersSelected:Q.tematicalFiltersSelected.filter(A=>A.code!==q)};if(K){let A={...K,min:k,max:S,type:R,isDate:x};return{tematicalFiltersSelected:Q.tematicalFiltersSelected.map(O=>O.code===q?A:O)}}else return{tematicalFiltersSelected:[...f,{type:R,code:q,min:k,max:S,name:n.name,source:n.source}]}})}},v=y.useMemo(()=>{const w={};if((f==null?void 0:f.length)>0)for(const k of f)k.type==="cat"?w[k.code]=new Set(k.values):w[k.code]=[k.min,k.max];return w},[f]);return t.jsx("div",{className:ke.tematicalFiltersInputContainer,children:t.jsxs(X,{titleFontStyles:{fontSize:16,fontWeight:400,opacity:h?.5:1},title:r,isOpen:b==`id${r}`,onClick:()=>{h||L.setState(()=>({selectedIndicator:b==`id${r}`?"":`id${r}`}))},showBottomBar:!1,height:42,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:p,activeColor:d,children:[s=="both"&&t.jsxs("div",{className:ke.inputTypeContainer,style:{color:p},children:[t.jsxs("label",{children:[t.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{o("abs")},style:{marginRight:4,backgroundColor:i=="abs"?C:"white",border:`1.5px solid ${i=="abs"?C:p}`}}),"Absoluto"]}),t.jsxs("label",{children:[t.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{o("cat")},style:{marginRight:4,backgroundColor:i=="cat"?C:"white",border:`1.5px solid ${i=="cat"?C:p}`}}),"Categórico"]})]}),g&&t.jsx("div",{className:ke.checkboxContainer,children:l.map((w,k)=>{var S;return t.jsx(Nt,{onClick:()=>j({valueClicked:k,allValues:l}),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}`)})}),(_||s=="glb")&&t.jsx("div",{className:ke.absoluteSliderContainer,children:t.jsx(kt,{onChange:j,min:a,max:c,unit:u,defaultValue:v[n.code[0]]?v[n.code[0]]:"",isDate:x,step:m})})]})})};Ue.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 St=({subcategory:n,fontColor:d,activeColor:i})=>{const{activeSubcategory:o}=L(l=>l),{name:s,indicators:r}=n||{};return t.jsx(X,{title:s,isOpen:o==`id${s}`,onClick:()=>{L.setState(l=>({activeSubcategory:l.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((l,a)=>t.jsx(Ue,{indicator:l,fontColor:d,activeColor:i},`indicatorSub-${a}`))})};St.propTypes={subcategory:e.shape({name:e.string,indicators:e.arrayOf(e.shape({name:e.string,value:e.string}))}),activeColor:e.string};const Tt=({category:n,activeColor:d})=>{const{name:i,subcategories:o,indicators:s}=n||{},{activeCategory:r,fontColor:l}=L(a=>a);return n&&t.jsx(X,{onClick:()=>{L.setState(a=>({activeCategory:r===`id${i}`?"":`id${i}`}))},title:i,isOpen:r===`id${i}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:l,activeColor:d,children:o?o.map((a,c)=>t.jsx(St,{subcategory:a,fontColor:l,activeColor:d},`subcategory-${c}`)):s&&s.map((a,c)=>t.jsx(Ue,{indicator:a,fontColor:l,activeColor:d},`indicator-${c}`))})};Tt.propTypes={category:e.shape({name:e.string.isRequired,subcategories:e.array,indicators:e.array}),activeColor:e.string};const $t=({indicators:n,isOpen:d=!0,title:i,fontColor:o="#605B56",inputsColor:s="#605B56",activeColor:r})=>{const{tematicalFiltersSelected:l,activeFiltersType:a}=L(m=>m),{t:c}=T.useTranslation();y.useEffect(()=>{},[l]),y.useEffect(()=>{o&&L.setState(()=>({fontColor:o}))},[o]),y.useEffect(()=>{s&&L.setState(()=>({inputsColor:s}))},[s]);const u=()=>{a=="tematical"?L.setState(()=>({activeFiltersType:null})):L.setState(()=>({activeFiltersType:"tematical"}))};return t.jsx(X,{isOpen:a=="tematical",title:i?c(i):"Tematical filters",color:o,activeColor:r,onClick:u,mainTitle:!0,children:n==null?void 0:n.map((m,h)=>t.jsx(Tt,{category:m,fontColor:o,activeColor:r},`category-${h}`))})};$t.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 hs="_FiltersAmbitContainer_bp6cj_2",gs="_FiltersAmbitHeader_bp6cj_15",Cs="_FiltersAmbitTitle_bp6cj_23",xs="_FiltersAmbitDescription_bp6cj_32",fs="_FiltersAmbitDescriptionTitle_bp6cj_43",bs="_warning_bp6cj_47",ys="_buttonContainer_bp6cj_50",te={FiltersAmbitContainer:hs,FiltersAmbitHeader:gs,FiltersAmbitTitle:Cs,FiltersAmbitDescription:xs,FiltersAmbitDescriptionTitle:fs,warning:bs,buttonContainer:ys},Bt=({ambitName:n,ambitDescription:d,defaultFilters:i,indicators:o,activeColor:s,textColor:r,backgroundColor:l,onChangeAppliedFilters:a,saveAmbit:c,namePlaceholder:u,descPlaceholder:m,filtersTypes:h=["geographical","tematical"],nameRequiredText:x,geoFilterLayers:g=[],onGeoLayersChange:_,onlyFilters:f=!1,descriptionRequired:b=!1})=>{const{t:p}=T.useTranslation(),{tematicalFiltersSelected:C,activeFiltersType:j,geoLayers:v}=L(B=>B),[w,k]=y.useState(n||null),[S,N]=y.useState(d||null),[$,M]=y.useState(!1);y.useEffect(()=>{i&&i.length>0&&L.setState(B=>({tematicalFiltersSelected:i}))},[i]),y.useEffect(()=>{h.includes("geographical")&&v!=g&&L.setState({geoLayers:g})},[g]),y.useEffect(()=>{a(C)},[C]);const P=()=>{b?w&&S?c({name:w,description:S}):M(!0):w?c({name:w,description:S}):M(!0)};return y.useEffect(()=>{h.includes("geographical")&&j!="geographical"&&v.length>0&&L.setState(B=>({geoLayers:B.geoLayers.map(R=>({...R,active:!1}))}))},[j]),t.jsxs("div",{className:te.FiltersAmbitContainer,children:[t.jsxs("div",{children:[!f&&t.jsxs("div",{className:te.FiltersAmbitHeader,children:[t.jsx("div",{className:te.FiltersAmbitTitle,children:t.jsx("input",{type:"text",onChange:B=>{M(!1),k(B.target.value)},value:w,placeholder:p(u)})}),t.jsx("div",{className:te.FiltersAmbitDescription,children:t.jsx("div",{className:te.FiltersAmbitDescriptionTitle,children:t.jsx("textarea",{value:S,onChange:B=>{b&&M(!1),N(B.target.value)},placeholder:p(m)})})})]}),t.jsx(jt,{title:p("applied_filters"),isOpen:j=="applied",textColor:r||"#fff",backgroundColor:l||"#605B5680",activeColor:s}),h.includes("geographical")&&t.jsx(wt,{title:"geo_filters",activeColor:s,onGeoLayersChange:_}),h.includes("tematical")&&t.jsx($t,{indicators:o,inputsColor:s,textColor:r,title:"tematical_filters",activeColor:s})]}),!f&&t.jsxs("div",{className:te.buttonContainer,children:[$&&t.jsx("div",{className:te.warning,children:p(x)}),t.jsx(be,{onClick:()=>P(),children:p("save_ambit")})]})]})};Bt.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 We=({data:n,length:d=700,barHeight:i=25,gap:o=23,fontColor:s="#605B56",leftPadding:r=200,numberOfDivisions:l=7,maxValue:a=null,orientation:c="horizontal",horizontalPadding:u=c=="vertical"?50:20,verticalPadding:m=10})=>{const{xScale:x,yScale:g,ticks:_,height:f,chartWidth:b}=y.useMemo(()=>{if(n&&n.length>0){const p=Ve.max(n,j=>j.value)||1,C=a||p;if(c==="vertical"){const j=n.length*(i+o)+u*2,v=d,k=Ve.scaleLinear().domain([0,C]).range([v-100,m]),S=Array.from({length:l+1},(N,$)=>C/l*$);return{yScale:k,ticks:S,height:v,chartWidth:j}}else{const j=n.length*(i+o)+m*2+50,v=Ve.scaleLinear().domain([0,C]).range([0,d-r]),w=Array.from({length:l+1},(k,S)=>C/l*S);return{xScale:v,ticks:w,height:j,chartWidth:d}}}else return{xScale:null,yScale:null,ticks:[],height:0,chartWidth:d}},[n,d,l,i,o,u,m,a,c]);return c==="vertical"?t.jsx("div",{style:{overflow:"auto"},children:t.jsx("svg",{width:b,height:f,children:t.jsxs("g",{transform:`translate(${u}, 0)`,children:[t.jsx("g",{children:_.map((p,C)=>{const j=g(p);return t.jsxs("g",{children:[t.jsx("line",{x1:0,x2:b-u*2,y1:j,y2:j,stroke:"#ccc"}),t.jsx("text",{x:-10,y:j+4,textAnchor:"end",fontSize:10,fill:s,children:parseInt(p)})]},C)})}),n&&n.length>0&&n.map((p,C)=>{const j=g(0)-g(p.value),v=C*(i+o),w=g(p.value);return t.jsxs("g",{children:[t.jsx("rect",{x:v,y:w,width:i,height:j,fill:p.color,rx:0}),t.jsx("text",{x:v+i/2,y:f-10,textAnchor:"start",fill:s,fontSize:12,transform:`rotate(-90, ${v+i/2}, ${f-10})`,children:p.title})]},C)})]})})}):t.jsx("div",{style:{overflow:"auto"},children:t.jsx("svg",{width:b+u*2,height:f,children:t.jsxs("g",{transform:`translate(0,${o})`,children:[t.jsx("g",{transform:`translate(${r+u}, 0)`,children:_.map((p,C)=>{const j=x(p);return t.jsxs("g",{transform:`translate(${j}, 0)`,children:[t.jsx("line",{y1:0,y2:f-50-o*2,stroke:"#ccc"}),t.jsx("text",{y:f-50-o,textAnchor:"middle",fontSize:10,fill:s,children:parseInt(p)})]},C)})}),n&&n.length>0&&n.map((p,C)=>{const j=x(p.value),v=C*(i+o);return t.jsxs("g",{transform:`translate(${r+u}, ${v})`,children:[t.jsx("text",{x:-24,y:i/2+5,textAnchor:"end",fill:s,children:p.title}),t.jsx("rect",{width:j,height:i,fill:p.color,rx:0})]},C)})]})})})};We.propTypes={data:e.arrayOf(e.shape({title:e.string,value:e.number,color:e.string})),length:e.number,barHeight:e.number,gap:e.number,verticalPadding:e.number,horizontalPadding:e.number,numberOfDivisions:e.number,fontColor:e.string,leftPadding:e.number,maxValue:e.number,orientation:e.oneOf(["horizontal","vertical"])};const _s="_graphicContainer_c9zrg_2",vs="_titleContainer_c9zrg_14",ot={graphicContainer:_s,titleContainer:vs},Lt=({data:n,graphLength:d=700,containerStyle:i,borderColor:o="#605B56",title:s="Graphic Title",fontColor:r="#605B56",maxValue:l=null,numberOfDivisions:a=7,leftPadding:c=-200,orientation:u="horizontal"})=>{const{t:m}=T.useTranslation();return t.jsxs("div",{className:ot.graphicContainer,style:{...i||{},border:`1.5px solid ${o}`,paddingBottom:40},children:[t.jsx("div",{className:ot.titleContainer,children:t.jsx("h2",{children:m(s)})}),t.jsx(We,{data:n,length:d,fontColor:r,maxValue:l,numberOfDivisions:a,leftPadding:c,orientation:u})]})};Lt.propTypes={data:e.arrayOf(e.shape({color:e.string.isRequired,value:e.number.isRequired,title:e.string.isRequired})),borderColor:e.string,title:e.string,graphLength:e.number,containerStyle:e.object,fontColor:e.string,maxValue:e.number,numberOfDivisions:e.number,leftPadding:e.number};const js="_indicatorsCategory_arwy3_2",ws="_title_arwy3_5",Ns="_list_arwy3_13",Se={indicatorsCategory:js,title:ws,list:Ns},rt="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23605B56'/%3e%3c/svg%3e",ks="data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23ffffff'/%3e%3c/svg%3e",Ss="_indicatorContainer_17b40_2",Ts="_indicatorNameContainer_17b40_11",$s="_dot_17b40_17",Bs="_indicatorName_17b40_11",Ls="_switchExternalContainer_17b40_31",Ms="_switchType_17b40_39",Vs="_switchTypeOptions_17b40_43",Ds="_optionContainer_17b40_54",Fs="_customRadious_17b40_64",As="_optionText_17b40_71",F={indicatorContainer:Ss,indicatorNameContainer:Ts,dot:$s,indicatorName:Bs,switchExternalContainer:Ls,switchType:Ms,switchTypeOptions:Vs,optionContainer:Ds,customRadious:Fs,optionText:As},Ge=({indicator:n,values:d=[],activeColor:i,defaultColor:o="#92898A",activeIndicator:s,activeIndicatorType:r,onClickIndicator:l,multiple:a=!1,onChangeType:c})=>{const{t:u}=T.useTranslation(),{name:m,type:h,disabled:x}=n;console.log(rt);const[g,_]=y.useState(!1);y.useEffect(()=>{s&&_(a?s.some(p=>p.name==String(m)):s.name==m)},[s]);const f=()=>t.jsx("div",{className:F.switchExternalContainer,children:t.jsx("div",{className:F.switchType,children:t.jsxs("div",{className:F.switchTypeOptions,children:[t.jsxs("div",{className:F.optionContainer,onClick:()=>c("cat"),children:[t.jsx("span",{className:`${F.customRadious}`,style:{backgroundColor:r==="cat"?i:"transparent",borderColor:r==="cat"?i:o}}),t.jsx("h4",{className:F.optionText,style:{color:r==="cat"?i:o},children:u("indicators.cat")})]}),t.jsxs("div",{className:F.optionContainer,onClick:()=>c("abs"),children:[t.jsx("span",{className:`${F.customRadious}`,style:{backgroundColor:r==="abs"?i:"transparent",borderColor:r==="abs"?i:o}}),t.jsx("h4",{className:F.optionText,style:{color:r==="abs"?i:o},children:u("indicators.abs")})]})]})})}),b=()=>t.jsx("div",{className:F.switchExternalContainer,children:t.jsx("div",{className:F.switchType,children:t.jsx("div",{className:F.switchTypeOptions,children:d.map((p,C)=>t.jsxs("div",{className:F.optionContainer,children:[t.jsx("span",{className:F.customRadious}),t.jsx("h4",{children:u(p.unit)})]},C))})})});return t.jsxs("div",{className:F.indicatorContainer,children:[t.jsxs("div",{className:F.indicatorNameContainer,onClick:()=>!x&&l({indicator:n}),children:[t.jsx("div",{style:{border:g?`1px solid ${i}`:`1px solid ${o}`,opacity:x?.5:1,backgroundColor:g?i:"transparent"},className:F.dot,children:a&&t.jsx("img",{src:g?ks:rt,alt:""})}),t.jsx("h4",{className:F.indicatorName,style:{color:g?i:o,opacity:x?.5:1},children:t.jsx(T.Trans,{i18nKey:m,components:{sup:t.jsx("sup",{})},shouldUnescape:!0})})]}),(s==null?void 0:s.name)===m&&h==="both"&&t.jsx("div",{children:f()}),(s==null?void 0:s.name)===m&&h==="twoUnits"&&t.jsx("div",{children:b()})]})};Ge.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 Is="_indicatorsSubCategory_1nuug_2",Os="_list_1nuug_11",at={indicatorsSubCategory:Is,list:Os},Mt=({subcName:n,indicators:d,defaultColor:i,activeColor:o,activeSubCategory:s,onClickSubCategory:r,id:l,activeIndicator:a,onClickIndicator:c,multiple:u,activeIndicatorType:m,onChangeType:h})=>{const{t:x}=T.useTranslation(),[g,_]=y.useState(!1);return y.useEffect(()=>{_(s==l)},[s,l]),t.jsxs(Ke.motion.div,{className:at.indicatorsSubCategory,initial:{height:"43px"},animate:{height:g?"auto":"43px"},transition:{duration:.4},children:[t.jsx("button",{onClick:()=>r(l),children:t.jsxs("h3",{style:{color:g?o:i},children:[t.jsx("span",{style:{color:g?o:i},children:g?"-":"+"}),t.jsx("span",{style:{color:g?o:i},children:x(n)})]})}),d&&t.jsx("div",{className:at.list,children:d==null?void 0:d.map((f,b)=>t.jsx(Ge,{indicator:f,defaultColor:i,activeColor:o,activeIndicator:a,onClickIndicator:c,multiple:u,activeIndicatorType:m,onChangeType:h},"indicator"+b))})]})};Mt.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:l,onClickSubCategory:a,activeIndicator:c,onClickIndicator:u,multiple:m,activeIndicatorType:h,onChangeType:x})=>{var b;const{t:g}=T.useTranslation(),[_,f]=y.useState(!1);return y.useEffect(()=>{f(r===d)},[r,d]),t.jsxs(Ke.motion.div,{className:Se.indicatorsCategory,initial:{height:"53px"},animate:{height:_?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:_?`1px solid ${i}`:"0px",marginBottom:_?"20px":"0px"},children:[t.jsxs("h2",{className:`${Se.title}`,onClick:()=>s(d),children:[t.jsx("span",{className:Se.plus,style:{color:_?i:o},children:_?"-":"+"}),t.jsx("span",{style:{color:_?i:o},children:g(n.name)})]}),n.subcategories?n.subcategories.map(({name:p,subcategory:C,indicators:j},v)=>t.jsx(Mt,{id:C,activeSubCategory:l,subcName:p,onClickSubCategory:a,activeIndicator:c,onClickIndicator:u,multiple:m,activeColor:i,defaultColor:o,indicators:j,activeIndicatorType:h,onChangeType:x},`subcKey ${v}`)):t.jsx("div",{className:Se.list,children:(b=n.indicators)==null?void 0:b.map((p,C)=>t.jsx(Ge,{indicator:p,values:p.type=="twoUnits"&&p.values,activeColor:i,defaultColor:o,activeIndicator:c,onClickIndicator:u,multiple:m,activeIndicatorType:h,onChangeType:x},`indicator${C}`))})]})};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 Rs="_indicatorsList_13b3m_2",qs="_title_13b3m_6",lt={indicatorsList:Rs,title:qs},Dt=({indicators:n,activeColor:d,defaultColor:i="#92898A",onChange:o,multiple:s=!1,defaultValue:r=null,changeIndType:l,activeIndicatorType:a})=>{const{t:c}=T.useTranslation(),[u,m]=y.useState(),[h,x]=y.useState(),[g,_]=y.useState(),f=v=>{m(u==v?null:v)},b=v=>{x(h==v?null:v)},p=({indicator:v})=>{C(v)},C=v=>{if(!s)_((g==null?void 0:g.name)==v.name?null:v);else{let w=g&&g.length>0?[...g]:[];_(w!=null&&w.some(k=>k.name==v.name)?w.filter(k=>k.name!=String(v.name)):[...w,v]),v.type=="both"&&l("cat")}};y.useEffect(()=>{o&&typeof o=="function"&&g&&o({activeIndicator:g})},[g]),y.useLayoutEffect(()=>{if(r&&!g)if(s&&r&&Array.isArray(r)){let v=g&&g.length>0?[...g]:[];_([...v,...r]),j(r[0].name)}else C(r),j(r.name)},[]);const j=v=>{const w=n.find(k=>{if(k.subcategories){let S=k.subcategories.find(N=>N.indicators.find($=>$.name==v));if(S)return x(S.subcategory),S}else return k.indicators.some(S=>S.name==v)});w&&m(w.category)};return t.jsxs("div",{className:lt.indicatorsList,children:[t.jsx("h2",{className:lt.title,style:{color:i},children:c("indicators.indicators")}),n.map((v,w)=>t.jsx(Vt,{id:v.category,cat:v,onClickCategory:f,activeCategory:u,onClickSubCategory:b,activeSubCategory:h,onClickIndicator:p,activeIndicator:g,activeColor:d,defaultColor:i,multiple:s,onChange:o,onChangeType:l,activeIndicatorType:a},`categoryKey${w}`))]})};Dt.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 Es="_langSelector_o9enq_2",Ps="_currentLang_o9enq_14",zs="_arrow_o9enq_26",Zs="_prevImg_o9enq_29",Hs="_langMenu_o9enq_33",re={langSelector:Es,currentLang:Ps,arrow:zs,prevImg:Zs,langMenu:Hs},Ft=({langs:n,arrow:d,imgPrev:i})=>{const[o,s]=y.useState(!1),{i18n:r}=T.useTranslation(),l=n.find(c=>c.code==r.language),a=c=>{r.changeLanguage(c),s(!1)};return t.jsxs("div",{className:re.langSelector,children:[t.jsxs("div",{className:re.currentLang,onClick:()=>{s(!o)},children:[i&&t.jsx("img",{className:re.prevImg,src:i}),(l==null?void 0:l.titleSelected)||(l==null?void 0:l.title),t.jsx("img",{src:d,className:re.arrow})]}),o&&t.jsx("div",{className:re.langMenu,children:n.map(c=>t.jsx("button",{className:(l==null?void 0:l.code)==c.code?re.active:"",onClick:()=>a(c.code),children:c.title},c.code))})]})};Ft.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 Ks="_legendContainer_qs4x9_3",Us="_closeButton_qs4x9_31",Ws="_titleContainer_qs4x9_59",Gs="_infoContainer_qs4x9_65",Ys="_titleLegendList_qs4x9_76",Xs="_legendListContainer_qs4x9_82",Qs="_gridContainer_qs4x9_82",Js="_elementLegendContainer_qs4x9_88",e0="_colorDot_qs4x9_94",t0="_absoluteValueContainer_qs4x9_100",s0="_absoluteValueColor_qs4x9_103",n0="_absoluteValueText_qs4x9_108",i0="_noDataContainer_qs4x9_120",o0="_noData_qs4x9_120",r0="_moreInfoContainer_qs4x9_141",D={legendContainer:Ks,closeButton:Us,titleContainer:Ws,infoContainer:Gs,titleLegendList:Ys,legendListContainer:Xs,gridContainer:Qs,elementLegendContainer:Js,colorDot:e0,absoluteValueContainer:t0,absoluteValueColor:s0,absoluteValueText:n0,noDataContainer:i0,noData:o0,moreInfoContainer:r0},At=({containerStyles:n,title:d,infoList:i,legendList:o,legendListTitle:s,absoluteValue:r,onClickMoreInfo:l,buttonTitle:a,onClickClose:c})=>{const{t:u}=T.useTranslation();return t.jsxs("div",{style:n?{...n}:{},className:`${D.legendContainer}`,children:[t.jsx("button",{className:D.closeButton,onClick:c}),d&&t.jsx("div",{className:D.titleContainer,style:{marginBottom:(!i||i.length==0)&&"15px"},children:t.jsx("h2",{children:d})}),i&&i.length>0&&t.jsx("div",{className:D.infoContainer,children:t.jsx("ul",{children:i.map(({title:m,value:h})=>t.jsxs("li",{children:[t.jsx("h3",{className:D.title,children:`${m}:`}),t.jsxs("span",{className:D.value,children:[" ",h]})]},d))})}),t.jsx("h3",{className:D.titleLegendList,style:{marginTop:i&&i.length>0&&"30px"},children:s&&t.jsx(T.Trans,{i18nKey:s,components:{sup:t.jsx("sup",{})},shouldUnescape:!0})}),t.jsxs("div",{className:D.legendListContainer,children:[r?t.jsxs("div",{className:D.absoluteValueContainer,children:[t.jsx("div",{className:D.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${r.maxColor} 0%, ${r.midColor?`${r.midColor} 50%,`:""} ${r.minColor} 100%)`}}),t.jsxs("div",{className:D.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:D.gridContainer,children:o.map(({title:m,color:h})=>t.jsxs("div",{className:D.elementLegendContainer,children:[t.jsx("div",{className:D.colorDot,style:{backgroundColor:h}}),t.jsxs("div",{className:D.titleLegendElement,children:[u(m)," "]})]},d))}),r.noDataColor&&t.jsxs("div",{className:D.noDataContainer,children:[t.jsx("div",{className:D.noData,style:{background:r.noDataColor}}),t.jsx("div",{className:D.absoluteValueText,children:t.jsx("span",{children:u(r.noDataText)})})]})]}),l&&t.jsx("button",{className:D.moreInfoContainer,onClick:l,children:a||u("moreInformation")})]})};At.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 a0="_logo_1ewa6_2",ct={logo:a0},It=({src:n,alt:d,href:i})=>{const{t:o}=T.useTranslation(),s=t.jsx("img",{src:n,alt:o(d)});return i?t.jsx("div",{className:ct.logo,children:t.jsx("a",{href:i,children:s})}):t.jsx("div",{className:ct.logo,children:s})};It.propTypes={src:e.string.isRequired,alt:e.string.isRequired,href:e.string,className:e.string};const l0="_mapContainer_84pkf_2",c0={mapContainer:l0};l2.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const Ot=({initialView:n={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:d=17,minZoom:i=8,mapStyle:o,firstSymbolLayer:s,cssProps:r="",onClick:l="",interactiveLayers:a=[],popUp:c=!1,sources:u=[],layers:m=[]})=>{const h=y.useRef(),[x,g]=y.useState(null),_=c2.useSelector(f=>f.mapState.showTexts);return y.useEffect(()=>{if(h.current){const f=h.current.getMap();f.getStyle().layers.map(p=>{p.type=="symbol"&&p.id!="professionals"&&(_?f.setLayoutProperty(p.id,"visibility","visible"):f.setLayoutProperty(p.id,"visibility","none"))})}},[_]),t.jsx("div",{className:`${c0.mapContainer}`,style:r,children:t.jsxs(ue,{initialViewState:n,ref:h,hash:!1,maxZoom:d,minZoom:i,mapStyle:o,onClick:l,interactiveLayerIds:a,children:[u.length&&u.map((f,b)=>t.jsx(ue.Source,{...f,children:m.length&&m.map((p,C)=>{if(p.sourceId==f.id)return t.jsx(ue.Layer,{...p.layer,beforeId:s},C)})},b)),t.jsx(ue.NavigationControl,{position:"bottom-right",visualizePitch:!0}),c&&x&&t.jsx(ue.Popup,{longitude:c.longitude,latitude:c.latitude,anchor:c.anchor,onClose:()=>g(null),children:c.content})]})})};Ot.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 d0="_mapContainer_b0pyr_3",u0={mapContainer:d0},p0="_FeaturePopUp_mt8l5_2",m0="_title_mt8l5_9",dt={FeaturePopUp:p0,title:m0},h0=({props:n})=>{const{t:d}=T.useTranslation();return t.jsx("div",{className:dt.FeaturePopUp,children:n.map(i=>t.jsxs("p",{children:[t.jsxs("span",{className:dt.title,children:[t.jsx(T.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)]})]}))})},Rt=({initialView:n={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:d=17,minZoom:i=8,mapStyle:o,firstSymbolLayer:s,cssProps:r={},onClick:l="",interactiveLayers:a=[],sources:c=[],layers:u=[],popUpParams:m,onClosePopUp:h,showTexts:x,hash:g=!1})=>{const _=y.useRef();return y.useEffect(()=>{if(_.current){const f=_.current.getMap();f.getStyle().layers.map(p=>{p.type=="symbol"&&p.id!="professionals"&&(x?f.setLayoutProperty(p.id,"visibility","visible"):f.setLayoutProperty(p.id,"visibility","none"))})}},[x]),y.useEffect(()=>{let f=new d2.Protocol;return Me.addProtocol("pmtiles",f.tile),()=>{Me.removeProtocol("pmtiles")}},[]),t.jsx("div",{className:`${u0.mapContainer}`,style:r&&r,children:t.jsxs(pe,{mapLib:Me,initialViewState:n,ref:_,hash:g,maxZoom:d,minZoom:i,mapStyle:o,onClick:l,interactiveLayerIds:a,children:[c.length&&c.map((f,b)=>t.jsx(pe.Source,{...f,children:u.length&&u.map((p,C)=>{if(p.sourceId==f.id)return t.jsx(pe.Layer,{...p.layer,beforeId:s,filter:p.filters?p.filters:["all"],layout:{visibility:p.layer.visibility||"visible"}},C)})},b)),t.jsx(pe.NavigationControl,{position:"bottom-right",visualizePitch:!0}),m&&t.jsx(pe.Popup,{longitude:m.lng,latitude:m.lat,onClose:h,children:t.jsx(h0,{props:m.props})})]})})};Rt.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,visibility:e.string}),filters:e.array})),showTexts:e.bool,popUpParams:e.object,onClosePopUp:e.func};const g0="_sectionBar_1egwc_2",C0="_leftContent_1egwc_14",x0="_textContainer_1egwc_20",f0="_title_1egwc_27",b0="_subtitle_1egwc_33",y0="_rightContent_1egwc_38",se={sectionBar:g0,leftContent:C0,textContainer:x0,title:f0,subtitle:b0,rightContent:y0},qt=({leftIcon:n,title:d,subtitle:i,rightContent:o,mainColor:s,width:r,borderTop:l=!1})=>{const{t:a}=T.useTranslation();return t.jsxs("div",{className:se.sectionBar,style:{width:r&&r,borderTop:l?"1px solid #000":"0px"},children:[t.jsxs("div",{className:se.leftContent,children:[n&&t.jsx("img",{src:n,alt:"Icono",className:se.icon}),t.jsxs("div",{className:se.textContainer,children:[t.jsx("div",{className:se.title,children:a(d)}),i&&t.jsx("div",{className:se.subtitle,children:i})]})]}),t.jsx("div",{className:se.rightContent,children:o})]})};qt.propTypes={leftIcon:e.string,title:e.string.isRequired,subtitle:e.string,rightContent:e.node,mainColor:e.string,width:e.oneOfType([e.string,e.number]),borderTop:e.bool};const _0=u2.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:Xi,setActiveIndicatorKey:Qi,setActiveIndicatorType:Ji,setActiveIndicatorUnit:e1}=_0.actions,v0="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",j0="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",w0="_slider_1prh1_2",N0="_playButton_1prh1_14",k0="_sliderOpen_1prh1_25",S0="_sliderResults_1prh1_29",he={slider:w0,playButton:N0,sliderOpen:k0,sliderResults:S0},Et=({onResults:n=!1,defaultYear:d=2025,firstYear:i=2025,lastYear:o=2050,zIndex:s=10,rightBarOpen:r=!1,onChange:l=a=>{console.log("year changed to ",a)}})=>{const[a,c]=y.useState(d),u=(p,C)=>{c(C),l(C)},[m,h]=y.useState(!1),x=()=>{h(!0)},g=()=>{h(!1)};((p,C)=>{const j=y.useRef();y.useEffect(()=>{j.current=p},[p]),y.useEffect(()=>{function v(){j.current()}{let w=setInterval(v,C);return()=>clearInterval(w)}},[C])})(()=>{m&&(a!=2050?(c(a+1),l(a+1)):(c(2025),l(2025)))},1e3);const f=tt.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}}),b=[{label:"",value:2025},{label:"",value:2032},{label:"",value:2041},{label:"",value:2050}];return t.jsx(m2.ThemeProvider,{theme:f,children:t.jsxs(tt.Box,{sx:{width:400},className:`${n?he.sliderResults:he.slider} ${r?he.sliderOpen:""}`,style:{zIndex:s},children:[i,t.jsx(p2,{"aria-label":"TimeSlider",value:a,valueLabelDisplay:"on",step:1,marks:b,min:i,max:o,onChange:u,color:"primary",size:"small"}),o,!m&&t.jsx("button",{className:he.playButton,onClick:x,children:t.jsx("img",{src:v0,alt:"Play"})}),m&&t.jsx("button",{className:he.playButton,onClick:g,children:t.jsx("img",{src:j0,alt:"Pause"})})]})})};Et.propTypes={defaultYear:e.number,onResults:e.bool,firstYear:e.number,lastYear:e.number,zIndex:e.number,rightBarOpen:e.bool,onChange:e.func};const T0="_TopNavMenuContainer_12mp4_2",$0="_topNavOptions_12mp4_13",B0="_active_12mp4_27",Ae={TopNavMenuContainer:T0,topNavOptions:$0,active:B0},Pt=({options:n=[],containerStyles:d,borderColor:i="red",textColor:o="white",onChangeNavLink:s=r=>{console.log("Changed NavLink",r)}})=>{const{t:r}=T.useTranslation();return t.jsx("div",{className:Ae.TopNavMenuContainer,style:{...d},children:n.map((l,a)=>t.jsx(ft.NavLink,{to:l.url,className:({isActive:c})=>`${Ae.topNavOptions} ${c?Ae.active:""} `,onClick:()=>s(l.url),style:({isActive:c})=>({color:o,borderBottom:c?`5px solid ${i}`:"5px solid transparent"}),children:r(l.name)},a))})};Pt.propTypes={options:e.arrayOf(e.object),cssProps:e.shape({borderColor:e.string.isRequired,textColor:e.string.isRequired})};const L0="_LogInButton_1vxj5_2",M0={LogInButton:L0},zt=({cssClass:n,notLoggedInLabel:d="Log in",loggedInLabel:i="Log out",containerStyles:o,userName:s="",isLoggedIn:r=!1,onClickLogIn:l=()=>{console.log("Login clicked")},onClickLogOut:a=()=>{console.log("Logout clicked")}})=>{const{t:c}=T.useTranslation();return t.jsx("div",{style:{...o},className:`${M0.LogInButton} link ${n}`,onClick:r?a:l,children:r?s||c(i):c(d)})};zt.propTypes={cssClass:e.string,notLoggedInLabel:e.string,loggedInLabel:e.string,containerStyles:e.object,userName:e.string,isLoggedIn:e.bool};const V0="_elementSelector_1ox68_2",D0="_header_1ox68_14",F0="_nameDateContainer_1ox68_24",A0="_elementName_1ox68_40",I0="_elementDate_1ox68_54",O0="_buttonsContainer_1ox68_68",R0="_elementListContainer_1ox68_77",q0="_newElementButtonContainer_1ox68_81",Z={elementSelector:V0,header:D0,nameDateContainer:F0,elementName:A0,elementDate:I0,buttonsContainer:O0,elementListContainer:R0,newElementButtonContainer:q0},E0="_listElement_1evjl_2",P0="_elementNameDate_1evjl_18",z0="_elementNameContainer_1evjl_28",Z0="_elementName_1evjl_18",H0="_elementDate_1evjl_43",K0="_elementButtons_1evjl_46",U0="_moreInfoContainer_1evjl_69",W0="_moreInfo_1evjl_69",z={listElement:E0,elementNameDate:P0,elementNameContainer:z0,elementName:Z0,elementDate:H0,elementButtons:K0,break:"_break_1evjl_64",moreInfoContainer:U0,moreInfo:W0},G0="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",Y0="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",X0="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",Q0="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",J0="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 ut;function Pe(){return Pe=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},Pe.apply(null,arguments)}var en=function(d){return ce.createElement("svg",Pe({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},d),ut||(ut=ce.createElement("g",{fill:"currentColor"},ce.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"}),ce.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 tn="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",Zt=({listelement:n,onClickElement:d,isActive:i,activeColor:o,fontColor:s,moreInfo:r,columns:l,elementButtons:a,processTooltip:c,defaultTooltip:u,showEye:m=!0})=>{const{name:h,created_at:x,id:g,isBeingProcessed:_}=n,[f,b]=y.useState(!1),{t:p}=T.useTranslation();return t.jsxs("div",{className:z.listElement,style:{borderBottom:`1px solid ${s}`},children:[t.jsx("div",{className:z.elementNameDate,onClick:()=>d(g),children:Object.keys(l).map(C=>C==="name"?t.jsx("div",{className:z.elementNameContainer,children:t.jsxs("div",{className:z.elementName,children:[m&&(i?t.jsx(en,{style:{color:o,marginRight:9}}):t.jsx("img",{style:{marginRight:9},src:tn,alt:"eye"})),t.jsx("span",{style:{color:i?o:s},children:h})]})}):C=="data"?t.jsx("div",{className:z.elementDate,children:x?new Date(x).toLocaleDateString():""}):t.jsx("div",{className:z.elementDate,children:n[C]}))}),t.jsxs("div",{className:z.elementButtons,children:[n.processing&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("img",{src:Q0}),t.jsx(Y,{text:c,position:"left"})]}),a.filter&&!n.is_default&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:()=>a.filter.onclick(n),children:t.jsx("img",{src:X0})}),t.jsx(Y,{text:a.filter.tooltiptext,position:"left"})]}),a.copy&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:()=>a.copy.onclick(n),children:t.jsx("img",{src:Y0})}),t.jsx(Y,{text:a.copy.tooltiptext,position:"left"})]}),a.trash&&!n.is_default&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("button",{onClick:()=>a.trash.onclick(n),children:t.jsx("img",{src:G0})}),t.jsx(Y,{text:a.trash.tooltiptext,position:"left"})]}),n.is_default&&t.jsxs("div",{className:"tooltip-parent",children:[t.jsx("img",{src:J0}),t.jsx(Y,{text:u,position:"left"})]})]}),r&&t.jsx("div",{className:z.break}),r&&t.jsxs("div",{className:z.moreInfoContainer,children:[t.jsxs("div",{className:z.moreInfo,onClick:()=>b(!f),children:[t.jsx("span",{children:f?"-":"+"}),p(r.label)]}),r&&f&&t.jsx("div",{className:z.moreInfoInfo,children:n[r.info]})]})]})};Zt.propTypes={listelement:e.shape({name:e.string.isRequired,created_at:e.string,id:e.any.isRequired,isBeingProcessed:e.bool}).isRequired,onClickElement:e.func.isRequired,isActive:e.bool,activeColor:e.string,fontColor:e.string,moreInfo:e.any,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 pt="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",Ht=({elementsList:n,activeElementId:d,fontColor:i="#605B56",activeColor:o,buttonContainerStyles:s={},containerStyles:r={},newElementButton:l,onClickElement:a=_=>console.log(`OnCLickElement: ${_}`),columns:c,elementButtons:u,moreInfo:m=!1,processTooltip:h,defaultTooltip:x,showEye:g=!0})=>{const{t:_}=T.useTranslation(),[f,b]=y.useState(n);y.useEffect(()=>{n&&b(n)},[n]);const p=C=>{if(f&&f.length>0){let j=[...f];j.sort((v,w)=>v[C].localeCompare(w[C])),b(j)}};return t.jsxs("div",{className:Z.elementSelector,style:{color:i,...r},children:[t.jsxs("div",{className:Z.header,style:{borderBottom:`1px solid ${i}`},children:[t.jsx("div",{className:Z.nameDateContainer,children:Object.keys(c).map(C=>C==="name"?t.jsx("div",{className:Z.elementName,children:t.jsxs("button",{onClick:()=>p("name"),children:[t.jsx("span",{children:_(c.name)}),t.jsx("img",{src:pt,alt:"order arrow"})]})},C):C==="data"?t.jsx("div",{className:Z.elementDate,children:t.jsxs("button",{onClick:()=>p("date"),children:[t.jsx("span",{children:_(c.data)}),t.jsx("img",{src:pt,alt:"order arrow"})]})},C):t.jsx("div",{className:Z.elementDate,children:t.jsx("span",{children:_(c[C])})},C))}),t.jsx("div",{className:Z.buttonsContainer})]}),t.jsx("div",{className:Z.elementListContainer,children:f&&f.length>0&&f.map(C=>t.jsx(Zt,{isActive:d==C.id,listelement:C,fontColor:i,activeColor:o,onClickElement:a,columns:c,elementButtons:u,moreInfo:m,processTooltip:h,defaultTooltip:x,showEye:g},`elementKey${C.id}`))}),l&&t.jsx("div",{className:Z.newElementButtonContainer,children:t.jsx(be,{style:{...s},onClick:l.onClick,borderColor:"grey",disabled:l.disabled||!1,children:_(l.label)})})]})};Ht.propTypes={elementsList:e.arrayOf(e.shape({name:e.string.isRequired,created_at:e.string,id:e.any.isRequired})).isRequired,activeElementId:e.any,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 sn="_formContainer_asv64_2",nn="_categorySelectorContainer_asv64_11",on="_formObjectContainer_asv64_15",rn="_buttonContainer_asv64_26",ge={formContainer:sn,categorySelectorContainer:nn,formObjectContainer:on,buttonContainer:rn},Ce={text:"text",password:"password",radioList:"radioList",select:"select"};var an=n=>n.type==="checkbox",ln=n=>n instanceof Date,Kt=n=>n==null;const cn=n=>typeof n=="object";var ye=n=>!Kt(n)&&!Array.isArray(n)&&cn(n)&&!ln(n),dn=n=>ye(n)&&n.target?an(n.target)?n.target.checked:n.target.value:n,un=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,pn=(n,d)=>n.has(un(d)),mn=n=>{const d=n.constructor&&n.constructor.prototype;return ye(d)&&d.hasOwnProperty("isPrototypeOf")},hn=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ut(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(!(hn&&(n instanceof Blob||o))&&(i||ye(n)))if(d=i?[]:{},!i&&!mn(n))d=n;else for(const s in n)n.hasOwnProperty(s)&&(d[s]=Ut(n[s]));else return n;return d}var Wt=n=>/^\w*$/.test(n),ze=n=>n===void 0,gn=n=>Array.isArray(n)?n.filter(Boolean):[],Gt=n=>gn(n.replace(/["|']|\]/g,"").split(/\.|\[/)),I=(n,d,i)=>{if(!d||!ye(n))return i;const o=(Wt(d)?[d]:Gt(d)).reduce((s,r)=>Kt(s)?s:s[r],n);return ze(o)||o===n?ze(n[d])?i:n[d]:o},Ie=n=>typeof n=="boolean",mt=(n,d,i)=>{let o=-1;const s=Wt(d)?[d]:Gt(d),r=s.length,l=r-1;for(;++o<r;){const a=s[o];let c=i;if(o!==l){const u=n[a];c=ye(u)||Array.isArray(u)?u:isNaN(+s[o+1])?{}:[]}if(a==="__proto__"||a==="constructor"||a==="prototype")return;n[a]=c,n=n[a]}};const ht={BLUR:"blur",CHANGE:"change"},gt={all:"all"},Yt=y.createContext(null);Yt.displayName="HookFormContext";const Ye=()=>y.useContext(Yt);var Cn=(n,d,i,o=!0)=>{const s={defaultValues:d._defaultValues};for(const r in n)Object.defineProperty(s,r,{get:()=>{const l=r;return d._proxyFormState[l]!==gt.all&&(d._proxyFormState[l]=!o||gt.all),i&&(i[l]=!0),n[l]}});return s};const Xt=typeof window<"u"?ce.useLayoutEffect:ce.useEffect;function xn(n){const d=Ye(),{control:i=d.control,disabled:o,name:s,exact:r}=n||{},[l,a]=y.useState(i._formState),c=y.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Xt(()=>i._subscribe({name:s,formState:c.current,exact:r,callback:u=>{!o&&a({...i._formState,...u})}}),[s,o,r]),y.useEffect(()=>{c.current.isValid&&i._setValid(!0)},[i]),y.useMemo(()=>Cn(l,i,c.current,!1),[l,i])}var fn=n=>typeof n=="string",bn=(n,d,i,o,s)=>fn(n)?I(i,n,s):Array.isArray(n)?n.map(r=>I(i,r)):i;function yn(n){const d=Ye(),{control:i=d.control,name:o,defaultValue:s,disabled:r,exact:l}=n||{},a=y.useRef(s),[c,u]=y.useState(i._getWatch(o,a.current));return Xt(()=>i._subscribe({name:o,formState:{values:!0},exact:l,callback:m=>!r&&u(bn(o,i._names,m.values||i._formValues,!1,a.current))}),[o,i,r,l]),y.useEffect(()=>i._removeUnmounted()),c}function _n(n){const d=Ye(),{name:i,disabled:o,control:s=d.control,shouldUnregister:r}=n,l=pn(s._names.array,i),a=yn({control:s,name:i,defaultValue:I(s._formValues,i,I(s._defaultValues,i,n.defaultValue)),exact:!0}),c=xn({control:s,name:i,exact:!0}),u=y.useRef(n),m=y.useRef(s.register(i,{...n.rules,value:a,...Ie(n.disabled)?{disabled:n.disabled}:{}})),h=y.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!I(c.errors,i)},isDirty:{enumerable:!0,get:()=>!!I(c.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!I(c.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!I(c.validatingFields,i)},error:{enumerable:!0,get:()=>I(c.errors,i)}}),[c,i]),x=y.useCallback(b=>m.current.onChange({target:{value:dn(b),name:i},type:ht.CHANGE}),[i]),g=y.useCallback(()=>m.current.onBlur({target:{value:I(s._formValues,i),name:i},type:ht.BLUR}),[i,s._formValues]),_=y.useCallback(b=>{const p=I(s._fields,i);p&&b&&(p._f.ref={focus:()=>b.focus&&b.focus(),select:()=>b.select&&b.select(),setCustomValidity:C=>b.setCustomValidity(C),reportValidity:()=>b.reportValidity()})},[s._fields,i]),f=y.useMemo(()=>({name:i,value:a,...Ie(o)||c.disabled?{disabled:c.disabled||o}:{},onChange:x,onBlur:g,ref:_}),[i,o,c.disabled,x,g,_,a]);return y.useEffect(()=>{const b=s._options.shouldUnregister||r;s.register(i,{...u.current.rules,...Ie(u.current.disabled)?{disabled:u.current.disabled}:{}});const p=(C,j)=>{const v=I(s._fields,C);v&&v._f&&(v._f.mount=j)};if(p(i,!0),b){const C=Ut(I(s._options.defaultValues,i));mt(s._defaultValues,i,C),ze(I(s._formValues,i))&&mt(s._formValues,i,C)}return!l&&s.register(i),()=>{(l?b&&!s._state.action:b)?s.unregister(i):p(i,!1)}},[i,s,l,r]),y.useEffect(()=>{s._setDisabledField({disabled:o,name:i})},[o,i,s]),y.useMemo(()=>({field:f,formState:c,fieldState:h}),[f,c,h])}const _e=n=>n.render(_n(n)),vn="_textInputContainer_1o3iy_2",jn="_labelContainer_1o3iy_5",wn="_inputContainer_1o3iy_8",Nn="_showPasswordButton_1o3iy_14",kn="_forgotPassButton_1o3iy_26",xe={textInputContainer:vn,labelContainer:jn,inputContainer:wn,showPasswordButton:Nn,forgotPassButton:kn},Sn="_errorMessage_1xiyb_2",Tn={errorMessage:Sn},de=({errorMessage:n,errorColor:d="red",containerStyles:i})=>{const{t:o}=T.useTranslation();return t.jsx("div",{className:Tn.errorMessage,style:{color:d,...i},children:n?o(n):""})},$n="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%205763'%3e%3cpath%20id='Vector'%20d='M12.95%200C7.659%200%202.84899%202.3634%200.0832465%206.31776C-0.0277488%206.47963%20-0.0277488%206.68776%200.0832465%206.84962C2.84439%2010.804%207.65437%2013.1628%2012.95%2013.1628C18.2456%2013.1628%2023.0556%2010.804%2025.8168%206.84962C25.9278%206.68775%2025.9278%206.47963%2025.8168%206.31776C23.051%202.36339%2018.241%200%2012.95%200ZM12.95%2010.8132C10.619%2010.8132%208.71812%208.91238%208.71812%206.58139C8.71812%204.25041%2010.619%202.34951%2012.95%202.34951C15.281%202.34951%2017.1819%204.25038%2017.1819%206.58139C17.1819%208.91241%2015.281%2010.8132%2012.95%2010.8132Z'%20fill='white'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%209.88816C14.7777%209.88816%2016.2583%208.40763%2016.2583%206.58129C16.2583%204.75495%2014.7777%203.27441%2012.9514%203.27441C11.1251%203.27441%209.64453%204.75495%209.64453%206.58129C9.64453%208.40763%2011.1251%209.88816%2012.9514%209.88816Z'%20fill='white'/%3e%3c/g%3e%3c/svg%3e",Bn="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%205995'%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='white'%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='white'%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='white'%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='white'%20fill-opacity='0.5'/%3e%3c/g%3e%3c/svg%3e",ve=xt.create(n=>({errorColor:"red"})),Ze=({input:n,reactHookFormInstance:d})=>{const{code:i,type:o,label:s,maxLength:r,required:l,validateFunction:a,placeholder:c,errorColor:u="red",width:m=325,onClickForgotPass:h=()=>{console.log("Click on forgot password")},forgotPassLabel:x="forgot-password"}=n,{t:g}=T.useTranslation(),{control:_,trigger:f,clearErrors:b}=d,{errorColor:p}=ve(w=>w),[C,j]=y.useState(!1);y.useRef(l);const v=()=>o?o==="password"&&C?"text":o:"text";return t.jsx(_e,{name:i,control:_,rules:{required:l?`${g(s)} ${g("errorMessages.required")}`:!1,maxLength:r||void 0,validate:a||void 0},render:({field:w,fieldState:k})=>{var S;return t.jsxs("div",{className:xe.textInputContainer,children:[t.jsxs("h3",{className:xe.labelContainer,children:[g(s)," ",l&&t.jsx("label",{style:{color:k.error?u:""},children:"*"})]}),t.jsxs("div",{style:{position:"relative",width:m},className:xe.inputContainer,children:[t.jsx("input",{type:v(),...w,placeholder:c?g(c):"",maxLength:r||void 0}),o=="password"&&t.jsx("button",{onClick:()=>j(!C),type:"button",className:xe.showPasswordButton,children:t.jsx("img",{src:C?Bn:$n,alt:g("show-password")})})]}),o=="password"&&t.jsx("div",{className:xe.forgotPassButton,children:t.jsx("button",{onClick:h,children:g(x)})}),t.jsx(de,{errorMessage:(S=k.error)==null?void 0:S.message,errorColor:p||u})]})}})},Ln="_inputsContainer_10t9s_2",ae={inputsContainer:Ln},Mn="_selectInputContainer_1rj0h_2",Vn="_labelContainer_1rj0h_6",Dn="_inputContainer_1rj0h_9",Fn="_selectInput_1rj0h_2",An="_option_1rj0h_23",In="_dropdownArrow_1rj0h_26",E={selectInputContainer:Mn,labelContainer:Vn,inputContainer:Dn,selectInput:Fn,option:An,dropdownArrow:In},Ct="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",Qt=({input:n,reactHookFormInstance:d,onChange:i})=>{const{code:o,type:s,label:r,maxLength:l,required:a,validateFunction:c,placeholder:u,errorColor:m="red",width:h=325,options:x=[]}=n,{t:g}=T.useTranslation(),{control:_,trigger:f,clearErrors:b}=d||{},{errorColor:p}=ve(v=>v);y.useRef(a);const[C,j]=y.useState(null);return y.useEffect(()=>{C&&i&&i(C)},[C,i]),d?t.jsx(_e,{name:o,control:_,rules:{required:a?`${g(r)} ${g("errorMessages.required")}`:!1,validate:c?v=>{let w=d.getValues();return c(v,w)}:void 0},render:({field:v,fieldState:w})=>{var k;return t.jsxs("div",{className:E.selectInputContainer,children:[r&&t.jsxs("h3",{className:E.labelContainer,children:[g(r)," ",a&&t.jsx("label",{style:{color:w.error?m:""},children:"*"})]}),t.jsxs("div",{className:E.inputContainer,style:{width:h},children:[t.jsxs("select",{...v,onChange:S=>{const N=S.target.value,$=x.every(M=>typeof M.value=="number")?Number(N):N;v.onChange($)},className:E.selectInput,children:[t.jsx("option",{value:"",disabled:!0,hidden:!0,children:g(u||"selectOption")}),x.map((S,N)=>t.jsx("option",{value:S.value,className:E.option,children:g(S.label)},N))]}),t.jsx("img",{src:Ct,alt:"Open",className:E.dropdownArrow})]}),t.jsx(de,{errorMessage:(k=w.error)==null?void 0:k.message,errorColor:p||m})]})}}):t.jsxs("div",{className:E.selectInputContainer,children:[r&&t.jsxs("h3",{className:E.labelContainer,children:[g(r)," ",a&&t.jsx("label",{children:"*"})]}),t.jsxs("div",{className:E.inputContainer,style:{width:h},children:[t.jsxs("select",{value:C||"",onChange:v=>{const w=v.target.value,k=x.every(S=>typeof S.value=="number")?Number(w):w;j(k)},className:E.selectInput,children:[t.jsx("option",{value:"",disabled:!0,hidden:!0,children:g(u||"selectOption")}),x.map((v,w)=>t.jsx("option",{value:v.value,className:E.option,children:g(v.label)},w))]}),t.jsx("img",{src:Ct,alt:"Open",className:E.dropdownArrow})]})]})},On="_radioButtonContainer_1e994_2",Rn="_wholeInputContainer_1e994_5",qn="_questionContainer_1e994_27",En="_radioQuestion_1e994_59",Pn="_inputContainer_1e994_63",zn="_radioInput_1e994_93",ne={radioButtonContainer:On,wholeInputContainer:Rn,questionContainer:qn,radioQuestion:En,inputContainer:Pn,radioInput:zn},Jt=({input:n,reactHookFormInstance:d})=>{const{code:i,label:o,required:s,validateFunction:r,errorColor:l="red",options:a=[],multi:c=!1}=n,{t:u}=T.useTranslation(),{control:m,trigger:h,clearErrors:x}=d,{errorColor:g}=ve(b=>b),_=({options:b,onChange:p,actualValue:C})=>{if(c&&C&&C.length>0){let j=C.filter(v=>v!==b);p(j)}},f=({options:b,onChange:p,actualValue:C})=>{c?C&&C.length>0?p([...C,b]):p([b]):p(b)};return y.useRef(s),t.jsx(_e,{control:m,name:i,rules:{validate:b=>s&&(b==null||b==="")?`${u(o)} ${u("errorMessages.required")}`:null},render:({formState:{errors:b},field:{onChange:p,onBlur:C,value:j,ref:v},fieldState:w})=>{var k;return t.jsx("div",{id:i+"id",className:ne.radioButtonContainer,children:t.jsxs("div",{className:ne.wholeInputContainer,children:[o&&t.jsx("div",{className:ne.questionContainer,children:t.jsxs("h3",{htmlFor:i+"id",className:`${ne.radioQuestion} ${s&&ne.required}`,children:[u(o)," ",s&&t.jsx("label",{style:{color:w.error?l:""},children:"*"})]})}),t.jsxs("div",{className:ne.inputContainer,children:[a.map(({label:S,value:N,disabled:$=!1,italicLabel:M},P)=>{const B=j&&c?j.isArray&&(j==null?void 0:j.length)>0&&j.some(R=>R===N):j===N;return t.jsxs("label",{children:[t.jsx("input",{type:"radio",checked:B,onChange:()=>{c?B?_({actualValue:j,options:a,onChange:p}):f({actualValue:j,options:a,onChange:p}):p(N)},className:ne.radioInput}),t.jsx("span",{className:"radio-custom"}),u(S)]},`inputRadio ${P}`)}),t.jsx(de,{errorMessage:(k=w.error)==null?void 0:k.message,errorColor:g||l})]})]})})}})},Zn="_rankingSliderContainer_1lekm_2",Hn="_labelContainer_1lekm_6",Kn="_inputContainer_1lekm_10",Un="_slider_1lekm_20",Wn="_thumb_1lekm_27",Gn="_labels_1lekm_37",Yn="_minLabel_1lekm_67",Xn="_maxLabel_1lekm_67",V={rankingSliderContainer:Zn,labelContainer:Hn,inputContainer:Kn,slider:Un,thumb:Wn,labels:Gn,minLabel:Yn,maxLabel:Xn},Xe=({input:n,reactHookFormInstance:d,onChange:i})=>{const{code:o,label:s,minValue:r=1,maxValue:l=5,defValue:a=3,thumbColor:c="#B32F5D",required:u,errorColor:m="red",labelWidth:h="300px",sliderWidth:x="300px",minText:g,maxText:_,disabled:f=!1,marks:b=Array.from({length:l-r+1},($,M)=>r+M),showMarksNumber:p=!0}=n,{t:C}=T.useTranslation(),{control:j,trigger:v,clearErrors:w}=d||{};y.useRef(u);const{errorColorForm:k}=ve($=>$),[S,N]=y.useState(a);return d?t.jsx(_e,{name:o,control:j,defaultValue:a,rules:{required:u?`${C(s)} ${C("errorMessages.required")}`:!1},render:({field:$,fieldState:M})=>{var P;return t.jsxs("div",{className:V.rankingSliderContainer,style:{gridTemplateColumns:`${s&&h} ${x}`},children:[s&&t.jsx("p",{className:V.labelContainer,children:C(s)}),t.jsxs("div",{className:V.inputContainer,children:[g&&t.jsx("div",{className:V.minLabel,children:C(g)}),t.jsxs("div",{children:[t.jsx(Ee,{min:r,max:l,step:1,value:$.value??a,onChange:B=>$.onChange(B),marks:!0,className:V.slider,thumbClassName:V.thumb,renderThumb:B=>t.jsx("div",{...B,style:{...B.style,backgroundColor:c}}),trackClassName:V.track,markClassName:V.mark,disabled:f}),b&&t.jsx("div",{className:V.labels,children:b.map(B=>t.jsx("span",{children:p&&B},B))})]}),_&&t.jsx("div",{className:V.maxLabel,children:C(_)})]}),t.jsx(de,{errorMessage:(P=M.error)==null?void 0:P.message,errorColor:k||m})]})}}):t.jsxs("div",{className:V.rankingSliderContainer,style:{gridTemplateColumns:`${s&&h} ${x}`},children:[s&&t.jsx("p",{className:V.labelContainer,children:C(s)}),t.jsxs("div",{className:V.inputContainer,children:[g&&t.jsx("div",{className:V.minLabel,children:C(g)}),t.jsxs("div",{children:[t.jsx(Ee,{min:r,max:l,step:1,value:S,onChange:$=>{N($),i&&i($)},marks:!0,className:V.slider,thumbClassName:V.thumb,renderThumb:$=>t.jsx("div",{...$,style:{...$.style,backgroundColor:c}}),trackClassName:V.track,markClassName:V.mark,disabled:f}),b&&t.jsx("div",{className:V.labels,children:b.map($=>t.jsx("span",{children:p&&$},$))})]}),_&&t.jsx("div",{className:V.maxLabel,children:C(_)})]})]})};Xe.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 fe=({inputs:n,inputContainerStyles:d,reactHookFormInstance:i})=>{console.log("inputs: ",n);const{watch:o}=i,s=o(),r=y.useMemo(()=>n==null?void 0:n.map(l=>{const a=typeof l.required=="function"?l.required(s):l.required;return{...l,required:a}}),[n,s]);return t.jsx("div",{className:ae.inputsContainer,children:r==null?void 0:r.map((l,a)=>{const{inputType:c}=l;switch(c){case Ce.text:return t.jsx("div",{className:ae.inputContainer,style:{...d},children:t.jsx(Ze,{input:l,reactHookFormInstance:i})},`${l.code}${a}`);case Ce.password:return t.jsx("div",{className:ae.inputContainer,style:{...d},children:t.jsx(Ze,{input:l,reactHookFormInstance:i})},`${l.code}${a}`);case Ce.select:return t.jsx("div",{className:ae.inputContainer,style:{...d},children:t.jsx(Qt,{input:l,reactHookFormInstance:i})},`${l.code}${a}`);case Ce.radioList:return t.jsx("div",{className:ae.inputContainer,style:{...d},children:t.jsx(Jt,{input:l,reactHookFormInstance:i})},`${l.code}${a}`);case Ce.rankingSlider:return t.jsx("div",{className:ae.inputContainer,style:{...d},children:t.jsx(Xe,{input:l,reactHookFormInstance:i})},`${l.code}${a}`);default:return t.jsx("div",{children:t.jsx("h4",{children:"Default"})},`${l.code}${a}`)}})})},Qn="_categorySelector_1t164_2",Jn="_sectionItemActive_1t164_16",ei="_sectionItem_1t164_16",Te={categorySelector:Qn,sectionItemActive:Jn,sectionItem:ei},He=({categories:n,onChange:d,activeCategory:i,activeColor:o,containerStyles:s={}})=>{const{t:r}=T.useTranslation(),l=a=>{d(a)};return t.jsx("div",{className:Te.categorySelector,style:s?{...s}:{},children:n.map((a,c)=>{const{id:u,label:m}=a,h=i==u;return t.jsx("button",{className:`${Te.sectionItem} ${h?Te.sectionItemActive:""}`,type:"button",style:{backgroundColor:h?o:"inherit"},onClick:()=>l(u),children:t.jsx("span",{style:{color:h?"white":"inherit"},className:Te.sectionLabel,children:r(m)})},`keySection${c}`)})})},ti=({reactHookFormInstance:n,formObject:d,CategoryComponent:i,inputContainerStyles:o,generalError:s,errorColor:r="red",submitButtonLabel:l="Submit",submitButtonStyles:a={width:325},showCategorySelector:c=!0,defaultCategory:u=null,categoryLabel:m="Select Category",activeCategory:h=null,activeCategoryColor:x="#b32f5d",onSubmit:g=_=>console.log("Form submitted with: ",_)})=>{const{t:_}=T.useTranslation(),{handleSubmit:f,control:b}=n;y.useEffect(()=>{r&&ve.setState(()=>({errorColor:r}))},[r]);const p=y.useMemo(()=>d?d.filter(N=>N.category).map(N=>{var $;return{id:N.categoryId,label:N.category,hasSubcategories:(($=N.subcategories)==null?void 0:$.length)>0}}):[],[d]),C=N=>{const $=d==null?void 0:d.find(M=>M.categoryId===N);return($==null?void 0:$.subcategories)||[]},[j,v]=y.useState(h||u||null),[w,k]=y.useState(null);y.useEffect(()=>{!j&&p.length>0&&v(p[0].id)},[p,j]),y.useEffect(()=>{const N=C(j);!w&&(N==null?void 0:N.length)>0&&k(N[0].id)},[j,w,d]);const S=(N,$)=>{var M;if(((M=N.subcategories)==null?void 0:M.length)>0){const P=N.subcategories;return t.jsxs("div",{children:[t.jsx("div",{className:ge.categorySelectorContainer,children:t.jsx(He,{activeCategory:w,categories:P,onChange:B=>k(B),activeColor:x})},N.categoryId),P.map((B,R)=>{const q=!w||B.id===w;return i?t.jsx("div",{style:{display:q?"block":"none",width:"100%"},children:t.jsx(i,{title:B.label,children:t.jsx(fe,{inputs:B.inputs,control:b,inputContainerStyles:o,errorColor:r,reactHookFormInstance:n})},B.id)},`${B.id}${R}`):t.jsxs("div",{style:{width:"100%",display:q?"block":"none"},children:[t.jsx("h3",{style:{marginBottom:15},children:_(B.label)}),t.jsx(fe,{inputs:B.inputs,control:b,inputContainerStyles:o,errorColor:r,reactHookFormInstance:n})]},`${B.id}${R}`)})]})}return i?t.jsx(i,{title:N.category,children:t.jsx(fe,{inputs:N.inputs,control:b,inputContainerStyles:o,errorColor:r,reactHookFormInstance:n})},N.categoryId):t.jsxs("div",{style:{width:"100%"},children:[t.jsx("h2",{children:_(N.category)}),t.jsx(fe,{inputs:N.inputs,control:b,inputContainerStyles:o,errorColor:r,reactHookFormInstance:n})]},N.categoryId)};return t.jsxs("form",{className:ge.formContainer,onSubmit:f(g),children:[c&&p.length>0&&t.jsx("div",{className:ge.categorySelectorContainer,children:t.jsx(He,{activeCategory:j,categories:p,onChange:N=>{v(N),k(null)},activeColor:x})}),t.jsx("div",{className:ge.formObjectContainer,children:d==null?void 0:d.map((N,$)=>{const M=N.categoryId===j;return N.category&&!M?null:N.category&&M?t.jsx("div",{style:{width:"100%"},children:S(N)},N.categoryId):t.jsx(fe,{inputs:N.inputs,control:b,inputContainerStyles:o,errorColor:r,reactHookFormInstance:n})})}),t.jsxs("div",{className:ge.buttonContainer,children:[t.jsx(be,{containerStyles:a,type:"submit",children:_(l)}),t.jsx(de,{errorMessage:s,errorColor:r})]})]})},si="_overlay_mnd4j_2",ni="_modal_mnd4j_15",ii="_closeButton_mnd4j_29",oi="_icon_mnd4j_39",ri="_message_mnd4j_45",ai="_submessage_mnd4j_51",li="_buttonsContainer_mnd4j_57",ci="_buttonWrapper_mnd4j_64",W={overlay:si,modal:ni,closeButton:ii,icon:oi,message:ri,submessage:ai,buttonsContainer:li,buttonWrapper:ci},e2=({onClose:n,icon:d,message:i,submessage:o,buttons:s,maxHeight:r="450px",maxWidth:l="450px"})=>t.jsx("div",{className:W.overlay,children:t.jsxs("div",{className:W.modal,style:{maxHeight:r,maxWidth:l},children:[t.jsx("button",{className:W.closeButton,onClick:n,"aria-label":"Close modal",children:"✕"}),d&&t.jsx("img",{src:d,alt:"icon",className:W.icon}),t.jsx("p",{className:W.message,children:i}),o&&t.jsx("p",{className:W.submessage,children:o}),s.length>0&&t.jsx("div",{className:W.buttonsContainer,children:s.map((a,c)=>t.jsx("div",{className:W.buttonWrapper,children:a},c))})]})});e2.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 di="_stepsContainer_1cyua_3",ui="_stepWrapper_1cyua_9",pi="_circleContainer_1cyua_19",mi="_circle_1cyua_19",hi="_active_1cyua_39",gi="_completed_1cyua_44",Ci="_label_1cyua_50",xi="_labelActive_1cyua_56",fi="_connector_1cyua_61",H={stepsContainer:di,stepWrapper:ui,circleContainer:pi,circle:mi,active:hi,completed:gi,label:Ci,labelActive:xi,connector:fi},Qe=({steps:n,activeColor:d})=>t.jsx("div",{className:H.stepsContainer,children:n.map((i,o)=>{const s=i.status==="active",r=i.status==="completed";return t.jsxs("div",{className:H.stepWrapper,children:[t.jsxs("div",{className:H.circleContainer,children:[t.jsx("div",{className:`${H.circle}
|
|
5
5
|
${s?H.active:""}
|
|
6
|
-
${r?H.completed:""}`,style:s?{backgroundColor:d}:{},onClick:i.onClick,children:o+1}),o<n.length-1&&t.jsx("div",{className:H.connector})]}),t.jsx("div",{className:`${H.label} ${s?H.labelActive:""}`,children:i.name})]},o)})});
|
|
7
|
-
${s&&$e.active}`,children:t.jsx("span",{className:$e.buttonName,children:d(r)})})},o)})})};t2.propTypes={buttons:e.arrayOf(e.shape({isActive:e.bool,name:e.string,onClick:e.func})).isRequired};const wi="_switchContainer_194wl_2",Ni="_labelRight_194wl_9",ki="_labelLeft_194wl_9",Si="_slider_194wl_28",Ti="_disabled_194wl_54",le={switchContainer:wi,labelRight:Ni,labelLeft:ki,switch:"_switch_194wl_2",slider:Si,disabled:Ti},s2=({input:n,reactHookFormInstance:d,onChange:i,onoff:o=!0})=>{const{code:s,labelLeft:r,labelRight:
|
|
6
|
+
${r?H.completed:""}`,style:s?{backgroundColor:d}:{},onClick:i.onClick,children:o+1}),o<n.length-1&&t.jsx("div",{className:H.connector})]}),t.jsx("div",{className:`${H.label} ${s?H.labelActive:""}`,children:i.name})]},o)})});Qe.propTypes={steps:e.arrayOf(e.shape({name:e.string.isRequired,onClick:e.func,status:e.oneOf(["inactive","active","completed"]).isRequired})).isRequired,activeColor:e.string};Qe.defaultProps={activeColor:"#C2185B"};const bi="_statusTextContainer_ch14r_2",yi={statusTextContainer:bi},Je=({text:n,color:d})=>t.jsx("div",{className:yi.statusTextContainer,style:{background:d},children:t.jsx("span",{children:n})});Je.propTypes={text:e.string,color:e.string};Je.defaultProps={color:"#C2185B"};const _i="_buttonsContainer_1c7dw_2",vi="_button_1c7dw_2",ji="_active_1c7dw_20",$e={buttonsContainer:_i,button:vi,active:ji},t2=({buttons:n=[]})=>{const{t:d}=T.useTranslation();return t.jsx("div",{className:`${$e.buttonsContainer}`,children:n.map((i,o)=>{const{isActive:s,name:r,onClick:l}=i;return t.jsx("div",{children:t.jsx("button",{onClick:l,className:`${$e.button}
|
|
7
|
+
${s&&$e.active}`,children:t.jsx("span",{className:$e.buttonName,children:d(r)})})},o)})})};t2.propTypes={buttons:e.arrayOf(e.shape({isActive:e.bool,name:e.string,onClick:e.func})).isRequired};const wi="_switchContainer_194wl_2",Ni="_labelRight_194wl_9",ki="_labelLeft_194wl_9",Si="_slider_194wl_28",Ti="_disabled_194wl_54",le={switchContainer:wi,labelRight:Ni,labelLeft:ki,switch:"_switch_194wl_2",slider:Si,disabled:Ti},s2=({input:n,reactHookFormInstance:d,onChange:i,onoff:o=!0})=>{const{code:s,labelLeft:r,labelRight:l,defValue:a=!1,colorOn:c="#5A514D",disabled:u=!1,width:m=240}=n,{t:h}=T.useTranslation(),{control:x}=d||{},[g,_]=y.useState(a),f=p=>{_(p),i&&i(p)},b=(p,C)=>t.jsxs("div",{className:le.switchContainer,style:{width:`${m}px`},children:[r&&t.jsx("span",{className:le.labelLeft,style:{width:`${(m-74)/2}px`},children:h(r)}),t.jsxs("label",{className:`${le.switch} ${u?le.disabled:""}`,children:[t.jsx("input",{type:"checkbox",checked:!!p,onChange:()=>C(!p),disabled:u}),t.jsx("span",{className:le.slider,style:{"--switch-thumb-color":o?p?c:"#ccc":c}})]}),l&&t.jsx("span",{className:le.labelRight,style:{width:`${(m-74)/2}px`},children:h(l)})]});return d?t.jsx(_e,{name:s,control:x,defaultValue:a,render:({field:p})=>b(p.value,p.onChange)}):b(g,f)};s2.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 $i="_overlay_1xyw2_2",Bi="_popup_1xyw2_15",Li="_gif_1xyw2_25",Mi="_message_1xyw2_31",Be={overlay:$i,popup:Bi,gif:Li,message:Mi},n2=({gifSrc:n,message:d})=>t.jsx("div",{className:Be.overlay,children:t.jsxs("div",{className:Be.popup,children:[n&&t.jsx("img",{src:n,alt:"loading animation",className:Be.gif}),d&&t.jsx("p",{className:Be.message,children:d})]})});n2.propTypes={gifSrc:e.string,message:e.string};const Vi="_container_gnwec_2",Di="_burger_gnwec_6",Fi="_menu_gnwec_41",Ai="_list_gnwec_71",Ii="_link_gnwec_80",Oi="_button_gnwec_81",Ri="_active_gnwec_90",G={container:Vi,burger:Di,menu:Fi,list:Ai,link:Ii,button:Oi,active:Ri},et=({options:n,backgroundColor:d,textColor:i,iconColor:o})=>{const[s,r]=y.useState(!1),l=()=>r(!s),a=()=>r(!1),c=7,u=s?11:0,m=s?13:0,h=s?-11.51666:0,x=s?-13:0;return t.jsxs("div",{className:G.container,children:[t.jsx("button",{onClick:l,className:G.burger,children:t.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[t.jsx("g",{style:{transform:`translateY(${u}px)`,transition:"transform 0.8s cubic-bezier(0.42, 0, 0.58, 1)",transformBox:"fill-box",transformOrigin:"0 0"},children:t.jsx("circle",{cx:"20",cy:"9",r:c,fill:o})}),t.jsx("g",{style:{transform:`translate(${m}px,${h}px)`,transition:"transform 0.8s cubic-bezier(0.42, 0, 0.58, 1)",transformBox:"fill-box",transformOrigin:"0 0"},children:t.jsx("circle",{cx:"7",cy:"31.51666",r:c,fill:o})}),t.jsx("g",{style:{transform:`translate(${x}px,${h}px)`,transition:"transform 0.8s cubic-bezier(0.42, 0, 0.58, 1)",transformBox:"fill-box",transformOrigin:"0 0"},children:t.jsx("circle",{cx:"33",cy:"31.51666",r:c,fill:o})}),t.jsx("g",{style:{opacity:s?1:0,transition:"opacity 0.8s cubic-bezier(0.42, 0, 0.58, 1)"},children:t.jsx("circle",{cx:"20",cy:"20",r:"10",fill:o,opacity:"1"})}),t.jsxs("g",{stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round",style:{opacity:s?1:0,transition:"opacity 0.8s cubic-bezier(0.42, 0, 0.58, 1)"},children:[t.jsx("line",{x1:"17",y1:"17",x2:"23",y2:"23"}),t.jsx("line",{x1:"23",y1:"17",x2:"17",y2:"23"})]})]})}),s&&t.jsx("div",{className:G.menu,style:{backgroundColor:d,color:i},children:t.jsx("ul",{className:G.list,children:n.map((g,_)=>t.jsx("li",{className:G.item,children:g.url?t.jsx(ft.NavLink,{to:g.url,className:({isActive:f})=>`${G.link} ${f?G.active:""}`,onClick:a,style:{color:i},children:g.name}):t.jsx("button",{className:G.button,onClick:()=>{g.onclick&&g.onclick(),a()},children:g.name})},_))})})]})};et.propTypes={options:e.arrayOf(e.shape({name:e.string.isRequired,url:e.string,onclick:e.func})).isRequired,backgroundColor:e.string,textColor:e.string,iconColor:e.string};et.defaultProps={backgroundColor:"#ffffff",textColor:"#000000",iconColor:"#000000"};const qi="_header_13kbt_2",Ei="_leftComponents_13kbt_13",Pi="_centerComponents_13kbt_14",zi="_rightComponents_13kbt_15",Zi="_componentsContainer_13kbt_32",ie={header:qi,leftComponents:Ei,centerComponents:Pi,rightComponents:zi,componentsContainer:Zi},i2=({cssProps:n,leftComponents:d=[],centerComponents:i=[],rightComponents:o=[],zIndex:s=10,height:r=60,backgroundColor:l="#605B56",isFooter:a=!1})=>t.jsxs("div",{className:ie.header,style:{...n,zIndex:s,height:r,backgroundColor:l,top:a?"auto":0,bottom:a?0:"auto"},children:[t.jsx("div",{className:ie.leftComponents,children:d.map((c,u)=>t.jsx("div",{className:ie.componentsContainer,children:c},u))}),t.jsx("div",{className:ie.centerComponents,children:i.map((c,u)=>t.jsx("div",{className:ie.componentsContainer,children:c},u))}),t.jsx("div",{className:ie.rightComponents,children:o.map((c,u)=>t.jsx("div",{className:ie.componentsContainer,children:c},u))})]});i2.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 Hi="_sidebar_1kaqu_2",Ki="_open_1kaqu_16",Ui="_content_1kaqu_20",Wi="_closeButton_1kaqu_25",Le={sidebar:Hi,open:Ki,content:Ui,closeButton:Wi},Gi="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",o2=({width:n="300px",children:d,showRightBar:i,onCloseBar:o})=>{const s=()=>{o()};return t.jsx("div",{className:`${Le.sidebar} ${i?Le.open:""}`,style:{width:i?n:0},children:i&&t.jsxs("div",{className:Le.content,children:[t.jsx("button",{className:Le.closeButton,onClick:s,children:t.jsx("img",{src:Gi,alt:"Close Sidebar"})}),d]})})};o2.propTypes={width:e.string,children:e.node,showRightBar:e.bool,onCloseBar:e.func};exports.AmbitSelector=_t;exports.BarChart=We;exports.BurgerMenu=et;exports.ButtonsBar=t2;exports.ButtonsList=vt;exports.CategorySelector=He;exports.DropdownList=X;exports.EditAmbit=G2;exports.ErrorMessage=de;exports.FiltersAmbit=Bt;exports.Form=ti;exports.GeneralButton=be;exports.Graphic=Lt;exports.HeaderSection=i2;exports.IndicatorsList=Dt;exports.LangSelector=Ft;exports.Legend=At;exports.ListSelector=Ht;exports.Loader=n2;exports.LogInButton=zt;exports.LogoApp=It;exports.MapboxMap=Ot;exports.MaplibreMap=Rt;exports.ModalAlert=e2;exports.RadioButtonInput=Jt;exports.RankingSlider=Xe;exports.RightSidebar=o2;exports.SectionBar=qt;exports.SelectInput=Qt;exports.StatusText=Je;exports.Steps=Qe;exports.Switch=s2;exports.TextInput=Ze;exports.TimeSlider=Et;exports.Tooltip=Y;exports.TopNavMenu=Pt;
|