@tmf_ciclica/ciclicastorybook 1.2.175 → 1.2.177
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 +30 -30
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3782 -3659
- package/dist/index.es.js.map +1 -1
- package/package.json +13 -12
package/dist/index.cjs.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
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_ei39o_2{width:100%;min-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_ei39o_2 ._FiltersContainer_ei39o_15{width:100%}._FiltersAmbitContainer_ei39o_2 ._FiltersAmbitHeader_ei39o_18{display:flex;flex-wrap:nowrap;justify-content:start;gap:30px;flex-direction:column;align-items:start}._FiltersAmbitContainer_ei39o_2 ._FiltersAmbitHeader_ei39o_18 ._FiltersAmbitTitle_ei39o_26{font-size:18px;font-weight:600;border-bottom:1.5px solid #605b56;width:100%;height:70px;display:flex;align-items:center}._FiltersAmbitContainer_ei39o_2 ._FiltersAmbitHeader_ei39o_18 ._FiltersAmbitDescription_ei39o_35{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:column;align-items:start;padding:0 25px 26px 0;font-size:16px;font-weight:400;width:100%}._FiltersAmbitContainer_ei39o_2 ._FiltersAmbitHeader_ei39o_18 ._FiltersAmbitDescription_ei39o_35 ._FiltersAmbitDescriptionTitle_ei39o_48{font-size:18px;font-weight:600;width:100%}._FiltersAmbitContainer_ei39o_2 ._FiltersAmbitHeader_ei39o_18 ._FiltersAmbitDescription_ei39o_35 ._FiltersAmbitDescriptionTitle_ei39o_48 textarea{width:100%;resize:vertical}._FiltersAmbitContainer_ei39o_2 ._warning_ei39o_57{color:red}._FiltersAmbitContainer_ei39o_2 ._buttonContainer_ei39o_60{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}._barChartContainer_1ly7h_2{position:relative;overflow-x:scroll;overflow-y:scroll;scrollbar-width:thin;scrollbar-color:var(--main-color) transparent}._barChartContainer_1ly7h_2::-webkit-scrollbar{height:6px}._barChartContainer_1ly7h_2::-webkit-scrollbar-track{background:transparent}._barChartContainer_1ly7h_2::-webkit-scrollbar-thumb{background-color:var(--main-color);border-radius:3px}._barChartContainer_1ly7h_2::-webkit-scrollbar{display:none}._graphicContainer_1ozwp_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;width:100%;padding:33px 50px;border-radius:20px}._graphicContainer_1ozwp_2 ._titleContainer_1ozwp_13{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_swmx0_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:stretch;gap:10px;width:100%}._indicatorContainer_swmx0_2 ._indicatorNameContainer_swmx0_12{gap:8px;display:grid;grid-template-columns:15px auto;align-items:center;width:100%}._indicatorContainer_swmx0_2 ._dot_swmx0_19{border-radius:100px;width:13px;height:13px;display:flex;align-items:center;justify-content:center}._indicatorContainer_swmx0_2 ._indicatorName_swmx0_12{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_swmx0_33{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;width:100%}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42{margin:0;width:100%}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42 ._switchTypeOptions_swmx0_46{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42 ._switchTypeOptions_swmx0_46 ._optionContainer_swmx0_57{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:9px;cursor:pointer}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42 ._switchTypeOptions_swmx0_46 ._optionContainer_swmx0_57 ._customRadious_swmx0_67{width:13px;height:13px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42 ._switchTypeOptions_swmx0_46 ._optionContainer_swmx0_57 ._optionText_swmx0_74{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_r9cd6_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}@media (max-width: 500px){._legendContainer_r9cd6_3{width:250px}}._legendContainer_r9cd6_3 ._sectionContainer_r9cd6_24:not(:first-child){margin-top:30px;padding-top:20px;border-top:1px solid #e0e0e0}._legendContainer_r9cd6_3::-webkit-scrollbar{width:8px}._legendContainer_r9cd6_3::-webkit-scrollbar-track{background:transparent;margin:5px 0}._legendContainer_r9cd6_3::-webkit-scrollbar-thumb{background-color:#ebebeb;border-radius:20px}._legendContainer_r9cd6_3 ._closeButton_r9cd6_43{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_r9cd6_3 ._closeButton_r9cd6_43:before,._legendContainer_r9cd6_3 ._closeButton_r9cd6_43:after{content:"";position:absolute;width:16px;height:2px;background-color:#333}._legendContainer_r9cd6_3 ._closeButton_r9cd6_43:before{transform:rotate(45deg)}._legendContainer_r9cd6_3 ._closeButton_r9cd6_43:after{transform:rotate(-45deg)}._legendContainer_r9cd6_3 ._titleContainer_r9cd6_71{border-bottom:solid 1.5px #605b56}._legendContainer_r9cd6_3 ._titleContainer_r9cd6_71 h2{padding-bottom:16px}._legendContainer_r9cd6_3 ._infoContainer_r9cd6_77{padding-top:20px}._legendContainer_r9cd6_3 ._infoContainer_r9cd6_77 ul li{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:row;align-items:center}._legendContainer_r9cd6_3 ._titleLegendList_r9cd6_88{padding-bottom:20px;margin-bottom:20px;border-bottom:solid 1.5px #605b56;padding-right:30px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._gridContainer_r9cd6_94{display:grid;grid-template-columns:auto;column-gap:20px;row-gap:15px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._gridContainer_r9cd6_94 ._elementLegendContainer_r9cd6_100{display:grid;grid-template-columns:23px auto;align-items:center;gap:5px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._gridContainer_r9cd6_94 ._elementLegendContainer_r9cd6_100 ._colorDot_r9cd6_106{width:22px;height:22px;border-radius:50%;margin-right:10px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._absoluteValueContainer_r9cd6_112{position:relative}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._absoluteValueContainer_r9cd6_112 ._absoluteValueColor_r9cd6_115{height:130px;width:22px;border-radius:20px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._absoluteValueContainer_r9cd6_112 ._absoluteValueText_r9cd6_120{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_r9cd6_3 ._legendListContainer_r9cd6_94 ._noDataContainer_r9cd6_132{position:relative;margin-top:10px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._noDataContainer_r9cd6_132 ._noData_r9cd6_132{height:22px;width:22px;border-radius:20px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._noDataContainer_r9cd6_132 ._absoluteValueText_r9cd6_120{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_r9cd6_3 ._moreInfoContainer_r9cd6_153{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_1r3q4_3{width:100%;height:100%;position:absolute;top:0;z-index:0}._FeaturePopUp_oymb1_2{padding:15px;color:#92898a}._FeaturePopUp_oymb1_2 p{margin-bottom:10px;font-weight:600}._FeaturePopUp_oymb1_2 ._title_oymb1_10{font-weight:400;margin-right:5px;color:#92898a}._FeaturePopUp_oymb1_2 ._button_oymb1_15{background:#fdfdfd;width:100%;margin-top:8px;padding:8px 16px;color:#92898a;border:1px solid #92898a;border-radius:20px;font-size:14px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px}._sectionBar_yf2vy_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_yf2vy_14{display:flex;align-items:center;gap:12px}._textContainer_yf2vy_20{display:flex;flex-direction:row;align-items:center;gap:8px}._title_yf2vy_27{font-size:16px;font-weight:600;color:#605b56}._subtitle_yf2vy_33{font-size:16px;color:#605b56}._rightContent_yf2vy_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_s4s4h_3{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_s4s4h_3 ._elementNameDate_s4s4h_19{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer;gap:5px}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19 ._elementNameContainer_s4s4h_30{flex:1;display:flex;flex-direction:column;align-items:flex-start;position:relative;overflow-wrap:break-word;word-break:break-word}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19 ._elementName_s4s4h_19{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19 ._elementDate_s4s4h_47{flex:.5}._listElement_s4s4h_3 ._nameAndEye_s4s4h_50{display:grid!important;grid-template-columns:26px auto;gap:9px!important}._listElement_s4s4h_3 ._elementButtons_s4s4h_55{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._listElement_s4s4h_3 ._elementButtons_s4s4h_55 button:disabled{opacity:.5;cursor:default}._listElement_s4s4h_3 ._elementButtons_s4s4h_55 img{display:inline}._break_s4s4h_73{flex-basis:100%;height:0}._moreInfoContainer_s4s4h_78 ._moreInfo_s4s4h_78{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_zzz6o_2{width:100%;position:relative}._selectInputContainer_zzz6o_2 ._labelContainer_zzz6o_6{margin-bottom:25px}._selectInputContainer_zzz6o_2 ._selectWrapper_zzz6o_9{display:flex;flex-direction:row;gap:15px;align-items:center}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15{position:relative}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15 ._selectInput_zzz6o_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_zzz6o_2 ._inputContainer_zzz6o_15 ._selectInput_zzz6o_2 ._option_zzz6o_29{cursor:pointer}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15 ._dropdownArrow_zzz6o_32{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_1dvpb_2{display:grid;width:100%}._rankingSliderContainer_1dvpb_2 ._labelContainer_1dvpb_6{margin-bottom:25px;color:#605b56}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10{width:100%;position:relative;display:flex;gap:14px;align-items:center;flex-wrap:nowrap;justify-content:center;height:48px}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._slider_1dvpb_20{height:3px;background:#efefef;border-radius:3px;position:relative;min-width:250px}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._thumb_1dvpb_27{height:15px;width:15px;border-radius:50%;top:-100%;transform:translateY(-20%);outline:none}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37{display:flex;justify-content:space-between;margin-top:8px;font-size:14px;color:#444}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_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_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37 span:before{content:"";background:#efefef;width:10px;height:10px;position:absolute;top:-14.5px;border-radius:50%}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37 ._labelsText_1dvpb_64{color:#605b56}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._minLabel_1dvpb_67,._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._maxLabel_1dvpb_68{align-self:baseline;padding-top:10px;color:#605b56;font-size:12px;white-space:nowrap;margin-top:-7px}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._minLabel_1dvpb_67{text-align:right}._textDescriptionContainer_163pc_2{margin:10px 0}._textDescriptionText_163pc_6{margin:0}._categorySelector_1guuv_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_1guuv_2 ._sectionItemActive_1guuv_16{color:#fff}._categorySelector_1guuv_2 ._sectionItem_1guuv_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%;position:relative}._categorySelector_1guuv_2 ._sectionItemError_1guuv_32{border:1px solid #e74c3c}._categorySelector_1guuv_2 ._errorDot_1guuv_35{width:8px;height:8px;border-radius:50%;background-color:#e74c3c;display:inline-block;margin-right:6px}._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_1pl8d_3{position:relative;display:flex;align-intems:center}._burger_1pl8d_10{position:fixed;top:10px;right:25px;background:none;border:none;cursor:pointer;z-index:1000}._menu_1pl8d_21{position:fixed;top:0;right:0;width:250px;height:100vh;padding:1.5rem;box-shadow:-2px 0 8px #00000026;z-index:999;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1)}._menuOpen_1pl8d_35{transform:translate(0)}._menuClose_1pl8d_40{transform:translate(100%);pointer-events:none}._list_1pl8d_46{list-style:none;padding:0;margin-top:50px;display:flex;flex-direction:column;gap:1rem}._item_1pl8d_56{opacity:0;transform:translate(20px);transition:opacity .3s ease,transform .3s ease;font-size:16px!important}._menuOpen_1pl8d_35 ._item_1pl8d_56{opacity:1;transform:translate(0)}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(1){transition-delay:.05s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(2){transition-delay:.1s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(3){transition-delay:.15s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(4){transition-delay:.2s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(5){transition-delay:.25s}._button_1pl8d_91{background:none;border:none;color:inherit;font-size:18px;cursor:pointer;padding:0}._svgContainer_1rxoe_2{width:100%;box-sizing:border-box;position:relative}._svgContainer_1rxoe_2 ._svg_1rxoe_2{width:100%;height:100%;overflow:visible;display:block}@media (max-width: 768px){._svgContainer_1rxoe_2{padding:10px}}@media (max-width: 480px){._svgContainer_1rxoe_2{padding:5px}}.bar{transition:opacity .2s ease-in-out}.bar:hover{opacity:.8}.x-axis ._domain_1rxoe_31,.y-axis ._domain_1rxoe_31{stroke:#333;stroke-width:1px}.x-axis ._tick_1rxoe_36 line,.y-axis ._tick_1rxoe_36 line{stroke:#333;stroke-width:1px}.x-axis ._tick_1rxoe_36 text,.y-axis ._tick_1rxoe_36 text{fill:#605b56;font-family:Arial,sans-serif}._svgContainer_7fkic_2{width:100%;box-sizing:border-box;position:relative;overflow-x:auto}._svgContainer_7fkic_2 ._svg_7fkic_2{overflow:visible;display:block;max-width:none}@media (max-width: 768px){._svgContainer_7fkic_2{padding:10px}}@media (max-width: 480px){._svgContainer_7fkic_2{padding:5px}}.layer rect{transition:opacity .2s ease-in-out}.layer rect:hover{opacity:.8}.x-axis ._domain_7fkic_32,.y-axis ._domain_7fkic_32{stroke:#333;stroke-width:1px}.x-axis ._tick_7fkic_37 line,.y-axis ._tick_7fkic_37 line{stroke:#333;stroke-width:1px}.x-axis ._tick_7fkic_37 text,.y-axis ._tick_7fkic_37 text{fill:#605b56;font-family:Arial,sans-serif}.y-ticks ._tick_7fkic_37 line{stroke:#e0e0e0;stroke-width:.5px}.grid{opacity:.5}.chart-tooltip{font-family:Arial,sans-serif;box-shadow:0 2px 4px #0003}._externalContainer_1er0i_2{display:grid;grid-template-columns:170px auto;width:100%;padding:20px;grid-column-gap:5px}._externalContainer_1er0i_2._externalSintetic_1er0i_9{grid-template-columns:250px 80px 1fr;row-gap:20px}._externalContainer_1er0i_2 ._titles_1er0i_13{display:flex;flex-wrap:nowrap;justify-content:end;gap:0;flex-direction:column;align-items:end;padding-right:5px}._externalContainer_1er0i_2 ._titles_1er0i_13 ._titleContainer_1er0i_22{display:flex;flex-wrap:nowrap;justify-content:end;gap:0;flex-direction:row;align-items:center;gap:12px;font-size:12px;font-style:normal;font-weight:400;color:#605b56;height:54px}._externalContainer_1er0i_2 ._yearTitles_1er0i_36{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._externalContainer_1er0i_2 ._yearTitles_1er0i_36 ._yearTitle_1er0i_36{transform:rotate(-90deg);color:#605b56;font-size:13px;flex-shrink:0}._externalContainer_1er0i_2 ._yearDatas_1er0i_50{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._externalContainer_1er0i_2 ._yearDataContainer_1er0i_58{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:center}._externalContainer_1er0i_2 ._yearDataContainer_1er0i_58 ._yearDataContent_1er0i_66{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;border-bottom:1px solid #605b56;font-size:9px;color:#605b56;height:54px}._externalContainer_1er0i_2 ._yearDataContainer_1er0i_58 ._bigNumber_1er0i_79{font-size:8px}._externalContainer_1er0i_2 ._circle_1er0i_82{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:12px;height:12px;border-radius:50%;flex-shrink:0}._externalContainer_1er0i_2::-webkit-scrollbar{display:none}._totalContainer_1er0i_99{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:center;gap:7px;width:100%}._totalContainer_1er0i_99 ._total_1er0i_99{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;font-size:9px;font-weight:700;color:#605b56;height:54px;text-align:center}._totalTitle_1er0i_124{font-size:11px;color:#605b56;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._percentageBarContainer_lgkme_3{width:100%;font-family:Arial,sans-serif;-webkit-user-select:none;user-select:none}._barContainer_lgkme_10{display:flex;width:100%;height:20px;border-radius:4px;overflow:visible;position:relative}._segment_lgkme_19{height:100%;position:relative;transition:width .05s linear;box-sizing:border-box}._segment_lgkme_19:first-child{border-radius:4px 0 0 4px}._segment_lgkme_19:last-child{border-radius:0 4px 4px 0}._segment_lgkme_19:only-child{border-radius:4px}._handle_lgkme_36{position:absolute;width:14px;height:28px;top:50%;left:0;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #888;border-radius:4px;cursor:ew-resize;z-index:10;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #00000040;touch-action:none}._handle_lgkme_36:before{content:"";width:2px;height:10px;border-left:1px solid #bbb;border-right:1px solid #bbb}._handle_lgkme_36:hover,._handle_lgkme_36:active{border-color:#444;background-color:#f5f5f5}._labelsContainer_lgkme_68{display:flex;width:100%;margin-top:8px}._labelsContainer_lgkme_68 ._labelItem_lgkme_73{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:4px 2px;box-sizing:border-box;font-size:12px;overflow:hidden;min-width:0}._labelsListContainer_lgkme_85{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:18px}._labelsListContainer_lgkme_85 ._labelItem_lgkme_73{display:flex;flex-direction:row;gap:6px;align-items:center;justify-content:flex-start;padding:4px 2px;box-sizing:border-box;font-size:12px;overflow:hidden;min-width:0}._labelColor_lgkme_105{display:inline-block;width:10px;height:10px;border-radius:2px;margin-bottom:2px;flex-shrink:0}._labelText_lgkme_114{font-weight:600;margin-bottom:2px;text-align:center;word-break:break-word;line-height:1.2}._labelValue_lgkme_122{margin-bottom:2px}._labelTranslation_lgkme_126{color:#fff;font-size:11px;font-style:italic}._overlay_1vbid_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999;animation:_fadeIn_1vbid_1 .3s ease-out}._modal_1vbid_16{background:#fff;border-radius:12px;border:2px solid transparent;padding:24px 32px;min-width:300px;max-width:500px;box-shadow:0 4px 20px #0003;animation:_slideUp_1vbid_1 .3s ease-out;position:relative}._content_1vbid_28{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px}._iconContainer_1vbid_36{display:flex;align-items:center;justify-content:center;margin-bottom:8px}._iconSvg_1vbid_43{width:48px;height:48px}._textContainer_1vbid_48{display:flex;flex-direction:column;gap:8px;width:100%}._title_1vbid_55{font-size:20px;font-weight:600;margin:0;line-height:1.4}._message_1vbid_62{font-size:16px;margin:0;line-height:1.5;opacity:.9}._closeButton_1vbid_69{position:absolute;top:12px;right:12px;background:transparent;border:none;font-size:20px;cursor:pointer;padding:4px 8px;border-radius:4px;transition:background-color .2s}._closeButton_1vbid_69:hover{background-color:#0000001a}._closeButton_1vbid_69:focus{outline:2px solid currentColor;outline-offset:2px}@keyframes _fadeIn_1vbid_1{0%{opacity:0}to{opacity:1}}@keyframes _slideUp_1vbid_1{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}._errorModal_1vbid_107{background:#fff5f5;border-color:#feb2b2}._errorModal_1vbid_107 ._title_1vbid_55,._errorModal_1vbid_107 ._message_1vbid_62,._errorModal_1vbid_107 ._closeButton_1vbid_69,._errorModal_1vbid_107 ._iconSvg_1vbid_43{color:#c53030}._successModal_1vbid_120{background:#f0fff4;border-color:#9ae6b4}._successModal_1vbid_120 ._title_1vbid_55,._successModal_1vbid_120 ._message_1vbid_62,._successModal_1vbid_120 ._closeButton_1vbid_69,._successModal_1vbid_120 ._iconSvg_1vbid_43{color:#276749}._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";var Oa=Object.create;var ms=Object.defineProperty;var Ma=Object.getOwnPropertyDescriptor;var La=Object.getOwnPropertyNames;var Ra=Object.getPrototypeOf,Ia=Object.prototype.hasOwnProperty;var Da=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of La(t))!Ia.call(e,o)&&o!==n&&ms(e,o,{get:()=>t[o],enumerable:!(r=Ma(t,o))||r.enumerable});return e};var Ba=(e,t,n)=>(n=e!=null?Oa(Ra(e)):{},Da(t||!e||!e.__esModule?ms(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),w=require("react"),le=require("react-i18next"),lo=require("framer-motion"),co=require("zustand"),ce=require("d3"),Pa=require("mapbox-gl"),Fa=require("react-redux"),Ii=require("react-dom"),$r=require("maplibre-gl"),Va=require("pmtiles"),za=require("@reduxjs/toolkit"),hs=require("@mui/material"),qa=require("@emotion/react"),Wa=require("@emotion/styled"),Di=require("react-router-dom");function Bi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const ee=Bi(w),Nr=Bi(ce),Ua="_ambitSelector_mcunf_2",Ha="_header_mcunf_13",Ka="_nameDateContainer_mcunf_23",Ga="_ambitName_mcunf_39",Za="_ambitDate_mcunf_53",Ya="_buttonsContainer_mcunf_67",Xa="_ambitListContainer_mcunf_76",Qa="_newAmbitButtonContainer_mcunf_80",Ct={ambitSelector:Ua,header:Ha,nameDateContainer:Ka,ambitName:Ga,ambitDate:Za,buttonsContainer:Ya,ambitListContainer:Xa,newAmbitButtonContainer:Qa},Ja="_ambitItem_1qa6u_2",el="_ambitNameDate_1qa6u_16",tl="_ambitName_1qa6u_16",nl="_ambitDate_1qa6u_35",rl="_ambitButtons_1qa6u_38",gn={ambitItem:Ja,ambitNameDate:el,ambitName:tl,ambitDate:nl,ambitButtons:rl},ol="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",sl="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",il="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",al="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",ll="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",cl="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";function ul(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ln={exports:{}},Rn={exports:{}},pe={};/** @license React v16.13.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_9a7gq_2{display:flex;gap:8px}._buttonsContainer_9a7gq_2._vertical_9a7gq_6{flex-direction:column}._buttonsContainer_9a7gq_2._vertical_9a7gq_6 ._separator_9a7gq_9{width:100%;height:2px;margin:4px 0}._buttonsContainer_9a7gq_2._horizontal_9a7gq_14{flex-direction:row;align-items:center}._buttonsContainer_9a7gq_2._horizontal_9a7gq_14 ._separator_9a7gq_9{width:2px;align-self:stretch;margin:0 8px}._separator_9a7gq_9{display:block;flex-shrink:0;background-color:#605b56;border-radius:1px}._button_9a7gq_2{background:transparent;border:none;display:flex;align-items:center;cursor:pointer;padding:4px;position:relative}._button_9a7gq_2:hover{opacity:.8}._button_9a7gq_2._active_9a7gq_43{font-weight:700}._button_9a7gq_2 ._buttonName_9a7gq_46{margin:0 4px}._button_9a7gq_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_ei39o_2{width:100%;min-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_ei39o_2 ._FiltersContainer_ei39o_15{width:100%}._FiltersAmbitContainer_ei39o_2 ._FiltersAmbitHeader_ei39o_18{display:flex;flex-wrap:nowrap;justify-content:start;gap:30px;flex-direction:column;align-items:start}._FiltersAmbitContainer_ei39o_2 ._FiltersAmbitHeader_ei39o_18 ._FiltersAmbitTitle_ei39o_26{font-size:18px;font-weight:600;border-bottom:1.5px solid #605b56;width:100%;height:70px;display:flex;align-items:center}._FiltersAmbitContainer_ei39o_2 ._FiltersAmbitHeader_ei39o_18 ._FiltersAmbitDescription_ei39o_35{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:column;align-items:start;padding:0 25px 26px 0;font-size:16px;font-weight:400;width:100%}._FiltersAmbitContainer_ei39o_2 ._FiltersAmbitHeader_ei39o_18 ._FiltersAmbitDescription_ei39o_35 ._FiltersAmbitDescriptionTitle_ei39o_48{font-size:18px;font-weight:600;width:100%}._FiltersAmbitContainer_ei39o_2 ._FiltersAmbitHeader_ei39o_18 ._FiltersAmbitDescription_ei39o_35 ._FiltersAmbitDescriptionTitle_ei39o_48 textarea{width:100%;resize:vertical}._FiltersAmbitContainer_ei39o_2 ._warning_ei39o_57{color:red}._FiltersAmbitContainer_ei39o_2 ._buttonContainer_ei39o_60{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}._barChartContainer_1ly7h_2{position:relative;overflow-x:scroll;overflow-y:scroll;scrollbar-width:thin;scrollbar-color:var(--main-color) transparent}._barChartContainer_1ly7h_2::-webkit-scrollbar{height:6px}._barChartContainer_1ly7h_2::-webkit-scrollbar-track{background:transparent}._barChartContainer_1ly7h_2::-webkit-scrollbar-thumb{background-color:var(--main-color);border-radius:3px}._barChartContainer_1ly7h_2::-webkit-scrollbar{display:none}._graphicContainer_1ozwp_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;width:100%;padding:33px 50px;border-radius:20px}._graphicContainer_1ozwp_2 ._titleContainer_1ozwp_13{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_swmx0_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:stretch;gap:10px;width:100%}._indicatorContainer_swmx0_2 ._indicatorNameContainer_swmx0_12{gap:8px;display:grid;grid-template-columns:15px auto;align-items:center;width:100%}._indicatorContainer_swmx0_2 ._dot_swmx0_19{border-radius:100px;width:13px;height:13px;display:flex;align-items:center;justify-content:center}._indicatorContainer_swmx0_2 ._indicatorName_swmx0_12{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_swmx0_33{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;width:100%}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42{margin:0;width:100%}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42 ._switchTypeOptions_swmx0_46{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42 ._switchTypeOptions_swmx0_46 ._optionContainer_swmx0_57{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:9px;cursor:pointer}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42 ._switchTypeOptions_swmx0_46 ._optionContainer_swmx0_57 ._customRadious_swmx0_67{width:13px;height:13px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_swmx0_33 ._switchType_swmx0_42 ._switchTypeOptions_swmx0_46 ._optionContainer_swmx0_57 ._optionText_swmx0_74{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_r9cd6_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}@media (max-width: 500px){._legendContainer_r9cd6_3{width:250px}}._legendContainer_r9cd6_3 ._sectionContainer_r9cd6_24:not(:first-child){margin-top:30px;padding-top:20px;border-top:1px solid #e0e0e0}._legendContainer_r9cd6_3::-webkit-scrollbar{width:8px}._legendContainer_r9cd6_3::-webkit-scrollbar-track{background:transparent;margin:5px 0}._legendContainer_r9cd6_3::-webkit-scrollbar-thumb{background-color:#ebebeb;border-radius:20px}._legendContainer_r9cd6_3 ._closeButton_r9cd6_43{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_r9cd6_3 ._closeButton_r9cd6_43:before,._legendContainer_r9cd6_3 ._closeButton_r9cd6_43:after{content:"";position:absolute;width:16px;height:2px;background-color:#333}._legendContainer_r9cd6_3 ._closeButton_r9cd6_43:before{transform:rotate(45deg)}._legendContainer_r9cd6_3 ._closeButton_r9cd6_43:after{transform:rotate(-45deg)}._legendContainer_r9cd6_3 ._titleContainer_r9cd6_71{border-bottom:solid 1.5px #605b56}._legendContainer_r9cd6_3 ._titleContainer_r9cd6_71 h2{padding-bottom:16px}._legendContainer_r9cd6_3 ._infoContainer_r9cd6_77{padding-top:20px}._legendContainer_r9cd6_3 ._infoContainer_r9cd6_77 ul li{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:row;align-items:center}._legendContainer_r9cd6_3 ._titleLegendList_r9cd6_88{padding-bottom:20px;margin-bottom:20px;border-bottom:solid 1.5px #605b56;padding-right:30px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._gridContainer_r9cd6_94{display:grid;grid-template-columns:auto;column-gap:20px;row-gap:15px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._gridContainer_r9cd6_94 ._elementLegendContainer_r9cd6_100{display:grid;grid-template-columns:23px auto;align-items:center;gap:5px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._gridContainer_r9cd6_94 ._elementLegendContainer_r9cd6_100 ._colorDot_r9cd6_106{width:22px;height:22px;border-radius:50%;margin-right:10px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._absoluteValueContainer_r9cd6_112{position:relative}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._absoluteValueContainer_r9cd6_112 ._absoluteValueColor_r9cd6_115{height:130px;width:22px;border-radius:20px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._absoluteValueContainer_r9cd6_112 ._absoluteValueText_r9cd6_120{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_r9cd6_3 ._legendListContainer_r9cd6_94 ._noDataContainer_r9cd6_132{position:relative;margin-top:10px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._noDataContainer_r9cd6_132 ._noData_r9cd6_132{height:22px;width:22px;border-radius:20px}._legendContainer_r9cd6_3 ._legendListContainer_r9cd6_94 ._noDataContainer_r9cd6_132 ._absoluteValueText_r9cd6_120{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_r9cd6_3 ._moreInfoContainer_r9cd6_153{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_1r3q4_3{width:100%;height:100%;position:absolute;top:0;z-index:0}._FeaturePopUp_oymb1_2{padding:15px;color:#92898a}._FeaturePopUp_oymb1_2 p{margin-bottom:10px;font-weight:600}._FeaturePopUp_oymb1_2 ._title_oymb1_10{font-weight:400;margin-right:5px;color:#92898a}._FeaturePopUp_oymb1_2 ._button_oymb1_15{background:#fdfdfd;width:100%;margin-top:8px;padding:8px 16px;color:#92898a;border:1px solid #92898a;border-radius:20px;font-size:14px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px}._sectionBar_yf2vy_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_yf2vy_14{display:flex;align-items:center;gap:12px}._textContainer_yf2vy_20{display:flex;flex-direction:row;align-items:center;gap:8px}._title_yf2vy_27{font-size:16px;font-weight:600;color:#605b56}._subtitle_yf2vy_33{font-size:16px;color:#605b56}._rightContent_yf2vy_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_s4s4h_3{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_s4s4h_3 ._elementNameDate_s4s4h_19{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer;gap:5px}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19 ._elementNameContainer_s4s4h_30{flex:1;display:flex;flex-direction:column;align-items:flex-start;position:relative;overflow-wrap:break-word;word-break:break-word}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19 ._elementName_s4s4h_19{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._listElement_s4s4h_3 ._elementNameDate_s4s4h_19 ._elementDate_s4s4h_47{flex:.5}._listElement_s4s4h_3 ._nameAndEye_s4s4h_50{display:grid!important;grid-template-columns:26px auto;gap:9px!important}._listElement_s4s4h_3 ._elementButtons_s4s4h_55{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._listElement_s4s4h_3 ._elementButtons_s4s4h_55 button:disabled{opacity:.5;cursor:default}._listElement_s4s4h_3 ._elementButtons_s4s4h_55 img{display:inline}._break_s4s4h_73{flex-basis:100%;height:0}._moreInfoContainer_s4s4h_78 ._moreInfo_s4s4h_78{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_zzz6o_2{width:100%;position:relative}._selectInputContainer_zzz6o_2 ._labelContainer_zzz6o_6{margin-bottom:25px}._selectInputContainer_zzz6o_2 ._selectWrapper_zzz6o_9{display:flex;flex-direction:row;gap:15px;align-items:center}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15{position:relative}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15 ._selectInput_zzz6o_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_zzz6o_2 ._inputContainer_zzz6o_15 ._selectInput_zzz6o_2 ._option_zzz6o_29{cursor:pointer}._selectInputContainer_zzz6o_2 ._inputContainer_zzz6o_15 ._dropdownArrow_zzz6o_32{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_1dvpb_2{display:grid;width:100%}._rankingSliderContainer_1dvpb_2 ._labelContainer_1dvpb_6{margin-bottom:25px;color:#605b56}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10{width:100%;position:relative;display:flex;gap:14px;align-items:center;flex-wrap:nowrap;justify-content:center;height:48px}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._slider_1dvpb_20{height:3px;background:#efefef;border-radius:3px;position:relative;min-width:250px}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._thumb_1dvpb_27{height:15px;width:15px;border-radius:50%;top:-100%;transform:translateY(-20%);outline:none}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37{display:flex;justify-content:space-between;margin-top:8px;font-size:14px;color:#444}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_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_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37 span:before{content:"";background:#efefef;width:10px;height:10px;position:absolute;top:-14.5px;border-radius:50%}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._labels_1dvpb_37 ._labelsText_1dvpb_64{color:#605b56}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._minLabel_1dvpb_67,._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._maxLabel_1dvpb_68{align-self:baseline;padding-top:10px;color:#605b56;font-size:12px;white-space:nowrap;margin-top:-7px}._rankingSliderContainer_1dvpb_2 ._inputContainer_1dvpb_10 ._minLabel_1dvpb_67{text-align:right}._textDescriptionContainer_163pc_2{margin:10px 0}._textDescriptionText_163pc_6{margin:0}._categorySelector_1guuv_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_1guuv_2 ._sectionItemActive_1guuv_16{color:#fff}._categorySelector_1guuv_2 ._sectionItem_1guuv_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%;position:relative}._categorySelector_1guuv_2 ._sectionItemError_1guuv_32{border:1px solid #e74c3c}._categorySelector_1guuv_2 ._errorDot_1guuv_35{width:8px;height:8px;border-radius:50%;background-color:#e74c3c;display:inline-block;margin-right:6px}._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_1pl8d_3{position:relative;display:flex;align-intems:center}._burger_1pl8d_10{position:fixed;top:10px;right:25px;background:none;border:none;cursor:pointer;z-index:1000}._menu_1pl8d_21{position:fixed;top:0;right:0;width:250px;height:100vh;padding:1.5rem;box-shadow:-2px 0 8px #00000026;z-index:999;transform:translate(100%);transition:transform .35s cubic-bezier(.4,0,.2,1)}._menuOpen_1pl8d_35{transform:translate(0)}._menuClose_1pl8d_40{transform:translate(100%);pointer-events:none}._list_1pl8d_46{list-style:none;padding:0;margin-top:50px;display:flex;flex-direction:column;gap:1rem}._item_1pl8d_56{opacity:0;transform:translate(20px);transition:opacity .3s ease,transform .3s ease;font-size:16px!important}._menuOpen_1pl8d_35 ._item_1pl8d_56{opacity:1;transform:translate(0)}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(1){transition-delay:.05s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(2){transition-delay:.1s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(3){transition-delay:.15s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(4){transition-delay:.2s}._menuOpen_1pl8d_35 ._item_1pl8d_56:nth-child(5){transition-delay:.25s}._button_1pl8d_91{background:none;border:none;color:inherit;font-size:18px;cursor:pointer;padding:0}._svgContainer_1rxoe_2{width:100%;box-sizing:border-box;position:relative}._svgContainer_1rxoe_2 ._svg_1rxoe_2{width:100%;height:100%;overflow:visible;display:block}@media (max-width: 768px){._svgContainer_1rxoe_2{padding:10px}}@media (max-width: 480px){._svgContainer_1rxoe_2{padding:5px}}.bar{transition:opacity .2s ease-in-out}.bar:hover{opacity:.8}.x-axis ._domain_1rxoe_31,.y-axis ._domain_1rxoe_31{stroke:#333;stroke-width:1px}.x-axis ._tick_1rxoe_36 line,.y-axis ._tick_1rxoe_36 line{stroke:#333;stroke-width:1px}.x-axis ._tick_1rxoe_36 text,.y-axis ._tick_1rxoe_36 text{fill:#605b56;font-family:Arial,sans-serif}._svgContainer_7fkic_2{width:100%;box-sizing:border-box;position:relative;overflow-x:auto}._svgContainer_7fkic_2 ._svg_7fkic_2{overflow:visible;display:block;max-width:none}@media (max-width: 768px){._svgContainer_7fkic_2{padding:10px}}@media (max-width: 480px){._svgContainer_7fkic_2{padding:5px}}.layer rect{transition:opacity .2s ease-in-out}.layer rect:hover{opacity:.8}.x-axis ._domain_7fkic_32,.y-axis ._domain_7fkic_32{stroke:#333;stroke-width:1px}.x-axis ._tick_7fkic_37 line,.y-axis ._tick_7fkic_37 line{stroke:#333;stroke-width:1px}.x-axis ._tick_7fkic_37 text,.y-axis ._tick_7fkic_37 text{fill:#605b56;font-family:Arial,sans-serif}.y-ticks ._tick_7fkic_37 line{stroke:#e0e0e0;stroke-width:.5px}.grid{opacity:.5}.chart-tooltip{font-family:Arial,sans-serif;box-shadow:0 2px 4px #0003}._externalContainer_1er0i_2{display:grid;grid-template-columns:170px auto;width:100%;padding:20px;grid-column-gap:5px}._externalContainer_1er0i_2._externalSintetic_1er0i_9{grid-template-columns:250px 80px 1fr;row-gap:20px}._externalContainer_1er0i_2 ._titles_1er0i_13{display:flex;flex-wrap:nowrap;justify-content:end;gap:0;flex-direction:column;align-items:end;padding-right:5px}._externalContainer_1er0i_2 ._titles_1er0i_13 ._titleContainer_1er0i_22{display:flex;flex-wrap:nowrap;justify-content:end;gap:0;flex-direction:row;align-items:center;gap:12px;font-size:12px;font-style:normal;font-weight:400;color:#605b56;height:54px}._externalContainer_1er0i_2 ._yearTitles_1er0i_36{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._externalContainer_1er0i_2 ._yearTitles_1er0i_36 ._yearTitle_1er0i_36{transform:rotate(-90deg);color:#605b56;font-size:13px;flex-shrink:0}._externalContainer_1er0i_2 ._yearDatas_1er0i_50{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._externalContainer_1er0i_2 ._yearDataContainer_1er0i_58{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:center}._externalContainer_1er0i_2 ._yearDataContainer_1er0i_58 ._yearDataContent_1er0i_66{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;border-bottom:1px solid #605b56;font-size:9px;color:#605b56;height:54px}._externalContainer_1er0i_2 ._yearDataContainer_1er0i_58 ._bigNumber_1er0i_79{font-size:8px}._externalContainer_1er0i_2 ._circle_1er0i_82{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:12px;height:12px;border-radius:50%;flex-shrink:0}._externalContainer_1er0i_2::-webkit-scrollbar{display:none}._totalContainer_1er0i_99{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:center;gap:7px;width:100%}._totalContainer_1er0i_99 ._total_1er0i_99{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;font-size:9px;font-weight:700;color:#605b56;height:54px;text-align:center}._totalTitle_1er0i_124{font-size:11px;color:#605b56;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._percentageBarContainer_lgkme_3{width:100%;font-family:Arial,sans-serif;-webkit-user-select:none;user-select:none}._barContainer_lgkme_10{display:flex;width:100%;height:20px;border-radius:4px;overflow:visible;position:relative}._segment_lgkme_19{height:100%;position:relative;transition:width .05s linear;box-sizing:border-box}._segment_lgkme_19:first-child{border-radius:4px 0 0 4px}._segment_lgkme_19:last-child{border-radius:0 4px 4px 0}._segment_lgkme_19:only-child{border-radius:4px}._handle_lgkme_36{position:absolute;width:14px;height:28px;top:50%;left:0;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #888;border-radius:4px;cursor:ew-resize;z-index:10;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 3px #00000040;touch-action:none}._handle_lgkme_36:before{content:"";width:2px;height:10px;border-left:1px solid #bbb;border-right:1px solid #bbb}._handle_lgkme_36:hover,._handle_lgkme_36:active{border-color:#444;background-color:#f5f5f5}._labelsContainer_lgkme_68{display:flex;width:100%;margin-top:8px}._labelsContainer_lgkme_68 ._labelItem_lgkme_73{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:4px 2px;box-sizing:border-box;font-size:12px;overflow:hidden;min-width:0}._labelsListContainer_lgkme_85{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:18px}._labelsListContainer_lgkme_85 ._labelItem_lgkme_73{display:flex;flex-direction:row;gap:6px;align-items:center;justify-content:flex-start;padding:4px 2px;box-sizing:border-box;font-size:12px;overflow:hidden;min-width:0}._labelColor_lgkme_105{display:inline-block;width:10px;height:10px;border-radius:2px;margin-bottom:2px;flex-shrink:0}._labelText_lgkme_114{font-weight:600;margin-bottom:2px;text-align:center;word-break:break-word;line-height:1.2}._labelValue_lgkme_122{margin-bottom:2px}._labelTranslation_lgkme_126{color:#fff;font-size:11px;font-style:italic}._overlay_1vbid_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999;animation:_fadeIn_1vbid_1 .3s ease-out}._modal_1vbid_16{background:#fff;border-radius:12px;border:2px solid transparent;padding:24px 32px;min-width:300px;max-width:500px;box-shadow:0 4px 20px #0003;animation:_slideUp_1vbid_1 .3s ease-out;position:relative}._content_1vbid_28{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px}._iconContainer_1vbid_36{display:flex;align-items:center;justify-content:center;margin-bottom:8px}._iconSvg_1vbid_43{width:48px;height:48px}._textContainer_1vbid_48{display:flex;flex-direction:column;gap:8px;width:100%}._title_1vbid_55{font-size:20px;font-weight:600;margin:0;line-height:1.4}._message_1vbid_62{font-size:16px;margin:0;line-height:1.5;opacity:.9}._closeButton_1vbid_69{position:absolute;top:12px;right:12px;background:transparent;border:none;font-size:20px;cursor:pointer;padding:4px 8px;border-radius:4px;transition:background-color .2s}._closeButton_1vbid_69:hover{background-color:#0000001a}._closeButton_1vbid_69:focus{outline:2px solid currentColor;outline-offset:2px}@keyframes _fadeIn_1vbid_1{0%{opacity:0}to{opacity:1}}@keyframes _slideUp_1vbid_1{0%{transform:translateY(20px);opacity:0}to{transform:translateY(0);opacity:1}}._errorModal_1vbid_107{background:#fff5f5;border-color:#feb2b2}._errorModal_1vbid_107 ._title_1vbid_55,._errorModal_1vbid_107 ._message_1vbid_62,._errorModal_1vbid_107 ._closeButton_1vbid_69,._errorModal_1vbid_107 ._iconSvg_1vbid_43{color:#c53030}._successModal_1vbid_120{background:#f0fff4;border-color:#9ae6b4}._successModal_1vbid_120 ._title_1vbid_55,._successModal_1vbid_120 ._message_1vbid_62,._successModal_1vbid_120 ._closeButton_1vbid_69,._successModal_1vbid_120 ._iconSvg_1vbid_43{color:#276749}._dropdownSelector_g77wf_2{--ds-text: #1f2a24;--ds-bg: #ffffff;--ds-border: #d9d9d9;--ds-icon-bg: #f0f0f0;--ds-menu-bg: #ffffff;--ds-option-text: #1f2a24;--ds-option-hover-bg: #f3f5f3;--ds-active-bg: #e3ece6;--ds-active-text: #1f2a24;position:relative;display:inline-block;font-family:Poppins,sans-serif}._trigger_g77wf_17{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:10px;flex-direction:row;align-items:center;min-width:180px;height:36px;padding:0 12px 0 4px;background:var(--ds-bg);color:var(--ds-text);border:1px solid var(--ds-border);border-radius:8px;box-shadow:0 1px 4px #0000001f;font-size:12px;font-weight:500;cursor:pointer;transition:box-shadow .15s ease}._trigger_g77wf_17:hover{box-shadow:0 2px 8px #0000002e}._trigger_g77wf_17:focus-visible{outline:2px solid var(--ds-active-bg);outline-offset:2px}._trigger_g77wf_17:disabled{opacity:.5;cursor:auto}._trigger_g77wf_17._open_g77wf_48 ._arrow_g77wf_48{transform:rotate(180deg)}._icon_g77wf_52{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--ds-icon-bg)}._icon_g77wf_52 img{width:16px;height:16px}._label_g77wf_70{flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._arrow_g77wf_48{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;flex-shrink:0;transition:transform .2s ease}._arrow_g77wf_48 img{width:10px}._menu_g77wf_92{position:absolute;z-index:10;min-width:100%;margin:0;padding:4px 0;list-style:none;background:var(--ds-menu-bg);border-radius:8px;box-shadow:0 2px 10px #00000026;white-space:nowrap}._menu_g77wf_92._top_g77wf_104{bottom:calc(100% + 6px)}._menu_g77wf_92._bottom_g77wf_107{top:calc(100% + 6px)}._menu_g77wf_92._left_g77wf_110{right:calc(100% + 6px)}._menu_g77wf_92._right_g77wf_113{left:calc(100% + 6px)}._menu_g77wf_92._top_g77wf_104._align-start_g77wf_116,._menu_g77wf_92._bottom_g77wf_107._align-start_g77wf_116{left:0}._menu_g77wf_92._top_g77wf_104._align-end_g77wf_119,._menu_g77wf_92._bottom_g77wf_107._align-end_g77wf_119{right:0}._menu_g77wf_92._left_g77wf_110,._menu_g77wf_92._right_g77wf_113{min-width:0}._menu_g77wf_92._left_g77wf_110._align-start_g77wf_116,._menu_g77wf_92._right_g77wf_113._align-start_g77wf_116{top:0}._menu_g77wf_92._left_g77wf_110._align-end_g77wf_119,._menu_g77wf_92._right_g77wf_113._align-end_g77wf_119{bottom:0}._option_g77wf_132{padding:7px 12px;font-size:11px;color:var(--ds-option-text);cursor:pointer;outline:none}._option_g77wf_132:hover,._option_g77wf_132:focus-visible{background:var(--ds-option-hover-bg)}._option_g77wf_132._active_g77wf_142{background:var(--ds-active-bg);color:var(--ds-active-text);font-weight:500}._option_g77wf_132._disabled_g77wf_147{opacity:.4;cursor:auto}._option_g77wf_132._disabled_g77wf_147:hover{background:transparent}._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";var Ma=Object.create;var hs=Object.defineProperty;var La=Object.getOwnPropertyDescriptor;var Ra=Object.getOwnPropertyNames;var Ia=Object.getPrototypeOf,Da=Object.prototype.hasOwnProperty;var Ba=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ra(t))!Da.call(e,o)&&o!==n&&hs(e,o,{get:()=>t[o],enumerable:!(r=La(t,o))||r.enumerable});return e};var Pa=(e,t,n)=>(n=e!=null?Ma(Ia(e)):{},Ba(t||!e||!e.__esModule?hs(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),_=require("react"),ie=require("react-i18next"),lo=require("framer-motion"),co=require("zustand"),ae=require("d3"),Va=require("mapbox-gl"),Fa=require("react-redux"),Bi=require("react-dom"),$r=require("maplibre-gl"),za=require("pmtiles"),qa=require("@reduxjs/toolkit"),gs=require("@mui/material"),Wa=require("@emotion/react"),Ua=require("@emotion/styled"),Pi=require("react-router-dom");function Vi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const te=Vi(_),Nr=Vi(ae),Ha="_ambitSelector_mcunf_2",Ka="_header_mcunf_13",Za="_nameDateContainer_mcunf_23",Ga="_ambitName_mcunf_39",Ya="_ambitDate_mcunf_53",Xa="_buttonsContainer_mcunf_67",Qa="_ambitListContainer_mcunf_76",Ja="_newAmbitButtonContainer_mcunf_80",vt={ambitSelector:Ha,header:Ka,nameDateContainer:Za,ambitName:Ga,ambitDate:Ya,buttonsContainer:Xa,ambitListContainer:Qa,newAmbitButtonContainer:Ja},el="_ambitItem_1qa6u_2",tl="_ambitNameDate_1qa6u_16",nl="_ambitName_1qa6u_16",rl="_ambitDate_1qa6u_35",ol="_ambitButtons_1qa6u_38",yn={ambitItem:el,ambitNameDate:tl,ambitName:nl,ambitDate:rl,ambitButtons:ol},sl="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",il="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",al="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",ll="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",cl="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",ul="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";function dl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rn={exports:{}},In={exports:{}},pe={};/** @license React v16.13.1
|
|
3
3
|
* react-is.production.min.js
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var ys;function fl(){if(ys)return pe;ys=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function N(C){if(typeof C=="object"&&C!==null){var T=C.$$typeof;switch(T){case t:switch(C=C.type,C){case u:case d:case r:case i:case o:case h:return C;default:switch(C=C&&C.$$typeof,C){case c:case m:case b:case g:case a:return C;default:return T}}case n:return T}}}function v(C){return N(C)===d}return pe.AsyncMode=u,pe.ConcurrentMode=d,pe.ContextConsumer=c,pe.ContextProvider=a,pe.Element=t,pe.ForwardRef=m,pe.Fragment=r,pe.Lazy=b,pe.Memo=g,pe.Portal=n,pe.Profiler=i,pe.StrictMode=o,pe.Suspense=h,pe.isAsyncMode=function(C){return v(C)||N(C)===u},pe.isConcurrentMode=v,pe.isContextConsumer=function(C){return N(C)===c},pe.isContextProvider=function(C){return N(C)===a},pe.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},pe.isForwardRef=function(C){return N(C)===m},pe.isFragment=function(C){return N(C)===r},pe.isLazy=function(C){return N(C)===b},pe.isMemo=function(C){return N(C)===g},pe.isPortal=function(C){return N(C)===n},pe.isProfiler=function(C){return N(C)===i},pe.isStrictMode=function(C){return N(C)===o},pe.isSuspense=function(C){return N(C)===h},pe.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===d||C===i||C===o||C===h||C===y||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===g||C.$$typeof===a||C.$$typeof===c||C.$$typeof===m||C.$$typeof===x||C.$$typeof===w||C.$$typeof===S||C.$$typeof===f)},pe.typeOf=N,pe}var me={};/** @license React v16.13.1
|
|
10
10
|
* react-is.development.js
|
|
11
11
|
*
|
|
12
12
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the MIT license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/var
|
|
16
|
+
*/var bs;function pl(){return bs||(bs=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,y=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function N(V){return typeof V=="string"||typeof V=="function"||V===r||V===d||V===i||V===o||V===h||V===y||typeof V=="object"&&V!==null&&(V.$$typeof===b||V.$$typeof===g||V.$$typeof===a||V.$$typeof===c||V.$$typeof===m||V.$$typeof===x||V.$$typeof===w||V.$$typeof===S||V.$$typeof===f)}function v(V){if(typeof V=="object"&&V!==null){var de=V.$$typeof;switch(de){case t:var Ve=V.type;switch(Ve){case u:case d:case r:case i:case o:case h:return Ve;default:var ct=Ve&&Ve.$$typeof;switch(ct){case c:case m:case b:case g:case a:return ct;default:return de}}case n:return de}}}var C=u,T=d,O=c,j=a,$=t,L=m,R=r,p=b,E=g,k=n,D=i,z=o,B=h,F=!1;function Z(V){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),M(V)||v(V)===u}function M(V){return v(V)===d}function I(V){return v(V)===c}function J(V){return v(V)===a}function H(V){return typeof V=="object"&&V!==null&&V.$$typeof===t}function q(V){return v(V)===m}function G(V){return v(V)===r}function ne(V){return v(V)===b}function re(V){return v(V)===g}function Q(V){return v(V)===n}function se(V){return v(V)===i}function K(V){return v(V)===o}function le(V){return v(V)===h}me.AsyncMode=C,me.ConcurrentMode=T,me.ContextConsumer=O,me.ContextProvider=j,me.Element=$,me.ForwardRef=L,me.Fragment=R,me.Lazy=p,me.Memo=E,me.Portal=k,me.Profiler=D,me.StrictMode=z,me.Suspense=B,me.isAsyncMode=Z,me.isConcurrentMode=M,me.isContextConsumer=I,me.isContextProvider=J,me.isElement=H,me.isForwardRef=q,me.isFragment=G,me.isLazy=ne,me.isMemo=re,me.isPortal=Q,me.isProfiler=se,me.isStrictMode=K,me.isSuspense=le,me.isValidElementType=N,me.typeOf=v}()),me}var vs;function Fi(){return vs||(vs=1,process.env.NODE_ENV==="production"?In.exports=fl():In.exports=pl()),In.exports}/*
|
|
17
17
|
object-assign
|
|
18
18
|
(c) Sindre Sorhus
|
|
19
19
|
@license MIT
|
|
20
|
-
*/var Er,
|
|
21
|
-
Valid keys: `+JSON.stringify(Object.keys(M),null," "));var
|
|
22
|
-
${t==="horizontal"&&
|
|
23
|
-
${h&&Lt.active}`,disabled:b,children:f}),o&&l.jsx(nt,{text:y,position:i})]},u)})})};mo.displayName="ButtonsList";mo.propTypes={buttons:s.arrayOf(s.shape({icon:s.node.isRequired,activeIcon:s.node,isActive:s.bool,name:s.string,onClick:s.func,disabled:s.bool})).isRequired,orientation:s.oneOf(["horizontal","vertical"]),showName:s.bool,namePosition:s.oneOf(["left","right"]),useTooltip:s.bool,tooltipPosition:s.oneOf(["top","bottom","left","right"])};const Ol="_indicatorsCategory_11gdl_2",Ml="_title_11gdl_6",Ll="_mainTitle_11gdl_14",In={indicatorsCategory:Ol,title:Ml,mainTitle:Ll},gt=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:i="Title",height:a=53,titleFontStyles:c,showBottomBar:u=!0,titleMarginChildren:d=15,mainTitle:m=!1})=>{const{t:h}=le.useTranslation();return l.jsxs(lo.motion.div,{className:In.indicatorsCategory,initial:{height:`${a}px`},animate:{height:e?"auto":`${a}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&u?`1px solid ${o}`:"0px",minHeight:m?"70px":"50px"},children:[l.jsxs("h2",{style:{...c},className:`${In.title} ${m&&In.mainTitle}`,onClick:t,children:[l.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),l.jsx("span",{style:{color:e?o:r},children:h(i)})]}),l.jsx("div",{className:In.content,style:{padding:m?"20px 0px":"0px"},children:n})]})};gt.displayName="DropdownList";gt.propTypes={isOpen:s.bool,onClick:s.func,children:s.node,color:s.string,activeColor:s.string,title:s.string,height:s.number,showBottomBar:s.bool,titleFontStyles:s.object};const zi=()=>l.jsx("div",{children:"EditAmbit"});zi.displayName="EditAmbit";const Rl="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",Il="_AppliedFiltersContainer_cokx9_2",Dl="_AppliedFilterContent_cokx9_11",js={AppliedFiltersContainer:Il,AppliedFilterContent:Dl},ve=co.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56",activeFiltersType:null})),ho=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680",activeColor:i,fontColor:a="#605B56"})=>{const{t:c}=le.useTranslation(),{tematicalFiltersSelected:u,activeFiltersType:d}=ve(y=>y),m=y=>{ve.setState(g=>({tematicalFiltersSelected:g.tematicalFiltersSelected.filter(b=>b.code!==y)}))},h=()=>{d=="applied"?ve.setState(()=>({activeFiltersType:null})):ve.setState(()=>({activeFiltersType:"applied"}))};return l.jsx(gt,{isOpen:n,onClick:h,title:e?c(e):"Applied Filters",activeColor:i,mainTitle:!0,color:a,children:l.jsx("div",{className:js.AppliedFiltersContainer,children:u==null?void 0:u.map((y,g)=>l.jsxs("div",{className:js.AppliedFilterContent,style:{color:r,background:o},children:[c(y.name),l.jsx("img",{src:Rl,alt:"CloseIcon",onClick:()=>m(y.code),style:{cursor:"pointer"}})]},g))})})};ho.displayName="AppliedFilters";ho.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,indicators:s.arrayOf(s.shape({title:s.string.isRequired,Codename:s.string.isRequired})),activeColor:s.string};const Bl="_layersList_cn837_25",Pl="_layerName_cn837_34",$s={layersList:Bl,layerName:Pl},go=({title:e,isOpen:t=!0,fontColor:n="#605B56",backgroundColor:r="#605B5680",activeColor:o,geoLayers:i=[],onGeoLayersChange:a})=>{const{t:c}=le.useTranslation(),{activeFiltersType:u}=ve(h=>h),d=()=>{u==="geographical"?ve.setState({activeFiltersType:null}):ve.setState({activeFiltersType:"geographical"})},m=h=>{const y=i.map(g=>({...g,active:g.name===h.name}));a==null||a(y)};return l.jsx(gt,{isOpen:u==="geographical",onClick:d,title:e?c(e):"Geographical Filters",activeColor:o,color:n,mainTitle:!0,children:l.jsx("div",{className:$s.layersList,children:i.map(h=>l.jsx("div",{className:$s.layerName,style:{color:h.active?o:n,fontWeight:h.active?"bold":"normal"},onClick:()=>m(h),children:c(h.name)},h.name))})})};go.displayName="GeographicalFilters";go.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,activeColor:s.string};const Fl="_checkboxContainer_1nxra_2",Vl={checkboxContainer:Fl},yo=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:i}=le.useTranslation(),{title:a}=r||{},{fontColor:c,inputsColor:u}=ve(d=>d);return l.jsxs("div",{style:{...t,color:n},role:"checkbox",className:Vl.checkboxContainer,onClick:e,children:[l.jsx("input",{type:"checkbox",checked:typeof o=="boolean"?o:!0,value:o,readOnly:!0,style:{border:`1.5px solid ${o?u:c}`,backgroundColor:o?u:"white"}}),l.jsx("span",{className:"checkmark",children:i(a)})]})};yo.displayName="CategoryCheckbox";yo.propTypes={onClick:s.func,value:s.bool,containerStyles:s.object,color:s.string,indicator:s.shape({title:s.string,codename:s.array}),checkedColor:s.string};function Yr(e,t){return Yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Yr(e,t)}function zl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yr(e,t)}function Ir(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function Dr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function Dn(e){return e!==null&&e.length===1?e[0]:e.slice()}function Bn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Rt(e,t){return Xr(function(n,r){let o=n;return o<=r.min&&(o=r.min),o>=r.max&&(o=r.max),o}(e,t),t)}function Xr(e,t){const n=(e-t.min)%t.step;let r=e-n;return 2*Math.abs(n)>=t.step&&(r+=n>0?t.step:-t.step),parseFloat(r.toFixed(5))}let Qr=function(e){function t(r){var o;(o=e.call(this,r)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=c=>{c.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=c=>{o.setState({pending:!0});const u=o.getMousePosition(c),d=o.getDiffPosition(u[0]),m=o.getValueFromPosition(d);o.move(m)},o.onTouchMove=c=>{if(c.touches.length>1)return;o.setState({pending:!0});const u=o.getTouchPosition(c);if(o.isScrolling===void 0){const h=u[0]-o.startPosition[0],y=u[1]-o.startPosition[1];o.isScrolling=Math.abs(y)>Math.abs(h)}if(o.isScrolling)return void o.setState({index:-1});const d=o.getDiffPosition(u[0]),m=o.getValueFromPosition(d);o.move(m)},o.onKeyDown=c=>{if(!(c.ctrlKey||c.shiftKey||c.altKey||c.metaKey))switch(o.setState({pending:!0}),c.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":c.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":c.preventDefault(),o.moveUpByStep();break;case"Home":c.preventDefault(),o.move(o.props.min);break;case"End":c.preventDefault(),o.move(o.props.max);break;case"PageDown":c.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":c.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=c=>{if(!o.props.disabled&&c.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){const u=o.getMousePosition(c);o.forceValueFromPosition(u[0],d=>{o.start(d,u[0]),Bn(o.getMouseEventMap())})}Ir(c)}},o.onSliderClick=c=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){const u=o.getMousePosition(c),d=Rt(o.calcValue(o.calcOffsetFromPosition(u[0])),o.props);o.props.onSliderClick(d)}},o.createOnKeyDown=c=>u=>{o.props.disabled||(o.start(c),Bn(o.getKeyDownEventMap()),Ir(u))},o.createOnMouseDown=c=>u=>{if(o.props.disabled||u.button===2)return;o.setState({pending:!0});const d=o.getMousePosition(u);o.start(c,d[0]),Bn(o.getMouseEventMap()),Ir(u)},o.createOnTouchStart=c=>u=>{if(o.props.disabled||u.touches.length>1)return;o.setState({pending:!0});const d=o.getTouchPosition(u);o.startPosition=d,o.isScrolling=void 0,o.start(c,d[0]),Bn(o.getTouchEventMap()),function(m){m.stopPropagation&&m.stopPropagation()}(u)},o.handleResize=()=>{const c=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(c)},o.renderThumb=(c,u)=>{const d=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+u+" "+(o.state.index===u?o.props.thumbActiveClassName:""),m={ref:y=>{o["thumb"+u]=y},key:o.props.thumbClassName+"-"+u,className:d,style:c,onMouseDown:o.createOnMouseDown(u),onTouchStart:o.createOnTouchStart(u),onFocus:o.createOnKeyDown(u),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[u],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[u]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[u]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},h={index:u,value:Dn(o.state.value),valueNow:o.state.value[u]};return o.props.ariaValuetext&&(m["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(h)),o.props.renderThumb(m,h)},o.renderTrack=(c,u,d)=>{const m={key:o.props.trackClassName+"-"+c,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+c,style:o.buildTrackStyle(u,o.state.upperBound-d)},h={index:c,value:Dn(o.state.value)};return o.props.renderTrack(m,h)};let i=Dr(r.value);i.length||(i=Dr(r.defaultValue)),o.pendingResizeTimeouts=[];const a=[];for(let c=0;c<i.length;c+=1)i[c]=Rt(i[c],r),a.push(c);return o.resizeObserver=null,o.resizeElementRef=w.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:a},o}zl(t,e);var n=t.prototype;return n.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(r,o){const i=Dr(r.value);return i.length?o.pending?null:{value:i.map(a=>Rt(a,r))}:null},n.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},n.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},n.onEnd=function(r){r&&function(o){Object.keys(o).forEach(i=>{typeof document<"u"&&document.removeEventListener(i,o[i],!1)})}(r),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return Dn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,i=-1;const{value:a}=this.state,c=a.length;for(let u=0;u<c;u+=1){const d=this.calcOffset(a[u]),m=Math.abs(r-d);m<o&&(o=m,i=u)}return i},n.getMousePosition=function(r){return[r["page"+this.axisKey()],r["page"+this.orthogonalAxisKey()]]},n.getTouchPosition=function(r){const o=r.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},n.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},n.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},n.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},n.getValueFromPosition=function(r){const o=r/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return Rt(this.state.startValue+o,this.props)},n.getDiffPosition=function(r){let o=r-this.state.startPosition;return this.props.invert&&(o*=-1),o},n.resize=function(){const{slider:r,thumb0:o}=this;if(!r||!o)return;const i=this.sizeKey(),a=r.getBoundingClientRect(),c=r[i],u=a[this.posMaxKey()],d=a[this.posMinKey()],m=o.getBoundingClientRect()[i.replace("client","").toLowerCase()],h=c-m,y=Math.abs(u-d);this.state.upperBound===h&&this.state.sliderLength===y&&this.state.thumbSize===m||this.setState({upperBound:h,sliderLength:y,thumbSize:m})},n.calcOffset=function(r){const o=this.props.max-this.props.min;return o===0?0:(r-this.props.min)/o*this.state.upperBound},n.calcValue=function(r){return r/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(r){const{slider:o}=this,i=o.getBoundingClientRect(),a=i[this.posMaxKey()],c=i[this.posMinKey()];let u=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:c));return this.props.invert&&(u=this.state.sliderLength-u),u-=this.state.thumbSize/2,u},n.forceValueFromPosition=function(r,o){const i=this.calcOffsetFromPosition(r),a=this.getClosestIndex(i),c=Rt(this.calcValue(i),this.props),u=this.state.value.slice();u[a]=c;for(let d=0;d<u.length-1;d+=1)if(u[d+1]-u[d]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:u},()=>{o(a),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do{const r=this.pendingResizeTimeouts.shift();clearTimeout(r)}while(this.pendingResizeTimeouts.length)},n.start=function(r,o){const i=this["thumb"+r];i&&i.focus();const{zIndices:a}=this.state;a.splice(a.indexOf(r),1),a.push(r),this.setState(c=>({startValue:c.value[r],startPosition:o!==void 0?o:c.startPosition,index:r,zIndices:a}))},n.moveUpByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],i=Rt(this.props.invert&&this.props.orientation==="horizontal"?o-r:o+r,this.props);this.move(Math.min(i,this.props.max))},n.moveDownByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],i=Rt(this.props.invert&&this.props.orientation==="horizontal"?o+r:o-r,this.props);this.move(Math.max(i,this.props.min))},n.move=function(r){const o=this.state.value.slice(),{index:i}=this.state,{length:a}=o,c=o[i];if(r===c)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:u,max:d,min:m,minDistance:h}=this.props;if(!u){if(i>0){const y=o[i-1];r<y+h&&(r=y+h)}if(i<a-1){const y=o[i+1];r>y-h&&(r=y-h)}}o[i]=r,u&&a>1&&(r>c?(this.pushSucceeding(o,h,i),function(y,g,b,f){for(let C=0;C<y;C+=1){const _=f-C*b;g[y-1-C]>_&&(g[y-1-C]=_)}}(a,o,h,d)):r<c&&(this.pushPreceding(o,h,i),function(y,g,b,f){for(let C=0;C<y;C+=1){const _=f+C*b;g[C]<_&&(g[C]=_)}}(a,o,h,m))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,o,i){let a,c;for(a=i,c=r[a]+o;r[a+1]!==null&&c>r[a+1];a+=1,c=r[a]+o)r[a+1]=Xr(c,this.props)},n.pushPreceding=function(r,o,i){for(let a=i,c=r[a]-o;r[a-1]!==null&&c<r[a-1];a-=1,c=r[a]-o)r[a-1]=Xr(c,this.props)},n.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},n.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},n.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},n.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},n.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},n.fireChangeEvent=function(r){this.props[r]&&this.props[r](Dn(this.state.value),this.state.index)},n.buildThumbStyle=function(r,o){const i={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return i[this.posMinKey()]=r+"px",i},n.buildTrackStyle=function(r,o){const i={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return i[this.posMinKey()]=r,i[this.posMaxKey()]=o,i},n.buildMarkStyle=function(r){var o;return(o={position:"absolute"})[this.posMinKey()]=r,o},n.renderThumbs=function(r){const{length:o}=r,i=[];for(let c=0;c<o;c+=1)i[c]=this.buildThumbStyle(r[c],c);const a=[];for(let c=0;c<o;c+=1)a[c]=this.renderThumb(i[c],c);return a},n.renderTracks=function(r){const o=[],i=r.length-1;o.push(this.renderTrack(0,0,r[0]));for(let a=0;a<i;a+=1)o.push(this.renderTrack(a+1,r[a],r[a+1]));return o.push(this.renderTrack(i+1,r[i],this.state.upperBound)),o},n.renderMarks=function(){let{marks:r}=this.props;const o=this.props.max-this.props.min+1;return typeof r=="boolean"?r=Array.from({length:o}).map((i,a)=>a):typeof r=="number"&&(r=Array.from({length:o}).map((i,a)=>a).filter(i=>i%r==0)),r.map(parseFloat).sort((i,a)=>i-a).map(i=>{const a=this.calcOffset(i),c={key:i,className:this.props.markClassName,style:this.buildMarkStyle(a)};return this.props.renderMark(c)})},n.render=function(){const r=[],{value:o}=this.state,i=o.length;for(let d=0;d<i;d+=1)r[d]=this.calcOffset(o[d],d);const a=this.props.withTracks?this.renderTracks(r):null,c=this.renderThumbs(r),u=this.props.marks?this.renderMarks():null;return w.createElement("div",{ref:d=>{this.slider=d,this.resizeElementRef.current=d},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},a,c,u)},t}(w.Component);Qr.displayName="ReactSlider",Qr.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,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:e=>w.createElement("div",e),renderTrack:e=>w.createElement("div",e),renderMark:e=>w.createElement("span",e)};var Jr=Qr;const ql="_container_4u41i_2",Wl="_unitLabel_4u41i_8",Ul="_slider_4u41i_11",Hl="_thumb_4u41i_17",Kl="_track_4u41i_26",Gl="_labels_4u41i_32",Yt={container:ql,unitLabel:Wl,slider:Ul,thumb:Hl,track:Kl,labels:Gl},bo=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:i,fontColor:a="#605B56",defaultValue:c,isDate:u})=>{const{t:d}=le.useTranslation(),m=u?new Date(e).getTime():null,h=u?new Date(t).getTime():null,[y,g]=w.useState(u?[m,h]:[e,t]),b=f=>{g(f),r==null||r({min:f[0],max:f[1]})};return w.useEffect(()=>{g(c||(u?[m,h]:[e,t]))},[c,u]),l.jsxs("div",{className:Yt.container,style:{width:`${o}px`,color:`${a}`},children:[l.jsx("div",{className:Yt.unitLabel,children:l.jsx("span",{children:d(i)})}),l.jsx(Jr,{className:Yt.slider,thumbClassName:Yt.thumb,trackClassName:Yt.track,min:u?m:e,max:u?h:t,step:u?(h-m)/30:n,value:y,onAfterChange:b,withTracks:!0,pearling:!u,minDistance:u?0:.1}),l.jsxs("div",{className:Yt.labels,children:[l.jsx("span",{children:u?new Date(y[0]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[0]}),l.jsx("span",{children:u?new Date(y[1]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[1]})]})]})};bo.displayName="AbsoluteSlider";bo.propTypes={min:s.number,max:s.number,step:s.number,initialMin:s.number,initialMax:s.number,onChange:s.func,width:s.number,unit:s.string,fontColor:s.string,value:s.arrayOf(s.number)};const Zl="_tematicalFiltersInputContainer_1vm1r_2",Yl="_inputTypeContainer_1vm1r_2",Xl="_checkboxContainer_1vm1r_28",Ql="_absoluteSliderContainer_1vm1r_37",Pn={tematicalFiltersInputContainer:Zl,inputTypeContainer:Yl,checkboxContainer:Xl,absoluteSliderContainer:Ql},cr=({indicator:e,activeColor:t})=>{const[n,r]=w.useState(),{type:o,name:i,values:a,minValue:c,maxValue:u,unit:d,step:m,disabled:h,isDate:y}=e||{},g=w.useMemo(()=>o=="cat"||n=="cat",[n,o]),b=w.useMemo(()=>o=="abs"||n=="abs",[n,o]),{tematicalFiltersSelected:f,selectedIndicator:C,fontColor:_,inputsColor:S}=ve(x=>x),E=x=>{if(x){const{min:T,max:O,valueClicked:j,allValues:$}=x||{},{code:z,type:D,source:p}=e||{},N=b?"abs":g?"cat":"both";let k=z[0];D=="both"&&(k=N=="cat"?z[1]:z[0]),N=="cat"?ve.setState(R=>{let q=R.tematicalFiltersSelected.find(I=>I.code===k);if(q){let I=[q.values];return q.values.includes(j)?I=q.values.filter(V=>V!==j):I=[...q.values,j],I.length==$.length?{tematicalFiltersSelected:R.tematicalFiltersSelected.filter(V=>V.code!==k)}:{tematicalFiltersSelected:R.tematicalFiltersSelected.map(V=>V.code===k?{...V,values:I}:V)}}else{let I=($||[]).map((V,H)=>H);return{tematicalFiltersSelected:[...f,{type:"cat",code:k,values:I.filter(V=>V!==j),name:e.name,source:p,isDate:y}]}}}):N=="abs"&&ve.setState(R=>{let q=R.tematicalFiltersSelected.find(I=>I.code===k);if(T==e.minValue&&O==e.maxValue)return{tematicalFiltersSelected:R.tematicalFiltersSelected.filter(I=>I.code!==k)};if(q){let I={...q,min:T,max:O,type:N,isDate:y};return{tematicalFiltersSelected:R.tematicalFiltersSelected.map(V=>V.code===k?I:V)}}else return{tematicalFiltersSelected:[...f,{type:N,code:k,min:T,max:O,name:e.name,source:e.source}]}})}},v=w.useMemo(()=>{const x={};if((f==null?void 0:f.length)>0)for(const T of f)T.type==="cat"?x[T.code]=new Set(T.values):x[T.code]=[T.min,T.max];return x},[f]);return l.jsx("div",{className:Pn.tematicalFiltersInputContainer,children:l.jsxs(gt,{titleFontStyles:{fontSize:16,fontWeight:400,opacity:h?.5:1},title:i,isOpen:C==`id${i}`,onClick:()=>{h||ve.setState(()=>({selectedIndicator:C==`id${i}`?"":`id${i}`}))},showBottomBar:!1,height:42,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:_,activeColor:t,children:[o=="both"&&l.jsxs("div",{className:Pn.inputTypeContainer,style:{color:_},children:[l.jsxs("label",{children:[l.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{r("abs")},style:{marginRight:4,backgroundColor:n=="abs"?S:"white",border:`1.5px solid ${n=="abs"?S:_}`}}),"Absoluto"]}),l.jsxs("label",{children:[l.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{r("cat")},style:{marginRight:4,backgroundColor:n=="cat"?S:"white",border:`1.5px solid ${n=="cat"?S:_}`}}),"Categórico"]})]}),g&&l.jsx("div",{className:Pn.checkboxContainer,children:(a||[]).map((x,T)=>{var O;return l.jsx(yo,{onClick:()=>E({valueClicked:T,allValues:a}),indicator:x,value:((O=v[e.code[o=="both"?1:0]])==null?void 0:O.has(T))||!v[e.code[o=="both"?1:0]]},`checkbox-${T}`)})}),(b||o=="glb")&&l.jsx("div",{className:Pn.absoluteSliderContainer,children:l.jsx(bo,{onChange:E,min:c,max:u,unit:d,defaultValue:v[e.code[0]]?v[e.code[0]]:"",isDate:y,step:m})})]})})};cr.displayName="TematicalFiltersInput";cr.propTypes={indicator:s.shape({name:s.string,type:s.string,code:s.arrayOf(s.string),values:s.arrayOf(s.shape({codename:s.oneOfType([s.array,s.string]),title:s.string}))}),activeColor:s.string};const vo=({subcategory:e,fontColor:t,activeColor:n})=>{const{activeSubcategory:r}=ve(a=>a),{name:o,indicators:i}=e||{};return l.jsx(gt,{title:o,isOpen:r==`id${o}`,onClick:()=>{ve.setState(a=>({activeSubcategory:a.activeSubcategory===`id${o}`?"":`id${o}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:48,color:t,activeColor:n,children:i==null?void 0:i.map((a,c)=>l.jsx(cr,{indicator:a,fontColor:t,activeColor:n},`indicatorSub-${c}`))})};vo.displayName="TematicalFiltersSubcat";vo.propTypes={subcategory:s.shape({name:s.string,indicators:s.arrayOf(s.shape({name:s.string,value:s.string}))}),activeColor:s.string};const xo=({category:e,activeColor:t})=>{const{name:n,subcategories:r,indicators:o}=e||{},{activeCategory:i,fontColor:a}=ve(c=>c);return e&&l.jsx(gt,{onClick:()=>{ve.setState(c=>({activeCategory:i===`id${n}`?"":`id${n}`}))},title:n,isOpen:i===`id${n}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:a,activeColor:t,children:r?r.map((c,u)=>l.jsx(vo,{subcategory:c,fontColor:a,activeColor:t},`subcategory-${u}`)):o&&o.map((c,u)=>l.jsx(cr,{indicator:c,fontColor:a,activeColor:t},`indicator-${u}`))})};xo.displayName="TematicalFiltersCategory";xo.propTypes={category:s.shape({name:s.string.isRequired,subcategories:s.array,indicators:s.array}),activeColor:s.string};const tr=({indicators:e,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56",activeColor:i,isExtra:a=!1})=>{const{tematicalFiltersSelected:c,activeFiltersType:u}=ve(h=>h),{t:d}=le.useTranslation();w.useEffect(()=>{r&&ve.setState(()=>({fontColor:r}))},[r]),w.useEffect(()=>{o&&ve.setState(()=>({inputsColor:o}))},[o]);const m=()=>{a?u==a?ve.setState(()=>({activeFiltersType:null})):ve.setState(()=>({activeFiltersType:a})):u=="tematical"?ve.setState(()=>({activeFiltersType:null})):ve.setState(()=>({activeFiltersType:"tematical"}))};return l.jsx(gt,{isOpen:a&&u==a||!a&&u=="tematical",title:n?d(n):"Tematical filters",color:r,activeColor:i,onClick:m,mainTitle:!0,children:e==null?void 0:e.map((h,y)=>l.jsx(xo,{category:h,fontColor:r,activeColor:i},`category-${y}`))})};tr.displayName="TematicalFilters";tr.propTypes={isOpen:s.bool,title:s.string,indicators:s.arrayOf(s.object),fontColor:s.string,onChangeTematicalFilters:s.func,inputsColor:s.string,activeColor:s.string};const Jl="_FiltersAmbitContainer_ei39o_2",ec="_FiltersContainer_ei39o_15",tc="_FiltersAmbitHeader_ei39o_18",nc="_FiltersAmbitTitle_ei39o_26",rc="_FiltersAmbitDescription_ei39o_35",oc="_FiltersAmbitDescriptionTitle_ei39o_48",sc="_warning_ei39o_57",ic="_buttonContainer_ei39o_60",_t={FiltersAmbitContainer:Jl,FiltersContainer:ec,FiltersAmbitHeader:tc,FiltersAmbitTitle:nc,FiltersAmbitDescription:rc,FiltersAmbitDescriptionTitle:oc,warning:sc,buttonContainer:ic},Co=({ambitName:e,ambitDescription:t,defaultFilters:n,indicators:r,activeColor:o,textColor:i,backgroundColor:a,onChangeAppliedFilters:c,saveAmbit:u,namePlaceholder:d,descPlaceholder:m,filtersTypes:h=["geographical","tematical"],nameRequiredText:y,geoLayers:g=[],onGeoLayersChange:b,onlyFilters:f=!1,descriptionRequired:C=!1,extraLists:_=!1})=>{const{t:S}=le.useTranslation(),{tematicalFiltersSelected:E,activeFiltersType:v}=ve(p=>p),[x,T]=w.useState(e||null),[O,j]=w.useState(t||null),[$,z]=w.useState(!1);w.useEffect(()=>{ve.setState({tematicalFiltersSelected:n||[]})},[n]),w.useRef(!1),w.useEffect(()=>{c(E)},[E]);const D=()=>{C?x&&O?u({name:x,description:O}):z(!0):x?u({name:x,description:O}):z(!0)};return w.useEffect(()=>{if(h.includes("geographical")&&v!="geographical"&&g.length>0){const p=g.map(N=>({...N,active:!1}));b==null||b(p)}},[v]),l.jsxs("div",{className:_t.FiltersAmbitContainer,children:[l.jsxs("div",{className:_t.FiltersContainer,children:[!f&&l.jsxs("div",{className:_t.FiltersAmbitHeader,children:[l.jsx("div",{className:_t.FiltersAmbitTitle,children:l.jsx("input",{type:"text",onChange:p=>{z(!1),T(p.target.value)},value:x,placeholder:S(d)})}),l.jsx("div",{className:_t.FiltersAmbitDescription,children:l.jsx("div",{className:_t.FiltersAmbitDescriptionTitle,children:l.jsx("textarea",{value:O,onChange:p=>{C&&z(!1),j(p.target.value)},placeholder:S(m)})})})]}),l.jsx(ho,{title:S("applied_filters"),isOpen:v=="applied",textColor:i||"#fff",backgroundColor:a||"#605B5680",activeColor:o}),h.includes("geographical")&&l.jsx(go,{title:"geo_filters",activeColor:o,geoLayers:g,onGeoLayersChange:b}),h.includes("extra")&&_.map(p=>l.jsx(tr,{indicators:p.indicators,inputsColor:o,textColor:i,title:p.title,activeColor:o,isExtra:p.title})),h.includes("tematical")&&l.jsx(tr,{indicators:r,inputsColor:o,textColor:i,title:"tematical_filters",activeColor:o,isExtra:!1})]}),!f&&l.jsxs("div",{className:_t.buttonContainer,children:[$&&l.jsx("div",{className:_t.warning,children:S(y)}),l.jsx(pn,{onClick:()=>D(),children:S("save_ambit")})]})]})};Co.displayName="FiltersAmbit";Co.propTypes={indicators:s.arrayOf(s.object).isRequired,ambitName:s.string,ambitDescription:s.string,defaultFilters:s.arrayOf(s.object),activeColor:s.string,backgroundColor:s.string,textColor:s.string,onChangeAppliedFilters:s.func,saveAmbit:s.func,namePlaceholder:s.string,descPlaceholder:s.string,filtersTypes:s.arrayOf(s.string).isRequired,nameRequiredText:s.string,extraLists:s.arrayOf(s.object)};const ac="_barChartContainer_1ly7h_2",Ns={barChartContainer:ac},ur=({data:e,barHeight:t=25,gap:n=23,fontColor:r="#605B56",leftPadding:o=200,numberOfDivisions:i=7,maxValue:a=null,orientation:c="horizontal",horizontalPadding:u=c=="vertical"?50:20,verticalPadding:d=10,xLabelPadding:m=c=="vertical"?50:40,containerWidth:h=700,containerHeight:y=500,mainColor:g="#000"})=>{const{xScale:b,yScale:f,ticks:C,height:_,chartWidth:S,svgWidth:E,svgHeight:v,contentWidth:x}=w.useMemo(()=>{if(e&&e.length>0){const T=Nr.max(e,j=>j.value)||1,O=a||T;if(c==="vertical"){const j=e.length*(t+n)+u*2,$=Math.max(j,h||0),z=y,p=Nr.scaleLinear().domain([0,O]).range([z-100,d]),N=Array.from({length:i+1},(k,R)=>O/i*R);return{yScale:p,ticks:N,height:z,chartWidth:$,svgWidth:$,svgHeight:z,contentWidth:j}}else{const j=e.length*(t+n);console.log("barsHeight: ",j);const $=j+d*2+m+30,z=h+o+u*2,D=Nr.scaleLinear().domain([0,O]).range([0,h-u*2]),p=Array.from({length:i+1},(N,k)=>O/i*k);return{xScale:D,ticks:p,height:$,chartWidth:h,svgWidth:z,svgHeight:$,contentWidth:z}}}else return{xScale:null,yScale:null,ticks:[],height:0,svgHeight:0}},[e,i,t,n,u,d,a,c,o,h,y]);return c==="vertical"?l.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":g},className:Ns.barChartContainer,children:l.jsx("svg",{width:E,height:v,style:{display:"block",width:E,height:v,maxWidth:"none","--main-color":g},children:l.jsxs("g",{transform:`translate(${u}, 0)`,children:[l.jsx("g",{children:C.map((T,O)=>{const j=f(T);return l.jsxs("g",{children:[l.jsx("line",{x1:0,x2:S-u*2,y1:j,y2:j,stroke:"#ccc"}),l.jsx("text",{x:-10,y:j+4,textAnchor:"end",fontSize:10,fill:r,children:parseInt(T)})]},O)})}),e&&e.length>0&&e.map((T,O)=>{const j=f(0)-f(T.value),$=O*(t+n),z=f(T.value);return l.jsxs("g",{children:[l.jsx("rect",{x:$,y:z,width:t,height:j,fill:T.color,rx:0}),l.jsx("text",{x:$+t/2,y:_-m,textAnchor:"start",fill:r,fontSize:12,transform:`rotate(-90, ${$+t/2}, ${_-m})`,children:T.title})]},O)})]})})}):(console.log("svgHeight: ",v),l.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":g},className:Ns.barChartContainer,children:l.jsx("svg",{width:E,height:v,style:{minWidth:"100%",height:v,width:x,maxWidth:"none"},children:l.jsxs("g",{transform:`translate(0,${d})`,children:[l.jsx("g",{transform:`translate(${o+u}, 0)`,children:C.map((T,O)=>{const j=b(T);return l.jsxs("g",{transform:`translate(${j}, 0)`,children:[l.jsx("line",{y1:0,y2:e.length*(t+n),stroke:"#ccc"}),l.jsx("text",{y:e.length*(t+n)+30,textAnchor:"middle",fontSize:10,fill:r,children:parseInt(T)})]},O)})}),e&&e.length>0&&e.map((T,O)=>{const j=b(T.value),$=O*(t+n);return console.log("y: ",$),l.jsxs("g",{transform:`translate(${o+u}, ${$})`,children:[l.jsx("text",{x:-24,y:t/2+5,textAnchor:"end",fill:r,fontSize:12,children:T.title}),l.jsx("rect",{width:j,height:t,fill:T.color,rx:0})]},O)})]})})}))};ur.displayName="BarChart";ur.propTypes={data:s.arrayOf(s.shape({title:s.string,value:s.number,color:s.string})),length:s.number,barHeight:s.number,gap:s.number,verticalPadding:s.number,horizontalPadding:s.number,numberOfDivisions:s.number,fontColor:s.string,leftPadding:s.number,maxValue:s.number,orientation:s.oneOf(["horizontal","vertical"]),xLabelPadding:s.number,containerWidth:s.number,containerHeight:s.number,minBarWidth:s.number};const lc="_graphicContainer_1ozwp_2",cc="_titleContainer_1ozwp_13",Es={graphicContainer:lc,titleContainer:cc},_o=({data:e,graphLength:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:i="#605B56",maxValue:a=null,numberOfDivisions:c=7,leftPadding:u=-200,orientation:d="horizontal",xLabelPadding:m=0,mainColor:h})=>{const{t:y}=le.useTranslation();return l.jsxs("div",{className:Es.graphicContainer,style:{...n||{},paddingBottom:40},children:[l.jsx("div",{className:Es.titleContainer,children:l.jsx("h2",{children:y(o)})}),l.jsx(ur,{data:e,length:t,fontColor:i,maxValue:a,numberOfDivisions:c,leftPadding:u,orientation:d,xLabelPadding:m,mainColor:h})]})};_o.displayName="Graphic";_o.propTypes={data:s.arrayOf(s.shape({color:s.string.isRequired,value:s.number.isRequired,title:s.string.isRequired})),borderColor:s.string,title:s.string,graphLength:s.number,containerStyle:s.object,fontColor:s.string,mainColor:s.string,maxValue:s.number,numberOfDivisions:s.number,leftPadding:s.number,xLabelPadding:s.number};const uc="_indicatorsCategory_arwy3_2",dc="_title_arwy3_5",fc="_list_arwy3_13",Fn={indicatorsCategory:uc,title:dc,list:fc},pc="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",mc="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",at=co.create(e=>({activeColor:null,defaultColor:"#92898A",multiple:!1,activeIndicatorType:null,activeIndicatorSubcategory:""})),qi=({indicator:e,subcatIndex:t,indicatorSubcategory:n})=>{const r={},o=new Set;return Object.entries(e).forEach(([i,a])=>{const c=i.match(/^(.*)_subcat_(\d+)$/);if(c){const[u,d,m]=c;Number(m)===t&&(r[d]=a,o.add(d))}}),Object.entries(e).forEach(([i,a])=>{!i.includes("_subcat_")&&!o.has(i)&&(r[i]=a)}),r.activeIndicatorSubcategory=n,r},hc="_indicatorContainer_swmx0_2",gc="_indicatorNameContainer_swmx0_12",yc="_dot_swmx0_19",bc="_indicatorName_swmx0_12",vc="_switchExternalContainer_swmx0_33",xc="_switchType_swmx0_42",Cc="_switchTypeOptions_swmx0_46",_c="_optionContainer_swmx0_57",Sc="_customRadious_swmx0_67",wc="_optionText_swmx0_74",Ce={indicatorContainer:hc,indicatorNameContainer:gc,dot:yc,indicatorName:bc,switchExternalContainer:vc,switchType:xc,switchTypeOptions:Cc,optionContainer:_c,customRadious:Sc,optionText:wc},dr=({indicator:e,values:t=[],activeIndicator:n,onClickIndicator:r,onChangeType:o,onChangeIndicatorSubcategory:i})=>{const{t:a}=le.useTranslation(),{name:c,type:u,disabled:d,indicatorSubcategories:m}=e,{activeIndicatorType:h,activeColor:y,defaultColor:g,multiple:b,activeIndicatorSubcategory:f}=at(x=>x),[C,_]=w.useState(!1);w.useEffect(()=>{n&&_(b?n.some(x=>x.name==String(c)):n.name==c)},[n]);const S=()=>l.jsx("div",{className:Ce.switchExternalContainer,children:l.jsx("div",{className:Ce.switchType,children:l.jsxs("div",{className:Ce.switchTypeOptions,children:[l.jsxs("div",{className:Ce.optionContainer,onClick:()=>{at.setState(x=>({...x,activeIndicatorType:"cat"})),o("cat")},children:[l.jsx("span",{className:`${Ce.customRadious}`,style:{backgroundColor:h==="cat"?y:"transparent",borderColor:h==="cat"?y:g}}),l.jsx("h4",{className:Ce.optionText,style:{color:h==="cat"?y:g},children:a("indicators.cat")})]}),l.jsxs("div",{className:Ce.optionContainer,onClick:()=>{at.setState(x=>({...x,activeIndicatorType:"abs"})),o("abs")},children:[l.jsx("span",{className:`${Ce.customRadious}`,style:{backgroundColor:h==="abs"?y:"transparent",borderColor:h==="abs"?y:g}}),l.jsx("h4",{className:Ce.optionText,style:{color:h==="abs"?y:g},children:a("indicators.abs")})]})]})})}),E=()=>l.jsx("div",{className:Ce.switchExternalContainer,children:l.jsx("div",{className:Ce.switchType,children:l.jsx("div",{className:Ce.switchTypeOptions,children:m==null?void 0:m.map((x,T)=>l.jsxs("div",{className:Ce.optionContainer,onClick:()=>{at.setState(j=>({...j,activeIndicatorSubcategory:x.title}));let O=qi({indicator:e,subcatIndex:T,indicatorSubcategory:x.title});i&&i({indicator:O})},children:[l.jsx("span",{className:`${Ce.customRadious}`,style:{backgroundColor:f===x.title?y:"transparent",borderColor:f===x.title?y:g}}),l.jsx("h4",{className:Ce.optionText,style:{color:f===x.title?y:g},children:a(x.title)})]},`indicatorSubcategory-${x.title}`))})})}),v=()=>l.jsx("div",{className:Ce.switchExternalContainer,children:l.jsx("div",{className:Ce.switchType,children:l.jsx("div",{className:Ce.switchTypeOptions,children:t.map((x,T)=>l.jsxs("div",{className:Ce.optionContainer,children:[l.jsx("span",{className:Ce.customRadious}),l.jsx("h4",{children:a(x.unit)})]},T))})})});return l.jsxs("div",{className:Ce.indicatorContainer,children:[l.jsxs("div",{className:Ce.indicatorNameContainer,onClick:()=>!d&&r({indicator:e}),children:[l.jsx("div",{style:{border:C?`1px solid ${y}`:`1px solid ${g}`,opacity:d?.5:1,backgroundColor:C?y:"transparent"},className:Ce.dot,children:b&&l.jsx("img",{src:C?mc:pc,alt:""})}),l.jsx("h4",{className:Ce.indicatorName,style:{color:C?y:g,opacity:d?.5:1},children:l.jsx(le.Trans,{i18nKey:c,components:{sup:l.jsx("sup",{})},shouldUnescape:!0})})]}),(n==null?void 0:n.name)===c&&u==="both"&&S(),(n==null?void 0:n.name)===c&&u==="twoUnits"&&v(),(n==null?void 0:n.name)===c&&m&&m.length>0&&E()]})};dr.displayName="Indicator";dr.propTypes={indicator:s.shape({name:s.string,type:s.string}),values:s.oneOfType([s.bool,s.array]),activeColor:s.string,defaultColor:s.string,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,onClickIndicator:s.func};const Tc="_indicatorsSubCategory_1nuug_2",kc="_list_1nuug_11",As={indicatorsSubCategory:Tc,list:kc},So=({subcName:e,indicators:t,activeSubCategory:n,onClickSubCategory:r,id:o,activeIndicator:i,onClickIndicator:a,onChangeType:c,onChangeIndicatorSubcategory:u})=>{const{t:d}=le.useTranslation(),[m,h]=w.useState(!1);w.useEffect(()=>{h(n==o)},[n,o]);const{activeIndicatorType:y,activeColor:g,defaultColor:b,multiple:f,activeIndicatorSubcategory:C}=at(_=>_);return l.jsxs(lo.motion.div,{className:As.indicatorsSubCategory,initial:{height:"43px"},animate:{height:m?"auto":"43px"},transition:{duration:.4},children:[l.jsx("button",{onClick:()=>r(o),children:l.jsxs("h3",{style:{color:m?g:b},children:[l.jsx("span",{style:{color:m?g:b},children:m?"-":"+"}),l.jsx("span",{style:{color:m?g:b},children:d(e)})]})}),t&&l.jsx("div",{className:As.list,children:t==null?void 0:t.map((_,S)=>l.jsx(dr,{indicator:_,activeIndicator:i,onClickIndicator:a,onChangeType:c,onChangeIndicatorSubcategory:u},"indicator"+S))})]})};So.displayName="IndicatorSubCategory";So.propTypes={subcName:s.string,indicators:s.array,activeColor:s.string,defaultColor:s.string,activeSubCategory:s.string,id:s.string,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,onClickSubCategory:s.func,onClickIndicator:s.func};const wo=({cat:e,id:t,onClickCategory:n,activeCategory:r,activeSubCategory:o,onClickSubCategory:i,activeIndicator:a,onClickIndicator:c,onChangeType:u,onChangeIndicatorSubcategory:d})=>{var _;const{t:m}=le.useTranslation(),{activeIndicatorType:h,activeColor:y,defaultColor:g,multiple:b}=at(S=>S),[f,C]=w.useState(!1);return w.useEffect(()=>{C(r===t)},[r,t]),l.jsxs(lo.motion.div,{className:Fn.indicatorsCategory,initial:{height:"53px"},animate:{height:f?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:f?`1px solid ${y}`:"0px",marginBottom:f?"20px":"0px"},children:[l.jsxs("h2",{className:`${Fn.title}`,onClick:()=>n(t),children:[l.jsx("span",{className:Fn.plus,style:{color:f?y:g},children:f?"-":"+"}),l.jsx("span",{style:{color:f?y:g},children:m(e.name)})]}),e.subcategories?e.subcategories.map(({name:S,subcategory:E,indicators:v},x)=>l.jsx(So,{id:E,activeSubCategory:o,subcName:S,onClickSubCategory:i,activeIndicator:a,onClickIndicator:c,indicators:v,onChangeType:u,onChangeIndicatorSubcategory:d},`subcKey ${x}`)):l.jsx("div",{className:Fn.list,children:(_=e.indicators)==null?void 0:_.map((S,E)=>l.jsx(dr,{indicator:S,values:S.type=="twoUnits"&&S.values,activeIndicator:a,onClickIndicator:c,onChangeType:u,onChangeIndicatorSubcategory:d},`indicator${E}`))})]})};wo.displayName="IndicatorsCategory";wo.propTypes={cat:s.object,id:s.string,onChange:s.func,onClickCategory:s.func,activeCategory:s.string,activeSubCategory:s.string,onClickSubCategory:s.func,onClickIndicator:s.func,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,activeColor:s.string,defaultColor:s.string};const jc="_indicatorsList_13b3m_2",$c="_title_13b3m_6",Os={indicatorsList:jc,title:$c},eo=(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>eo(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(o=>eo(e[o],t[o]))}return!1},To=({indicators:e,activeColor:t,defaultColor:n="#92898A",onChange:r,multiple:o=!1,defaultValue:i=null,changeIndType:a,activeIndicatorType:c,onChangeIndicatorSubcategory:u})=>{const{t:d}=le.useTranslation(),[m,h]=w.useState(),[y,g]=w.useState(),[b,f]=w.useState(),C=w.useRef(i),_=w.useRef(!1);w.useEffect(()=>{at.setState({activeColor:t||"",defaultColor:n||"",multiple:o||!1,activeIndicatorType:c||null})},[t,n,o,c]);const S=j=>{h(m==j?null:j)},E=j=>{g(y==j?null:j)},v=({indicator:j})=>{if(j!=null&&j.indicatorSubcategories&&j.indicatorSubcategories.length>0){const $=j.indicatorSubcategories[0],z=qi({indicator:j,subcatIndex:0,indicatorSubcategory:$.title});at.setState({activeIndicatorSubcategory:$.title}),T(z,!0),u&&u({indicator:z})}else at.setState({activeIndicatorSubcategory:null}),T(j)},x=({indicator:j})=>{T(j,!0),u&&u({indicator:j})},T=(j,$=!1,z=!1)=>{if(o){let D=b&&b.length>0?[...b]:[];const p=D==null?void 0:D.some(k=>k.name==j.name);let N;$?N=j:N=p?D.filter(k=>k.name!=String(j.name)):[...D,j],f(N),j.type=="both"&&a("cat"),r&&typeof r=="function"&&($||!(j!=null&&j.indicatorSubcategories))&&!z&&r({activeIndicator:N})}else{let D;$?D=j:D=(b==null?void 0:b.name)==j.name?null:j,f(D),(j==null?void 0:j.type)=="both"&&a("cat"),r&&typeof r=="function"&&($||!(j!=null&&j.indicatorSubcategories))&&!z&&r({activeIndicator:D})}};w.useLayoutEffect(()=>{var j;if(C.current&&!b){_.current=!0;try{o&&Array.isArray(C.current)?(f([...C.current]),O((j=C.current[0])==null?void 0:j.name)):C.current&&(T(C.current,!1,!0),O(C.current.name))}finally{_.current=!1}}},[]),w.useEffect(()=>{var j;if(!_.current&&!eo(i,b)){_.current=!0;try{const{activeIndicatorSubcategory:$}=i||{};$&&at.setState({activeIndicatorSubcategory:$}),o&&Array.isArray(i)?(f([...i]),O((j=i[0])==null?void 0:j.name)):i?(T(i,!1,!0),O(i.name)):(f(o?[]:null),h(null),g(null))}finally{_.current=!1}}},[i]);const O=j=>{const $=e.find(z=>{if(z.subcategories){let D=z.subcategories.find(p=>p.indicators.find(N=>N.name==j));if(D)return g(D.subcategory),D}else return z.indicators.some(D=>D.name==j)});$&&h($.category)};return l.jsxs("div",{className:Os.indicatorsList,children:[l.jsx("h2",{className:Os.title,style:{color:n},children:d("indicators.indicators")}),e.map((j,$)=>l.jsx(wo,{id:j.category,cat:j,onClickCategory:S,activeCategory:m,onClickSubCategory:E,activeSubCategory:y,onClickIndicator:v,activeIndicator:b,onChange:r,onChangeType:a,onChangeIndicatorSubcategory:x},`categoryKey${$}`))]})};To.displayName="IndicatorsList";To.propTypes={indicators:s.arrayOf(s.object),activeColor:s.string,defaultColor:s.string,onChange:s.func,changeIndType:s.func,multiple:s.bool,activeIndicator:s.oneOfType([s.object,s.array]),defaultValue:s.oneOfType([s.object,s.array]),activeIndicatorType:s.string,onChangeIndicatorSubcategory:s.func};const Nc="_langSelector_o9enq_2",Ec="_currentLang_o9enq_14",Ac="_arrow_o9enq_26",Oc="_prevImg_o9enq_29",Mc="_langMenu_o9enq_33",Xt={langSelector:Nc,currentLang:Ec,arrow:Ac,prevImg:Oc,langMenu:Mc},ko=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=w.useState(!1),{i18n:i}=le.useTranslation(),a=e.find(u=>u.code==i.language),c=u=>{i.changeLanguage(u),o(!1)};return l.jsxs("div",{className:Xt.langSelector,children:[l.jsxs("div",{className:Xt.currentLang,onClick:()=>{o(!r)},children:[n&&l.jsx("img",{className:Xt.prevImg,src:n}),(a==null?void 0:a.titleSelected)||(a==null?void 0:a.title),l.jsx("img",{src:t,className:Xt.arrow})]}),r&&l.jsx("div",{className:Xt.langMenu,children:e.map(u=>l.jsx("button",{className:(a==null?void 0:a.code)==u.code?Xt.active:"",onClick:()=>c(u.code),children:u.title},u.code))})]})};ko.displayName="LangSelector";ko.propTypes={langs:s.arrayOf(s.shape({code:s.string,title:s.string,titleSelected:s.string})),color:s.string,bckColor:s.string,hoverColor:s.string,arrow:s.object,imgPrev:s.string||s.object};const Lc="_legendContainer_r9cd6_3",Rc="_closeButton_r9cd6_43",Ic="_titleContainer_r9cd6_71",Dc="_infoContainer_r9cd6_77",Bc="_titleLegendList_r9cd6_88",Pc="_legendListContainer_r9cd6_94",Fc="_gridContainer_r9cd6_94",Vc="_elementLegendContainer_r9cd6_100",zc="_colorDot_r9cd6_106",qc="_absoluteValueContainer_r9cd6_112",Wc="_absoluteValueColor_r9cd6_115",Uc="_absoluteValueText_r9cd6_120",Hc="_noDataContainer_r9cd6_132",Kc="_noData_r9cd6_132",Gc="_moreInfoContainer_r9cd6_153",Me={legendContainer:Lc,closeButton:Rc,titleContainer:Ic,infoContainer:Dc,titleLegendList:Bc,legendListContainer:Pc,gridContainer:Fc,elementLegendContainer:Vc,colorDot:zc,absoluteValueContainer:qc,absoluteValueColor:Wc,absoluteValueText:Uc,noDataContainer:Hc,noData:Kc,moreInfoContainer:Gc},jo=({containerStyles:e,title:t,infoList:n,legendItems:r,onClickMoreInfo:o,buttonTitle:i,onClickClose:a})=>{const{t:c}=le.useTranslation();return l.jsxs("div",{style:e?{...e}:{},className:`${Me.legendContainer}`,children:[l.jsx("button",{className:Me.closeButton,onClick:a}),t&&l.jsx("div",{className:Me.titleContainer,style:{marginBottom:(!n||n.length==0)&&"15px"},children:l.jsx("h2",{children:t})}),n&&n.length>0&&l.jsx("div",{className:Me.infoContainer,children:l.jsx("ul",{children:n.map(({title:u,value:d},m)=>l.jsxs("li",{children:[l.jsx("h3",{className:Me.title,children:`${u}:`}),l.jsxs("span",{className:Me.value,children:[" ",d]})]},`${u}-${m}`))})}),r&&r.length>0&&r.map((u,d)=>l.jsxs("div",{children:[l.jsx("h3",{className:Me.titleLegendList,style:{marginTop:n&&n.length>0&&d===0?"30px":d>0?"20px":"0px"},children:u.title&&l.jsx(le.Trans,{i18nKey:u.title,components:{sup:l.jsx("sup",{})},shouldUnescape:!0})}),l.jsxs("div",{className:Me.legendListContainer,children:[u.absolute?l.jsxs("div",{className:Me.absoluteValueContainer,children:[l.jsx("div",{className:Me.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${u.absolute.maxColor} 0%, ${u.absolute.midColor?`${u.absolute.midColor} 50%,`:""} ${u.absolute.minColor} 100%)`}}),l.jsxs("div",{className:Me.absoluteValueText,children:[l.jsxs("span",{children:[u.absolute.maxValue," ",c(u.absolute.unit)," ",u.absolute.offlimits&&c(u.moreText)]}),u.absolute.midValue&&l.jsxs("span",{children:[u.absolute.midValue," ",c(u.absolute.unit)]}),l.jsxs("span",{children:[u.absolute.minValue," ",c(u.absolute.unit)," ",u.absolute.offlimits&&c(u.lessText)]})]})]}):u.categories&&u.categories.length>0&&l.jsx("div",{className:Me.gridContainer,children:u.categories.map(({title:m,color:h},y)=>l.jsxs("div",{className:Me.elementLegendContainer,children:[l.jsx("div",{className:Me.colorDot,style:{backgroundColor:h}}),l.jsxs("div",{className:Me.titleLegendElement,children:[c(m)," "]})]},y))}),u.absolute&&u.absolute.noDataColor&&l.jsxs("div",{className:Me.noDataContainer,children:[l.jsx("div",{className:Me.noData,style:{background:u.absolute.noDataColor}}),l.jsx("div",{className:Me.absoluteValueText,children:l.jsx("span",{children:c(u.absolute.noDataText)})})]})]})]},d)),o&&l.jsx("button",{className:Me.moreInfoContainer,onClick:o,children:i||c("moreInformation")})]})};jo.displayName="Legend";jo.propTypes={title:s.string,containerStyles:s.object,infoList:s.arrayOf(s.shape({title:s.string.isRequired,value:s.oneOfType([s.string,s.number])})),legendItems:s.arrayOf(s.shape({title:s.string,categories:s.arrayOf(s.shape({title:s.string,color:s.string})),absolute:s.shape({maxColor:s.string,minColor:s.string,midColor:s.string,maxValue:s.number,minValue:s.number,midValue:s.number,unit:s.string,noDataColor:s.string,noDataText:s.string})})),onClickMoreInfo:s.func,buttonTitle:s.string,onClickClose:s.func};const Zc="_logo_1ewa6_2",Ms={logo:Zc},$o=({src:e,alt:t,href:n})=>{const{t:r}=le.useTranslation(),o=l.jsx("img",{src:e,alt:r(t)});return n?l.jsx("div",{className:Ms.logo,children:l.jsx("a",{href:n,children:o})}):l.jsx("div",{className:Ms.logo,children:o})};$o.displayName="LogoApp";$o.propTypes={src:s.string.isRequired,alt:s.string.isRequired,href:s.string,className:s.string};const Yc=ee.createContext(null);function Xc(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,i=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===i}function He(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!He(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!t.hasOwnProperty(o)||!He(e[o],t[o]))return!1;return!0}return!1}function Qc(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function Ls(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();He(n,r)||t.setProjection(n)}function Rs(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Is(e,t){const n=t.viewState||t;let r=!1;if("zoom"in n){const o=e.zoom;e.zoom=n.zoom,r=r||o!==e.zoom}if("bearing"in n){const o=e.bearing;e.bearing=n.bearing,r=r||o!==e.bearing}if("pitch"in n){const o=e.pitch;e.pitch=n.pitch,r=r||o!==e.pitch}if(n.padding&&!e.isPaddingEqual(n.padding)&&(r=!0,e.padding=n.padding),"longitude"in n&&"latitude"in n){const o=e.center;e.center=new o.constructor(n.longitude,n.latitude),r=r||o!==e.center}return r}const Jc=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Ds(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const n=e.layers.map(r=>{let o=null;"interactive"in r&&(o=Object.assign({},r),delete o.interactive);const i=t[r.ref];if(i){o=o||Object.assign({},r),delete o.ref;for(const a of Jc)a in i&&(o[a]=i[a])}return o||r});return{...e,layers:n}}const Bs={version:8,sources:{},layers:[]},Ps={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},Br={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},Fs={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},e0=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],t0=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class dn{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const i=this.props[Fs[o.type]];i?i(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const i=this.props[Ps[o.type]];i&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),i(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const i=this.props[Br[o.type]];i&&i(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n);r&&this._createShadowTransform(this._map);const o=this._updateSize(t),i=this._updateViewState(t,!0);this._updateStyle(t,n),this._updateStyleComponents(t,n),this._updateHandlers(t,n),(r||o||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=dn.savedMaps.pop();if(!r)return null;const o=r.map,i=o.getContainer();for(n.className=i.className;i.childNodes.length>0;)n.appendChild(i.childNodes[0]);o._container=n;const a=o._resizeObserver;a&&(a.disconnect(),a.observe(n)),r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:c}=t;return c&&(c.bounds?o.fitBounds(c.bounds,{...c.fitBoundsOptions,duration:0}):r._updateViewState(c,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=Bs}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||n0()||null,container:t,style:Ds(r)},i=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),n.gl){const m=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=m,n.gl)}const a=new this._MapClass(o);i.padding&&a.setPadding(i.padding),n.cursor&&(a.getCanvas().style.cursor=n.cursor),this._createShadowTransform(a);const c=a._render;a._render=m=>{this._inRender=!0,c.call(a,m),this._inRender=!1};const u=a._renderTaskQueue.run;a._renderTaskQueue.run=m=>{u.call(a._renderTaskQueue,m),this._onBeforeRepaint()},a.on("render",()=>this._onAfterRepaint());const d=a.fire;a.fire=this._fireEvent.bind(this,d),a.on("resize",()=>{this._renderTransform.resize(a.transform.width,a.transform.height)}),a.on("styledata",()=>{this._updateStyleComponents(this.props,{}),Ls(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const m in Ps)a.on(m,this._onPointerEvent);for(const m in Br)a.on(m,this._onCameraEvent);for(const m in Fs)a.on(m,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),dn.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const n=Qc(t.transform);t.painter.transform=n,this._renderTransform=n}_updateSize(t){const{viewState:n}=t;if(n){const r=this._map;if(n.width!==r.transform.width||n.height!==r.transform.height)return r.resize(),!0}return!1}_updateViewState(t,n){if(this._internalUpdate)return!1;const r=this._map,o=this._renderTransform,{zoom:i,pitch:a,bearing:c}=o,u=r.isMoving();u&&(o.cameraElevationReference="sea");const d=Is(o,{...Rs(r.transform),...t});if(u&&(o.cameraElevationReference="ground"),d&&n){const m=this._deferredEvents;m.move=!0,m.zoom||(m.zoom=i!==o.zoom),m.rotate||(m.rotate=c!==o.bearing),m.pitch||(m.pitch=a!==o.pitch)}return u||Is(r.transform,t),d}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of e0)if(i in t&&!He(t[i],n[i])){o=!0;const a=r[`set${i[0].toUpperCase()}${i.slice(1)}`];a==null||a.call(r,t[i])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=Bs,styleDiffing:o=!0}=t,i={diff:o};return"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(Ds(r),i),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!He(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!He(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!He(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){var r,o;const i=this._map;let a=!1;for(const c of t0){const u=(r=t[c])!==null&&r!==void 0?r:!0,d=(o=n[c])!==null&&o!==void 0?o:!0;He(u,d)||(a=!0,u?i[c].enable(u):i[c].disable())}return a}_queryRenderedFeatures(t){const n=this._map,r=n.transform,{interactiveLayerIds:o=[]}=this.props;try{return n.transform=this._renderTransform,n.queryRenderedFeatures(t,{layers:o.filter(n.getLayer.bind(n))})}catch{return[]}finally{n.transform=r}}_updateHover(t){var n;const{props:r}=this;if(r.interactiveLayerIds&&(r.onMouseMove||r.onMouseEnter||r.onMouseLeave)){const i=t.type,a=((n=this._hoveredFeatures)===null||n===void 0?void 0:n.length)>0,c=this._queryRenderedFeatures(t.point),u=c.length>0;!u&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=c,u&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=i}else this._hoveredFeatures=null}_fireEvent(t,n,r){const o=this._map,i=o.transform,a=typeof n=="string"?n:n.type;return a==="move"&&this._updateViewState(this.props,!1),a in Br&&(typeof n=="object"&&(n.viewState=Rs(i)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,n,r),o.transform=i,o):(t.call(o,n,r),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const r in this._deferredEvents)this._deferredEvents[r]&&t.fire(r);this._internalUpdate=!1;const n=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{Ls(this._renderTransform,n),t.transform=n}}}dn.savedMaps=[];function n0(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const r0=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function o0(e){if(!e)return null;const t=e.map,n={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:r=>{const o=t.transform;t.transform=e.transform;const i=t.project(r);return t.transform=o,i},unproject:r=>{const o=t.transform;t.transform=e.transform;const i=t.unproject(r);return t.transform=o,i},queryTerrainElevation:(r,o)=>{const i=t.transform;t.transform=e.transform;const a=t.queryTerrainElevation(r,o);return t.transform=i,a},queryRenderedFeatures:(r,o)=>{const i=t.transform;t.transform=e.transform;const a=t.queryRenderedFeatures(r,o);return t.transform=i,a}};for(const r of s0(t))!(r in n)&&!r0.includes(r)&&(n[r]=t[r].bind(t));return n}function s0(e){const t=new Set;let n=e;for(;n;){for(const r of Object.getOwnPropertyNames(n))r[0]!=="_"&&typeof e[r]=="function"&&r!=="fire"&&r!=="setEventedParent"&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}const i0=typeof document<"u"?w.useLayoutEffect:w.useEffect,a0=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function l0(e,t){for(const r of a0)r in t&&(e[r]=t[r]);const{RTLTextPlugin:n="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(n,r=>{r&&console.error(r)},!0)}const mn=ee.createContext(null);function c0(e,t,n){const r=w.useContext(Yc),[o,i]=w.useState(null),a=w.useRef(),{current:c}=w.useRef({mapLib:null,map:null});w.useEffect(()=>{const m=e.mapLib;let h=!0,y;return Promise.resolve(m||n).then(g=>{if(!h)return;if(!g)throw new Error("Invalid mapLib");const b="Map"in g?g:g.default;if(!b.Map)throw new Error("Invalid mapLib");if(l0(b,e),!b.supported||b.supported(e))e.reuseMaps&&(y=dn.reuse(e,a.current)),y||(y=new dn(b.Map,e,a.current)),c.map=o0(y),c.mapLib=b,i(y),r==null||r.onMapMount(c.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(g=>{const{onError:b}=e;b?b({type:"error",target:null,originalEvent:null,error:g}):console.error(g)}),()=>{h=!1,y&&(r==null||r.onMapUnmount(e.id),e.reuseMaps?y.recycle():y.destroy())}},[]),i0(()=>{o&&o.setProps(e)}),w.useImperativeHandle(t,()=>c.map,[o]);const u=w.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),d={height:"100%"};return ee.createElement("div",{id:e.id,ref:a,style:u},o&&ee.createElement(mn.Provider,{value:c},ee.createElement("div",{"mapboxgl-children":"",style:d},e.children)))}const u0=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Wt(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!u0.test(r)?n[r]=`${o}px`:n[r]=o}}function d0(e,t){const{map:n,mapLib:r}=w.useContext(mn),o=w.useRef({props:e});o.current.props=e;const i=w.useMemo(()=>{let f=!1;ee.Children.forEach(e.children,S=>{S&&(f=!0)});const C={...e,element:f?document.createElement("div"):null},_=new r.Marker(C);return _.setLngLat([e.longitude,e.latitude]),_.getElement().addEventListener("click",S=>{var E,v;(v=(E=o.current.props).onClick)===null||v===void 0||v.call(E,{type:"click",target:_,originalEvent:S})}),_.on("dragstart",S=>{var E,v;const x=S;x.lngLat=i.getLngLat(),(v=(E=o.current.props).onDragStart)===null||v===void 0||v.call(E,x)}),_.on("drag",S=>{var E,v;const x=S;x.lngLat=i.getLngLat(),(v=(E=o.current.props).onDrag)===null||v===void 0||v.call(E,x)}),_.on("dragend",S=>{var E,v;const x=S;x.lngLat=i.getLngLat(),(v=(E=o.current.props).onDragEnd)===null||v===void 0||v.call(E,x)}),_},[]);w.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:c,offset:u,style:d,draggable:m=!1,popup:h=null,rotation:y=0,rotationAlignment:g="auto",pitchAlignment:b="auto"}=e;return w.useEffect(()=>{Wt(i.getElement(),d)},[d]),w.useImperativeHandle(t,()=>i,[]),(i.getLngLat().lng!==a||i.getLngLat().lat!==c)&&i.setLngLat([a,c]),u&&!Xc(i.getOffset(),u)&&i.setOffset(u),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==y&&i.setRotation(y),i.getRotationAlignment()!==g&&i.setRotationAlignment(g),i.getPitchAlignment()!==b&&i.setPitchAlignment(b),i.getPopup()!==h&&i.setPopup(h),Ii.createPortal(e.children,i.getElement())}w.memo(w.forwardRef(d0));function Vs(e){return new Set(e?e.trim().split(/\s+/):[])}function f0(e,t){const{map:n,mapLib:r}=w.useContext(mn),o=w.useMemo(()=>document.createElement("div"),[]),i=w.useRef({props:e});i.current.props=e;const a=w.useMemo(()=>{const c={...e},u=new r.Popup(c);return u.setLngLat([e.longitude,e.latitude]),u.once("open",d=>{var m,h;(h=(m=i.current.props).onOpen)===null||h===void 0||h.call(m,d)}),u},[]);if(w.useEffect(()=>{const c=u=>{var d,m;(m=(d=i.current.props).onClose)===null||m===void 0||m.call(d,u)};return a.on("close",c),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",c),a.isOpen()&&a.remove()}},[]),w.useEffect(()=>{Wt(a.getElement(),e.style)},[e.style]),w.useImperativeHandle(t,()=>a,[]),a.isOpen()&&((a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!He(a.options.offset,e.offset)&&a.setOffset(e.offset),(a.options.anchor!==e.anchor||a.options.maxWidth!==e.maxWidth)&&(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth)),a.options.className!==e.className)){const c=Vs(a.options.className),u=Vs(e.className);for(const d of c)u.has(d)||a.removeClassName(d);for(const d of u)c.has(d)||a.addClassName(d);a.options.className=e.className}return Ii.createPortal(e.children,o)}const p0=w.memo(w.forwardRef(f0));function $n(e,t,n,r){const o=w.useContext(mn),i=w.useMemo(()=>e(o),[]);return w.useEffect(()=>{const a=t,c=null,u=typeof t=="function"?t:null,{map:d}=o;return d.hasControl(i)||(d.addControl(i,a==null?void 0:a.position),c&&c(o)),()=>{u&&u(o),d.hasControl(i)&&d.removeControl(i)}},[]),i}function m0(e){const t=$n(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return w.useEffect(()=>{Wt(t._container,e.style)},[e.style]),null}w.memo(m0);function h0(e){const t=$n(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return w.useEffect(()=>{Wt(t._controlContainer,e.style)},[e.style]),null}w.memo(h0);function g0(e,t){const n=w.useRef({props:e}),r=$n(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI;return i._setupUI=c=>{i._container.hasChildNodes()||a(c)},i.on("geolocate",c=>{var u,d;(d=(u=n.current.props).onGeolocate)===null||d===void 0||d.call(u,c)}),i.on("error",c=>{var u,d;(d=(u=n.current.props).onError)===null||d===void 0||d.call(u,c)}),i.on("outofmaxbounds",c=>{var u,d;(d=(u=n.current.props).onOutOfMaxBounds)===null||d===void 0||d.call(u,c)}),i.on("trackuserlocationstart",c=>{var u,d;(d=(u=n.current.props).onTrackUserLocationStart)===null||d===void 0||d.call(u,c)}),i.on("trackuserlocationend",c=>{var u,d;(d=(u=n.current.props).onTrackUserLocationEnd)===null||d===void 0||d.call(u,c)}),i},{position:e.position});return n.current.props=e,w.useImperativeHandle(t,()=>r,[]),w.useEffect(()=>{Wt(r._container,e.style)},[e.style]),null}w.memo(w.forwardRef(g0));function y0(e){const t=$n(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return w.useEffect(()=>{Wt(t._container,e.style)},[e.style]),null}const b0=w.memo(y0);function v0(e){const t=$n(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=w.useRef(e),r=n.current;n.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),w.useEffect(()=>{Wt(t._container,o)},[o]),null}w.memo(v0);function nr(e,t){if(!e)throw new Error(t)}function x0(e,t,n,r){if(nr(n.id===r.id,"layer id changed"),nr(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:c,maxzoom:u,beforeId:d}=n;if(d!==r.beforeId&&e.moveLayer(t,d),o!==r.layout){const m=r.layout||{};for(const h in o)He(o[h],m[h])||e.setLayoutProperty(t,h,o[h]);for(const h in m)o.hasOwnProperty(h)||e.setLayoutProperty(t,h,void 0)}if(i!==r.paint){const m=r.paint||{};for(const h in i)He(i[h],m[h])||e.setPaintProperty(t,h,i[h]);for(const h in m)i.hasOwnProperty(h)||e.setPaintProperty(t,h,void 0)}He(a,r.filter)||e.setFilter(t,a),(c!==r.minzoom||u!==r.maxzoom)&&e.setLayerZoomRange(t,c,u)}function C0(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){const r={...n,id:t};delete r.beforeId,e.addLayer(r,n.beforeId)}}let _0=0;function S0(e){const t=w.useContext(mn).map.getMap(),n=w.useRef(e),[,r]=w.useState(0),o=w.useMemo(()=>e.id||`jsx-layer-${_0++}`,[]);if(w.useEffect(()=>{if(t){const a=()=>r(c=>c+1);return t.on("styledata",a),a(),()=>{t.off("styledata",a),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}},[t]),t&&t.style&&t.getLayer(o))try{x0(t,o,e,n.current)}catch(a){console.warn(a)}else C0(t,o,e);return n.current=e,null}let w0=0;function T0(e,t,n){if(e.style&&e.style._loaded){const r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}function k0(e,t,n){nr(t.id===n.id,"source id changed"),nr(t.type===n.type,"source type changed");let r="",o=0;for(const a in t)a!=="children"&&a!=="id"&&!He(n[a],t[a])&&(r=a,o++);if(!o)return;const i=t.type;i==="geojson"?e.setData(t.data):i==="image"?e.updateImage({url:t.url,coordinates:t.coordinates}):"setCoordinates"in e&&o===1&&r==="coordinates"?e.setCoordinates(t.coordinates):"setUrl"in e&&r==="url"?e.setUrl(t.url):"setTiles"in e&&r==="tiles"?e.setTiles(t.tiles):console.warn(`Unable to update <Source> prop: ${r}`)}function j0(e){const t=w.useContext(mn).map.getMap(),n=w.useRef(e),[,r]=w.useState(0),o=w.useMemo(()=>e.id||`jsx-source-${w0++}`,[]);w.useEffect(()=>{if(t){const a=()=>setTimeout(()=>r(c=>c+1),0);return t.on("styledata",a),a(),()=>{var c;if(t.off("styledata",a),t.style&&t.style._loaded&&t.getSource(o)){const u=(c=t.getStyle())===null||c===void 0?void 0:c.layers;if(u)for(const d of u)d.source===o&&t.removeLayer(d.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?k0(i,e,n.current):i=T0(t,o,e),n.current=e,i&&ee.Children.map(e.children,a=>a&&w.cloneElement(a,{source:o}))||null}const $0=import("mapbox-gl"),Wi=ee.forwardRef(function(t,n){return c0(t,n,$0)}),Ui=p0,Hi=b0,Ki=S0,Gi=j0,N0="_mapContainer_84pkf_2",E0={mapContainer:N0};Pa.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const No=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:c=[],popUp:u=!1,sources:d=[],layers:m=[]})=>{const h=w.useRef(),[y,g]=w.useState(null),b=Fa.useSelector(f=>f.mapState.showTexts);return w.useEffect(()=>{if(h.current){const f=h.current.getMap();f.getStyle().layers.map(_=>{_.type=="symbol"&&_.id!="professionals"&&(b?f.setLayoutProperty(_.id,"visibility","visible"):f.setLayoutProperty(_.id,"visibility","none"))})}},[b]),l.jsx("div",{className:`${E0.mapContainer}`,style:i,children:l.jsxs(Wi,{initialViewState:e,ref:h,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:c,children:[d.length&&d.map((f,C)=>l.jsx(Gi,{...f,children:m.length&&m.map((_,S)=>{if(_.sourceId==f.id)return l.jsx(Ki,{..._.layer,beforeId:o},S)})},C)),l.jsx(Hi,{position:"bottom-right",visualizePitch:!0}),u&&y&&l.jsx(Ui,{longitude:u.longitude,latitude:u.latitude,anchor:u.anchor,onClose:()=>g(null),children:u.content})]})})};No.displayName="MapboxMap";No.propTypes={initialView:s.shape({latitude:s.number.isRequired,longitude:s.number.isRequired,zoom:s.number.isRequired}),mapStyle:s.object,firstSymbolLayer:s.string,cssProps:s.object,style:s.object,maxZoom:s.number,minZoom:s.number,onClick:s.func,interactiveLayers:s.array,popUp:s.shape({latitude:s.number,longitude:s.number,anchor:s.string,content:s.element}),textsUrl:s.string,sources:s.arrayOf(s.shape({id:s.string,type:s.string,url:s.string,data:s.object})),layers:s.arrayOf(s.shape({sourceId:s.string,layer:s.shape({id:s.string,type:s.string,sourceLayer:s.string,minZoom:s.number,maxZoom:s.number,paint:s.object})}))};const A0="_mapContainer_1r3q4_3",O0={mapContainer:A0},M0="_FeaturePopUp_oymb1_2",L0="_title_oymb1_10",R0="_button_oymb1_15",Pr={FeaturePopUp:M0,title:L0,button:R0},Zi=({props:e})=>{const{t}=le.useTranslation();return l.jsx("div",{className:Pr.FeaturePopUp,children:e.map((n,r)=>n.type!="button"?l.jsxs("p",{children:[l.jsxs("span",{className:Pr.title,children:[l.jsx(le.Trans,{i18nKey:n.name,components:{sup:l.jsx("sup",{})},shouldUnescape:!0}),":"]}),n.type&&n.type=="html"?l.jsx("span",{dangerouslySetInnerHTML:{__html:n.value}}):isNaN(n.value)?l.jsx(l.Fragment,{children:t(n.value)}):l.jsxs(l.Fragment,{children:[n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]})]},r):l.jsx("button",{className:Pr.button,onClick:()=>n.onClick(),children:n.name},r))})};Zi.displayName="FeaturePopUp";const Eo=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:c=[],sources:u=[],layers:d=[],popUpParams:m,onClosePopUp:h,showTexts:y,hash:g=!1})=>{const b=w.useRef();return w.useEffect(()=>{if(b.current){const f=b.current.getMap();f.getStyle().layers.map(_=>{_.type=="symbol"&&_.id!="professionals"&&(y?f.setLayoutProperty(_.id,"visibility","visible"):f.setLayoutProperty(_.id,"visibility","none"))})}},[y]),w.useEffect(()=>{let f=new Va.Protocol;return $r.addProtocol("pmtiles",f.tile),()=>{$r.removeProtocol("pmtiles")}},[]),l.jsx("div",{className:`${O0.mapContainer}`,style:i,children:l.jsxs(Wi,{mapLib:$r,initialViewState:e,ref:b,hash:g,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:c,children:[u.length&&u.map((f,C)=>l.jsx(Gi,{...f,children:d.length&&d.map((_,S)=>{if(_.sourceId==f.id)return l.jsx(Ki,{..._.layer,beforeId:o,filter:_.filters?_.filters:["all"],layout:{visibility:_.layer.visibility||"visible"}},S)})},C)),l.jsx(Hi,{position:"bottom-right",visualizePitch:!0}),m&&l.jsx(Ui,{longitude:m.lng,latitude:m.lat,onClose:h,children:l.jsx(Zi,{props:m.props})})]})})};Eo.displayName="MaplibreMap";Eo.propTypes={initialView:s.shape({latitude:s.number.isRequired,longitude:s.number.isRequired,zoom:s.number.isRequired}),mapStyle:s.string,firstSymbolLayer:s.string,cssProps:s.object,style:s.object,maxZoom:s.number,minZoom:s.number,onClick:s.func,interactiveLayers:s.array,popUp:s.bool,sources:s.arrayOf(s.shape({id:s.string,type:s.string,url:s.string,data:s.object})),layers:s.arrayOf(s.shape({sourceId:s.string,layer:s.shape({id:s.string,type:s.string,sourceLayer:s.string,minzoom:s.number,maxzoom:s.number,paint:s.object,visibility:s.string}),filters:s.array})),showTexts:s.bool,popUpParams:s.object,onClosePopUp:s.func};const I0="_sectionBar_yf2vy_2",D0="_leftContent_yf2vy_14",B0="_textContainer_yf2vy_20",P0="_title_yf2vy_27",F0="_subtitle_yf2vy_33",V0="_rightContent_yf2vy_38",It={sectionBar:I0,leftContent:D0,textContainer:B0,title:P0,subtitle:F0,rightContent:V0},Ao=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o,width:i,titleColor:a="#605b56",subTitleColor:c="#605b56",borderTop:u=!1})=>{const{t:d}=le.useTranslation();return l.jsxs("div",{className:It.sectionBar,style:{width:i&&i,borderTop:u?"1px solid #000":"0px"},children:[l.jsxs("div",{className:It.leftContent,children:[e&&l.jsx("img",{src:e,alt:"Icono",className:It.icon}),l.jsxs("div",{className:It.textContainer,children:[l.jsx("div",{className:It.title,style:{color:a},children:d(t)}),n&&l.jsx("div",{className:It.subtitle,style:{color:c},children:n})]})]}),l.jsx("div",{className:It.rightContent,children:r})]})};Ao.displayName="SectionBar";Ao.propTypes={leftIcon:s.string,title:s.string.isRequired,subtitle:s.string,rightContent:s.node,mainColor:s.string,width:s.oneOfType([s.string,s.number]),borderTop:s.bool};const z0=za.createSlice({name:"mapSlice",initialState:{showTexts:!0,sliderSelectedYear:2025,activeIndicatorKey:0,activeIndicatorType:"cat",activeIndicatorUnit:null},reducers:{setShowTexts:(e,t)=>{e.showTexts=t.payload},setYear:(e,t)=>{e.sliderSelectedYear=t.payload},setActiveIndicatorKey:(e,t)=>{e.activeIndicatorKey=t.payload},setActiveIndicatorType:(e,t)=>{e.activeIndicatorType=t.payload},setActiveIndicatorUnit:(e,t)=>{e.activeIndicatorUnit=t.payload}}}),{setShowTexts:am,setYear:lm,setActiveIndicatorKey:cm,setActiveIndicatorType:um,setActiveIndicatorUnit:dm}=z0.actions,q0="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",W0="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";function Yi(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Yi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function kt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Yi(e))&&(r&&(r+=" "),r+=t);return r}function zs(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function U0(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",c=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(a+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(a+=" "+n[d]))}r[o]=a}return r}const H0=ee.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const K0=()=>ee.useContext(H0)??!1;function Xi(...e){const t=ee.useRef(void 0),n=ee.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,c=a(r);return typeof c=="function"?c:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return ee.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function Tn(e){return typeof e=="string"}function G0(e,t,n){return e===void 0||Tn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Xn(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function qs(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Z0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=kt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...n,...o,...r};return g.length>0&&(f.className=g),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=Xn({...o,...r}),c=qs(r),u=qs(o),d=t(a),m=kt(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h={...d==null?void 0:d.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...d,...n,...u,...c};return m.length>0&&(y.className=m),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:d.ref}}function Y0(e,t,n){return typeof e=="function"?e(t,n):e}function St(e){var h;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Y0(n,r),{props:c,internalRef:u}=Z0({...i,externalSlotProps:a}),d=Xi(u,a==null?void 0:a.ref,(h=e.additionalProps)==null?void 0:h.ref);return G0(t,{...c,ref:d},r)}function Qn(e){return e&&e.ownerDocument||document}function X0(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=ee.useRef(t!==void 0),[a,c]=ee.useState(n),u=i?t:a;if(process.env.NODE_ENV!=="production"){ee.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
24
|
-
`))},[o,r,t]);const{current:m}=
|
|
25
|
-
`))},[JSON.stringify(n)])}const d=
|
|
26
|
-
`))}return!1}const
|
|
20
|
+
*/var Er,xs;function ml(){if(xs)return Er;xs=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},c=0;c<10;c++)a["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(a).map(function(m){return a[m]});if(u.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(m){d[m]=m}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Er=o()?Object.assign:function(i,a){for(var c,u=r(i),d,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var h in c)t.call(c,h)&&(u[h]=c[h]);if(e){d=e(c);for(var y=0;y<d.length;y++)n.call(c,d[y])&&(u[d[y]]=c[d[y]])}}return u},Er}var Or,Cs;function uo(){if(Cs)return Or;Cs=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Or=e,Or}var Ar,_s;function zi(){return _s||(_s=1,Ar=Function.call.bind(Object.prototype.hasOwnProperty)),Ar}var Mr,ws;function hl(){if(ws)return Mr;ws=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=uo(),n={},r=zi();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,c,u,d){if(process.env.NODE_ENV!=="production"){for(var m in i)if(r(i,m)){var h;try{if(typeof i[m]!="function"){var y=Error((u||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw y.name="Invariant Violation",y}h=i[m](a,m,u,c,null,t)}catch(b){h=b}if(h&&!(h instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in n)){n[h.message]=!0;var g=d?d():"";e("Failed "+c+" type: "+h.message+(g??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Mr=o,Mr}var Lr,Ss;function gl(){if(Ss)return Lr;Ss=1;var e=Fi(),t=ml(),n=uo(),r=zi(),o=hl(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Lr=function(c,u){var d=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function h(M){var I=M&&(d&&M[d]||M[m]);if(typeof I=="function")return I}var y="<<anonymous>>",g={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:S(),arrayOf:N,element:v(),elementType:C(),instanceOf:T,node:L(),objectOf:j,oneOf:O,oneOfType:$,shape:p,exact:E};function b(M,I){return M===I?M!==0||1/M===1/I:M!==M&&I!==I}function f(M,I){this.message=M,this.data=I&&typeof I=="object"?I:{},this.stack=""}f.prototype=Error.prototype;function x(M){if(process.env.NODE_ENV!=="production")var I={},J=0;function H(G,ne,re,Q,se,K,le){if(Q=Q||y,K=K||re,le!==n){if(u){var V=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw V.name="Invariant Violation",V}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var de=Q+":"+re;!I[de]&&J<3&&(i("You are manually calling a React.PropTypes validation function for the `"+K+"` prop on `"+Q+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),I[de]=!0,J++)}}return ne[re]==null?G?ne[re]===null?new f("The "+se+" `"+K+"` is marked as required "+("in `"+Q+"`, but its value is `null`.")):new f("The "+se+" `"+K+"` is marked as required in "+("`"+Q+"`, but its value is `undefined`.")):null:M(ne,re,Q,se,K)}var q=H.bind(null,!1);return q.isRequired=H.bind(null,!0),q}function w(M){function I(J,H,q,G,ne,re){var Q=J[H],se=z(Q);if(se!==M){var K=B(Q);return new f("Invalid "+G+" `"+ne+"` of type "+("`"+K+"` supplied to `"+q+"`, expected ")+("`"+M+"`."),{expectedType:M})}return null}return x(I)}function S(){return x(a)}function N(M){function I(J,H,q,G,ne){if(typeof M!="function")return new f("Property `"+ne+"` of component `"+q+"` has invalid PropType notation inside arrayOf.");var re=J[H];if(!Array.isArray(re)){var Q=z(re);return new f("Invalid "+G+" `"+ne+"` of type "+("`"+Q+"` supplied to `"+q+"`, expected an array."))}for(var se=0;se<re.length;se++){var K=M(re,se,q,G,ne+"["+se+"]",n);if(K instanceof Error)return K}return null}return x(I)}function v(){function M(I,J,H,q,G){var ne=I[J];if(!c(ne)){var re=z(ne);return new f("Invalid "+q+" `"+G+"` of type "+("`"+re+"` supplied to `"+H+"`, expected a single ReactElement."))}return null}return x(M)}function C(){function M(I,J,H,q,G){var ne=I[J];if(!e.isValidElementType(ne)){var re=z(ne);return new f("Invalid "+q+" `"+G+"` of type "+("`"+re+"` supplied to `"+H+"`, expected a single ReactElement type."))}return null}return x(M)}function T(M){function I(J,H,q,G,ne){if(!(J[H]instanceof M)){var re=M.name||y,Q=Z(J[H]);return new f("Invalid "+G+" `"+ne+"` of type "+("`"+Q+"` supplied to `"+q+"`, expected ")+("instance of `"+re+"`."))}return null}return x(I)}function O(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function I(J,H,q,G,ne){for(var re=J[H],Q=0;Q<M.length;Q++)if(b(re,M[Q]))return null;var se=JSON.stringify(M,function(le,V){var de=B(V);return de==="symbol"?String(V):V});return new f("Invalid "+G+" `"+ne+"` of value `"+String(re)+"` "+("supplied to `"+q+"`, expected one of "+se+"."))}return x(I)}function j(M){function I(J,H,q,G,ne){if(typeof M!="function")return new f("Property `"+ne+"` of component `"+q+"` has invalid PropType notation inside objectOf.");var re=J[H],Q=z(re);if(Q!=="object")return new f("Invalid "+G+" `"+ne+"` of type "+("`"+Q+"` supplied to `"+q+"`, expected an object."));for(var se in re)if(r(re,se)){var K=M(re,se,q,G,ne+"."+se,n);if(K instanceof Error)return K}return null}return x(I)}function $(M){if(!Array.isArray(M))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var I=0;I<M.length;I++){var J=M[I];if(typeof J!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+F(J)+" at index "+I+"."),a}function H(q,G,ne,re,Q){for(var se=[],K=0;K<M.length;K++){var le=M[K],V=le(q,G,ne,re,Q,n);if(V==null)return null;V.data&&r(V.data,"expectedType")&&se.push(V.data.expectedType)}var de=se.length>0?", expected one of type ["+se.join(", ")+"]":"";return new f("Invalid "+re+" `"+Q+"` supplied to "+("`"+ne+"`"+de+"."))}return x(H)}function L(){function M(I,J,H,q,G){return k(I[J])?null:new f("Invalid "+q+" `"+G+"` supplied to "+("`"+H+"`, expected a ReactNode."))}return x(M)}function R(M,I,J,H,q){return new f((M||"React class")+": "+I+" type `"+J+"."+H+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+q+"`.")}function p(M){function I(J,H,q,G,ne){var re=J[H],Q=z(re);if(Q!=="object")return new f("Invalid "+G+" `"+ne+"` of type `"+Q+"` "+("supplied to `"+q+"`, expected `object`."));for(var se in M){var K=M[se];if(typeof K!="function")return R(q,G,ne,se,B(K));var le=K(re,se,q,G,ne+"."+se,n);if(le)return le}return null}return x(I)}function E(M){function I(J,H,q,G,ne){var re=J[H],Q=z(re);if(Q!=="object")return new f("Invalid "+G+" `"+ne+"` of type `"+Q+"` "+("supplied to `"+q+"`, expected `object`."));var se=t({},J[H],M);for(var K in se){var le=M[K];if(r(M,K)&&typeof le!="function")return R(q,G,ne,K,B(le));if(!le)return new f("Invalid "+G+" `"+ne+"` key `"+K+"` supplied to `"+q+"`.\nBad object: "+JSON.stringify(J[H],null," ")+`
|
|
21
|
+
Valid keys: `+JSON.stringify(Object.keys(M),null," "));var V=le(re,K,q,G,ne+"."+K,n);if(V)return V}return null}return x(I)}function k(M){switch(typeof M){case"number":case"string":case"undefined":return!0;case"boolean":return!M;case"object":if(Array.isArray(M))return M.every(k);if(M===null||c(M))return!0;var I=h(M);if(I){var J=I.call(M),H;if(I!==M.entries){for(;!(H=J.next()).done;)if(!k(H.value))return!1}else for(;!(H=J.next()).done;){var q=H.value;if(q&&!k(q[1]))return!1}}else return!1;return!0;default:return!1}}function D(M,I){return M==="symbol"?!0:I?I["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&I instanceof Symbol:!1}function z(M){var I=typeof M;return Array.isArray(M)?"array":M instanceof RegExp?"object":D(I,M)?"symbol":I}function B(M){if(typeof M>"u"||M===null)return""+M;var I=z(M);if(I==="object"){if(M instanceof Date)return"date";if(M instanceof RegExp)return"regexp"}return I}function F(M){var I=B(M);switch(I){case"array":case"object":return"an "+I;case"boolean":case"date":case"regexp":return"a "+I;default:return I}}function Z(M){return!M.constructor||!M.constructor.name?y:M.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},Lr}var Rr,Ts;function yl(){if(Ts)return Rr;Ts=1;var e=uo();function t(){}function n(){}return n.resetWarningCache=t,Rr=function(){function r(a,c,u,d,m,h){if(h!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Rr}var ks;function bl(){if(ks)return Rn.exports;if(ks=1,process.env.NODE_ENV!=="production"){var e=Fi(),t=!0;Rn.exports=gl()(e.isElement,t)}else Rn.exports=yl()();return Rn.exports}var vl=bl();const s=dl(vl),fo=({ambit:e,onClickCopy:t,onClickDelete:n,onClickFilters:r,onClickAmbit:o,isActive:i,activeColor:a,fontColor:c,moreInfo:u})=>{const{name:d,created_at:m,id:h,isBeingProcessed:y}=e;return l.jsxs("div",{className:yn.ambitItem,style:{borderBottom:`1px solid ${c}`},children:[l.jsxs("div",{className:yn.ambitNameDate,onClick:()=>o(h),children:[l.jsxs("div",{className:yn.ambitName,children:[l.jsx("img",{style:{marginRight:9},src:i?cl:ul}),l.jsx("span",{style:{color:i?a:c},children:d})]}),l.jsx("div",{className:yn.ambitDate,children:m?new Date(m).toLocaleDateString():""})]}),l.jsxs("div",{className:yn.ambitButtons,children:[y&&l.jsx("img",{src:ll}),l.jsx("button",{onClick:()=>r(h),disabled:e.is_default,children:l.jsx("img",{src:al})}),l.jsx("button",{onClick:()=>t(h),children:l.jsx("img",{src:il})}),l.jsx("button",{onClick:()=>n(h),disabled:e.is_default,children:l.jsx("img",{src:sl})})]})]})};fo.displayName="AmbitItem";fo.propTypes={ambit:s.shape({name:s.string.isRequired,created_at:s.string,id:s.string.isRequired,isBeingProcessed:s.bool}).isRequired,onClickCopy:s.func.isRequired,onClickDelete:s.func.isRequired,onClickFilters:s.func.isRequired,onClickAmbit:s.func.isRequired,isBeingProcessed:s.bool,isActive:s.bool,activeColor:s.string,fontColor:s.string,moreInfo:s.object};const js="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",xl="_generalButton_phq4n_2",Cl={generalButton:xl},fn=({children:e,onClick:t,fontColor:n="#605B56",borderColor:r="#605B56",backgroundColor:o="#fff",type:i="button",containerStyles:a={},disabled:c=!1})=>l.jsx("button",{className:Cl.generalButton,style:{color:n,border:`1.5px solid ${r}`,background:o,...a},onClick:t,type:i,disabled:c,children:e});fn.displayName="GeneralButton";const po=({ambitList:e,activeAmbitId:t,fontColor:n="#605B56",activeColor:r,nameLabel:o,dateLabel:i,newAmbitLabel:a="New field",buttonContainerStyles:c={},containerStyles:u={},onCLickNewAmbit:d=()=>console.log("New ambit clicked"),onClickCopy:m=b=>console.log(`Copy ambit: ${b}`),onCLickDelete:h=b=>console.log(`Delete ambit: ${b}`),onClickFilters:y=b=>console.log(`Filters clicked: ${b}`),onClickAmbit:g=b=>console.log(`OnCLickAmbit: ${b}`)})=>{const{t:b}=ie.useTranslation(),[f,x]=_.useState(e);_.useEffect(()=>{e&&x(e)},[e]);const w=S=>{if(f&&f.length>0){let N=[...f];N.sort((v,C)=>v[S].localeCompare(C[S])),x(N)}};return l.jsxs("div",{className:vt.ambitSelector,style:{color:n,...u},children:[l.jsxs("div",{className:vt.header,style:{borderBottom:`1px solid ${n}`},children:[l.jsxs("div",{className:vt.nameDateContainer,children:[l.jsx("div",{className:vt.ambitName,children:l.jsxs("button",{onClick:()=>w("name"),children:[l.jsx("span",{children:b(o)}),l.jsx("img",{src:js})]})}),l.jsx("div",{className:vt.ambitDate,children:l.jsxs("button",{onClick:()=>w("date"),children:[l.jsx("span",{children:b(i)}),l.jsx("img",{src:js})]})})]}),l.jsx("div",{className:vt.buttonsContainer})]}),l.jsx("div",{className:vt.ambitListContainer,children:f&&f.length>0&&f.map(S=>l.jsx(fo,{isActive:t==S.id,ambit:S,fontColor:n,activeColor:r,onClickCopy:m,onClickDelete:h,onClickFilters:y,onClickAmbit:g},`ambitKey${S.id}`))}),l.jsx("div",{className:vt.newAmbitButtonContainer,children:l.jsx(fn,{style:{...c},onClick:d,borderColor:"grey",children:b(a)})})]})};po.displayName="AmbitSelector";po.propTypes={ambitList:s.arrayOf(s.shape({name:s.string.isRequired,date:s.string.isRequired,id:s.string.isRequired})).isRequired,activeAmbitId:s.string,fontColor:s.string,activeColor:s.string,onClickCopy:s.func.isRequired,onCLickDelete:s.func.isRequired,onClickFilters:s.func.isRequired,onClickAmbit:s.func.isRequired,nameLabel:s.string,dateLabel:s.string,newAmbitLabel:s.string,buttonContainerStyles:s.object,containerStyles:s.object,onCLickNewAmbit:s.func};class qi extends _.Component{constructor(t){super(t),this.state={hasError:!1,error:null,errorInfo:null}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}componentDidCatch(t,n){this.setState({errorInfo:n}),console.error(`[CiclicaStorybook] Error capturado en el componente: ${this.props.name||"desconocido"}`,t,n==null?void 0:n.componentStack)}render(){var t,n;return this.state.hasError?this.props.fallback?this.props.fallback(this.state.error,this.state.errorInfo):l.jsxs("div",{style:{padding:"16px",margin:"8px 0",border:"1px solid #f44336",borderRadius:"4px",backgroundColor:"#fdecea",color:"#b71c1c",fontFamily:"monospace",fontSize:"13px",whiteSpace:"pre-wrap"},children:[l.jsx("strong",{children:"Error en componente de CiclicaStorybook"}),this.props.name&&l.jsxs("div",{children:["Componente: ",l.jsx("code",{children:this.props.name})]}),l.jsx("div",{style:{marginTop:"8px"},children:((t=this.state.error)==null?void 0:t.message)||String(this.state.error)}),((n=this.state.errorInfo)==null?void 0:n.componentStack)&&l.jsxs("details",{style:{marginTop:"8px"},children:[l.jsx("summary",{children:"Ver stack del componente"}),l.jsx("div",{style:{marginTop:"8px",fontSize:"12px"},children:this.state.errorInfo.componentStack})]})]}):this.props.children}}qi.propTypes={children:s.node.isRequired,name:s.string,fallback:s.func};const _l="_buttonsContainer_9a7gq_2",wl="_vertical_9a7gq_6",Sl="_separator_9a7gq_9",Tl="_horizontal_9a7gq_14",kl="_button_9a7gq_2",jl="_active_9a7gq_43",$l="_buttonName_9a7gq_46",xt={buttonsContainer:_l,vertical:wl,separator:Sl,horizontal:Tl,button:kl,active:jl,buttonName:$l},Nl="_left_1l4m4_2",El="_top_1l4m4_40",Ol="_bottom_1l4m4_79",Al="_right_1l4m4_118",Ml={left:Nl,top:El,bottom:Ol,right:Al},rt=({text:e,position:t,styleCustom:n=null})=>{const{t:r}=ie.useTranslation();return l.jsx("div",{className:`tooltip ${Ml[t]}`,style:n,children:r(e)})};rt.displayName="Tooltip";rt.propTypes={text:s.string.isRequired,position:s.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:s.object};const mo=({buttons:e=[],orientation:t="horizontal",showName:n=!0,namePosition:r="right",useTooltip:o=!1,tooltipPosition:i="top"})=>{const{t:a}=ie.useTranslation();return l.jsx("div",{className:`${xt.buttonsContainer} ${t==="vertical"&&xt.vertical}
|
|
22
|
+
${t==="horizontal"&&xt.horizontal}`,children:e.map((c,u)=>{if(c.separator)return l.jsx("span",{className:xt.separator,role:"separator","aria-orientation":t==="vertical"?"horizontal":"vertical"},u);const{icon:d,activeIcon:m,isActive:h,name:y,onClick:g,disabled:b}=c,f=l.jsxs(l.Fragment,{children:[n&&r==="left"&&l.jsx("span",{className:xt.buttonName,children:a(y)}),l.jsx("img",{src:h?m:d,alt:a(y)}),n&&r==="right"&&l.jsx("span",{className:xt.buttonName,children:a(y)})]});return l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:g,className:`${xt.button}
|
|
23
|
+
${h&&xt.active}`,disabled:b,children:f}),o&&l.jsx(rt,{text:y,position:i})]},u)})})};mo.displayName="ButtonsList";mo.propTypes={buttons:s.arrayOf(s.shape({icon:s.node,separator:s.bool,activeIcon:s.node,isActive:s.bool,name:s.string,onClick:s.func,disabled:s.bool})).isRequired,orientation:s.oneOf(["horizontal","vertical"]),showName:s.bool,namePosition:s.oneOf(["left","right"]),useTooltip:s.bool,tooltipPosition:s.oneOf(["top","bottom","left","right"])};const Ll="_indicatorsCategory_11gdl_2",Rl="_title_11gdl_6",Il="_mainTitle_11gdl_14",Dn={indicatorsCategory:Ll,title:Rl,mainTitle:Il},yt=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:i="Title",height:a=53,titleFontStyles:c,showBottomBar:u=!0,titleMarginChildren:d=15,mainTitle:m=!1})=>{const{t:h}=ie.useTranslation();return l.jsxs(lo.motion.div,{className:Dn.indicatorsCategory,initial:{height:`${a}px`},animate:{height:e?"auto":`${a}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&u?`1px solid ${o}`:"0px",minHeight:m?"70px":"50px"},children:[l.jsxs("h2",{style:{...c},className:`${Dn.title} ${m&&Dn.mainTitle}`,onClick:t,children:[l.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),l.jsx("span",{style:{color:e?o:r},children:h(i)})]}),l.jsx("div",{className:Dn.content,style:{padding:m?"20px 0px":"0px"},children:n})]})};yt.displayName="DropdownList";yt.propTypes={isOpen:s.bool,onClick:s.func,children:s.node,color:s.string,activeColor:s.string,title:s.string,height:s.number,showBottomBar:s.bool,titleFontStyles:s.object};const Wi=()=>l.jsx("div",{children:"EditAmbit"});Wi.displayName="EditAmbit";const Dl="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",Bl="_AppliedFiltersContainer_cokx9_2",Pl="_AppliedFilterContent_cokx9_11",$s={AppliedFiltersContainer:Bl,AppliedFilterContent:Pl},ve=co.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56",activeFiltersType:null})),ho=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680",activeColor:i,fontColor:a="#605B56"})=>{const{t:c}=ie.useTranslation(),{tematicalFiltersSelected:u,activeFiltersType:d}=ve(y=>y),m=y=>{ve.setState(g=>({tematicalFiltersSelected:g.tematicalFiltersSelected.filter(b=>b.code!==y)}))},h=()=>{d=="applied"?ve.setState(()=>({activeFiltersType:null})):ve.setState(()=>({activeFiltersType:"applied"}))};return l.jsx(yt,{isOpen:n,onClick:h,title:e?c(e):"Applied Filters",activeColor:i,mainTitle:!0,color:a,children:l.jsx("div",{className:$s.AppliedFiltersContainer,children:u==null?void 0:u.map((y,g)=>l.jsxs("div",{className:$s.AppliedFilterContent,style:{color:r,background:o},children:[c(y.name),l.jsx("img",{src:Dl,alt:"CloseIcon",onClick:()=>m(y.code),style:{cursor:"pointer"}})]},g))})})};ho.displayName="AppliedFilters";ho.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,indicators:s.arrayOf(s.shape({title:s.string.isRequired,Codename:s.string.isRequired})),activeColor:s.string};const Vl="_layersList_cn837_25",Fl="_layerName_cn837_34",Ns={layersList:Vl,layerName:Fl},go=({title:e,isOpen:t=!0,fontColor:n="#605B56",backgroundColor:r="#605B5680",activeColor:o,geoLayers:i=[],onGeoLayersChange:a})=>{const{t:c}=ie.useTranslation(),{activeFiltersType:u}=ve(h=>h),d=()=>{u==="geographical"?ve.setState({activeFiltersType:null}):ve.setState({activeFiltersType:"geographical"})},m=h=>{const y=i.map(g=>({...g,active:g.name===h.name}));a==null||a(y)};return l.jsx(yt,{isOpen:u==="geographical",onClick:d,title:e?c(e):"Geographical Filters",activeColor:o,color:n,mainTitle:!0,children:l.jsx("div",{className:Ns.layersList,children:i.map(h=>l.jsx("div",{className:Ns.layerName,style:{color:h.active?o:n,fontWeight:h.active?"bold":"normal"},onClick:()=>m(h),children:c(h.name)},h.name))})})};go.displayName="GeographicalFilters";go.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string,activeColor:s.string};const zl="_checkboxContainer_1nxra_2",ql={checkboxContainer:zl},yo=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:i}=ie.useTranslation(),{title:a}=r||{},{fontColor:c,inputsColor:u}=ve(d=>d);return l.jsxs("div",{style:{...t,color:n},role:"checkbox",className:ql.checkboxContainer,onClick:e,children:[l.jsx("input",{type:"checkbox",checked:typeof o=="boolean"?o:!0,value:o,readOnly:!0,style:{border:`1.5px solid ${o?u:c}`,backgroundColor:o?u:"white"}}),l.jsx("span",{className:"checkmark",children:i(a)})]})};yo.displayName="CategoryCheckbox";yo.propTypes={onClick:s.func,value:s.bool,containerStyles:s.object,color:s.string,indicator:s.shape({title:s.string,codename:s.array}),checkedColor:s.string};function Yr(e,t){return Yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Yr(e,t)}function Wl(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Yr(e,t)}function Ir(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function Dr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function Bn(e){return e!==null&&e.length===1?e[0]:e.slice()}function Pn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function At(e,t){return Xr(function(n,r){let o=n;return o<=r.min&&(o=r.min),o>=r.max&&(o=r.max),o}(e,t),t)}function Xr(e,t){const n=(e-t.min)%t.step;let r=e-n;return 2*Math.abs(n)>=t.step&&(r+=n>0?t.step:-t.step),parseFloat(r.toFixed(5))}let Qr=function(e){function t(r){var o;(o=e.call(this,r)||this).onKeyUp=()=>{o.onEnd()},o.onMouseUp=()=>{o.onEnd(o.getMouseEventMap())},o.onTouchEnd=c=>{c.preventDefault(),o.onEnd(o.getTouchEventMap())},o.onBlur=()=>{o.setState({index:-1},o.onEnd(o.getKeyDownEventMap()))},o.onMouseMove=c=>{o.setState({pending:!0});const u=o.getMousePosition(c),d=o.getDiffPosition(u[0]),m=o.getValueFromPosition(d);o.move(m)},o.onTouchMove=c=>{if(c.touches.length>1)return;o.setState({pending:!0});const u=o.getTouchPosition(c);if(o.isScrolling===void 0){const h=u[0]-o.startPosition[0],y=u[1]-o.startPosition[1];o.isScrolling=Math.abs(y)>Math.abs(h)}if(o.isScrolling)return void o.setState({index:-1});const d=o.getDiffPosition(u[0]),m=o.getValueFromPosition(d);o.move(m)},o.onKeyDown=c=>{if(!(c.ctrlKey||c.shiftKey||c.altKey||c.metaKey))switch(o.setState({pending:!0}),c.key){case"ArrowLeft":case"ArrowDown":case"Left":case"Down":c.preventDefault(),o.moveDownByStep();break;case"ArrowRight":case"ArrowUp":case"Right":case"Up":c.preventDefault(),o.moveUpByStep();break;case"Home":c.preventDefault(),o.move(o.props.min);break;case"End":c.preventDefault(),o.move(o.props.max);break;case"PageDown":c.preventDefault(),o.moveDownByStep(o.props.pageFn(o.props.step));break;case"PageUp":c.preventDefault(),o.moveUpByStep(o.props.pageFn(o.props.step))}},o.onSliderMouseDown=c=>{if(!o.props.disabled&&c.button!==2){if(o.setState({pending:!0}),!o.props.snapDragDisabled){const u=o.getMousePosition(c);o.forceValueFromPosition(u[0],d=>{o.start(d,u[0]),Pn(o.getMouseEventMap())})}Ir(c)}},o.onSliderClick=c=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){const u=o.getMousePosition(c),d=At(o.calcValue(o.calcOffsetFromPosition(u[0])),o.props);o.props.onSliderClick(d)}},o.createOnKeyDown=c=>u=>{o.props.disabled||(o.start(c),Pn(o.getKeyDownEventMap()),Ir(u))},o.createOnMouseDown=c=>u=>{if(o.props.disabled||u.button===2)return;o.setState({pending:!0});const d=o.getMousePosition(u);o.start(c,d[0]),Pn(o.getMouseEventMap()),Ir(u)},o.createOnTouchStart=c=>u=>{if(o.props.disabled||u.touches.length>1)return;o.setState({pending:!0});const d=o.getTouchPosition(u);o.startPosition=d,o.isScrolling=void 0,o.start(c,d[0]),Pn(o.getTouchEventMap()),function(m){m.stopPropagation&&m.stopPropagation()}(u)},o.handleResize=()=>{const c=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(c)},o.renderThumb=(c,u)=>{const d=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+u+" "+(o.state.index===u?o.props.thumbActiveClassName:""),m={ref:y=>{o["thumb"+u]=y},key:o.props.thumbClassName+"-"+u,className:d,style:c,onMouseDown:o.createOnMouseDown(u),onTouchStart:o.createOnTouchStart(u),onFocus:o.createOnKeyDown(u),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[u],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[u]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[u]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},h={index:u,value:Bn(o.state.value),valueNow:o.state.value[u]};return o.props.ariaValuetext&&(m["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(h)),o.props.renderThumb(m,h)},o.renderTrack=(c,u,d)=>{const m={key:o.props.trackClassName+"-"+c,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+c,style:o.buildTrackStyle(u,o.state.upperBound-d)},h={index:c,value:Bn(o.state.value)};return o.props.renderTrack(m,h)};let i=Dr(r.value);i.length||(i=Dr(r.defaultValue)),o.pendingResizeTimeouts=[];const a=[];for(let c=0;c<i.length;c+=1)i[c]=At(i[c],r),a.push(c);return o.resizeObserver=null,o.resizeElementRef=_.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:a},o}Wl(t,e);var n=t.prototype;return n.componentDidMount=function(){typeof window<"u"&&(this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.resizeElementRef.current),this.resize())},t.getDerivedStateFromProps=function(r,o){const i=Dr(r.value);return i.length?o.pending?null:{value:i.map(a=>At(a,r))}:null},n.componentDidUpdate=function(){this.state.upperBound===0&&this.resize()},n.componentWillUnmount=function(){this.clearPendingResizeTimeouts(),this.resizeObserver&&this.resizeObserver.disconnect()},n.onEnd=function(r){r&&function(o){Object.keys(o).forEach(i=>{typeof document<"u"&&document.removeEventListener(i,o[i],!1)})}(r),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return Bn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,i=-1;const{value:a}=this.state,c=a.length;for(let u=0;u<c;u+=1){const d=this.calcOffset(a[u]),m=Math.abs(r-d);m<o&&(o=m,i=u)}return i},n.getMousePosition=function(r){return[r["page"+this.axisKey()],r["page"+this.orthogonalAxisKey()]]},n.getTouchPosition=function(r){const o=r.touches[0];return[o["page"+this.axisKey()],o["page"+this.orthogonalAxisKey()]]},n.getKeyDownEventMap=function(){return{keydown:this.onKeyDown,keyup:this.onKeyUp,focusout:this.onBlur}},n.getMouseEventMap=function(){return{mousemove:this.onMouseMove,mouseup:this.onMouseUp}},n.getTouchEventMap=function(){return{touchmove:this.onTouchMove,touchend:this.onTouchEnd}},n.getValueFromPosition=function(r){const o=r/(this.state.sliderLength-this.state.thumbSize)*(this.props.max-this.props.min);return At(this.state.startValue+o,this.props)},n.getDiffPosition=function(r){let o=r-this.state.startPosition;return this.props.invert&&(o*=-1),o},n.resize=function(){const{slider:r,thumb0:o}=this;if(!r||!o)return;const i=this.sizeKey(),a=r.getBoundingClientRect(),c=r[i],u=a[this.posMaxKey()],d=a[this.posMinKey()],m=o.getBoundingClientRect()[i.replace("client","").toLowerCase()],h=c-m,y=Math.abs(u-d);this.state.upperBound===h&&this.state.sliderLength===y&&this.state.thumbSize===m||this.setState({upperBound:h,sliderLength:y,thumbSize:m})},n.calcOffset=function(r){const o=this.props.max-this.props.min;return o===0?0:(r-this.props.min)/o*this.state.upperBound},n.calcValue=function(r){return r/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(r){const{slider:o}=this,i=o.getBoundingClientRect(),a=i[this.posMaxKey()],c=i[this.posMinKey()];let u=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:c));return this.props.invert&&(u=this.state.sliderLength-u),u-=this.state.thumbSize/2,u},n.forceValueFromPosition=function(r,o){const i=this.calcOffsetFromPosition(r),a=this.getClosestIndex(i),c=At(this.calcValue(i),this.props),u=this.state.value.slice();u[a]=c;for(let d=0;d<u.length-1;d+=1)if(u[d+1]-u[d]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:u},()=>{o(a),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do{const r=this.pendingResizeTimeouts.shift();clearTimeout(r)}while(this.pendingResizeTimeouts.length)},n.start=function(r,o){const i=this["thumb"+r];i&&i.focus();const{zIndices:a}=this.state;a.splice(a.indexOf(r),1),a.push(r),this.setState(c=>({startValue:c.value[r],startPosition:o!==void 0?o:c.startPosition,index:r,zIndices:a}))},n.moveUpByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],i=At(this.props.invert&&this.props.orientation==="horizontal"?o-r:o+r,this.props);this.move(Math.min(i,this.props.max))},n.moveDownByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],i=At(this.props.invert&&this.props.orientation==="horizontal"?o+r:o-r,this.props);this.move(Math.max(i,this.props.min))},n.move=function(r){const o=this.state.value.slice(),{index:i}=this.state,{length:a}=o,c=o[i];if(r===c)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:u,max:d,min:m,minDistance:h}=this.props;if(!u){if(i>0){const y=o[i-1];r<y+h&&(r=y+h)}if(i<a-1){const y=o[i+1];r>y-h&&(r=y-h)}}o[i]=r,u&&a>1&&(r>c?(this.pushSucceeding(o,h,i),function(y,g,b,f){for(let x=0;x<y;x+=1){const w=f-x*b;g[y-1-x]>w&&(g[y-1-x]=w)}}(a,o,h,d)):r<c&&(this.pushPreceding(o,h,i),function(y,g,b,f){for(let x=0;x<y;x+=1){const w=f+x*b;g[x]<w&&(g[x]=w)}}(a,o,h,m))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,o,i){let a,c;for(a=i,c=r[a]+o;r[a+1]!==null&&c>r[a+1];a+=1,c=r[a]+o)r[a+1]=Xr(c,this.props)},n.pushPreceding=function(r,o,i){for(let a=i,c=r[a]-o;r[a-1]!==null&&c<r[a-1];a-=1,c=r[a]-o)r[a-1]=Xr(c,this.props)},n.axisKey=function(){return this.props.orientation==="vertical"?"Y":"X"},n.orthogonalAxisKey=function(){return this.props.orientation==="vertical"?"X":"Y"},n.posMinKey=function(){return this.props.orientation==="vertical"?this.props.invert?"bottom":"top":this.props.invert?"right":"left"},n.posMaxKey=function(){return this.props.orientation==="vertical"?this.props.invert?"top":"bottom":this.props.invert?"left":"right"},n.sizeKey=function(){return this.props.orientation==="vertical"?"clientHeight":"clientWidth"},n.fireChangeEvent=function(r){this.props[r]&&this.props[r](Bn(this.state.value),this.state.index)},n.buildThumbStyle=function(r,o){const i={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return i[this.posMinKey()]=r+"px",i},n.buildTrackStyle=function(r,o){const i={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return i[this.posMinKey()]=r,i[this.posMaxKey()]=o,i},n.buildMarkStyle=function(r){var o;return(o={position:"absolute"})[this.posMinKey()]=r,o},n.renderThumbs=function(r){const{length:o}=r,i=[];for(let c=0;c<o;c+=1)i[c]=this.buildThumbStyle(r[c],c);const a=[];for(let c=0;c<o;c+=1)a[c]=this.renderThumb(i[c],c);return a},n.renderTracks=function(r){const o=[],i=r.length-1;o.push(this.renderTrack(0,0,r[0]));for(let a=0;a<i;a+=1)o.push(this.renderTrack(a+1,r[a],r[a+1]));return o.push(this.renderTrack(i+1,r[i],this.state.upperBound)),o},n.renderMarks=function(){let{marks:r}=this.props;const o=this.props.max-this.props.min+1;return typeof r=="boolean"?r=Array.from({length:o}).map((i,a)=>a):typeof r=="number"&&(r=Array.from({length:o}).map((i,a)=>a).filter(i=>i%r==0)),r.map(parseFloat).sort((i,a)=>i-a).map(i=>{const a=this.calcOffset(i),c={key:i,className:this.props.markClassName,style:this.buildMarkStyle(a)};return this.props.renderMark(c)})},n.render=function(){const r=[],{value:o}=this.state,i=o.length;for(let d=0;d<i;d+=1)r[d]=this.calcOffset(o[d],d);const a=this.props.withTracks?this.renderTracks(r):null,c=this.renderThumbs(r),u=this.props.marks?this.renderMarks():null;return _.createElement("div",{ref:d=>{this.slider=d,this.resizeElementRef.current=d},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},a,c,u)},t}(_.Component);Qr.displayName="ReactSlider",Qr.defaultProps={min:0,max:100,step:1,pageFn:e=>10*e,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:e=>_.createElement("div",e),renderTrack:e=>_.createElement("div",e),renderMark:e=>_.createElement("span",e)};var Jr=Qr;const Ul="_container_4u41i_2",Hl="_unitLabel_4u41i_8",Kl="_slider_4u41i_11",Zl="_thumb_4u41i_17",Gl="_track_4u41i_26",Yl="_labels_4u41i_32",Gt={container:Ul,unitLabel:Hl,slider:Kl,thumb:Zl,track:Gl,labels:Yl},bo=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:i,fontColor:a="#605B56",defaultValue:c,isDate:u})=>{const{t:d}=ie.useTranslation(),m=u?new Date(e).getTime():null,h=u?new Date(t).getTime():null,[y,g]=_.useState(u?[m,h]:[e,t]),b=f=>{g(f),r==null||r({min:f[0],max:f[1]})};return _.useEffect(()=>{g(c||(u?[m,h]:[e,t]))},[c,u]),l.jsxs("div",{className:Gt.container,style:{width:`${o}px`,color:`${a}`},children:[l.jsx("div",{className:Gt.unitLabel,children:l.jsx("span",{children:d(i)})}),l.jsx(Jr,{className:Gt.slider,thumbClassName:Gt.thumb,trackClassName:Gt.track,min:u?m:e,max:u?h:t,step:u?(h-m)/30:n,value:y,onAfterChange:b,withTracks:!0,pearling:!u,minDistance:u?0:.1}),l.jsxs("div",{className:Gt.labels,children:[l.jsx("span",{children:u?new Date(y[0]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[0]}),l.jsx("span",{children:u?new Date(y[1]).toLocaleDateString("en-EN",{day:"2-digit",month:"short",year:"numeric"}):y[1]})]})]})};bo.displayName="AbsoluteSlider";bo.propTypes={min:s.number,max:s.number,step:s.number,initialMin:s.number,initialMax:s.number,onChange:s.func,width:s.number,unit:s.string,fontColor:s.string,value:s.arrayOf(s.number)};const Xl="_tematicalFiltersInputContainer_1vm1r_2",Ql="_inputTypeContainer_1vm1r_2",Jl="_checkboxContainer_1vm1r_28",ec="_absoluteSliderContainer_1vm1r_37",Vn={tematicalFiltersInputContainer:Xl,inputTypeContainer:Ql,checkboxContainer:Jl,absoluteSliderContainer:ec},ur=({indicator:e,activeColor:t})=>{const[n,r]=_.useState(),{type:o,name:i,values:a,minValue:c,maxValue:u,unit:d,step:m,disabled:h,isDate:y}=e||{},g=_.useMemo(()=>o=="cat"||n=="cat",[n,o]),b=_.useMemo(()=>o=="abs"||n=="abs",[n,o]),{tematicalFiltersSelected:f,selectedIndicator:x,fontColor:w,inputsColor:S}=ve(C=>C),N=C=>{if(C){const{min:T,max:O,valueClicked:j,allValues:$}=C||{},{code:L,type:R,source:p}=e||{},E=b?"abs":g?"cat":"both";let k=L[0];R=="both"&&(k=E=="cat"?L[1]:L[0]),E=="cat"?ve.setState(D=>{let z=D.tematicalFiltersSelected.find(B=>B.code===k);if(z){let B=[z.values];return z.values.includes(j)?B=z.values.filter(F=>F!==j):B=[...z.values,j],B.length==$.length?{tematicalFiltersSelected:D.tematicalFiltersSelected.filter(F=>F.code!==k)}:{tematicalFiltersSelected:D.tematicalFiltersSelected.map(F=>F.code===k?{...F,values:B}:F)}}else{let B=($||[]).map((F,Z)=>Z);return{tematicalFiltersSelected:[...f,{type:"cat",code:k,values:B.filter(F=>F!==j),name:e.name,source:p,isDate:y}]}}}):E=="abs"&&ve.setState(D=>{let z=D.tematicalFiltersSelected.find(B=>B.code===k);if(T==e.minValue&&O==e.maxValue)return{tematicalFiltersSelected:D.tematicalFiltersSelected.filter(B=>B.code!==k)};if(z){let B={...z,min:T,max:O,type:E,isDate:y};return{tematicalFiltersSelected:D.tematicalFiltersSelected.map(F=>F.code===k?B:F)}}else return{tematicalFiltersSelected:[...f,{type:E,code:k,min:T,max:O,name:e.name,source:e.source}]}})}},v=_.useMemo(()=>{const C={};if((f==null?void 0:f.length)>0)for(const T of f)T.type==="cat"?C[T.code]=new Set(T.values):C[T.code]=[T.min,T.max];return C},[f]);return l.jsx("div",{className:Vn.tematicalFiltersInputContainer,children:l.jsxs(yt,{titleFontStyles:{fontSize:16,fontWeight:400,opacity:h?.5:1},title:i,isOpen:x==`id${i}`,onClick:()=>{h||ve.setState(()=>({selectedIndicator:x==`id${i}`?"":`id${i}`}))},showBottomBar:!1,height:42,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:w,activeColor:t,children:[o=="both"&&l.jsxs("div",{className:Vn.inputTypeContainer,style:{color:w},children:[l.jsxs("label",{children:[l.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{r("abs")},style:{marginRight:4,backgroundColor:n=="abs"?S:"white",border:`1.5px solid ${n=="abs"?S:w}`}}),"Absoluto"]}),l.jsxs("label",{children:[l.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{r("cat")},style:{marginRight:4,backgroundColor:n=="cat"?S:"white",border:`1.5px solid ${n=="cat"?S:w}`}}),"Categórico"]})]}),g&&l.jsx("div",{className:Vn.checkboxContainer,children:(a||[]).map((C,T)=>{var O;return l.jsx(yo,{onClick:()=>N({valueClicked:T,allValues:a}),indicator:C,value:((O=v[e.code[o=="both"?1:0]])==null?void 0:O.has(T))||!v[e.code[o=="both"?1:0]]},`checkbox-${T}`)})}),(b||o=="glb")&&l.jsx("div",{className:Vn.absoluteSliderContainer,children:l.jsx(bo,{onChange:N,min:c,max:u,unit:d,defaultValue:v[e.code[0]]?v[e.code[0]]:"",isDate:y,step:m})})]})})};ur.displayName="TematicalFiltersInput";ur.propTypes={indicator:s.shape({name:s.string,type:s.string,code:s.arrayOf(s.string),values:s.arrayOf(s.shape({codename:s.oneOfType([s.array,s.string]),title:s.string}))}),activeColor:s.string};const vo=({subcategory:e,fontColor:t,activeColor:n})=>{const{activeSubcategory:r}=ve(a=>a),{name:o,indicators:i}=e||{};return l.jsx(yt,{title:o,isOpen:r==`id${o}`,onClick:()=>{ve.setState(a=>({activeSubcategory:a.activeSubcategory===`id${o}`?"":`id${o}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:48,color:t,activeColor:n,children:i==null?void 0:i.map((a,c)=>l.jsx(ur,{indicator:a,fontColor:t,activeColor:n},`indicatorSub-${c}`))})};vo.displayName="TematicalFiltersSubcat";vo.propTypes={subcategory:s.shape({name:s.string,indicators:s.arrayOf(s.shape({name:s.string,value:s.string}))}),activeColor:s.string};const xo=({category:e,activeColor:t})=>{const{name:n,subcategories:r,indicators:o}=e||{},{activeCategory:i,fontColor:a}=ve(c=>c);return e&&l.jsx(yt,{onClick:()=>{ve.setState(c=>({activeCategory:i===`id${n}`?"":`id${n}`}))},title:n,isOpen:i===`id${n}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:a,activeColor:t,children:r?r.map((c,u)=>l.jsx(vo,{subcategory:c,fontColor:a,activeColor:t},`subcategory-${u}`)):o&&o.map((c,u)=>l.jsx(ur,{indicator:c,fontColor:a,activeColor:t},`indicator-${u}`))})};xo.displayName="TematicalFiltersCategory";xo.propTypes={category:s.shape({name:s.string.isRequired,subcategories:s.array,indicators:s.array}),activeColor:s.string};const nr=({indicators:e,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56",activeColor:i,isExtra:a=!1})=>{const{tematicalFiltersSelected:c,activeFiltersType:u}=ve(h=>h),{t:d}=ie.useTranslation();_.useEffect(()=>{r&&ve.setState(()=>({fontColor:r}))},[r]),_.useEffect(()=>{o&&ve.setState(()=>({inputsColor:o}))},[o]);const m=()=>{a?u==a?ve.setState(()=>({activeFiltersType:null})):ve.setState(()=>({activeFiltersType:a})):u=="tematical"?ve.setState(()=>({activeFiltersType:null})):ve.setState(()=>({activeFiltersType:"tematical"}))};return l.jsx(yt,{isOpen:a&&u==a||!a&&u=="tematical",title:n?d(n):"Tematical filters",color:r,activeColor:i,onClick:m,mainTitle:!0,children:e==null?void 0:e.map((h,y)=>l.jsx(xo,{category:h,fontColor:r,activeColor:i},`category-${y}`))})};nr.displayName="TematicalFilters";nr.propTypes={isOpen:s.bool,title:s.string,indicators:s.arrayOf(s.object),fontColor:s.string,onChangeTematicalFilters:s.func,inputsColor:s.string,activeColor:s.string};const tc="_FiltersAmbitContainer_ei39o_2",nc="_FiltersContainer_ei39o_15",rc="_FiltersAmbitHeader_ei39o_18",oc="_FiltersAmbitTitle_ei39o_26",sc="_FiltersAmbitDescription_ei39o_35",ic="_FiltersAmbitDescriptionTitle_ei39o_48",ac="_warning_ei39o_57",lc="_buttonContainer_ei39o_60",Ct={FiltersAmbitContainer:tc,FiltersContainer:nc,FiltersAmbitHeader:rc,FiltersAmbitTitle:oc,FiltersAmbitDescription:sc,FiltersAmbitDescriptionTitle:ic,warning:ac,buttonContainer:lc},Co=({ambitName:e,ambitDescription:t,defaultFilters:n,indicators:r,activeColor:o,textColor:i,backgroundColor:a,onChangeAppliedFilters:c,saveAmbit:u,namePlaceholder:d,descPlaceholder:m,filtersTypes:h=["geographical","tematical"],nameRequiredText:y,geoLayers:g=[],onGeoLayersChange:b,onlyFilters:f=!1,descriptionRequired:x=!1,extraLists:w=!1})=>{const{t:S}=ie.useTranslation(),{tematicalFiltersSelected:N,activeFiltersType:v}=ve(p=>p),[C,T]=_.useState(e||null),[O,j]=_.useState(t||null),[$,L]=_.useState(!1);_.useEffect(()=>{ve.setState({tematicalFiltersSelected:n||[]})},[n]),_.useRef(!1),_.useEffect(()=>{c(N)},[N]);const R=()=>{x?C&&O?u({name:C,description:O}):L(!0):C?u({name:C,description:O}):L(!0)};return _.useEffect(()=>{if(h.includes("geographical")&&v!="geographical"&&g.length>0){const p=g.map(E=>({...E,active:!1}));b==null||b(p)}},[v]),l.jsxs("div",{className:Ct.FiltersAmbitContainer,children:[l.jsxs("div",{className:Ct.FiltersContainer,children:[!f&&l.jsxs("div",{className:Ct.FiltersAmbitHeader,children:[l.jsx("div",{className:Ct.FiltersAmbitTitle,children:l.jsx("input",{type:"text",onChange:p=>{L(!1),T(p.target.value)},value:C,placeholder:S(d)})}),l.jsx("div",{className:Ct.FiltersAmbitDescription,children:l.jsx("div",{className:Ct.FiltersAmbitDescriptionTitle,children:l.jsx("textarea",{value:O,onChange:p=>{x&&L(!1),j(p.target.value)},placeholder:S(m)})})})]}),l.jsx(ho,{title:S("applied_filters"),isOpen:v=="applied",textColor:i||"#fff",backgroundColor:a||"#605B5680",activeColor:o}),h.includes("geographical")&&l.jsx(go,{title:"geo_filters",activeColor:o,geoLayers:g,onGeoLayersChange:b}),h.includes("extra")&&w.map(p=>l.jsx(nr,{indicators:p.indicators,inputsColor:o,textColor:i,title:p.title,activeColor:o,isExtra:p.title})),h.includes("tematical")&&l.jsx(nr,{indicators:r,inputsColor:o,textColor:i,title:"tematical_filters",activeColor:o,isExtra:!1})]}),!f&&l.jsxs("div",{className:Ct.buttonContainer,children:[$&&l.jsx("div",{className:Ct.warning,children:S(y)}),l.jsx(fn,{onClick:()=>R(),children:S("save_ambit")})]})]})};Co.displayName="FiltersAmbit";Co.propTypes={indicators:s.arrayOf(s.object).isRequired,ambitName:s.string,ambitDescription:s.string,defaultFilters:s.arrayOf(s.object),activeColor:s.string,backgroundColor:s.string,textColor:s.string,onChangeAppliedFilters:s.func,saveAmbit:s.func,namePlaceholder:s.string,descPlaceholder:s.string,filtersTypes:s.arrayOf(s.string).isRequired,nameRequiredText:s.string,extraLists:s.arrayOf(s.object)};const cc="_barChartContainer_1ly7h_2",Es={barChartContainer:cc},dr=({data:e,barHeight:t=25,gap:n=23,fontColor:r="#605B56",leftPadding:o=200,numberOfDivisions:i=7,maxValue:a=null,orientation:c="horizontal",horizontalPadding:u=c=="vertical"?50:20,verticalPadding:d=10,xLabelPadding:m=c=="vertical"?50:40,containerWidth:h=700,containerHeight:y=500,mainColor:g="#000"})=>{const{xScale:b,yScale:f,ticks:x,height:w,chartWidth:S,svgWidth:N,svgHeight:v,contentWidth:C}=_.useMemo(()=>{if(e&&e.length>0){const T=Nr.max(e,j=>j.value)||1,O=a||T;if(c==="vertical"){const j=e.length*(t+n)+u*2,$=Math.max(j,h||0),L=y,p=Nr.scaleLinear().domain([0,O]).range([L-100,d]),E=Array.from({length:i+1},(k,D)=>O/i*D);return{yScale:p,ticks:E,height:L,chartWidth:$,svgWidth:$,svgHeight:L,contentWidth:j}}else{const j=e.length*(t+n);console.log("barsHeight: ",j);const $=j+d*2+m+30,L=h+o+u*2,R=Nr.scaleLinear().domain([0,O]).range([0,h-u*2]),p=Array.from({length:i+1},(E,k)=>O/i*k);return{xScale:R,ticks:p,height:$,chartWidth:h,svgWidth:L,svgHeight:$,contentWidth:L}}}else return{xScale:null,yScale:null,ticks:[],height:0,svgHeight:0}},[e,i,t,n,u,d,a,c,o,h,y]);return c==="vertical"?l.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":g},className:Es.barChartContainer,children:l.jsx("svg",{width:N,height:v,style:{display:"block",width:N,height:v,maxWidth:"none","--main-color":g},children:l.jsxs("g",{transform:`translate(${u}, 0)`,children:[l.jsx("g",{children:x.map((T,O)=>{const j=f(T);return l.jsxs("g",{children:[l.jsx("line",{x1:0,x2:S-u*2,y1:j,y2:j,stroke:"#ccc"}),l.jsx("text",{x:-10,y:j+4,textAnchor:"end",fontSize:10,fill:r,children:parseInt(T)})]},O)})}),e&&e.length>0&&e.map((T,O)=>{const j=f(0)-f(T.value),$=O*(t+n),L=f(T.value);return l.jsxs("g",{children:[l.jsx("rect",{x:$,y:L,width:t,height:j,fill:T.color,rx:0}),l.jsx("text",{x:$+t/2,y:w-m,textAnchor:"start",fill:r,fontSize:12,transform:`rotate(-90, ${$+t/2}, ${w-m})`,children:T.title})]},O)})]})})}):(console.log("svgHeight: ",v),l.jsx("div",{style:{width:"100%",height:y?`${y}px`:"100%","--main-color":g},className:Es.barChartContainer,children:l.jsx("svg",{width:N,height:v,style:{minWidth:"100%",height:v,width:C,maxWidth:"none"},children:l.jsxs("g",{transform:`translate(0,${d})`,children:[l.jsx("g",{transform:`translate(${o+u}, 0)`,children:x.map((T,O)=>{const j=b(T);return l.jsxs("g",{transform:`translate(${j}, 0)`,children:[l.jsx("line",{y1:0,y2:e.length*(t+n),stroke:"#ccc"}),l.jsx("text",{y:e.length*(t+n)+30,textAnchor:"middle",fontSize:10,fill:r,children:parseInt(T)})]},O)})}),e&&e.length>0&&e.map((T,O)=>{const j=b(T.value),$=O*(t+n);return console.log("y: ",$),l.jsxs("g",{transform:`translate(${o+u}, ${$})`,children:[l.jsx("text",{x:-24,y:t/2+5,textAnchor:"end",fill:r,fontSize:12,children:T.title}),l.jsx("rect",{width:j,height:t,fill:T.color,rx:0})]},O)})]})})}))};dr.displayName="BarChart";dr.propTypes={data:s.arrayOf(s.shape({title:s.string,value:s.number,color:s.string})),length:s.number,barHeight:s.number,gap:s.number,verticalPadding:s.number,horizontalPadding:s.number,numberOfDivisions:s.number,fontColor:s.string,leftPadding:s.number,maxValue:s.number,orientation:s.oneOf(["horizontal","vertical"]),xLabelPadding:s.number,containerWidth:s.number,containerHeight:s.number,minBarWidth:s.number};const uc="_graphicContainer_1ozwp_2",dc="_titleContainer_1ozwp_13",Os={graphicContainer:uc,titleContainer:dc},_o=({data:e,graphLength:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:i="#605B56",maxValue:a=null,numberOfDivisions:c=7,leftPadding:u=-200,orientation:d="horizontal",xLabelPadding:m=0,mainColor:h})=>{const{t:y}=ie.useTranslation();return l.jsxs("div",{className:Os.graphicContainer,style:{...n||{},paddingBottom:40},children:[l.jsx("div",{className:Os.titleContainer,children:l.jsx("h2",{children:y(o)})}),l.jsx(dr,{data:e,length:t,fontColor:i,maxValue:a,numberOfDivisions:c,leftPadding:u,orientation:d,xLabelPadding:m,mainColor:h})]})};_o.displayName="Graphic";_o.propTypes={data:s.arrayOf(s.shape({color:s.string.isRequired,value:s.number.isRequired,title:s.string.isRequired})),borderColor:s.string,title:s.string,graphLength:s.number,containerStyle:s.object,fontColor:s.string,mainColor:s.string,maxValue:s.number,numberOfDivisions:s.number,leftPadding:s.number,xLabelPadding:s.number};const fc="_indicatorsCategory_arwy3_2",pc="_title_arwy3_5",mc="_list_arwy3_13",Fn={indicatorsCategory:fc,title:pc,list:mc},hc="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",gc="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",lt=co.create(e=>({activeColor:null,defaultColor:"#92898A",multiple:!1,activeIndicatorType:null,activeIndicatorSubcategory:""})),Ui=({indicator:e,subcatIndex:t,indicatorSubcategory:n})=>{const r={},o=new Set;return Object.entries(e).forEach(([i,a])=>{const c=i.match(/^(.*)_subcat_(\d+)$/);if(c){const[u,d,m]=c;Number(m)===t&&(r[d]=a,o.add(d))}}),Object.entries(e).forEach(([i,a])=>{!i.includes("_subcat_")&&!o.has(i)&&(r[i]=a)}),r.activeIndicatorSubcategory=n,r},yc="_indicatorContainer_swmx0_2",bc="_indicatorNameContainer_swmx0_12",vc="_dot_swmx0_19",xc="_indicatorName_swmx0_12",Cc="_switchExternalContainer_swmx0_33",_c="_switchType_swmx0_42",wc="_switchTypeOptions_swmx0_46",Sc="_optionContainer_swmx0_57",Tc="_customRadious_swmx0_67",kc="_optionText_swmx0_74",xe={indicatorContainer:yc,indicatorNameContainer:bc,dot:vc,indicatorName:xc,switchExternalContainer:Cc,switchType:_c,switchTypeOptions:wc,optionContainer:Sc,customRadious:Tc,optionText:kc},fr=({indicator:e,values:t=[],activeIndicator:n,onClickIndicator:r,onChangeType:o,onChangeIndicatorSubcategory:i})=>{const{t:a}=ie.useTranslation(),{name:c,type:u,disabled:d,indicatorSubcategories:m}=e,{activeIndicatorType:h,activeColor:y,defaultColor:g,multiple:b,activeIndicatorSubcategory:f}=lt(C=>C),[x,w]=_.useState(!1);_.useEffect(()=>{n&&w(b?n.some(C=>C.name==String(c)):n.name==c)},[n]);const S=()=>l.jsx("div",{className:xe.switchExternalContainer,children:l.jsx("div",{className:xe.switchType,children:l.jsxs("div",{className:xe.switchTypeOptions,children:[l.jsxs("div",{className:xe.optionContainer,onClick:()=>{lt.setState(C=>({...C,activeIndicatorType:"cat"})),o("cat")},children:[l.jsx("span",{className:`${xe.customRadious}`,style:{backgroundColor:h==="cat"?y:"transparent",borderColor:h==="cat"?y:g}}),l.jsx("h4",{className:xe.optionText,style:{color:h==="cat"?y:g},children:a("indicators.cat")})]}),l.jsxs("div",{className:xe.optionContainer,onClick:()=>{lt.setState(C=>({...C,activeIndicatorType:"abs"})),o("abs")},children:[l.jsx("span",{className:`${xe.customRadious}`,style:{backgroundColor:h==="abs"?y:"transparent",borderColor:h==="abs"?y:g}}),l.jsx("h4",{className:xe.optionText,style:{color:h==="abs"?y:g},children:a("indicators.abs")})]})]})})}),N=()=>l.jsx("div",{className:xe.switchExternalContainer,children:l.jsx("div",{className:xe.switchType,children:l.jsx("div",{className:xe.switchTypeOptions,children:m==null?void 0:m.map((C,T)=>l.jsxs("div",{className:xe.optionContainer,onClick:()=>{lt.setState(j=>({...j,activeIndicatorSubcategory:C.title}));let O=Ui({indicator:e,subcatIndex:T,indicatorSubcategory:C.title});i&&i({indicator:O})},children:[l.jsx("span",{className:`${xe.customRadious}`,style:{backgroundColor:f===C.title?y:"transparent",borderColor:f===C.title?y:g}}),l.jsx("h4",{className:xe.optionText,style:{color:f===C.title?y:g},children:a(C.title)})]},`indicatorSubcategory-${C.title}`))})})}),v=()=>l.jsx("div",{className:xe.switchExternalContainer,children:l.jsx("div",{className:xe.switchType,children:l.jsx("div",{className:xe.switchTypeOptions,children:t.map((C,T)=>l.jsxs("div",{className:xe.optionContainer,children:[l.jsx("span",{className:xe.customRadious}),l.jsx("h4",{children:a(C.unit)})]},T))})})});return l.jsxs("div",{className:xe.indicatorContainer,children:[l.jsxs("div",{className:xe.indicatorNameContainer,onClick:()=>!d&&r({indicator:e}),children:[l.jsx("div",{style:{border:x?`1px solid ${y}`:`1px solid ${g}`,opacity:d?.5:1,backgroundColor:x?y:"transparent"},className:xe.dot,children:b&&l.jsx("img",{src:x?gc:hc,alt:""})}),l.jsx("h4",{className:xe.indicatorName,style:{color:x?y:g,opacity:d?.5:1},children:l.jsx(ie.Trans,{i18nKey:c,components:{sup:l.jsx("sup",{})},shouldUnescape:!0})})]}),(n==null?void 0:n.name)===c&&u==="both"&&S(),(n==null?void 0:n.name)===c&&u==="twoUnits"&&v(),(n==null?void 0:n.name)===c&&m&&m.length>0&&N()]})};fr.displayName="Indicator";fr.propTypes={indicator:s.shape({name:s.string,type:s.string}),values:s.oneOfType([s.bool,s.array]),activeColor:s.string,defaultColor:s.string,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,onClickIndicator:s.func};const jc="_indicatorsSubCategory_1nuug_2",$c="_list_1nuug_11",As={indicatorsSubCategory:jc,list:$c},wo=({subcName:e,indicators:t,activeSubCategory:n,onClickSubCategory:r,id:o,activeIndicator:i,onClickIndicator:a,onChangeType:c,onChangeIndicatorSubcategory:u})=>{const{t:d}=ie.useTranslation(),[m,h]=_.useState(!1);_.useEffect(()=>{h(n==o)},[n,o]);const{activeIndicatorType:y,activeColor:g,defaultColor:b,multiple:f,activeIndicatorSubcategory:x}=lt(w=>w);return l.jsxs(lo.motion.div,{className:As.indicatorsSubCategory,initial:{height:"43px"},animate:{height:m?"auto":"43px"},transition:{duration:.4},children:[l.jsx("button",{onClick:()=>r(o),children:l.jsxs("h3",{style:{color:m?g:b},children:[l.jsx("span",{style:{color:m?g:b},children:m?"-":"+"}),l.jsx("span",{style:{color:m?g:b},children:d(e)})]})}),t&&l.jsx("div",{className:As.list,children:t==null?void 0:t.map((w,S)=>l.jsx(fr,{indicator:w,activeIndicator:i,onClickIndicator:a,onChangeType:c,onChangeIndicatorSubcategory:u},"indicator"+S))})]})};wo.displayName="IndicatorSubCategory";wo.propTypes={subcName:s.string,indicators:s.array,activeColor:s.string,defaultColor:s.string,activeSubCategory:s.string,id:s.string,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,onClickSubCategory:s.func,onClickIndicator:s.func};const So=({cat:e,id:t,onClickCategory:n,activeCategory:r,activeSubCategory:o,onClickSubCategory:i,activeIndicator:a,onClickIndicator:c,onChangeType:u,onChangeIndicatorSubcategory:d})=>{var w;const{t:m}=ie.useTranslation(),{activeIndicatorType:h,activeColor:y,defaultColor:g,multiple:b}=lt(S=>S),[f,x]=_.useState(!1);return _.useEffect(()=>{x(r===t)},[r,t]),l.jsxs(lo.motion.div,{className:Fn.indicatorsCategory,initial:{height:"53px"},animate:{height:f?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:f?`1px solid ${y}`:"0px",marginBottom:f?"20px":"0px"},children:[l.jsxs("h2",{className:`${Fn.title}`,onClick:()=>n(t),children:[l.jsx("span",{className:Fn.plus,style:{color:f?y:g},children:f?"-":"+"}),l.jsx("span",{style:{color:f?y:g},children:m(e.name)})]}),e.subcategories?e.subcategories.map(({name:S,subcategory:N,indicators:v},C)=>l.jsx(wo,{id:N,activeSubCategory:o,subcName:S,onClickSubCategory:i,activeIndicator:a,onClickIndicator:c,indicators:v,onChangeType:u,onChangeIndicatorSubcategory:d},`subcKey ${C}`)):l.jsx("div",{className:Fn.list,children:(w=e.indicators)==null?void 0:w.map((S,N)=>l.jsx(fr,{indicator:S,values:S.type=="twoUnits"&&S.values,activeIndicator:a,onClickIndicator:c,onChangeType:u,onChangeIndicatorSubcategory:d},`indicator${N}`))})]})};So.displayName="IndicatorsCategory";So.propTypes={cat:s.object,id:s.string,onChange:s.func,onClickCategory:s.func,activeCategory:s.string,activeSubCategory:s.string,onClickSubCategory:s.func,onClickIndicator:s.func,activeIndicator:s.oneOfType([s.object,s.array]),multiple:s.bool,activeColor:s.string,defaultColor:s.string};const Nc="_indicatorsList_13b3m_2",Ec="_title_13b3m_6",Ms={indicatorsList:Nc,title:Ec},eo=(e,t)=>{if(e===t)return!0;if(e==null||t==null||typeof e!=typeof t)return!1;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((n,r)=>eo(n,t[r]));if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);return n.length!==r.length?!1:n.every(o=>eo(e[o],t[o]))}return!1},To=({indicators:e,activeColor:t,defaultColor:n="#92898A",onChange:r,multiple:o=!1,defaultValue:i=null,changeIndType:a,activeIndicatorType:c,onChangeIndicatorSubcategory:u})=>{const{t:d}=ie.useTranslation(),[m,h]=_.useState(),[y,g]=_.useState(),[b,f]=_.useState(),x=_.useRef(i),w=_.useRef(!1);_.useEffect(()=>{lt.setState({activeColor:t||"",defaultColor:n||"",multiple:o||!1,activeIndicatorType:c||null})},[t,n,o,c]);const S=j=>{h(m==j?null:j)},N=j=>{g(y==j?null:j)},v=({indicator:j})=>{if(j!=null&&j.indicatorSubcategories&&j.indicatorSubcategories.length>0){const $=j.indicatorSubcategories[0],L=Ui({indicator:j,subcatIndex:0,indicatorSubcategory:$.title});lt.setState({activeIndicatorSubcategory:$.title}),T(L,!0),u&&u({indicator:L})}else lt.setState({activeIndicatorSubcategory:null}),T(j)},C=({indicator:j})=>{T(j,!0),u&&u({indicator:j})},T=(j,$=!1,L=!1)=>{if(o){let R=b&&b.length>0?[...b]:[];const p=R==null?void 0:R.some(k=>k.name==j.name);let E;$?E=j:E=p?R.filter(k=>k.name!=String(j.name)):[...R,j],f(E),j.type=="both"&&a("cat"),r&&typeof r=="function"&&($||!(j!=null&&j.indicatorSubcategories))&&!L&&r({activeIndicator:E})}else{let R;$?R=j:R=(b==null?void 0:b.name)==j.name?null:j,f(R),(j==null?void 0:j.type)=="both"&&a("cat"),r&&typeof r=="function"&&($||!(j!=null&&j.indicatorSubcategories))&&!L&&r({activeIndicator:R})}};_.useLayoutEffect(()=>{var j;if(x.current&&!b){w.current=!0;try{o&&Array.isArray(x.current)?(f([...x.current]),O((j=x.current[0])==null?void 0:j.name)):x.current&&(T(x.current,!1,!0),O(x.current.name))}finally{w.current=!1}}},[]),_.useEffect(()=>{var j;if(!w.current&&!eo(i,b)){w.current=!0;try{const{activeIndicatorSubcategory:$}=i||{};$&<.setState({activeIndicatorSubcategory:$}),o&&Array.isArray(i)?(f([...i]),O((j=i[0])==null?void 0:j.name)):i?(T(i,!1,!0),O(i.name)):(f(o?[]:null),h(null),g(null))}finally{w.current=!1}}},[i]);const O=j=>{const $=e.find(L=>{if(L.subcategories){let R=L.subcategories.find(p=>p.indicators.find(E=>E.name==j));if(R)return g(R.subcategory),R}else return L.indicators.some(R=>R.name==j)});$&&h($.category)};return l.jsxs("div",{className:Ms.indicatorsList,children:[l.jsx("h2",{className:Ms.title,style:{color:n},children:d("indicators.indicators")}),e.map((j,$)=>l.jsx(So,{id:j.category,cat:j,onClickCategory:S,activeCategory:m,onClickSubCategory:N,activeSubCategory:y,onClickIndicator:v,activeIndicator:b,onChange:r,onChangeType:a,onChangeIndicatorSubcategory:C},`categoryKey${$}`))]})};To.displayName="IndicatorsList";To.propTypes={indicators:s.arrayOf(s.object),activeColor:s.string,defaultColor:s.string,onChange:s.func,changeIndType:s.func,multiple:s.bool,activeIndicator:s.oneOfType([s.object,s.array]),defaultValue:s.oneOfType([s.object,s.array]),activeIndicatorType:s.string,onChangeIndicatorSubcategory:s.func};const Oc="_langSelector_o9enq_2",Ac="_currentLang_o9enq_14",Mc="_arrow_o9enq_26",Lc="_prevImg_o9enq_29",Rc="_langMenu_o9enq_33",Yt={langSelector:Oc,currentLang:Ac,arrow:Mc,prevImg:Lc,langMenu:Rc},ko=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=_.useState(!1),{i18n:i}=ie.useTranslation(),a=e.find(u=>u.code==i.language),c=u=>{i.changeLanguage(u),o(!1)};return l.jsxs("div",{className:Yt.langSelector,children:[l.jsxs("div",{className:Yt.currentLang,onClick:()=>{o(!r)},children:[n&&l.jsx("img",{className:Yt.prevImg,src:n}),(a==null?void 0:a.titleSelected)||(a==null?void 0:a.title),l.jsx("img",{src:t,className:Yt.arrow})]}),r&&l.jsx("div",{className:Yt.langMenu,children:e.map(u=>l.jsx("button",{className:(a==null?void 0:a.code)==u.code?Yt.active:"",onClick:()=>c(u.code),children:u.title},u.code))})]})};ko.displayName="LangSelector";ko.propTypes={langs:s.arrayOf(s.shape({code:s.string,title:s.string,titleSelected:s.string})),color:s.string,bckColor:s.string,hoverColor:s.string,arrow:s.object,imgPrev:s.string||s.object};const Ic="_legendContainer_r9cd6_3",Dc="_closeButton_r9cd6_43",Bc="_titleContainer_r9cd6_71",Pc="_infoContainer_r9cd6_77",Vc="_titleLegendList_r9cd6_88",Fc="_legendListContainer_r9cd6_94",zc="_gridContainer_r9cd6_94",qc="_elementLegendContainer_r9cd6_100",Wc="_colorDot_r9cd6_106",Uc="_absoluteValueContainer_r9cd6_112",Hc="_absoluteValueColor_r9cd6_115",Kc="_absoluteValueText_r9cd6_120",Zc="_noDataContainer_r9cd6_132",Gc="_noData_r9cd6_132",Yc="_moreInfoContainer_r9cd6_153",Ae={legendContainer:Ic,closeButton:Dc,titleContainer:Bc,infoContainer:Pc,titleLegendList:Vc,legendListContainer:Fc,gridContainer:zc,elementLegendContainer:qc,colorDot:Wc,absoluteValueContainer:Uc,absoluteValueColor:Hc,absoluteValueText:Kc,noDataContainer:Zc,noData:Gc,moreInfoContainer:Yc},jo=({containerStyles:e,title:t,infoList:n,legendItems:r,onClickMoreInfo:o,buttonTitle:i,onClickClose:a})=>{const{t:c}=ie.useTranslation();return l.jsxs("div",{style:e?{...e}:{},className:`${Ae.legendContainer}`,children:[l.jsx("button",{className:Ae.closeButton,onClick:a}),t&&l.jsx("div",{className:Ae.titleContainer,style:{marginBottom:(!n||n.length==0)&&"15px"},children:l.jsx("h2",{children:t})}),n&&n.length>0&&l.jsx("div",{className:Ae.infoContainer,children:l.jsx("ul",{children:n.map(({title:u,value:d},m)=>l.jsxs("li",{children:[l.jsx("h3",{className:Ae.title,children:`${u}:`}),l.jsxs("span",{className:Ae.value,children:[" ",d]})]},`${u}-${m}`))})}),r&&r.length>0&&r.map((u,d)=>l.jsxs("div",{children:[l.jsx("h3",{className:Ae.titleLegendList,style:{marginTop:n&&n.length>0&&d===0?"30px":d>0?"20px":"0px"},children:u.title&&l.jsx(ie.Trans,{i18nKey:u.title,components:{sup:l.jsx("sup",{})},shouldUnescape:!0})}),l.jsxs("div",{className:Ae.legendListContainer,children:[u.absolute?l.jsxs("div",{className:Ae.absoluteValueContainer,children:[l.jsx("div",{className:Ae.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${u.absolute.maxColor} 0%, ${u.absolute.midColor?`${u.absolute.midColor} 50%,`:""} ${u.absolute.minColor} 100%)`}}),l.jsxs("div",{className:Ae.absoluteValueText,children:[l.jsxs("span",{children:[u.absolute.maxValue," ",c(u.absolute.unit)," ",u.absolute.offlimits&&c(u.moreText)]}),u.absolute.midValue&&l.jsxs("span",{children:[u.absolute.midValue," ",c(u.absolute.unit)]}),l.jsxs("span",{children:[u.absolute.minValue," ",c(u.absolute.unit)," ",u.absolute.offlimits&&c(u.lessText)]})]})]}):u.categories&&u.categories.length>0&&l.jsx("div",{className:Ae.gridContainer,children:u.categories.map(({title:m,color:h},y)=>l.jsxs("div",{className:Ae.elementLegendContainer,children:[l.jsx("div",{className:Ae.colorDot,style:{backgroundColor:h}}),l.jsxs("div",{className:Ae.titleLegendElement,children:[c(m)," "]})]},y))}),u.absolute&&u.absolute.noDataColor&&l.jsxs("div",{className:Ae.noDataContainer,children:[l.jsx("div",{className:Ae.noData,style:{background:u.absolute.noDataColor}}),l.jsx("div",{className:Ae.absoluteValueText,children:l.jsx("span",{children:c(u.absolute.noDataText)})})]})]})]},d)),o&&l.jsx("button",{className:Ae.moreInfoContainer,onClick:o,children:i||c("moreInformation")})]})};jo.displayName="Legend";jo.propTypes={title:s.string,containerStyles:s.object,infoList:s.arrayOf(s.shape({title:s.string.isRequired,value:s.oneOfType([s.string,s.number])})),legendItems:s.arrayOf(s.shape({title:s.string,categories:s.arrayOf(s.shape({title:s.string,color:s.string})),absolute:s.shape({maxColor:s.string,minColor:s.string,midColor:s.string,maxValue:s.number,minValue:s.number,midValue:s.number,unit:s.string,noDataColor:s.string,noDataText:s.string})})),onClickMoreInfo:s.func,buttonTitle:s.string,onClickClose:s.func};const Xc="_logo_1ewa6_2",Ls={logo:Xc},$o=({src:e,alt:t,href:n})=>{const{t:r}=ie.useTranslation(),o=l.jsx("img",{src:e,alt:r(t)});return n?l.jsx("div",{className:Ls.logo,children:l.jsx("a",{href:n,children:o})}):l.jsx("div",{className:Ls.logo,children:o})};$o.displayName="LogoApp";$o.propTypes={src:s.string.isRequired,alt:s.string.isRequired,href:s.string,className:s.string};const Qc=te.createContext(null);function Jc(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,i=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===i}function Ze(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Ze(e[n],t[n]))return!1;return!0}else if(Array.isArray(t))return!1;if(typeof e=="object"&&typeof t=="object"){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n)if(!t.hasOwnProperty(o)||!Ze(e[o],t[o]))return!1;return!0}return!1}function e0(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function Rs(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Ze(n,r)||t.setProjection(n)}function Is(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function Ds(e,t){const n=t.viewState||t;let r=!1;if("zoom"in n){const o=e.zoom;e.zoom=n.zoom,r=r||o!==e.zoom}if("bearing"in n){const o=e.bearing;e.bearing=n.bearing,r=r||o!==e.bearing}if("pitch"in n){const o=e.pitch;e.pitch=n.pitch,r=r||o!==e.pitch}if(n.padding&&!e.isPaddingEqual(n.padding)&&(r=!0,e.padding=n.padding),"longitude"in n&&"latitude"in n){const o=e.center;e.center=new o.constructor(n.longitude,n.latitude),r=r||o!==e.center}return r}const t0=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function Bs(e){if(!e)return null;if(typeof e=="string"||("toJS"in e&&(e=e.toJS()),!e.layers))return e;const t={};for(const r of e.layers)t[r.id]=r;const n=e.layers.map(r=>{let o=null;"interactive"in r&&(o=Object.assign({},r),delete o.interactive);const i=t[r.ref];if(i){o=o||Object.assign({},r),delete o.ref;for(const a of t0)a in i&&(o[a]=i[a])}return o||r});return{...e,layers:n}}const Ps={version:8,sources:{},layers:[]},Vs={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},Br={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},Fs={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},n0=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],r0=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class un{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=o=>{const i=this.props[Fs[o.type]];i?i(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const i=this.props[Vs[o.type]];i&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),i(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const i=this.props[Br[o.type]];i&&i(o)}o.type in this._deferredEvents&&(this._deferredEvents[o.type]=!1)},this._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n);r&&this._createShadowTransform(this._map);const o=this._updateSize(t),i=this._updateViewState(t,!0);this._updateStyle(t,n),this._updateStyleComponents(t,n),this._updateHandlers(t,n),(r||o||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=un.savedMaps.pop();if(!r)return null;const o=r.map,i=o.getContainer();for(n.className=i.className;i.childNodes.length>0;)n.appendChild(i.childNodes[0]);o._container=n;const a=o._resizeObserver;a&&(a.disconnect(),a.observe(n)),r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:c}=t;return c&&(c.bounds?o.fitBounds(c.bounds,{...c.fitBoundsOptions,duration:0}):r._updateViewState(c,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=Ps}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||o0()||null,container:t,style:Bs(r)},i=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),n.gl){const m=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=m,n.gl)}const a=new this._MapClass(o);i.padding&&a.setPadding(i.padding),n.cursor&&(a.getCanvas().style.cursor=n.cursor),this._createShadowTransform(a);const c=a._render;a._render=m=>{this._inRender=!0,c.call(a,m),this._inRender=!1};const u=a._renderTaskQueue.run;a._renderTaskQueue.run=m=>{u.call(a._renderTaskQueue,m),this._onBeforeRepaint()},a.on("render",()=>this._onAfterRepaint());const d=a.fire;a.fire=this._fireEvent.bind(this,d),a.on("resize",()=>{this._renderTransform.resize(a.transform.width,a.transform.height)}),a.on("styledata",()=>{this._updateStyleComponents(this.props,{}),Rs(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const m in Vs)a.on(m,this._onPointerEvent);for(const m in Br)a.on(m,this._onCameraEvent);for(const m in Fs)a.on(m,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),un.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;!this._inRender&&t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_createShadowTransform(t){const n=e0(t.transform);t.painter.transform=n,this._renderTransform=n}_updateSize(t){const{viewState:n}=t;if(n){const r=this._map;if(n.width!==r.transform.width||n.height!==r.transform.height)return r.resize(),!0}return!1}_updateViewState(t,n){if(this._internalUpdate)return!1;const r=this._map,o=this._renderTransform,{zoom:i,pitch:a,bearing:c}=o,u=r.isMoving();u&&(o.cameraElevationReference="sea");const d=Ds(o,{...Is(r.transform),...t});if(u&&(o.cameraElevationReference="ground"),d&&n){const m=this._deferredEvents;m.move=!0,m.zoom||(m.zoom=i!==o.zoom),m.rotate||(m.rotate=c!==o.bearing),m.pitch||(m.pitch=a!==o.pitch)}return u||Ds(r.transform,t),d}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of n0)if(i in t&&!Ze(t[i],n[i])){o=!0;const a=r[`set${i[0].toUpperCase()}${i.slice(1)}`];a==null||a.call(r,t[i])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=Ps,styleDiffing:o=!0}=t,i={diff:o};return"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(Bs(r),i),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Ze(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Ze(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Ze(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){var r,o;const i=this._map;let a=!1;for(const c of r0){const u=(r=t[c])!==null&&r!==void 0?r:!0,d=(o=n[c])!==null&&o!==void 0?o:!0;Ze(u,d)||(a=!0,u?i[c].enable(u):i[c].disable())}return a}_queryRenderedFeatures(t){const n=this._map,r=n.transform,{interactiveLayerIds:o=[]}=this.props;try{return n.transform=this._renderTransform,n.queryRenderedFeatures(t,{layers:o.filter(n.getLayer.bind(n))})}catch{return[]}finally{n.transform=r}}_updateHover(t){var n;const{props:r}=this;if(r.interactiveLayerIds&&(r.onMouseMove||r.onMouseEnter||r.onMouseLeave)){const i=t.type,a=((n=this._hoveredFeatures)===null||n===void 0?void 0:n.length)>0,c=this._queryRenderedFeatures(t.point),u=c.length>0;!u&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=c,u&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=i}else this._hoveredFeatures=null}_fireEvent(t,n,r){const o=this._map,i=o.transform,a=typeof n=="string"?n:n.type;return a==="move"&&this._updateViewState(this.props,!1),a in Br&&(typeof n=="object"&&(n.viewState=Is(i)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,n,r),o.transform=i,o):(t.call(o,n,r),o)}_onBeforeRepaint(){const t=this._map;this._internalUpdate=!0;for(const r in this._deferredEvents)this._deferredEvents[r]&&t.fire(r);this._internalUpdate=!1;const n=this._map.transform;t.transform=this._renderTransform,this._onAfterRepaint=()=>{Rs(this._renderTransform,n),t.transform=n}}}un.savedMaps=[];function o0(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const s0=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function i0(e){if(!e)return null;const t=e.map,n={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:r=>{const o=t.transform;t.transform=e.transform;const i=t.project(r);return t.transform=o,i},unproject:r=>{const o=t.transform;t.transform=e.transform;const i=t.unproject(r);return t.transform=o,i},queryTerrainElevation:(r,o)=>{const i=t.transform;t.transform=e.transform;const a=t.queryTerrainElevation(r,o);return t.transform=i,a},queryRenderedFeatures:(r,o)=>{const i=t.transform;t.transform=e.transform;const a=t.queryRenderedFeatures(r,o);return t.transform=i,a}};for(const r of a0(t))!(r in n)&&!s0.includes(r)&&(n[r]=t[r].bind(t));return n}function a0(e){const t=new Set;let n=e;for(;n;){for(const r of Object.getOwnPropertyNames(n))r[0]!=="_"&&typeof e[r]=="function"&&r!=="fire"&&r!=="setEventedParent"&&t.add(r);n=Object.getPrototypeOf(n)}return Array.from(t)}const l0=typeof document<"u"?_.useLayoutEffect:_.useEffect,c0=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function u0(e,t){for(const r of c0)r in t&&(e[r]=t[r]);const{RTLTextPlugin:n="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"&&e.setRTLTextPlugin(n,r=>{r&&console.error(r)},!0)}const pn=te.createContext(null);function d0(e,t,n){const r=_.useContext(Qc),[o,i]=_.useState(null),a=_.useRef(),{current:c}=_.useRef({mapLib:null,map:null});_.useEffect(()=>{const m=e.mapLib;let h=!0,y;return Promise.resolve(m||n).then(g=>{if(!h)return;if(!g)throw new Error("Invalid mapLib");const b="Map"in g?g:g.default;if(!b.Map)throw new Error("Invalid mapLib");if(u0(b,e),!b.supported||b.supported(e))e.reuseMaps&&(y=un.reuse(e,a.current)),y||(y=new un(b.Map,e,a.current)),c.map=i0(y),c.mapLib=b,i(y),r==null||r.onMapMount(c.map,e.id);else throw new Error("Map is not supported by this browser")}).catch(g=>{const{onError:b}=e;b?b({type:"error",target:null,originalEvent:null,error:g}):console.error(g)}),()=>{h=!1,y&&(r==null||r.onMapUnmount(e.id),e.reuseMaps?y.recycle():y.destroy())}},[]),l0(()=>{o&&o.setProps(e)}),_.useImperativeHandle(t,()=>c.map,[o]);const u=_.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),d={height:"100%"};return te.createElement("div",{id:e.id,ref:a,style:u},o&&te.createElement(pn.Provider,{value:c},te.createElement("div",{"mapboxgl-children":"",style:d},e.children)))}const f0=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Ft(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!f0.test(r)?n[r]=`${o}px`:n[r]=o}}function p0(e,t){const{map:n,mapLib:r}=_.useContext(pn),o=_.useRef({props:e});o.current.props=e;const i=_.useMemo(()=>{let f=!1;te.Children.forEach(e.children,S=>{S&&(f=!0)});const x={...e,element:f?document.createElement("div"):null},w=new r.Marker(x);return w.setLngLat([e.longitude,e.latitude]),w.getElement().addEventListener("click",S=>{var N,v;(v=(N=o.current.props).onClick)===null||v===void 0||v.call(N,{type:"click",target:w,originalEvent:S})}),w.on("dragstart",S=>{var N,v;const C=S;C.lngLat=i.getLngLat(),(v=(N=o.current.props).onDragStart)===null||v===void 0||v.call(N,C)}),w.on("drag",S=>{var N,v;const C=S;C.lngLat=i.getLngLat(),(v=(N=o.current.props).onDrag)===null||v===void 0||v.call(N,C)}),w.on("dragend",S=>{var N,v;const C=S;C.lngLat=i.getLngLat(),(v=(N=o.current.props).onDragEnd)===null||v===void 0||v.call(N,C)}),w},[]);_.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:c,offset:u,style:d,draggable:m=!1,popup:h=null,rotation:y=0,rotationAlignment:g="auto",pitchAlignment:b="auto"}=e;return _.useEffect(()=>{Ft(i.getElement(),d)},[d]),_.useImperativeHandle(t,()=>i,[]),(i.getLngLat().lng!==a||i.getLngLat().lat!==c)&&i.setLngLat([a,c]),u&&!Jc(i.getOffset(),u)&&i.setOffset(u),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==y&&i.setRotation(y),i.getRotationAlignment()!==g&&i.setRotationAlignment(g),i.getPitchAlignment()!==b&&i.setPitchAlignment(b),i.getPopup()!==h&&i.setPopup(h),Bi.createPortal(e.children,i.getElement())}_.memo(_.forwardRef(p0));function zs(e){return new Set(e?e.trim().split(/\s+/):[])}function m0(e,t){const{map:n,mapLib:r}=_.useContext(pn),o=_.useMemo(()=>document.createElement("div"),[]),i=_.useRef({props:e});i.current.props=e;const a=_.useMemo(()=>{const c={...e},u=new r.Popup(c);return u.setLngLat([e.longitude,e.latitude]),u.once("open",d=>{var m,h;(h=(m=i.current.props).onOpen)===null||h===void 0||h.call(m,d)}),u},[]);if(_.useEffect(()=>{const c=u=>{var d,m;(m=(d=i.current.props).onClose)===null||m===void 0||m.call(d,u)};return a.on("close",c),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",c),a.isOpen()&&a.remove()}},[]),_.useEffect(()=>{Ft(a.getElement(),e.style)},[e.style]),_.useImperativeHandle(t,()=>a,[]),a.isOpen()&&((a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Ze(a.options.offset,e.offset)&&a.setOffset(e.offset),(a.options.anchor!==e.anchor||a.options.maxWidth!==e.maxWidth)&&(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth)),a.options.className!==e.className)){const c=zs(a.options.className),u=zs(e.className);for(const d of c)u.has(d)||a.removeClassName(d);for(const d of u)c.has(d)||a.addClassName(d);a.options.className=e.className}return Bi.createPortal(e.children,o)}const h0=_.memo(_.forwardRef(m0));function Nn(e,t,n,r){const o=_.useContext(pn),i=_.useMemo(()=>e(o),[]);return _.useEffect(()=>{const a=t,c=null,u=typeof t=="function"?t:null,{map:d}=o;return d.hasControl(i)||(d.addControl(i,a==null?void 0:a.position),c&&c(o)),()=>{u&&u(o),d.hasControl(i)&&d.removeControl(i)}},[]),i}function g0(e){const t=Nn(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return _.useEffect(()=>{Ft(t._container,e.style)},[e.style]),null}_.memo(g0);function y0(e){const t=Nn(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return _.useEffect(()=>{Ft(t._controlContainer,e.style)},[e.style]),null}_.memo(y0);function b0(e,t){const n=_.useRef({props:e}),r=Nn(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI;return i._setupUI=c=>{i._container.hasChildNodes()||a(c)},i.on("geolocate",c=>{var u,d;(d=(u=n.current.props).onGeolocate)===null||d===void 0||d.call(u,c)}),i.on("error",c=>{var u,d;(d=(u=n.current.props).onError)===null||d===void 0||d.call(u,c)}),i.on("outofmaxbounds",c=>{var u,d;(d=(u=n.current.props).onOutOfMaxBounds)===null||d===void 0||d.call(u,c)}),i.on("trackuserlocationstart",c=>{var u,d;(d=(u=n.current.props).onTrackUserLocationStart)===null||d===void 0||d.call(u,c)}),i.on("trackuserlocationend",c=>{var u,d;(d=(u=n.current.props).onTrackUserLocationEnd)===null||d===void 0||d.call(u,c)}),i},{position:e.position});return n.current.props=e,_.useImperativeHandle(t,()=>r,[]),_.useEffect(()=>{Ft(r._container,e.style)},[e.style]),null}_.memo(_.forwardRef(b0));function v0(e){const t=Nn(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return _.useEffect(()=>{Ft(t._container,e.style)},[e.style]),null}const x0=_.memo(v0);function C0(e){const t=Nn(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=_.useRef(e),r=n.current;n.current=e;const{style:o}=e;return e.maxWidth!==void 0&&e.maxWidth!==r.maxWidth&&(t.options.maxWidth=e.maxWidth),e.unit!==void 0&&e.unit!==r.unit&&t.setUnit(e.unit),_.useEffect(()=>{Ft(t._container,o)},[o]),null}_.memo(C0);function rr(e,t){if(!e)throw new Error(t)}function _0(e,t,n,r){if(rr(n.id===r.id,"layer id changed"),rr(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:c,maxzoom:u,beforeId:d}=n;if(d!==r.beforeId&&e.moveLayer(t,d),o!==r.layout){const m=r.layout||{};for(const h in o)Ze(o[h],m[h])||e.setLayoutProperty(t,h,o[h]);for(const h in m)o.hasOwnProperty(h)||e.setLayoutProperty(t,h,void 0)}if(i!==r.paint){const m=r.paint||{};for(const h in i)Ze(i[h],m[h])||e.setPaintProperty(t,h,i[h]);for(const h in m)i.hasOwnProperty(h)||e.setPaintProperty(t,h,void 0)}Ze(a,r.filter)||e.setFilter(t,a),(c!==r.minzoom||u!==r.maxzoom)&&e.setLayerZoomRange(t,c,u)}function w0(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){const r={...n,id:t};delete r.beforeId,e.addLayer(r,n.beforeId)}}let S0=0;function T0(e){const t=_.useContext(pn).map.getMap(),n=_.useRef(e),[,r]=_.useState(0),o=_.useMemo(()=>e.id||`jsx-layer-${S0++}`,[]);if(_.useEffect(()=>{if(t){const a=()=>r(c=>c+1);return t.on("styledata",a),a(),()=>{t.off("styledata",a),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}},[t]),t&&t.style&&t.getLayer(o))try{_0(t,o,e,n.current)}catch(a){console.warn(a)}else w0(t,o,e);return n.current=e,null}let k0=0;function j0(e,t,n){if(e.style&&e.style._loaded){const r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}function $0(e,t,n){rr(t.id===n.id,"source id changed"),rr(t.type===n.type,"source type changed");let r="",o=0;for(const a in t)a!=="children"&&a!=="id"&&!Ze(n[a],t[a])&&(r=a,o++);if(!o)return;const i=t.type;i==="geojson"?e.setData(t.data):i==="image"?e.updateImage({url:t.url,coordinates:t.coordinates}):"setCoordinates"in e&&o===1&&r==="coordinates"?e.setCoordinates(t.coordinates):"setUrl"in e&&r==="url"?e.setUrl(t.url):"setTiles"in e&&r==="tiles"?e.setTiles(t.tiles):console.warn(`Unable to update <Source> prop: ${r}`)}function N0(e){const t=_.useContext(pn).map.getMap(),n=_.useRef(e),[,r]=_.useState(0),o=_.useMemo(()=>e.id||`jsx-source-${k0++}`,[]);_.useEffect(()=>{if(t){const a=()=>setTimeout(()=>r(c=>c+1),0);return t.on("styledata",a),a(),()=>{var c;if(t.off("styledata",a),t.style&&t.style._loaded&&t.getSource(o)){const u=(c=t.getStyle())===null||c===void 0?void 0:c.layers;if(u)for(const d of u)d.source===o&&t.removeLayer(d.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?$0(i,e,n.current):i=j0(t,o,e),n.current=e,i&&te.Children.map(e.children,a=>a&&_.cloneElement(a,{source:o}))||null}const E0=import("mapbox-gl"),Hi=te.forwardRef(function(t,n){return d0(t,n,E0)}),Ki=h0,Zi=x0,Gi=T0,Yi=N0,O0="_mapContainer_84pkf_2",A0={mapContainer:O0};Va.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const No=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:c=[],popUp:u=!1,sources:d=[],layers:m=[]})=>{const h=_.useRef(),[y,g]=_.useState(null),b=Fa.useSelector(f=>f.mapState.showTexts);return _.useEffect(()=>{if(h.current){const f=h.current.getMap();f.getStyle().layers.map(w=>{w.type=="symbol"&&w.id!="professionals"&&(b?f.setLayoutProperty(w.id,"visibility","visible"):f.setLayoutProperty(w.id,"visibility","none"))})}},[b]),l.jsx("div",{className:`${A0.mapContainer}`,style:i,children:l.jsxs(Hi,{initialViewState:e,ref:h,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:c,children:[d.length&&d.map((f,x)=>l.jsx(Yi,{...f,children:m.length&&m.map((w,S)=>{if(w.sourceId==f.id)return l.jsx(Gi,{...w.layer,beforeId:o},S)})},x)),l.jsx(Zi,{position:"bottom-right",visualizePitch:!0}),u&&y&&l.jsx(Ki,{longitude:u.longitude,latitude:u.latitude,anchor:u.anchor,onClose:()=>g(null),children:u.content})]})})};No.displayName="MapboxMap";No.propTypes={initialView:s.shape({latitude:s.number.isRequired,longitude:s.number.isRequired,zoom:s.number.isRequired}),mapStyle:s.object,firstSymbolLayer:s.string,cssProps:s.object,style:s.object,maxZoom:s.number,minZoom:s.number,onClick:s.func,interactiveLayers:s.array,popUp:s.shape({latitude:s.number,longitude:s.number,anchor:s.string,content:s.element}),textsUrl:s.string,sources:s.arrayOf(s.shape({id:s.string,type:s.string,url:s.string,data:s.object})),layers:s.arrayOf(s.shape({sourceId:s.string,layer:s.shape({id:s.string,type:s.string,sourceLayer:s.string,minZoom:s.number,maxZoom:s.number,paint:s.object})}))};const M0="_mapContainer_1r3q4_3",L0={mapContainer:M0},R0="_FeaturePopUp_oymb1_2",I0="_title_oymb1_10",D0="_button_oymb1_15",Pr={FeaturePopUp:R0,title:I0,button:D0},Xi=({props:e})=>{const{t}=ie.useTranslation();return l.jsx("div",{className:Pr.FeaturePopUp,children:e.map((n,r)=>n.type!="button"?l.jsxs("p",{children:[l.jsxs("span",{className:Pr.title,children:[l.jsx(ie.Trans,{i18nKey:n.name,components:{sup:l.jsx("sup",{})},shouldUnescape:!0}),":"]}),n.type&&n.type=="html"?l.jsx("span",{dangerouslySetInnerHTML:{__html:n.value}}):isNaN(n.value)?l.jsx(l.Fragment,{children:t(n.value)}):l.jsxs(l.Fragment,{children:[n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]})]},r):l.jsx("button",{className:Pr.button,onClick:()=>n.onClick(),children:n.name},r))})};Xi.displayName="FeaturePopUp";const Eo=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:c=[],sources:u=[],layers:d=[],popUpParams:m,onClosePopUp:h,showTexts:y,hash:g=!1})=>{const b=_.useRef();return _.useEffect(()=>{if(b.current){const f=b.current.getMap();f.getStyle().layers.map(w=>{w.type=="symbol"&&w.id!="professionals"&&(y?f.setLayoutProperty(w.id,"visibility","visible"):f.setLayoutProperty(w.id,"visibility","none"))})}},[y]),_.useEffect(()=>{let f=new za.Protocol;return $r.addProtocol("pmtiles",f.tile),()=>{$r.removeProtocol("pmtiles")}},[]),l.jsx("div",{className:`${L0.mapContainer}`,style:i,children:l.jsxs(Hi,{mapLib:$r,initialViewState:e,ref:b,hash:g,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:c,children:[u.length&&u.map((f,x)=>l.jsx(Yi,{...f,children:d.length&&d.map((w,S)=>{if(w.sourceId==f.id)return l.jsx(Gi,{...w.layer,beforeId:o,filter:w.filters?w.filters:["all"],layout:{visibility:w.layer.visibility||"visible"}},S)})},x)),l.jsx(Zi,{position:"bottom-right",visualizePitch:!0}),m&&l.jsx(Ki,{longitude:m.lng,latitude:m.lat,onClose:h,children:l.jsx(Xi,{props:m.props})})]})})};Eo.displayName="MaplibreMap";Eo.propTypes={initialView:s.shape({latitude:s.number.isRequired,longitude:s.number.isRequired,zoom:s.number.isRequired}),mapStyle:s.string,firstSymbolLayer:s.string,cssProps:s.object,style:s.object,maxZoom:s.number,minZoom:s.number,onClick:s.func,interactiveLayers:s.array,popUp:s.bool,sources:s.arrayOf(s.shape({id:s.string,type:s.string,url:s.string,data:s.object})),layers:s.arrayOf(s.shape({sourceId:s.string,layer:s.shape({id:s.string,type:s.string,sourceLayer:s.string,minzoom:s.number,maxzoom:s.number,paint:s.object,visibility:s.string}),filters:s.array})),showTexts:s.bool,popUpParams:s.object,onClosePopUp:s.func};const B0="_sectionBar_yf2vy_2",P0="_leftContent_yf2vy_14",V0="_textContainer_yf2vy_20",F0="_title_yf2vy_27",z0="_subtitle_yf2vy_33",q0="_rightContent_yf2vy_38",Mt={sectionBar:B0,leftContent:P0,textContainer:V0,title:F0,subtitle:z0,rightContent:q0},Oo=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o,width:i,titleColor:a="#605b56",subTitleColor:c="#605b56",borderTop:u=!1})=>{const{t:d}=ie.useTranslation();return l.jsxs("div",{className:Mt.sectionBar,style:{width:i&&i,borderTop:u?"1px solid #000":"0px"},children:[l.jsxs("div",{className:Mt.leftContent,children:[e&&l.jsx("img",{src:e,alt:"Icono",className:Mt.icon}),l.jsxs("div",{className:Mt.textContainer,children:[l.jsx("div",{className:Mt.title,style:{color:a},children:d(t)}),n&&l.jsx("div",{className:Mt.subtitle,style:{color:c},children:n})]})]}),l.jsx("div",{className:Mt.rightContent,children:r})]})};Oo.displayName="SectionBar";Oo.propTypes={leftIcon:s.string,title:s.string.isRequired,subtitle:s.string,rightContent:s.node,mainColor:s.string,width:s.oneOfType([s.string,s.number]),borderTop:s.bool};const W0=qa.createSlice({name:"mapSlice",initialState:{showTexts:!0,sliderSelectedYear:2025,activeIndicatorKey:0,activeIndicatorType:"cat",activeIndicatorUnit:null},reducers:{setShowTexts:(e,t)=>{e.showTexts=t.payload},setYear:(e,t)=>{e.sliderSelectedYear=t.payload},setActiveIndicatorKey:(e,t)=>{e.activeIndicatorKey=t.payload},setActiveIndicatorType:(e,t)=>{e.activeIndicatorType=t.payload},setActiveIndicatorUnit:(e,t)=>{e.activeIndicatorUnit=t.payload}}}),{setShowTexts:Sm,setYear:Tm,setActiveIndicatorKey:km,setActiveIndicatorType:jm,setActiveIndicatorUnit:$m}=W0.actions,U0="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",H0="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";function Qi(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Qi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Tt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Qi(e))&&(r&&(r+=" "),r+=t);return r}function qs(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function K0(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",c=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(a+=(c===!0?"":" ")+t(d),c=!1,n&&n[d]&&(a+=" "+n[d]))}r[o]=a}return r}const Z0=te.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const G0=()=>te.useContext(Z0)??!1;function Ji(...e){const t=te.useRef(void 0),n=te.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,c=a(r);return typeof c=="function"?c:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return te.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function kn(e){return typeof e=="string"}function Y0(e,t,n){return e===void 0||kn(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Qn(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Ws(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function X0(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const g=Tt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},f={...n,...o,...r};return g.length>0&&(f.className=g),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=Qn({...o,...r}),c=Ws(r),u=Ws(o),d=t(a),m=Tt(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),h={...d==null?void 0:d.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},y={...d,...n,...u,...c};return m.length>0&&(y.className=m),Object.keys(h).length>0&&(y.style=h),{props:y,internalRef:d.ref}}function Q0(e,t,n){return typeof e=="function"?e(t,n):e}function _t(e){var h;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Q0(n,r),{props:c,internalRef:u}=X0({...i,externalSlotProps:a}),d=Ji(u,a==null?void 0:a.ref,(h=e.additionalProps)==null?void 0:h.ref);return Y0(t,{...c,ref:d},r)}function Jn(e){return e&&e.ownerDocument||document}function J0(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=te.useRef(t!==void 0),[a,c]=te.useState(n),u=i?t:a;if(process.env.NODE_ENV!=="production"){te.useEffect(()=>{i!==(t!==void 0)&&console.error([`MUI: A component is changing the ${i?"":"un"}controlled ${o} state of ${r} to be ${i?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
24
|
+
`))},[o,r,t]);const{current:m}=te.useRef(n);te.useEffect(()=>{!i&&JSON.stringify(n)!==JSON.stringify(m)&&console.error([`MUI: A component is changing the default ${o} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
25
|
+
`))},[JSON.stringify(n)])}const d=te.useCallback(m=>{i||c(m)},[]);return[u,d]}const ea=typeof window<"u"?te.useLayoutEffect:te.useEffect;function Vr(e){const t=te.useRef(e);return ea(()=>{t.current=e}),te.useRef((...n)=>(0,t.current)(...n)).current}function Us(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
26
|
+
`))}return!1}const eu={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function an(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function tu(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const nu=2;function Xt(e,t,n,r,o){return n===1?Math.min(e+t,o):Math.max(e-t,r)}function ta(e,t){return e-t}function Hs(e,t){const{index:n}=e.reduce((r,o,i)=>{const a=Math.abs(t-o);return r===null||a<r.distance||a===r.distance?{distance:a,index:i}:r},null)??{};return n}function zn(e,t){if(t.current!==void 0&&e.changedTouches){const n=e;for(let r=0;r<n.changedTouches.length;r+=1){const o=n.changedTouches[r];if(o.identifier===t.current)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function or(e,t,n){return(e-t)*100/(n-t)}function ru(e,t,n){return(n-t)*e+t}function ou(e){if(Math.abs(e)<1){const n=e.toExponential().split("e-"),r=n[0].split(".")[1];return(r?r.length:0)+parseInt(n[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}function su(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(ou(t)))}function Ks({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(ta)}function qn({sliderRef:e,activeIndex:t,setActive:n}){var o,i,a;const r=Jn(e.current);(!((o=e.current)!=null&&o.contains(r.activeElement))||Number((i=r==null?void 0:r.activeElement)==null?void 0:i.getAttribute("data-index"))!==t)&&((a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function Wn(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?tu(e,t):!1}const iu={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},au=e=>e;let Un;function Zs(){return Un===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Un=CSS.supports("touch-action","none"):Un=!0),Un}function lu(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:c=100,min:u=0,name:d,onChange:m,onChangeCommitted:h,orientation:y="horizontal",rootRef:g,scale:b=au,step:f=1,shiftStep:x=10,tabIndex:w,value:S}=e,N=te.useRef(void 0),[v,C]=te.useState(-1),[T,O]=te.useState(-1),[j,$]=te.useState(!1),L=te.useRef(0),R=te.useRef(null),[p,E]=J0({controlled:S,default:n??u,name:"Slider"}),k=m&&((P,U,Y)=>{const oe=P.nativeEvent||P,ce=new oe.constructor(oe.type,oe);Object.defineProperty(ce,"target",{writable:!0,value:{value:U,name:d}}),R.current=U,m(ce,U,Y)}),D=Array.isArray(p);let z=D?p.slice().sort(ta):[p];z=z.map(P=>P==null?u:an(P,u,c));const B=a===!0&&f!==null?[...Array(Math.floor((c-u)/f)+1)].map((P,U)=>({value:u+f*U})):a||[],F=B.map(P=>P.value),[Z,M]=te.useState(-1),I=te.useRef(null),J=Ji(g,I),H=P=>U=>{var oe;const Y=Number(U.currentTarget.getAttribute("data-index"));Us(U.target)&&M(Y),O(Y),(oe=P==null?void 0:P.onFocus)==null||oe.call(P,U)},q=P=>U=>{var Y;Us(U.target)||M(-1),O(-1),(Y=P==null?void 0:P.onBlur)==null||Y.call(P,U)},G=(P,U)=>{const Y=Number(P.currentTarget.getAttribute("data-index")),oe=z[Y],ce=F.indexOf(oe);let X=U;if(B&&f==null){const fe=F[F.length-1];X>=fe?X=fe:X<=F[0]?X=F[0]:X=X<oe?F[ce-1]:F[ce+1]}if(X=an(X,u,c),D){o&&(X=an(X,z[Y-1]||-1/0,z[Y+1]||1/0));const fe=X;X=Ks({values:z,newValue:X,index:Y});let Ie=Y;o||(Ie=X.indexOf(fe)),qn({sliderRef:I,activeIndex:Ie})}E(X),M(Y),k&&!Wn(X,p)&&k(P,X,Y),h&&h(P,R.current??X)},ne=P=>U=>{var Y;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(U.key)){U.preventDefault();const oe=Number(U.currentTarget.getAttribute("data-index")),ce=z[oe];let X=null;if(f!=null){const fe=U.shiftKey?x:f;switch(U.key){case"ArrowUp":X=Xt(ce,fe,1,u,c);break;case"ArrowRight":X=Xt(ce,fe,i?-1:1,u,c);break;case"ArrowDown":X=Xt(ce,fe,-1,u,c);break;case"ArrowLeft":X=Xt(ce,fe,i?1:-1,u,c);break;case"PageUp":X=Xt(ce,x,1,u,c);break;case"PageDown":X=Xt(ce,x,-1,u,c);break;case"Home":X=u;break;case"End":X=c;break}}else if(B){const fe=F[F.length-1],Ie=F.indexOf(ce),ke=[i?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],De=[i?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];ke.includes(U.key)?Ie===0?X=F[0]:X=F[Ie-1]:De.includes(U.key)&&(Ie===F.length-1?X=fe:X=F[Ie+1])}X!=null&&G(U,X)}(Y=P==null?void 0:P.onKeyDown)==null||Y.call(P,U)};ea(()=>{var P;r&&I.current.contains(document.activeElement)&&((P=document.activeElement)==null||P.blur())},[r]),r&&v!==-1&&C(-1),r&&Z!==-1&&M(-1);const re=P=>U=>{var Y;(Y=P.onChange)==null||Y.call(P,U),G(U,U.target.valueAsNumber)},Q=te.useRef(void 0);let se=y;i&&y==="horizontal"&&(se+="-reverse");const K=({finger:P,move:U=!1})=>{const{current:Y}=I,{width:oe,height:ce,bottom:X,left:fe}=Y.getBoundingClientRect();let Ie;se.startsWith("vertical")?Ie=(X-P.y)/ce:Ie=(P.x-fe)/oe,se.includes("-reverse")&&(Ie=1-Ie);let ke;if(ke=ru(Ie,u,c),f)ke=su(ke,f,u);else{const je=Hs(F,ke);ke=F[je]}ke=an(ke,u,c);let De=0;if(D){U?De=Q.current:De=Hs(z,ke),o&&(ke=an(ke,z[De-1]||-1/0,z[De+1]||1/0));const je=ke;ke=Ks({values:z,newValue:ke,index:De}),o&&U||(De=ke.indexOf(je),Q.current=De)}return{newValue:ke,activeIndex:De}},le=Vr(P=>{const U=zn(P,N);if(!U)return;if(L.current+=1,P.type==="mousemove"&&P.buttons===0){V(P);return}const{newValue:Y,activeIndex:oe}=K({finger:U,move:!0});qn({sliderRef:I,activeIndex:oe,setActive:C}),E(Y),!j&&L.current>nu&&$(!0),k&&!Wn(Y,p)&&k(P,Y,oe)}),V=Vr(P=>{const U=zn(P,N);if($(!1),!U)return;const{newValue:Y}=K({finger:U,move:!0});C(-1),P.type==="touchend"&&O(-1),h&&h(P,R.current??Y),N.current=void 0,Ve()}),de=Vr(P=>{if(r)return;Zs()||P.preventDefault();const U=P.changedTouches[0];U!=null&&(N.current=U.identifier);const Y=zn(P,N);if(Y!==!1){const{newValue:ce,activeIndex:X}=K({finger:Y});qn({sliderRef:I,activeIndex:X,setActive:C}),E(ce),k&&!Wn(ce,p)&&k(P,ce,X)}L.current=0;const oe=Jn(I.current);oe.addEventListener("touchmove",le,{passive:!0}),oe.addEventListener("touchend",V,{passive:!0})}),Ve=te.useCallback(()=>{const P=Jn(I.current);P.removeEventListener("mousemove",le),P.removeEventListener("mouseup",V),P.removeEventListener("touchmove",le),P.removeEventListener("touchend",V)},[V,le]);te.useEffect(()=>{const{current:P}=I;return P.addEventListener("touchstart",de,{passive:Zs()}),()=>{P.removeEventListener("touchstart",de),Ve()}},[Ve,de]),te.useEffect(()=>{r&&Ve()},[r,Ve]);const ct=P=>U=>{var ce;if((ce=P.onMouseDown)==null||ce.call(P,U),r||U.defaultPrevented||U.button!==0)return;U.preventDefault();const Y=zn(U,N);if(Y!==!1){const{newValue:X,activeIndex:fe}=K({finger:Y});qn({sliderRef:I,activeIndex:fe,setActive:C}),E(X),k&&!Wn(X,p)&&k(U,X,fe)}L.current=0;const oe=Jn(I.current);oe.addEventListener("mousemove",le,{passive:!0}),oe.addEventListener("mouseup",V)},$t=or(D?z[0]:u,u,c),Me=or(z[z.length-1],u,c)-$t,Re=(P={})=>{const U=Qn(P),Y={onMouseDown:ct(U||{})},oe={...U,...Y};return{...P,ref:J,...oe}},Le=P=>U=>{var oe;(oe=P.onMouseOver)==null||oe.call(P,U);const Y=Number(U.currentTarget.getAttribute("data-index"));O(Y)},ut=P=>U=>{var Y;(Y=P.onMouseLeave)==null||Y.call(P,U),O(-1)},bt=(P={})=>{const U=Qn(P),Y={onMouseOver:Le(U||{}),onMouseLeave:ut(U||{})};return{...P,...U,...Y}},Wt=P=>({pointerEvents:v!==-1&&v!==P?"none":void 0});let Ue;return y==="vertical"&&(Ue=i?"vertical-rl":"vertical-lr"),{active:v,axis:se,axisProps:iu,dragging:j,focusedThumbIndex:Z,getHiddenInputProps:(P={})=>{const U=Qn(P),Y={onChange:re(U||{}),onFocus:H(U||{}),onBlur:q(U||{}),onKeyDown:ne(U||{})},oe={...U,...Y};return{tabIndex:w,"aria-labelledby":t,"aria-orientation":y,"aria-valuemax":b(c),"aria-valuemin":b(u),name:d,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":e.step??void 0,disabled:r,...P,...oe,style:{...eu,direction:i?"rtl":"ltr",width:"100%",height:"100%",writingMode:Ue}}},getRootProps:Re,getThumbProps:bt,marks:B,open:T,range:D,rootRef:J,trackLeap:Me,trackOffset:$t,values:z,getThumbStyle:Wt}}function Pt(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ot(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Pt(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Hn={exports:{}},ye={};/**
|
|
27
27
|
* @license React
|
|
28
28
|
* react-is.production.js
|
|
29
29
|
*
|
|
@@ -31,7 +31,7 @@ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var P=oe(ne,re,B,G,X+"."
|
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/var Gs;function
|
|
34
|
+
*/var Gs;function cu(){if(Gs)return ye;Gs=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),y=Symbol.for("react.view_transition"),g=Symbol.for("react.client.reference");function b(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case e:switch(f=f.type,f){case n:case o:case r:case u:case d:case y:return f;default:switch(f=f&&f.$$typeof,f){case a:case c:case h:case m:return f;case i:return f;default:return x}}case t:return x}}}return ye.ContextConsumer=i,ye.ContextProvider=a,ye.Element=e,ye.ForwardRef=c,ye.Fragment=n,ye.Lazy=h,ye.Memo=m,ye.Portal=t,ye.Profiler=o,ye.StrictMode=r,ye.Suspense=u,ye.SuspenseList=d,ye.isContextConsumer=function(f){return b(f)===i},ye.isContextProvider=function(f){return b(f)===a},ye.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},ye.isForwardRef=function(f){return b(f)===c},ye.isFragment=function(f){return b(f)===n},ye.isLazy=function(f){return b(f)===h},ye.isMemo=function(f){return b(f)===m},ye.isPortal=function(f){return b(f)===t},ye.isProfiler=function(f){return b(f)===o},ye.isStrictMode=function(f){return b(f)===r},ye.isSuspense=function(f){return b(f)===u},ye.isSuspenseList=function(f){return b(f)===d},ye.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===u||f===d||typeof f=="object"&&f!==null&&(f.$$typeof===h||f.$$typeof===m||f.$$typeof===a||f.$$typeof===i||f.$$typeof===c||f.$$typeof===g||f.getModuleId!==void 0)},ye.typeOf=b,ye}var be={};/**
|
|
35
35
|
* @license React
|
|
36
36
|
* react-is.development.js
|
|
37
37
|
*
|
|
@@ -39,23 +39,23 @@ Valid keys: `+JSON.stringify(Object.keys(M),null," "));var P=oe(ne,re,B,G,X+"."
|
|
|
39
39
|
*
|
|
40
40
|
* This source code is licensed under the MIT license found in the
|
|
41
41
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var
|
|
43
|
-
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function
|
|
42
|
+
*/var Ys;function uu(){return Ys||(Ys=1,process.env.NODE_ENV!=="production"&&function(){function e(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case t:switch(f=f.type,f){case r:case i:case o:case d:case m:case g:return f;default:switch(f=f&&f.$$typeof,f){case c:case u:case y:case h:return f;case a:return f;default:return x}}case n:return x}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");be.ContextConsumer=a,be.ContextProvider=c,be.Element=t,be.ForwardRef=u,be.Fragment=r,be.Lazy=y,be.Memo=h,be.Portal=n,be.Profiler=i,be.StrictMode=o,be.Suspense=d,be.SuspenseList=m,be.isContextConsumer=function(f){return e(f)===a},be.isContextProvider=function(f){return e(f)===c},be.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},be.isForwardRef=function(f){return e(f)===u},be.isFragment=function(f){return e(f)===r},be.isLazy=function(f){return e(f)===y},be.isMemo=function(f){return e(f)===h},be.isPortal=function(f){return e(f)===n},be.isProfiler=function(f){return e(f)===i},be.isStrictMode=function(f){return e(f)===o},be.isSuspense=function(f){return e(f)===d},be.isSuspenseList=function(f){return e(f)===m},be.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===o||f===d||f===m||typeof f=="object"&&f!==null&&(f.$$typeof===y||f.$$typeof===h||f.$$typeof===c||f.$$typeof===a||f.$$typeof===u||f.$$typeof===b||f.getModuleId!==void 0)},be.typeOf=e}()),be}var Xs;function du(){return Xs||(Xs=1,process.env.NODE_ENV==="production"?Hn.exports=cu():Hn.exports=uu()),Hn.exports}var sr=du();function mt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function na(e){if(te.isValidElement(e)||sr.isValidElementType(e)||!mt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=na(e[n])}),t}function Ye(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return mt(e)&&mt(t)&&Object.keys(t).forEach(o=>{te.isValidElement(t[o])||sr.isValidElementType(t[o])?r[o]=t[o]:mt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&mt(e[o])?r[o]=Ye(e[o],t[o],n):n.clone?r[o]=mt(t[o])?na(t[o]):t[o]:r[o]=t[o]}),r}function jn(e,t){return t?Ye(e,t,{clone:!1}):e}const jt=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Qs(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,c;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((c=o.match(i))==null?void 0:c[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function fu(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function pu(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(process.env.NODE_ENV!=="production")throw new Error(`MUI: The provided shorthand ${`(${t})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
|
|
43
|
+
For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`);return null}const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function mu(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...c)=>t(e.breakpoints.up(...c),a),i.down=(...c)=>t(e.breakpoints.down(...c),a),i.between=(...c)=>t(e.breakpoints.between(...c),a),i.only=(...c)=>t(e.breakpoints.only(...c),a),i.not=(...c)=>{const u=t(e.breakpoints.not(...c),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const pr={xs:0,sm:600,md:900,lg:1200,xl:1536},Js={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${pr[e]}px)`},hu={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:pr[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function gt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Js;return t.reduce((a,c,u)=>(a[i.up(i.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Js;return Object.keys(t).reduce((a,c)=>{if(fu(i.keys,c)){const u=pu(r.containerQueries?r:hu,c);u&&(a[u]=n(t[c],c))}else if(Object.keys(i.values||pr).includes(c)){const u=i.up(c);a[u]=n(t[c],c)}else{const u=c;a[u]=t[u]}return a},{})}return n(t)}function gu(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function ei(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function mr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function ir(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=mr(e,n)||r,t&&(o=t(o,r,e)),o}function Ne(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const c=a[t],u=a.theme,d=mr(u,r)||{};return gt(a,c,h=>{let y=ir(d,o,h);return h===y&&typeof h=="string"&&(y=ir(d,o,`${t}${h==="default"?"":ot(h)}`,h)),n===!1?y:{[n]:y}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:jt}:{},i.filterProps=[t],i}function yu(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const bu={m:"margin",p:"padding"},vu={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ti={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xu=yu(e=>{if(e.length>2)if(ti[e])e=ti[e];else return[e];const[t,n]=e.split(""),r=bu[t],o=vu[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),hr=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],gr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Cu=[...hr,...gr];function En(e,t,n,r){const o=mr(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i):Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i);process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>o.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${a} > ${o.length-1}, you need to add the missing values.`].join(`
|
|
44
44
|
`)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
|
|
45
45
|
`)));const c=o[a];return i>=0?c:typeof c=="number"?-c:typeof c=="string"&&c.startsWith("var(")?`calc(-1 * ${c})`:`-${c}`}:typeof o=="function"?o:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${o}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
46
|
-
`)),()=>{})}function Oo(e){return Nn(e,"spacing",8,"spacing")}function En(e,t){return typeof t=="string"||t==null?t:e(t)}function xu(e,t){return n=>e.reduce((r,o)=>(r[o]=En(t,n),r),{})}function Cu(e,t,n,r){if(!t.includes(n))return null;const o=bu(n),i=xu(o,r),a=e[n];return ht(e,a,i)}function ta(e,t){const n=Oo(e.theme);return Object.keys(e).map(r=>Cu(e,t,r,n)).reduce(kn,{})}function Te(e){return ta(e,mr)}Te.propTypes=process.env.NODE_ENV!=="production"?mr.reduce((e,t)=>(e[t]=$t,e),{}):{};Te.filterProps=mr;function ke(e){return ta(e,hr)}ke.propTypes=process.env.NODE_ENV!=="production"?hr.reduce((e,t)=>(e[t]=$t,e),{}):{};ke.filterProps=hr;process.env.NODE_ENV!=="production"&&vu.reduce((e,t)=>(e[t]=$t,e),{});function gr(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?kn(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Ye(e){return typeof e!="number"?e:`${e}px solid`}function Qe(e,t){return $e({prop:e,themeKey:"borders",transform:t})}const _u=Qe("border",Ye),Su=Qe("borderTop",Ye),wu=Qe("borderRight",Ye),Tu=Qe("borderBottom",Ye),ku=Qe("borderLeft",Ye),ju=Qe("borderColor"),$u=Qe("borderTopColor"),Nu=Qe("borderRightColor"),Eu=Qe("borderBottomColor"),Au=Qe("borderLeftColor"),Ou=Qe("outline",Ye),Mu=Qe("outlineColor"),yr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Nn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:En(t,r)});return ht(e,e.borderRadius,n)}return null};yr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:$t}:{};yr.filterProps=["borderRadius"];gr(_u,Su,wu,Tu,ku,ju,$u,Nu,Eu,Au,yr,Ou,Mu);const br=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Nn(e.theme,"spacing",8,"gap"),n=r=>({gap:En(t,r)});return ht(e,e.gap,n)}return null};br.propTypes=process.env.NODE_ENV!=="production"?{gap:$t}:{};br.filterProps=["gap"];const vr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Nn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:En(t,r)});return ht(e,e.columnGap,n)}return null};vr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:$t}:{};vr.filterProps=["columnGap"];const xr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Nn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:En(t,r)});return ht(e,e.rowGap,n)}return null};xr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:$t}:{};xr.filterProps=["rowGap"];const Lu=$e({prop:"gridColumn"}),Ru=$e({prop:"gridRow"}),Iu=$e({prop:"gridAutoFlow"}),Du=$e({prop:"gridAutoColumns"}),Bu=$e({prop:"gridAutoRows"}),Pu=$e({prop:"gridTemplateColumns"}),Fu=$e({prop:"gridTemplateRows"}),Vu=$e({prop:"gridTemplateAreas"}),zu=$e({prop:"gridArea"});gr(br,vr,xr,Lu,Ru,Iu,Du,Bu,Pu,Fu,Vu,zu);function un(e,t){return t==="grey"?t:e}const qu=$e({prop:"color",themeKey:"palette",transform:un}),Wu=$e({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:un}),Uu=$e({prop:"backgroundColor",themeKey:"palette",transform:un});gr(qu,Wu,Uu);function Ke(e){return e<=1&&e!==0?`${e*100}%`:e}const Hu=$e({prop:"width",transform:Ke}),Mo=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,c,u;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||fr[n];return r?((u=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ke(n)}};return ht(e,e.maxWidth,t)}return null};Mo.filterProps=["maxWidth"];const Ku=$e({prop:"minWidth",transform:Ke}),Gu=$e({prop:"height",transform:Ke}),Zu=$e({prop:"maxHeight",transform:Ke}),Yu=$e({prop:"minHeight",transform:Ke});$e({prop:"size",cssProperty:"width",transform:Ke});$e({prop:"size",cssProperty:"height",transform:Ke});const Xu=$e({prop:"boxSizing"});gr(Hu,Mo,Ku,Gu,Zu,Yu,Xu);const Cr={border:{themeKey:"borders",transform:Ye},borderTop:{themeKey:"borders",transform:Ye},borderRight:{themeKey:"borders",transform:Ye},borderBottom:{themeKey:"borders",transform:Ye},borderLeft:{themeKey:"borders",transform:Ye},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Ye},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:yr},color:{themeKey:"palette",transform:un},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:un},backgroundColor:{themeKey:"palette",transform:un},p:{style:ke},pt:{style:ke},pr:{style:ke},pb:{style:ke},pl:{style:ke},px:{style:ke},py:{style:ke},padding:{style:ke},paddingTop:{style:ke},paddingRight:{style:ke},paddingBottom:{style:ke},paddingLeft:{style:ke},paddingX:{style:ke},paddingY:{style:ke},paddingInline:{style:ke},paddingInlineStart:{style:ke},paddingInlineEnd:{style:ke},paddingBlock:{style:ke},paddingBlockStart:{style:ke},paddingBlockEnd:{style:ke},m:{style:Te},mt:{style:Te},mr:{style:Te},mb:{style:Te},ml:{style:Te},mx:{style:Te},my:{style:Te},margin:{style:Te},marginTop:{style:Te},marginRight:{style:Te},marginBottom:{style:Te},marginLeft:{style:Te},marginX:{style:Te},marginY:{style:Te},marginInline:{style:Te},marginInlineStart:{style:Te},marginInlineEnd:{style:Te},marginBlock:{style:Te},marginBlockStart:{style:Te},marginBlockEnd:{style:Te},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:br},rowGap:{style:xr},columnGap:{style:vr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ke},maxWidth:{style:Mo},minWidth:{transform:Ke},height:{transform:Ke},maxHeight:{transform:Ke},minHeight:{transform:Ke},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Qu(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Ju(e,t){return typeof e=="function"?e(t):e}function e2(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:m,style:h}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const y=pr(o,d)||{};return h?h(a):ht(a,r,b=>{let f=sr(y,m,b);return b===f&&typeof b=="string"&&(f=sr(y,m,`${n}${b==="default"?"":rt(b)}`,b)),u===!1?f:{[u]:f}})}function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??Cr;function c(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const m=mu(o.breakpoints),h=Object.keys(m);let y=m;return Object.keys(d).forEach(g=>{const b=Ju(d[g],o);if(b!=null)if(typeof b=="object")if(a[g])y=kn(y,e(g,b,o,a));else{const f=ht({theme:o},b,C=>({[g]:C}));Qu(f,b)?y[g]=t({sx:b,theme:o,nested:!0}):y=kn(y,f)}else y=kn(y,e(g,b,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Xs(o,Js(h,y))}:Xs(o,Js(h,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const fn=e2();fn.filterProps=["sx"];function t2(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var n2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function r2(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var o2=/[A-Z]|^ms/g,s2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,na=function(t){return t.charCodeAt(1)===45},ti=function(t){return t!=null&&typeof t!="boolean"},Vr=r2(function(e){return na(e)?e:e.replace(o2,"-$&").toLowerCase()}),ni=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(s2,function(r,o,i){return Tt={name:o,styles:i,next:Tt},o})}return n2[t]!==1&&!na(t)&&typeof n=="number"&&n!==0?n+"px":n};function ir(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return Tt={name:o.name,styles:o.styles,next:Tt},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Tt={name:a.name,styles:a.styles,next:Tt},a=a.next;var c=i.styles+";";return c}return i2(e,t,n)}}var u=n;return u}function i2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ir(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var c=a;ti(c)&&(r+=Vr(i)+":"+ni(i,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var u=0;u<a.length;u++)ti(a[u])&&(r+=Vr(i)+":"+ni(i,a[u])+";");else{var d=ir(e,t,a);switch(i){case"animation":case"animationName":{r+=Vr(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var ri=/label:\s*([^\s;{]+)\s*(;|$)/g,Tt;function a2(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";Tt=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=ir(n,t,i);else{var a=i;o+=a[0]}for(var c=1;c<e.length;c++)if(o+=ir(n,t,e[c]),r){var u=i;o+=u[c]}ri.lastIndex=0;for(var d="",m;(m=ri.exec(o))!==null;)d+="-"+m[1];var h=t2(o)+d;return{name:h,styles:o,next:Tt}}/**
|
|
46
|
+
`)),()=>{})}function Ao(e){return En(e,"spacing",8,"spacing")}function On(e,t){return typeof t=="string"||t==null?t:e(t)}function _u(e,t){return n=>e.reduce((r,o)=>(r[o]=On(t,n),r),{})}function wu(e,t,n,r){if(!t.includes(n))return null;const o=xu(n),i=_u(o,r),a=e[n];return gt(e,a,i)}function ra(e,t){const n=Ao(e.theme);return Object.keys(e).map(r=>wu(e,t,r,n)).reduce(jn,{})}function Se(e){return ra(e,hr)}Se.propTypes=process.env.NODE_ENV!=="production"?hr.reduce((e,t)=>(e[t]=jt,e),{}):{};Se.filterProps=hr;function Te(e){return ra(e,gr)}Te.propTypes=process.env.NODE_ENV!=="production"?gr.reduce((e,t)=>(e[t]=jt,e),{}):{};Te.filterProps=gr;process.env.NODE_ENV!=="production"&&Cu.reduce((e,t)=>(e[t]=jt,e),{});function yr(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?jn(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Je(e){return typeof e!="number"?e:`${e}px solid`}function tt(e,t){return Ne({prop:e,themeKey:"borders",transform:t})}const Su=tt("border",Je),Tu=tt("borderTop",Je),ku=tt("borderRight",Je),ju=tt("borderBottom",Je),$u=tt("borderLeft",Je),Nu=tt("borderColor"),Eu=tt("borderTopColor"),Ou=tt("borderRightColor"),Au=tt("borderBottomColor"),Mu=tt("borderLeftColor"),Lu=tt("outline",Je),Ru=tt("outlineColor"),br=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=En(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:On(t,r)});return gt(e,e.borderRadius,n)}return null};br.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:jt}:{};br.filterProps=["borderRadius"];yr(Su,Tu,ku,ju,$u,Nu,Eu,Ou,Au,Mu,br,Lu,Ru);const vr=e=>{if(e.gap!==void 0&&e.gap!==null){const t=En(e.theme,"spacing",8,"gap"),n=r=>({gap:On(t,r)});return gt(e,e.gap,n)}return null};vr.propTypes=process.env.NODE_ENV!=="production"?{gap:jt}:{};vr.filterProps=["gap"];const xr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=En(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:On(t,r)});return gt(e,e.columnGap,n)}return null};xr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:jt}:{};xr.filterProps=["columnGap"];const Cr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=En(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:On(t,r)});return gt(e,e.rowGap,n)}return null};Cr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:jt}:{};Cr.filterProps=["rowGap"];const Iu=Ne({prop:"gridColumn"}),Du=Ne({prop:"gridRow"}),Bu=Ne({prop:"gridAutoFlow"}),Pu=Ne({prop:"gridAutoColumns"}),Vu=Ne({prop:"gridAutoRows"}),Fu=Ne({prop:"gridTemplateColumns"}),zu=Ne({prop:"gridTemplateRows"}),qu=Ne({prop:"gridTemplateAreas"}),Wu=Ne({prop:"gridArea"});yr(vr,xr,Cr,Iu,Du,Bu,Pu,Vu,Fu,zu,qu,Wu);function cn(e,t){return t==="grey"?t:e}const Uu=Ne({prop:"color",themeKey:"palette",transform:cn}),Hu=Ne({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:cn}),Ku=Ne({prop:"backgroundColor",themeKey:"palette",transform:cn});yr(Uu,Hu,Ku);function Ge(e){return e<=1&&e!==0?`${e*100}%`:e}const Zu=Ne({prop:"width",transform:Ge}),Mo=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,c,u;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||pr[n];return r?((u=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ge(n)}};return gt(e,e.maxWidth,t)}return null};Mo.filterProps=["maxWidth"];const Gu=Ne({prop:"minWidth",transform:Ge}),Yu=Ne({prop:"height",transform:Ge}),Xu=Ne({prop:"maxHeight",transform:Ge}),Qu=Ne({prop:"minHeight",transform:Ge});Ne({prop:"size",cssProperty:"width",transform:Ge});Ne({prop:"size",cssProperty:"height",transform:Ge});const Ju=Ne({prop:"boxSizing"});yr(Zu,Mo,Gu,Yu,Xu,Qu,Ju);const _r={border:{themeKey:"borders",transform:Je},borderTop:{themeKey:"borders",transform:Je},borderRight:{themeKey:"borders",transform:Je},borderBottom:{themeKey:"borders",transform:Je},borderLeft:{themeKey:"borders",transform:Je},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Je},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:br},color:{themeKey:"palette",transform:cn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:cn},backgroundColor:{themeKey:"palette",transform:cn},p:{style:Te},pt:{style:Te},pr:{style:Te},pb:{style:Te},pl:{style:Te},px:{style:Te},py:{style:Te},padding:{style:Te},paddingTop:{style:Te},paddingRight:{style:Te},paddingBottom:{style:Te},paddingLeft:{style:Te},paddingX:{style:Te},paddingY:{style:Te},paddingInline:{style:Te},paddingInlineStart:{style:Te},paddingInlineEnd:{style:Te},paddingBlock:{style:Te},paddingBlockStart:{style:Te},paddingBlockEnd:{style:Te},m:{style:Se},mt:{style:Se},mr:{style:Se},mb:{style:Se},ml:{style:Se},mx:{style:Se},my:{style:Se},margin:{style:Se},marginTop:{style:Se},marginRight:{style:Se},marginBottom:{style:Se},marginLeft:{style:Se},marginX:{style:Se},marginY:{style:Se},marginInline:{style:Se},marginInlineStart:{style:Se},marginInlineEnd:{style:Se},marginBlock:{style:Se},marginBlockStart:{style:Se},marginBlockEnd:{style:Se},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:vr},rowGap:{style:Cr},columnGap:{style:xr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ge},maxWidth:{style:Mo},minWidth:{transform:Ge},height:{transform:Ge},maxHeight:{transform:Ge},minHeight:{transform:Ge},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function e2(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function t2(e,t){return typeof e=="function"?e(t):e}function n2(){function e(n,r,o,i){const a={[n]:r,theme:o},c=i[n];if(!c)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:m,style:h}=c;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const y=mr(o,d)||{};return h?h(a):gt(a,r,b=>{let f=ir(y,m,b);return b===f&&typeof b=="string"&&(f=ir(y,m,`${n}${b==="default"?"":ot(b)}`,b)),u===!1?f:{[u]:f}})}function t(n){const{sx:r,theme:o={},nested:i}=n||{};if(!r)return null;const a=o.unstable_sxConfig??_r;function c(u){let d=u;if(typeof u=="function")d=u(o);else if(typeof u!="object")return u;if(!d)return null;const m=gu(o.breakpoints),h=Object.keys(m);let y=m;return Object.keys(d).forEach(g=>{const b=t2(d[g],o);if(b!=null)if(typeof b=="object")if(a[g])y=jn(y,e(g,b,o,a));else{const f=gt({theme:o},b,x=>({[g]:x}));e2(f,b)?y[g]=t({sx:b,theme:o,nested:!0}):y=jn(y,f)}else y=jn(y,e(g,b,o,a))}),!i&&o.modularCssLayers?{"@layer sx":Qs(o,ei(h,y))}:Qs(o,ei(h,y))}return Array.isArray(r)?r.map(c):c(r)}return t}const dn=n2();dn.filterProps=["sx"];function r2(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var o2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function s2(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var i2=/[A-Z]|^ms/g,a2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,oa=function(t){return t.charCodeAt(1)===45},ni=function(t){return t!=null&&typeof t!="boolean"},Fr=s2(function(e){return oa(e)?e:e.replace(i2,"-$&").toLowerCase()}),ri=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(a2,function(r,o,i){return St={name:o,styles:i,next:St},o})}return o2[t]!==1&&!oa(t)&&typeof n=="number"&&n!==0?n+"px":n};function ar(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return St={name:o.name,styles:o.styles,next:St},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)St={name:a.name,styles:a.styles,next:St},a=a.next;var c=i.styles+";";return c}return l2(e,t,n)}}var u=n;return u}function l2(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=ar(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var c=a;ni(c)&&(r+=Fr(i)+":"+ri(i,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&t==null)for(var u=0;u<a.length;u++)ni(a[u])&&(r+=Fr(i)+":"+ri(i,a[u])+";");else{var d=ar(e,t,a);switch(i){case"animation":case"animationName":{r+=Fr(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var oi=/label:\s*([^\s;{]+)\s*(;|$)/g,St;function c2(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";St=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=ar(n,t,i);else{var a=i;o+=a[0]}for(var c=1;c<e.length;c++)if(o+=ar(n,t,e[c]),r){var u=i;o+=u[c]}oi.lastIndex=0;for(var d="",m;(m=oi.exec(o))!==null;)d+="-"+m[1];var h=r2(o)+d;return{name:h,styles:o,next:St}}/**
|
|
47
47
|
* @mui/styled-engine v7.3.10
|
|
48
48
|
*
|
|
49
49
|
* @license MIT
|
|
50
50
|
* This source code is licensed under the MIT license found in the
|
|
51
51
|
* LICENSE file in the root directory of this source tree.
|
|
52
|
-
*/function
|
|
53
|
-
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function
|
|
54
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:
|
|
55
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:
|
|
56
|
-
`))}return
|
|
57
|
-
The color object needs to have a \`main\` property or a \`${S}\` property.`:
|
|
58
|
-
\`color.main\` should be a string, but \`${JSON.stringify(
|
|
52
|
+
*/function u2(e,t){const n=Ua(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
|
|
53
|
+
`)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}function d2(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const si=[];function Bt(e){return si[0]=e,c2(si)}const f2=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function p2(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=f2(t),a=Object.keys(i);function c(y){return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n})`}function u(y){return`@media (max-width:${(typeof t[y]=="number"?t[y]:y)-r/100}${n})`}function d(y,g){const b=a.indexOf(g);return`@media (min-width:${typeof t[y]=="number"?t[y]:y}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:g)-r/100}${n})`}function m(y){return a.indexOf(y)+1<a.length?d(y,a[a.indexOf(y)+1]):c(y)}function h(y){const g=a.indexOf(y);return g===0?c(a[1]):g===a.length-1?u(a[g]):d(y,a[a.indexOf(y)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:c,down:u,between:d,only:m,not:h,unit:n,...o}}const m2={borderRadius:4};function sa(e=8,t=Ao({spacing:e})){if(e.mui)return e;const n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" "));return n.mui=!0,n}function h2(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function ia(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,c=p2(n),u=sa(o);let d=Ye({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...m2,...i}},a);return d=mu(d),d.applyStyles=h2,d=t.reduce((m,h)=>Ye(m,h),d),d.unstable_sxConfig={..._r,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(h){return dn({sx:h,theme:this})},d}const ii=e=>e,g2=()=>{let e=ii;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ii}}},y2=g2(),b2={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Lo(e,t,n="Mui"){const r=b2[t];return r?`${n}-${r}`:`${y2.generate(e)}-${t}`}function v2(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Lo(e,o,n)}),r}function aa(e,t=""){return e.displayName||e.name||t}function ai(e,t,n){const r=aa(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function x2(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return aa(e,"Component");if(typeof e=="object")switch(e.$$typeof){case sr.ForwardRef:return ai(e,e.render,"ForwardRef");case sr.Memo:return ai(e,e.type,"memo");default:return}}}function la(e){const{variants:t,...n}=e,r={variants:t,style:Bt(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Bt(o.style))}),r}const C2=ia();function zr(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Dt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function _2(e){return e?(t,n)=>n[e]:null}function w2(e,t,n){e.theme=j2(e.theme)?n:e.theme[t]||e.theme}function er(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(o=>er(e,o,n));if(Array.isArray(r==null?void 0:r.variants)){let o;if(r.isProcessed)o=n?Dt(r.style,n):r.style;else{const{variants:i,...a}=r;o=n?Dt(Bt(a),n):a}return ca(e,r.variants,[o],n)}return r!=null&&r.isProcessed?n?Dt(Bt(r.style),n):r.style:n?Dt(Bt(r),n):r}function ca(e,t,n=[],r=void 0){var i;let o;e:for(let a=0;a<t.length;a+=1){const c=t[a];if(typeof c.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!c.props(o))continue}else for(const u in c.props)if(e[u]!==c.props[u]&&((i=e.ownerState)==null?void 0:i[u])!==c.props[u])continue e;typeof c.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?Dt(Bt(c.style(o)),r):c.style(o))):n.push(r?Dt(Bt(c.style),r):c.style)}return n}function S2(e={}){const{themeId:t,defaultTheme:n=C2,rootShouldForwardProp:r=zr,slotShouldForwardProp:o=zr}=e;function i(c){w2(c,t,n)}return(c,u={})=>{d2(c,T=>T.filter(O=>O!==dn));const{name:d,slot:m,skipVariantsResolver:h,skipSx:y,overridesResolver:g=_2(ua(m)),...b}=u,f=d&&d.startsWith("Mui")||m?"components":"custom",x=h!==void 0?h:m&&m!=="Root"&&m!=="root"||!1,w=y||!1;let S=zr;m==="Root"||m==="root"?S=r:m?S=o:$2(c)&&(S=void 0);const N=u2(c,{shouldForwardProp:S,label:k2(d,m),...b}),v=T=>{if(T.__emotion_real===T)return T;if(typeof T=="function")return function(j){return er(j,T,j.theme.modularCssLayers?f:void 0)};if(mt(T)){const O=la(T);return function($){return O.variants?er($,O,$.theme.modularCssLayers?f:void 0):$.theme.modularCssLayers?Dt(O.style,f):O.style}}return T},C=(...T)=>{const O=[],j=T.map(v),$=[];if(O.push(i),d&&g&&$.push(function(E){var B,F;const D=(F=(B=E.theme.components)==null?void 0:B[d])==null?void 0:F.styleOverrides;if(!D)return null;const z={};for(const Z in D)z[Z]=er(E,D[Z],E.theme.modularCssLayers?"theme":void 0);return g(E,z)}),d&&!x&&$.push(function(E){var z,B;const k=E.theme,D=(B=(z=k==null?void 0:k.components)==null?void 0:z[d])==null?void 0:B.variants;return D?ca(E,D,[],E.theme.modularCssLayers?"theme":void 0):null}),w||$.push(dn),Array.isArray(j[0])){const p=j.shift(),E=new Array(O.length).fill(""),k=new Array($.length).fill("");let D;D=[...E,...p,...k],D.raw=[...E,...p.raw,...k],O.unshift(D)}const L=[...O,...j,...$],R=N(...L);return c.muiName&&(R.muiName=c.muiName),process.env.NODE_ENV!=="production"&&(R.displayName=T2(d,m,c)),R};return N.withConfig&&(C.withConfig=N.withConfig),C}}function T2(e,t,n){return e?`${e}${ot(t||"")}`:`Styled(${x2(n)})`}function k2(e,t){let n;return process.env.NODE_ENV!=="production"&&e&&(n=`${e}-${ua(t||"Root")}`),n}function j2(e){for(const t in e)return!1;return!0}function $2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function ua(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function to(e,t,n=!1){const r={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const i=o;if(i==="components"||i==="slots")r[i]={...e[i],...r[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],c=t[i];if(!c)r[i]=a||{};else if(!a)r[i]=c;else{r[i]={...c};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const d=u;r[i][d]=to(a[d],c[d],n)}}}else i==="className"&&n&&t.className?r.className=Tt(e==null?void 0:e.className,t==null?void 0:t.className):i==="style"&&n&&t.style?r.style={...e==null?void 0:e.style,...t==null?void 0:t.style}:r[i]===void 0&&(r[i]=e[i])}return r}function Ro(e,t=0,n=1){return process.env.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),an(e,t,n)}function N2(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function kt(e){if(e.type)return e;if(e.charAt(0)==="#")return kt(N2(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
54
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Pt(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
55
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Pt(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const E2=e=>{const t=kt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},wn=(e,t)=>{try{return E2(e)}catch{return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};function wr(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function da(e){e=kt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(d,m=(d+n/30)%12)=>o-i*Math.max(Math.min(m-3,9-m,1),-1);let c="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(c+="a",u.push(t[3])),wr({type:c,values:u})}function no(e){e=kt(e);let t=e.type==="hsl"||e.type==="hsla"?kt(da(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function li(e,t){const n=no(e),r=no(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function fa(e,t){return e=kt(e),t=Ro(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,wr(e)}function Lt(e,t,n){try{return fa(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Sr(e,t){if(e=kt(e),t=Ro(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return wr(e)}function he(e,t,n){try{return Sr(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function Tr(e,t){if(e=kt(e),t=Ro(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return wr(e)}function ge(e,t,n){try{return Tr(e,t)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}}function O2(e,t=.15){return no(e)>.5?Sr(e,t):Tr(e,t)}function Kn(e,t,n){try{return O2(e,t)}catch{return e}}const A2=te.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function M2(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?to(o.defaultProps,r,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?to(o,r,t.components.mergeClassNameAndStyle):r}function L2({props:e,name:t}){const n=te.useContext(A2);return M2({props:e,name:t,theme:{components:n}})}const ci={theme:void 0};function R2(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(ci.theme=o.theme,i=la(e(ci)),t=i,n=o.theme),i}}function I2(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const ui=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},D2=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([c,u])=>{(!n||n&&!n([...i,c]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...i,c],Array.isArray(u)?[...a,c]:a):t([...i,c],u,a))})}r(e)},B2=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function qr(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return D2(e,(c,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(c,u))){const m=`--${n?`${n}-`:""}${c.join("-")}`,h=B2(c,u);Object.assign(o,{[m]:h}),ui(i,c,`var(${m})`,d),ui(a,c,`var(${m}, ${h})`,d)}},c=>c[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function P2(e,t={}){const{getSelector:n=w,disableCssColorScheme:r,colorSchemeSelector:o,enableContrastVars:i}=t,{colorSchemes:a={},components:c,defaultColorScheme:u="light",...d}=e,{vars:m,css:h,varsWithDefaults:y}=qr(d,t);let g=y;const b={},{[u]:f,...x}=a;if(Object.entries(x||{}).forEach(([v,C])=>{const{vars:T,css:O,varsWithDefaults:j}=qr(C,t);g=Ye(g,j),b[v]={css:O,vars:T}}),f){const{css:v,vars:C,varsWithDefaults:T}=qr(f,t);g=Ye(g,T),b[u]={css:v,vars:C}}function w(v,C){var O,j;let T=o;if(o==="class"&&(T=".%s"),o==="data"&&(T="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(T=`[${o}="%s"]`),v){if(T==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((j=(O=a[v])==null?void 0:O.palette)==null?void 0:j.mode)||v})`]:{":root":C}};if(T)return e.defaultColorScheme===v?`:root, ${T.replace("%s",String(v))}`:T.replace("%s",String(v))}return":root"}return{vars:g,generateThemeVars:()=>{let v={...m};return Object.entries(b).forEach(([,{vars:C}])=>{v=Ye(v,C)}),v},generateStyleSheets:()=>{var $,L;const v=[],C=e.defaultColorScheme||"light";function T(R,p){Object.keys(p).length&&v.push(typeof R=="string"?{[R]:{...p}}:R)}T(n(void 0,{...h}),h);const{[C]:O,...j}=b;if(O){const{css:R}=O,p=(L=($=a[C])==null?void 0:$.palette)==null?void 0:L.mode,E=!r&&p?{colorScheme:p,...R}:{...R};T(n(C,{...E}),E)}return Object.entries(j).forEach(([R,{css:p}])=>{var D,z;const E=(z=(D=a[R])==null?void 0:D.palette)==null?void 0:z.mode,k=!r&&E?{colorScheme:E,...p}:{...p};T(n(R,{...k}),k)}),i&&v.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),v}}}function V2(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const $n={black:"#000",white:"#fff"},F2={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},Qt={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Jt={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},bn={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},en={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},tn={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},nn={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function pa(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:$n.white,default:$n.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const ma=pa();function ha(){return{text:{primary:$n.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:$n.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const ro=ha();function di(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Tr(e.main,o):t==="dark"&&(e.dark=Sr(e.main,i)))}function fi(e,t,n,r,o){const i=o.light||o,a=o.dark||o*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(i*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(a*100).toFixed(0)}%)`))}function z2(e="light"){return e==="dark"?{main:en[200],light:en[50],dark:en[400]}:{main:en[700],light:en[400],dark:en[800]}}function q2(e="light"){return e==="dark"?{main:Qt[200],light:Qt[50],dark:Qt[400]}:{main:Qt[500],light:Qt[300],dark:Qt[700]}}function W2(e="light"){return e==="dark"?{main:Jt[500],light:Jt[300],dark:Jt[700]}:{main:Jt[700],light:Jt[400],dark:Jt[800]}}function U2(e="light"){return e==="dark"?{main:tn[400],light:tn[300],dark:tn[700]}:{main:tn[700],light:tn[500],dark:tn[900]}}function H2(e="light"){return e==="dark"?{main:nn[400],light:nn[300],dark:nn[700]}:{main:nn[800],light:nn[500],dark:nn[900]}}function K2(e="light"){return e==="dark"?{main:bn[400],light:bn[300],dark:bn[700]}:{main:"#ed6c02",light:bn[500],dark:bn[900]}}function Z2(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Io(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:o,...i}=e,a=e.primary||z2(t),c=e.secondary||q2(t),u=e.error||W2(t),d=e.info||U2(t),m=e.success||H2(t),h=e.warning||K2(t);function y(x){if(o)return Z2(x);const w=li(x,ro.text.primary)>=n?ro.text.primary:ma.text.primary;if(process.env.NODE_ENV!=="production"){const S=li(x,w);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${w} on ${x}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
56
|
+
`))}return w}const g=({color:x,name:w,mainShade:S=500,lightShade:N=300,darkShade:v=700})=>{if(x={...x},!x.main&&x[S]&&(x.main=x[S]),!x.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
|
|
57
|
+
The color object needs to have a \`main\` property or a \`${S}\` property.`:Pt(11,w?` (${w})`:"",S));if(typeof x.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${w?` (${w})`:""} provided to augmentColor(color) is invalid.
|
|
58
|
+
\`color.main\` should be a string, but \`${JSON.stringify(x.main)}\` was provided instead.
|
|
59
59
|
|
|
60
60
|
Did you intend to use one of the following approaches?
|
|
61
61
|
|
|
@@ -67,18 +67,18 @@ const theme1 = createTheme({ palette: {
|
|
|
67
67
|
|
|
68
68
|
const theme2 = createTheme({ palette: {
|
|
69
69
|
primary: { main: green[500] },
|
|
70
|
-
} });`:
|
|
71
|
-
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof a=="string"?a:
|
|
70
|
+
} });`:Pt(12,w?` (${w})`:"",JSON.stringify(x.main)));return o?(fi(o,x,"light",N,r),fi(o,x,"dark",v,r)):(di(x,"light",N,r),di(x,"dark",v,r)),x.contrastText||(x.contrastText=y(x.main)),x};let b;return t==="light"?b=pa():t==="dark"&&(b=ha()),process.env.NODE_ENV!=="production"&&(b||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ye({common:{...$n},mode:t,primary:g({color:a,name:"primary"}),secondary:g({color:c,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:u,name:"error"}),warning:g({color:h,name:"warning"}),info:g({color:d,name:"info"}),success:g({color:m,name:"success"}),grey:F2,contrastThreshold:n,getContrastText:y,augmentColor:g,tonalOffset:r,...b},i)}function G2(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function Y2(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function X2(e){return Math.round(e*1e5)/1e5}const pi={textTransform:"uppercase"},mi='"Roboto", "Helvetica", "Arial", sans-serif';function Q2(e,t){const{fontFamily:n=mi,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:d,pxToRem:m,...h}=typeof t=="function"?t(e):t;process.env.NODE_ENV!=="production"&&(typeof r!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof u!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const y=r/14,g=m||(x=>`${x/u*y}rem`),b=(x,w,S,N,v)=>({fontFamily:n,fontWeight:x,fontSize:g(w),lineHeight:S,...n===mi?{letterSpacing:`${X2(N/w)}em`}:{},...v,...d}),f={h1:b(o,96,1.167,-1.5),h2:b(o,60,1.2,-.5),h3:b(i,48,1.167,0),h4:b(i,34,1.235,.25),h5:b(i,24,1.334,0),h6:b(a,20,1.6,.15),subtitle1:b(i,16,1.75,.15),subtitle2:b(a,14,1.57,.1),body1:b(i,16,1.5,.15),body2:b(i,14,1.43,.15),button:b(a,14,1.75,.4,pi),caption:b(i,12,1.66,.4),overline:b(i,12,2.66,1,pi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ye({htmlFontSize:u,pxToRem:g,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:c,...f},h,{clone:!1})}const J2=.2,ed=.14,td=.12;function Ce(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${J2})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ed})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${td})`].join(",")}const nd=["none",Ce(0,2,1,-1,0,1,1,0,0,1,3,0),Ce(0,3,1,-2,0,2,2,0,0,1,5,0),Ce(0,3,3,-2,0,3,4,0,0,1,8,0),Ce(0,2,4,-1,0,4,5,0,0,1,10,0),Ce(0,3,5,-1,0,5,8,0,0,1,14,0),Ce(0,3,5,-1,0,6,10,0,0,1,18,0),Ce(0,4,5,-2,0,7,10,1,0,2,16,1),Ce(0,5,5,-3,0,8,10,1,0,3,14,2),Ce(0,5,6,-3,0,9,12,1,0,3,16,2),Ce(0,6,6,-3,0,10,14,1,0,4,18,3),Ce(0,6,7,-4,0,11,15,1,0,4,20,3),Ce(0,7,8,-4,0,12,17,2,0,5,22,4),Ce(0,7,8,-4,0,13,19,2,0,5,24,4),Ce(0,7,9,-4,0,14,21,2,0,5,26,4),Ce(0,8,9,-5,0,15,22,2,0,6,28,5),Ce(0,8,10,-5,0,16,24,2,0,6,30,5),Ce(0,8,11,-5,0,17,26,2,0,6,32,5),Ce(0,9,11,-5,0,18,28,2,0,7,34,6),Ce(0,9,12,-6,0,19,29,2,0,7,36,6),Ce(0,10,13,-6,0,20,31,3,0,8,38,7),Ce(0,10,13,-6,0,21,33,3,0,8,40,7),Ce(0,10,14,-6,0,22,35,3,0,8,42,7),Ce(0,11,14,-7,0,23,36,3,0,9,44,8),Ce(0,11,15,-7,0,24,38,3,0,9,46,8)],rd={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},od={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function hi(e){return`${Math.round(e)}ms`}function sd(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function id(e){const t={...rd,...e.easing},n={...od,...e.duration};return{getAutoHeightDuration:sd,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:c=t.easeInOut,delay:u=0,...d}=i;if(process.env.NODE_ENV!=="production"){const m=y=>typeof y=="string",h=y=>!Number.isNaN(parseFloat(y));!m(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!h(a)&&!m(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),m(c)||console.error('MUI: Argument "easing" must be a string.'),!h(u)&&!m(u)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof i!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
|
|
71
|
+
`)),Object.keys(d).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(d).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof a=="string"?a:hi(a)} ${c} ${typeof u=="string"?u:hi(u)}`).join(",")},...e,easing:t,duration:n}}const ad={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ld(e){return mt(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function ga(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,c]=o[i];!ld(c)||a.startsWith("unstable_")?delete r[a]:mt(c)&&(r[a]={...c},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
72
72
|
|
|
73
73
|
const theme = ${JSON.stringify(t,null,2)};
|
|
74
74
|
|
|
75
75
|
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
76
76
|
theme.transitions = createTransitions(theme.transitions || {});
|
|
77
77
|
|
|
78
|
-
export default theme;`}function
|
|
79
|
-
`))}
|
|
80
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function g1(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ot=e=>{try{return e()}catch{}},y1=(e="mui")=>L2(e);function Wr(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){t[o]=d1({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...c}=oo({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...ha(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||ga(i)},c}function b1(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=f1,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...m}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),g=y1(i),{[y]:b,light:f,dark:C,..._}=n,S={..._};let E=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:zt(21,y));let v;a&&(v="oklch");const x=Wr(v,S,E,m,y);f&&!S.light&&Wr(v,S,f,void 0,"light"),C&&!S.dark&&Wr(v,S,C,void 0,"dark");let T={defaultColorScheme:y,...x,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:d,getCssVar:g,colorSchemes:S,font:{...K2(x.typography),...x.font},spacing:g1(m.spacing)};Object.keys(T.colorSchemes).forEach(D=>{const p=T.colorSchemes[D].palette,N=R=>{const q=R.split("-"),I=q[1],V=q[2];return g(R,p[I][V])};p.mode==="light"&&(A(p.common,"background","#fff"),A(p.common,"onBackground","#000")),p.mode==="dark"&&(A(p.common,"background","#000"),A(p.common,"onBackground","#fff"));function k(R,q,I){if(v){let V;return R===Dt&&(V=`transparent ${((1-I)*100).toFixed(0)}%`),R===he&&(V=`#000 ${(I*100).toFixed(0)}%`),R===ge&&(V=`#fff ${(I*100).toFixed(0)}%`),`color-mix(in ${v}, ${q}, ${V})`}return R(q,I)}if(h1(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){A(p.Alert,"errorColor",k(he,a?g("palette-error-light"):p.error.light,.6)),A(p.Alert,"infoColor",k(he,a?g("palette-info-light"):p.info.light,.6)),A(p.Alert,"successColor",k(he,a?g("palette-success-light"):p.success.light,.6)),A(p.Alert,"warningColor",k(he,a?g("palette-warning-light"):p.warning.light,.6)),A(p.Alert,"errorFilledBg",N("palette-error-main")),A(p.Alert,"infoFilledBg",N("palette-info-main")),A(p.Alert,"successFilledBg",N("palette-success-main")),A(p.Alert,"warningFilledBg",N("palette-warning-main")),A(p.Alert,"errorFilledColor",ot(()=>p.getContrastText(p.error.main))),A(p.Alert,"infoFilledColor",ot(()=>p.getContrastText(p.info.main))),A(p.Alert,"successFilledColor",ot(()=>p.getContrastText(p.success.main))),A(p.Alert,"warningFilledColor",ot(()=>p.getContrastText(p.warning.main))),A(p.Alert,"errorStandardBg",k(ge,a?g("palette-error-light"):p.error.light,.9)),A(p.Alert,"infoStandardBg",k(ge,a?g("palette-info-light"):p.info.light,.9)),A(p.Alert,"successStandardBg",k(ge,a?g("palette-success-light"):p.success.light,.9)),A(p.Alert,"warningStandardBg",k(ge,a?g("palette-warning-light"):p.warning.light,.9)),A(p.Alert,"errorIconColor",N("palette-error-main")),A(p.Alert,"infoIconColor",N("palette-info-main")),A(p.Alert,"successIconColor",N("palette-success-main")),A(p.Alert,"warningIconColor",N("palette-warning-main")),A(p.AppBar,"defaultBg",N("palette-grey-100")),A(p.Avatar,"defaultBg",N("palette-grey-400")),A(p.Button,"inheritContainedBg",N("palette-grey-300")),A(p.Button,"inheritContainedHoverBg",N("palette-grey-A100")),A(p.Chip,"defaultBorder",N("palette-grey-400")),A(p.Chip,"defaultAvatarColor",N("palette-grey-700")),A(p.Chip,"defaultIconColor",N("palette-grey-700")),A(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),A(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),A(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),A(p.LinearProgress,"primaryBg",k(ge,a?g("palette-primary-main"):p.primary.main,.62)),A(p.LinearProgress,"secondaryBg",k(ge,a?g("palette-secondary-main"):p.secondary.main,.62)),A(p.LinearProgress,"errorBg",k(ge,a?g("palette-error-main"):p.error.main,.62)),A(p.LinearProgress,"infoBg",k(ge,a?g("palette-info-main"):p.info.main,.62)),A(p.LinearProgress,"successBg",k(ge,a?g("palette-success-main"):p.success.main,.62)),A(p.LinearProgress,"warningBg",k(ge,a?g("palette-warning-light"):p.warning.main,.62)),A(p.Skeleton,"bg",v?k(Dt,a?g("palette-text-primary"):p.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),A(p.Slider,"primaryTrack",k(ge,a?g("palette-primary-main"):p.primary.main,.62)),A(p.Slider,"secondaryTrack",k(ge,a?g("palette-secondary-main"):p.secondary.main,.62)),A(p.Slider,"errorTrack",k(ge,a?g("palette-error-main"):p.error.main,.62)),A(p.Slider,"infoTrack",k(ge,a?g("palette-info-main"):p.info.main,.62)),A(p.Slider,"successTrack",k(ge,a?g("palette-success-main"):p.success.main,.62)),A(p.Slider,"warningTrack",k(ge,a?g("palette-warning-main"):p.warning.main,.62));const R=v?k(he,a?g("palette-background-default"):p.background.default,.6825):Hn(p.background.default,.8);A(p.SnackbarContent,"bg",R),A(p.SnackbarContent,"color",ot(()=>v?ro.text.primary:p.getContrastText(R))),A(p.SpeedDialAction,"fabHoverBg",Hn(p.background.paper,.15)),A(p.StepConnector,"border",N("palette-grey-400")),A(p.StepContent,"border",N("palette-grey-400")),A(p.Switch,"defaultColor",N("palette-common-white")),A(p.Switch,"defaultDisabledColor",N("palette-grey-100")),A(p.Switch,"primaryDisabledColor",k(ge,a?g("palette-primary-main"):p.primary.main,.62)),A(p.Switch,"secondaryDisabledColor",k(ge,a?g("palette-secondary-main"):p.secondary.main,.62)),A(p.Switch,"errorDisabledColor",k(ge,a?g("palette-error-main"):p.error.main,.62)),A(p.Switch,"infoDisabledColor",k(ge,a?g("palette-info-main"):p.info.main,.62)),A(p.Switch,"successDisabledColor",k(ge,a?g("palette-success-main"):p.success.main,.62)),A(p.Switch,"warningDisabledColor",k(ge,a?g("palette-warning-main"):p.warning.main,.62)),A(p.TableCell,"border",k(ge,Dt(a?g("palette-divider"):p.divider,1),.88)),A(p.Tooltip,"bg",k(Dt,a?g("palette-grey-700"):p.grey[700],.92))}if(p.mode==="dark"){A(p.Alert,"errorColor",k(ge,a?g("palette-error-light"):p.error.light,.6)),A(p.Alert,"infoColor",k(ge,a?g("palette-info-light"):p.info.light,.6)),A(p.Alert,"successColor",k(ge,a?g("palette-success-light"):p.success.light,.6)),A(p.Alert,"warningColor",k(ge,a?g("palette-warning-light"):p.warning.light,.6)),A(p.Alert,"errorFilledBg",N("palette-error-dark")),A(p.Alert,"infoFilledBg",N("palette-info-dark")),A(p.Alert,"successFilledBg",N("palette-success-dark")),A(p.Alert,"warningFilledBg",N("palette-warning-dark")),A(p.Alert,"errorFilledColor",ot(()=>p.getContrastText(p.error.dark))),A(p.Alert,"infoFilledColor",ot(()=>p.getContrastText(p.info.dark))),A(p.Alert,"successFilledColor",ot(()=>p.getContrastText(p.success.dark))),A(p.Alert,"warningFilledColor",ot(()=>p.getContrastText(p.warning.dark))),A(p.Alert,"errorStandardBg",k(he,a?g("palette-error-light"):p.error.light,.9)),A(p.Alert,"infoStandardBg",k(he,a?g("palette-info-light"):p.info.light,.9)),A(p.Alert,"successStandardBg",k(he,a?g("palette-success-light"):p.success.light,.9)),A(p.Alert,"warningStandardBg",k(he,a?g("palette-warning-light"):p.warning.light,.9)),A(p.Alert,"errorIconColor",N("palette-error-main")),A(p.Alert,"infoIconColor",N("palette-info-main")),A(p.Alert,"successIconColor",N("palette-success-main")),A(p.Alert,"warningIconColor",N("palette-warning-main")),A(p.AppBar,"defaultBg",N("palette-grey-900")),A(p.AppBar,"darkBg",N("palette-background-paper")),A(p.AppBar,"darkColor",N("palette-text-primary")),A(p.Avatar,"defaultBg",N("palette-grey-600")),A(p.Button,"inheritContainedBg",N("palette-grey-800")),A(p.Button,"inheritContainedHoverBg",N("palette-grey-700")),A(p.Chip,"defaultBorder",N("palette-grey-700")),A(p.Chip,"defaultAvatarColor",N("palette-grey-300")),A(p.Chip,"defaultIconColor",N("palette-grey-300")),A(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),A(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),A(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),A(p.LinearProgress,"primaryBg",k(he,a?g("palette-primary-main"):p.primary.main,.5)),A(p.LinearProgress,"secondaryBg",k(he,a?g("palette-secondary-main"):p.secondary.main,.5)),A(p.LinearProgress,"errorBg",k(he,a?g("palette-error-main"):p.error.main,.5)),A(p.LinearProgress,"infoBg",k(he,a?g("palette-info-main"):p.info.main,.5)),A(p.LinearProgress,"successBg",k(he,a?g("palette-success-main"):p.success.main,.5)),A(p.LinearProgress,"warningBg",k(he,a?g("palette-warning-main"):p.warning.main,.5)),A(p.Skeleton,"bg",v?k(Dt,a?g("palette-text-primary"):p.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),A(p.Slider,"primaryTrack",k(he,a?g("palette-primary-main"):p.primary.main,.5)),A(p.Slider,"secondaryTrack",k(he,a?g("palette-secondary-main"):p.secondary.main,.5)),A(p.Slider,"errorTrack",k(he,a?g("palette-error-main"):p.error.main,.5)),A(p.Slider,"infoTrack",k(he,a?g("palette-info-main"):p.info.main,.5)),A(p.Slider,"successTrack",k(he,a?g("palette-success-main"):p.success.main,.5)),A(p.Slider,"warningTrack",k(he,a?g("palette-warning-light"):p.warning.main,.5));const R=v?k(ge,a?g("palette-background-default"):p.background.default,.985):Hn(p.background.default,.98);A(p.SnackbarContent,"bg",R),A(p.SnackbarContent,"color",ot(()=>v?fa.text.primary:p.getContrastText(R))),A(p.SpeedDialAction,"fabHoverBg",Hn(p.background.paper,.15)),A(p.StepConnector,"border",N("palette-grey-600")),A(p.StepContent,"border",N("palette-grey-600")),A(p.Switch,"defaultColor",N("palette-grey-300")),A(p.Switch,"defaultDisabledColor",N("palette-grey-600")),A(p.Switch,"primaryDisabledColor",k(he,a?g("palette-primary-main"):p.primary.main,.55)),A(p.Switch,"secondaryDisabledColor",k(he,a?g("palette-secondary-main"):p.secondary.main,.55)),A(p.Switch,"errorDisabledColor",k(he,a?g("palette-error-main"):p.error.main,.55)),A(p.Switch,"infoDisabledColor",k(he,a?g("palette-info-main"):p.info.main,.55)),A(p.Switch,"successDisabledColor",k(he,a?g("palette-success-main"):p.success.main,.55)),A(p.Switch,"warningDisabledColor",k(he,a?g("palette-warning-light"):p.warning.main,.55)),A(p.TableCell,"border",k(he,Dt(a?g("palette-divider"):p.divider,1),.68)),A(p.Tooltip,"bg",k(Dt,a?g("palette-grey-700"):p.grey[700],.92))}a||(ut(p.background,"default"),ut(p.background,"paper"),ut(p.common,"background"),ut(p.common,"onBackground"),ut(p,"divider")),Object.keys(p).forEach(R=>{const q=p[R];R!=="tonalOffset"&&!a&&q&&typeof q=="object"&&(q.main&&A(p[R],"mainChannel",_n(Sn(q.main))),q.light&&A(p[R],"lightChannel",_n(Sn(q.light))),q.dark&&A(p[R],"darkChannel",_n(Sn(q.dark))),q.contrastText&&A(p[R],"contrastTextChannel",_n(Sn(q.contrastText))),R==="text"&&(ut(p[R],"primary"),ut(p[R],"secondary")),R==="action"&&(q.active&&ut(p[R],"active"),q.selected&&ut(p[R],"selected")))})}),T=t.reduce((D,p)=>Ge(D,p),T);const O={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:m1(T),enableContrastVars:a},{vars:j,generateThemeVars:$,generateStyleSheets:z}=D2(T,O);return T.vars=j,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([D,p])=>{T[D]=p}),T.generateThemeVars=$,T.generateStyleSheets=z,T.generateSpacing=function(){return ra(m.spacing,Oo(this))},T.getColorSchemeSelector=B2(u),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=c,T.unstable_sxConfig={...Cr,...m==null?void 0:m.unstable_sxConfig},T.unstable_sx=function(p){return fn({sx:p,theme:this})},T.toRuntimeSource=ma,T}function gi(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Io({...n===!0?{}:n.palette,mode:t})})}function v1(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,c=i||"light",u=o==null?void 0:o[c],d={...o,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return oo(e,...t);let m=n;"palette"in e||d[c]&&(d[c]!==!0?m=d[c].palette:c==="dark"&&(m={mode:"dark"}));const h=oo({...e,palette:m},...t);return h.defaultColorScheme=c,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},gi(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},gi(h,"light",d.light)),h}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),b1({...a,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const x1=v1(),C1="$$material";function Do(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _1=e=>Do(e)&&e!=="classes",Ut=_2({themeId:C1,defaultTheme:x1,rootShouldForwardProp:_1}),hn=M2;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function S1(e){return O2(e)}const w1=e=>!e||!Tn(e);function T1(e){return typeof e.main=="string"}function k1(e,t=[]){if(!T1(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Bo(e=[]){return([,t])=>t&&k1(t,e)}function j1(e){return Lo("MuiSlider",e)}const Xe=y2("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),$1=e=>{const{open:t}=e;return{offset:kt(t&&Xe.valueLabelOpen),circle:Xe.valueLabelCircle,label:Xe.valueLabelLabel}};function ya(e){const{children:t,className:n,value:r}=e,o=$1(e);return t?ee.cloneElement(t,{className:t.props.className},l.jsxs(ee.Fragment,{children:[t.props.children,l.jsx("span",{className:kt(o.offset,n),"aria-hidden":!0,children:l.jsx("span",{className:o.circle,children:l.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(ya.propTypes={children:s.element.isRequired,className:s.string,value:s.node});function yi(e){return e}const N1=Ut("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${rt(n.color)}`],n.size!=="medium"&&t[`size${rt(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(hn(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Xe.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Xe.dragging}`]:{[`& .${Xe.thumb}, & .${Xe.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Bo()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),E1=Ut("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),A1=Ut("span",{name:"MuiSlider",slot:"Track"})(hn(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(Bo()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),O1=Ut("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${rt(n.color)}`],n.size!=="medium"&&t[`thumbSize${rt(n.size)}`]]}})(hn(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Xe.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Bo()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${Xe.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Xe.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),ba=Ut(ya,{name:"MuiSlider",slot:"ValueLabel"})(hn(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Xe.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Xe.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(ba.propTypes={children:s.element.isRequired,index:s.number.isRequired,open:s.bool.isRequired,value:s.node});const M1=Ut("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Do(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(hn(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),L1=Ut("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Do(e)&&e!=="markLabelActive"})(hn(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),R1=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:c,size:u}=e,d={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",c&&`color${rt(c)}`,u&&`size${rt(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${rt(u)}`,c&&`thumbColor${rt(c)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return U0(d,j1,a)},I1=({children:e})=>e,va=ee.forwardRef(function(t,n){const r=S1({props:t,name:"MuiSlider"}),o=K0(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":c,component:u="span",components:d={},componentsProps:m={},color:h="primary",classes:y,className:g,disableSwap:b=!1,disabled:f=!1,getAriaLabel:C,getAriaValueText:_,marks:S=!1,max:E=100,min:v=0,name:x,onChange:T,onChangeCommitted:O,orientation:j="horizontal",shiftStep:$=10,size:z="medium",step:D=1,scale:p=yi,slotProps:N,slots:k,tabIndex:R,track:q="normal",value:I,valueLabelDisplay:V="off",valueLabelFormat:H=yi,...M}=r,L={...r,isRtl:o,max:E,min:v,classes:y,disabled:f,disableSwap:b,orientation:j,marks:S,color:h,size:z,step:D,shiftStep:$,scale:p,track:q,valueLabelDisplay:V,valueLabelFormat:H},{axisProps:Y,getRootProps:te,getHiddenInputProps:B,getThumbProps:G,open:X,active:ne,axis:se,focusedThumbIndex:Q,range:re,dragging:oe,marks:P,values:ie,trackOffset:Le,trackLeap:lt,getThumbStyle:Nt}=iu({...L,rootRef:n});L.marked=P.length>0&&P.some(Se=>Se.label),L.dragging=oe,L.focusedThumbIndex=Q;const Re=R1(L),yt=(k==null?void 0:k.root)??d.Root??N1,De=(k==null?void 0:k.rail)??d.Rail??E1,Ie=(k==null?void 0:k.track)??d.Track??A1,ct=(k==null?void 0:k.thumb)??d.Thumb??O1,bt=(k==null?void 0:k.valueLabel)??d.ValueLabel??ba,vt=(k==null?void 0:k.mark)??d.Mark??M1,Je=(k==null?void 0:k.markLabel)??d.MarkLabel??L1,F=(k==null?void 0:k.input)??d.Input??"input",U=(N==null?void 0:N.root)??m.root,Z=(N==null?void 0:N.rail)??m.rail,ae=(N==null?void 0:N.track)??m.track,ue=(N==null?void 0:N.thumb)??m.thumb,K=(N==null?void 0:N.valueLabel)??m.valueLabel,xe=(N==null?void 0:N.mark)??m.mark,je=(N==null?void 0:N.markLabel)??m.markLabel,fe=(N==null?void 0:N.input)??m.input,Ve=St({elementType:yt,getSlotProps:te,externalSlotProps:U,externalForwardedProps:M,additionalProps:{...w1(yt)&&{as:u}},ownerState:{...L,...U==null?void 0:U.ownerState},className:[Re.root,g]}),Et=St({elementType:De,externalSlotProps:Z,ownerState:L,className:Re.rail}),Kt=St({elementType:Ie,externalSlotProps:ae,additionalProps:{style:{...Y[se].offset(Le),...Y[se].leap(lt)}},ownerState:{...L,...ae==null?void 0:ae.ownerState},className:Re.track}),Ae=St({elementType:ct,getSlotProps:G,externalSlotProps:ue,ownerState:{...L,...ue==null?void 0:ue.ownerState},className:Re.thumb}),kr=St({elementType:bt,externalSlotProps:K,ownerState:{...L,...K==null?void 0:K.ownerState},className:Re.valueLabel}),Ue=St({elementType:vt,externalSlotProps:xe,ownerState:L,className:Re.mark}),At=St({elementType:Je,externalSlotProps:je,ownerState:L,className:Re.markLabel}),Mn=St({elementType:F,getSlotProps:B,externalSlotProps:fe,ownerState:L});return l.jsxs(yt,{...Ve,children:[l.jsx(De,{...Et}),l.jsx(Ie,{...Kt}),P.filter(Se=>Se.value>=v&&Se.value<=E).map((Se,Ne)=>{const Gt=rr(Se.value,v,E),xt=Y[se].offset(Gt);let et;return q===!1?et=ie.includes(Se.value):et=q==="normal"&&(re?Se.value>=ie[0]&&Se.value<=ie[ie.length-1]:Se.value<=ie[0])||q==="inverted"&&(re?Se.value<=ie[0]||Se.value>=ie[ie.length-1]:Se.value>=ie[0]),l.jsxs(ee.Fragment,{children:[l.jsx(vt,{"data-index":Ne,...Ue,...!Tn(vt)&&{markActive:et},style:{...xt,...Ue.style},className:kt(Ue.className,et&&Re.markActive)}),Se.label!=null?l.jsx(Je,{"aria-hidden":!0,"data-index":Ne,...At,...!Tn(Je)&&{markLabelActive:et},style:{...xt,...At.style},className:kt(Re.markLabel,At.className,et&&Re.markLabelActive),children:Se.label}):null]},Ne)}),ie.map((Se,Ne)=>{const Gt=rr(Se,v,E),xt=Y[se].offset(Gt),et=V==="off"?I1:bt;return l.jsx(et,{...!Tn(et)&&{valueLabelFormat:H,valueLabelDisplay:V,value:typeof H=="function"?H(p(Se),Ne):H,index:Ne,open:X===Ne||ne===Ne||V==="on",disabled:f},...kr,children:l.jsx(ct,{"data-index":Ne,...Ae,className:kt(Re.thumb,Ae.className,ne===Ne&&Re.active,Q===Ne&&Re.focusVisible),style:{...xt,...Nt(Ne),...Ae.style},children:l.jsx(F,{"data-index":Ne,"aria-label":C?C(Ne):i,"aria-valuenow":p(Se),"aria-labelledby":c,"aria-valuetext":_?_(p(Se),Ne):a,value:ie[Ne],...Mn})})},Ne)})]})});process.env.NODE_ENV!=="production"&&(va.propTypes={"aria-label":zs(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":s.string,"aria-valuetext":zs(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Mark:s.elementType,MarkLabel:s.elementType,Rail:s.elementType,Root:s.elementType,Thumb:s.elementType,Track:s.elementType,ValueLabel:s.elementType}),componentsProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),defaultValue:s.oneOfType([s.arrayOf(s.number),s.number]),disabled:s.bool,disableSwap:s.bool,getAriaLabel:s.func,getAriaValueText:s.func,marks:s.oneOfType([s.arrayOf(s.shape({label:s.node,value:s.number.isRequired})),s.bool]),max:s.number,min:s.number,name:s.string,onChange:s.func,onChangeCommitted:s.func,orientation:s.oneOf(["horizontal","vertical"]),scale:s.func,shiftStep:s.number,size:s.oneOfType([s.oneOf(["small","medium"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),slots:s.shape({input:s.elementType,mark:s.elementType,markLabel:s.elementType,rail:s.elementType,root:s.elementType,thumb:s.elementType,track:s.elementType,valueLabel:s.elementType}),step:s.number,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,track:s.oneOf(["inverted","normal",!1]),value:s.oneOfType([s.arrayOf(s.number),s.number]),valueLabelDisplay:s.oneOf(["auto","off","on"]),valueLabelFormat:s.oneOfType([s.func,s.string])});const D1="_slider_1prh1_2",B1="_playButton_1prh1_14",P1="_sliderOpen_1prh1_25",F1="_sliderResults_1prh1_29",bn={slider:D1,playButton:B1,sliderOpen:P1,sliderResults:F1},Po=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,marcas:o=null,zIndex:i=10,rightBarOpen:a=!1,conditionToBeRuning:c=null,onChange:u=d=>{console.log("year changed to ",d)}})=>{const m=o||((v,x)=>{const T=[];T.push({label:"",value:v});const O=Math.ceil(v/10)*10;for(let j=O;j<x;j+=10)T.push({label:"",value:j});return T[T.length-1].value!==x&&T.push({label:"",value:x}),T})(n,r),[h,y]=w.useState(t);w.useEffect(()=>{y(t)},[t]);const g=(v,x)=>{y(x),u(x)},[b,f]=w.useState(!1);w.useEffect(()=>{t&&console.log("defaultYear changed:",t),t&&y(t)},[t]),w.useEffect(()=>{c===!1&&f(!1)},[c]);const C=()=>{f(!0)},_=()=>{f(!1)};((v,x,T=[])=>{const O=w.useRef();w.useEffect(()=>{O.current=v},[v]),w.useEffect(()=>{function j(){O.current()}{let $=setInterval(j,x);return()=>clearInterval($)}},[x,...T])})(()=>{b&&y(v=>{const x=v+1;return x>r?(u(n),n):(u(x),x)})},1e3,[n,r,b]);const E=hs.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}});return l.jsx(qa.ThemeProvider,{theme:E,children:l.jsxs(hs.Box,{sx:{width:400},className:`${e?bn.sliderResults:bn.slider} ${a?bn.sliderOpen:""}`,style:{zIndex:i},children:[n,l.jsx(va,{"aria-label":"TimeSlider",value:h,valueLabelDisplay:"on",step:1,marks:m,min:n,max:r,onChange:g,color:"primary",size:"small"}),r,!b&&l.jsx("button",{className:bn.playButton,onClick:C,children:l.jsx("img",{src:q0,alt:"Play"})}),b&&l.jsx("button",{className:bn.playButton,onClick:_,children:l.jsx("img",{src:W0,alt:"Pause"})})]})})};Po.displayName="TimeSlider";Po.propTypes={defaultYear:s.number,onResults:s.bool,firstYear:s.number,lastYear:s.number,marcas:s.arrayOf(s.shape({label:s.string,value:s.number})),zIndex:s.number,rightBarOpen:s.bool,onChange:s.func};const V1="_TopNavMenuContainer_12mp4_2",z1="_topNavOptions_12mp4_13",q1="_active_12mp4_27",Ur={TopNavMenuContainer:V1,topNavOptions:z1,active:q1},Fo=({options:e=[],containerStyles:t,borderColor:n="red",textColor:r="white",onChangeNavLink:o=i=>{console.log("Changed NavLink",i)}})=>{const{t:i}=le.useTranslation();return l.jsx("div",{className:Ur.TopNavMenuContainer,style:{...t},children:e.map((a,c)=>l.jsx(Di.NavLink,{to:a.url,className:({isActive:u})=>`${Ur.topNavOptions} ${u?Ur.active:""} `,onClick:()=>o(a.url),style:({isActive:u})=>({color:r,borderBottom:u?`5px solid ${n}`:"5px solid transparent"}),children:i(a.name)},c))})};Fo.displayName="TopNavMenu";Fo.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const W1="_LogInButton_1vxj5_2",U1={LogInButton:W1},Vo=({cssClass:e,notLoggedInLabel:t="Log in",loggedInLabel:n="Log out",containerStyles:r,userName:o="",isLoggedIn:i=!1,onClickLogIn:a=()=>{console.log("Login clicked")},onClickLogOut:c=()=>{console.log("Logout clicked")}})=>{const{t:u}=le.useTranslation();return l.jsx("div",{style:{...r},className:`${U1.LogInButton} link ${e}`,onClick:i?c:a,children:i?o||u(n):u(t)})};Vo.displayName="LogInButton";Vo.propTypes={cssClass:s.string,notLoggedInLabel:s.string,loggedInLabel:s.string,containerStyles:s.object,userName:s.string,isLoggedIn:s.bool};const H1="_elementSelector_1ox68_2",K1="_header_1ox68_14",G1="_nameDateContainer_1ox68_24",Z1="_elementName_1ox68_40",Y1="_elementDate_1ox68_54",X1="_buttonsContainer_1ox68_68",Q1="_elementListContainer_1ox68_77",J1="_newElementButtonContainer_1ox68_81",dt={elementSelector:H1,header:K1,nameDateContainer:G1,elementName:Z1,elementDate:Y1,buttonsContainer:X1,elementListContainer:Q1,newElementButtonContainer:J1},ed="_listElement_s4s4h_3",td="_elementNameDate_s4s4h_19",nd="_elementNameContainer_s4s4h_30",rd="_elementName_s4s4h_19",od="_elementDate_s4s4h_47",sd="_nameAndEye_s4s4h_50",id="_elementButtons_s4s4h_55",ad="_moreInfoContainer_s4s4h_78",ld="_moreInfo_s4s4h_78",Ze={listElement:ed,elementNameDate:td,elementNameContainer:nd,elementName:rd,elementDate:od,nameAndEye:sd,elementButtons:id,break:"_break_s4s4h_73",moreInfoContainer:ad,moreInfo:ld},cd="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",ud="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",dd="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",fd="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",pd="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",md="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='Editar'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203792'%3e%3cpath%20id='Vector%20530'%20d='M22.469%2010.8343L19.54%207.90531C19.3447%207.71005%2019.0281%207.71005%2018.8329%207.90531L8.39131%2018.3469C8.31762%2018.4206%208.2688%2018.5154%208.25167%2018.6182L7.66586%2022.1331C7.60946%2022.4715%207.90285%2022.7649%208.24126%2022.7085L11.7561%2022.1227C11.8589%2022.1055%2011.9538%2022.0567%2012.0275%2021.983L22.469%2011.5415C22.6643%2011.3462%2022.6643%2011.0296%2022.469%2010.8343Z'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20531'%20d='M9.00391%2017.7334L12.6401%2021.3695'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20614'%20d='M19.4292%207.55176L9.24805%2017.733L12.6418%2021.1267L22.823%2010.9455L19.4292%207.55176Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",hd="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%206729'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='i'%20d='M14%209.008C14%208.708%2014.102%208.468%2014.306%208.288C14.51%208.096%2014.78%208%2015.116%208C15.452%208%2015.722%208.096%2015.926%208.288C16.13%208.468%2016.232%208.708%2016.232%209.008C16.232%209.308%2016.13%209.554%2015.926%209.746C15.722%209.926%2015.452%2010.016%2015.116%2010.016C14.78%2010.016%2014.51%209.926%2014.306%209.746C14.102%209.554%2014%209.308%2014%209.008ZM15.926%2011.906V21.788H14.288V11.906H15.926Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e";var bi;function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},so.apply(null,arguments)}var gd=function(t){return ee.createElement("svg",so({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},t),bi||(bi=ee.createElement("g",{fill:"currentColor"},ee.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"}),ee.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 yd="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",zo=({listelement:e,onClickElement:t,isActive:n,activeColor:r,fontColor:o,moreInfo:i,columns:a,elementButtons:c,processTooltip:u,defaultTooltip:d,showEye:m=!0})=>{const{name:h,created_at:y,id:g,isBeingProcessed:b}=e,[f,C]=w.useState(!1),{t:_}=le.useTranslation(),S=c&&c.edit&&!e.is_default&&!e.is_baseline,E=c&&c.trash&&!e.is_default&&!e.is_baseline;return l.jsxs("div",{className:Ze.listElement,style:{borderBottom:`1px solid ${o}`},children:[l.jsx("div",{className:Ze.elementNameDate,onClick:()=>t(g),children:Object.keys(a).map((v,x)=>v==="name"?l.jsx("div",{className:Ze.elementNameContainer,children:l.jsxs("div",{className:`${Ze.elementName} ${m&&Ze.nameAndEye}`,children:[m&&(n?l.jsx(gd,{style:{color:r,marginRight:9}}):l.jsx("img",{style:{marginRight:9},src:yd,alt:"eye"})),l.jsx("span",{style:{color:n?r:o},children:h})]})},`col${x}`):v=="data"?l.jsx("div",{className:Ze.elementDate,children:y?new Date(y).toLocaleDateString():""},`col${x}data`):l.jsx("div",{className:Ze.elementDate,children:e[v]},`col${x}other`))}),l.jsxs("div",{className:Ze.elementButtons,children:[e.processing&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("img",{src:fd}),l.jsx(nt,{text:u,position:"left"})]}),c.filter&&!e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.filter.onclick(e),disabled:c.filter.disabled||!1,children:l.jsx("img",{src:dd})}),l.jsx(nt,{text:c.filter.tooltiptext,position:"left"})]}),c.copy&&!e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.copy.onclick(e),disabled:c.copy.disabled||!1,children:l.jsx("img",{src:ud})}),l.jsx(nt,{text:c.copy.tooltiptext,position:"left"})]}),S&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.edit.onclick(e),disabled:c.edit.disabled||!1,children:l.jsx("img",{src:md})}),l.jsx(nt,{text:c.edit.tooltiptext,position:"left"})]}),c.info&&e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.info.onclick(e),disabled:c.info.disabled||!1,children:l.jsx("img",{src:hd})}),l.jsx(nt,{text:c.info.tooltiptext,position:"left"})]}),E&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.trash.onclick(e),disabled:c.trash.disabled||!1,children:l.jsx("img",{src:cd})}),l.jsx(nt,{text:c.trash.tooltiptext,position:"left"})]}),e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("img",{src:pd}),l.jsx(nt,{text:d,position:"left"})]})]}),i&&l.jsx("div",{className:Ze.break}),i&&l.jsxs("div",{className:Ze.moreInfoContainer,children:[l.jsxs("div",{className:Ze.moreInfo,onClick:()=>C(!f),children:[l.jsx("span",{children:f?"-":"+"}),_(i.label)]}),i&&f&&l.jsx("div",{className:Ze.moreInfoInfo,children:e[i.info]})]})]})};zo.displayName="ListElement";zo.propTypes={listelement:s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired,isBeingProcessed:s.bool}).isRequired,onClickElement:s.func.isRequired,isActive:s.bool,activeColor:s.string,fontColor:s.string,moreInfo:s.any,columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const vi="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",qo=({elementsList:e,activeElementId:t,fontColor:n="#605B56",activeColor:r,buttonContainerStyles:o={},containerStyles:i={},newElementButton:a,onClickElement:c=b=>console.log(`OnCLickElement: ${b}`),columns:u,elementButtons:d,moreInfo:m=!1,processTooltip:h,defaultTooltip:y,showEye:g=!0})=>{const{t:b}=le.useTranslation(),[f,C]=w.useState(e);w.useEffect(()=>{e&&C(e)},[e]);const _=v=>{if(typeof v!="string")return null;if(/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(v))return new Date(v);const x=/^(\d{2})[-/.]\s*(\d{2})[-/.]\s*(\d{4})$/.exec(v);if(x)return new Date(`${x[3]}-${x[2]}-${x[1]}`);const T=/^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(v);return T?parseInt(T[1])>12?new Date(`${T[3]}-${T[2]}-${T[1]}`):new Date(`${T[3]}-${T[1]}-${T[2]}`):null},S=v=>_(v)!==null,E=v=>{if(!f||f.length===0)return;let x=[...f];const T=x.find(j=>j[v]!==null&&j[v]!==void 0),O=T?S(T[v]):!1;x.sort((j,$)=>{const z=j[v],D=$[v];if(z==null&&D==null)return 0;if(z==null)return 1;if(D==null)return-1;if(O){const k=_(z),R=_(D);return!k&&!R?0:k?R?k-R:-1:1}const p=String(z||"").trim(),N=String(D||"").trim();return p.localeCompare(N)}),C(x)};return l.jsxs("div",{className:dt.elementSelector,style:{color:n,...i},children:[l.jsxs("div",{className:dt.header,style:{borderBottom:`1px solid ${n}`},children:[l.jsx("div",{className:dt.nameDateContainer,children:Object.keys(u).map(v=>v==="name"?l.jsx("div",{className:dt.elementName,children:l.jsxs("button",{onClick:()=>E("name"),children:[l.jsx("span",{children:b(u.name)}),l.jsx("img",{src:vi,alt:"order arrow"})]})},v):v==="data"?l.jsx("div",{className:dt.elementDate,children:l.jsxs("button",{onClick:()=>E("created_at"),children:[l.jsx("span",{children:b(u.data)}),l.jsx("img",{src:vi,alt:"order arrow"})]})},v):l.jsx("div",{className:dt.elementDate,children:l.jsx("span",{children:b(u[v])})},v))}),l.jsx("div",{className:dt.buttonsContainer})]}),l.jsx("div",{className:dt.elementListContainer,children:f&&f.length>0&&f.map(v=>l.jsx(zo,{isActive:t==v.id,listelement:v,fontColor:n,activeColor:r,onClickElement:c,columns:u,elementButtons:d,moreInfo:m,processTooltip:h,defaultTooltip:y,showEye:g},`elementKey${v.id}`))}),a&&l.jsx("div",{className:dt.newElementButtonContainer,children:l.jsx(pn,{style:{...o},onClick:a.onClick,borderColor:"grey",disabled:a.disabled||!1,children:b(a.label)})})]})};qo.displayName="ListSelector";qo.propTypes={elementsList:s.arrayOf(s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired})).isRequired,activeElementId:s.any,fontColor:s.string,activeColor:s.string,onClickElement:s.func.isRequired,newElementButton:s.shape({label:s.string,onClick:s.func}),columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),buttonContainerStyles:s.object,containerStyles:s.object,onCLickNewElement:s.func,moreInfo:s.shape({label:s.string,info:s.any}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const bd="_formContainer_asv64_2",vd="_categorySelectorContainer_asv64_11",xd="_formObjectContainer_asv64_15",Cd="_buttonContainer_asv64_26",vn={formContainer:bd,categorySelectorContainer:vd,formObjectContainer:xd,buttonContainer:Cd},on={text:"text",password:"password",radioList:"radioList",select:"select",textDescription:"textDescription",rankingSlider:"rankingSlider"};var _d=e=>e.type==="checkbox",wn=e=>e instanceof Date,Wo=e=>e==null;const xa=e=>typeof e=="object";var qt=e=>!Wo(e)&&!Array.isArray(e)&&xa(e)&&!wn(e),Sd=e=>qt(e)&&e.target?_d(e.target)?e.target.checked:e.target.value:e,wd=(e,t)=>t.split(".").some((n,r,o)=>!isNaN(Number(n))&&e.has(o.slice(0,r).join("."))),Td=e=>{const t=e.constructor&&e.constructor.prototype;return qt(t)&&t.hasOwnProperty("isPrototypeOf")},kd=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ca(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(kd&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(qt(e)&&Td(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=Ca(e[o]));return r}var _a=e=>/^\w*$/.test(e),io=e=>e===void 0,jd=e=>Array.isArray(e)?e.filter(Boolean):[],Sa=e=>jd(e.replace(/["|']|\]/g,"").split(/\.|\[/)),We=(e,t,n)=>{if(!t||!qt(e))return n;const r=(_a(t)?[t]:Sa(t)).reduce((o,i)=>Wo(o)?o:o[i],e);return io(r)||r===e?io(e[t])?n:e[t]:r},Hr=e=>typeof e=="boolean",Kn=e=>typeof e=="function",xi=(e,t,n)=>{let r=-1;const o=_a(t)?[t]:Sa(t),i=o.length,a=i-1;for(;++r<i;){const c=o[r];let u=n;if(r!==a){const d=e[c];u=qt(d)||Array.isArray(d)?d:isNaN(+o[r+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=u,e=e[c]}};const Ci={BLUR:"blur",CHANGE:"change"},_i={all:"all"},wa=w.createContext(null);wa.displayName="HookFormControlContext";const Uo=()=>w.useContext(wa);var $d=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==_i.all&&(t._proxyFormState[a]=!r||_i.all),n&&(n[a]=!0),e[a]}});return o};const Ta=typeof window<"u"?w.useLayoutEffect:w.useEffect;function Nd(e){const t=Uo(),{control:n=t,disabled:r,name:o,exact:i}=e||{},[a,c]=w.useState(n._formState),u=w.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Ta(()=>n._subscribe({name:o,formState:u.current,exact:i,callback:d=>{!r&&c({...n._formState,...d})}}),[o,r,i]),w.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),w.useMemo(()=>$d(a,n,u.current,!1),[a,n])}var Ed=e=>typeof e=="string",Si=(e,t,n,r,o)=>Ed(e)?We(n,e,o):Array.isArray(e)?e.map(i=>We(n,i)):n,wi=e=>Wo(e)||!xa(e);function er(e,t,n=new WeakSet){if(wi(e)||wi(t))return Object.is(e,t);if(wn(e)&&wn(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const a=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const c=t[i];if(wn(a)&&wn(c)||(qt(a)||Array.isArray(a))&&(qt(c)||Array.isArray(c))?!er(a,c,n):!Object.is(a,c))return!1}}return!0}function Ad(e){const t=Uo(),{control:n=t,name:r,defaultValue:o,disabled:i,exact:a,compute:c}=e||{},u=w.useRef(o),d=w.useRef(c),m=w.useRef(void 0),h=w.useRef(n),y=w.useRef(r);d.current=c;const[g,b]=w.useState(()=>{const v=n._getWatch(r,u.current);return d.current?d.current(v):v}),f=w.useCallback(v=>{const x=Si(r,n._names,v||n._formValues,!1,u.current);return d.current?d.current(x):x},[n._formValues,n._names,r]),C=w.useCallback(v=>{if(!i){const x=Si(r,n._names,v||n._formValues,!1,u.current);if(d.current){const T=d.current(x);er(T,m.current)||(b(T),m.current=T)}else b(x)}},[n._formValues,n._names,i,r]);Ta(()=>((h.current!==n||!er(y.current,r))&&(h.current=n,y.current=r,C()),n._subscribe({name:r,formState:{values:!0},exact:a,callback:v=>{C(v.values)}})),[n,a,r,C]),w.useEffect(()=>n._removeUnmounted());const _=h.current!==n,S=y.current,E=w.useMemo(()=>{if(i)return null;const v=!_&&!er(S,r);return _||v?f():null},[i,_,r,S,f]);return E!==null?E:g}function Od(e){const t=Uo(),{name:n,disabled:r,control:o=t,shouldUnregister:i,defaultValue:a,exact:c=!0}=e,u=wd(o._names.array,n),d=w.useMemo(()=>We(o._formValues,n,We(o._defaultValues,n,a)),[o,n,a]),m=Ad({control:o,name:n,defaultValue:d,exact:c}),h=Nd({control:o,name:n,exact:c}),y=w.useRef(e),g=w.useRef(void 0),b=w.useRef(o.register(n,{...e.rules,value:m,...Hr(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const f=w.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!We(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!We(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!We(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!We(h.validatingFields,n)},error:{enumerable:!0,get:()=>We(h.errors,n)}}),[h,n]),C=w.useCallback(v=>b.current.onChange({target:{value:Sd(v),name:n},type:Ci.CHANGE}),[n]),_=w.useCallback(()=>b.current.onBlur({target:{value:We(o._formValues,n),name:n},type:Ci.BLUR}),[n,o._formValues]),S=w.useCallback(v=>{const x=We(o._fields,n);x&&x._f&&v&&(x._f.ref={focus:()=>Kn(v.focus)&&v.focus(),select:()=>Kn(v.select)&&v.select(),setCustomValidity:T=>Kn(v.setCustomValidity)&&v.setCustomValidity(T),reportValidity:()=>Kn(v.reportValidity)&&v.reportValidity()})},[o._fields,n]),E=w.useMemo(()=>({name:n,value:m,...Hr(r)||h.disabled?{disabled:h.disabled||r}:{},onChange:C,onBlur:_,ref:S}),[n,r,h.disabled,C,_,S,m]);return w.useEffect(()=>{const v=o._options.shouldUnregister||i,x=g.current;x&&x!==n&&!u&&o.unregister(x),o.register(n,{...y.current.rules,...Hr(y.current.disabled)?{disabled:y.current.disabled}:{}});const T=(O,j)=>{const $=We(o._fields,O);$&&$._f&&($._f.mount=j)};if(T(n,!0),v){const O=Ca(We(o._options.defaultValues,n,y.current.defaultValue));xi(o._defaultValues,n,O),io(We(o._formValues,n))&&xi(o._formValues,n,O)}return!u&&o.register(n),g.current=n,()=>{(u?v&&!o._state.action:v)?o.unregister(n):T(n,!1)}},[n,o,u,i]),w.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),w.useMemo(()=>({field:E,formState:h,fieldState:f}),[E,h,f])}const An=e=>e.render(Od(e)),Md=w.createContext(null);Md.displayName="HookFormContext";const Ld="_textInputContainer_1o3iy_2",Rd="_labelContainer_1o3iy_5",Id="_inputContainer_1o3iy_8",Dd="_showPasswordButton_1o3iy_14",Bd="_forgotPassButton_1o3iy_26",xn={textInputContainer:Ld,labelContainer:Rd,inputContainer:Id,showPasswordButton:Dd,forgotPassButton:Bd},Pd="_errorMessage_1xiyb_2",Fd={errorMessage:Pd},Ht=({errorMessage:e,errorColor:t="red",containerStyles:n})=>{const{t:r}=le.useTranslation();return l.jsx("div",{className:Fd.errorMessage,style:{color:t,...n},children:e?r(e):""})};Ht.displayName="ErrorMessage";const Vd="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",zd="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",On=co.create(e=>({errorColor:"red"})),ar=({input:e,reactHookFormInstance:t})=>{const{code:n,type:r,label:o,maxLength:i,required:a,validateFunction:c,placeholder:u,errorColor:d="red",width:m=325,onClickForgotPass:h=()=>{console.log("Click on forgot password")},forgotPassLabel:y="forgot-password",onChangeExtraFunction:g=()=>{}}=e,{t:b}=le.useTranslation(),{control:f,trigger:C,clearErrors:_}=t,{errorColor:S}=On(T=>T),[E,v]=w.useState(!1);w.useRef(a);const x=()=>r?r==="password"&&E?"text":r:"text";return l.jsx(An,{name:n,control:f,rules:{required:a?`${b(o)} ${b("errorMessages.required")}`:!1,maxLength:i||void 0,validate:c||void 0},render:({field:T,fieldState:O})=>{var D;const{onChange:j,...$}=T,z=p=>{j(p),g&&g(p)};return l.jsxs("div",{className:xn.textInputContainer,children:[l.jsxs("h3",{className:xn.labelContainer,children:[b(o)," ",a&&l.jsx("label",{style:{color:O.error?d:""},children:"*"})]}),l.jsxs("div",{style:{position:"relative",width:m},className:xn.inputContainer,children:[l.jsx("input",{...$,type:x(),onChange:z,placeholder:u?b(u):"",maxLength:i||void 0}),r=="password"&&l.jsx("button",{onClick:()=>v(!E),type:"button",className:xn.showPasswordButton,children:l.jsx("img",{src:E?zd:Vd,alt:b("show-password")})})]}),r=="password"&&l.jsx("div",{className:xn.forgotPassButton,children:l.jsx("button",{onClick:h,children:b(y)})}),l.jsx(Ht,{errorMessage:(D=O.error)==null?void 0:D.message,errorColor:S||d})]})}})};ar.displayName="TextInput";const qd="_inputsContainer_10t9s_2",sn={inputsContainer:qd},Wd="_selectInputContainer_zzz6o_2",Ud="_labelContainer_zzz6o_6",Hd="_selectWrapper_zzz6o_9",Kd="_inputContainer_zzz6o_15",Gd="_selectInput_zzz6o_2",Zd="_option_zzz6o_29",Yd="_dropdownArrow_zzz6o_32",Fe={selectInputContainer:Wd,labelContainer:Ud,selectWrapper:Hd,inputContainer:Kd,selectInput:Gd,option:Zd,dropdownArrow:Yd},Ti="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",Ho=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,type:o,label:i,maxLength:a,required:c,validateFunction:u,placeholder:d,errorColor:m="red",width:h=325,options:y=[]}=e,{t:g}=le.useTranslation(),{control:b,trigger:f,clearErrors:C}=t||{},{errorColor:_}=On(v=>v);w.useRef(c);const[S,E]=w.useState(null);return w.useEffect(()=>{S&&n&&n(S)},[S,n]),t?l.jsx(An,{name:r,control:b,rules:{required:c?`${g(i)} ${g("errorMessages.required")}`:!1,validate:u?v=>{let x=t.getValues();return u(v,x)}:void 0},render:({field:v,fieldState:x})=>{var O;const T=y.find(j=>j.value===v.value);return l.jsxs("div",{className:Fe.selectInputContainer,children:[i&&l.jsxs("h3",{className:Fe.labelContainer,children:[g(i)," ",c&&l.jsx("label",{style:{color:x.error?m:""},children:"*"})]}),l.jsxs("div",{className:Fe.selectWrapper,children:[l.jsxs("div",{className:Fe.inputContainer,style:{width:h},children:[l.jsxs("select",{...v,value:v.value??"",onChange:j=>{const $=j.target.value,z=y.every(D=>typeof D.value=="number")?Number($):$;v.onChange(z)},className:Fe.selectInput,children:[l.jsx("option",{value:"",disabled:!0,hidden:!0,children:g(d||"selectOption")}),y.map((j,$)=>l.jsx("option",{value:j.value,className:Fe.option,children:g(j.label)},$))]}),l.jsx("img",{src:Ti,alt:"Open",className:Fe.dropdownArrow})]}),T&&T.description&&l.jsx("div",{className:Fe.optionDescription,children:g(T.description)})]}),l.jsx(Ht,{errorMessage:(O=x.error)==null?void 0:O.message,errorColor:_||m})]})}}):l.jsxs("div",{className:Fe.selectInputContainer,children:[i&&l.jsxs("h3",{className:Fe.labelContainer,children:[g(i)," ",c&&l.jsx("label",{children:"*"})]}),l.jsxs("div",{className:Fe.inputContainer,style:{width:h},children:[l.jsxs("select",{value:S??"",onChange:v=>{const x=v.target.value,T=y.every(O=>typeof O.value=="number")?Number(x):x;E(T)},className:Fe.selectInput,children:[l.jsx("option",{value:"",disabled:!0,hidden:!0,children:g(d||"selectOption")}),y.map((v,x)=>l.jsx("option",{value:v.value,className:Fe.option,children:g(v.label)},x))]}),l.jsx("img",{src:Ti,alt:"Open",className:Fe.dropdownArrow})]}),(()=>{const v=y.find(x=>x.value===S);return v&&v.description?l.jsx("div",{className:Fe.optionDescription,children:g(v.description)}):null})()]})};Ho.displayName="SelectInput";const Xd="_radioButtonContainer_1e994_2",Qd="_wholeInputContainer_1e994_5",Jd="_questionContainer_1e994_27",ef="_radioQuestion_1e994_59",tf="_inputContainer_1e994_63",nf="_radioInput_1e994_93",Bt={radioButtonContainer:Xd,wholeInputContainer:Qd,questionContainer:Jd,radioQuestion:ef,inputContainer:tf,radioInput:nf},Ko=({input:e,reactHookFormInstance:t})=>{const{code:n,label:r,required:o,validateFunction:i,errorColor:a="red",options:c=[],multi:u=!1}=e,{t:d}=le.useTranslation(),{control:m,trigger:h,clearErrors:y}=t,{errorColor:g}=On(C=>C),b=({options:C,onChange:_,actualValue:S})=>{if(u&&S&&S.length>0){let E=S.filter(v=>v!==C);_(E)}},f=({options:C,onChange:_,actualValue:S})=>{u?S&&S.length>0?_([...S,C]):_([C]):_(C)};return w.useRef(o),l.jsx(An,{control:m,name:n,rules:{validate:C=>o&&(C==null||C==="")?`${d(r)} ${d("errorMessages.required")}`:null},render:({formState:{errors:C},field:{onChange:_,onBlur:S,value:E,ref:v},fieldState:x})=>{var T;return l.jsx("div",{id:n+"id",className:Bt.radioButtonContainer,children:l.jsxs("div",{className:Bt.wholeInputContainer,children:[r&&l.jsx("div",{className:Bt.questionContainer,children:l.jsxs("h3",{htmlFor:n+"id",className:`${Bt.radioQuestion} ${o&&Bt.required}`,children:[d(r)," ",o&&l.jsx("label",{style:{color:x.error?a:""},children:"*"})]})}),l.jsxs("div",{className:Bt.inputContainer,children:[c.map(({label:O,value:j,disabled:$=!1,italicLabel:z},D)=>{const p=E&&u?E.isArray&&(E==null?void 0:E.length)>0&&E.some(N=>N===j):E===j;return l.jsxs("label",{children:[l.jsx("input",{type:"radio",checked:p,onChange:()=>{u?p?b({actualValue:E,options:c,onChange:_}):f({actualValue:E,options:c,onChange:_}):_(j)},className:Bt.radioInput}),l.jsx("span",{className:"radio-custom"}),d(O)]},`inputRadio ${D}`)}),l.jsx(Ht,{errorMessage:(T=x.error)==null?void 0:T.message,errorColor:g||a})]})]})})}})};Ko.displayName="RadioButtonInput";const rf="_rankingSliderContainer_1dvpb_2",of="_labelContainer_1dvpb_6",sf="_inputContainer_1dvpb_10",af="_slider_1dvpb_20",lf="_thumb_1dvpb_27",cf="_labels_1dvpb_37",uf="_minLabel_1dvpb_67",df="_maxLabel_1dvpb_68",Ee={rankingSliderContainer:rf,labelContainer:of,inputContainer:sf,slider:af,thumb:lf,labels:cf,minLabel:uf,maxLabel:df},Tr=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,label:o,minValue:i=1,maxValue:a=5,defValue:c=3,thumbColor:u="#B32F5D",required:d,errorColor:m="red",labelWidth:h="300px",sliderWidth:y="300px",minText:g,maxText:b,disabled:f=!1,marks:C=Array.from({length:a-i+1},($,z)=>i+z),showMarksNumber:_=!0}=e,{t:S}=le.useTranslation(),{control:E,trigger:v,clearErrors:x}=t||{};w.useRef(d);const{errorColorForm:T}=On($=>$),[O,j]=w.useState(c);return t?l.jsx(An,{name:r,control:E,defaultValue:c,rules:{required:d?`${S(o)} ${S("errorMessages.required")}`:!1},render:({field:$,fieldState:z})=>{var D;return l.jsxs("div",{className:Ee.rankingSliderContainer,style:{gridTemplateColumns:`${o&&h} ${y}`},children:[o&&l.jsx("p",{className:Ee.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:S(o)}),l.jsxs("div",{className:Ee.inputContainer,children:[g&&l.jsx("div",{className:Ee.minLabel,children:S(g)}),l.jsxs("div",{children:[l.jsx(Jr,{min:i,max:a,step:1,value:$.value??c,onChange:p=>{$.onChange(p)},marks:!0,className:Ee.slider,thumbClassName:Ee.thumb,renderThumb:p=>l.jsx("div",{...p,style:{...p.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:Ee.track,markClassName:Ee.mark,disabled:f}),C&&l.jsx("div",{className:Ee.labels,children:C.map(p=>l.jsx("span",{children:_&&p},p))})]}),b&&l.jsx("div",{className:Ee.maxLabel,children:S(b)})]}),l.jsx(Ht,{errorMessage:(D=z.error)==null?void 0:D.message,errorColor:T||m})]})}}):l.jsxs("div",{className:Ee.rankingSliderContainer,style:{gridTemplateColumns:`${o&&h} ${y}`},children:[o&&l.jsx("p",{className:Ee.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:S(o)}),l.jsxs("div",{className:Ee.inputContainer,children:[g&&l.jsx("div",{className:Ee.minLabel,children:S(g)}),l.jsxs("div",{children:[l.jsx(Jr,{min:i,max:a,step:1,value:O,onChange:$=>{j($),n&&n($)},marks:!0,className:Ee.slider,thumbClassName:Ee.thumb,renderThumb:$=>l.jsx("div",{...$,style:{...$.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:Ee.track,markClassName:Ee.mark,disabled:f}),C&&l.jsx("div",{className:Ee.labels,children:C.map($=>l.jsx("span",{children:_&&$},$))})]}),b&&l.jsx("div",{className:Ee.maxLabel,children:S(b)})]})]})};Tr.displayName="RankingSlider";Tr.propTypes={input:s.shape({code:s.string,label:s.string,minValue:s.number,maxValue:s.number,defValue:s.number,thumbColor:s.string,required:s.bool,errorColor:s.string,labelWidth:s.string,sliderWidth:s.string,minText:s.string,maxText:s.string}),reactHookFormInstance:s.object};const ff="_textDescriptionContainer_163pc_2",pf="_textDescriptionText_163pc_6",ki={textDescriptionContainer:ff,textDescriptionText:pf},ka=({input:e,inputContainerStyles:t})=>l.jsx("div",{className:ki.textDescriptionContainer,style:{margin:"10px 0",...t},children:l.jsx("p",{className:ki.textDescriptionText,children:e.text})});ka.displayName="TextDescription";const cn=({inputs:e,inputContainerStyles:t,reactHookFormInstance:n})=>{const{watch:r}=n,o=r(),i=w.useMemo(()=>e==null?void 0:e.map(a=>{const c=typeof a.required=="function"?a.required(o):a.required;return{...a,required:c}}),[e,o]);return l.jsx("div",{className:sn.inputsContainer,children:i==null?void 0:i.map((a,c)=>{const{inputType:u}=a;switch(u){case on.text:return l.jsx("div",{className:sn.inputContainer,style:{...t},children:l.jsx(ar,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case on.password:return l.jsx("div",{className:sn.inputContainer,style:{...t},children:l.jsx(ar,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case on.select:return l.jsx("div",{className:sn.inputContainer,style:{...t},children:l.jsx(Ho,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case on.radioList:return l.jsx("div",{className:sn.inputContainer,style:{...t},children:l.jsx(Ko,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case on.rankingSlider:return l.jsx("div",{className:sn.inputContainer,style:{...t},children:l.jsx(Tr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case on.textDescription:return l.jsx(ka,{input:a,inputContainerStyles:t},`${a.code}${c}`);default:return l.jsx("div",{children:l.jsx("h4",{children:"Default"})},`${a.code}${c}`)}})})};cn.displayName="RenderInputs";const mf="_categorySelector_1guuv_2",hf="_sectionItemActive_1guuv_16",gf="_sectionItem_1guuv_16",yf="_sectionItemError_1guuv_32",Cn={categorySelector:mf,sectionItemActive:hf,sectionItem:gf,sectionItemError:yf},lr=({categories:e,onChange:t,activeCategory:n,activeColor:r,containerStyles:o={},categoriesWithErrors:i=[]})=>{const{t:a}=le.useTranslation(),c=u=>{t(u)};return l.jsx("div",{className:Cn.categorySelector,style:o?{...o}:{},children:e.map((u,d)=>{const{id:m,label:h}=u,y=n==m,g=i.includes(m);return l.jsx("button",{className:`${Cn.sectionItem} ${y?Cn.sectionItemActive:""} ${g?Cn.sectionItemError:""}`,type:"button",style:{backgroundColor:y?r:"inherit"},onClick:()=>c(m),children:l.jsx("span",{style:{color:y?"white":"inherit"},className:Cn.sectionLabel,children:a(h)})},`keySection${d}`)})})};lr.displayName="CategorySelector";const ja=({reactHookFormInstance:e,formObject:t,CategoryComponent:n,inputContainerStyles:r,generalError:o,errorColor:i="red",submitButtonLabel:a="Submit",submitButtonStyles:c={width:325},showCategorySelector:u=!0,defaultCategory:d=null,categoryLabel:m="Select Category",activeCategory:h=null,activeCategoryColor:y="#b32f5d",categoriesWithErrors:g=[],onSubmit:b=f=>console.log("Form submitted with: ",f)})=>{const{t:f}=le.useTranslation(),{handleSubmit:C,control:_}=e;w.useEffect(()=>{i&&On.setState(()=>({errorColor:i}))},[i]);const S=w.useMemo(()=>t?t.filter($=>$.category).map($=>{var z;return{id:$.categoryId,label:$.category,hasSubcategories:((z=$.subcategories)==null?void 0:z.length)>0}}):[],[t]),E=$=>{const z=t==null?void 0:t.find(D=>D.categoryId===$);return(z==null?void 0:z.subcategories)||[]},[v,x]=w.useState(h||d||null),[T,O]=w.useState(null);w.useEffect(()=>{!v&&S.length>0&&x(S[0].id)},[S,v]),w.useEffect(()=>{const $=E(v);!T&&($==null?void 0:$.length)>0&&O($[0].id)},[v,T,t]);const j=($,z)=>{var D;if(((D=$.subcategories)==null?void 0:D.length)>0){const p=$.subcategories;return l.jsxs("div",{children:[l.jsx("div",{className:vn.categorySelectorContainer,children:l.jsx(lr,{activeCategory:T,categories:p,categoriesWithErrors:g,onChange:N=>O(N),activeColor:y})},$.categoryId),p.map((N,k)=>{const R=!T||N.id===T;return n?l.jsx("div",{style:{display:R?"block":"none",width:"100%"},children:l.jsx(n,{title:N.label,children:l.jsx(cn,{inputs:N.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},N.id)},`${N.id}${k}`):l.jsxs("div",{style:{width:"100%",display:R?"block":"none"},children:[l.jsx("h3",{style:{marginBottom:15},children:f(N.label)}),l.jsx(cn,{inputs:N.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},`${N.id}${k}`)})]})}return n?l.jsx(n,{title:$.category,children:l.jsx(cn,{inputs:$.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},$.categoryId):l.jsxs("div",{style:{width:"100%"},children:[l.jsx("h2",{children:f($.category)}),l.jsx(cn,{inputs:$.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},$.categoryId)};return l.jsxs("form",{className:vn.formContainer,onSubmit:C(b),children:[u&&S.length>0&&l.jsx("div",{className:vn.categorySelectorContainer,children:l.jsx(lr,{activeCategory:v,categories:S,categoriesWithErrors:g,onChange:$=>{x($),O(null)},activeColor:y})}),l.jsx("div",{className:vn.formObjectContainer,children:t==null?void 0:t.map(($,z)=>{const D=$.categoryId===v;return $.category?l.jsx("div",{style:{width:"100%",display:D?"block":"none"},children:j($)},$.categoryId):l.jsx(cn,{inputs:$.inputs,control:_,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e},`no-category-${z}`)})}),l.jsxs("div",{className:vn.buttonContainer,children:[l.jsx(pn,{containerStyles:c,type:"submit",children:f(a)}),l.jsx(Ht,{errorMessage:o,errorColor:i})]})]})};ja.displayName="Form";const bf="_overlay_mnd4j_2",vf="_modal_mnd4j_15",xf="_closeButton_mnd4j_29",Cf="_icon_mnd4j_39",_f="_message_mnd4j_45",Sf="_submessage_mnd4j_51",wf="_buttonsContainer_mnd4j_57",Tf="_buttonWrapper_mnd4j_64",wt={overlay:bf,modal:vf,closeButton:xf,icon:Cf,message:_f,submessage:Sf,buttonsContainer:wf,buttonWrapper:Tf},Go=({onClose:e,icon:t,message:n,submessage:r,buttons:o,maxHeight:i="450px",maxWidth:a="450px"})=>l.jsx("div",{className:wt.overlay,children:l.jsxs("div",{className:wt.modal,style:{maxHeight:i,maxWidth:a},children:[l.jsx("button",{className:wt.closeButton,onClick:e,"aria-label":"Close modal",children:"✕"}),t&&l.jsx("img",{src:t,alt:"icon",className:wt.icon}),l.jsx("p",{className:wt.message,children:n}),r&&l.jsx("p",{className:wt.submessage,children:r}),o.length>0&&l.jsx("div",{className:wt.buttonsContainer,children:o.map((c,u)=>l.jsx("div",{className:wt.buttonWrapper,children:c},u))})]})});Go.displayName="ModalAlert";Go.propTypes={onClose:s.func.isRequired,icon:s.string,message:s.string.isRequired,submessage:s.string,buttons:s.arrayOf(s.node),maxHeight:s.string,maxWidth:s.string};const kf="_stepsContainer_1cyua_3",jf="_stepWrapper_1cyua_9",$f="_circleContainer_1cyua_19",Nf="_circle_1cyua_19",Ef="_active_1cyua_39",Af="_completed_1cyua_44",Of="_label_1cyua_50",Mf="_labelActive_1cyua_56",Lf="_connector_1cyua_61",ft={stepsContainer:kf,stepWrapper:jf,circleContainer:$f,circle:Nf,active:Ef,completed:Af,label:Of,labelActive:Mf,connector:Lf},Zo=({steps:e,activeColor:t="#C2185B"})=>l.jsx("div",{className:ft.stepsContainer,children:e.map((n,r)=>{const o=n.status==="active",i=n.status==="completed";return l.jsxs("div",{className:ft.stepWrapper,children:[l.jsxs("div",{className:ft.circleContainer,children:[l.jsx("div",{className:`${ft.circle}
|
|
81
|
-
${o?
|
|
82
|
-
${i?
|
|
83
|
-
${o&&Gn.active}`,children:l.jsx("span",{className:Gn.buttonName,children:t(i)})})},r)})})};Xo.displayName="ButtonsBar";Xo.propTypes={buttons:s.arrayOf(s.shape({isActive:s.bool,name:s.string,onClick:s.func})).isRequired};const Ff="_switchContainer_194wl_2",Vf="_labelRight_194wl_9",zf="_labelLeft_194wl_9",qf="_slider_194wl_28",Wf="_disabled_194wl_54",an={switchContainer:Ff,labelRight:Vf,labelLeft:zf,switch:"_switch_194wl_2",slider:qf,disabled:Wf},Qo=({input:e,reactHookFormInstance:t,onChange:n,onoff:r=!0})=>{const{code:o,labelLeft:i,labelRight:a,defValue:c=!1,colorOn:u="#5A514D",disabled:d=!1,width:m=240}=e,{t:h}=le.useTranslation(),{control:y}=t||{},[g,b]=w.useState(c),f=_=>{b(_),n&&n(_)},C=(_,S)=>l.jsxs("div",{className:an.switchContainer,style:{width:`${m}px`},children:[i&&l.jsx("span",{className:an.labelLeft,style:{width:`${(m-74)/2}px`},children:h(i)}),l.jsxs("label",{className:`${an.switch} ${d?an.disabled:""}`,children:[l.jsx("input",{type:"checkbox",checked:!!_,onChange:()=>S(!_),disabled:d}),l.jsx("span",{className:an.slider,style:{"--switch-thumb-color":r?_?u:"#ccc":u}})]}),a&&l.jsx("span",{className:an.labelRight,style:{width:`${(m-74)/2}px`},children:h(a)})]});return t?l.jsx(An,{name:o,control:y,defaultValue:c,render:({field:_})=>C(_.value,_.onChange)}):C(g,f)};Qo.displayName="Switch";Qo.propTypes={input:s.shape({code:s.string,labelLeft:s.string,labelRight:s.string,defValue:s.bool,colorOn:s.string,disabled:s.bool}),reactHookFormInstance:s.object,onChange:s.func};const Uf="_overlay_1xyw2_2",Hf="_popup_1xyw2_15",Kf="_gif_1xyw2_25",Gf="_message_1xyw2_31",Zn={overlay:Uf,popup:Hf,gif:Kf,message:Gf},Jo=({gifSrc:e,message:t})=>l.jsx("div",{className:Zn.overlay,children:l.jsxs("div",{className:Zn.popup,children:[e&&l.jsx("img",{src:e,alt:"loading animation",className:Zn.gif}),t&&l.jsx("p",{className:Zn.message,children:t})]})});Jo.displayName="Loader";Jo.propTypes={gifSrc:s.string,message:s.string};const Zf="_container_1pl8d_3",Yf="_burger_1pl8d_10",Xf="_menu_1pl8d_21",Qf="_menuOpen_1pl8d_35",Jf="_menuClose_1pl8d_40",ep="_list_1pl8d_46",tp="_item_1pl8d_56",np="_button_1pl8d_91",st={container:Zf,burger:Yf,menu:Xf,menuOpen:Qf,menuClose:Jf,list:ep,item:tp,button:np},es=({options:e,backgroundColor:t="#ffffff",textColor:n="#000000",iconColor:r="#000000"})=>{const[o,i]=w.useState(!1),a=()=>i(b=>!b),c=()=>i(!1),u=7,d=o?11:0,m=o?13:0,h=o?-11.51666:0,y=o?-13:0,g="0.35s";return l.jsxs("div",{className:st.container,children:[l.jsx("button",{onClick:a,className:st.burger,children:l.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[l.jsx("g",{style:{transform:`translateY(${d}px)`,transition:`transform ${g} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"20",cy:"9",r:u,fill:r})}),l.jsx("g",{style:{transform:`translate(${m}px, ${h}px)`,transition:`transform ${g} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"7",cy:"31.51666",r:u,fill:r})}),l.jsx("g",{style:{transform:`translate(${y}px, ${h}px)`,transition:`transform ${g} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"33",cy:"31.51666",r:u,fill:r})}),l.jsx("g",{style:{opacity:o?1:0,transition:`opacity ${g} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"20",cy:"20",r:"10",fill:r})}),l.jsxs("g",{stroke:t,strokeWidth:"2",strokeLinecap:"round",style:{opacity:o?1:0,transition:`opacity ${g} cubic-bezier(0.42, 0, 0.58, 1)`},children:[l.jsx("line",{x1:"17",y1:"17",x2:"23",y2:"23"}),l.jsx("line",{x1:"23",y1:"17",x2:"17",y2:"23"})]})]})}),l.jsx("div",{className:`${st.menu} ${o?st.menuOpen:st.menuClose}`,style:{backgroundColor:t,color:n},children:l.jsx("ul",{className:st.list,children:e.map((b,f)=>l.jsxs("li",{className:st.item,children:[b.url&&l.jsx(Di.NavLink,{to:b.url,className:({isActive:C})=>`${st.link} ${C?st.active:""}`,onClick:c,style:{color:n},children:b.name}),b.onclick&&l.jsx("button",{className:st.button,onClick:()=>{b.onclick(),c()},children:b.name}),b.component&&b.component]},f))})})]})};es.displayName="BurgerMenu";es.propTypes={options:s.array.isRequired,backgroundColor:s.string,textColor:s.string,iconColor:s.string};const rp="_svgContainer_1rxoe_2",op="_svg_1rxoe_2",ji={svgContainer:rp,svg:op},ts=({data:e,keys:t,colors:n,width:r="100%",height:o=300,margin:i={top:20,right:20,bottom:60,left:60},className:a="",showXAxisLabels:c=!0,showYAxisLabels:u=!0,showGrid:d=!0,xAxisTickRotation:m=-90,yAxisTickFormat:h=v=>v.toLocaleString("es-ES"),barPadding:y=.1,groupPadding:g=.05,animationDuration:b=750,onBarHover:f,onBarClick:C,title:_,xAxisLabel:S,yAxisLabel:E})=>{const v=w.useRef(),x=w.useRef(),[T,O]=w.useState({width:0,height:0});return w.useEffect(()=>{const j=()=>{if(x.current){const $=x.current.getBoundingClientRect().width;O({width:typeof r=="number"?r:$,height:o})}};return j(),window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[r,o]),w.useEffect(()=>{if(!e||e.length===0||T.width===0)return;const j=ce.select(v.current),$=T.width,z=T.height,D=$-i.left-i.right,p=z-i.top-i.bottom;if(D<=0||p<=0)return;const N=e.map(B=>B.anyo||B.year||B.x),k=t,R=ce.min(e,B=>ce.min(k,G=>B[G]))||0,q=ce.max(e,B=>ce.max(k,G=>B[G]))||0,I=ce.scaleBand().domain(N).rangeRound([0,D]).paddingInner(y),V=ce.scaleBand().domain(k).rangeRound([0,I.bandwidth()]).padding(g),H=ce.scaleLinear().domain([Math.min(0,R),q]).nice().rangeRound([p,0]),M=ce.scaleOrdinal().domain(k).range(Array.isArray(n)?n:Object.values(n||{}));j.selectAll("*").remove();const L=j.append("g").attr("transform",`translate(${i.left},${i.top})`);_&&j.append("text").attr("x",$/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(_),d&&L.append("g").attr("class","grid").selectAll("line").data(H.ticks()).enter().append("line").attr("x1",0).attr("x2",D).attr("y1",B=>H(B)).attr("y2",B=>H(B)).style("stroke","#e0e0e0").style("stroke-width",.5),c&&(L.append("g").attr("transform",`translate(0,${p})`).call(ce.axisBottom(I).tickSizeOuter(0)).attr("class","x-axis").selectAll("text").attr("transform",`translate(0,10)rotate(${m})`).style("text-anchor",m<0?"end":"middle").style("font-size","12px").style("fill","#605B56"),S&&L.append("text").attr("transform",`translate(${D/2}, ${p+i.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(S)),u&&(L.append("g").call(ce.axisLeft(H).ticks(6).tickFormat(h)).attr("class","y-axis").call(B=>B.select(".domain").remove()),E&&L.append("text").attr("transform","rotate(-90)").attr("y",0-i.left).attr("x",0-p/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(E));const te=L.append("g").selectAll(".bar-group").data(e).enter().append("g").attr("class","bar-group").attr("transform",B=>`translate(${I(B.anyo||B.year||B.x)},0)`).selectAll(".bar").data(B=>k.map(G=>({key:G,value:B[G],data:B}))).enter().append("rect").attr("class","bar").attr("x",B=>V(B.key)).attr("y",p).attr("width",V.bandwidth()).attr("height",0).attr("fill",B=>M(B.key)).style("cursor",f||C?"pointer":"default");te.transition().duration(b).attr("y",B=>H(Math.max(0,B.value))).attr("height",B=>Math.abs(H(B.value)-H(0))),f&&te.on("mouseover",function(B,G){ce.select(this).style("opacity",.8),f(B,G)}).on("mouseout",function(B,G){ce.select(this).style("opacity",1)}),C&&te.on("click",C)},[e,t,n,T,i,y,g,c,u,d,m,h,b,f,C,_,S,E]),l.jsx("div",{ref:x,className:`${ji.svgContainer} ${a}`,style:{width:r,height:o+i.top+i.bottom},children:l.jsx("svg",{ref:v,className:ji.svg,width:T.width,height:T.height})})};ts.displayName="Groupedbarchart";ts.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.oneOfType([s.arrayOf(s.string),s.object]),width:s.oneOfType([s.string,s.number]),height:s.number,margin:s.shape({top:s.number,right:s.number,bottom:s.number,left:s.number}),className:s.string,showXAxisLabels:s.bool,showYAxisLabels:s.bool,showGrid:s.bool,xAxisTickRotation:s.number,yAxisTickFormat:s.func,barPadding:s.number,groupPadding:s.number,animationDuration:s.number,onBarHover:s.func,onBarClick:s.func,title:s.string,xAxisLabel:s.string,yAxisLabel:s.string};const sp="_svgContainer_7fkic_2",ip="_svg_7fkic_2",$i={svgContainer:sp,svg:ip},Kr=new Map,ao=(e,t="12px sans-serif")=>{if(!e)return 0;const n=`${t}|${e}`;if(Kr.has(n))return Kr.get(n);const o=(ao.canvas||(ao.canvas=document.createElement("canvas"))).getContext("2d");o.font=t;const i=o.measureText(e).width;return Kr.set(n,i),i},$a=(e,t=2)=>{if(!e)return[""];const n=e.trim();if(n==="")return[""];if(t<=1)return[n];if(!n.includes(" "))return n.length>20?[n]:[n];const r=Math.floor(n.length/2);let o=-1,i=1/0;for(let h=0;h<n.length;h++)if(n[h]===" "){const y=Math.abs(h-r);y<i&&(i=y,o=h)}if(o===-1)return[n];const a=n.slice(0,o).trim(),c=n.slice(o+1).trim();if(t===2||!c.includes(" "))return c?[a,c]:[a];const u=Math.floor(c.length/2);let d=-1,m=1/0;for(let h=0;h<c.length;h++)if(c[h]===" "){const y=Math.abs(h-u);y<m&&(m=y,d=h)}return d===-1?[a,c]:[a,c.slice(0,d).trim(),c.slice(d+1).trim()].filter(Boolean)},ap=(e,t=2,n="12px sans-serif")=>e.reduce((r,o)=>{const i=$a(String(o),t),a=Math.max(...i.map(c=>ao(c,n)));return Math.max(r,a)},0),ns=({data:e,keys:t,colors:n,lineData:r=null,width:o="100%",height:i=300,margin:a,className:c="",showXAxisLabels:u=!0,showYAxisLabels:d=!0,showGrid:m=!0,xAxisTickRotation:h=-90,xAxisPosition:y="bottom",yAxisTickFormat:g=H=>H.toLocaleString("es-ES"),barPadding:b=.4,animationDuration:f=750,onBarHover:C,onBarClick:_,title:S,xAxisLabel:E,yAxisLabel:v,yAxisLabelPadding:x=0,stackOrder:T="reverse",showTooltip:O=!0,reverseKeys:j=!0,minBarSlotWidth:$=60,wrapXAxisLabels:z=!0,wrapYAxisLabels:D=!0,maxYAxisLabelLines:p=2,yAxisLabelFont:N="12px sans-serif",marginLeftPadding:k=8,mode:R="stacked",orientation:q="vertical",scrollOnOverflow:I=!0,maxValue:V=null})=>{const H=w.useRef(),M=w.useRef();w.useRef();const[L,Y]=w.useState({containerWidth:0,height:0}),{t:te}=le.useTranslation(),B=q==="horizontal",G=y==="top",X=w.useMemo(()=>{if(a)return a;const Q=S&&G?24:0;return B?G?{top:50+Q+x,right:30,bottom:20,left:140}:{top:20,right:30,bottom:50+x,left:140}:G?{top:90+Q,right:20,bottom:20,left:60+x}:{top:20,right:20,bottom:90,left:60+x}},[a,B,G,S,x]);w.useEffect(()=>{const Q=()=>{if(M.current){const re=M.current.getBoundingClientRect().width,oe=M.current.getBoundingClientRect().height,P=typeof i=="number"?i:Math.max(oe-(X.top+X.bottom),0);Y(ie=>{const Le=typeof o=="number"?o:re;return ie.containerWidth===Le&&ie.height===P?ie:{containerWidth:Le,height:P}})}};return Q(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[o,i,X]),w.useEffect(()=>{if(!e||e.length===0||L.containerWidth===0)return;const Q=ce.select(H.current),re=!!a,oe={...X},P=y==="top",ie=W=>R==="single"?W.title:W.any||W.year||W.x;if(B&&u&&!re){const W=ap(e.map(J=>ie(J)),D?p:1,N);oe.left=Math.ceil(W)+k}const{containerWidth:Le,height:lt}=L,Nt=Le-oe.left-oe.right,Re=lt-oe.top-oe.bottom,yt=e.length*$;let De,Ie,ct,bt;if(B?(Ie=Math.max(Re,yt),De=Nt,bt=Ie+oe.top+oe.bottom,ct=Le):(De=Math.max(Nt,yt),Ie=Re,ct=De+oe.left+oe.right,bt=lt),De<=0||Ie<=0)return;Q.attr("width",ct).attr("height",bt).style("overflow","visible");const vt=R==="stacked"?j?[...t].reverse():t:[],Je=[];e.forEach(W=>{const J=ie(W);if(R==="single"){const de=Number(W.value)||0;Je.push({key:W.title,value:de,y0:Math.min(0,de),y1:Math.max(0,de),height:Math.abs(de),data:W,xKey:J,color:W.color})}else{const de=vt.map(we=>({key:we,value:Number(W[we])||0,data:W})),Oe=de.filter(we=>we.value<0),Be=de.filter(we=>we.value>=0);let Ot=0;Oe.forEach(we=>{const tt=Ot,ze=Ot+we.value,Zt=Math.abs(ze-tt);Je.push({key:we.key,value:we.value,y0:Math.max(tt,ze),y1:Math.min(tt,ze),height:Zt,data:we.data,xKey:J}),Ot=ze});let Mt=0;Be.forEach(we=>{const tt=Mt,ze=Mt+we.value,Zt=ze-tt;Je.push({key:we.key,value:we.value,y0:Math.min(tt,ze),y1:Math.max(tt,ze),height:Zt,data:we.data,xKey:J}),Mt=ze})}});const F=[ce.min(Je,W=>Math.min(W.y0,W.y1))||0,ce.max(Je,W=>Math.max(W.y0,W.y1))||0];let U=[0,0];r&&r.length>0&&(U=[ce.min(r)||0,ce.max(r)||0]);const Z=typeof V=="number"&&!isNaN(V),ae=[Math.min(F[0],U[0]),Z?V:Math.max(F[1],U[1])],ue=ce.scaleBand().domain(e.map(W=>ie(W))).range(B?[0,Ie]:[0,De]).padding(b),K=ce.scaleLinear().domain([ae[0],ae[1]]).nice(6).range(B?[0,De]:[Ie,0]),xe=W=>ue(W),je=ue.bandwidth(),fe=W=>K(W),Ve=t?ce.scaleOrdinal().domain(t).range(Array.isArray(n)?n:Object.values(n||{})):null,Et=R==="single"?W=>W.color||(Array.isArray(n)?n[0]:Object.values(n||{})[0])||"#888":W=>Ve(W.key),Kt=r&&r.length>0?e.map((W,J)=>{const de=xe(ie(W))+je/2,Oe=fe(r[J]||0);return B?{x:Oe,y:de}:{x:de,y:Oe}}):[];Q.selectAll("*").remove();const Ae=Q.append("g").attr("transform",`translate(${oe.left},${oe.top})`);if(S&&Q.append("text").attr("x",ct/2).attr("y",P?16:oe.top-4).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(S),m){const W=Ae.append("g").attr("class","grid");B?W.selectAll("line").data(K.ticks(6)).enter().append("line").attr("y1",0).attr("y2",Ie).attr("x1",J=>fe(J)).attr("x2",J=>fe(J)).style("stroke","#e0e0e0").style("stroke-width",.5):W.selectAll("line").data(K.ticks(6)).enter().append("line").attr("x1",0).attr("x2",De).attr("y1",J=>fe(J)).attr("y2",J=>fe(J)).style("stroke","#e0e0e0").style("stroke-width",.5)}const kr=(W,J=12)=>{if(!z||W.length<=J)return[W];const de=Math.floor(W.length/2);let Oe=de;for(let Be=de;Be>=0;Be--)if(W[Be]===" "){Oe=Be;break}if(Oe===de){for(let Be=de;Be<W.length;Be++)if(W[Be]===" "){Oe=Be;break}}return Oe===de&&(Oe=de),[W.substring(0,Oe),W.substring(Oe+1)]};if(u)if(B)Ae.append("g").attr("class","category-axis").call(ce.axisLeft(ue).tickSizeOuter(0)).selectAll("text").remove(),Ae.append("g").attr("class","category-axis-labels").selectAll(".cat-label-group").data(e).enter().append("g").attr("class","cat-label-group").attr("transform",de=>`translate(0, ${xe(ie(de))+je/2})`).each(function(de){const Oe=String(ie(de)),Be=D?$a(Oe,p):[Oe];ce.select(this).append("text").attr("x",-10).style("text-anchor","end").style("font-size","12px").style("fill","#605B56").selectAll("tspan").data(Be).enter().append("tspan").attr("x",-10).attr("dy",(we,tt)=>Be.length===1?"0.32em":tt===0?"-0.3em":"1.2em").text(we=>we)}),E&&Ae.append("text").attr("transform","rotate(-90)").attr("y",0-oe.left).attr("x",0-Ie/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(E);else{const W=P?0:Ie,J=P?ce.axisTop(ue):ce.axisBottom(ue);Ae.append("g").attr("class","category-axis").attr("transform",`translate(0, ${W})`).call(J.tickSizeOuter(0)).selectAll("text").remove();const Be=Ae.append("g").attr("class","category-axis-labels").attr("transform",`translate(0, ${W})`).selectAll(".x-label-group").data(e).enter().append("g").attr("class","x-label-group").attr("transform",we=>`translate(${xe(ie(we))+je/2}, 0)`),Ot=P?-19:19,Mt=P?-15:15;Be.each(function(we){const tt=String(ie(we)),ze=kr(tt),Zt=ce.select(this);if(ze.length===1)Zt.append("text").attr("y",Ot).style("text-anchor",h===0?"middle":h<0?"end":"start").style("font-size","12px").style("fill","#605B56").attr("transform",h!==0?`rotate(${h} 0 ${Mt})`:null).text(ze[0]);else{const fs=-(ze.length*14/2)+14/2;ze.forEach((Aa,ps)=>{Zt.append("text").attr("x",fs+ps*14).attr("y",Ot).style("text-anchor","end").style("font-size","11px").style("fill","#605B56").attr("transform",`rotate(${h} ${fs+ps*14} ${Mt})`).text(Aa)})}}),E&&Ae.append("text").attr("transform",`translate(${De/2}, ${P?-(oe.top-15):Ie+oe.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(E)}if(d)if(B){const W=P?0:Ie,J=P?ce.axisTop(K):ce.axisBottom(K);Ae.append("g").attr("class","value-axis").attr("transform",`translate(0, ${W})`).call(J.ticks(6).tickFormat(g)).call(de=>de.select(".domain").remove()).selectAll("text").style("font-size","12px").style("fill","#605B56"),v&&Ae.append("text").attr("x",De/2).attr("y",P?-(oe.top-15):Ie+oe.bottom-5).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(v)}else Ae.append("g").attr("class","value-axis").call(ce.axisLeft(K).ticks(6).tickFormat(g)).call(W=>W.select(".domain").remove()),Ae.append("g").attr("class","value-ticks").attr("transform",`translate(${De}, 0)`).call(ce.axisLeft(K).ticks(6).tickSizeInner(De)).call(W=>W.select(".domain").remove()).call(W=>W.selectAll(".tick text").remove()),v&&Ae.append("text").attr("transform","rotate(-90)").attr("y",0-oe.left).attr("x",0-Ie/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(v);let Ue;O&&(Ue=ce.select("body").append("div").attr("class","chart-tooltip").style("position","absolute").style("visibility","hidden").style("background","rgba(0, 0, 0, 0.8)").style("color","white").style("padding","8px").style("border-radius","4px").style("font-size","12px").style("pointer-events","none").style("z-index","1000"));const At=Ae.selectAll(".segment").data(Je,W=>`${W.xKey}-${W.key}`);At.exit().remove();const Mn=B?"y":"x",Se=B?"height":"width",Ne=B?"x":"y",Gt=B?"width":"height",xt=B?1:0,et=W=>{const J=Math.min(fe(W.y0),fe(W.y1));return J<=.5?J+xt:J},Ea=W=>{const J=Math.min(fe(W.y0),fe(W.y1)),de=Math.abs(fe(W.y1)-fe(W.y0));return J<=.5?Math.max(de-xt,0):de},jr=At.enter().append("rect").attr("class","segment").attr(Mn,W=>xe(W.xKey)).attr(Se,je).attr(Ne,fe(0)+xt).attr(Gt,0).attr("fill",W=>Et(W)).style("cursor",C||_||O?"pointer":"default").merge(At);if(jr.transition().duration(f).attr(Mn,W=>xe(W.xKey)).attr(Se,je).attr(Ne,et).attr(Gt,Ea),(O||C)&&jr.on("mouseover",function(W,J){const de=J.value;if(O&&Ue){const Oe=R==="single"?J.data.title:te(J.key);Ue.style("visibility","visible").html(R==="single"?`<strong>${Oe}</strong><br/>${g(de)}`:`<strong>${Oe}</strong><br/>${J.xKey}<br/>${g(de)}`)}ce.select(this).style("opacity",.8),C&&C(W,{key:J.key,value:de,data:J.data})}).on("mousemove",function(W){O&&Ue&&Ue.style("top",W.pageY-10+"px").style("left",W.pageX+10+"px")}).on("mouseout",function(){O&&Ue&&Ue.style("visibility","hidden"),ce.select(this).style("opacity",1)}),_&&jr.on("click",function(W,J){const de=J.value;_(W,{key:J.key,value:de,data:J.data})}),Kt&&Kt.length>1){const W=ce.line().x(J=>J.x).y(J=>J.y).curve(ce.curveMonotoneX);Ae.append("path").datum(Kt).attr("class","line").attr("d",W).attr("fill","none").attr("stroke","#ff6b6b").attr("stroke-width",2).attr("stroke-linecap","round").attr("stroke-linejoin","round"),Ae.selectAll(".line-point").data(Kt).enter().append("circle").attr("class","line-point").attr("cx",J=>J.x).attr("cy",J=>J.y).attr("r",4).attr("fill","#ff6b6b").attr("stroke","white").attr("stroke-width",1)}return()=>{Ue&&Ue.remove()}},[e,t,n,r,L,X,b,u,d,m,h,y,g,f,C,_,S,E,v,x,T,O,j,z,D,p,N,k,R,q,$,V]);const ne=typeof i=="number"?i+X.top+X.bottom:i,se=I?B?{width:"100%",height:ne,overflowY:"auto",overflowX:"hidden"}:{width:o,height:ne,overflowX:"auto"}:{width:B?"100%":o,height:"auto",overflow:"visible"};return l.jsx("div",{ref:M,className:`${$i.svgContainer} ${c}`,style:se,children:l.jsx("svg",{ref:H,className:$i.svg})})};ns.displayName="Stackedbarchart";ns.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string),colors:s.oneOfType([s.arrayOf(s.string),s.object]),lineData:s.arrayOf(s.number),width:s.oneOfType([s.string,s.number]),height:s.oneOfType([s.string,s.number]),margin:s.shape({top:s.number,right:s.number,bottom:s.number,left:s.number}),className:s.string,showXAxisLabels:s.bool,showYAxisLabels:s.bool,showGrid:s.bool,xAxisTickRotation:s.number,xAxisPosition:s.oneOf(["top","bottom"]),yAxisTickFormat:s.func,barPadding:s.number,animationDuration:s.number,onBarHover:s.func,onBarClick:s.func,title:s.string,xAxisLabel:s.string,yAxisLabel:s.string,yAxisLabelPadding:s.number,stackOrder:s.oneOf(["reverse","ascending","descending","insideOut","none"]),showTooltip:s.bool,reverseKeys:s.bool,minBarSlotWidth:s.number,wrapXAxisLabels:s.bool,wrapYAxisLabels:s.bool,maxYAxisLabelLines:s.number,yAxisLabelFont:s.string,marginLeftPadding:s.number,mode:s.oneOf(["single","stacked"]),orientation:s.oneOf(["vertical","horizontal"]),scrollOnOverflow:s.bool,maxValue:s.number};const lp="_externalContainer_1er0i_2",cp="_externalSintetic_1er0i_9",up="_titles_1er0i_13",dp="_titleContainer_1er0i_22",fp="_yearTitles_1er0i_36",pp="_yearTitle_1er0i_36",mp="_yearDatas_1er0i_50",hp="_yearDataContainer_1er0i_58",gp="_yearDataContent_1er0i_66",yp="_bigNumber_1er0i_79",bp="_circle_1er0i_82",vp="_totalContainer_1er0i_99",xp="_total_1er0i_99",qe={externalContainer:lp,externalSintetic:cp,titles:up,titleContainer:dp,yearTitles:fp,yearTitle:pp,yearDatas:mp,yearDataContainer:hp,yearDataContent:gp,bigNumber:yp,circle:bp,totalContainer:vp,total:xp},Cp=e=>{if(e>=1e3||e<=-1e3)return parseInt(e.toFixed());if(e>=100||e<=-100)return parseFloat(e.toFixed(1));if(e>=10||e<=-10)return parseFloat(e.toFixed(2));if(e>0||e<0)return parseFloat(e.toFixed(3));if(e===0)return e},_p=(e,t)=>{let n=0;return t.forEach(r=>{r[e]&&(n+=r[e])}),n},rs=({data:e,keys:t,colors:n,locales:r,total:o=!1,years:i=!1,activeGraphics:a="ind",units:c={},translate:u,getTotal:d=_p,columnWidth:m=50})=>{const h=u||(g=>g),y=g=>g==="demanda_red"||g==="reduccio_demanda_red"?(c.demanda||"").replace("(","").replace(")",""):c[g]||"";return l.jsxs("div",{className:`${qe.externalContainer} ${a==="sin"?qe.externalSintetic:""}`,children:[i===!0&&l.jsxs(l.Fragment,{children:[l.jsx("div",{}),l.jsx("div",{className:qe.yearTitles,children:e.map((g,b)=>l.jsx("div",{className:qe.yearTitle,style:{width:m},children:g.anyo},b))})]}),l.jsx("div",{className:qe.titles,children:t.map((g,b)=>l.jsxs("div",{className:qe.titleContainer,children:[h(r[g]),a!=="sin"&&l.jsx("span",{className:qe.circle,style:{background:n[g]}})]},b))}),o===!0&&l.jsx("div",{className:qe.totalContainer,children:t.map((g,b)=>{var f;return l.jsxs("div",{className:`${qe.total} ${d(g,e)>9999||d(g,e)<-9999?qe.bigNumber:""}`,children:[(f=d(g,e))==null?void 0:f.toLocaleString("es-ES")," ",y(g)]},b)})}),l.jsx("div",{className:qe.yearDatas,children:e.map((g,b)=>l.jsx("div",{className:qe.yearDataContainer,style:{width:m},children:t.map((f,C)=>{var _,S;return isNaN(g[f])?null:l.jsx("div",{className:`${qe.yearDataContent} ${g[f]>9999||g[f]<-9999?qe.bigNumber:""}`,children:g[f]<1e4||g[f]>-1e4?(_=Cp(g[f]))==null?void 0:_.toLocaleString("es-ES"):(S=g[f])==null?void 0:S.toLocaleString("es-ES")},C)})},b))})]})};rs.displayName="GraphicLegend";rs.propTypes={data:s.arrayOf(s.shape({anyo:s.oneOfType([s.string,s.number]).isRequired})).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.objectOf(s.string).isRequired,locales:s.objectOf(s.string).isRequired,total:s.bool,years:s.bool,activeGraphics:s.oneOf(["ind","sin"]),units:s.objectOf(s.string),translate:s.func,getTotal:s.func,columnWidth:s.number};const os=({minValue:e=0,maxValue:t=100,value:n=0,title:r=!1,percent:o=!1,unit:i=!1,greenColor:a="#00CF1E",orangeColor:c="#FFAC00",redColor:u="#FF1E37",categoryRanges:d=null,fontColor:m="#9B9B9B",valueFontSize:h="24px"})=>{const y=[a,c,u],g=d&&d.length>0?d:y.map(()=>(t-e)/y.length),b=e+g.reduce((k,R)=>k+R,0);let f=n;f<e&&(f=e),f>b&&(f=b);const C=(f-e)/(b-e),_=270+C*180,S=o?Math.round(C*100):f,E=122,v=122,x=99,T=122,O=132,j=2,$=(k,R)=>{const q=k*Math.PI/180;return{x:E+R*Math.sin(q),y:v-R*Math.cos(q)}},z=(k,R)=>{const q=R-k>180?1:0,I=$(k,T),V=$(R,T),H=$(R,x),M=$(k,x);return`M ${I.x} ${I.y} A ${T} ${T} 0 ${q} 1 ${V.x} ${V.y} L ${H.x} ${H.y} A ${x} ${x} 0 ${q} 0 ${M.x} ${M.y} Z`},D=g.reduce((k,R)=>[...k,k[k.length-1]+R],[e]),p=y.map((k,R)=>{const q=(D[R]-e)/(b-e),I=(D[R+1]-e)/(b-e),V=270+q*180,H=270+I*180,M=V+(R>0?j/2:0),L=H-(R<y.length-1?j/2:0);return{color:k,path:z(M,L)}}),N=D.map(k=>{const q=270+(k-e)/(b-e)*180,{x:I,y:V}=$(q,O),H=I<E-4?"end":I>E+4?"start":"middle",M=V<v-4?"-2":"0.32em";return{value:Math.round(k),x:I,y:V,textAnchor:H,dy:M}});return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",alignItems:"center",fontFamily:"sans-serif"},children:[l.jsxs("svg",{width:"324",height:"170",viewBox:"-40 -30 324 170",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.map((k,R)=>l.jsx("path",{d:k.path,fill:k.color},R)),l.jsx("g",{transform:`rotate(${_} ${E} ${v})`,children:l.jsx("path",{d:`M ${E-1} 119.5V33`,stroke:"#605B56",strokeWidth:"2"})}),N.map((k,R)=>l.jsx("text",{x:k.x,y:k.y,dy:k.dy,textAnchor:k.textAnchor,fill:m,fontSize:"11",fontWeight:"600",children:k.value},R))]}),l.jsxs("div",{style:{fontSize:h,fontWeight:600,color:m,marginTop:"-8px"},children:[S,o&&"%",i&&i]}),r&&l.jsx("div",{style:{fontSize:"13px",color:"#8a8a8a",marginTop:"4px"},children:r})]})};os.displayName="SpeedGraphic";os.propTypes={minValue:s.number.isRequired,maxValue:s.number.isRequired,value:s.number.isRequired,percent:s.bool,title:s.string,unit:s.string,greenColor:s.string,orangeColor:s.string,redColor:s.string,categoryRanges:s.arrayOf(s.number),fontColor:s.string,valueFontSize:s.string};const Gr="#ffffff",Sp="#ffffff";function mt(e,t,n,r){const o=(r-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}}function Ni(e,t,n,r,o,i){if(Math.abs(i-o)>=359.99)return n===0?`M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 0 1 1 ${e-r} ${t} Z`:[`M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 0 1 1 ${e-r} ${t} Z`,`M ${e-n} ${t} A ${n} ${n} 0 1 0 ${e+n} ${t} A ${n} ${n} 0 1 0 ${e-n} ${t} Z`].join(" ");const a=mt(e,t,r,o),c=mt(e,t,r,i),u=i-o>180?1:0;if(n===0)return`M ${e} ${t} L ${a.x} ${a.y} A ${r} ${r} 0 ${u} 1 ${c.x} ${c.y} Z`;const d=mt(e,t,n,i),m=mt(e,t,n,o);return[`M ${a.x} ${a.y}`,`A ${r} ${r} 0 ${u} 1 ${c.x} ${c.y}`,`L ${d.x} ${d.y}`,`A ${n} ${n} 0 ${u} 0 ${m.x} ${m.y}`,"Z"].join(" ")}function wp(e,t=0){const n=e.reduce((d,m)=>d+(m.value||0),0),r=e.length;if(n<=0||r===0)return[];const o=e.map(d=>d.value/n*100),i=Math.min(t,r>0?360/r-.01:0);let a=o.map(d=>d/100*360),c=new Array(r).fill(!1);if(i>0){let d=0,m=!0;for(;m&&d<r+2;){m=!1,d+=1;for(let h=0;h<r;h++)!c[h]&&a[h]<i&&(a[h]=i,c[h]=!0,m=!0);if(m){const h=a.reduce((f,C,_)=>c[_]?f+C:f,0),y=a.map((f,C)=>C).filter(f=>!c[f]),g=360-h,b=y.reduce((f,C)=>f+o[C]/100*360,0);y.forEach(f=>{const C=o[f]/100*360;a[f]=b>0?C/b*g:g/y.length})}}}let u=0;return e.map((d,m)=>{const h=u,y=u+a[m];return u=y,{...d,sa:h,ea:y,percent:o[m]}})}function Na(e){const t=Math.round(e*10)/10;return Number.isInteger(t)?t:t.toFixed(1)}function Tp(e){return typeof e=="number"?e.toLocaleString():e}function Ei(e,t){return t?`${Na(e.percent)}%`:Tp(e.value)}function Ai(e,t,n,r,o){const i=n+(r-n)/2,a=mt(e,t,o,i);return{tx:a.x-e,ty:a.y-t}}const ss=({type:e="cheese",data:t=[],title:n,size:r=260,donutThickness:o=56,gapWidth:i=3,gapColor:a,backgroundColor:c="transparent",fontColor:u="black",fontColorInside:d="white",containerStyles:m={},alignLeft:h=!1,valuesArePercentages:y=!0,minSliceAngle:g=8})=>{const[b,f]=w.useState(null),[C,_]=w.useState(()=>t.map(()=>!0)),S=t.map(I=>I.title).join("|"),[E,v]=w.useState(S);S!==E&&(v(S),_(t.map(()=>!0)));const x=C.filter(Boolean).length;function T(I){_(V=>{const H=V.filter(Boolean).length;if(V[I]&&H<=1)return V;const M=[...V];return M[I]=!M[I],M}),f(null)}const O=r/2,j=r/2,$=r/2-14,z=e==="donut"?$-o:0,D=e==="donut"?$-o/2:$*.62,p=w.useMemo(()=>t.reduce((I,V,H)=>(C[H]&&I.push({...V,origIndex:H}),I),[]),[t,C]),N=w.useMemo(()=>wp(p,g),[p,g]),k=b!==null&&N.find(I=>I.origIndex===b)||null,R=N.some(I=>I.ea-I.sa>=359.99),q=a||(c==="transparent"?Sp:c);return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",padding:"0px",background:c,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",...m},children:[l.jsxs("div",{style:{minHeight:"40px",display:"flex",flexDirection:"column",gap:"2px"},children:[n&&l.jsx("h2",{style:{margin:0,color:u,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.5px"},children:n}),l.jsx("div",{style:{height:"22px",display:"flex",alignItems:"center",gap:"8px",transition:"opacity 0.15s",opacity:k?1:0},children:k&&l.jsxs(l.Fragment,{children:[l.jsx("span",{style:{display:"inline-block",width:"10px",height:"10px",borderRadius:"50%",background:k.color||Gr,flexShrink:0}}),l.jsxs("span",{style:{color:u,fontSize:"14px",fontWeight:"600"},children:[k.title," —"," ",Ei(k,y),!y&&` (${Na(k.percent)}%)`]})]})})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:h?"flex-start":"center",gap:"16px"},children:[l.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,style:{overflow:"visible"},children:[N.map(I=>{const V=b===I.origIndex,{tx:H,ty:M}=V&&!R?Ai(O,j,I.sa,I.ea,10):{tx:0,ty:0};return l.jsx("g",{transform:`translate(${H}, ${M})`,style:{transition:"transform 0.18s ease",pointerEvents:"none"},children:l.jsx("path",{d:Ni(O,j,z,$,I.sa,I.ea),fill:I.color||Gr,style:{filter:V?"brightness(1.25)":"brightness(1)",transition:"filter 0.18s ease"}})},I.origIndex)}),!R&&N.map(I=>{const V=mt(O,j,$,I.sa),H=e==="cheese"?O:mt(O,j,z,I.sa).x,M=e==="cheese"?j:mt(O,j,z,I.sa).y;return l.jsx("line",{x1:H,y1:M,x2:V.x,y2:V.y,stroke:q,strokeWidth:i,strokeLinecap:"butt",style:{pointerEvents:"none"}},`gap-${I.origIndex}`)}),N.map(I=>{if(I.ea-I.sa<20)return null;const V=b===I.origIndex,{tx:H,ty:M}=V&&!R?Ai(O,j,I.sa,I.ea,10):{tx:0,ty:0},L=I.sa+(I.ea-I.sa)/2,Y=mt(O,j,D,L);return l.jsx("text",{x:Y.x+H,y:Y.y+M,textAnchor:"middle",dominantBaseline:"middle",fill:d,fontSize:"14",fontWeight:"700",fontFamily:"'Segoe UI', sans-serif",pointerEvents:"none",style:{transition:"x 0.18s ease, y 0.18s ease"},children:Ei(I,y)},`lbl-${I.origIndex}`)}),N.map(I=>l.jsx("path",{d:Ni(O,j,z,$,I.sa,I.ea),fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(I.origIndex),onMouseLeave:()=>f(null)},`hit-${I.origIndex}`))]}),l.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px 24px",justifyContent:h?"flex-start":"center"},children:t.map((I,V)=>{const H=C[V],M=H&&x<=1;return l.jsxs("div",{role:"button",tabIndex:0,"aria-pressed":H,"aria-label":`${H?"Ocultar":"Mostrar"} ${I.title}`,title:M?"Debe quedar al menos una categoría activa":H?"Ocultar del gráfico":"Mostrar en el gráfico",onClick:()=>T(V),onKeyDown:L=>{(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),T(V))},style:{display:"flex",alignItems:"center",gap:"8px",opacity:H&&(b===null||b===V)?1:.4,cursor:M?"not-allowed":"pointer",transition:"opacity 0.15s",userSelect:"none"},onMouseEnter:()=>H&&f(V),onMouseLeave:()=>f(null),children:[l.jsx("span",{style:{width:"32px",height:"14px",borderRadius:"3px",background:I.color||Gr,flexShrink:0}}),l.jsx("span",{style:{color:u,fontSize:"13px",fontWeight:"400"},children:I.title})]},V)})})]})]})};ss.displayName="PieChart";ss.propTypes={type:s.oneOf(["cheese","donut"]),data:s.arrayOf(s.shape({value:s.number.isRequired,title:s.string.isRequired,color:s.string})).isRequired,title:s.string,size:s.number,donutThickness:s.number,gapWidth:s.number,gapColor:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,containerStyles:s.object,alignLeft:s.bool,valuesArePercentages:s.bool,minSliceAngle:s.number};const Oi=["#a8d8cf","#3bbfa0","#5dd4b8","#7ed4c2","#2aa88a"],is=({data:e=[],title:t,backgroundColor:n="#0d3d4a",fontColor:r="#ffffff",barHeight:o=52,animated:i=!0,borderRadius:a,containerStyles:c={},fontColorInside:u,borderFontColorInside:d})=>{const[m,h]=w.useState(i?0:1);w.useEffect(()=>{if(!i)return;const f=requestAnimationFrame(()=>h(1));return()=>cancelAnimationFrame(f)},[i]);const y=Math.max(...e.map(f=>f.value),1),g=a??"6px",b=u||r;return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"0px",background:n,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",minWidth:"420px",...c},children:[t&&l.jsx("h2",{style:{margin:"0 0 20px 0",color:r,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.4px"},children:t}),l.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"18px"},children:e.map((f,C)=>{const _=f.color||Oi[C%Oi.length],S=f.value/y*100*m;return l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsx("span",{style:{color:r,fontSize:"14px",fontWeight:"400",opacity:.9},children:f.title}),l.jsxs("div",{style:{position:"relative",height:`${o}px`,background:"transparent"},children:[l.jsx("div",{style:{position:"absolute",left:0,top:0,height:"100%",width:`${S}%`,background:_,borderRadius:g,transition:i?"width 0.8s cubic-bezier(0.16, 1, 0.3, 1)":"none"}}),l.jsx("span",{style:{position:"absolute",left:`calc(${S}% + 10px)`,top:"50%",transform:"translateY(-50%)",color:b,fontSize:"18px",fontWeight:"700",pointerEvents:"none",letterSpacing:"-0.3px",whiteSpace:"nowrap",transition:i?"left 0.8s cubic-bezier(0.16, 1, 0.3, 1)":"none",...d?{WebkitTextStroke:`1px ${d}`,paintOrder:"stroke fill"}:{}},children:f.value})]})]},C)})})]})};is.displayName="HorizontalBarChart";is.propTypes={data:s.arrayOf(s.shape({title:s.string.isRequired,value:s.number.isRequired,color:s.string})),title:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,borderFontColorInside:s.string,barHeight:s.number,animated:s.bool,borderRadius:s.oneOfType([s.string,s.number]),containerStyles:s.object};const Mi=["#a8d8cf","#3bbfa0","#5dd4b8","#7ed4c2","#2aa88a"],kp=26,as=({data:e=[],title:t,backgroundColor:n="black",fontColor:r="#ffffff",fontColorInside:o,borderFontColorInside:i,barWidth:a=52,maxBarHeight:c=200,animated:u=!0,separatorColor:d,containerStyles:m={}})=>{const[h,y]=w.useState(u?0:1);w.useEffect(()=>{if(!u)return;const v=requestAnimationFrame(()=>requestAnimationFrame(()=>y(1)));return()=>cancelAnimationFrame(v)},[u]);const g=Math.max(...e.map(v=>v.value),1),b=d||(r==="#ffffff"?"rgba(255,255,255,0.25)":"rgba(0,0,0,0.15)"),f=o||r,C=12,_=12,S=e.length*a+Math.max(0,e.length-1)*C,E={fontSize:"15px",fontWeight:"700",letterSpacing:"-0.3px",lineHeight:1,pointerEvents:"none",whiteSpace:"nowrap",color:f,marginBottom:"8px",...i?{WebkitTextStroke:`1px ${i}`,paintOrder:"stroke fill"}:{}};return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"0",background:n,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",...m},children:[t&&l.jsx("h2",{style:{margin:"0 0 24px 0",color:r,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.4px"},children:t}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:0,overflow:"visible"},children:[l.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:`${C}px`,width:`${S}px`,height:`${c+kp}px`,overflow:"visible"},children:e.map((v,x)=>{const T=v.color||Mi[x%Mi.length],O=v.value/g*c*h;return l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",width:`${a}px`,height:"100%"},children:[l.jsx("span",{style:E,children:v.value}),l.jsx("div",{style:{width:"100%",height:`${O}px`,background:T,borderRadius:"6px 6px 0 0",transition:u?"height 0.85s cubic-bezier(0.16, 1, 0.3, 1)":"none"}})]},x)})}),l.jsx("div",{style:{width:`${S+_*2}px`,marginLeft:`-${_}px`,height:"1.5px",background:b,borderRadius:"1px"}}),l.jsx("div",{style:{display:"flex",gap:`${C}px`,width:`${S}px`,marginTop:"10px"},children:e.map((v,x)=>l.jsx("div",{style:{width:`${a}px`,textAlign:"center",color:r,fontSize:"13px",fontWeight:"400",opacity:.8,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:v.title},x))})]})]})};as.displayName="VerticalBarChart";as.propTypes={data:s.arrayOf(s.shape({title:s.string.isRequired,value:s.number.isRequired,color:s.string})).isRequired,title:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,borderFontColorInside:s.string,barWidth:s.number,maxBarHeight:s.number,animated:s.bool,separatorColor:s.string,containerStyles:s.object};const jp="_percentageBarContainer_lgkme_3",$p="_barContainer_lgkme_10",Np="_segment_lgkme_19",Ep="_handle_lgkme_36",Ap="_labelsContainer_lgkme_68",Op="_labelItem_lgkme_73",Mp="_labelsListContainer_lgkme_85",Lp="_labelColor_lgkme_105",Rp="_labelText_lgkme_114",Ip="_labelValue_lgkme_122",Dp="_labelTranslation_lgkme_126",Pe={percentageBarContainer:jp,barContainer:$p,segment:Np,handle:Ep,labelsContainer:Ap,labelItem:Op,labelsListContainer:Mp,labelColor:Lp,labelText:Rp,labelValue:Ip,labelTranslation:Dp},Bp=2,Li=e=>{const t=e.reduce((n,r)=>n+r.value,0);return t===0?e.map(()=>100/e.length):e.map(n=>n.value/t*100)},Zr=(e,t=100)=>e.map(n=>n.value/t*100),Ri=(e,t)=>{try{const r=new Function("x",`return (${t})`)(e);return isNaN(r)?"N/A":r.toFixed(2)}catch{return"N/A"}},ls=({items:e,showLabels:t="bar",showTranslations:n=!0,onChange:r,minPercentage:o=Bp,maxValue:i=100,labelTextColor:a,labelValueColor:c})=>{const[u,d]=w.useState(()=>Li(e)),m=w.useRef(null),h=w.useRef(null);w.useEffect(()=>{e&&e.length>0&&d(Li(e))},[e]);const y=w.useCallback(f=>{if(!m.current||!h.current)return;const{dividerIndex:C}=m.current,_=h.current.getBoundingClientRect(),S=(f.touches?f.touches[0].clientX:f.clientX)-_.left,E=Math.max(0,Math.min(100,S/_.width*100));d(v=>{const x=[...v],T=v.slice(0,C).reduce((z,D)=>z+D,0),O=T+v[C]+v[C+1];let j=E-T,$=O-E;if(j<o&&(j=o,$=O-T-o),$<o&&($=o,j=O-T-o),x[C]=j,x[C+1]=$,r)try{const z=e.reduce((D,p)=>D+p.value,0);r(e.map((D,p)=>({...D,value:x[p]/100*z})))}catch(z){console.error("PercentageBar onChange error:",z)}return x})},[o,r,e]),g=w.useCallback(()=>{m.current&&(m.current=null,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",g),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",g),d(f=>{if(r){const C=e.reduce((_,S)=>_+S.value,0);r(e.map((_,S)=>({..._,value:f[S]/100*C})))}return f}))},[y,r,e]),b=(f,C)=>{C.preventDefault(),m.current={dividerIndex:f},document.addEventListener("mousemove",y),document.addEventListener("mouseup",g),document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",g)};return l.jsxs("div",{className:Pe.percentageBarContainer,children:[l.jsx("div",{className:Pe.barContainer,ref:h,children:e.map((f,C)=>{var _;return l.jsx("div",{className:Pe.segment,style:{width:`${u[C]}%`,backgroundColor:f.color||"#ccc"},children:C>0&&l.jsx("div",{className:Pe.handle,onMouseDown:S=>b(C-1,S),onTouchStart:S=>b(C-1,S),role:"slider","aria-label":`Divisor entre ${(_=e[C-1])==null?void 0:_.title} y ${f.title}`,"aria-valuenow":Math.round(u[C]),tabIndex:0})},f.id??C)})}),t==="bar"&&l.jsx("div",{className:Pe.labelsContainer,children:e.map((f,C)=>l.jsxs("div",{className:Pe.labelItem,style:{width:`${u[C]}%`},children:[l.jsx("span",{className:Pe.labelColor,style:{backgroundColor:f.color}}),l.jsx("span",{className:Pe.labelText,style:{color:a||"#fff"},children:f.title}),l.jsxs("span",{className:Pe.labelValue,style:{color:c||"#fff"},children:[Zr(e,i)[C].toFixed(1),"%"]}),n&&f.translationFormula&&l.jsxs("span",{className:Pe.labelTranslation,children:["(",Ri(u[C],f.translationFormula),")"]})]},f.id??C))}),t==="list"&&l.jsx("div",{className:Pe.labelsListContainer,children:e.map((f,C)=>l.jsxs("div",{className:Pe.labelItem,children:[l.jsx("span",{className:Pe.labelColor,style:{backgroundColor:f.color}}),l.jsx("span",{className:Pe.labelText,children:f.title}),l.jsxs("span",{className:Pe.labelValue,children:[Zr(e,i)[C].toFixed(1),"%"]}),n&&f.translationFormula&&l.jsxs("span",{className:Pe.labelTranslation,children:["(",Ri(Zr(e,i)[C],f.translationFormula),")"]})]},f.id??C))})]})};ls.displayName="PercentageBar";ls.propTypes={items:s.arrayOf(s.shape({id:s.oneOfType([s.string,s.number]),title:s.string.isRequired,value:s.number.isRequired,color:s.string.isRequired,translationFormula:s.string})).isRequired,showLabels:s.string,showTranslations:s.bool,onChange:s.func,minPercentage:s.number,maxValue:s.number,labelTextColor:s.string,labelValueColor:s.string};const Pp="_overlay_1vbid_2",Fp="_modal_1vbid_16",Vp="_content_1vbid_28",zp="_iconContainer_1vbid_36",qp="_iconSvg_1vbid_43",Wp="_textContainer_1vbid_48",Up="_title_1vbid_55",Hp="_message_1vbid_62",Kp="_closeButton_1vbid_69",it={overlay:Pp,modal:Fp,content:Vp,iconContainer:zp,iconSvg:qp,textContainer:Wp,title:Up,message:Hp,closeButton:Kp},cs=({isOpen:e,onClose:t,title:n,message:r,isError:o=!1,isSuccess:i=!1,customIcon:a=null,iconColor:c=null,textColor:u=null,backgroundColor:d=null,borderColor:m=null,showCloseButton:h=!0,autoClose:y=!1,autoCloseDelay:g=3e3})=>{if(w.useEffect(()=>{if(y&&e){const S=setTimeout(()=>{t()},g);return()=>clearTimeout(S)}},[y,e,t,g]),!e)return null;const b=()=>{const S={};return d&&(S.backgroundColor=d),m&&(S.borderColor=m),o&&!d?(S.backgroundColor="#fff5f5",S.borderColor="#feb2b2"):i&&!d&&(S.backgroundColor="#f0fff4",S.borderColor="#9ae6b4"),S},f=()=>{const S={};return u&&(S.color=u),o&&!u?S.color="#c53030":i&&!u&&(S.color="#276749"),S},C=()=>{const S={};return c&&(S.color=c),o&&!c?S.color="#c53030":i&&!c&&(S.color="#276749"),S},_=()=>a||(o?l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:it.iconSvg,style:C(),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[l.jsx("circle",{cx:"12",cy:"12",r:"10"}),l.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),l.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}):i?l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:it.iconSvg,style:C(),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[l.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),l.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]}):null);return l.jsx("div",{className:it.overlay,children:l.jsx("div",{className:it.modal,style:b(),children:l.jsxs("div",{className:it.content,children:[l.jsx("div",{className:it.iconContainer,children:_()}),l.jsxs("div",{className:it.textContainer,children:[n&&l.jsx("h3",{className:it.title,style:f(),children:n}),l.jsx("p",{className:it.message,style:f(),children:r})]}),h&&l.jsx("button",{className:it.closeButton,onClick:t,"aria-label":"Close modal",style:f(),children:"✕"})]})})})};cs.displayName="StatusModal";cs.propTypes={isOpen:s.bool.isRequired,onClose:s.func.isRequired,title:s.string,message:s.string.isRequired,isError:s.bool,isSuccess:s.bool,customIcon:s.node,iconColor:s.string,textColor:s.string,backgroundColor:s.string,borderColor:s.string,showCloseButton:s.bool,autoClose:s.bool,autoCloseDelay:s.number};const Gp="_header_13kbt_2",Zp="_leftComponents_13kbt_13",Yp="_centerComponents_13kbt_14",Xp="_rightComponents_13kbt_15",Qp="_componentsContainer_13kbt_32",Pt={header:Gp,leftComponents:Zp,centerComponents:Yp,rightComponents:Xp,componentsContainer:Qp},us=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[],zIndex:o=10,height:i=60,backgroundColor:a="#605B56",isFooter:c=!1})=>l.jsxs("div",{className:Pt.header,style:{...e,zIndex:o,height:i,backgroundColor:a,top:c?"auto":0,bottom:c?0:"auto"},children:[l.jsx("div",{className:Pt.leftComponents,children:t.map((u,d)=>l.jsx("div",{className:Pt.componentsContainer,children:u},d))}),l.jsx("div",{className:Pt.centerComponents,children:n.map((u,d)=>l.jsx("div",{className:Pt.componentsContainer,children:u},d))}),l.jsx("div",{className:Pt.rightComponents,children:r.map((u,d)=>l.jsx("div",{className:Pt.componentsContainer,children:u},d))})]});us.displayName="HeaderSection";us.propTypes={leftComponents:s.arrayOf(s.node),centerComponents:s.arrayOf(s.node),rightComponents:s.arrayOf(s.node),cssProps:s.object,zIndex:s.number,height:s.number,backgroundColor:s.string,isFooter:s.bool};const Jp="_sidebar_1kaqu_2",em="_open_1kaqu_16",tm="_content_1kaqu_20",nm="_closeButton_1kaqu_25",Yn={sidebar:Jp,open:em,content:tm,closeButton:nm},rm="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",ds=({width:e="300px",children:t,showRightBar:n,onCloseBar:r})=>{const o=()=>{r()};return l.jsx("div",{className:`${Yn.sidebar} ${n?Yn.open:""}`,style:{width:n?e:0},children:n&&l.jsxs("div",{className:Yn.content,children:[l.jsx("button",{className:Yn.closeButton,onClick:o,children:l.jsx("img",{src:rm,alt:"Close Sidebar"})}),t]})})};ds.displayName="RightSidebar";ds.propTypes={width:s.oneOfType([s.string,s.number]),children:s.node,showRightBar:s.bool,onCloseBar:s.func};exports.AmbitSelector=po;exports.BarChart=ur;exports.BurgerMenu=es;exports.ButtonsBar=Xo;exports.ButtonsList=mo;exports.CategorySelector=lr;exports.DropdownList=gt;exports.EditAmbit=zi;exports.ErrorBoundary=Vi;exports.ErrorMessage=Ht;exports.FiltersAmbit=Co;exports.Form=ja;exports.GeneralButton=pn;exports.Graphic=_o;exports.GraphicLegend=rs;exports.Groupedbarchart=ts;exports.HeaderSection=us;exports.HorizontalBarChart=is;exports.IndicatorsList=To;exports.LangSelector=ko;exports.Legend=jo;exports.ListSelector=qo;exports.Loader=Jo;exports.LogInButton=Vo;exports.LogoApp=$o;exports.MapboxMap=No;exports.MaplibreMap=Eo;exports.ModalAlert=Go;exports.PercentageBar=ls;exports.PieChart=ss;exports.RadioButtonInput=Ko;exports.RankingSlider=Tr;exports.RightSidebar=ds;exports.SectionBar=Ao;exports.SelectInput=Ho;exports.SpeedGraphic=os;exports.Stackedbarchart=ns;exports.StatusModal=cs;exports.StatusText=Yo;exports.Steps=Zo;exports.Switch=Qo;exports.TextInput=ar;exports.TimeSlider=Po;exports.Tooltip=nt;exports.TopNavMenu=Fo;exports.VerticalBarChart=as;
|
|
78
|
+
export default theme;`}function gi(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const cd=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function ud(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:fa(t,cd(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${gi(n)})`:Tr(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${gi(n)})`:Sr(t,n)}})}function oo(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:c={},shape:u,colorSpace:d,...m}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":Pt(20));const h=Io({...i,colorSpace:d}),y=ia(e);let g=Ye(y,{mixins:Y2(y.breakpoints,r),palette:h,shadows:nd.slice(),typography:Q2(h,c),transitions:id(a),zIndex:{...ad}});if(g=Ye(g,m),g=t.reduce((b,f)=>Ye(b,f),g),process.env.NODE_ENV!=="production"){const b=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(x,w)=>{let S;for(S in x){const N=x[S];if(b.includes(S)&&Object.keys(N).length>0){if(process.env.NODE_ENV!=="production"){const v=Lo("",S);console.error([`MUI: The \`${w}\` component increases the CSS specificity of the \`${S}\` internal state.`,"You can not override it like this: ",JSON.stringify(x,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:N}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
79
|
+
`))}x[S]={}}}};Object.keys(g.components).forEach(x=>{const w=g.components[x].styleOverrides;w&&x.startsWith("Mui")&&f(w,x)})}return g.unstable_sxConfig={..._r,...m==null?void 0:m.unstable_sxConfig},g.unstable_sx=function(f){return dn({sx:f,theme:this})},g.toRuntimeSource=ga,ud(g),g}function dd(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const fd=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=dd(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function ya(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function ba(e){return e==="dark"?fd:[]}function pd(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:o,...i}=e,a=Io({...t,colorSpace:o});return{palette:a,opacity:{...ya(a.mode),...n},overlays:r||ba(a.mode),...i}}function md(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const hd=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],gd=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return hd(e.cssVarPrefix).forEach(c=>{a[c]=n[c],delete n[c]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function yd(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function A(e,t,n){!e[t]&&n&&(e[t]=n)}function Sn(e){return typeof e!="string"||!e.startsWith("hsl")?e:da(e)}function dt(e,t){`${t}Channel`in e||(e[`${t}Channel`]=wn(Sn(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
80
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function bd(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const st=e=>{try{return e()}catch{}},vd=(e="mui")=>I2(e);function Wr(e,t,n,r,o){if(!n)return;n=n===!0?{}:n;const i=o==="dark"?"dark":"light";if(!r){t[o]=pd({...n,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:a,...c}=oo({...r,palette:{mode:i,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:a,opacity:{...ya(i),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||ba(i)},c}function xd(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",nativeColor:a=!1,shouldSkipGeneratingVar:c=md,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...m}=e,h=Object.keys(n)[0],y=r||(n.light&&h!=="light"?"light":h),g=vd(i),{[y]:b,light:f,dark:x,...w}=n,S={...w};let N=b;if((y==="dark"&&!("dark"in n)||y==="light"&&!("light"in n))&&(N=!0),!N)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${y}\` option is either missing or invalid.`:Pt(21,y));let v;a&&(v="oklch");const C=Wr(v,S,N,m,y);f&&!S.light&&Wr(v,S,f,void 0,"light"),x&&!S.dark&&Wr(v,S,x,void 0,"dark");let T={defaultColorScheme:y,...C,cssVarPrefix:i,colorSchemeSelector:u,rootSelector:d,getCssVar:g,colorSchemes:S,font:{...G2(C.typography),...C.font},spacing:bd(m.spacing)};Object.keys(T.colorSchemes).forEach(R=>{const p=T.colorSchemes[R].palette,E=D=>{const z=D.split("-"),B=z[1],F=z[2];return g(D,p[B][F])};p.mode==="light"&&(A(p.common,"background","#fff"),A(p.common,"onBackground","#000")),p.mode==="dark"&&(A(p.common,"background","#000"),A(p.common,"onBackground","#fff"));function k(D,z,B){if(v){let F;return D===Lt&&(F=`transparent ${((1-B)*100).toFixed(0)}%`),D===he&&(F=`#000 ${(B*100).toFixed(0)}%`),D===ge&&(F=`#fff ${(B*100).toFixed(0)}%`),`color-mix(in ${v}, ${z}, ${F})`}return D(z,B)}if(yd(p,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),p.mode==="light"){A(p.Alert,"errorColor",k(he,a?g("palette-error-light"):p.error.light,.6)),A(p.Alert,"infoColor",k(he,a?g("palette-info-light"):p.info.light,.6)),A(p.Alert,"successColor",k(he,a?g("palette-success-light"):p.success.light,.6)),A(p.Alert,"warningColor",k(he,a?g("palette-warning-light"):p.warning.light,.6)),A(p.Alert,"errorFilledBg",E("palette-error-main")),A(p.Alert,"infoFilledBg",E("palette-info-main")),A(p.Alert,"successFilledBg",E("palette-success-main")),A(p.Alert,"warningFilledBg",E("palette-warning-main")),A(p.Alert,"errorFilledColor",st(()=>p.getContrastText(p.error.main))),A(p.Alert,"infoFilledColor",st(()=>p.getContrastText(p.info.main))),A(p.Alert,"successFilledColor",st(()=>p.getContrastText(p.success.main))),A(p.Alert,"warningFilledColor",st(()=>p.getContrastText(p.warning.main))),A(p.Alert,"errorStandardBg",k(ge,a?g("palette-error-light"):p.error.light,.9)),A(p.Alert,"infoStandardBg",k(ge,a?g("palette-info-light"):p.info.light,.9)),A(p.Alert,"successStandardBg",k(ge,a?g("palette-success-light"):p.success.light,.9)),A(p.Alert,"warningStandardBg",k(ge,a?g("palette-warning-light"):p.warning.light,.9)),A(p.Alert,"errorIconColor",E("palette-error-main")),A(p.Alert,"infoIconColor",E("palette-info-main")),A(p.Alert,"successIconColor",E("palette-success-main")),A(p.Alert,"warningIconColor",E("palette-warning-main")),A(p.AppBar,"defaultBg",E("palette-grey-100")),A(p.Avatar,"defaultBg",E("palette-grey-400")),A(p.Button,"inheritContainedBg",E("palette-grey-300")),A(p.Button,"inheritContainedHoverBg",E("palette-grey-A100")),A(p.Chip,"defaultBorder",E("palette-grey-400")),A(p.Chip,"defaultAvatarColor",E("palette-grey-700")),A(p.Chip,"defaultIconColor",E("palette-grey-700")),A(p.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),A(p.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),A(p.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),A(p.LinearProgress,"primaryBg",k(ge,a?g("palette-primary-main"):p.primary.main,.62)),A(p.LinearProgress,"secondaryBg",k(ge,a?g("palette-secondary-main"):p.secondary.main,.62)),A(p.LinearProgress,"errorBg",k(ge,a?g("palette-error-main"):p.error.main,.62)),A(p.LinearProgress,"infoBg",k(ge,a?g("palette-info-main"):p.info.main,.62)),A(p.LinearProgress,"successBg",k(ge,a?g("palette-success-main"):p.success.main,.62)),A(p.LinearProgress,"warningBg",k(ge,a?g("palette-warning-light"):p.warning.main,.62)),A(p.Skeleton,"bg",v?k(Lt,a?g("palette-text-primary"):p.text.primary,.11):`rgba(${E("palette-text-primaryChannel")} / 0.11)`),A(p.Slider,"primaryTrack",k(ge,a?g("palette-primary-main"):p.primary.main,.62)),A(p.Slider,"secondaryTrack",k(ge,a?g("palette-secondary-main"):p.secondary.main,.62)),A(p.Slider,"errorTrack",k(ge,a?g("palette-error-main"):p.error.main,.62)),A(p.Slider,"infoTrack",k(ge,a?g("palette-info-main"):p.info.main,.62)),A(p.Slider,"successTrack",k(ge,a?g("palette-success-main"):p.success.main,.62)),A(p.Slider,"warningTrack",k(ge,a?g("palette-warning-main"):p.warning.main,.62));const D=v?k(he,a?g("palette-background-default"):p.background.default,.6825):Kn(p.background.default,.8);A(p.SnackbarContent,"bg",D),A(p.SnackbarContent,"color",st(()=>v?ro.text.primary:p.getContrastText(D))),A(p.SpeedDialAction,"fabHoverBg",Kn(p.background.paper,.15)),A(p.StepConnector,"border",E("palette-grey-400")),A(p.StepContent,"border",E("palette-grey-400")),A(p.Switch,"defaultColor",E("palette-common-white")),A(p.Switch,"defaultDisabledColor",E("palette-grey-100")),A(p.Switch,"primaryDisabledColor",k(ge,a?g("palette-primary-main"):p.primary.main,.62)),A(p.Switch,"secondaryDisabledColor",k(ge,a?g("palette-secondary-main"):p.secondary.main,.62)),A(p.Switch,"errorDisabledColor",k(ge,a?g("palette-error-main"):p.error.main,.62)),A(p.Switch,"infoDisabledColor",k(ge,a?g("palette-info-main"):p.info.main,.62)),A(p.Switch,"successDisabledColor",k(ge,a?g("palette-success-main"):p.success.main,.62)),A(p.Switch,"warningDisabledColor",k(ge,a?g("palette-warning-main"):p.warning.main,.62)),A(p.TableCell,"border",k(ge,Lt(a?g("palette-divider"):p.divider,1),.88)),A(p.Tooltip,"bg",k(Lt,a?g("palette-grey-700"):p.grey[700],.92))}if(p.mode==="dark"){A(p.Alert,"errorColor",k(ge,a?g("palette-error-light"):p.error.light,.6)),A(p.Alert,"infoColor",k(ge,a?g("palette-info-light"):p.info.light,.6)),A(p.Alert,"successColor",k(ge,a?g("palette-success-light"):p.success.light,.6)),A(p.Alert,"warningColor",k(ge,a?g("palette-warning-light"):p.warning.light,.6)),A(p.Alert,"errorFilledBg",E("palette-error-dark")),A(p.Alert,"infoFilledBg",E("palette-info-dark")),A(p.Alert,"successFilledBg",E("palette-success-dark")),A(p.Alert,"warningFilledBg",E("palette-warning-dark")),A(p.Alert,"errorFilledColor",st(()=>p.getContrastText(p.error.dark))),A(p.Alert,"infoFilledColor",st(()=>p.getContrastText(p.info.dark))),A(p.Alert,"successFilledColor",st(()=>p.getContrastText(p.success.dark))),A(p.Alert,"warningFilledColor",st(()=>p.getContrastText(p.warning.dark))),A(p.Alert,"errorStandardBg",k(he,a?g("palette-error-light"):p.error.light,.9)),A(p.Alert,"infoStandardBg",k(he,a?g("palette-info-light"):p.info.light,.9)),A(p.Alert,"successStandardBg",k(he,a?g("palette-success-light"):p.success.light,.9)),A(p.Alert,"warningStandardBg",k(he,a?g("palette-warning-light"):p.warning.light,.9)),A(p.Alert,"errorIconColor",E("palette-error-main")),A(p.Alert,"infoIconColor",E("palette-info-main")),A(p.Alert,"successIconColor",E("palette-success-main")),A(p.Alert,"warningIconColor",E("palette-warning-main")),A(p.AppBar,"defaultBg",E("palette-grey-900")),A(p.AppBar,"darkBg",E("palette-background-paper")),A(p.AppBar,"darkColor",E("palette-text-primary")),A(p.Avatar,"defaultBg",E("palette-grey-600")),A(p.Button,"inheritContainedBg",E("palette-grey-800")),A(p.Button,"inheritContainedHoverBg",E("palette-grey-700")),A(p.Chip,"defaultBorder",E("palette-grey-700")),A(p.Chip,"defaultAvatarColor",E("palette-grey-300")),A(p.Chip,"defaultIconColor",E("palette-grey-300")),A(p.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),A(p.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),A(p.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),A(p.LinearProgress,"primaryBg",k(he,a?g("palette-primary-main"):p.primary.main,.5)),A(p.LinearProgress,"secondaryBg",k(he,a?g("palette-secondary-main"):p.secondary.main,.5)),A(p.LinearProgress,"errorBg",k(he,a?g("palette-error-main"):p.error.main,.5)),A(p.LinearProgress,"infoBg",k(he,a?g("palette-info-main"):p.info.main,.5)),A(p.LinearProgress,"successBg",k(he,a?g("palette-success-main"):p.success.main,.5)),A(p.LinearProgress,"warningBg",k(he,a?g("palette-warning-main"):p.warning.main,.5)),A(p.Skeleton,"bg",v?k(Lt,a?g("palette-text-primary"):p.text.primary,.13):`rgba(${E("palette-text-primaryChannel")} / 0.13)`),A(p.Slider,"primaryTrack",k(he,a?g("palette-primary-main"):p.primary.main,.5)),A(p.Slider,"secondaryTrack",k(he,a?g("palette-secondary-main"):p.secondary.main,.5)),A(p.Slider,"errorTrack",k(he,a?g("palette-error-main"):p.error.main,.5)),A(p.Slider,"infoTrack",k(he,a?g("palette-info-main"):p.info.main,.5)),A(p.Slider,"successTrack",k(he,a?g("palette-success-main"):p.success.main,.5)),A(p.Slider,"warningTrack",k(he,a?g("palette-warning-light"):p.warning.main,.5));const D=v?k(ge,a?g("palette-background-default"):p.background.default,.985):Kn(p.background.default,.98);A(p.SnackbarContent,"bg",D),A(p.SnackbarContent,"color",st(()=>v?ma.text.primary:p.getContrastText(D))),A(p.SpeedDialAction,"fabHoverBg",Kn(p.background.paper,.15)),A(p.StepConnector,"border",E("palette-grey-600")),A(p.StepContent,"border",E("palette-grey-600")),A(p.Switch,"defaultColor",E("palette-grey-300")),A(p.Switch,"defaultDisabledColor",E("palette-grey-600")),A(p.Switch,"primaryDisabledColor",k(he,a?g("palette-primary-main"):p.primary.main,.55)),A(p.Switch,"secondaryDisabledColor",k(he,a?g("palette-secondary-main"):p.secondary.main,.55)),A(p.Switch,"errorDisabledColor",k(he,a?g("palette-error-main"):p.error.main,.55)),A(p.Switch,"infoDisabledColor",k(he,a?g("palette-info-main"):p.info.main,.55)),A(p.Switch,"successDisabledColor",k(he,a?g("palette-success-main"):p.success.main,.55)),A(p.Switch,"warningDisabledColor",k(he,a?g("palette-warning-light"):p.warning.main,.55)),A(p.TableCell,"border",k(he,Lt(a?g("palette-divider"):p.divider,1),.68)),A(p.Tooltip,"bg",k(Lt,a?g("palette-grey-700"):p.grey[700],.92))}a||(dt(p.background,"default"),dt(p.background,"paper"),dt(p.common,"background"),dt(p.common,"onBackground"),dt(p,"divider")),Object.keys(p).forEach(D=>{const z=p[D];D!=="tonalOffset"&&!a&&z&&typeof z=="object"&&(z.main&&A(p[D],"mainChannel",wn(Sn(z.main))),z.light&&A(p[D],"lightChannel",wn(Sn(z.light))),z.dark&&A(p[D],"darkChannel",wn(Sn(z.dark))),z.contrastText&&A(p[D],"contrastTextChannel",wn(Sn(z.contrastText))),D==="text"&&(dt(p[D],"primary"),dt(p[D],"secondary")),D==="action"&&(z.active&&dt(p[D],"active"),z.selected&&dt(p[D],"selected")))})}),T=t.reduce((R,p)=>Ye(R,p),T);const O={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:c,getSelector:gd(T),enableContrastVars:a},{vars:j,generateThemeVars:$,generateStyleSheets:L}=P2(T,O);return T.vars=j,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([R,p])=>{T[R]=p}),T.generateThemeVars=$,T.generateStyleSheets=L,T.generateSpacing=function(){return sa(m.spacing,Ao(this))},T.getColorSchemeSelector=V2(u),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=c,T.unstable_sxConfig={..._r,...m==null?void 0:m.unstable_sxConfig},T.unstable_sx=function(p){return dn({sx:p,theme:this})},T.toRuntimeSource=ga,T}function yi(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Io({...n===!0?{}:n.palette,mode:t})})}function Cd(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,c=i||"light",u=o==null?void 0:o[c],d={...o,...n?{[c]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return oo(e,...t);let m=n;"palette"in e||d[c]&&(d[c]!==!0?m=d[c].palette:c==="dark"&&(m={mode:"dark"}));const h=oo({...e,palette:m},...t);return h.defaultColorScheme=c,h.colorSchemes=d,h.palette.mode==="light"&&(h.colorSchemes.light={...d.light!==!0&&d.light,palette:h.palette},yi(h,"dark",d.dark)),h.palette.mode==="dark"&&(h.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:h.palette},yi(h,"light",d.light)),h}return!n&&!("light"in d)&&c==="light"&&(d.light=!0),xd({...a,colorSchemes:d,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const _d=Cd(),wd="$$material";function Do(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sd=e=>Do(e)&&e!=="classes",zt=S2({themeId:wd,defaultTheme:_d,rootShouldForwardProp:Sd}),mn=R2;process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Td(e){return L2(e)}const kd=e=>!e||!kn(e);function jd(e){return typeof e.main=="string"}function $d(e,t=[]){if(!jd(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Bo(e=[]){return([,t])=>t&&$d(t,e)}function Nd(e){return Lo("MuiSlider",e)}const et=v2("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Ed=e=>{const{open:t}=e;return{offset:Tt(t&&et.valueLabelOpen),circle:et.valueLabelCircle,label:et.valueLabelLabel}};function va(e){const{children:t,className:n,value:r}=e,o=Ed(e);return t?te.cloneElement(t,{className:t.props.className},l.jsxs(te.Fragment,{children:[t.props.children,l.jsx("span",{className:Tt(o.offset,n),"aria-hidden":!0,children:l.jsx("span",{className:o.circle,children:l.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(va.propTypes={children:s.element.isRequired,className:s.string,value:s.node});function bi(e){return e}const Od=zt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ot(n.color)}`],n.size!=="medium"&&t[`size${ot(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(mn(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${et.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${et.dragging}`]:{[`& .${et.thumb}, & .${et.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(Bo()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),Ad=zt("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),Md=zt("span",{name:"MuiSlider",slot:"Track"})(mn(({theme:e})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(e.palette).filter(Bo()).map(([t])=>({props:{color:t,track:"inverted"},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles("dark",{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles("dark",{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),Ld=zt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ot(n.color)}`],n.size!=="medium"&&t[`thumbSize${ot(n.size)}`]]}})(mn(({theme:e})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${et.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(e.palette).filter(Bo()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${et.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${et.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),xa=zt(va,{name:"MuiSlider",slot:"ValueLabel"})(mn(({theme:e})=>({zIndex:1,whiteSpace:"nowrap",...e.typography.body2,fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${et.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})));process.env.NODE_ENV!=="production"&&(xa.propTypes={children:s.element.isRequired,index:s.number.isRequired,open:s.bool.isRequired,value:s.node});const Rd=zt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Do(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(mn(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),Id=zt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Do(e)&&e!=="markLabelActive"})(mn(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),Dd=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:c,size:u}=e,d={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",c&&`color${ot(c)}`,u&&`size${ot(u)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",u&&`thumbSize${ot(u)}`,c&&`thumbColor${ot(c)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return K0(d,Nd,a)},Bd=({children:e})=>e,Ca=te.forwardRef(function(t,n){const r=Td({props:t,name:"MuiSlider"}),o=G0(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":c,component:u="span",components:d={},componentsProps:m={},color:h="primary",classes:y,className:g,disableSwap:b=!1,disabled:f=!1,getAriaLabel:x,getAriaValueText:w,marks:S=!1,max:N=100,min:v=0,name:C,onChange:T,onChangeCommitted:O,orientation:j="horizontal",shiftStep:$=10,size:L="medium",step:R=1,scale:p=bi,slotProps:E,slots:k,tabIndex:D,track:z="normal",value:B,valueLabelDisplay:F="off",valueLabelFormat:Z=bi,...M}=r,I={...r,isRtl:o,max:N,min:v,classes:y,disabled:f,disableSwap:b,orientation:j,marks:S,color:h,size:L,step:R,shiftStep:$,scale:p,track:z,valueLabelDisplay:F,valueLabelFormat:Z},{axisProps:J,getRootProps:H,getHiddenInputProps:q,getThumbProps:G,open:ne,active:re,axis:Q,focusedThumbIndex:se,range:K,dragging:le,marks:V,values:de,trackOffset:Ve,trackLeap:ct,getThumbStyle:$t}=lu({...I,rootRef:n});I.marked=V.length>0&&V.some(_e=>_e.label),I.dragging=le,I.focusedThumbIndex=se;const Me=Dd(I),Re=(k==null?void 0:k.root)??d.Root??Od,Le=(k==null?void 0:k.rail)??d.Rail??Ad,ut=(k==null?void 0:k.track)??d.Track??Md,bt=(k==null?void 0:k.thumb)??d.Thumb??Ld,Wt=(k==null?void 0:k.valueLabel)??d.ValueLabel??xa,Ue=(k==null?void 0:k.mark)??d.Mark??Rd,Nt=(k==null?void 0:k.markLabel)??d.MarkLabel??Id,P=(k==null?void 0:k.input)??d.Input??"input",U=(E==null?void 0:E.root)??m.root,Y=(E==null?void 0:E.rail)??m.rail,oe=(E==null?void 0:E.track)??m.track,ce=(E==null?void 0:E.thumb)??m.thumb,X=(E==null?void 0:E.valueLabel)??m.valueLabel,fe=(E==null?void 0:E.mark)??m.mark,Ie=(E==null?void 0:E.markLabel)??m.markLabel,ke=(E==null?void 0:E.input)??m.input,De=_t({elementType:Re,getSlotProps:H,externalSlotProps:U,externalForwardedProps:M,additionalProps:{...kd(Re)&&{as:u}},ownerState:{...I,...U==null?void 0:U.ownerState},className:[Me.root,g]}),je=_t({elementType:Le,externalSlotProps:Y,ownerState:I,className:Me.rail}),jr=_t({elementType:ut,externalSlotProps:oe,additionalProps:{style:{...J[Q].offset(Ve),...J[Q].leap(ct)}},ownerState:{...I,...oe==null?void 0:oe.ownerState},className:Me.track}),He=_t({elementType:bt,getSlotProps:G,externalSlotProps:ce,ownerState:{...I,...ce==null?void 0:ce.ownerState},className:Me.thumb}),hn=_t({elementType:Wt,externalSlotProps:X,ownerState:{...I,...X==null?void 0:X.ownerState},className:Me.valueLabel}),Ut=_t({elementType:Ue,externalSlotProps:fe,ownerState:I,className:Me.mark}),Ht=_t({elementType:Nt,externalSlotProps:Ie,ownerState:I,className:Me.markLabel}),Ln=_t({elementType:P,getSlotProps:q,externalSlotProps:ke,ownerState:I});return l.jsxs(Re,{...De,children:[l.jsx(Le,{...je}),l.jsx(ut,{...jr}),V.filter(_e=>_e.value>=v&&_e.value<=N).map((_e,$e)=>{const gn=or(_e.value,v,N),Kt=J[Q].offset(gn);let Ke;return z===!1?Ke=de.includes(_e.value):Ke=z==="normal"&&(K?_e.value>=de[0]&&_e.value<=de[de.length-1]:_e.value<=de[0])||z==="inverted"&&(K?_e.value<=de[0]||_e.value>=de[de.length-1]:_e.value>=de[0]),l.jsxs(te.Fragment,{children:[l.jsx(Ue,{"data-index":$e,...Ut,...!kn(Ue)&&{markActive:Ke},style:{...Kt,...Ut.style},className:Tt(Ut.className,Ke&&Me.markActive)}),_e.label!=null?l.jsx(Nt,{"aria-hidden":!0,"data-index":$e,...Ht,...!kn(Nt)&&{markLabelActive:Ke},style:{...Kt,...Ht.style},className:Tt(Me.markLabel,Ht.className,Ke&&Me.markLabelActive),children:_e.label}):null]},$e)}),de.map((_e,$e)=>{const gn=or(_e,v,N),Kt=J[Q].offset(gn),Ke=F==="off"?Bd:Wt;return l.jsx(Ke,{...!kn(Ke)&&{valueLabelFormat:Z,valueLabelDisplay:F,value:typeof Z=="function"?Z(p(_e),$e):Z,index:$e,open:ne===$e||re===$e||F==="on",disabled:f},...hn,children:l.jsx(bt,{"data-index":$e,...He,className:Tt(Me.thumb,He.className,re===$e&&Me.active,se===$e&&Me.focusVisible),style:{...Kt,...$t($e),...He.style},children:l.jsx(P,{"data-index":$e,"aria-label":x?x($e):i,"aria-valuenow":p(_e),"aria-labelledby":c,"aria-valuetext":w?w(p(_e),$e):a,value:de[$e],...Ln})})},$e)})]})});process.env.NODE_ENV!=="production"&&(Ca.propTypes={"aria-label":qs(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-label"]!=null?new Error("MUI: You need to use the `getAriaLabel` prop instead of `aria-label` when using a range slider."):null),"aria-labelledby":s.string,"aria-valuetext":qs(s.string,e=>Array.isArray(e.value||e.defaultValue)&&e["aria-valuetext"]!=null?new Error("MUI: You need to use the `getAriaValueText` prop instead of `aria-valuetext` when using a range slider."):null),children:s.node,classes:s.object,className:s.string,color:s.oneOfType([s.oneOf(["primary","secondary","error","info","success","warning"]),s.string]),components:s.shape({Input:s.elementType,Mark:s.elementType,MarkLabel:s.elementType,Rail:s.elementType,Root:s.elementType,Thumb:s.elementType,Track:s.elementType,ValueLabel:s.elementType}),componentsProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),defaultValue:s.oneOfType([s.arrayOf(s.number),s.number]),disabled:s.bool,disableSwap:s.bool,getAriaLabel:s.func,getAriaValueText:s.func,marks:s.oneOfType([s.arrayOf(s.shape({label:s.node,value:s.number.isRequired})),s.bool]),max:s.number,min:s.number,name:s.string,onChange:s.func,onChangeCommitted:s.func,orientation:s.oneOf(["horizontal","vertical"]),scale:s.func,shiftStep:s.number,size:s.oneOfType([s.oneOf(["small","medium"]),s.string]),slotProps:s.shape({input:s.oneOfType([s.func,s.object]),mark:s.oneOfType([s.func,s.object]),markLabel:s.oneOfType([s.func,s.object]),rail:s.oneOfType([s.func,s.object]),root:s.oneOfType([s.func,s.object]),thumb:s.oneOfType([s.func,s.object]),track:s.oneOfType([s.func,s.object]),valueLabel:s.oneOfType([s.func,s.shape({children:s.element,className:s.string,open:s.bool,style:s.object,value:s.node,valueLabelDisplay:s.oneOf(["auto","off","on"])})])}),slots:s.shape({input:s.elementType,mark:s.elementType,markLabel:s.elementType,rail:s.elementType,root:s.elementType,thumb:s.elementType,track:s.elementType,valueLabel:s.elementType}),step:s.number,sx:s.oneOfType([s.arrayOf(s.oneOfType([s.func,s.object,s.bool])),s.func,s.object]),tabIndex:s.number,track:s.oneOf(["inverted","normal",!1]),value:s.oneOfType([s.arrayOf(s.number),s.number]),valueLabelDisplay:s.oneOf(["auto","off","on"]),valueLabelFormat:s.oneOfType([s.func,s.string])});const Pd="_slider_1prh1_2",Vd="_playButton_1prh1_14",Fd="_sliderOpen_1prh1_25",zd="_sliderResults_1prh1_29",vn={slider:Pd,playButton:Vd,sliderOpen:Fd,sliderResults:zd},Po=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,marcas:o=null,zIndex:i=10,rightBarOpen:a=!1,conditionToBeRuning:c=null,onChange:u=d=>{console.log("year changed to ",d)}})=>{const m=o||((v,C)=>{const T=[];T.push({label:"",value:v});const O=Math.ceil(v/10)*10;for(let j=O;j<C;j+=10)T.push({label:"",value:j});return T[T.length-1].value!==C&&T.push({label:"",value:C}),T})(n,r),[h,y]=_.useState(t);_.useEffect(()=>{y(t)},[t]);const g=(v,C)=>{y(C),u(C)},[b,f]=_.useState(!1);_.useEffect(()=>{t&&console.log("defaultYear changed:",t),t&&y(t)},[t]),_.useEffect(()=>{c===!1&&f(!1)},[c]);const x=()=>{f(!0)},w=()=>{f(!1)};((v,C,T=[])=>{const O=_.useRef();_.useEffect(()=>{O.current=v},[v]),_.useEffect(()=>{function j(){O.current()}{let $=setInterval(j,C);return()=>clearInterval($)}},[C,...T])})(()=>{b&&y(v=>{const C=v+1;return C>r?(u(n),n):(u(C),C)})},1e3,[n,r,b]);const N=gs.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}});return l.jsx(Wa.ThemeProvider,{theme:N,children:l.jsxs(gs.Box,{sx:{width:400},className:`${e?vn.sliderResults:vn.slider} ${a?vn.sliderOpen:""}`,style:{zIndex:i},children:[n,l.jsx(Ca,{"aria-label":"TimeSlider",value:h,valueLabelDisplay:"on",step:1,marks:m,min:n,max:r,onChange:g,color:"primary",size:"small"}),r,!b&&l.jsx("button",{className:vn.playButton,onClick:x,children:l.jsx("img",{src:U0,alt:"Play"})}),b&&l.jsx("button",{className:vn.playButton,onClick:w,children:l.jsx("img",{src:H0,alt:"Pause"})})]})})};Po.displayName="TimeSlider";Po.propTypes={defaultYear:s.number,onResults:s.bool,firstYear:s.number,lastYear:s.number,marcas:s.arrayOf(s.shape({label:s.string,value:s.number})),zIndex:s.number,rightBarOpen:s.bool,onChange:s.func};const qd="_TopNavMenuContainer_12mp4_2",Wd="_topNavOptions_12mp4_13",Ud="_active_12mp4_27",Ur={TopNavMenuContainer:qd,topNavOptions:Wd,active:Ud},Vo=({options:e=[],containerStyles:t,borderColor:n="red",textColor:r="white",onChangeNavLink:o=i=>{console.log("Changed NavLink",i)}})=>{const{t:i}=ie.useTranslation();return l.jsx("div",{className:Ur.TopNavMenuContainer,style:{...t},children:e.map((a,c)=>l.jsx(Pi.NavLink,{to:a.url,className:({isActive:u})=>`${Ur.topNavOptions} ${u?Ur.active:""} `,onClick:()=>o(a.url),style:({isActive:u})=>({color:r,borderBottom:u?`5px solid ${n}`:"5px solid transparent"}),children:i(a.name)},c))})};Vo.displayName="TopNavMenu";Vo.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const Hd="_LogInButton_1vxj5_2",Kd={LogInButton:Hd},Fo=({cssClass:e,notLoggedInLabel:t="Log in",loggedInLabel:n="Log out",containerStyles:r,userName:o="",isLoggedIn:i=!1,onClickLogIn:a=()=>{console.log("Login clicked")},onClickLogOut:c=()=>{console.log("Logout clicked")}})=>{const{t:u}=ie.useTranslation();return l.jsx("div",{style:{...r},className:`${Kd.LogInButton} link ${e}`,onClick:i?c:a,children:i?o||u(n):u(t)})};Fo.displayName="LogInButton";Fo.propTypes={cssClass:s.string,notLoggedInLabel:s.string,loggedInLabel:s.string,containerStyles:s.object,userName:s.string,isLoggedIn:s.bool};const Zd="_elementSelector_1ox68_2",Gd="_header_1ox68_14",Yd="_nameDateContainer_1ox68_24",Xd="_elementName_1ox68_40",Qd="_elementDate_1ox68_54",Jd="_buttonsContainer_1ox68_68",e1="_elementListContainer_1ox68_77",t1="_newElementButtonContainer_1ox68_81",ft={elementSelector:Zd,header:Gd,nameDateContainer:Yd,elementName:Xd,elementDate:Qd,buttonsContainer:Jd,elementListContainer:e1,newElementButtonContainer:t1},n1="_listElement_s4s4h_3",r1="_elementNameDate_s4s4h_19",o1="_elementNameContainer_s4s4h_30",s1="_elementName_s4s4h_19",i1="_elementDate_s4s4h_47",a1="_nameAndEye_s4s4h_50",l1="_elementButtons_s4s4h_55",c1="_moreInfoContainer_s4s4h_78",u1="_moreInfo_s4s4h_78",Xe={listElement:n1,elementNameDate:r1,elementNameContainer:o1,elementName:s1,elementDate:i1,nameAndEye:a1,elementButtons:l1,break:"_break_s4s4h_73",moreInfoContainer:c1,moreInfo:u1},d1="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",f1="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",p1="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",m1="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",h1="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",g1="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='Editar'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203792'%3e%3cpath%20id='Vector%20530'%20d='M22.469%2010.8343L19.54%207.90531C19.3447%207.71005%2019.0281%207.71005%2018.8329%207.90531L8.39131%2018.3469C8.31762%2018.4206%208.2688%2018.5154%208.25167%2018.6182L7.66586%2022.1331C7.60946%2022.4715%207.90285%2022.7649%208.24126%2022.7085L11.7561%2022.1227C11.8589%2022.1055%2011.9538%2022.0567%2012.0275%2021.983L22.469%2011.5415C22.6643%2011.3462%2022.6643%2011.0296%2022.469%2010.8343Z'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20531'%20d='M9.00391%2017.7334L12.6401%2021.3695'%20stroke='%23605B56'/%3e%3cpath%20id='Vector%20614'%20d='M19.4292%207.55176L9.24805%2017.733L12.6418%2021.1267L22.823%2010.9455L19.4292%207.55176Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",y1="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%206729'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.1021'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='i'%20d='M14%209.008C14%208.708%2014.102%208.468%2014.306%208.288C14.51%208.096%2014.78%208%2015.116%208C15.452%208%2015.722%208.096%2015.926%208.288C16.13%208.468%2016.232%208.708%2016.232%209.008C16.232%209.308%2016.13%209.554%2015.926%209.746C15.722%209.926%2015.452%2010.016%2015.116%2010.016C14.78%2010.016%2014.51%209.926%2014.306%209.746C14.102%209.554%2014%209.308%2014%209.008ZM15.926%2011.906V21.788H14.288V11.906H15.926Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e";var vi;function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},so.apply(null,arguments)}var b1=function(t){return te.createElement("svg",so({xmlns:"http://www.w3.org/2000/svg",width:26,height:14,fill:"none"},t),vi||(vi=te.createElement("g",{fill:"currentColor"},te.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"}),te.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 v1="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",zo=({listelement:e,onClickElement:t,isActive:n,activeColor:r,fontColor:o,moreInfo:i,columns:a,elementButtons:c,processTooltip:u,defaultTooltip:d,showEye:m=!0})=>{const{name:h,created_at:y,id:g,isBeingProcessed:b}=e,[f,x]=_.useState(!1),{t:w}=ie.useTranslation(),S=c&&c.edit&&!e.is_default&&!e.is_baseline,N=c&&c.trash&&!e.is_default&&!e.is_baseline;return l.jsxs("div",{className:Xe.listElement,style:{borderBottom:`1px solid ${o}`},children:[l.jsx("div",{className:Xe.elementNameDate,onClick:()=>t(g),children:Object.keys(a).map((v,C)=>v==="name"?l.jsx("div",{className:Xe.elementNameContainer,children:l.jsxs("div",{className:`${Xe.elementName} ${m&&Xe.nameAndEye}`,children:[m&&(n?l.jsx(b1,{style:{color:r,marginRight:9}}):l.jsx("img",{style:{marginRight:9},src:v1,alt:"eye"})),l.jsx("span",{style:{color:n?r:o},children:h})]})},`col${C}`):v=="data"?l.jsx("div",{className:Xe.elementDate,children:y?new Date(y).toLocaleDateString():""},`col${C}data`):l.jsx("div",{className:Xe.elementDate,children:e[v]},`col${C}other`))}),l.jsxs("div",{className:Xe.elementButtons,children:[e.processing&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("img",{src:m1}),l.jsx(rt,{text:u,position:"left"})]}),c.filter&&!e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.filter.onclick(e),disabled:c.filter.disabled||!1,children:l.jsx("img",{src:p1})}),l.jsx(rt,{text:c.filter.tooltiptext,position:"left"})]}),c.copy&&!e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.copy.onclick(e),disabled:c.copy.disabled||!1,children:l.jsx("img",{src:f1})}),l.jsx(rt,{text:c.copy.tooltiptext,position:"left"})]}),S&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.edit.onclick(e),disabled:c.edit.disabled||!1,children:l.jsx("img",{src:g1})}),l.jsx(rt,{text:c.edit.tooltiptext,position:"left"})]}),c.info&&e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.info.onclick(e),disabled:c.info.disabled||!1,children:l.jsx("img",{src:y1})}),l.jsx(rt,{text:c.info.tooltiptext,position:"left"})]}),N&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("button",{onClick:()=>c.trash.onclick(e),disabled:c.trash.disabled||!1,children:l.jsx("img",{src:d1})}),l.jsx(rt,{text:c.trash.tooltiptext,position:"left"})]}),e.is_default&&l.jsxs("div",{className:"tooltip-parent",children:[l.jsx("img",{src:h1}),l.jsx(rt,{text:d,position:"left"})]})]}),i&&l.jsx("div",{className:Xe.break}),i&&l.jsxs("div",{className:Xe.moreInfoContainer,children:[l.jsxs("div",{className:Xe.moreInfo,onClick:()=>x(!f),children:[l.jsx("span",{children:f?"-":"+"}),w(i.label)]}),i&&f&&l.jsx("div",{className:Xe.moreInfoInfo,children:e[i.info]})]})]})};zo.displayName="ListElement";zo.propTypes={listelement:s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired,isBeingProcessed:s.bool}).isRequired,onClickElement:s.func.isRequired,isActive:s.bool,activeColor:s.string,fontColor:s.string,moreInfo:s.any,columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const xi="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",qo=({elementsList:e,activeElementId:t,fontColor:n="#605B56",activeColor:r,buttonContainerStyles:o={},containerStyles:i={},newElementButton:a,onClickElement:c=b=>console.log(`OnCLickElement: ${b}`),columns:u,elementButtons:d,moreInfo:m=!1,processTooltip:h,defaultTooltip:y,showEye:g=!0})=>{const{t:b}=ie.useTranslation(),[f,x]=_.useState(e);_.useEffect(()=>{e&&x(e)},[e]);const w=v=>{if(typeof v!="string")return null;if(/^\d{4}[-/]\d{2}[-/]\d{2}$/.test(v))return new Date(v);const C=/^(\d{2})[-/.]\s*(\d{2})[-/.]\s*(\d{4})$/.exec(v);if(C)return new Date(`${C[3]}-${C[2]}-${C[1]}`);const T=/^(\d{2})[-/]\s*(\d{2})[-/]\s*(\d{4})$/.exec(v);return T?parseInt(T[1])>12?new Date(`${T[3]}-${T[2]}-${T[1]}`):new Date(`${T[3]}-${T[1]}-${T[2]}`):null},S=v=>w(v)!==null,N=v=>{if(!f||f.length===0)return;let C=[...f];const T=C.find(j=>j[v]!==null&&j[v]!==void 0),O=T?S(T[v]):!1;C.sort((j,$)=>{const L=j[v],R=$[v];if(L==null&&R==null)return 0;if(L==null)return 1;if(R==null)return-1;if(O){const k=w(L),D=w(R);return!k&&!D?0:k?D?k-D:-1:1}const p=String(L||"").trim(),E=String(R||"").trim();return p.localeCompare(E)}),x(C)};return l.jsxs("div",{className:ft.elementSelector,style:{color:n,...i},children:[l.jsxs("div",{className:ft.header,style:{borderBottom:`1px solid ${n}`},children:[l.jsx("div",{className:ft.nameDateContainer,children:Object.keys(u).map(v=>v==="name"?l.jsx("div",{className:ft.elementName,children:l.jsxs("button",{onClick:()=>N("name"),children:[l.jsx("span",{children:b(u.name)}),l.jsx("img",{src:xi,alt:"order arrow"})]})},v):v==="data"?l.jsx("div",{className:ft.elementDate,children:l.jsxs("button",{onClick:()=>N("created_at"),children:[l.jsx("span",{children:b(u.data)}),l.jsx("img",{src:xi,alt:"order arrow"})]})},v):l.jsx("div",{className:ft.elementDate,children:l.jsx("span",{children:b(u[v])})},v))}),l.jsx("div",{className:ft.buttonsContainer})]}),l.jsx("div",{className:ft.elementListContainer,children:f&&f.length>0&&f.map(v=>l.jsx(zo,{isActive:t==v.id,listelement:v,fontColor:n,activeColor:r,onClickElement:c,columns:u,elementButtons:d,moreInfo:m,processTooltip:h,defaultTooltip:y,showEye:g},`elementKey${v.id}`))}),a&&l.jsx("div",{className:ft.newElementButtonContainer,children:l.jsx(fn,{style:{...o},onClick:a.onClick,borderColor:"grey",disabled:a.disabled||!1,children:b(a.label)})})]})};qo.displayName="ListSelector";qo.propTypes={elementsList:s.arrayOf(s.shape({name:s.string.isRequired,created_at:s.string,id:s.any.isRequired})).isRequired,activeElementId:s.any,fontColor:s.string,activeColor:s.string,onClickElement:s.func.isRequired,newElementButton:s.shape({label:s.string,onClick:s.func}),columns:s.shape({name:s.string,data:s.string,ambit:s.string,escenari:s.string}),elementButtons:s.shape({copy:s.shape({onclick:s.func,tooltiptext:s.string}),delete:s.shape({onclick:s.func,tooltiptext:s.string}),filter:s.shape({onclick:s.func,tooltiptext:s.string})}),buttonContainerStyles:s.object,containerStyles:s.object,onCLickNewElement:s.func,moreInfo:s.shape({label:s.string,info:s.any}),processTooltip:s.string,defaultTooltip:s.string,showEye:s.bool};const x1="_formContainer_asv64_2",C1="_categorySelectorContainer_asv64_11",_1="_formObjectContainer_asv64_15",w1="_buttonContainer_asv64_26",xn={formContainer:x1,categorySelectorContainer:C1,formObjectContainer:_1,buttonContainer:w1},rn={text:"text",password:"password",radioList:"radioList",select:"select",textDescription:"textDescription",rankingSlider:"rankingSlider"};var S1=e=>e.type==="checkbox",Tn=e=>e instanceof Date,Wo=e=>e==null;const _a=e=>typeof e=="object";var Vt=e=>!Wo(e)&&!Array.isArray(e)&&_a(e)&&!Tn(e),T1=e=>Vt(e)&&e.target?S1(e.target)?e.target.checked:e.target.value:e,k1=(e,t)=>t.split(".").some((n,r,o)=>!isNaN(Number(n))&&e.has(o.slice(0,r).join("."))),j1=e=>{const t=e.constructor&&e.constructor.prototype;return Vt(t)&&t.hasOwnProperty("isPrototypeOf")},$1=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function wa(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if($1&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Vt(e)&&j1(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=wa(e[o]));return r}var Sa=e=>/^\w*$/.test(e),io=e=>e===void 0,N1=e=>Array.isArray(e)?e.filter(Boolean):[],Ta=e=>N1(e.replace(/["|']|\]/g,"").split(/\.|\[/)),We=(e,t,n)=>{if(!t||!Vt(e))return n;const r=(Sa(t)?[t]:Ta(t)).reduce((o,i)=>Wo(o)?o:o[i],e);return io(r)||r===e?io(e[t])?n:e[t]:r},Hr=e=>typeof e=="boolean",Zn=e=>typeof e=="function",Ci=(e,t,n)=>{let r=-1;const o=Sa(t)?[t]:Ta(t),i=o.length,a=i-1;for(;++r<i;){const c=o[r];let u=n;if(r!==a){const d=e[c];u=Vt(d)||Array.isArray(d)?d:isNaN(+o[r+1])?{}:[]}if(c==="__proto__"||c==="constructor"||c==="prototype")return;e[c]=u,e=e[c]}};const _i={BLUR:"blur",CHANGE:"change"},wi={all:"all"},ka=_.createContext(null);ka.displayName="HookFormControlContext";const Uo=()=>_.useContext(ka);var E1=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==wi.all&&(t._proxyFormState[a]=!r||wi.all),n&&(n[a]=!0),e[a]}});return o};const ja=typeof window<"u"?_.useLayoutEffect:_.useEffect;function O1(e){const t=Uo(),{control:n=t,disabled:r,name:o,exact:i}=e||{},[a,c]=_.useState(n._formState),u=_.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return ja(()=>n._subscribe({name:o,formState:u.current,exact:i,callback:d=>{!r&&c({...n._formState,...d})}}),[o,r,i]),_.useEffect(()=>{u.current.isValid&&n._setValid(!0)},[n]),_.useMemo(()=>E1(a,n,u.current,!1),[a,n])}var A1=e=>typeof e=="string",Si=(e,t,n,r,o)=>A1(e)?We(n,e,o):Array.isArray(e)?e.map(i=>We(n,i)):n,Ti=e=>Wo(e)||!_a(e);function tr(e,t,n=new WeakSet){if(Ti(e)||Ti(t))return Object.is(e,t);if(Tn(e)&&Tn(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const a=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const c=t[i];if(Tn(a)&&Tn(c)||(Vt(a)||Array.isArray(a))&&(Vt(c)||Array.isArray(c))?!tr(a,c,n):!Object.is(a,c))return!1}}return!0}function M1(e){const t=Uo(),{control:n=t,name:r,defaultValue:o,disabled:i,exact:a,compute:c}=e||{},u=_.useRef(o),d=_.useRef(c),m=_.useRef(void 0),h=_.useRef(n),y=_.useRef(r);d.current=c;const[g,b]=_.useState(()=>{const v=n._getWatch(r,u.current);return d.current?d.current(v):v}),f=_.useCallback(v=>{const C=Si(r,n._names,v||n._formValues,!1,u.current);return d.current?d.current(C):C},[n._formValues,n._names,r]),x=_.useCallback(v=>{if(!i){const C=Si(r,n._names,v||n._formValues,!1,u.current);if(d.current){const T=d.current(C);tr(T,m.current)||(b(T),m.current=T)}else b(C)}},[n._formValues,n._names,i,r]);ja(()=>((h.current!==n||!tr(y.current,r))&&(h.current=n,y.current=r,x()),n._subscribe({name:r,formState:{values:!0},exact:a,callback:v=>{x(v.values)}})),[n,a,r,x]),_.useEffect(()=>n._removeUnmounted());const w=h.current!==n,S=y.current,N=_.useMemo(()=>{if(i)return null;const v=!w&&!tr(S,r);return w||v?f():null},[i,w,r,S,f]);return N!==null?N:g}function L1(e){const t=Uo(),{name:n,disabled:r,control:o=t,shouldUnregister:i,defaultValue:a,exact:c=!0}=e,u=k1(o._names.array,n),d=_.useMemo(()=>We(o._formValues,n,We(o._defaultValues,n,a)),[o,n,a]),m=M1({control:o,name:n,defaultValue:d,exact:c}),h=O1({control:o,name:n,exact:c}),y=_.useRef(e),g=_.useRef(void 0),b=_.useRef(o.register(n,{...e.rules,value:m,...Hr(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const f=_.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!We(h.errors,n)},isDirty:{enumerable:!0,get:()=>!!We(h.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!We(h.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!We(h.validatingFields,n)},error:{enumerable:!0,get:()=>We(h.errors,n)}}),[h,n]),x=_.useCallback(v=>b.current.onChange({target:{value:T1(v),name:n},type:_i.CHANGE}),[n]),w=_.useCallback(()=>b.current.onBlur({target:{value:We(o._formValues,n),name:n},type:_i.BLUR}),[n,o._formValues]),S=_.useCallback(v=>{const C=We(o._fields,n);C&&C._f&&v&&(C._f.ref={focus:()=>Zn(v.focus)&&v.focus(),select:()=>Zn(v.select)&&v.select(),setCustomValidity:T=>Zn(v.setCustomValidity)&&v.setCustomValidity(T),reportValidity:()=>Zn(v.reportValidity)&&v.reportValidity()})},[o._fields,n]),N=_.useMemo(()=>({name:n,value:m,...Hr(r)||h.disabled?{disabled:h.disabled||r}:{},onChange:x,onBlur:w,ref:S}),[n,r,h.disabled,x,w,S,m]);return _.useEffect(()=>{const v=o._options.shouldUnregister||i,C=g.current;C&&C!==n&&!u&&o.unregister(C),o.register(n,{...y.current.rules,...Hr(y.current.disabled)?{disabled:y.current.disabled}:{}});const T=(O,j)=>{const $=We(o._fields,O);$&&$._f&&($._f.mount=j)};if(T(n,!0),v){const O=wa(We(o._options.defaultValues,n,y.current.defaultValue));Ci(o._defaultValues,n,O),io(We(o._formValues,n))&&Ci(o._formValues,n,O)}return!u&&o.register(n),g.current=n,()=>{(u?v&&!o._state.action:v)?o.unregister(n):T(n,!1)}},[n,o,u,i]),_.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),_.useMemo(()=>({field:N,formState:h,fieldState:f}),[N,h,f])}const An=e=>e.render(L1(e)),R1=_.createContext(null);R1.displayName="HookFormContext";const I1="_textInputContainer_1o3iy_2",D1="_labelContainer_1o3iy_5",B1="_inputContainer_1o3iy_8",P1="_showPasswordButton_1o3iy_14",V1="_forgotPassButton_1o3iy_26",Cn={textInputContainer:I1,labelContainer:D1,inputContainer:B1,showPasswordButton:P1,forgotPassButton:V1},F1="_errorMessage_1xiyb_2",z1={errorMessage:F1},qt=({errorMessage:e,errorColor:t="red",containerStyles:n})=>{const{t:r}=ie.useTranslation();return l.jsx("div",{className:z1.errorMessage,style:{color:t,...n},children:e?r(e):""})};qt.displayName="ErrorMessage";const q1="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",W1="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",Mn=co.create(e=>({errorColor:"red"})),lr=({input:e,reactHookFormInstance:t})=>{const{code:n,type:r,label:o,maxLength:i,required:a,validateFunction:c,placeholder:u,errorColor:d="red",width:m=325,onClickForgotPass:h=()=>{console.log("Click on forgot password")},forgotPassLabel:y="forgot-password",onChangeExtraFunction:g=()=>{}}=e,{t:b}=ie.useTranslation(),{control:f,trigger:x,clearErrors:w}=t,{errorColor:S}=Mn(T=>T),[N,v]=_.useState(!1);_.useRef(a);const C=()=>r?r==="password"&&N?"text":r:"text";return l.jsx(An,{name:n,control:f,rules:{required:a?`${b(o)} ${b("errorMessages.required")}`:!1,maxLength:i||void 0,validate:c||void 0},render:({field:T,fieldState:O})=>{var R;const{onChange:j,...$}=T,L=p=>{j(p),g&&g(p)};return l.jsxs("div",{className:Cn.textInputContainer,children:[l.jsxs("h3",{className:Cn.labelContainer,children:[b(o)," ",a&&l.jsx("label",{style:{color:O.error?d:""},children:"*"})]}),l.jsxs("div",{style:{position:"relative",width:m},className:Cn.inputContainer,children:[l.jsx("input",{...$,type:C(),onChange:L,placeholder:u?b(u):"",maxLength:i||void 0}),r=="password"&&l.jsx("button",{onClick:()=>v(!N),type:"button",className:Cn.showPasswordButton,children:l.jsx("img",{src:N?W1:q1,alt:b("show-password")})})]}),r=="password"&&l.jsx("div",{className:Cn.forgotPassButton,children:l.jsx("button",{onClick:h,children:b(y)})}),l.jsx(qt,{errorMessage:(R=O.error)==null?void 0:R.message,errorColor:S||d})]})}})};lr.displayName="TextInput";const U1="_inputsContainer_10t9s_2",on={inputsContainer:U1},H1="_selectInputContainer_zzz6o_2",K1="_labelContainer_zzz6o_6",Z1="_selectWrapper_zzz6o_9",G1="_inputContainer_zzz6o_15",Y1="_selectInput_zzz6o_2",X1="_option_zzz6o_29",Q1="_dropdownArrow_zzz6o_32",Fe={selectInputContainer:H1,labelContainer:K1,selectWrapper:Z1,inputContainer:G1,selectInput:Y1,option:X1,dropdownArrow:Q1},ki="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",Ho=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,type:o,label:i,maxLength:a,required:c,validateFunction:u,placeholder:d,errorColor:m="red",width:h=325,options:y=[]}=e,{t:g}=ie.useTranslation(),{control:b,trigger:f,clearErrors:x}=t||{},{errorColor:w}=Mn(v=>v);_.useRef(c);const[S,N]=_.useState(null);return _.useEffect(()=>{S&&n&&n(S)},[S,n]),t?l.jsx(An,{name:r,control:b,rules:{required:c?`${g(i)} ${g("errorMessages.required")}`:!1,validate:u?v=>{let C=t.getValues();return u(v,C)}:void 0},render:({field:v,fieldState:C})=>{var O;const T=y.find(j=>j.value===v.value);return l.jsxs("div",{className:Fe.selectInputContainer,children:[i&&l.jsxs("h3",{className:Fe.labelContainer,children:[g(i)," ",c&&l.jsx("label",{style:{color:C.error?m:""},children:"*"})]}),l.jsxs("div",{className:Fe.selectWrapper,children:[l.jsxs("div",{className:Fe.inputContainer,style:{width:h},children:[l.jsxs("select",{...v,value:v.value??"",onChange:j=>{const $=j.target.value,L=y.every(R=>typeof R.value=="number")?Number($):$;v.onChange(L)},className:Fe.selectInput,children:[l.jsx("option",{value:"",disabled:!0,hidden:!0,children:g(d||"selectOption")}),y.map((j,$)=>l.jsx("option",{value:j.value,className:Fe.option,children:g(j.label)},$))]}),l.jsx("img",{src:ki,alt:"Open",className:Fe.dropdownArrow})]}),T&&T.description&&l.jsx("div",{className:Fe.optionDescription,children:g(T.description)})]}),l.jsx(qt,{errorMessage:(O=C.error)==null?void 0:O.message,errorColor:w||m})]})}}):l.jsxs("div",{className:Fe.selectInputContainer,children:[i&&l.jsxs("h3",{className:Fe.labelContainer,children:[g(i)," ",c&&l.jsx("label",{children:"*"})]}),l.jsxs("div",{className:Fe.inputContainer,style:{width:h},children:[l.jsxs("select",{value:S??"",onChange:v=>{const C=v.target.value,T=y.every(O=>typeof O.value=="number")?Number(C):C;N(T)},className:Fe.selectInput,children:[l.jsx("option",{value:"",disabled:!0,hidden:!0,children:g(d||"selectOption")}),y.map((v,C)=>l.jsx("option",{value:v.value,className:Fe.option,children:g(v.label)},C))]}),l.jsx("img",{src:ki,alt:"Open",className:Fe.dropdownArrow})]}),(()=>{const v=y.find(C=>C.value===S);return v&&v.description?l.jsx("div",{className:Fe.optionDescription,children:g(v.description)}):null})()]})};Ho.displayName="SelectInput";const J1="_radioButtonContainer_1e994_2",ef="_wholeInputContainer_1e994_5",tf="_questionContainer_1e994_27",nf="_radioQuestion_1e994_59",rf="_inputContainer_1e994_63",of="_radioInput_1e994_93",Rt={radioButtonContainer:J1,wholeInputContainer:ef,questionContainer:tf,radioQuestion:nf,inputContainer:rf,radioInput:of},Ko=({input:e,reactHookFormInstance:t})=>{const{code:n,label:r,required:o,validateFunction:i,errorColor:a="red",options:c=[],multi:u=!1}=e,{t:d}=ie.useTranslation(),{control:m,trigger:h,clearErrors:y}=t,{errorColor:g}=Mn(x=>x),b=({options:x,onChange:w,actualValue:S})=>{if(u&&S&&S.length>0){let N=S.filter(v=>v!==x);w(N)}},f=({options:x,onChange:w,actualValue:S})=>{u?S&&S.length>0?w([...S,x]):w([x]):w(x)};return _.useRef(o),l.jsx(An,{control:m,name:n,rules:{validate:x=>o&&(x==null||x==="")?`${d(r)} ${d("errorMessages.required")}`:null},render:({formState:{errors:x},field:{onChange:w,onBlur:S,value:N,ref:v},fieldState:C})=>{var T;return l.jsx("div",{id:n+"id",className:Rt.radioButtonContainer,children:l.jsxs("div",{className:Rt.wholeInputContainer,children:[r&&l.jsx("div",{className:Rt.questionContainer,children:l.jsxs("h3",{htmlFor:n+"id",className:`${Rt.radioQuestion} ${o&&Rt.required}`,children:[d(r)," ",o&&l.jsx("label",{style:{color:C.error?a:""},children:"*"})]})}),l.jsxs("div",{className:Rt.inputContainer,children:[c.map(({label:O,value:j,disabled:$=!1,italicLabel:L},R)=>{const p=N&&u?N.isArray&&(N==null?void 0:N.length)>0&&N.some(E=>E===j):N===j;return l.jsxs("label",{children:[l.jsx("input",{type:"radio",checked:p,onChange:()=>{u?p?b({actualValue:N,options:c,onChange:w}):f({actualValue:N,options:c,onChange:w}):w(j)},className:Rt.radioInput}),l.jsx("span",{className:"radio-custom"}),d(O)]},`inputRadio ${R}`)}),l.jsx(qt,{errorMessage:(T=C.error)==null?void 0:T.message,errorColor:g||a})]})]})})}})};Ko.displayName="RadioButtonInput";const sf="_rankingSliderContainer_1dvpb_2",af="_labelContainer_1dvpb_6",lf="_inputContainer_1dvpb_10",cf="_slider_1dvpb_20",uf="_thumb_1dvpb_27",df="_labels_1dvpb_37",ff="_minLabel_1dvpb_67",pf="_maxLabel_1dvpb_68",Ee={rankingSliderContainer:sf,labelContainer:af,inputContainer:lf,slider:cf,thumb:uf,labels:df,minLabel:ff,maxLabel:pf},kr=({input:e,reactHookFormInstance:t,onChange:n})=>{const{code:r,label:o,minValue:i=1,maxValue:a=5,defValue:c=3,thumbColor:u="#B32F5D",required:d,errorColor:m="red",labelWidth:h="300px",sliderWidth:y="300px",minText:g,maxText:b,disabled:f=!1,marks:x=Array.from({length:a-i+1},($,L)=>i+L),showMarksNumber:w=!0}=e,{t:S}=ie.useTranslation(),{control:N,trigger:v,clearErrors:C}=t||{};_.useRef(d);const{errorColorForm:T}=Mn($=>$),[O,j]=_.useState(c);return t?l.jsx(An,{name:r,control:N,defaultValue:c,rules:{required:d?`${S(o)} ${S("errorMessages.required")}`:!1},render:({field:$,fieldState:L})=>{var R;return l.jsxs("div",{className:Ee.rankingSliderContainer,style:{gridTemplateColumns:`${o&&h} ${y}`},children:[o&&l.jsx("p",{className:Ee.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:S(o)}),l.jsxs("div",{className:Ee.inputContainer,children:[g&&l.jsx("div",{className:Ee.minLabel,children:S(g)}),l.jsxs("div",{children:[l.jsx(Jr,{min:i,max:a,step:1,value:$.value??c,onChange:p=>{$.onChange(p)},marks:!0,className:Ee.slider,thumbClassName:Ee.thumb,renderThumb:p=>l.jsx("div",{...p,style:{...p.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:Ee.track,markClassName:Ee.mark,disabled:f}),x&&l.jsx("div",{className:Ee.labels,children:x.map(p=>l.jsx("span",{children:w&&p},p))})]}),b&&l.jsx("div",{className:Ee.maxLabel,children:S(b)})]}),l.jsx(qt,{errorMessage:(R=L.error)==null?void 0:R.message,errorColor:T||m})]})}}):l.jsxs("div",{className:Ee.rankingSliderContainer,style:{gridTemplateColumns:`${o&&h} ${y}`},children:[o&&l.jsx("p",{className:Ee.labelContainer,style:{color:f?"#CCCCCC":"#605B56"},children:S(o)}),l.jsxs("div",{className:Ee.inputContainer,children:[g&&l.jsx("div",{className:Ee.minLabel,children:S(g)}),l.jsxs("div",{children:[l.jsx(Jr,{min:i,max:a,step:1,value:O,onChange:$=>{j($),n&&n($)},marks:!0,className:Ee.slider,thumbClassName:Ee.thumb,renderThumb:$=>l.jsx("div",{...$,style:{...$.style,backgroundColor:f?"#CCCCCC":u,cursor:f?"not-allowed":"grab"}}),trackClassName:Ee.track,markClassName:Ee.mark,disabled:f}),x&&l.jsx("div",{className:Ee.labels,children:x.map($=>l.jsx("span",{children:w&&$},$))})]}),b&&l.jsx("div",{className:Ee.maxLabel,children:S(b)})]})]})};kr.displayName="RankingSlider";kr.propTypes={input:s.shape({code:s.string,label:s.string,minValue:s.number,maxValue:s.number,defValue:s.number,thumbColor:s.string,required:s.bool,errorColor:s.string,labelWidth:s.string,sliderWidth:s.string,minText:s.string,maxText:s.string}),reactHookFormInstance:s.object};const mf="_textDescriptionContainer_163pc_2",hf="_textDescriptionText_163pc_6",ji={textDescriptionContainer:mf,textDescriptionText:hf},$a=({input:e,inputContainerStyles:t})=>l.jsx("div",{className:ji.textDescriptionContainer,style:{margin:"10px 0",...t},children:l.jsx("p",{className:ji.textDescriptionText,children:e.text})});$a.displayName="TextDescription";const ln=({inputs:e,inputContainerStyles:t,reactHookFormInstance:n})=>{const{watch:r}=n,o=r(),i=_.useMemo(()=>e==null?void 0:e.map(a=>{const c=typeof a.required=="function"?a.required(o):a.required;return{...a,required:c}}),[e,o]);return l.jsx("div",{className:on.inputsContainer,children:i==null?void 0:i.map((a,c)=>{const{inputType:u}=a;switch(u){case rn.text:return l.jsx("div",{className:on.inputContainer,style:{...t},children:l.jsx(lr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case rn.password:return l.jsx("div",{className:on.inputContainer,style:{...t},children:l.jsx(lr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case rn.select:return l.jsx("div",{className:on.inputContainer,style:{...t},children:l.jsx(Ho,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case rn.radioList:return l.jsx("div",{className:on.inputContainer,style:{...t},children:l.jsx(Ko,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case rn.rankingSlider:return l.jsx("div",{className:on.inputContainer,style:{...t},children:l.jsx(kr,{input:a,reactHookFormInstance:n})},`${a.code}${c}`);case rn.textDescription:return l.jsx($a,{input:a,inputContainerStyles:t},`${a.code}${c}`);default:return l.jsx("div",{children:l.jsx("h4",{children:"Default"})},`${a.code}${c}`)}})})};ln.displayName="RenderInputs";const gf="_categorySelector_1guuv_2",yf="_sectionItemActive_1guuv_16",bf="_sectionItem_1guuv_16",vf="_sectionItemError_1guuv_32",_n={categorySelector:gf,sectionItemActive:yf,sectionItem:bf,sectionItemError:vf},cr=({categories:e,onChange:t,activeCategory:n,activeColor:r,containerStyles:o={},categoriesWithErrors:i=[]})=>{const{t:a}=ie.useTranslation(),c=u=>{t(u)};return l.jsx("div",{className:_n.categorySelector,style:o?{...o}:{},children:e.map((u,d)=>{const{id:m,label:h}=u,y=n==m,g=i.includes(m);return l.jsx("button",{className:`${_n.sectionItem} ${y?_n.sectionItemActive:""} ${g?_n.sectionItemError:""}`,type:"button",style:{backgroundColor:y?r:"inherit"},onClick:()=>c(m),children:l.jsx("span",{style:{color:y?"white":"inherit"},className:_n.sectionLabel,children:a(h)})},`keySection${d}`)})})};cr.displayName="CategorySelector";const Na=({reactHookFormInstance:e,formObject:t,CategoryComponent:n,inputContainerStyles:r,generalError:o,errorColor:i="red",submitButtonLabel:a="Submit",submitButtonStyles:c={width:325},showCategorySelector:u=!0,defaultCategory:d=null,categoryLabel:m="Select Category",activeCategory:h=null,activeCategoryColor:y="#b32f5d",categoriesWithErrors:g=[],onSubmit:b=f=>console.log("Form submitted with: ",f)})=>{const{t:f}=ie.useTranslation(),{handleSubmit:x,control:w}=e;_.useEffect(()=>{i&&Mn.setState(()=>({errorColor:i}))},[i]);const S=_.useMemo(()=>t?t.filter($=>$.category).map($=>{var L;return{id:$.categoryId,label:$.category,hasSubcategories:((L=$.subcategories)==null?void 0:L.length)>0}}):[],[t]),N=$=>{const L=t==null?void 0:t.find(R=>R.categoryId===$);return(L==null?void 0:L.subcategories)||[]},[v,C]=_.useState(h||d||null),[T,O]=_.useState(null);_.useEffect(()=>{!v&&S.length>0&&C(S[0].id)},[S,v]),_.useEffect(()=>{const $=N(v);!T&&($==null?void 0:$.length)>0&&O($[0].id)},[v,T,t]);const j=($,L)=>{var R;if(((R=$.subcategories)==null?void 0:R.length)>0){const p=$.subcategories;return l.jsxs("div",{children:[l.jsx("div",{className:xn.categorySelectorContainer,children:l.jsx(cr,{activeCategory:T,categories:p,categoriesWithErrors:g,onChange:E=>O(E),activeColor:y})},$.categoryId),p.map((E,k)=>{const D=!T||E.id===T;return n?l.jsx("div",{style:{display:D?"block":"none",width:"100%"},children:l.jsx(n,{title:E.label,children:l.jsx(ln,{inputs:E.inputs,control:w,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},E.id)},`${E.id}${k}`):l.jsxs("div",{style:{width:"100%",display:D?"block":"none"},children:[l.jsx("h3",{style:{marginBottom:15},children:f(E.label)}),l.jsx(ln,{inputs:E.inputs,control:w,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},`${E.id}${k}`)})]})}return n?l.jsx(n,{title:$.category,children:l.jsx(ln,{inputs:$.inputs,control:w,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})},$.categoryId):l.jsxs("div",{style:{width:"100%"},children:[l.jsx("h2",{children:f($.category)}),l.jsx(ln,{inputs:$.inputs,control:w,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e})]},$.categoryId)};return l.jsxs("form",{className:xn.formContainer,onSubmit:x(b),children:[u&&S.length>0&&l.jsx("div",{className:xn.categorySelectorContainer,children:l.jsx(cr,{activeCategory:v,categories:S,categoriesWithErrors:g,onChange:$=>{C($),O(null)},activeColor:y})}),l.jsx("div",{className:xn.formObjectContainer,children:t==null?void 0:t.map(($,L)=>{const R=$.categoryId===v;return $.category?l.jsx("div",{style:{width:"100%",display:R?"block":"none"},children:j($)},$.categoryId):l.jsx(ln,{inputs:$.inputs,control:w,inputContainerStyles:r,errorColor:i,reactHookFormInstance:e},`no-category-${L}`)})}),l.jsxs("div",{className:xn.buttonContainer,children:[l.jsx(fn,{containerStyles:c,type:"submit",children:f(a)}),l.jsx(qt,{errorMessage:o,errorColor:i})]})]})};Na.displayName="Form";const xf="_overlay_mnd4j_2",Cf="_modal_mnd4j_15",_f="_closeButton_mnd4j_29",wf="_icon_mnd4j_39",Sf="_message_mnd4j_45",Tf="_submessage_mnd4j_51",kf="_buttonsContainer_mnd4j_57",jf="_buttonWrapper_mnd4j_64",wt={overlay:xf,modal:Cf,closeButton:_f,icon:wf,message:Sf,submessage:Tf,buttonsContainer:kf,buttonWrapper:jf},Zo=({onClose:e,icon:t,message:n,submessage:r,buttons:o,maxHeight:i="450px",maxWidth:a="450px"})=>l.jsx("div",{className:wt.overlay,children:l.jsxs("div",{className:wt.modal,style:{maxHeight:i,maxWidth:a},children:[l.jsx("button",{className:wt.closeButton,onClick:e,"aria-label":"Close modal",children:"✕"}),t&&l.jsx("img",{src:t,alt:"icon",className:wt.icon}),l.jsx("p",{className:wt.message,children:n}),r&&l.jsx("p",{className:wt.submessage,children:r}),o.length>0&&l.jsx("div",{className:wt.buttonsContainer,children:o.map((c,u)=>l.jsx("div",{className:wt.buttonWrapper,children:c},u))})]})});Zo.displayName="ModalAlert";Zo.propTypes={onClose:s.func.isRequired,icon:s.string,message:s.string.isRequired,submessage:s.string,buttons:s.arrayOf(s.node),maxHeight:s.string,maxWidth:s.string};const $f="_stepsContainer_1cyua_3",Nf="_stepWrapper_1cyua_9",Ef="_circleContainer_1cyua_19",Of="_circle_1cyua_19",Af="_active_1cyua_39",Mf="_completed_1cyua_44",Lf="_label_1cyua_50",Rf="_labelActive_1cyua_56",If="_connector_1cyua_61",pt={stepsContainer:$f,stepWrapper:Nf,circleContainer:Ef,circle:Of,active:Af,completed:Mf,label:Lf,labelActive:Rf,connector:If},Go=({steps:e,activeColor:t="#C2185B"})=>l.jsx("div",{className:pt.stepsContainer,children:e.map((n,r)=>{const o=n.status==="active",i=n.status==="completed";return l.jsxs("div",{className:pt.stepWrapper,children:[l.jsxs("div",{className:pt.circleContainer,children:[l.jsx("div",{className:`${pt.circle}
|
|
81
|
+
${o?pt.active:""}
|
|
82
|
+
${i?pt.completed:""}`,style:o?{backgroundColor:t}:{},onClick:n.onClick,children:r+1}),r<e.length-1&&l.jsx("div",{className:pt.connector})]}),l.jsx("div",{className:`${pt.label} ${o?pt.labelActive:""}`,children:n.name})]},r)})});Go.displayName="Steps";Go.propTypes={steps:s.arrayOf(s.shape({name:s.string.isRequired,onClick:s.func,status:s.oneOf(["inactive","active","completed"]).isRequired})).isRequired,activeColor:s.string};const Df="_statusTextContainer_ch14r_2",Bf={statusTextContainer:Df},Yo=({text:e,color:t="#C2185B"})=>l.jsx("div",{className:Bf.statusTextContainer,style:{background:t},children:l.jsx("span",{children:e})});Yo.displayName="StatusText";Yo.propTypes={text:s.string,color:s.string};const Pf="_buttonsContainer_1c7dw_2",Vf="_button_1c7dw_2",Ff="_active_1c7dw_20",Gn={buttonsContainer:Pf,button:Vf,active:Ff},Xo=({buttons:e=[]})=>{const{t}=ie.useTranslation();return l.jsx("div",{className:`${Gn.buttonsContainer}`,children:e.map((n,r)=>{const{isActive:o,name:i,onClick:a}=n;return l.jsx("div",{children:l.jsx("button",{onClick:a,className:`${Gn.button}
|
|
83
|
+
${o&&Gn.active}`,children:l.jsx("span",{className:Gn.buttonName,children:t(i)})})},r)})})};Xo.displayName="ButtonsBar";Xo.propTypes={buttons:s.arrayOf(s.shape({isActive:s.bool,name:s.string,onClick:s.func})).isRequired};const zf="_switchContainer_194wl_2",qf="_labelRight_194wl_9",Wf="_labelLeft_194wl_9",Uf="_slider_194wl_28",Hf="_disabled_194wl_54",sn={switchContainer:zf,labelRight:qf,labelLeft:Wf,switch:"_switch_194wl_2",slider:Uf,disabled:Hf},Qo=({input:e,reactHookFormInstance:t,onChange:n,onoff:r=!0})=>{const{code:o,labelLeft:i,labelRight:a,defValue:c=!1,colorOn:u="#5A514D",disabled:d=!1,width:m=240}=e,{t:h}=ie.useTranslation(),{control:y}=t||{},[g,b]=_.useState(c),f=w=>{b(w),n&&n(w)},x=(w,S)=>l.jsxs("div",{className:sn.switchContainer,style:{width:`${m}px`},children:[i&&l.jsx("span",{className:sn.labelLeft,style:{width:`${(m-74)/2}px`},children:h(i)}),l.jsxs("label",{className:`${sn.switch} ${d?sn.disabled:""}`,children:[l.jsx("input",{type:"checkbox",checked:!!w,onChange:()=>S(!w),disabled:d}),l.jsx("span",{className:sn.slider,style:{"--switch-thumb-color":r?w?u:"#ccc":u}})]}),a&&l.jsx("span",{className:sn.labelRight,style:{width:`${(m-74)/2}px`},children:h(a)})]});return t?l.jsx(An,{name:o,control:y,defaultValue:c,render:({field:w})=>x(w.value,w.onChange)}):x(g,f)};Qo.displayName="Switch";Qo.propTypes={input:s.shape({code:s.string,labelLeft:s.string,labelRight:s.string,defValue:s.bool,colorOn:s.string,disabled:s.bool}),reactHookFormInstance:s.object,onChange:s.func};const Kf="_overlay_1xyw2_2",Zf="_popup_1xyw2_15",Gf="_gif_1xyw2_25",Yf="_message_1xyw2_31",Yn={overlay:Kf,popup:Zf,gif:Gf,message:Yf},Jo=({gifSrc:e,message:t})=>l.jsx("div",{className:Yn.overlay,children:l.jsxs("div",{className:Yn.popup,children:[e&&l.jsx("img",{src:e,alt:"loading animation",className:Yn.gif}),t&&l.jsx("p",{className:Yn.message,children:t})]})});Jo.displayName="Loader";Jo.propTypes={gifSrc:s.string,message:s.string};const Xf="_container_1pl8d_3",Qf="_burger_1pl8d_10",Jf="_menu_1pl8d_21",ep="_menuOpen_1pl8d_35",tp="_menuClose_1pl8d_40",np="_list_1pl8d_46",rp="_item_1pl8d_56",op="_button_1pl8d_91",it={container:Xf,burger:Qf,menu:Jf,menuOpen:ep,menuClose:tp,list:np,item:rp,button:op},es=({options:e,backgroundColor:t="#ffffff",textColor:n="#000000",iconColor:r="#000000"})=>{const[o,i]=_.useState(!1),a=()=>i(b=>!b),c=()=>i(!1),u=7,d=o?11:0,m=o?13:0,h=o?-11.51666:0,y=o?-13:0,g="0.35s";return l.jsxs("div",{className:it.container,children:[l.jsx("button",{onClick:a,className:it.burger,children:l.jsxs("svg",{width:"40",height:"40",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:[l.jsx("g",{style:{transform:`translateY(${d}px)`,transition:`transform ${g} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"20",cy:"9",r:u,fill:r})}),l.jsx("g",{style:{transform:`translate(${m}px, ${h}px)`,transition:`transform ${g} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"7",cy:"31.51666",r:u,fill:r})}),l.jsx("g",{style:{transform:`translate(${y}px, ${h}px)`,transition:`transform ${g} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"33",cy:"31.51666",r:u,fill:r})}),l.jsx("g",{style:{opacity:o?1:0,transition:`opacity ${g} cubic-bezier(0.42, 0, 0.58, 1)`},children:l.jsx("circle",{cx:"20",cy:"20",r:"10",fill:r})}),l.jsxs("g",{stroke:t,strokeWidth:"2",strokeLinecap:"round",style:{opacity:o?1:0,transition:`opacity ${g} cubic-bezier(0.42, 0, 0.58, 1)`},children:[l.jsx("line",{x1:"17",y1:"17",x2:"23",y2:"23"}),l.jsx("line",{x1:"23",y1:"17",x2:"17",y2:"23"})]})]})}),l.jsx("div",{className:`${it.menu} ${o?it.menuOpen:it.menuClose}`,style:{backgroundColor:t,color:n},children:l.jsx("ul",{className:it.list,children:e.map((b,f)=>l.jsxs("li",{className:it.item,children:[b.url&&l.jsx(Pi.NavLink,{to:b.url,className:({isActive:x})=>`${it.link} ${x?it.active:""}`,onClick:c,style:{color:n},children:b.name}),b.onclick&&l.jsx("button",{className:it.button,onClick:()=>{b.onclick(),c()},children:b.name}),b.component&&b.component]},f))})})]})};es.displayName="BurgerMenu";es.propTypes={options:s.array.isRequired,backgroundColor:s.string,textColor:s.string,iconColor:s.string};const sp="_svgContainer_1rxoe_2",ip="_svg_1rxoe_2",$i={svgContainer:sp,svg:ip},ts=({data:e,keys:t,colors:n,width:r="100%",height:o=300,margin:i={top:20,right:20,bottom:60,left:60},className:a="",showXAxisLabels:c=!0,showYAxisLabels:u=!0,showGrid:d=!0,xAxisTickRotation:m=-90,yAxisTickFormat:h=v=>v.toLocaleString("es-ES"),barPadding:y=.1,groupPadding:g=.05,animationDuration:b=750,onBarHover:f,onBarClick:x,title:w,xAxisLabel:S,yAxisLabel:N})=>{const v=_.useRef(),C=_.useRef(),[T,O]=_.useState({width:0,height:0});return _.useEffect(()=>{const j=()=>{if(C.current){const $=C.current.getBoundingClientRect().width;O({width:typeof r=="number"?r:$,height:o})}};return j(),window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[r,o]),_.useEffect(()=>{if(!e||e.length===0||T.width===0)return;const j=ae.select(v.current),$=T.width,L=T.height,R=$-i.left-i.right,p=L-i.top-i.bottom;if(R<=0||p<=0)return;const E=e.map(q=>q.anyo||q.year||q.x),k=t,D=ae.min(e,q=>ae.min(k,G=>q[G]))||0,z=ae.max(e,q=>ae.max(k,G=>q[G]))||0,B=ae.scaleBand().domain(E).rangeRound([0,R]).paddingInner(y),F=ae.scaleBand().domain(k).rangeRound([0,B.bandwidth()]).padding(g),Z=ae.scaleLinear().domain([Math.min(0,D),z]).nice().rangeRound([p,0]),M=ae.scaleOrdinal().domain(k).range(Array.isArray(n)?n:Object.values(n||{}));j.selectAll("*").remove();const I=j.append("g").attr("transform",`translate(${i.left},${i.top})`);w&&j.append("text").attr("x",$/2).attr("y",i.top/2).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(w),d&&I.append("g").attr("class","grid").selectAll("line").data(Z.ticks()).enter().append("line").attr("x1",0).attr("x2",R).attr("y1",q=>Z(q)).attr("y2",q=>Z(q)).style("stroke","#e0e0e0").style("stroke-width",.5),c&&(I.append("g").attr("transform",`translate(0,${p})`).call(ae.axisBottom(B).tickSizeOuter(0)).attr("class","x-axis").selectAll("text").attr("transform",`translate(0,10)rotate(${m})`).style("text-anchor",m<0?"end":"middle").style("font-size","12px").style("fill","#605B56"),S&&I.append("text").attr("transform",`translate(${R/2}, ${p+i.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(S)),u&&(I.append("g").call(ae.axisLeft(Z).ticks(6).tickFormat(h)).attr("class","y-axis").call(q=>q.select(".domain").remove()),N&&I.append("text").attr("transform","rotate(-90)").attr("y",0-i.left).attr("x",0-p/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(N));const H=I.append("g").selectAll(".bar-group").data(e).enter().append("g").attr("class","bar-group").attr("transform",q=>`translate(${B(q.anyo||q.year||q.x)},0)`).selectAll(".bar").data(q=>k.map(G=>({key:G,value:q[G],data:q}))).enter().append("rect").attr("class","bar").attr("x",q=>F(q.key)).attr("y",p).attr("width",F.bandwidth()).attr("height",0).attr("fill",q=>M(q.key)).style("cursor",f||x?"pointer":"default");H.transition().duration(b).attr("y",q=>Z(Math.max(0,q.value))).attr("height",q=>Math.abs(Z(q.value)-Z(0))),f&&H.on("mouseover",function(q,G){ae.select(this).style("opacity",.8),f(q,G)}).on("mouseout",function(q,G){ae.select(this).style("opacity",1)}),x&&H.on("click",x)},[e,t,n,T,i,y,g,c,u,d,m,h,b,f,x,w,S,N]),l.jsx("div",{ref:C,className:`${$i.svgContainer} ${a}`,style:{width:r,height:o+i.top+i.bottom},children:l.jsx("svg",{ref:v,className:$i.svg,width:T.width,height:T.height})})};ts.displayName="Groupedbarchart";ts.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.oneOfType([s.arrayOf(s.string),s.object]),width:s.oneOfType([s.string,s.number]),height:s.number,margin:s.shape({top:s.number,right:s.number,bottom:s.number,left:s.number}),className:s.string,showXAxisLabels:s.bool,showYAxisLabels:s.bool,showGrid:s.bool,xAxisTickRotation:s.number,yAxisTickFormat:s.func,barPadding:s.number,groupPadding:s.number,animationDuration:s.number,onBarHover:s.func,onBarClick:s.func,title:s.string,xAxisLabel:s.string,yAxisLabel:s.string};const ap="_svgContainer_7fkic_2",lp="_svg_7fkic_2",Ni={svgContainer:ap,svg:lp},Kr=new Map,ao=(e,t="12px sans-serif")=>{if(!e)return 0;const n=`${t}|${e}`;if(Kr.has(n))return Kr.get(n);const o=(ao.canvas||(ao.canvas=document.createElement("canvas"))).getContext("2d");o.font=t;const i=o.measureText(e).width;return Kr.set(n,i),i},Ea=(e,t=2)=>{if(!e)return[""];const n=e.trim();if(n==="")return[""];if(t<=1)return[n];if(!n.includes(" "))return n.length>20?[n]:[n];const r=Math.floor(n.length/2);let o=-1,i=1/0;for(let h=0;h<n.length;h++)if(n[h]===" "){const y=Math.abs(h-r);y<i&&(i=y,o=h)}if(o===-1)return[n];const a=n.slice(0,o).trim(),c=n.slice(o+1).trim();if(t===2||!c.includes(" "))return c?[a,c]:[a];const u=Math.floor(c.length/2);let d=-1,m=1/0;for(let h=0;h<c.length;h++)if(c[h]===" "){const y=Math.abs(h-u);y<m&&(m=y,d=h)}return d===-1?[a,c]:[a,c.slice(0,d).trim(),c.slice(d+1).trim()].filter(Boolean)},cp=(e,t=2,n="12px sans-serif")=>e.reduce((r,o)=>{const i=Ea(String(o),t),a=Math.max(...i.map(c=>ao(c,n)));return Math.max(r,a)},0),ns=({data:e,keys:t,colors:n,lineData:r=null,width:o="100%",height:i=300,margin:a,className:c="",showXAxisLabels:u=!0,showYAxisLabels:d=!0,showGrid:m=!0,xAxisTickRotation:h=-90,xAxisPosition:y="bottom",yAxisTickFormat:g=F=>F.toLocaleString("es-ES"),barPadding:b=.4,animationDuration:f=750,onBarHover:x,onBarClick:w,title:S,xAxisLabel:N,yAxisLabel:v,yAxisLabelPadding:C=0,stackOrder:T="reverse",showTooltip:O=!0,reverseKeys:j=!0,minBarSlotWidth:$=60,wrapXAxisLabels:L=!0,wrapYAxisLabels:R=!0,maxYAxisLabelLines:p=2,yAxisLabelFont:E="12px sans-serif",marginLeftPadding:k=8,mode:D="stacked",orientation:z="vertical",scrollOnOverflow:B=!0})=>{const F=_.useRef(),Z=_.useRef();_.useRef();const[M,I]=_.useState({containerWidth:0,height:0}),{t:J}=ie.useTranslation(),H=z==="horizontal",q=y==="top",G=_.useMemo(()=>{if(a)return a;const Q=S&&q?24:0;return H?q?{top:50+Q+C,right:30,bottom:20,left:140}:{top:20,right:30,bottom:50+C,left:140}:q?{top:90+Q,right:20,bottom:20,left:60+C}:{top:20,right:20,bottom:90,left:60+C}},[a,H,q,S,C]);_.useEffect(()=>{const Q=()=>{if(Z.current){const se=Z.current.getBoundingClientRect().width,K=Z.current.getBoundingClientRect().height,le=typeof i=="number"?i:Math.max(K-(G.top+G.bottom),0);I(V=>{const de=typeof o=="number"?o:se;return V.containerWidth===de&&V.height===le?V:{containerWidth:de,height:le}})}};return Q(),window.addEventListener("resize",Q),()=>window.removeEventListener("resize",Q)},[o,i,G]),_.useEffect(()=>{if(!e||e.length===0||M.containerWidth===0)return;const Q=ae.select(F.current),se=!!a,K={...G},le=y==="top",V=W=>D==="single"?W.title:W.any||W.year||W.x;if(H&&u&&!se){const W=cp(e.map(ee=>V(ee)),R?p:1,E);K.left=Math.ceil(W)+k}const{containerWidth:de,height:Ve}=M,ct=de-K.left-K.right,$t=Ve-K.top-K.bottom,Me=e.length*$;let Re,Le,ut,bt;if(H?(Le=Math.max($t,Me),Re=ct,bt=Le+K.top+K.bottom,ut=de):(Re=Math.max(ct,Me),Le=$t,ut=Re+K.left+K.right,bt=Ve),Re<=0||Le<=0)return;Q.attr("width",ut).attr("height",bt).style("overflow","visible");const Wt=D==="stacked"?j?[...t].reverse():t:[],Ue=[];e.forEach(W=>{const ee=V(W);if(D==="single"){const ue=Number(W.value)||0;Ue.push({key:W.title,value:ue,y0:Math.min(0,ue),y1:Math.max(0,ue),height:Math.abs(ue),data:W,xKey:ee,color:W.color})}else{const ue=Wt.map(we=>({key:we,value:Number(W[we])||0,data:W})),Oe=ue.filter(we=>we.value<0),Be=ue.filter(we=>we.value>=0);let Et=0;Oe.forEach(we=>{const nt=Et,ze=Et+we.value,Zt=Math.abs(ze-nt);Ue.push({key:we.key,value:we.value,y0:Math.max(nt,ze),y1:Math.min(nt,ze),height:Zt,data:we.data,xKey:ee}),Et=ze});let Ot=0;Be.forEach(we=>{const nt=Ot,ze=Ot+we.value,Zt=ze-nt;Ue.push({key:we.key,value:we.value,y0:Math.min(nt,ze),y1:Math.max(nt,ze),height:Zt,data:we.data,xKey:ee}),Ot=ze})}});const Nt=[ae.min(Ue,W=>Math.min(W.y0,W.y1))||0,ae.max(Ue,W=>Math.max(W.y0,W.y1))||0];let P=[0,0];r&&r.length>0&&(P=[ae.min(r)||0,ae.max(r)||0]);const U=[Math.min(Nt[0],P[0]),Math.max(Nt[1],P[1])],Y=ae.scaleBand().domain(e.map(W=>V(W))).range(H?[0,Le]:[0,Re]).padding(b),oe=ae.scaleLinear().domain([U[0],U[1]]).nice(6).range(H?[0,Re]:[Le,0]),ce=W=>Y(W),X=Y.bandwidth(),fe=W=>oe(W),Ie=t?ae.scaleOrdinal().domain(t).range(Array.isArray(n)?n:Object.values(n||{})):null,ke=D==="single"?W=>W.color||(Array.isArray(n)?n[0]:Object.values(n||{})[0])||"#888":W=>Ie(W.key),De=r&&r.length>0?e.map((W,ee)=>{const ue=ce(V(W))+X/2,Oe=fe(r[ee]||0);return H?{x:Oe,y:ue}:{x:ue,y:Oe}}):[];Q.selectAll("*").remove();const je=Q.append("g").attr("transform",`translate(${K.left},${K.top})`);if(S&&Q.append("text").attr("x",ut/2).attr("y",le?16:K.top-4).attr("text-anchor","middle").style("font-size","16px").style("font-weight","bold").style("fill","#333").text(S),m){const W=je.append("g").attr("class","grid");H?W.selectAll("line").data(oe.ticks(6)).enter().append("line").attr("y1",0).attr("y2",Le).attr("x1",ee=>fe(ee)).attr("x2",ee=>fe(ee)).style("stroke","#e0e0e0").style("stroke-width",.5):W.selectAll("line").data(oe.ticks(6)).enter().append("line").attr("x1",0).attr("x2",Re).attr("y1",ee=>fe(ee)).attr("y2",ee=>fe(ee)).style("stroke","#e0e0e0").style("stroke-width",.5)}const jr=(W,ee=12)=>{if(!L||W.length<=ee)return[W];const ue=Math.floor(W.length/2);let Oe=ue;for(let Be=ue;Be>=0;Be--)if(W[Be]===" "){Oe=Be;break}if(Oe===ue){for(let Be=ue;Be<W.length;Be++)if(W[Be]===" "){Oe=Be;break}}return Oe===ue&&(Oe=ue),[W.substring(0,Oe),W.substring(Oe+1)]};if(u)if(H)je.append("g").attr("class","category-axis").call(ae.axisLeft(Y).tickSizeOuter(0)).selectAll("text").remove(),je.append("g").attr("class","category-axis-labels").selectAll(".cat-label-group").data(e).enter().append("g").attr("class","cat-label-group").attr("transform",ue=>`translate(0, ${ce(V(ue))+X/2})`).each(function(ue){const Oe=String(V(ue)),Be=R?Ea(Oe,p):[Oe];ae.select(this).append("text").attr("x",-10).style("text-anchor","end").style("font-size","12px").style("fill","#605B56").selectAll("tspan").data(Be).enter().append("tspan").attr("x",-10).attr("dy",(we,nt)=>Be.length===1?"0.32em":nt===0?"-0.3em":"1.2em").text(we=>we)}),N&&je.append("text").attr("transform","rotate(-90)").attr("y",0-K.left).attr("x",0-Le/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(N);else{const W=le?0:Le,ee=le?ae.axisTop(Y):ae.axisBottom(Y);je.append("g").attr("class","category-axis").attr("transform",`translate(0, ${W})`).call(ee.tickSizeOuter(0)).selectAll("text").remove();const Be=je.append("g").attr("class","category-axis-labels").attr("transform",`translate(0, ${W})`).selectAll(".x-label-group").data(e).enter().append("g").attr("class","x-label-group").attr("transform",we=>`translate(${ce(V(we))+X/2}, 0)`),Et=le?-19:19,Ot=le?-15:15;Be.each(function(we){const nt=String(V(we)),ze=jr(nt),Zt=ae.select(this);if(ze.length===1)Zt.append("text").attr("y",Et).style("text-anchor",h===0?"middle":h<0?"end":"start").style("font-size","12px").style("fill","#605B56").attr("transform",h!==0?`rotate(${h} 0 ${Ot})`:null).text(ze[0]);else{const ps=-(ze.length*14/2)+14/2;ze.forEach((Aa,ms)=>{Zt.append("text").attr("x",ps+ms*14).attr("y",Et).style("text-anchor","end").style("font-size","11px").style("fill","#605B56").attr("transform",`rotate(${h} ${ps+ms*14} ${Ot})`).text(Aa)})}}),N&&je.append("text").attr("transform",`translate(${Re/2}, ${le?-(K.top-15):Le+K.bottom-5})`).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(N)}if(d)if(H){const W=le?0:Le,ee=le?ae.axisTop(oe):ae.axisBottom(oe);je.append("g").attr("class","value-axis").attr("transform",`translate(0, ${W})`).call(ee.ticks(6).tickFormat(g)).call(ue=>ue.select(".domain").remove()).selectAll("text").style("font-size","12px").style("fill","#605B56"),v&&je.append("text").attr("x",Re/2).attr("y",le?-(K.top-15):Le+K.bottom-5).style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(v)}else je.append("g").attr("class","value-axis").call(ae.axisLeft(oe).ticks(6).tickFormat(g)).call(W=>W.select(".domain").remove()),je.append("g").attr("class","value-ticks").attr("transform",`translate(${Re}, 0)`).call(ae.axisLeft(oe).ticks(6).tickSizeInner(Re)).call(W=>W.select(".domain").remove()).call(W=>W.selectAll(".tick text").remove()),v&&je.append("text").attr("transform","rotate(-90)").attr("y",0-K.left).attr("x",0-Le/2).attr("dy","1em").style("text-anchor","middle").style("font-size","14px").style("fill","#333").text(v);let He;O&&(He=ae.select("body").append("div").attr("class","chart-tooltip").style("position","absolute").style("visibility","hidden").style("background","rgba(0, 0, 0, 0.8)").style("color","white").style("padding","8px").style("border-radius","4px").style("font-size","12px").style("pointer-events","none").style("z-index","1000"));const hn=je.selectAll(".segment").data(Ue,W=>`${W.xKey}-${W.key}`);hn.exit().remove();const Ut=H?"y":"x",Ht=H?"height":"width",Ln=H?"x":"y",_e=H?"width":"height",$e=H?1:0,gn=W=>{const ee=Math.min(fe(W.y0),fe(W.y1));return ee<=.5?ee+$e:ee},Kt=W=>{const ee=Math.min(fe(W.y0),fe(W.y1)),ue=Math.abs(fe(W.y1)-fe(W.y0));return ee<=.5?Math.max(ue-$e,0):ue},Ke=hn.enter().append("rect").attr("class","segment").attr(Ut,W=>ce(W.xKey)).attr(Ht,X).attr(Ln,fe(0)+$e).attr(_e,0).attr("fill",W=>ke(W)).style("cursor",x||w||O?"pointer":"default").merge(hn);if(Ke.transition().duration(f).attr(Ut,W=>ce(W.xKey)).attr(Ht,X).attr(Ln,gn).attr(_e,Kt),(O||x)&&Ke.on("mouseover",function(W,ee){const ue=ee.value;if(O&&He){const Oe=D==="single"?ee.data.title:J(ee.key);He.style("visibility","visible").html(D==="single"?`<strong>${Oe}</strong><br/>${g(ue)}`:`<strong>${Oe}</strong><br/>${ee.xKey}<br/>${g(ue)}`)}ae.select(this).style("opacity",.8),x&&x(W,{key:ee.key,value:ue,data:ee.data})}).on("mousemove",function(W){O&&He&&He.style("top",W.pageY-10+"px").style("left",W.pageX+10+"px")}).on("mouseout",function(){O&&He&&He.style("visibility","hidden"),ae.select(this).style("opacity",1)}),w&&Ke.on("click",function(W,ee){const ue=ee.value;w(W,{key:ee.key,value:ue,data:ee.data})}),De&&De.length>1){const W=ae.line().x(ee=>ee.x).y(ee=>ee.y).curve(ae.curveMonotoneX);je.append("path").datum(De).attr("class","line").attr("d",W).attr("fill","none").attr("stroke","#ff6b6b").attr("stroke-width",2).attr("stroke-linecap","round").attr("stroke-linejoin","round"),je.selectAll(".line-point").data(De).enter().append("circle").attr("class","line-point").attr("cx",ee=>ee.x).attr("cy",ee=>ee.y).attr("r",4).attr("fill","#ff6b6b").attr("stroke","white").attr("stroke-width",1)}return()=>{He&&He.remove()}},[e,t,n,r,M,G,b,u,d,m,h,y,g,f,x,w,S,N,v,C,T,O,j,L,R,p,E,k,D,z,$]);const ne=typeof i=="number"?i+G.top+G.bottom:i,re=B?H?{width:"100%",height:ne,overflowY:"auto",overflowX:"hidden"}:{width:o,height:ne,overflowX:"auto"}:{width:H?"100%":o,height:"auto",overflow:"visible"};return l.jsx("div",{ref:Z,className:`${Ni.svgContainer} ${c}`,style:re,children:l.jsx("svg",{ref:F,className:Ni.svg})})};ns.displayName="Stackedbarchart";ns.propTypes={data:s.arrayOf(s.object).isRequired,keys:s.arrayOf(s.string),colors:s.oneOfType([s.arrayOf(s.string),s.object]),lineData:s.arrayOf(s.number),width:s.oneOfType([s.string,s.number]),height:s.oneOfType([s.string,s.number]),margin:s.shape({top:s.number,right:s.number,bottom:s.number,left:s.number}),className:s.string,showXAxisLabels:s.bool,showYAxisLabels:s.bool,showGrid:s.bool,xAxisTickRotation:s.number,xAxisPosition:s.oneOf(["top","bottom"]),yAxisTickFormat:s.func,barPadding:s.number,animationDuration:s.number,onBarHover:s.func,onBarClick:s.func,title:s.string,xAxisLabel:s.string,yAxisLabel:s.string,yAxisLabelPadding:s.number,stackOrder:s.oneOf(["reverse","ascending","descending","insideOut","none"]),showTooltip:s.bool,reverseKeys:s.bool,minBarSlotWidth:s.number,wrapXAxisLabels:s.bool,wrapYAxisLabels:s.bool,maxYAxisLabelLines:s.number,yAxisLabelFont:s.string,marginLeftPadding:s.number,mode:s.oneOf(["single","stacked"]),orientation:s.oneOf(["vertical","horizontal"]),scrollOnOverflow:s.bool};const up="_externalContainer_1er0i_2",dp="_externalSintetic_1er0i_9",fp="_titles_1er0i_13",pp="_titleContainer_1er0i_22",mp="_yearTitles_1er0i_36",hp="_yearTitle_1er0i_36",gp="_yearDatas_1er0i_50",yp="_yearDataContainer_1er0i_58",bp="_yearDataContent_1er0i_66",vp="_bigNumber_1er0i_79",xp="_circle_1er0i_82",Cp="_totalContainer_1er0i_99",_p="_total_1er0i_99",qe={externalContainer:up,externalSintetic:dp,titles:fp,titleContainer:pp,yearTitles:mp,yearTitle:hp,yearDatas:gp,yearDataContainer:yp,yearDataContent:bp,bigNumber:vp,circle:xp,totalContainer:Cp,total:_p},wp=e=>{if(e>=1e3||e<=-1e3)return parseInt(e.toFixed());if(e>=100||e<=-100)return parseFloat(e.toFixed(1));if(e>=10||e<=-10)return parseFloat(e.toFixed(2));if(e>0||e<0)return parseFloat(e.toFixed(3));if(e===0)return e},Sp=(e,t)=>{let n=0;return t.forEach(r=>{r[e]&&(n+=r[e])}),n},rs=({data:e,keys:t,colors:n,locales:r,total:o=!1,years:i=!1,activeGraphics:a="ind",units:c={},translate:u,getTotal:d=Sp,columnWidth:m=50})=>{const h=u||(g=>g),y=g=>g==="demanda_red"||g==="reduccio_demanda_red"?(c.demanda||"").replace("(","").replace(")",""):c[g]||"";return l.jsxs("div",{className:`${qe.externalContainer} ${a==="sin"?qe.externalSintetic:""}`,children:[i===!0&&l.jsxs(l.Fragment,{children:[l.jsx("div",{}),l.jsx("div",{className:qe.yearTitles,children:e.map((g,b)=>l.jsx("div",{className:qe.yearTitle,style:{width:m},children:g.anyo},b))})]}),l.jsx("div",{className:qe.titles,children:t.map((g,b)=>l.jsxs("div",{className:qe.titleContainer,children:[h(r[g]),a!=="sin"&&l.jsx("span",{className:qe.circle,style:{background:n[g]}})]},b))}),o===!0&&l.jsx("div",{className:qe.totalContainer,children:t.map((g,b)=>{var f;return l.jsxs("div",{className:`${qe.total} ${d(g,e)>9999||d(g,e)<-9999?qe.bigNumber:""}`,children:[(f=d(g,e))==null?void 0:f.toLocaleString("es-ES")," ",y(g)]},b)})}),l.jsx("div",{className:qe.yearDatas,children:e.map((g,b)=>l.jsx("div",{className:qe.yearDataContainer,style:{width:m},children:t.map((f,x)=>{var w,S;return isNaN(g[f])?null:l.jsx("div",{className:`${qe.yearDataContent} ${g[f]>9999||g[f]<-9999?qe.bigNumber:""}`,children:g[f]<1e4||g[f]>-1e4?(w=wp(g[f]))==null?void 0:w.toLocaleString("es-ES"):(S=g[f])==null?void 0:S.toLocaleString("es-ES")},x)})},b))})]})};rs.displayName="GraphicLegend";rs.propTypes={data:s.arrayOf(s.shape({anyo:s.oneOfType([s.string,s.number]).isRequired})).isRequired,keys:s.arrayOf(s.string).isRequired,colors:s.objectOf(s.string).isRequired,locales:s.objectOf(s.string).isRequired,total:s.bool,years:s.bool,activeGraphics:s.oneOf(["ind","sin"]),units:s.objectOf(s.string),translate:s.func,getTotal:s.func,columnWidth:s.number};const os=({minValue:e=0,maxValue:t=100,value:n=0,title:r=!1,percent:o=!1,unit:i=!1,greenColor:a="#00CF1E",orangeColor:c="#FFAC00",redColor:u="#FF1E37",categoryRanges:d=null,fontColor:m="#9B9B9B",valueFontSize:h="24px"})=>{const y=[a,c,u],g=d&&d.length>0?d:y.map(()=>(t-e)/y.length),b=e+g.reduce((k,D)=>k+D,0);let f=n;f<e&&(f=e),f>b&&(f=b);const x=(f-e)/(b-e),w=270+x*180,S=o?Math.round(x*100):f,N=122,v=122,C=99,T=122,O=132,j=2,$=(k,D)=>{const z=k*Math.PI/180;return{x:N+D*Math.sin(z),y:v-D*Math.cos(z)}},L=(k,D)=>{const z=D-k>180?1:0,B=$(k,T),F=$(D,T),Z=$(D,C),M=$(k,C);return`M ${B.x} ${B.y} A ${T} ${T} 0 ${z} 1 ${F.x} ${F.y} L ${Z.x} ${Z.y} A ${C} ${C} 0 ${z} 0 ${M.x} ${M.y} Z`},R=g.reduce((k,D)=>[...k,k[k.length-1]+D],[e]),p=y.map((k,D)=>{const z=(R[D]-e)/(b-e),B=(R[D+1]-e)/(b-e),F=270+z*180,Z=270+B*180,M=F+(D>0?j/2:0),I=Z-(D<y.length-1?j/2:0);return{color:k,path:L(M,I)}}),E=R.map(k=>{const z=270+(k-e)/(b-e)*180,{x:B,y:F}=$(z,O),Z=B<N-4?"end":B>N+4?"start":"middle",M=F<v-4?"-2":"0.32em";return{value:Math.round(k),x:B,y:F,textAnchor:Z,dy:M}});return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",alignItems:"center",fontFamily:"sans-serif"},children:[l.jsxs("svg",{width:"324",height:"170",viewBox:"-40 -30 324 170",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[p.map((k,D)=>l.jsx("path",{d:k.path,fill:k.color},D)),l.jsx("g",{transform:`rotate(${w} ${N} ${v})`,children:l.jsx("path",{d:`M ${N-1} 119.5V33`,stroke:"#605B56",strokeWidth:"2"})}),E.map((k,D)=>l.jsx("text",{x:k.x,y:k.y,dy:k.dy,textAnchor:k.textAnchor,fill:m,fontSize:"11",fontWeight:"600",children:k.value},D))]}),l.jsxs("div",{style:{fontSize:h,fontWeight:600,color:m,marginTop:"-8px"},children:[S,o&&"%",i&&i]}),r&&l.jsx("div",{style:{fontSize:"13px",color:"#8a8a8a",marginTop:"4px"},children:r})]})};os.displayName="SpeedGraphic";os.propTypes={minValue:s.number.isRequired,maxValue:s.number.isRequired,value:s.number.isRequired,percent:s.bool,title:s.string,unit:s.string,greenColor:s.string,orangeColor:s.string,redColor:s.string,categoryRanges:s.arrayOf(s.number),fontColor:s.string,valueFontSize:s.string};const Zr="#ffffff",Tp="#ffffff";function ht(e,t,n,r){const o=(r-90)*Math.PI/180;return{x:e+n*Math.cos(o),y:t+n*Math.sin(o)}}function Ei(e,t,n,r,o,i){if(Math.abs(i-o)>=359.99)return n===0?`M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 0 1 1 ${e-r} ${t} Z`:[`M ${e-r} ${t} A ${r} ${r} 0 1 1 ${e+r} ${t} A ${r} ${r} 0 1 1 ${e-r} ${t} Z`,`M ${e-n} ${t} A ${n} ${n} 0 1 0 ${e+n} ${t} A ${n} ${n} 0 1 0 ${e-n} ${t} Z`].join(" ");const a=ht(e,t,r,o),c=ht(e,t,r,i),u=i-o>180?1:0;if(n===0)return`M ${e} ${t} L ${a.x} ${a.y} A ${r} ${r} 0 ${u} 1 ${c.x} ${c.y} Z`;const d=ht(e,t,n,i),m=ht(e,t,n,o);return[`M ${a.x} ${a.y}`,`A ${r} ${r} 0 ${u} 1 ${c.x} ${c.y}`,`L ${d.x} ${d.y}`,`A ${n} ${n} 0 ${u} 0 ${m.x} ${m.y}`,"Z"].join(" ")}function kp(e,t=0){const n=e.reduce((d,m)=>d+(m.value||0),0),r=e.length;if(n<=0||r===0)return[];const o=e.map(d=>d.value/n*100),i=Math.min(t,r>0?360/r-.01:0);let a=o.map(d=>d/100*360),c=new Array(r).fill(!1);if(i>0){let d=0,m=!0;for(;m&&d<r+2;){m=!1,d+=1;for(let h=0;h<r;h++)!c[h]&&a[h]<i&&(a[h]=i,c[h]=!0,m=!0);if(m){const h=a.reduce((f,x,w)=>c[w]?f+x:f,0),y=a.map((f,x)=>x).filter(f=>!c[f]),g=360-h,b=y.reduce((f,x)=>f+o[x]/100*360,0);y.forEach(f=>{const x=o[f]/100*360;a[f]=b>0?x/b*g:g/y.length})}}}let u=0;return e.map((d,m)=>{const h=u,y=u+a[m];return u=y,{...d,sa:h,ea:y,percent:o[m]}})}function Oa(e){const t=Math.round(e*10)/10;return Number.isInteger(t)?t:t.toFixed(1)}function jp(e){return typeof e=="number"?e.toLocaleString():e}function Oi(e,t){return t?`${Oa(e.percent)}%`:jp(e.value)}function Ai(e,t,n,r,o){const i=n+(r-n)/2,a=ht(e,t,o,i);return{tx:a.x-e,ty:a.y-t}}const ss=({type:e="cheese",data:t=[],title:n,size:r=260,donutThickness:o=56,gapWidth:i=3,gapColor:a,backgroundColor:c="transparent",fontColor:u="black",fontColorInside:d="white",containerStyles:m={},alignLeft:h=!1,valuesArePercentages:y=!0,minSliceAngle:g=8})=>{const[b,f]=_.useState(null),[x,w]=_.useState(()=>t.map(()=>!0)),S=t.map(B=>B.title).join("|"),[N,v]=_.useState(S);S!==N&&(v(S),w(t.map(()=>!0)));const C=x.filter(Boolean).length;function T(B){w(F=>{const Z=F.filter(Boolean).length;if(F[B]&&Z<=1)return F;const M=[...F];return M[B]=!M[B],M}),f(null)}const O=r/2,j=r/2,$=r/2-14,L=e==="donut"?$-o:0,R=e==="donut"?$-o/2:$*.62,p=_.useMemo(()=>t.reduce((B,F,Z)=>(x[Z]&&B.push({...F,origIndex:Z}),B),[]),[t,x]),E=_.useMemo(()=>kp(p,g),[p,g]),k=b!==null&&E.find(B=>B.origIndex===b)||null,D=E.some(B=>B.ea-B.sa>=359.99),z=a||(c==="transparent"?Tp:c);return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"4px",padding:"0px",background:c,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",...m},children:[l.jsxs("div",{style:{minHeight:"40px",display:"flex",flexDirection:"column",gap:"2px"},children:[n&&l.jsx("h2",{style:{margin:0,color:u,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.5px"},children:n}),l.jsx("div",{style:{height:"22px",display:"flex",alignItems:"center",gap:"8px",transition:"opacity 0.15s",opacity:k?1:0},children:k&&l.jsxs(l.Fragment,{children:[l.jsx("span",{style:{display:"inline-block",width:"10px",height:"10px",borderRadius:"50%",background:k.color||Zr,flexShrink:0}}),l.jsxs("span",{style:{color:u,fontSize:"14px",fontWeight:"600"},children:[k.title," —"," ",Oi(k,y),!y&&` (${Oa(k.percent)}%)`]})]})})]}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:h?"flex-start":"center",gap:"16px"},children:[l.jsxs("svg",{width:r,height:r,viewBox:`0 0 ${r} ${r}`,style:{overflow:"visible"},children:[E.map(B=>{const F=b===B.origIndex,{tx:Z,ty:M}=F&&!D?Ai(O,j,B.sa,B.ea,10):{tx:0,ty:0};return l.jsx("g",{transform:`translate(${Z}, ${M})`,style:{transition:"transform 0.18s ease",pointerEvents:"none"},children:l.jsx("path",{d:Ei(O,j,L,$,B.sa,B.ea),fill:B.color||Zr,style:{filter:F?"brightness(1.25)":"brightness(1)",transition:"filter 0.18s ease"}})},B.origIndex)}),!D&&E.map(B=>{const F=ht(O,j,$,B.sa),Z=e==="cheese"?O:ht(O,j,L,B.sa).x,M=e==="cheese"?j:ht(O,j,L,B.sa).y;return l.jsx("line",{x1:Z,y1:M,x2:F.x,y2:F.y,stroke:z,strokeWidth:i,strokeLinecap:"butt",style:{pointerEvents:"none"}},`gap-${B.origIndex}`)}),E.map(B=>{if(B.ea-B.sa<20)return null;const F=b===B.origIndex,{tx:Z,ty:M}=F&&!D?Ai(O,j,B.sa,B.ea,10):{tx:0,ty:0},I=B.sa+(B.ea-B.sa)/2,J=ht(O,j,R,I);return l.jsx("text",{x:J.x+Z,y:J.y+M,textAnchor:"middle",dominantBaseline:"middle",fill:d,fontSize:"14",fontWeight:"700",fontFamily:"'Segoe UI', sans-serif",pointerEvents:"none",style:{transition:"x 0.18s ease, y 0.18s ease"},children:Oi(B,y)},`lbl-${B.origIndex}`)}),E.map(B=>l.jsx("path",{d:Ei(O,j,L,$,B.sa,B.ea),fill:"transparent",style:{cursor:"pointer"},onMouseEnter:()=>f(B.origIndex),onMouseLeave:()=>f(null)},`hit-${B.origIndex}`))]}),l.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:"12px 24px",justifyContent:h?"flex-start":"center"},children:t.map((B,F)=>{const Z=x[F],M=Z&&C<=1;return l.jsxs("div",{role:"button",tabIndex:0,"aria-pressed":Z,"aria-label":`${Z?"Ocultar":"Mostrar"} ${B.title}`,title:M?"Debe quedar al menos una categoría activa":Z?"Ocultar del gráfico":"Mostrar en el gráfico",onClick:()=>T(F),onKeyDown:I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),T(F))},style:{display:"flex",alignItems:"center",gap:"8px",opacity:Z&&(b===null||b===F)?1:.4,cursor:M?"not-allowed":"pointer",transition:"opacity 0.15s",userSelect:"none"},onMouseEnter:()=>Z&&f(F),onMouseLeave:()=>f(null),children:[l.jsx("span",{style:{width:"32px",height:"14px",borderRadius:"3px",background:B.color||Zr,flexShrink:0}}),l.jsx("span",{style:{color:u,fontSize:"13px",fontWeight:"400"},children:B.title})]},F)})})]})]})};ss.displayName="PieChart";ss.propTypes={type:s.oneOf(["cheese","donut"]),data:s.arrayOf(s.shape({value:s.number.isRequired,title:s.string.isRequired,color:s.string})).isRequired,title:s.string,size:s.number,donutThickness:s.number,gapWidth:s.number,gapColor:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,containerStyles:s.object,alignLeft:s.bool,valuesArePercentages:s.bool,minSliceAngle:s.number};const Mi=["#a8d8cf","#3bbfa0","#5dd4b8","#7ed4c2","#2aa88a"],is=({data:e=[],title:t,backgroundColor:n="#0d3d4a",fontColor:r="#ffffff",barHeight:o=52,animated:i=!0,borderRadius:a,containerStyles:c={},fontColorInside:u,borderFontColorInside:d})=>{const[m,h]=_.useState(i?0:1);_.useEffect(()=>{if(!i)return;const f=requestAnimationFrame(()=>h(1));return()=>cancelAnimationFrame(f)},[i]);const y=Math.max(...e.map(f=>f.value),1),g=a??"6px",b=u||r;return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"0px",background:n,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",minWidth:"420px",...c},children:[t&&l.jsx("h2",{style:{margin:"0 0 20px 0",color:r,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.4px"},children:t}),l.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"18px"},children:e.map((f,x)=>{const w=f.color||Mi[x%Mi.length],S=f.value/y*100*m;return l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[l.jsx("span",{style:{color:r,fontSize:"14px",fontWeight:"400",opacity:.9},children:f.title}),l.jsxs("div",{style:{position:"relative",height:`${o}px`,background:"transparent"},children:[l.jsx("div",{style:{position:"absolute",left:0,top:0,height:"100%",width:`${S}%`,background:w,borderRadius:g,transition:i?"width 0.8s cubic-bezier(0.16, 1, 0.3, 1)":"none"}}),l.jsx("span",{style:{position:"absolute",left:`calc(${S}% + 10px)`,top:"50%",transform:"translateY(-50%)",color:b,fontSize:"18px",fontWeight:"700",pointerEvents:"none",letterSpacing:"-0.3px",whiteSpace:"nowrap",transition:i?"left 0.8s cubic-bezier(0.16, 1, 0.3, 1)":"none",...d?{WebkitTextStroke:`1px ${d}`,paintOrder:"stroke fill"}:{}},children:f.value})]})]},x)})})]})};is.displayName="HorizontalBarChart";is.propTypes={data:s.arrayOf(s.shape({title:s.string.isRequired,value:s.number.isRequired,color:s.string})),title:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,borderFontColorInside:s.string,barHeight:s.number,animated:s.bool,borderRadius:s.oneOfType([s.string,s.number]),containerStyles:s.object};const Li=["#a8d8cf","#3bbfa0","#5dd4b8","#7ed4c2","#2aa88a"],$p=26,as=({data:e=[],title:t,backgroundColor:n="black",fontColor:r="#ffffff",fontColorInside:o,borderFontColorInside:i,barWidth:a=52,maxBarHeight:c=200,animated:u=!0,separatorColor:d,containerStyles:m={}})=>{const[h,y]=_.useState(u?0:1);_.useEffect(()=>{if(!u)return;const v=requestAnimationFrame(()=>requestAnimationFrame(()=>y(1)));return()=>cancelAnimationFrame(v)},[u]);const g=Math.max(...e.map(v=>v.value),1),b=d||(r==="#ffffff"?"rgba(255,255,255,0.25)":"rgba(0,0,0,0.15)"),f=o||r,x=12,w=12,S=e.length*a+Math.max(0,e.length-1)*x,N={fontSize:"15px",fontWeight:"700",letterSpacing:"-0.3px",lineHeight:1,pointerEvents:"none",whiteSpace:"nowrap",color:f,marginBottom:"8px",...i?{WebkitTextStroke:`1px ${i}`,paintOrder:"stroke fill"}:{}};return l.jsxs("div",{style:{display:"inline-flex",flexDirection:"column",gap:"0",background:n,borderRadius:"16px",fontFamily:"'Segoe UI', sans-serif",...m},children:[t&&l.jsx("h2",{style:{margin:"0 0 24px 0",color:r,fontSize:"22px",fontWeight:"700",letterSpacing:"-0.4px"},children:t}),l.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:0,overflow:"visible"},children:[l.jsx("div",{style:{display:"flex",alignItems:"flex-end",gap:`${x}px`,width:`${S}px`,height:`${c+$p}px`,overflow:"visible"},children:e.map((v,C)=>{const T=v.color||Li[C%Li.length],O=v.value/g*c*h;return l.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",width:`${a}px`,height:"100%"},children:[l.jsx("span",{style:N,children:v.value}),l.jsx("div",{style:{width:"100%",height:`${O}px`,background:T,borderRadius:"6px 6px 0 0",transition:u?"height 0.85s cubic-bezier(0.16, 1, 0.3, 1)":"none"}})]},C)})}),l.jsx("div",{style:{width:`${S+w*2}px`,marginLeft:`-${w}px`,height:"1.5px",background:b,borderRadius:"1px"}}),l.jsx("div",{style:{display:"flex",gap:`${x}px`,width:`${S}px`,marginTop:"10px"},children:e.map((v,C)=>l.jsx("div",{style:{width:`${a}px`,textAlign:"center",color:r,fontSize:"13px",fontWeight:"400",opacity:.8,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:v.title},C))})]})]})};as.displayName="VerticalBarChart";as.propTypes={data:s.arrayOf(s.shape({title:s.string.isRequired,value:s.number.isRequired,color:s.string})).isRequired,title:s.string,backgroundColor:s.string,fontColor:s.string,fontColorInside:s.string,borderFontColorInside:s.string,barWidth:s.number,maxBarHeight:s.number,animated:s.bool,separatorColor:s.string,containerStyles:s.object};const Np="_percentageBarContainer_lgkme_3",Ep="_barContainer_lgkme_10",Op="_segment_lgkme_19",Ap="_handle_lgkme_36",Mp="_labelsContainer_lgkme_68",Lp="_labelItem_lgkme_73",Rp="_labelsListContainer_lgkme_85",Ip="_labelColor_lgkme_105",Dp="_labelText_lgkme_114",Bp="_labelValue_lgkme_122",Pp="_labelTranslation_lgkme_126",Pe={percentageBarContainer:Np,barContainer:Ep,segment:Op,handle:Ap,labelsContainer:Mp,labelItem:Lp,labelsListContainer:Rp,labelColor:Ip,labelText:Dp,labelValue:Bp,labelTranslation:Pp},Vp=2,Ri=e=>{const t=e.reduce((n,r)=>n+r.value,0);return t===0?e.map(()=>100/e.length):e.map(n=>n.value/t*100)},Gr=(e,t=100)=>e.map(n=>n.value/t*100),Ii=(e,t)=>{try{const r=new Function("x",`return (${t})`)(e);return isNaN(r)?"N/A":r.toFixed(2)}catch{return"N/A"}},ls=({items:e,showLabels:t="bar",showTranslations:n=!0,onChange:r,minPercentage:o=Vp,maxValue:i=100,labelTextColor:a,labelValueColor:c})=>{const[u,d]=_.useState(()=>Ri(e)),m=_.useRef(null),h=_.useRef(null);_.useEffect(()=>{e&&e.length>0&&d(Ri(e))},[e]);const y=_.useCallback(f=>{if(!m.current||!h.current)return;const{dividerIndex:x}=m.current,w=h.current.getBoundingClientRect(),S=(f.touches?f.touches[0].clientX:f.clientX)-w.left,N=Math.max(0,Math.min(100,S/w.width*100));d(v=>{const C=[...v],T=v.slice(0,x).reduce((L,R)=>L+R,0),O=T+v[x]+v[x+1];let j=N-T,$=O-N;if(j<o&&(j=o,$=O-T-o),$<o&&($=o,j=O-T-o),C[x]=j,C[x+1]=$,r)try{const L=e.reduce((R,p)=>R+p.value,0);r(e.map((R,p)=>({...R,value:C[p]/100*L})))}catch(L){console.error("PercentageBar onChange error:",L)}return C})},[o,r,e]),g=_.useCallback(()=>{m.current&&(m.current=null,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",g),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",g),d(f=>{if(r){const x=e.reduce((w,S)=>w+S.value,0);r(e.map((w,S)=>({...w,value:f[S]/100*x})))}return f}))},[y,r,e]),b=(f,x)=>{x.preventDefault(),m.current={dividerIndex:f},document.addEventListener("mousemove",y),document.addEventListener("mouseup",g),document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",g)};return l.jsxs("div",{className:Pe.percentageBarContainer,children:[l.jsx("div",{className:Pe.barContainer,ref:h,children:e.map((f,x)=>{var w;return l.jsx("div",{className:Pe.segment,style:{width:`${u[x]}%`,backgroundColor:f.color||"#ccc"},children:x>0&&l.jsx("div",{className:Pe.handle,onMouseDown:S=>b(x-1,S),onTouchStart:S=>b(x-1,S),role:"slider","aria-label":`Divisor entre ${(w=e[x-1])==null?void 0:w.title} y ${f.title}`,"aria-valuenow":Math.round(u[x]),tabIndex:0})},f.id??x)})}),t==="bar"&&l.jsx("div",{className:Pe.labelsContainer,children:e.map((f,x)=>l.jsxs("div",{className:Pe.labelItem,style:{width:`${u[x]}%`},children:[l.jsx("span",{className:Pe.labelColor,style:{backgroundColor:f.color}}),l.jsx("span",{className:Pe.labelText,style:{color:a||"#fff"},children:f.title}),l.jsxs("span",{className:Pe.labelValue,style:{color:c||"#fff"},children:[Gr(e,i)[x].toFixed(1),"%"]}),n&&f.translationFormula&&l.jsxs("span",{className:Pe.labelTranslation,children:["(",Ii(u[x],f.translationFormula),")"]})]},f.id??x))}),t==="list"&&l.jsx("div",{className:Pe.labelsListContainer,children:e.map((f,x)=>l.jsxs("div",{className:Pe.labelItem,children:[l.jsx("span",{className:Pe.labelColor,style:{backgroundColor:f.color}}),l.jsx("span",{className:Pe.labelText,children:f.title}),l.jsxs("span",{className:Pe.labelValue,children:[Gr(e,i)[x].toFixed(1),"%"]}),n&&f.translationFormula&&l.jsxs("span",{className:Pe.labelTranslation,children:["(",Ii(Gr(e,i)[x],f.translationFormula),")"]})]},f.id??x))})]})};ls.displayName="PercentageBar";ls.propTypes={items:s.arrayOf(s.shape({id:s.oneOfType([s.string,s.number]),title:s.string.isRequired,value:s.number.isRequired,color:s.string.isRequired,translationFormula:s.string})).isRequired,showLabels:s.string,showTranslations:s.bool,onChange:s.func,minPercentage:s.number,maxValue:s.number,labelTextColor:s.string,labelValueColor:s.string};const Fp="_overlay_1vbid_2",zp="_modal_1vbid_16",qp="_content_1vbid_28",Wp="_iconContainer_1vbid_36",Up="_iconSvg_1vbid_43",Hp="_textContainer_1vbid_48",Kp="_title_1vbid_55",Zp="_message_1vbid_62",Gp="_closeButton_1vbid_69",at={overlay:Fp,modal:zp,content:qp,iconContainer:Wp,iconSvg:Up,textContainer:Hp,title:Kp,message:Zp,closeButton:Gp},cs=({isOpen:e,onClose:t,title:n,message:r,isError:o=!1,isSuccess:i=!1,customIcon:a=null,iconColor:c=null,textColor:u=null,backgroundColor:d=null,borderColor:m=null,showCloseButton:h=!0,autoClose:y=!1,autoCloseDelay:g=3e3})=>{if(_.useEffect(()=>{if(y&&e){const S=setTimeout(()=>{t()},g);return()=>clearTimeout(S)}},[y,e,t,g]),!e)return null;const b=()=>{const S={};return d&&(S.backgroundColor=d),m&&(S.borderColor=m),o&&!d?(S.backgroundColor="#fff5f5",S.borderColor="#feb2b2"):i&&!d&&(S.backgroundColor="#f0fff4",S.borderColor="#9ae6b4"),S},f=()=>{const S={};return u&&(S.color=u),o&&!u?S.color="#c53030":i&&!u&&(S.color="#276749"),S},x=()=>{const S={};return c&&(S.color=c),o&&!c?S.color="#c53030":i&&!c&&(S.color="#276749"),S},w=()=>a||(o?l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:at.iconSvg,style:x(),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[l.jsx("circle",{cx:"12",cy:"12",r:"10"}),l.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),l.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]}):i?l.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:at.iconSvg,style:x(),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[l.jsx("path",{d:"M22 11.08V12a10 10 0 1 1-5.93-9.14"}),l.jsx("polyline",{points:"22 4 12 14.01 9 11.01"})]}):null);return l.jsx("div",{className:at.overlay,children:l.jsx("div",{className:at.modal,style:b(),children:l.jsxs("div",{className:at.content,children:[l.jsx("div",{className:at.iconContainer,children:w()}),l.jsxs("div",{className:at.textContainer,children:[n&&l.jsx("h3",{className:at.title,style:f(),children:n}),l.jsx("p",{className:at.message,style:f(),children:r})]}),h&&l.jsx("button",{className:at.closeButton,onClick:t,"aria-label":"Close modal",style:f(),children:"✕"})]})})})};cs.displayName="StatusModal";cs.propTypes={isOpen:s.bool.isRequired,onClose:s.func.isRequired,title:s.string,message:s.string.isRequired,isError:s.bool,isSuccess:s.bool,customIcon:s.node,iconColor:s.string,textColor:s.string,backgroundColor:s.string,borderColor:s.string,showCloseButton:s.bool,autoClose:s.bool,autoCloseDelay:s.number};const Yp="_dropdownSelector_g77wf_2",Xp="_trigger_g77wf_17",Qp="_open_g77wf_48",Jp="_arrow_g77wf_48",em="_icon_g77wf_52",tm="_label_g77wf_70",nm="_menu_g77wf_92",rm="_top_g77wf_104",om="_bottom_g77wf_107",sm="_left_g77wf_110",im="_right_g77wf_113",am="_option_g77wf_132",lm="_active_g77wf_142",cm="_disabled_g77wf_147",Qe={dropdownSelector:Yp,trigger:Xp,open:Qp,arrow:Jp,icon:em,label:tm,menu:nm,top:rm,bottom:om,left:sm,right:im,"align-start":"_align-start_g77wf_116","align-end":"_align-end_g77wf_119",option:am,active:lm,disabled:cm},Di={text:"--ds-text",background:"--ds-bg",border:"--ds-border",iconBackground:"--ds-icon-bg",menuBackground:"--ds-menu-bg",optionText:"--ds-option-text",optionHoverBackground:"--ds-option-hover-bg",activeOptionBackground:"--ds-active-bg",activeOptionText:"--ds-active-text"},um=()=>l.jsx("svg",{width:"10",height:"6",viewBox:"0 0 10 6","aria-hidden":"true",children:l.jsx("path",{d:"M0 0L5 6L10 0Z",fill:"currentColor"})}),us=({options:e=[],value:t,defaultValue:n,onChange:r,icon:o,arrowIcon:i,placeholder:a="",placement:c="top",align:u="start",closeOnSelect:d=!0,disabled:m=!1,colors:h={},customStyles:y={},className:g=""})=>{const{t:b}=ie.useTranslation(),[f,x]=_.useState(!1),[w,S]=_.useState(n),N=_.useRef(null),v=_.useId(),C=t!==void 0,T=C?t:w,O=e.find(L=>L.value===T);_.useEffect(()=>{if(!f)return;const L=p=>{N.current&&!N.current.contains(p.target)&&x(!1)},R=p=>{p.key==="Escape"&&x(!1)};return document.addEventListener("mousedown",L),document.addEventListener("keydown",R),()=>{document.removeEventListener("mousedown",L),document.removeEventListener("keydown",R)}},[f]);const j=L=>{L.disabled||(C||S(L.value),r==null||r(L.value,L),d&&x(!1))},$=Object.entries(h).reduce((L,[R,p])=>(Di[R]&&p&&(L[Di[R]]=p),L),{});return l.jsxs("div",{ref:N,className:`${Qe.dropdownSelector} ${g}`,style:{...$,...y.container},children:[l.jsxs("button",{type:"button",className:`${Qe.trigger} ${f?Qe.open:""}`,style:y.button,onClick:()=>x(L=>!L),disabled:m,"aria-haspopup":"listbox","aria-expanded":f,"aria-controls":v,children:[o&&l.jsx("span",{className:Qe.icon,style:y.icon,children:l.jsx("img",{src:o,alt:""})}),l.jsx("span",{className:Qe.label,style:y.label,children:b(O?O.label:a)}),l.jsx("span",{className:Qe.arrow,style:y.arrow,children:i?l.jsx("img",{src:i,alt:""}):l.jsx(um,{})})]}),f&&l.jsx("ul",{id:v,role:"listbox",className:`${Qe.menu} ${Qe[c]} ${Qe[`align-${u}`]}`,style:y.menu,children:e.map(L=>{const R=L.value===T;return l.jsx("li",{role:"option","aria-selected":R,"aria-disabled":L.disabled||void 0,className:`${Qe.option} ${R?Qe.active:""} ${L.disabled?Qe.disabled:""}`,style:{...y.option,...R?y.activeOption:{}},tabIndex:L.disabled?-1:0,onClick:()=>j(L),onKeyDown:p=>{(p.key==="Enter"||p.key===" ")&&(p.preventDefault(),j(L))},children:b(L.label)},L.value)})})]})};us.displayName="DropdownSelector";us.propTypes={options:s.arrayOf(s.shape({value:s.oneOfType([s.string,s.number]).isRequired,label:s.string.isRequired,disabled:s.bool})).isRequired,value:s.oneOfType([s.string,s.number]),defaultValue:s.oneOfType([s.string,s.number]),onChange:s.func,icon:s.oneOfType([s.string,s.object]),arrowIcon:s.oneOfType([s.string,s.object]),placeholder:s.string,placement:s.oneOf(["top","bottom","left","right"]),align:s.oneOf(["start","end"]),closeOnSelect:s.bool,disabled:s.bool,colors:s.shape({text:s.string,background:s.string,border:s.string,iconBackground:s.string,menuBackground:s.string,optionText:s.string,optionHoverBackground:s.string,activeOptionBackground:s.string,activeOptionText:s.string}),customStyles:s.shape({container:s.object,button:s.object,icon:s.object,label:s.object,arrow:s.object,menu:s.object,option:s.object,activeOption:s.object}),className:s.string};const dm="_header_13kbt_2",fm="_leftComponents_13kbt_13",pm="_centerComponents_13kbt_14",mm="_rightComponents_13kbt_15",hm="_componentsContainer_13kbt_32",It={header:dm,leftComponents:fm,centerComponents:pm,rightComponents:mm,componentsContainer:hm},ds=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[],zIndex:o=10,height:i=60,backgroundColor:a="#605B56",isFooter:c=!1})=>l.jsxs("div",{className:It.header,style:{...e,zIndex:o,height:i,backgroundColor:a,top:c?"auto":0,bottom:c?0:"auto"},children:[l.jsx("div",{className:It.leftComponents,children:t.map((u,d)=>l.jsx("div",{className:It.componentsContainer,children:u},d))}),l.jsx("div",{className:It.centerComponents,children:n.map((u,d)=>l.jsx("div",{className:It.componentsContainer,children:u},d))}),l.jsx("div",{className:It.rightComponents,children:r.map((u,d)=>l.jsx("div",{className:It.componentsContainer,children:u},d))})]});ds.displayName="HeaderSection";ds.propTypes={leftComponents:s.arrayOf(s.node),centerComponents:s.arrayOf(s.node),rightComponents:s.arrayOf(s.node),cssProps:s.object,zIndex:s.number,height:s.number,backgroundColor:s.string,isFooter:s.bool};const gm="_sidebar_1kaqu_2",ym="_open_1kaqu_16",bm="_content_1kaqu_20",vm="_closeButton_1kaqu_25",Xn={sidebar:gm,open:ym,content:bm,closeButton:vm},xm="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",fs=({width:e="300px",children:t,showRightBar:n,onCloseBar:r})=>{const o=()=>{r()};return l.jsx("div",{className:`${Xn.sidebar} ${n?Xn.open:""}`,style:{width:n?e:0},children:n&&l.jsxs("div",{className:Xn.content,children:[l.jsx("button",{className:Xn.closeButton,onClick:o,children:l.jsx("img",{src:xm,alt:"Close Sidebar"})}),t]})})};fs.displayName="RightSidebar";fs.propTypes={width:s.oneOfType([s.string,s.number]),children:s.node,showRightBar:s.bool,onCloseBar:s.func};exports.AmbitSelector=po;exports.BarChart=dr;exports.BurgerMenu=es;exports.ButtonsBar=Xo;exports.ButtonsList=mo;exports.CategorySelector=cr;exports.DropdownList=yt;exports.DropdownSelector=us;exports.EditAmbit=Wi;exports.ErrorBoundary=qi;exports.ErrorMessage=qt;exports.FiltersAmbit=Co;exports.Form=Na;exports.GeneralButton=fn;exports.Graphic=_o;exports.GraphicLegend=rs;exports.Groupedbarchart=ts;exports.HeaderSection=ds;exports.HorizontalBarChart=is;exports.IndicatorsList=To;exports.LangSelector=ko;exports.Legend=jo;exports.ListSelector=qo;exports.Loader=Jo;exports.LogInButton=Fo;exports.LogoApp=$o;exports.MapboxMap=No;exports.MaplibreMap=Eo;exports.ModalAlert=Zo;exports.PercentageBar=ls;exports.PieChart=ss;exports.RadioButtonInput=Ko;exports.RankingSlider=kr;exports.RightSidebar=fs;exports.SectionBar=Oo;exports.SelectInput=Ho;exports.SpeedGraphic=os;exports.Stackedbarchart=ns;exports.StatusModal=cs;exports.StatusText=Yo;exports.Steps=Go;exports.Switch=Qo;exports.TextInput=lr;exports.TimeSlider=Po;exports.Tooltip=rt;exports.TopNavMenu=Vo;exports.VerticalBarChart=as;
|
|
84
84
|
//# sourceMappingURL=index.cjs.js.map
|