@tmf_ciclica/ciclicastorybook 1.1.80 → 1.1.82
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 +3 -3
- package/dist/index.es.js +373 -377
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@charset "UTF-8";@import"https://unpkg.com/maplibre-gl@^5.3.0/dist/maplibre-gl.css";@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap";._ambitSelector_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_8d6ru_2{padding:5px 95px;border-radius:100px}._buttonsContainer_1audx_2{display:flex;gap:8px}._buttonsContainer_1audx_2._vertical_1audx_6{flex-direction:column}._buttonsContainer_1audx_2._horizontal_1audx_9{flex-direction:row}._button_1audx_2{background:transparent;border:none;display:flex;align-items:center;cursor:pointer;padding:4px;position:relative}._button_1audx_2:hover{opacity:.8}._button_1audx_2._active_1audx_25{font-weight:700}._button_1audx_2 ._buttonName_1audx_28{margin:0 4px}._left_1l4m4_2{position:absolute;width:auto;bottom:50%;right:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000}._left_1l4m4_2:before{content:"";position:absolute;top:50%;left:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent transparent #ccc;z-index:-2}._left_1l4m4_2:after{content:"";position:absolute;top:50%;left:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent transparent #fff;z-index:-1}._top_1l4m4_40{position:absolute;width:auto;bottom:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._top_1l4m4_40:before{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:#ccc transparent transparent transparent;z-index:-2}._top_1l4m4_40:after{content:"";position:absolute;top:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:#fff transparent transparent transparent;z-index:-1}._bottom_1l4m4_79{position:absolute;width:auto;top:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._bottom_1l4m4_79:before{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent #ccc transparent;z-index:-2}._bottom_1l4m4_79:after{content:"";position:absolute;bottom:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent #fff transparent;z-index:-1}._right_1l4m4_118{position:absolute;width:auto;bottom:50%;left:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:20px;margin:0;white-space:nowrap;color:#000;z-index:10}._right_1l4m4_118:before{content:"";position:absolute;top:50%;right:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent #ccc transparent transparent;z-index:-2}._right_1l4m4_118:after{content:"";position:absolute;top:50%;right:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent #fff transparent transparent;z-index:-1}._AppliedFiltersContainer_cokx9_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start;flex-wrap:wrap}._AppliedFiltersContainer_cokx9_2 ._AppliedFilterContent_cokx9_11{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:row;align-items:center;font-size:16px;font-weight:400;height:35px;width:fit-content;padding:0 20px;border-radius:100px}._checkboxContainer_zld97_2{display:flex;align-items:center;gap:.5rem;font-size:14px;font-weight:400;cursor:pointer}._checkboxContainer_zld97_2 input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:10px;height:10px;border-radius:1px;background-color:#fff;cursor:pointer}._container_15vgv_2{padding-top:15px;font-size:14px}._container_15vgv_2 span{font-size:14px}._container_15vgv_2 ._unitLabel_15vgv_9{height:40px}._container_15vgv_2 ._slider_15vgv_12{height:6px;background-color:#ddd;border-radius:3px;position:relative}._container_15vgv_2 ._thumb_15vgv_18{height:20px;width:20px;background-color:#605b56;border-radius:50%;cursor:grab;top:-7px;position:absolute}._container_15vgv_2 ._track_15vgv_27{top:0;bottom:0;background:#605b56;border-radius:3px}._container_15vgv_2 ._labels_15vgv_33{display:flex;justify-content:space-between;font-size:14px;margin-top:10px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px;padding-bottom:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 label,._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input{cursor:pointer;font-size:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input[type=radio]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background-color:#fff;transition:background-color .2s ease;cursor:pointer;vertical-align:middle}._tematicalFiltersInputContainer_1vm1r_2 ._checkboxContainer_1vm1r_28{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px}._tematicalFiltersInputContainer_1vm1r_2 ._absoluteSliderContainer_1vm1r_37{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:flex-start}._FiltersAmbitContainer_1g9xx_2{width:100%;height:100%;padding:28.5px 0 0 24px}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7{display:flex;flex-wrap:nowrap;justify-content:start;gap:30px;flex-direction:column;align-items:start}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitTitle_1g9xx_15{font-size:18px;font-weight:600;padding:0 0 26px;border-bottom:1.5px solid #605B56;width:100%}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitDescription_1g9xx_22{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:column;align-items:start;padding:0 0 26px;font-size:16px;font-weight:400}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitDescription_1g9xx_22 ._FiltersAmbitDescriptionTitle_1g9xx_33{font-size:18px;font-weight:600}._FiltersAmbitContainer_1g9xx_2 ._warning_1g9xx_37{color:red}._barChartContainer_d2f1z_2{height:100%;width:100%;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._graphicContainer_c9zrg_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;width:100%;border:1.5px solid black;padding:33px 50px;border-radius:20px}._graphicContainer_c9zrg_2 ._titleContainer_c9zrg_14{display:flex;flex-wrap:nowrap;gap:0;flex-direction:row;align-items:center;justify-content:center;margin-bottom:83px}._indicatorsCategory_1cu33_2{overflow:hidden}._indicatorsCategory_1cu33_2 ._title_1cu33_5{align-items:center;gap:10px;cursor:pointer;margin-bottom:25px}._indicatorsCategory_1cu33_2 ._list_1cu33_11{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._indicatorContainer_1go6h_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:center;gap:10px}._indicatorContainer_1go6h_2 ._indicatorNameContainer_1go6h_11{gap:10px;display:grid;grid-template-columns:15px auto;align-items:center}._indicatorContainer_1go6h_2 ._dot_1go6h_17{border-radius:100px;width:16px;height:16px}._indicatorContainer_1go6h_2 ._indicatorName_1go6h_11{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_1go6h_28{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:20px 0 0}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37{margin:0;width:100%}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:10px;cursor:pointer}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52 ._customRadious_1go6h_62{width:16px;height:16px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52 ._optionText_1go6h_69{font-weight:400}._indicatorsSubCategory_1dzsi_2{overflow:hidden}._indicatorsSubCategory_1dzsi_2 h3{text-align:left}._indicatorsSubCategory_1dzsi_2 ._list_1dzsi_8{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:start;margin:20px 0;gap:20px}._indicatorsList_fklyu_2{width:100%;padding-left:30px}._indicatorsList_fklyu_2 ._title_fklyu_6{border-bottom:1px solid;padding-bottom:25px;margin-bottom:32px}._langSelector_o9enq_2{position:relative;width:fit-content;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;height:100%}._currentLang_o9enq_14{color:#404040;cursor:pointer;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:5px;text-transform:capitalize}._currentLang_o9enq_14 ._arrow_o9enq_26{width:10px}._currentLang_o9enq_14 ._prevImg_o9enq_29{width:20px}._langMenu_o9enq_33{position:absolute;width:80px;background:#000!important;border-radius:8px}._langMenu_o9enq_33 button{cursor:pointer;background:#000!important;color:#ccc;width:100%;padding:4px 8px;text-align:left}._langMenu_o9enq_33 button:first-child{border-radius:8px 8px 0 0}._langMenu_o9enq_33 button:last-child{border-radius:0 0 8px 8px}._langMenu_o9enq_33 button:hover{color:#cbcbcb;background-color:#fafafa!important}._legendContainer_1q5gf_3{width:402px;background-color:#fdfdfd;color:#605b56;border:solid 1.5px #605b56;border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:flexStart;padding:20px;position:relative;overflow-y:scroll}._legendContainer_1q5gf_3::-webkit-scrollbar{width:8px}._legendContainer_1q5gf_3::-webkit-scrollbar-track{background:transparent;margin:5px 0}._legendContainer_1q5gf_3::-webkit-scrollbar-thumb{background-color:#ebebeb;border-radius:20px}._legendContainer_1q5gf_3 ._closeButton_1q5gf_31{position:absolute;right:20px;top:20px;width:24px;height:24px;border:none;background:transparent;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center}._legendContainer_1q5gf_3 ._closeButton_1q5gf_31:before,._legendContainer_1q5gf_3 ._closeButton_1q5gf_31:after{content:"";position:absolute;width:16px;height:2px;background-color:#333}._legendContainer_1q5gf_3 ._closeButton_1q5gf_31:before{transform:rotate(45deg)}._legendContainer_1q5gf_3 ._closeButton_1q5gf_31:after{transform:rotate(-45deg)}._legendContainer_1q5gf_3 ._titleContainer_1q5gf_59{border-bottom:solid 1.5px #605b56}._legendContainer_1q5gf_3 ._titleContainer_1q5gf_59 h2{padding-bottom:16px}._legendContainer_1q5gf_3 ._infoContainer_1q5gf_65{padding-top:20px}._legendContainer_1q5gf_3 ._infoContainer_1q5gf_65 ul li{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:row;align-items:center}._legendContainer_1q5gf_3 ._titleLegendList_1q5gf_76{font-size:20px;padding-bottom:20px;margin-bottom:20px;margin-top:30px;border-bottom:solid 1.5px #605b56}._legendContainer_1q5gf_3 ._legendListContainer_1q5gf_83 ._gridContainer_1q5gf_83{display:grid;grid-template-columns:auto;column-gap:20px;row-gap:15px}._legendContainer_1q5gf_3 ._legendListContainer_1q5gf_83 ._gridContainer_1q5gf_83 ._elementLegendContainer_1q5gf_89{display:grid;grid-template-columns:23px auto;align-items:center;gap:5px}._legendContainer_1q5gf_3 ._legendListContainer_1q5gf_83 ._gridContainer_1q5gf_83 ._elementLegendContainer_1q5gf_89 ._colorDot_1q5gf_95{width:22px;height:22px;border-radius:50%;margin-right:10px}._legendContainer_1q5gf_3 ._legendListContainer_1q5gf_83 ._absoluteValueContainer_1q5gf_101{position:relative}._legendContainer_1q5gf_3 ._legendListContainer_1q5gf_83 ._absoluteValueContainer_1q5gf_101 ._absoluteValueColor_1q5gf_104{height:130px;width:22px;border-radius:20px}._legendContainer_1q5gf_3 ._legendListContainer_1q5gf_83 ._absoluteValueContainer_1q5gf_101 ._absoluteValueText_1q5gf_109{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_1q5gf_3 ._moreInfoContainer_1q5gf_121{margin-top:30px;padding:8.5px 20px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;border:1.5px solid #605b56;border-radius:25px;font-size:16px;font-weight:600}._logo_1ewa6_2{padding:10px;height:100%}._logo_1ewa6_2 img{height:100%}._mapContainer_84pkf_2{width:100vw;height:100vh}._mapContainer_b0pyr_3{width:100vw;height:100vh;position:absolute;top:0;z-index:0}._FeaturePopUp_mt8l5_2{padding:15px;color:#92898a}._FeaturePopUp_mt8l5_2 p{margin-bottom:10px}._FeaturePopUp_mt8l5_2 ._title_mt8l5_9{font-weight:600;margin-right:5px;color:#92898a}._sectionBar_1egwc_2{height:70px;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid black;transition:width .3s ease}._leftContent_1egwc_14{display:flex;align-items:center;gap:12px}._textContainer_1egwc_20{display:flex;flex-direction:row;align-items:center;gap:8px}._title_1egwc_27{font-size:16px;font-weight:600;color:#000}._subtitle_1egwc_33{font-size:16px;color:#000}._rightContent_1egwc_38{display:flex;align-items:center;gap:8px}._slider_a19yo_2{position:absolute;padding:5px 20px;right:150px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;top:188px;transition:all .5s ease-out}._slider_a19yo_2 ._playButton_a19yo_17,._slider_a19yo_2 ._playButton_a19yo_17._hover_a19yo_20{background-color:transparent!important}._slider_a19yo_2 ._playButton_a19yo_17 img{height:30px;width:30px}._sliderOpen_a19yo_28{right:490px}._sliderResults_a19yo_32{position:absolute;top:75px;right:430px;padding:5px 20px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;transition:all .5s ease-out}._sliderResults_a19yo_32 ._playButton_a19yo_17,._sliderResults_a19yo_32 ._playButton_a19yo_17._hover_a19yo_20{background-color:transparent!important}._sliderResults_a19yo_32 ._playButton_a19yo_17 img{height:30px;width:30px}._TopNavMenuContainer_12mp4_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:fit-content;gap:80px;height:100%}._TopNavMenuContainer_12mp4_2 ._topNavOptions_12mp4_13{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer;padding:0 10px;text-align:center;border-bottom:5px solid transparent;border-top:5px solid transparent;height:100%}._TopNavMenuContainer_12mp4_2 ._active_12mp4_27{border-bottom:5px solid white}._LogInButton_1vxj5_2{height:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center}._elementSelector_fd7az_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;height:100%;flex:1}._elementSelector_fd7az_2 ._header_fd7az_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementName_fd7az_39{font-size:18px;font-weight:600;flex:1}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementName_fd7az_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementDate_fd7az_53{font-size:18px;font-weight:600;flex:.5}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementDate_fd7az_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_fd7az_2 ._header_fd7az_13 ._buttonsContainer_fd7az_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._elementSelector_fd7az_2 ._elementListContainer_fd7az_76{flex:1;width:100%}._elementSelector_fd7az_2 ._newElementButtonContainer_fd7az_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px}._listElement_1s506_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:5px;width:100%;padding-bottom:30px;padding-top:30px;flex-wrap:wrap}._listElement_1s506_2 ._elementNameDate_1s506_17{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementNameContainer_1s506_27{flex:1;display:flex;flex-direction:column;align-items:flex-start;position:relative}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementName_1s506_17{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementDate_1s506_42{flex:.5}._listElement_1s506_2 ._elementButtons_1s506_45{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._listElement_1s506_2 ._elementButtons_1s506_45 button:disabled{opacity:.5;cursor:default}._listElement_1s506_2 ._elementButtons_1s506_45 img{display:inline}._break_1s506_63{flex-basis:100%;height:0}._moreInfoContainer_1s506_68 ._moreInfo_1s506_68{display:flex;gap:5px;cursor:pointer}._textInputContainer_1o3iy_2{width:100%}._textInputContainer_1o3iy_2 ._labelContainer_1o3iy_5{margin-bottom:25px}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8{background-color:#605b5620;padding:7px;border-radius:4px;position:relative}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 ._showPasswordButton_1o3iy_14{position:absolute;right:15px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 input{width:100%}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26{margin-top:10px;cursor:pointer}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26 button{text-decoration:underline}._errorMessage_1xiyb_2{min-height:25px}._formContainer_b071f_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start;flex-direction:column}._formContainer_b071f_2 ._formObjectContainer_b071f_11{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:center;flex:1;width:100%;gap:80px}._formContainer_b071f_2 ._buttonContainer_b071f_22{width:100%;margin-top:30px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;gap:20px}._inputsContainer_10t9s_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;gap:30px}._selectInputContainer_1rj0h_2{width:100%;position:relative}._selectInputContainer_1rj0h_2 ._labelContainer_1rj0h_6{margin-bottom:25px}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9{position:relative}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._selectInput_1rj0h_2{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:100%;padding:9px 40px 9px 9px;border:1.5px solid #605b56;border-radius:4px;cursor:pointer}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._selectInput_1rj0h_2 ._option_1rj0h_23{cursor:pointer}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._dropdownArrow_1rj0h_26{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:16px;height:16px;pointer-events:none}._radioButtonContainer_3bp8g_2{width:100%}._radioButtonContainer_3bp8g_2 ._wholeInputContainer_3bp8g_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_3bp8g_2 ._wholeInputContainer_3bp8g_5{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start}}._radioButtonContainer_3bp8g_2 ._questionContainer_3bp8g_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_3bp8g_2 ._questionContainer_3bp8g_27{min-width:auto;max-width:215px}}._radioButtonContainer_3bp8g_2 ._errorContainer_3bp8g_44{position:absolute;top:-25px;left:0}._radioButtonContainer_3bp8g_2 ._iconPrivacy_3bp8g_49{height:100%;padding-right:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._radioButtonContainer_3bp8g_2 ._radioQuestion_3bp8g_59{width:100%;flex:1}._radioButtonContainer_3bp8g_2 ._inputContainer_3bp8g_63{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;gap:10px;position:relative;height:100%}._radioButtonContainer_3bp8g_2 ._inputContainer_3bp8g_63 label{text-align:left}._radioButtonContainer_3bp8g_2 ._inputContainer_3bp8g_63 label input{margin-right:5px}@media (width < 768px){._radioButtonContainer_3bp8g_2 ._inputContainer_3bp8g_63{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;flex:1}}._required_3bp8g_92:after{position:relative;top:-3px;left:1px;display:inline-block;content:"*"}._requiredWhite_3bp8g_100:after{position:relative;top:-3px;left:1px;display:inline-block;content:"*"}label,._radioInput_3bp8g_109{cursor:pointer}._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_pt7g1_2{position:fixed;top:0;right:0;height:100%;background-color:#fff;box-shadow:-2px 0 5px #0000001a;overflow-x:hidden;overflow-y:auto;transition:width .3s ease;z-index:1000;width:0}._open_pt7g1_16{border-left:1px solid #ddd}._content_pt7g1_20{position:relative;padding:20px;height:100%}._closeButton_pt7g1_26{position:absolute;top:28px;right:28px;font-size:24px;background:none;border:none;cursor:pointer;color:#333;transition:color .2s ease}._closeButton_pt7g1_26:hover{color:#000}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
import { jsxs as m, jsx as s, Fragment as Se } from "react/jsx-runtime";
|
|
3
3
|
import * as te from "react";
|
|
4
|
-
import B, { useState as S, useEffect as
|
|
4
|
+
import B, { useState as S, useEffect as V, useMemo as he, useLayoutEffect as yt, useRef as $e } from "react";
|
|
5
5
|
import e from "prop-types";
|
|
6
6
|
import { useTranslation as k, Trans as Ve } from "react-i18next";
|
|
7
7
|
import { motion as Ae } from "framer-motion";
|
|
8
8
|
import { create as _t } from "zustand";
|
|
9
|
-
import * as
|
|
9
|
+
import * as Ee from "d3";
|
|
10
10
|
import vt from "mapbox-gl";
|
|
11
11
|
import { useSelector as wt, useDispatch as xt } from "react-redux";
|
|
12
12
|
import kt, { Source as Nt, Layer as Bt, NavigationControl as St, Popup as Mt } from "react-map-gl/mapbox";
|
|
@@ -16,8 +16,8 @@ import Ft, { Source as Dt, Layer as Tt, NavigationControl as $t, Popup as Vt } f
|
|
|
16
16
|
import { createSlice as At } from "@reduxjs/toolkit";
|
|
17
17
|
import It from "@mui/material/Slider";
|
|
18
18
|
import { createTheme as Ot, Box as Rt } from "@mui/material";
|
|
19
|
-
import { ThemeProvider as
|
|
20
|
-
import { NavLink as
|
|
19
|
+
import { ThemeProvider as Pt } from "@emotion/react";
|
|
20
|
+
import { NavLink as Et } from "react-router-dom";
|
|
21
21
|
const qt = "_ambitSelector_mcunf_2", zt = "_header_mcunf_13", jt = "_nameDateContainer_mcunf_23", Zt = "_ambitName_mcunf_39", Ht = "_ambitDate_mcunf_53", Kt = "_buttonsContainer_mcunf_67", Ut = "_ambitListContainer_mcunf_76", Gt = "_newAmbitButtonContainer_mcunf_80", j = {
|
|
22
22
|
ambitSelector: qt,
|
|
23
23
|
header: zt,
|
|
@@ -27,12 +27,12 @@ const qt = "_ambitSelector_mcunf_2", zt = "_header_mcunf_13", jt = "_nameDateCon
|
|
|
27
27
|
buttonsContainer: Kt,
|
|
28
28
|
ambitListContainer: Ut,
|
|
29
29
|
newAmbitButtonContainer: Gt
|
|
30
|
-
}, Yt = "_ambitItem_1qa6u_2", Wt = "_ambitNameDate_1qa6u_16", Qt = "_ambitName_1qa6u_16",
|
|
30
|
+
}, Yt = "_ambitItem_1qa6u_2", Wt = "_ambitNameDate_1qa6u_16", Qt = "_ambitName_1qa6u_16", Xt = "_ambitDate_1qa6u_35", Jt = "_ambitButtons_1qa6u_38", ne = {
|
|
31
31
|
ambitItem: Yt,
|
|
32
32
|
ambitNameDate: Wt,
|
|
33
33
|
ambitName: Qt,
|
|
34
|
-
ambitDate:
|
|
35
|
-
ambitButtons:
|
|
34
|
+
ambitDate: Xt,
|
|
35
|
+
ambitButtons: Jt
|
|
36
36
|
}, e2 = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e", t2 = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", n2 = "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", i2 = "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", o2 = "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", s2 = "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", et = ({
|
|
37
37
|
ambit: n,
|
|
38
38
|
onClickCopy: d,
|
|
@@ -40,9 +40,9 @@ const qt = "_ambitSelector_mcunf_2", zt = "_header_mcunf_13", jt = "_nameDateCon
|
|
|
40
40
|
onClickFilters: i,
|
|
41
41
|
onClickAmbit: t,
|
|
42
42
|
isActive: r,
|
|
43
|
-
activeColor:
|
|
43
|
+
activeColor: l,
|
|
44
44
|
fontColor: a,
|
|
45
|
-
moreInfo:
|
|
45
|
+
moreInfo: c
|
|
46
46
|
}) => {
|
|
47
47
|
const { nom: u, created_at: h, id: g, isBeingProcessed: y } = n;
|
|
48
48
|
return /* @__PURE__ */ m(
|
|
@@ -60,7 +60,7 @@ const qt = "_ambitSelector_mcunf_2", zt = "_header_mcunf_13", jt = "_nameDateCon
|
|
|
60
60
|
src: r ? o2 : s2
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
/* @__PURE__ */ s("span", { style: { color: r ?
|
|
63
|
+
/* @__PURE__ */ s("span", { style: { color: r ? l : a }, children: u })
|
|
64
64
|
] }),
|
|
65
65
|
/* @__PURE__ */ s("div", { className: ne.ambitDate, children: h ? new Date(h).toLocaleDateString() : "" })
|
|
66
66
|
] }),
|
|
@@ -121,9 +121,9 @@ const qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
121
121
|
activeColor: i,
|
|
122
122
|
nameLabel: t,
|
|
123
123
|
dateLabel: r,
|
|
124
|
-
newAmbitLabel:
|
|
124
|
+
newAmbitLabel: l = "New field",
|
|
125
125
|
buttonContainerStyles: a = {},
|
|
126
|
-
containerStyles:
|
|
126
|
+
containerStyles: c = {},
|
|
127
127
|
onCLickNewAmbit: u = () => console.log("New ambit clicked"),
|
|
128
128
|
onClickCopy: h = (f) => console.log(`Copy ambit: ${f}`),
|
|
129
129
|
onCLickDelete: g = (f) => console.log(`Delete ambit: ${f}`),
|
|
@@ -131,7 +131,7 @@ const qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
131
131
|
onClickAmbit: C = (f) => console.log(`OnCLickAmbit: ${f}`)
|
|
132
132
|
}) => {
|
|
133
133
|
const { t: f } = k(), [_, p] = S(n);
|
|
134
|
-
|
|
134
|
+
V(() => {
|
|
135
135
|
n && p(n);
|
|
136
136
|
}, [n]);
|
|
137
137
|
const b = (v) => {
|
|
@@ -144,7 +144,7 @@ const qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
144
144
|
"div",
|
|
145
145
|
{
|
|
146
146
|
className: j.ambitSelector,
|
|
147
|
-
style: { color: o, ...
|
|
147
|
+
style: { color: o, ...c },
|
|
148
148
|
children: [
|
|
149
149
|
/* @__PURE__ */ m(
|
|
150
150
|
"div",
|
|
@@ -186,7 +186,7 @@ const qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
186
186
|
style: { ...a },
|
|
187
187
|
onClick: u,
|
|
188
188
|
borderColor: "grey",
|
|
189
|
-
children: f(
|
|
189
|
+
children: f(l)
|
|
190
190
|
}
|
|
191
191
|
) })
|
|
192
192
|
]
|
|
@@ -244,13 +244,13 @@ const _2 = ({
|
|
|
244
244
|
useTooltip: t = !1,
|
|
245
245
|
tooltipPosition: r = "top"
|
|
246
246
|
}) => {
|
|
247
|
-
const { t:
|
|
247
|
+
const { t: l } = k();
|
|
248
248
|
return /* @__PURE__ */ s(
|
|
249
249
|
"div",
|
|
250
250
|
{
|
|
251
251
|
className: `${Z.buttonsContainer} ${d === "vertical" && Z.vertical}
|
|
252
252
|
${d === "horizontal" && Z.horizontal}`,
|
|
253
|
-
children: n.map((a,
|
|
253
|
+
children: n.map((a, c) => {
|
|
254
254
|
const {
|
|
255
255
|
icon: u,
|
|
256
256
|
activeIcon: h,
|
|
@@ -258,9 +258,9 @@ const _2 = ({
|
|
|
258
258
|
name: y,
|
|
259
259
|
onClick: C
|
|
260
260
|
} = a, f = /* @__PURE__ */ m(Se, { children: [
|
|
261
|
-
o && i === "left" && /* @__PURE__ */ s("span", { className: Z.buttonName, children:
|
|
262
|
-
/* @__PURE__ */ s("img", { src: g ? h : u, alt:
|
|
263
|
-
o && i === "right" && /* @__PURE__ */ s("span", { className: Z.buttonName, children:
|
|
261
|
+
o && i === "left" && /* @__PURE__ */ s("span", { className: Z.buttonName, children: l(y) }),
|
|
262
|
+
/* @__PURE__ */ s("img", { src: g ? h : u, alt: l(y) }),
|
|
263
|
+
o && i === "right" && /* @__PURE__ */ s("span", { className: Z.buttonName, children: l(y) })
|
|
264
264
|
] });
|
|
265
265
|
return /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
266
266
|
/* @__PURE__ */ s(
|
|
@@ -273,7 +273,7 @@ const _2 = ({
|
|
|
273
273
|
}
|
|
274
274
|
),
|
|
275
275
|
t && /* @__PURE__ */ s(Y, { text: y, position: r })
|
|
276
|
-
] },
|
|
276
|
+
] }, c);
|
|
277
277
|
})
|
|
278
278
|
}
|
|
279
279
|
);
|
|
@@ -306,10 +306,10 @@ const v2 = "_indicatorsCategory_1cu33_2", w2 = "_title_1cu33_5", be = {
|
|
|
306
306
|
activeColor: t = "#F8A925",
|
|
307
307
|
title: r = "Title",
|
|
308
308
|
//Change the height only if the title is more than one line or you change title fontSize, otherwise should be 53px
|
|
309
|
-
height:
|
|
309
|
+
height: l = 53,
|
|
310
310
|
//Adjust height if you change fontSize
|
|
311
311
|
titleFontStyles: a,
|
|
312
|
-
showBottomBar:
|
|
312
|
+
showBottomBar: c = !0,
|
|
313
313
|
titleMarginChildren: u = 25
|
|
314
314
|
}) => {
|
|
315
315
|
const { t: h } = k();
|
|
@@ -317,12 +317,12 @@ const v2 = "_indicatorsCategory_1cu33_2", w2 = "_title_1cu33_5", be = {
|
|
|
317
317
|
Ae.div,
|
|
318
318
|
{
|
|
319
319
|
className: be.indicatorsCategory,
|
|
320
|
-
initial: { height: `${
|
|
321
|
-
animate: { height: n ? "auto" : `${
|
|
320
|
+
initial: { height: `${l}px` },
|
|
321
|
+
animate: { height: n ? "auto" : `${l}px` },
|
|
322
322
|
transition: { duration: 0.4 },
|
|
323
323
|
style: {
|
|
324
324
|
backgroundColor: "white",
|
|
325
|
-
borderBottom: n &&
|
|
325
|
+
borderBottom: n && c ? `1px solid ${t}` : "0px",
|
|
326
326
|
marginBottom: n ? "20px" : "0px"
|
|
327
327
|
},
|
|
328
328
|
children: [
|
|
@@ -368,7 +368,7 @@ const ni = () => /* @__PURE__ */ s("div", { children: "EditAmbit" }), x2 = "data
|
|
|
368
368
|
fontColor: "#605B56",
|
|
369
369
|
inputsColor: "#605B56"
|
|
370
370
|
})), tt = ({ title: n, onClick: d, isOpen: o = !0, textColor: i = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
|
|
371
|
-
const { t:
|
|
371
|
+
const { t: l } = k(), { tematicalFiltersSelected: a } = D((u) => u), c = (u) => {
|
|
372
372
|
D.setState((h) => ({
|
|
373
373
|
tematicalFiltersSelected: h.tematicalFiltersSelected.filter(
|
|
374
374
|
(g) => g.code !== u
|
|
@@ -380,11 +380,11 @@ const ni = () => /* @__PURE__ */ s("div", { children: "EditAmbit" }), x2 = "data
|
|
|
380
380
|
{
|
|
381
381
|
isOpen: o,
|
|
382
382
|
onClick: d,
|
|
383
|
-
title: n ?
|
|
383
|
+
title: n ? l(n) : "Applied Filters",
|
|
384
384
|
activeColor: r,
|
|
385
385
|
children: /* @__PURE__ */ s("div", { className: ze.AppliedFiltersContainer, children: a == null ? void 0 : a.map((u, h) => /* @__PURE__ */ m("div", { className: ze.AppliedFilterContent, style: { color: i, background: t }, children: [
|
|
386
|
-
|
|
387
|
-
/* @__PURE__ */ s("img", { src: x2, alt: "CloseIcon", onClick: () =>
|
|
386
|
+
l(u.name),
|
|
387
|
+
/* @__PURE__ */ s("img", { src: x2, alt: "CloseIcon", onClick: () => c(u.code), style: { cursor: "pointer" } })
|
|
388
388
|
] }, h)) })
|
|
389
389
|
}
|
|
390
390
|
);
|
|
@@ -404,13 +404,13 @@ tt.propTypes = {
|
|
|
404
404
|
activeColor: e.string
|
|
405
405
|
};
|
|
406
406
|
const nt = ({ title: n, onClick: d, isOpen: o = !0, textColor: i = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
|
|
407
|
-
const { t:
|
|
407
|
+
const { t: l } = k(), { tematicalFiltersSelected: a } = D((c) => c);
|
|
408
408
|
return /* @__PURE__ */ s(
|
|
409
409
|
W,
|
|
410
410
|
{
|
|
411
411
|
isOpen: o,
|
|
412
412
|
onClick: d,
|
|
413
|
-
title: n ?
|
|
413
|
+
title: n ? l(n) : "Geographical Filters",
|
|
414
414
|
activeColor: r,
|
|
415
415
|
children: "A"
|
|
416
416
|
}
|
|
@@ -433,7 +433,7 @@ const B2 = "_checkboxContainer_zld97_2", S2 = {
|
|
|
433
433
|
indicator: i,
|
|
434
434
|
value: t
|
|
435
435
|
}) => {
|
|
436
|
-
const { t: r } = k(), { title:
|
|
436
|
+
const { t: r } = k(), { title: l } = i || {}, { fontColor: a, inputsColor: c } = D((u) => u);
|
|
437
437
|
return /* @__PURE__ */ m(
|
|
438
438
|
"div",
|
|
439
439
|
{
|
|
@@ -450,12 +450,12 @@ const B2 = "_checkboxContainer_zld97_2", S2 = {
|
|
|
450
450
|
value: t,
|
|
451
451
|
readOnly: !0,
|
|
452
452
|
style: {
|
|
453
|
-
border: `1.5px solid ${t ?
|
|
454
|
-
backgroundColor: t ?
|
|
453
|
+
border: `1.5px solid ${t ? c : a}`,
|
|
454
|
+
backgroundColor: t ? c : "white"
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
457
|
),
|
|
458
|
-
/* @__PURE__ */ s("span", { className: "checkmark", children: r(
|
|
458
|
+
/* @__PURE__ */ s("span", { className: "checkmark", children: r(l) })
|
|
459
459
|
]
|
|
460
460
|
}
|
|
461
461
|
);
|
|
@@ -517,18 +517,18 @@ let Fe = function(n) {
|
|
|
517
517
|
t.setState({ index: -1 }, t.onEnd(t.getKeyDownEventMap()));
|
|
518
518
|
}, t.onMouseMove = (a) => {
|
|
519
519
|
t.setState({ pending: !0 });
|
|
520
|
-
const
|
|
520
|
+
const c = t.getMousePosition(a), u = t.getDiffPosition(c[0]), h = t.getValueFromPosition(u);
|
|
521
521
|
t.move(h);
|
|
522
522
|
}, t.onTouchMove = (a) => {
|
|
523
523
|
if (a.touches.length > 1) return;
|
|
524
524
|
t.setState({ pending: !0 });
|
|
525
|
-
const
|
|
525
|
+
const c = t.getTouchPosition(a);
|
|
526
526
|
if (t.isScrolling === void 0) {
|
|
527
|
-
const g =
|
|
527
|
+
const g = c[0] - t.startPosition[0], y = c[1] - t.startPosition[1];
|
|
528
528
|
t.isScrolling = Math.abs(y) > Math.abs(g);
|
|
529
529
|
}
|
|
530
530
|
if (t.isScrolling) return void t.setState({ index: -1 });
|
|
531
|
-
const u = t.getDiffPosition(
|
|
531
|
+
const u = t.getDiffPosition(c[0]), h = t.getValueFromPosition(u);
|
|
532
532
|
t.move(h);
|
|
533
533
|
}, t.onKeyDown = (a) => {
|
|
534
534
|
if (!(a.ctrlKey || a.shiftKey || a.altKey || a.metaKey)) switch (t.setState({ pending: !0 }), a.key) {
|
|
@@ -559,51 +559,51 @@ let Fe = function(n) {
|
|
|
559
559
|
}, t.onSliderMouseDown = (a) => {
|
|
560
560
|
if (!t.props.disabled && a.button !== 2) {
|
|
561
561
|
if (t.setState({ pending: !0 }), !t.props.snapDragDisabled) {
|
|
562
|
-
const
|
|
563
|
-
t.forceValueFromPosition(
|
|
564
|
-
t.start(u,
|
|
562
|
+
const c = t.getMousePosition(a);
|
|
563
|
+
t.forceValueFromPosition(c[0], (u) => {
|
|
564
|
+
t.start(u, c[0]), de(t.getMouseEventMap());
|
|
565
565
|
});
|
|
566
566
|
}
|
|
567
567
|
ye(a);
|
|
568
568
|
}
|
|
569
569
|
}, t.onSliderClick = (a) => {
|
|
570
570
|
if (!t.props.disabled && t.props.onSliderClick && !t.hasMoved) {
|
|
571
|
-
const
|
|
571
|
+
const c = t.getMousePosition(a), u = H(t.calcValue(t.calcOffsetFromPosition(c[0])), t.props);
|
|
572
572
|
t.props.onSliderClick(u);
|
|
573
573
|
}
|
|
574
|
-
}, t.createOnKeyDown = (a) => (
|
|
575
|
-
t.props.disabled || (t.start(a), de(t.getKeyDownEventMap()), ye(
|
|
576
|
-
}, t.createOnMouseDown = (a) => (
|
|
577
|
-
if (t.props.disabled ||
|
|
574
|
+
}, t.createOnKeyDown = (a) => (c) => {
|
|
575
|
+
t.props.disabled || (t.start(a), de(t.getKeyDownEventMap()), ye(c));
|
|
576
|
+
}, t.createOnMouseDown = (a) => (c) => {
|
|
577
|
+
if (t.props.disabled || c.button === 2) return;
|
|
578
578
|
t.setState({ pending: !0 });
|
|
579
|
-
const u = t.getMousePosition(
|
|
580
|
-
t.start(a, u[0]), de(t.getMouseEventMap()), ye(
|
|
581
|
-
}, t.createOnTouchStart = (a) => (
|
|
582
|
-
if (t.props.disabled ||
|
|
579
|
+
const u = t.getMousePosition(c);
|
|
580
|
+
t.start(a, u[0]), de(t.getMouseEventMap()), ye(c);
|
|
581
|
+
}, t.createOnTouchStart = (a) => (c) => {
|
|
582
|
+
if (t.props.disabled || c.touches.length > 1) return;
|
|
583
583
|
t.setState({ pending: !0 });
|
|
584
|
-
const u = t.getTouchPosition(
|
|
584
|
+
const u = t.getTouchPosition(c);
|
|
585
585
|
t.startPosition = u, t.isScrolling = void 0, t.start(a, u[0]), de(t.getTouchEventMap()), function(h) {
|
|
586
586
|
h.stopPropagation && h.stopPropagation();
|
|
587
|
-
}(
|
|
587
|
+
}(c);
|
|
588
588
|
}, t.handleResize = () => {
|
|
589
589
|
const a = window.setTimeout(() => {
|
|
590
590
|
t.pendingResizeTimeouts.shift(), t.resize();
|
|
591
591
|
}, 0);
|
|
592
592
|
t.pendingResizeTimeouts.push(a);
|
|
593
|
-
}, t.renderThumb = (a,
|
|
594
|
-
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" +
|
|
595
|
-
t["thumb" +
|
|
596
|
-
}, key: t.props.thumbClassName + "-" +
|
|
593
|
+
}, t.renderThumb = (a, c) => {
|
|
594
|
+
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), h = { ref: (y) => {
|
|
595
|
+
t["thumb" + c] = y;
|
|
596
|
+
}, key: t.props.thumbClassName + "-" + c, className: u, style: a, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, g = { index: c, value: ce(t.state.value), valueNow: t.state.value[c] };
|
|
597
597
|
return t.props.ariaValuetext && (h["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(g)), t.props.renderThumb(h, g);
|
|
598
|
-
}, t.renderTrack = (a,
|
|
599
|
-
const h = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(
|
|
598
|
+
}, t.renderTrack = (a, c, u) => {
|
|
599
|
+
const h = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(c, t.state.upperBound - u) }, g = { index: a, value: ce(t.state.value) };
|
|
600
600
|
return t.props.renderTrack(h, g);
|
|
601
601
|
};
|
|
602
602
|
let r = _e(i.value);
|
|
603
603
|
r.length || (r = _e(i.defaultValue)), t.pendingResizeTimeouts = [];
|
|
604
|
-
const
|
|
605
|
-
for (let a = 0; a < r.length; a += 1) r[a] = H(r[a], i),
|
|
606
|
-
return t.resizeObserver = null, t.resizeElementRef = B.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: r, zIndices:
|
|
604
|
+
const l = [];
|
|
605
|
+
for (let a = 0; a < r.length; a += 1) r[a] = H(r[a], i), l.push(a);
|
|
606
|
+
return t.resizeObserver = null, t.resizeElementRef = B.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: r, zIndices: l }, t;
|
|
607
607
|
}
|
|
608
608
|
M2(d, n);
|
|
609
609
|
var o = d.prototype;
|
|
@@ -611,7 +611,7 @@ let Fe = function(n) {
|
|
|
611
611
|
typeof window < "u" && (this.resizeObserver = new ResizeObserver(this.handleResize), this.resizeObserver.observe(this.resizeElementRef.current), this.resize());
|
|
612
612
|
}, d.getDerivedStateFromProps = function(i, t) {
|
|
613
613
|
const r = _e(i.value);
|
|
614
|
-
return r.length ? t.pending ? null : { value: r.map((
|
|
614
|
+
return r.length ? t.pending ? null : { value: r.map((l) => H(l, i)) } : null;
|
|
615
615
|
}, o.componentDidUpdate = function() {
|
|
616
616
|
this.state.upperBound === 0 && this.resize();
|
|
617
617
|
}, o.componentWillUnmount = function() {
|
|
@@ -626,10 +626,10 @@ let Fe = function(n) {
|
|
|
626
626
|
return ce(this.state.value);
|
|
627
627
|
}, o.getClosestIndex = function(i) {
|
|
628
628
|
let t = Number.MAX_VALUE, r = -1;
|
|
629
|
-
const { value:
|
|
630
|
-
for (let
|
|
631
|
-
const u = this.calcOffset(c
|
|
632
|
-
h < t && (t = h, r =
|
|
629
|
+
const { value: l } = this.state, a = l.length;
|
|
630
|
+
for (let c = 0; c < a; c += 1) {
|
|
631
|
+
const u = this.calcOffset(l[c]), h = Math.abs(i - u);
|
|
632
|
+
h < t && (t = h, r = c);
|
|
633
633
|
}
|
|
634
634
|
return r;
|
|
635
635
|
}, o.getMousePosition = function(i) {
|
|
@@ -652,7 +652,7 @@ let Fe = function(n) {
|
|
|
652
652
|
}, o.resize = function() {
|
|
653
653
|
const { slider: i, thumb0: t } = this;
|
|
654
654
|
if (!i || !t) return;
|
|
655
|
-
const r = this.sizeKey(),
|
|
655
|
+
const r = this.sizeKey(), l = i.getBoundingClientRect(), a = i[r], c = l[this.posMaxKey()], u = l[this.posMinKey()], h = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], g = a - h, y = Math.abs(c - u);
|
|
656
656
|
this.state.upperBound === g && this.state.sliderLength === y && this.state.thumbSize === h || this.setState({ upperBound: g, sliderLength: y, thumbSize: h });
|
|
657
657
|
}, o.calcOffset = function(i) {
|
|
658
658
|
const t = this.props.max - this.props.min;
|
|
@@ -660,15 +660,15 @@ let Fe = function(n) {
|
|
|
660
660
|
}, o.calcValue = function(i) {
|
|
661
661
|
return i / this.state.upperBound * (this.props.max - this.props.min) + this.props.min;
|
|
662
662
|
}, o.calcOffsetFromPosition = function(i) {
|
|
663
|
-
const { slider: t } = this, r = t.getBoundingClientRect(),
|
|
664
|
-
let
|
|
665
|
-
return this.props.invert && (
|
|
663
|
+
const { slider: t } = this, r = t.getBoundingClientRect(), l = r[this.posMaxKey()], a = r[this.posMinKey()];
|
|
664
|
+
let c = i - (window["page" + this.axisKey() + "Offset"] + (this.props.invert ? l : a));
|
|
665
|
+
return this.props.invert && (c = this.state.sliderLength - c), c -= this.state.thumbSize / 2, c;
|
|
666
666
|
}, o.forceValueFromPosition = function(i, t) {
|
|
667
|
-
const r = this.calcOffsetFromPosition(i),
|
|
668
|
-
l
|
|
669
|
-
for (let u = 0; u <
|
|
670
|
-
this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value:
|
|
671
|
-
t(
|
|
667
|
+
const r = this.calcOffsetFromPosition(i), l = this.getClosestIndex(r), a = H(this.calcValue(r), this.props), c = this.state.value.slice();
|
|
668
|
+
c[l] = a;
|
|
669
|
+
for (let u = 0; u < c.length - 1; u += 1) if (c[u + 1] - c[u] < this.props.minDistance) return;
|
|
670
|
+
this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value: c }, () => {
|
|
671
|
+
t(l), this.fireChangeEvent("onChange");
|
|
672
672
|
});
|
|
673
673
|
}, o.clearPendingResizeTimeouts = function() {
|
|
674
674
|
do {
|
|
@@ -678,8 +678,8 @@ let Fe = function(n) {
|
|
|
678
678
|
}, o.start = function(i, t) {
|
|
679
679
|
const r = this["thumb" + i];
|
|
680
680
|
r && r.focus();
|
|
681
|
-
const { zIndices:
|
|
682
|
-
|
|
681
|
+
const { zIndices: l } = this.state;
|
|
682
|
+
l.splice(l.indexOf(i), 1), l.push(i), this.setState((a) => ({ startValue: a.value[i], startPosition: t !== void 0 ? t : a.startPosition, index: i, zIndices: l }));
|
|
683
683
|
}, o.moveUpByStep = function(i) {
|
|
684
684
|
i === void 0 && (i = this.props.step);
|
|
685
685
|
const t = this.state.value[this.state.index], r = H(this.props.invert && this.props.orientation === "horizontal" ? t - i : t + i, this.props);
|
|
@@ -689,36 +689,36 @@ let Fe = function(n) {
|
|
|
689
689
|
const t = this.state.value[this.state.index], r = H(this.props.invert && this.props.orientation === "horizontal" ? t + i : t - i, this.props);
|
|
690
690
|
this.move(Math.max(r, this.props.min));
|
|
691
691
|
}, o.move = function(i) {
|
|
692
|
-
const t = this.state.value.slice(), { index: r } = this.state, { length:
|
|
692
|
+
const t = this.state.value.slice(), { index: r } = this.state, { length: l } = t, a = t[r];
|
|
693
693
|
if (i === a) return;
|
|
694
694
|
this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
|
|
695
|
-
const { pearling:
|
|
696
|
-
if (!
|
|
695
|
+
const { pearling: c, max: u, min: h, minDistance: g } = this.props;
|
|
696
|
+
if (!c) {
|
|
697
697
|
if (r > 0) {
|
|
698
698
|
const y = t[r - 1];
|
|
699
699
|
i < y + g && (i = y + g);
|
|
700
700
|
}
|
|
701
|
-
if (r <
|
|
701
|
+
if (r < l - 1) {
|
|
702
702
|
const y = t[r + 1];
|
|
703
703
|
i > y - g && (i = y - g);
|
|
704
704
|
}
|
|
705
705
|
}
|
|
706
|
-
t[r] = i,
|
|
706
|
+
t[r] = i, c && l > 1 && (i > a ? (this.pushSucceeding(t, g, r), function(y, C, f, _) {
|
|
707
707
|
for (let p = 0; p < y; p += 1) {
|
|
708
708
|
const b = _ - p * f;
|
|
709
709
|
C[y - 1 - p] > b && (C[y - 1 - p] = b);
|
|
710
710
|
}
|
|
711
|
-
}(
|
|
711
|
+
}(l, t, g, u)) : i < a && (this.pushPreceding(t, g, r), function(y, C, f, _) {
|
|
712
712
|
for (let p = 0; p < y; p += 1) {
|
|
713
713
|
const b = _ + p * f;
|
|
714
714
|
C[p] < b && (C[p] = b);
|
|
715
715
|
}
|
|
716
|
-
}(
|
|
716
|
+
}(l, t, g, h))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
|
|
717
717
|
}, o.pushSucceeding = function(i, t, r) {
|
|
718
|
-
let
|
|
719
|
-
for (
|
|
718
|
+
let l, a;
|
|
719
|
+
for (l = r, a = i[l] + t; i[l + 1] !== null && a > i[l + 1]; l += 1, a = i[l] + t) i[l + 1] = Le(a, this.props);
|
|
720
720
|
}, o.pushPreceding = function(i, t, r) {
|
|
721
|
-
for (let
|
|
721
|
+
for (let l = r, a = i[l] - t; i[l - 1] !== null && a < i[l - 1]; l -= 1, a = i[l] - t) i[l - 1] = Le(a, this.props);
|
|
722
722
|
}, o.axisKey = function() {
|
|
723
723
|
return this.props.orientation === "vertical" ? "Y" : "X";
|
|
724
724
|
}, o.orthogonalAxisKey = function() {
|
|
@@ -743,28 +743,28 @@ let Fe = function(n) {
|
|
|
743
743
|
}, o.renderThumbs = function(i) {
|
|
744
744
|
const { length: t } = i, r = [];
|
|
745
745
|
for (let a = 0; a < t; a += 1) r[a] = this.buildThumbStyle(i[a], a);
|
|
746
|
-
const
|
|
747
|
-
for (let a = 0; a < t; a += 1)
|
|
748
|
-
return
|
|
746
|
+
const l = [];
|
|
747
|
+
for (let a = 0; a < t; a += 1) l[a] = this.renderThumb(r[a], a);
|
|
748
|
+
return l;
|
|
749
749
|
}, o.renderTracks = function(i) {
|
|
750
750
|
const t = [], r = i.length - 1;
|
|
751
751
|
t.push(this.renderTrack(0, 0, i[0]));
|
|
752
|
-
for (let
|
|
752
|
+
for (let l = 0; l < r; l += 1) t.push(this.renderTrack(l + 1, i[l], i[l + 1]));
|
|
753
753
|
return t.push(this.renderTrack(r + 1, i[r], this.state.upperBound)), t;
|
|
754
754
|
}, o.renderMarks = function() {
|
|
755
755
|
let { marks: i } = this.props;
|
|
756
756
|
const t = this.props.max - this.props.min + 1;
|
|
757
|
-
return typeof i == "boolean" ? i = Array.from({ length: t }).map((r,
|
|
758
|
-
const
|
|
757
|
+
return typeof i == "boolean" ? i = Array.from({ length: t }).map((r, l) => l) : typeof i == "number" && (i = Array.from({ length: t }).map((r, l) => l).filter((r) => r % i == 0)), i.map(parseFloat).sort((r, l) => r - l).map((r) => {
|
|
758
|
+
const l = this.calcOffset(r), a = { key: r, className: this.props.markClassName, style: this.buildMarkStyle(l) };
|
|
759
759
|
return this.props.renderMark(a);
|
|
760
760
|
});
|
|
761
761
|
}, o.render = function() {
|
|
762
762
|
const i = [], { value: t } = this.state, r = t.length;
|
|
763
763
|
for (let u = 0; u < r; u += 1) i[u] = this.calcOffset(t[u], u);
|
|
764
|
-
const
|
|
764
|
+
const l = this.props.withTracks ? this.renderTracks(i) : null, a = this.renderThumbs(i), c = this.props.marks ? this.renderMarks() : null;
|
|
765
765
|
return B.createElement("div", { ref: (u) => {
|
|
766
766
|
this.slider = u, this.resizeElementRef.current = u;
|
|
767
|
-
}, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick },
|
|
767
|
+
}, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, l, a, c);
|
|
768
768
|
}, d;
|
|
769
769
|
}(B.Component);
|
|
770
770
|
Fe.displayName = "ReactSlider", Fe.defaultProps = { min: 0, max: 100, step: 1, pageFn: (n) => 10 * n, minDistance: 0, defaultValue: 0, orientation: "horizontal", className: "slider", thumbClassName: "thumb", thumbActiveClassName: "active", trackClassName: "track", markClassName: "mark", withTracks: !0, pearling: !1, disabled: !1, snapDragDisabled: !1, invert: !1, marks: [], renderThumb: (n) => B.createElement("div", n), renderTrack: (n) => B.createElement("div", n), renderMark: (n) => B.createElement("span", n) };
|
|
@@ -783,21 +783,21 @@ const F2 = "_container_15vgv_2", D2 = "_unitLabel_15vgv_9", T2 = "_slider_15vgv_
|
|
|
783
783
|
onChange: i,
|
|
784
784
|
width: t = 300,
|
|
785
785
|
unit: r,
|
|
786
|
-
fontColor:
|
|
786
|
+
fontColor: l = "#605B56",
|
|
787
787
|
defaultValue: a
|
|
788
788
|
}) => {
|
|
789
|
-
const { t:
|
|
789
|
+
const { t: c } = k(), [u, h] = S([n, d]), g = (y) => {
|
|
790
790
|
h(y), i == null || i({ min: y[0], max: y[1] });
|
|
791
791
|
};
|
|
792
|
-
return
|
|
792
|
+
return V(() => {
|
|
793
793
|
a || h([n, d]);
|
|
794
794
|
}, [a]), /* @__PURE__ */ m(
|
|
795
795
|
"div",
|
|
796
796
|
{
|
|
797
797
|
className: Q.container,
|
|
798
|
-
style: { width: `${t}px`, color: `${
|
|
798
|
+
style: { width: `${t}px`, color: `${l}` },
|
|
799
799
|
children: [
|
|
800
|
-
/* @__PURE__ */ s("div", { className: Q.unitLabel, children: /* @__PURE__ */ s("span", { children:
|
|
800
|
+
/* @__PURE__ */ s("div", { className: Q.unitLabel, children: /* @__PURE__ */ s("span", { children: c(r) }) }),
|
|
801
801
|
/* @__PURE__ */ s(
|
|
802
802
|
L2,
|
|
803
803
|
{
|
|
@@ -834,11 +834,11 @@ ot.propTypes = {
|
|
|
834
834
|
fontColor: e.string,
|
|
835
835
|
value: e.arrayOf(e.number)
|
|
836
836
|
};
|
|
837
|
-
const I2 = "_tematicalFiltersInputContainer_1vm1r_2", O2 = "_inputTypeContainer_1vm1r_2", R2 = "_checkboxContainer_1vm1r_28",
|
|
837
|
+
const I2 = "_tematicalFiltersInputContainer_1vm1r_2", O2 = "_inputTypeContainer_1vm1r_2", R2 = "_checkboxContainer_1vm1r_28", P2 = "_absoluteSliderContainer_1vm1r_37", ue = {
|
|
838
838
|
tematicalFiltersInputContainer: I2,
|
|
839
839
|
inputTypeContainer: O2,
|
|
840
840
|
checkboxContainer: R2,
|
|
841
|
-
absoluteSliderContainer:
|
|
841
|
+
absoluteSliderContainer: P2
|
|
842
842
|
}, Ie = ({
|
|
843
843
|
indicator: n,
|
|
844
844
|
//onChangeBothType
|
|
@@ -847,9 +847,9 @@ const I2 = "_tematicalFiltersInputContainer_1vm1r_2", O2 = "_inputTypeContainer_
|
|
|
847
847
|
const [o, i] = S(), {
|
|
848
848
|
type: t,
|
|
849
849
|
name: r,
|
|
850
|
-
values:
|
|
850
|
+
values: l,
|
|
851
851
|
minValue: a,
|
|
852
|
-
maxValue:
|
|
852
|
+
maxValue: c,
|
|
853
853
|
unit: u,
|
|
854
854
|
step: h
|
|
855
855
|
} = n || {}, g = he(
|
|
@@ -866,60 +866,60 @@ const I2 = "_tematicalFiltersInputContainer_1vm1r_2", O2 = "_inputTypeContainer_
|
|
|
866
866
|
} = D((x) => x), b = (x) => {
|
|
867
867
|
if (x) {
|
|
868
868
|
const { min: w, max: N, valueClicked: L, allValues: F } = x || {}, { code: z, type: ae } = n || {}, le = y ? "abs" : g ? "cat" : "both";
|
|
869
|
-
let
|
|
870
|
-
ae == "both" && (
|
|
871
|
-
let
|
|
872
|
-
(
|
|
869
|
+
let R = z[0];
|
|
870
|
+
ae == "both" && (R = le == "cat" ? z[1] : z[0]), le == "cat" ? D.setState((P) => {
|
|
871
|
+
let E = P.tematicalFiltersSelected.find(
|
|
872
|
+
(T) => T.code === R
|
|
873
873
|
);
|
|
874
|
-
if (
|
|
875
|
-
let
|
|
876
|
-
return
|
|
874
|
+
if (E) {
|
|
875
|
+
let T = [E.values];
|
|
876
|
+
return E.values.includes(L) ? T = E.values.filter(
|
|
877
877
|
(I) => I !== L
|
|
878
|
-
) :
|
|
879
|
-
tematicalFiltersSelected:
|
|
880
|
-
(I) => I.code !==
|
|
878
|
+
) : T = [...E.values, L], T.length == F.length ? {
|
|
879
|
+
tematicalFiltersSelected: P.tematicalFiltersSelected.filter(
|
|
880
|
+
(I) => I.code !== R
|
|
881
881
|
)
|
|
882
882
|
} : {
|
|
883
|
-
tematicalFiltersSelected:
|
|
884
|
-
(I) => I.code ===
|
|
883
|
+
tematicalFiltersSelected: P.tematicalFiltersSelected.map(
|
|
884
|
+
(I) => I.code === R ? { ...I, values: T } : I
|
|
885
885
|
)
|
|
886
886
|
};
|
|
887
887
|
} else {
|
|
888
|
-
let
|
|
888
|
+
let T = F.map((I, bt) => bt);
|
|
889
889
|
return {
|
|
890
890
|
tematicalFiltersSelected: [
|
|
891
891
|
...C,
|
|
892
892
|
{
|
|
893
893
|
type: "cat",
|
|
894
|
-
code:
|
|
895
|
-
values:
|
|
894
|
+
code: R,
|
|
895
|
+
values: T.filter((I) => I !== L),
|
|
896
896
|
name: n.name
|
|
897
897
|
}
|
|
898
898
|
]
|
|
899
899
|
};
|
|
900
900
|
}
|
|
901
|
-
}) : le == "abs" && D.setState((
|
|
902
|
-
let
|
|
903
|
-
(
|
|
901
|
+
}) : le == "abs" && D.setState((P) => {
|
|
902
|
+
let E = P.tematicalFiltersSelected.find(
|
|
903
|
+
(T) => T.code === R
|
|
904
904
|
);
|
|
905
905
|
if (w == n.minValue && N == n.maxValue)
|
|
906
906
|
return {
|
|
907
|
-
tematicalFiltersSelected:
|
|
908
|
-
(
|
|
907
|
+
tematicalFiltersSelected: P.tematicalFiltersSelected.filter(
|
|
908
|
+
(T) => T.code !== R
|
|
909
909
|
)
|
|
910
910
|
};
|
|
911
|
-
if (
|
|
912
|
-
let
|
|
913
|
-
return
|
|
914
|
-
tematicalFiltersSelected:
|
|
915
|
-
(I) => I.code ===
|
|
911
|
+
if (E) {
|
|
912
|
+
let T = { ...E };
|
|
913
|
+
return T.min = w, T.max = N, {
|
|
914
|
+
tematicalFiltersSelected: P.tematicalFiltersSelected.map(
|
|
915
|
+
(I) => I.code === R ? T : I
|
|
916
916
|
)
|
|
917
917
|
};
|
|
918
918
|
} else
|
|
919
919
|
return {
|
|
920
920
|
tematicalFiltersSelected: [
|
|
921
921
|
...C,
|
|
922
|
-
{ type: "abs", code:
|
|
922
|
+
{ type: "abs", code: R, min: w, max: N, name: n.name }
|
|
923
923
|
]
|
|
924
924
|
};
|
|
925
925
|
});
|
|
@@ -994,12 +994,12 @@ const I2 = "_tematicalFiltersInputContainer_1vm1r_2", O2 = "_inputTypeContainer_
|
|
|
994
994
|
]
|
|
995
995
|
}
|
|
996
996
|
),
|
|
997
|
-
g && /* @__PURE__ */ s("div", { className: ue.checkboxContainer, children:
|
|
997
|
+
g && /* @__PURE__ */ s("div", { className: ue.checkboxContainer, children: l.map((x, w) => {
|
|
998
998
|
var N;
|
|
999
999
|
return /* @__PURE__ */ s(
|
|
1000
1000
|
it,
|
|
1001
1001
|
{
|
|
1002
|
-
onClick: () => b({ valueClicked: w, allValues:
|
|
1002
|
+
onClick: () => b({ valueClicked: w, allValues: l }),
|
|
1003
1003
|
indicator: x,
|
|
1004
1004
|
value: ((N = v[n.code[t == "both" ? 1 : 0]]) == null ? void 0 : N.has(w)) || !v[n.code[t == "both" ? 1 : 0]]
|
|
1005
1005
|
},
|
|
@@ -1011,7 +1011,7 @@ const I2 = "_tematicalFiltersInputContainer_1vm1r_2", O2 = "_inputTypeContainer_
|
|
|
1011
1011
|
{
|
|
1012
1012
|
onChange: b,
|
|
1013
1013
|
min: a,
|
|
1014
|
-
max:
|
|
1014
|
+
max: c,
|
|
1015
1015
|
unit: u,
|
|
1016
1016
|
defaultValue: v[n.code[0]] ? v[n.code[0]] : "",
|
|
1017
1017
|
step: h
|
|
@@ -1042,15 +1042,15 @@ const st = ({
|
|
|
1042
1042
|
activeColor: o
|
|
1043
1043
|
//onChangeBothType,
|
|
1044
1044
|
}) => {
|
|
1045
|
-
const { activeSubcategory: i } = D((
|
|
1045
|
+
const { activeSubcategory: i } = D((l) => l), { name: t, indicators: r } = n || {};
|
|
1046
1046
|
return /* @__PURE__ */ s(
|
|
1047
1047
|
W,
|
|
1048
1048
|
{
|
|
1049
1049
|
title: t,
|
|
1050
1050
|
isOpen: i == `id${t}`,
|
|
1051
1051
|
onClick: () => {
|
|
1052
|
-
D.setState((
|
|
1053
|
-
activeSubcategory:
|
|
1052
|
+
D.setState((l) => ({
|
|
1053
|
+
activeSubcategory: l.activeSubcategory === `id${t}` ? "" : `id${t}`
|
|
1054
1054
|
}));
|
|
1055
1055
|
},
|
|
1056
1056
|
titleFontStyles: { fontSize: 16, fontWeight: 400 },
|
|
@@ -1059,10 +1059,10 @@ const st = ({
|
|
|
1059
1059
|
height: 48,
|
|
1060
1060
|
color: d,
|
|
1061
1061
|
activeColor: o,
|
|
1062
|
-
children: r == null ? void 0 : r.map((
|
|
1062
|
+
children: r == null ? void 0 : r.map((l, a) => /* @__PURE__ */ s(
|
|
1063
1063
|
Ie,
|
|
1064
1064
|
{
|
|
1065
|
-
indicator:
|
|
1065
|
+
indicator: l,
|
|
1066
1066
|
fontColor: d,
|
|
1067
1067
|
activeColor: o
|
|
1068
1068
|
},
|
|
@@ -1089,7 +1089,7 @@ const rt = ({
|
|
|
1089
1089
|
// onChangeBothType,
|
|
1090
1090
|
activeColor: d
|
|
1091
1091
|
}) => {
|
|
1092
|
-
const { name: o, subcategories: i, indicators: t } = n || {}, { activeCategory: r, fontColor:
|
|
1092
|
+
const { name: o, subcategories: i, indicators: t } = n || {}, { activeCategory: r, fontColor: l } = D((a) => a);
|
|
1093
1093
|
return n && /* @__PURE__ */ s(
|
|
1094
1094
|
W,
|
|
1095
1095
|
{
|
|
@@ -1102,24 +1102,24 @@ const rt = ({
|
|
|
1102
1102
|
isOpen: r === `id${o}`,
|
|
1103
1103
|
titleFontStyles: { fontSize: 18, fontWeight: "bold" },
|
|
1104
1104
|
showBottomBar: !1,
|
|
1105
|
-
color:
|
|
1105
|
+
color: l,
|
|
1106
1106
|
activeColor: d,
|
|
1107
|
-
children: i ? i.map((a,
|
|
1107
|
+
children: i ? i.map((a, c) => /* @__PURE__ */ s(
|
|
1108
1108
|
st,
|
|
1109
1109
|
{
|
|
1110
1110
|
subcategory: a,
|
|
1111
|
-
fontColor:
|
|
1111
|
+
fontColor: l,
|
|
1112
1112
|
activeColor: d
|
|
1113
1113
|
},
|
|
1114
|
-
`subcategory-${
|
|
1115
|
-
)) : t && t.map((a,
|
|
1114
|
+
`subcategory-${c}`
|
|
1115
|
+
)) : t && t.map((a, c) => /* @__PURE__ */ s(
|
|
1116
1116
|
Ie,
|
|
1117
1117
|
{
|
|
1118
1118
|
indicator: a,
|
|
1119
|
-
fontColor:
|
|
1119
|
+
fontColor: l,
|
|
1120
1120
|
activeColor: d
|
|
1121
1121
|
},
|
|
1122
|
-
`indicator-${
|
|
1122
|
+
`indicator-${c}`
|
|
1123
1123
|
))
|
|
1124
1124
|
}
|
|
1125
1125
|
);
|
|
@@ -1142,10 +1142,10 @@ const at = ({
|
|
|
1142
1142
|
inputsColor: t = "#605B56",
|
|
1143
1143
|
activeColor: r
|
|
1144
1144
|
}) => {
|
|
1145
|
-
const { tematicalFiltersSelected:
|
|
1146
|
-
return
|
|
1145
|
+
const { tematicalFiltersSelected: l } = D((c) => c), { t: a } = k();
|
|
1146
|
+
return V(() => {
|
|
1147
1147
|
i && D.setState(() => ({ fontColor: i }));
|
|
1148
|
-
}, [i]),
|
|
1148
|
+
}, [i]), V(() => {
|
|
1149
1149
|
t && D.setState(() => ({ inputsColor: t }));
|
|
1150
1150
|
}, [t]), /* @__PURE__ */ s(
|
|
1151
1151
|
W,
|
|
@@ -1154,10 +1154,10 @@ const at = ({
|
|
|
1154
1154
|
title: o ? a(o) : "Tematical filters",
|
|
1155
1155
|
color: i,
|
|
1156
1156
|
activeColor: r,
|
|
1157
|
-
children: n == null ? void 0 : n.map((
|
|
1157
|
+
children: n == null ? void 0 : n.map((c, u) => /* @__PURE__ */ s(
|
|
1158
1158
|
rt,
|
|
1159
1159
|
{
|
|
1160
|
-
category:
|
|
1160
|
+
category: c,
|
|
1161
1161
|
fontColor: i,
|
|
1162
1162
|
activeColor: r
|
|
1163
1163
|
},
|
|
@@ -1175,8 +1175,8 @@ at.propTypes = {
|
|
|
1175
1175
|
inputsColor: e.string,
|
|
1176
1176
|
activeColor: e.string
|
|
1177
1177
|
};
|
|
1178
|
-
const
|
|
1179
|
-
FiltersAmbitContainer:
|
|
1178
|
+
const E2 = "_FiltersAmbitContainer_1g9xx_2", q2 = "_FiltersAmbitHeader_1g9xx_7", z2 = "_FiltersAmbitTitle_1g9xx_15", j2 = "_FiltersAmbitDescription_1g9xx_22", Z2 = "_FiltersAmbitDescriptionTitle_1g9xx_33", H2 = "_warning_1g9xx_37", X = {
|
|
1179
|
+
FiltersAmbitContainer: E2,
|
|
1180
1180
|
FiltersAmbitHeader: q2,
|
|
1181
1181
|
FiltersAmbitTitle: z2,
|
|
1182
1182
|
FiltersAmbitDescription: j2,
|
|
@@ -1189,9 +1189,9 @@ const P2 = "_FiltersAmbitContainer_1g9xx_2", q2 = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1189
1189
|
indicators: i,
|
|
1190
1190
|
activeColor: t,
|
|
1191
1191
|
textColor: r,
|
|
1192
|
-
backgroundColor:
|
|
1192
|
+
backgroundColor: l,
|
|
1193
1193
|
onChangeAppliedFilters: a,
|
|
1194
|
-
saveAmbit:
|
|
1194
|
+
saveAmbit: c,
|
|
1195
1195
|
namePlaceholder: u,
|
|
1196
1196
|
descPlaceholder: h,
|
|
1197
1197
|
filtersTypes: g = ["geographical", "tematical"],
|
|
@@ -1200,19 +1200,19 @@ const P2 = "_FiltersAmbitContainer_1g9xx_2", q2 = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1200
1200
|
//usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
|
|
1201
1201
|
}) => {
|
|
1202
1202
|
const { t: f } = k(), { tematicalFiltersSelected: _ } = D((F) => F), [p, b] = S(n || null), [v, x] = S(d || null), [w, N] = S(!1);
|
|
1203
|
-
|
|
1203
|
+
V(() => {
|
|
1204
1204
|
o && o.length > 0 && D.setState((F) => ({
|
|
1205
1205
|
tematicalFiltersSelected: o
|
|
1206
1206
|
}));
|
|
1207
|
-
}, [o]),
|
|
1207
|
+
}, [o]), V(() => {
|
|
1208
1208
|
console.log("filtersSelected changed: ", _), a(_);
|
|
1209
1209
|
}, [_]);
|
|
1210
1210
|
const L = () => {
|
|
1211
|
-
p ?
|
|
1211
|
+
p ? c({ name: p, description: v }) : N(!0);
|
|
1212
1212
|
};
|
|
1213
|
-
return /* @__PURE__ */ m("div", { className:
|
|
1214
|
-
!C && /* @__PURE__ */ m("div", { className:
|
|
1215
|
-
/* @__PURE__ */ s("div", { className:
|
|
1213
|
+
return /* @__PURE__ */ m("div", { className: X.FiltersAmbitContainer, children: [
|
|
1214
|
+
!C && /* @__PURE__ */ m("div", { className: X.FiltersAmbitHeader, children: [
|
|
1215
|
+
/* @__PURE__ */ s("div", { className: X.FiltersAmbitTitle, children: /* @__PURE__ */ s(
|
|
1216
1216
|
"input",
|
|
1217
1217
|
{
|
|
1218
1218
|
type: "text",
|
|
@@ -1223,7 +1223,7 @@ const P2 = "_FiltersAmbitContainer_1g9xx_2", q2 = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1223
1223
|
placeholder: f(u)
|
|
1224
1224
|
}
|
|
1225
1225
|
) }),
|
|
1226
|
-
/* @__PURE__ */ s("div", { className:
|
|
1226
|
+
/* @__PURE__ */ s("div", { className: X.FiltersAmbitDescription, children: /* @__PURE__ */ s("div", { className: X.FiltersAmbitDescriptionTitle, children: /* @__PURE__ */ s(
|
|
1227
1227
|
"textarea",
|
|
1228
1228
|
{
|
|
1229
1229
|
value: v,
|
|
@@ -1238,7 +1238,7 @@ const P2 = "_FiltersAmbitContainer_1g9xx_2", q2 = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1238
1238
|
title: f("applied_filters"),
|
|
1239
1239
|
isOpen: !0,
|
|
1240
1240
|
textColor: r || "#fff",
|
|
1241
|
-
backgroundColor:
|
|
1241
|
+
backgroundColor: l || "#605B5680",
|
|
1242
1242
|
activeColor: t
|
|
1243
1243
|
}
|
|
1244
1244
|
),
|
|
@@ -1253,7 +1253,7 @@ const P2 = "_FiltersAmbitContainer_1g9xx_2", q2 = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1253
1253
|
activeColor: t
|
|
1254
1254
|
}
|
|
1255
1255
|
),
|
|
1256
|
-
w && /* @__PURE__ */ s("div", { className:
|
|
1256
|
+
w && /* @__PURE__ */ s("div", { className: X.warning, children: f(y) }),
|
|
1257
1257
|
!C && /* @__PURE__ */ s("div", { className: "buttonContainer", children: /* @__PURE__ */ s(ge, { onClick: () => L(), children: f("save_ambit") }) })
|
|
1258
1258
|
] });
|
|
1259
1259
|
};
|
|
@@ -1281,36 +1281,36 @@ const U2 = "_barChartContainer_d2f1z_2", G2 = {
|
|
|
1281
1281
|
gap: i = 23,
|
|
1282
1282
|
fontColor: t = "#605B56",
|
|
1283
1283
|
verticalPaddign: r = 10,
|
|
1284
|
-
horizontalPaddign:
|
|
1284
|
+
horizontalPaddign: l = 20,
|
|
1285
1285
|
leftPadding: a = 200,
|
|
1286
|
-
numberOfDivisions:
|
|
1286
|
+
numberOfDivisions: c = 7,
|
|
1287
1287
|
maxValue: u = null
|
|
1288
1288
|
}) => {
|
|
1289
1289
|
const { t: h } = k(), { xScale: g, ticks: y, height: C } = he(() => {
|
|
1290
1290
|
if (n && n.length > 0) {
|
|
1291
|
-
const f = (n == null ? void 0 : n.length) * (o + i) + r * 2, _ =
|
|
1291
|
+
const f = (n == null ? void 0 : n.length) * (o + i) + r * 2, _ = Ee.max(n, (v) => v.value) || 1, p = Ee.scaleLinear().domain([0, u || _]).range([0, d - a]), b = Array.from({ length: c + 1 }, (v, x) => u ? u / c * x : _ / c * x);
|
|
1292
1292
|
return {
|
|
1293
1293
|
xScale: p,
|
|
1294
1294
|
ticks: b,
|
|
1295
1295
|
height: f,
|
|
1296
1296
|
width: d,
|
|
1297
1297
|
verticalPaddign: r,
|
|
1298
|
-
horizontalPaddign:
|
|
1298
|
+
horizontalPaddign: l
|
|
1299
1299
|
};
|
|
1300
1300
|
} else
|
|
1301
1301
|
return { xScale: null, ticks: [], height: 0 };
|
|
1302
1302
|
}, [
|
|
1303
1303
|
n,
|
|
1304
1304
|
d,
|
|
1305
|
-
|
|
1305
|
+
c,
|
|
1306
1306
|
o,
|
|
1307
1307
|
i,
|
|
1308
|
-
|
|
1308
|
+
l,
|
|
1309
1309
|
r,
|
|
1310
1310
|
u
|
|
1311
1311
|
]);
|
|
1312
|
-
return /* @__PURE__ */ s("div", { className: G2.barChartContainer, children: /* @__PURE__ */ s("svg", { width: d +
|
|
1313
|
-
/* @__PURE__ */ s("g", { transform: `translate(${a +
|
|
1312
|
+
return /* @__PURE__ */ s("div", { className: G2.barChartContainer, children: /* @__PURE__ */ s("svg", { width: d + l * 2, height: C, children: /* @__PURE__ */ m("g", { transform: `translate(0,${i})`, children: [
|
|
1313
|
+
/* @__PURE__ */ s("g", { transform: `translate(${a + l}, 0)`, children: y.map((f, _) => {
|
|
1314
1314
|
const p = g(f);
|
|
1315
1315
|
return /* @__PURE__ */ m("g", { transform: `translate(${p}, 0)`, children: [
|
|
1316
1316
|
/* @__PURE__ */ s(
|
|
@@ -1338,7 +1338,7 @@ const U2 = "_barChartContainer_d2f1z_2", G2 = {
|
|
|
1338
1338
|
return /* @__PURE__ */ m(
|
|
1339
1339
|
"g",
|
|
1340
1340
|
{
|
|
1341
|
-
transform: `translate(${a +
|
|
1341
|
+
transform: `translate(${a + l}, ${b})`,
|
|
1342
1342
|
children: [
|
|
1343
1343
|
/* @__PURE__ */ s(
|
|
1344
1344
|
"text",
|
|
@@ -1392,9 +1392,9 @@ const Y2 = "_graphicContainer_c9zrg_2", W2 = "_titleContainer_c9zrg_14", je = {
|
|
|
1392
1392
|
borderColor: i = "#605B56",
|
|
1393
1393
|
title: t = "Graphic Title",
|
|
1394
1394
|
fontColor: r = "#605B56",
|
|
1395
|
-
maxValue:
|
|
1395
|
+
maxValue: l = null,
|
|
1396
1396
|
numberOfDivisions: a = 7,
|
|
1397
|
-
leftPadding:
|
|
1397
|
+
leftPadding: c = 200
|
|
1398
1398
|
}) => {
|
|
1399
1399
|
const { t: u } = k();
|
|
1400
1400
|
return /* @__PURE__ */ m(
|
|
@@ -1413,9 +1413,9 @@ const Y2 = "_graphicContainer_c9zrg_2", W2 = "_titleContainer_c9zrg_14", je = {
|
|
|
1413
1413
|
data: n,
|
|
1414
1414
|
width: d,
|
|
1415
1415
|
fontColor: r,
|
|
1416
|
-
maxValue:
|
|
1416
|
+
maxValue: l,
|
|
1417
1417
|
numberOfDivisions: a,
|
|
1418
|
-
leftPadding:
|
|
1418
|
+
leftPadding: c
|
|
1419
1419
|
}
|
|
1420
1420
|
)
|
|
1421
1421
|
]
|
|
@@ -1439,9 +1439,9 @@ Q2.propTypes = {
|
|
|
1439
1439
|
numberOfDivisions: e.number,
|
|
1440
1440
|
leftPadding: e.number
|
|
1441
1441
|
};
|
|
1442
|
-
const
|
|
1443
|
-
indicatorsCategory:
|
|
1444
|
-
title:
|
|
1442
|
+
const X2 = "_indicatorsCategory_1cu33_2", J2 = "_title_1cu33_5", e0 = "_list_1cu33_11", ve = {
|
|
1443
|
+
indicatorsCategory: X2,
|
|
1444
|
+
title: J2,
|
|
1445
1445
|
list: e0
|
|
1446
1446
|
}, t0 = "_indicatorContainer_1go6h_2", n0 = "_indicatorNameContainer_1go6h_11", i0 = "_dot_1go6h_17", o0 = "_indicatorName_1go6h_11", s0 = "_switchExternalContainer_1go6h_28", r0 = "_switchType_1go6h_37", a0 = "_switchTypeOptions_1go6h_41", l0 = "_optionContainer_1go6h_52", c0 = "_customRadious_1go6h_62", d0 = "_optionText_1go6h_69", M = {
|
|
1447
1447
|
indicatorContainer: t0,
|
|
@@ -1461,12 +1461,12 @@ const J2 = "_indicatorsCategory_1cu33_2", X2 = "_title_1cu33_5", e0 = "_list_1cu
|
|
|
1461
1461
|
defaultColor: i = "#92898A",
|
|
1462
1462
|
activeIndicator: t,
|
|
1463
1463
|
activeIndicatorType: r,
|
|
1464
|
-
onClickIndicator:
|
|
1464
|
+
onClickIndicator: l,
|
|
1465
1465
|
multiple: a = !1,
|
|
1466
|
-
onChangeType:
|
|
1466
|
+
onChangeType: c
|
|
1467
1467
|
}) => {
|
|
1468
1468
|
const { t: u } = k(), { name: h, type: g } = n, [y, C] = S(!1);
|
|
1469
|
-
|
|
1469
|
+
V(() => {
|
|
1470
1470
|
t && C(
|
|
1471
1471
|
a ? t.some(
|
|
1472
1472
|
(p) => p.name == String(h)
|
|
@@ -1478,7 +1478,7 @@ const J2 = "_indicatorsCategory_1cu33_2", X2 = "_title_1cu33_5", e0 = "_list_1cu
|
|
|
1478
1478
|
"div",
|
|
1479
1479
|
{
|
|
1480
1480
|
className: M.optionContainer,
|
|
1481
|
-
onClick: () =>
|
|
1481
|
+
onClick: () => c("cat"),
|
|
1482
1482
|
children: [
|
|
1483
1483
|
/* @__PURE__ */ s(
|
|
1484
1484
|
"span",
|
|
@@ -1507,7 +1507,7 @@ const J2 = "_indicatorsCategory_1cu33_2", X2 = "_title_1cu33_5", e0 = "_list_1cu
|
|
|
1507
1507
|
"div",
|
|
1508
1508
|
{
|
|
1509
1509
|
className: M.optionContainer,
|
|
1510
|
-
onClick: () =>
|
|
1510
|
+
onClick: () => c("abs"),
|
|
1511
1511
|
children: [
|
|
1512
1512
|
/* @__PURE__ */ s(
|
|
1513
1513
|
"span",
|
|
@@ -1553,7 +1553,7 @@ const J2 = "_indicatorsCategory_1cu33_2", X2 = "_title_1cu33_5", e0 = "_list_1cu
|
|
|
1553
1553
|
"div",
|
|
1554
1554
|
{
|
|
1555
1555
|
className: M.indicatorNameContainer,
|
|
1556
|
-
onClick: () =>
|
|
1556
|
+
onClick: () => l({ indicator: n }),
|
|
1557
1557
|
children: [
|
|
1558
1558
|
/* @__PURE__ */ s(
|
|
1559
1559
|
"div",
|
|
@@ -1601,17 +1601,17 @@ const u0 = "_indicatorsSubCategory_1dzsi_2", p0 = "_list_1dzsi_8", Ze = {
|
|
|
1601
1601
|
activeColor: i,
|
|
1602
1602
|
activeSubCategory: t,
|
|
1603
1603
|
onClickSubCategory: r,
|
|
1604
|
-
id:
|
|
1604
|
+
id: l,
|
|
1605
1605
|
activeIndicator: a,
|
|
1606
|
-
onClickIndicator:
|
|
1606
|
+
onClickIndicator: c,
|
|
1607
1607
|
multiple: u,
|
|
1608
1608
|
activeIndicatorType: h,
|
|
1609
1609
|
onChangeType: g
|
|
1610
1610
|
}) => {
|
|
1611
1611
|
const { t: y } = k(), [C, f] = S(!1);
|
|
1612
|
-
return
|
|
1613
|
-
f(t ==
|
|
1614
|
-
}, [t,
|
|
1612
|
+
return V(() => {
|
|
1613
|
+
f(t == l);
|
|
1614
|
+
}, [t, l]), /* @__PURE__ */ m(
|
|
1615
1615
|
Ae.div,
|
|
1616
1616
|
{
|
|
1617
1617
|
className: Ze.indicatorsSubCategory,
|
|
@@ -1619,7 +1619,7 @@ const u0 = "_indicatorsSubCategory_1dzsi_2", p0 = "_list_1dzsi_8", Ze = {
|
|
|
1619
1619
|
animate: { height: C ? "auto" : "43px" },
|
|
1620
1620
|
transition: { duration: 0.4 },
|
|
1621
1621
|
children: [
|
|
1622
|
-
/* @__PURE__ */ s("button", { onClick: () => r(
|
|
1622
|
+
/* @__PURE__ */ s("button", { onClick: () => r(l), children: /* @__PURE__ */ m("h3", { style: { color: C ? i : o }, children: [
|
|
1623
1623
|
/* @__PURE__ */ s("span", { style: { color: C ? i : o }, children: C ? "-" : "+" }),
|
|
1624
1624
|
/* @__PURE__ */ s(
|
|
1625
1625
|
"span",
|
|
@@ -1636,7 +1636,7 @@ const u0 = "_indicatorsSubCategory_1dzsi_2", p0 = "_list_1dzsi_8", Ze = {
|
|
|
1636
1636
|
defaultColor: o,
|
|
1637
1637
|
activeColor: i,
|
|
1638
1638
|
activeIndicator: a,
|
|
1639
|
-
onClickIndicator:
|
|
1639
|
+
onClickIndicator: c,
|
|
1640
1640
|
multiple: u,
|
|
1641
1641
|
activeIndicatorType: h,
|
|
1642
1642
|
onChangeType: g
|
|
@@ -1666,9 +1666,9 @@ const dt = ({
|
|
|
1666
1666
|
defaultColor: i,
|
|
1667
1667
|
onClickCategory: t,
|
|
1668
1668
|
activeCategory: r,
|
|
1669
|
-
activeSubCategory:
|
|
1669
|
+
activeSubCategory: l,
|
|
1670
1670
|
onClickSubCategory: a,
|
|
1671
|
-
activeIndicator:
|
|
1671
|
+
activeIndicator: c,
|
|
1672
1672
|
onClickIndicator: u,
|
|
1673
1673
|
multiple: h,
|
|
1674
1674
|
activeIndicatorType: g,
|
|
@@ -1676,7 +1676,7 @@ const dt = ({
|
|
|
1676
1676
|
}) => {
|
|
1677
1677
|
var p;
|
|
1678
1678
|
const { t: C } = k(), [f, _] = S(!1);
|
|
1679
|
-
return
|
|
1679
|
+
return V(() => {
|
|
1680
1680
|
_(r === d);
|
|
1681
1681
|
}, [r, d]), /* @__PURE__ */ m(
|
|
1682
1682
|
Ae.div,
|
|
@@ -1706,10 +1706,10 @@ const dt = ({
|
|
|
1706
1706
|
ct,
|
|
1707
1707
|
{
|
|
1708
1708
|
id: v,
|
|
1709
|
-
activeSubCategory:
|
|
1709
|
+
activeSubCategory: l,
|
|
1710
1710
|
subcName: b,
|
|
1711
1711
|
onClickSubCategory: a,
|
|
1712
|
-
activeIndicator:
|
|
1712
|
+
activeIndicator: c,
|
|
1713
1713
|
onClickIndicator: u,
|
|
1714
1714
|
multiple: h,
|
|
1715
1715
|
activeColor: o,
|
|
@@ -1727,7 +1727,7 @@ const dt = ({
|
|
|
1727
1727
|
values: b.type == "twoUnits" && b.values,
|
|
1728
1728
|
activeColor: o,
|
|
1729
1729
|
defaultColor: i,
|
|
1730
|
-
activeIndicator:
|
|
1730
|
+
activeIndicator: c,
|
|
1731
1731
|
onClickIndicator: u,
|
|
1732
1732
|
multiple: h,
|
|
1733
1733
|
activeIndicatorType: g,
|
|
@@ -1767,10 +1767,10 @@ const m0 = "_indicatorsList_fklyu_2", h0 = "_title_fklyu_6", He = {
|
|
|
1767
1767
|
// Si multiple es true, debe ser un array de strings, sino un string
|
|
1768
1768
|
defaultValue: r = null,
|
|
1769
1769
|
//si el indicador es tipo "both" cuando se cambia el tipo
|
|
1770
|
-
changeIndType:
|
|
1770
|
+
changeIndType: l,
|
|
1771
1771
|
activeIndicatorType: a
|
|
1772
1772
|
}) => {
|
|
1773
|
-
const { t:
|
|
1773
|
+
const { t: c } = k(), [u, h] = S(), [g, y] = S(), [C, f] = S(), _ = (w) => {
|
|
1774
1774
|
h(u == w ? null : w);
|
|
1775
1775
|
}, p = (w) => {
|
|
1776
1776
|
y(g == w ? null : w);
|
|
@@ -1789,10 +1789,10 @@ const m0 = "_indicatorsList_fklyu_2", h0 = "_title_fklyu_6", He = {
|
|
|
1789
1789
|
) ? N.filter(
|
|
1790
1790
|
(L) => L.name != String(w.name)
|
|
1791
1791
|
) : [...N, w]
|
|
1792
|
-
), w.type == "both" &&
|
|
1792
|
+
), w.type == "both" && l("cat");
|
|
1793
1793
|
}
|
|
1794
1794
|
};
|
|
1795
|
-
|
|
1795
|
+
V(() => {
|
|
1796
1796
|
console.log("activeindicator changed to: ", C), i && typeof i == "function" && C && i({ activeIndicator: C });
|
|
1797
1797
|
}, [C]), yt(() => {
|
|
1798
1798
|
if (r && !C)
|
|
@@ -1816,7 +1816,7 @@ const m0 = "_indicatorsList_fklyu_2", h0 = "_title_fklyu_6", He = {
|
|
|
1816
1816
|
N && h(N.category);
|
|
1817
1817
|
};
|
|
1818
1818
|
return /* @__PURE__ */ m("div", { className: He.indicatorsList, children: [
|
|
1819
|
-
/* @__PURE__ */ s("h2", { className: He.title, style: { color: o }, children:
|
|
1819
|
+
/* @__PURE__ */ s("h2", { className: He.title, style: { color: o }, children: c("indicators.indicators") }),
|
|
1820
1820
|
n.map((w, N) => /* @__PURE__ */ s(
|
|
1821
1821
|
dt,
|
|
1822
1822
|
{
|
|
@@ -1832,7 +1832,7 @@ const m0 = "_indicatorsList_fklyu_2", h0 = "_title_fklyu_6", He = {
|
|
|
1832
1832
|
defaultColor: o,
|
|
1833
1833
|
multiple: t,
|
|
1834
1834
|
onChange: i,
|
|
1835
|
-
onChangeType:
|
|
1835
|
+
onChangeType: l,
|
|
1836
1836
|
activeIndicatorType: a
|
|
1837
1837
|
},
|
|
1838
1838
|
`categoryKey${N}`
|
|
@@ -1850,39 +1850,39 @@ g0.propTypes = {
|
|
|
1850
1850
|
defaultValue: e.oneOfType([e.object, e.array]),
|
|
1851
1851
|
activeIndicatorType: e.string
|
|
1852
1852
|
};
|
|
1853
|
-
const C0 = "_langSelector_o9enq_2", f0 = "_currentLang_o9enq_14", b0 = "_arrow_o9enq_26", y0 = "_prevImg_o9enq_29", _0 = "_langMenu_o9enq_33",
|
|
1853
|
+
const C0 = "_langSelector_o9enq_2", f0 = "_currentLang_o9enq_14", b0 = "_arrow_o9enq_26", y0 = "_prevImg_o9enq_29", _0 = "_langMenu_o9enq_33", J = {
|
|
1854
1854
|
langSelector: C0,
|
|
1855
1855
|
currentLang: f0,
|
|
1856
1856
|
arrow: b0,
|
|
1857
1857
|
prevImg: y0,
|
|
1858
1858
|
langMenu: _0
|
|
1859
1859
|
}, v0 = ({ langs: n, arrow: d, imgPrev: o }) => {
|
|
1860
|
-
const [i, t] = S(!1), { i18n: r } = k(),
|
|
1861
|
-
r.changeLanguage(
|
|
1860
|
+
const [i, t] = S(!1), { i18n: r } = k(), l = n.find((c) => c.code == r.language), a = (c) => {
|
|
1861
|
+
r.changeLanguage(c), t(!1);
|
|
1862
1862
|
};
|
|
1863
|
-
return /* @__PURE__ */ m("div", { className:
|
|
1863
|
+
return /* @__PURE__ */ m("div", { className: J.langSelector, children: [
|
|
1864
1864
|
/* @__PURE__ */ m(
|
|
1865
1865
|
"div",
|
|
1866
1866
|
{
|
|
1867
|
-
className:
|
|
1867
|
+
className: J.currentLang,
|
|
1868
1868
|
onClick: () => {
|
|
1869
1869
|
t(!i);
|
|
1870
1870
|
},
|
|
1871
1871
|
children: [
|
|
1872
|
-
o && /* @__PURE__ */ s("img", { className:
|
|
1873
|
-
(
|
|
1874
|
-
/* @__PURE__ */ s("img", { src: d, className:
|
|
1872
|
+
o && /* @__PURE__ */ s("img", { className: J.prevImg, src: o }),
|
|
1873
|
+
(l == null ? void 0 : l.titleSelected) || (l == null ? void 0 : l.title),
|
|
1874
|
+
/* @__PURE__ */ s("img", { src: d, className: J.arrow })
|
|
1875
1875
|
]
|
|
1876
1876
|
}
|
|
1877
1877
|
),
|
|
1878
|
-
i && /* @__PURE__ */ s("div", { className:
|
|
1878
|
+
i && /* @__PURE__ */ s("div", { className: J.langMenu, children: n.map((c) => /* @__PURE__ */ s(
|
|
1879
1879
|
"button",
|
|
1880
1880
|
{
|
|
1881
|
-
className: (
|
|
1882
|
-
onClick: () => a(
|
|
1883
|
-
children:
|
|
1881
|
+
className: (l == null ? void 0 : l.code) == c.code ? J.active : "",
|
|
1882
|
+
onClick: () => a(c.code),
|
|
1883
|
+
children: c.title
|
|
1884
1884
|
},
|
|
1885
|
-
|
|
1885
|
+
c.code
|
|
1886
1886
|
)) })
|
|
1887
1887
|
] });
|
|
1888
1888
|
};
|
|
@@ -1900,7 +1900,7 @@ v0.propTypes = {
|
|
|
1900
1900
|
arrow: e.object,
|
|
1901
1901
|
imgPrev: e.object
|
|
1902
1902
|
};
|
|
1903
|
-
const w0 = "_legendContainer_1q5gf_3", x0 = "_closeButton_1q5gf_31", k0 = "_titleContainer_1q5gf_59", N0 = "_infoContainer_1q5gf_65", B0 = "_titleLegendList_1q5gf_76", S0 = "_legendListContainer_1q5gf_83", M0 = "_gridContainer_1q5gf_83", L0 = "_elementLegendContainer_1q5gf_89", F0 = "_colorDot_1q5gf_95", D0 = "_absoluteValueContainer_1q5gf_101", T0 = "_absoluteValueColor_1q5gf_104", $0 = "_absoluteValueText_1q5gf_109", V0 = "_moreInfoContainer_1q5gf_121",
|
|
1903
|
+
const w0 = "_legendContainer_1q5gf_3", x0 = "_closeButton_1q5gf_31", k0 = "_titleContainer_1q5gf_59", N0 = "_infoContainer_1q5gf_65", B0 = "_titleLegendList_1q5gf_76", S0 = "_legendListContainer_1q5gf_83", M0 = "_gridContainer_1q5gf_83", L0 = "_elementLegendContainer_1q5gf_89", F0 = "_colorDot_1q5gf_95", D0 = "_absoluteValueContainer_1q5gf_101", T0 = "_absoluteValueColor_1q5gf_104", $0 = "_absoluteValueText_1q5gf_109", V0 = "_moreInfoContainer_1q5gf_121", $ = {
|
|
1904
1904
|
legendContainer: w0,
|
|
1905
1905
|
closeButton: x0,
|
|
1906
1906
|
titleContainer: k0,
|
|
@@ -1932,39 +1932,39 @@ const w0 = "_legendContainer_1q5gf_3", x0 = "_closeButton_1q5gf_31", k0 = "_titl
|
|
|
1932
1932
|
absoluteValue: r,
|
|
1933
1933
|
//Function to be called when the button is clicked (optional).
|
|
1934
1934
|
//If this is null or undefined the button wont be displayed.
|
|
1935
|
-
onClickMoreInfo:
|
|
1935
|
+
onClickMoreInfo: l,
|
|
1936
1936
|
//If not passed it will read t("moreInformation")
|
|
1937
1937
|
buttonTitle: a,
|
|
1938
|
-
onClickClose:
|
|
1938
|
+
onClickClose: c
|
|
1939
1939
|
}) => {
|
|
1940
1940
|
const { t: u } = k();
|
|
1941
1941
|
return /* @__PURE__ */ m(
|
|
1942
1942
|
"div",
|
|
1943
1943
|
{
|
|
1944
1944
|
style: n ? { ...n } : {},
|
|
1945
|
-
className: `${
|
|
1945
|
+
className: `${$.legendContainer}`,
|
|
1946
1946
|
children: [
|
|
1947
|
-
/* @__PURE__ */ s("button", { className:
|
|
1948
|
-
d && /* @__PURE__ */ s("div", { className:
|
|
1949
|
-
o && o.length > 0 && /* @__PURE__ */ s("div", { className:
|
|
1950
|
-
/* @__PURE__ */ s("h3", { className:
|
|
1951
|
-
/* @__PURE__ */ m("span", { className:
|
|
1947
|
+
/* @__PURE__ */ s("button", { className: $.closeButton, onClick: c }),
|
|
1948
|
+
d && /* @__PURE__ */ s("div", { className: $.titleContainer, children: /* @__PURE__ */ s("h2", { children: d }) }),
|
|
1949
|
+
o && o.length > 0 && /* @__PURE__ */ s("div", { className: $.infoContainer, children: /* @__PURE__ */ s("ul", { children: o.map(({ title: h, value: g }) => /* @__PURE__ */ m("li", { children: [
|
|
1950
|
+
/* @__PURE__ */ s("h3", { className: $.title, children: `${h}:` }),
|
|
1951
|
+
/* @__PURE__ */ m("span", { className: $.value, children: [
|
|
1952
1952
|
" ",
|
|
1953
1953
|
g
|
|
1954
1954
|
] })
|
|
1955
1955
|
] }, d)) }) }),
|
|
1956
|
-
/* @__PURE__ */ s("h3", { className:
|
|
1957
|
-
/* @__PURE__ */ s("div", { className:
|
|
1956
|
+
/* @__PURE__ */ s("h3", { className: $.titleLegendList, children: t ? /* @__PURE__ */ s(Ve, { i18nKey: t, components: { sup: /* @__PURE__ */ s("sup", {}) }, values: { lt: "<" } }) : u("mainUse") }),
|
|
1957
|
+
/* @__PURE__ */ s("div", { className: $.legendListContainer, children: r ? /* @__PURE__ */ m("div", { className: $.absoluteValueContainer, children: [
|
|
1958
1958
|
/* @__PURE__ */ s(
|
|
1959
1959
|
"div",
|
|
1960
1960
|
{
|
|
1961
|
-
className:
|
|
1961
|
+
className: $.absoluteValueColor,
|
|
1962
1962
|
style: {
|
|
1963
1963
|
background: `linear-gradient(to bottom, ${r.maxColor} 0%, ${r.midColor ? `${r.midColor} 50%,` : ""} ${r.minColor} 100%)`
|
|
1964
1964
|
}
|
|
1965
1965
|
}
|
|
1966
1966
|
),
|
|
1967
|
-
/* @__PURE__ */ m("div", { className:
|
|
1967
|
+
/* @__PURE__ */ m("div", { className: $.absoluteValueText, children: [
|
|
1968
1968
|
/* @__PURE__ */ m("span", { children: [
|
|
1969
1969
|
r.maxValue,
|
|
1970
1970
|
" ",
|
|
@@ -1981,22 +1981,22 @@ const w0 = "_legendContainer_1q5gf_3", x0 = "_closeButton_1q5gf_31", k0 = "_titl
|
|
|
1981
1981
|
u(r.unit)
|
|
1982
1982
|
] })
|
|
1983
1983
|
] })
|
|
1984
|
-
] }) : i && i.length > 0 && /* @__PURE__ */ s("div", { className:
|
|
1985
|
-
({ title: h, color: g }) => /* @__PURE__ */ m("div", { className:
|
|
1984
|
+
] }) : i && i.length > 0 && /* @__PURE__ */ s("div", { className: $.gridContainer, children: i.map(
|
|
1985
|
+
({ title: h, color: g }) => /* @__PURE__ */ m("div", { className: $.elementLegendContainer, children: [
|
|
1986
1986
|
/* @__PURE__ */ s(
|
|
1987
1987
|
"div",
|
|
1988
1988
|
{
|
|
1989
|
-
className:
|
|
1989
|
+
className: $.colorDot,
|
|
1990
1990
|
style: { backgroundColor: g }
|
|
1991
1991
|
}
|
|
1992
1992
|
),
|
|
1993
|
-
/* @__PURE__ */ m("div", { className:
|
|
1993
|
+
/* @__PURE__ */ m("div", { className: $.titleLegendElement, children: [
|
|
1994
1994
|
u(h),
|
|
1995
1995
|
" "
|
|
1996
1996
|
] })
|
|
1997
1997
|
] }, d)
|
|
1998
1998
|
) }) }),
|
|
1999
|
-
|
|
1999
|
+
l && /* @__PURE__ */ s("button", { className: $.moreInfoContainer, onClick: l, children: a || u("moreInformation") })
|
|
2000
2000
|
]
|
|
2001
2001
|
}
|
|
2002
2002
|
);
|
|
@@ -2039,32 +2039,32 @@ O0.propTypes = {
|
|
|
2039
2039
|
href: e.string,
|
|
2040
2040
|
className: e.string
|
|
2041
2041
|
};
|
|
2042
|
-
const R0 = "_mapContainer_84pkf_2",
|
|
2042
|
+
const R0 = "_mapContainer_84pkf_2", P0 = {
|
|
2043
2043
|
mapContainer: R0
|
|
2044
2044
|
};
|
|
2045
2045
|
vt.accessToken = "pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";
|
|
2046
|
-
const
|
|
2046
|
+
const E0 = ({
|
|
2047
2047
|
initialView: n = { latitude: 39.4699, longitude: -0.3763, zoom: 12 },
|
|
2048
2048
|
maxZoom: d = 17,
|
|
2049
2049
|
minZoom: o = 8,
|
|
2050
2050
|
mapStyle: i,
|
|
2051
2051
|
firstSymbolLayer: t,
|
|
2052
2052
|
cssProps: r = "",
|
|
2053
|
-
onClick:
|
|
2053
|
+
onClick: l = "",
|
|
2054
2054
|
interactiveLayers: a = [],
|
|
2055
|
-
popUp:
|
|
2055
|
+
popUp: c = !1,
|
|
2056
2056
|
sources: u = [],
|
|
2057
2057
|
layers: h = []
|
|
2058
2058
|
}) => {
|
|
2059
2059
|
const g = $e(), [y, C] = S(null), f = wt((_) => _.mapState.showTexts);
|
|
2060
|
-
return
|
|
2060
|
+
return V(() => {
|
|
2061
2061
|
if (g.current) {
|
|
2062
2062
|
const _ = g.current.getMap();
|
|
2063
2063
|
_.getStyle().layers.map((b) => {
|
|
2064
2064
|
b.type == "symbol" && b.id != "professionals" && (f ? _.setLayoutProperty(b.id, "visibility", "visible") : _.setLayoutProperty(b.id, "visibility", "none"));
|
|
2065
2065
|
});
|
|
2066
2066
|
}
|
|
2067
|
-
}, [f]), /* @__PURE__ */ s("div", { className: `${
|
|
2067
|
+
}, [f]), /* @__PURE__ */ s("div", { className: `${P0.mapContainer}`, style: r, children: /* @__PURE__ */ m(
|
|
2068
2068
|
kt,
|
|
2069
2069
|
{
|
|
2070
2070
|
initialViewState: n,
|
|
@@ -2073,7 +2073,7 @@ const P0 = ({
|
|
|
2073
2073
|
maxZoom: d,
|
|
2074
2074
|
minZoom: o,
|
|
2075
2075
|
mapStyle: i,
|
|
2076
|
-
onClick:
|
|
2076
|
+
onClick: l,
|
|
2077
2077
|
interactiveLayerIds: a,
|
|
2078
2078
|
children: [
|
|
2079
2079
|
u.length && u.map((_, p) => /* @__PURE__ */ s(
|
|
@@ -2094,21 +2094,21 @@ const P0 = ({
|
|
|
2094
2094
|
p
|
|
2095
2095
|
)),
|
|
2096
2096
|
/* @__PURE__ */ s(St, { position: "bottom-right", visualizePitch: !0 }),
|
|
2097
|
-
|
|
2097
|
+
c && y && /* @__PURE__ */ s(
|
|
2098
2098
|
Mt,
|
|
2099
2099
|
{
|
|
2100
|
-
longitude:
|
|
2101
|
-
latitude:
|
|
2102
|
-
anchor:
|
|
2100
|
+
longitude: c.longitude,
|
|
2101
|
+
latitude: c.latitude,
|
|
2102
|
+
anchor: c.anchor,
|
|
2103
2103
|
onClose: () => C(null),
|
|
2104
|
-
children:
|
|
2104
|
+
children: c.content
|
|
2105
2105
|
}
|
|
2106
2106
|
)
|
|
2107
2107
|
]
|
|
2108
2108
|
}
|
|
2109
2109
|
) });
|
|
2110
2110
|
};
|
|
2111
|
-
|
|
2111
|
+
E0.propTypes = {
|
|
2112
2112
|
initialView: e.shape({
|
|
2113
2113
|
latitude: e.number.isRequired,
|
|
2114
2114
|
longitude: e.number.isRequired,
|
|
@@ -2178,9 +2178,9 @@ const q0 = "_mapContainer_b0pyr_3", z0 = {
|
|
|
2178
2178
|
mapStyle: i,
|
|
2179
2179
|
firstSymbolLayer: t,
|
|
2180
2180
|
cssProps: r = {},
|
|
2181
|
-
onClick:
|
|
2181
|
+
onClick: l = "",
|
|
2182
2182
|
interactiveLayers: a = [],
|
|
2183
|
-
sources:
|
|
2183
|
+
sources: c = [],
|
|
2184
2184
|
layers: u = [],
|
|
2185
2185
|
filters: h,
|
|
2186
2186
|
popUpParams: g,
|
|
@@ -2189,14 +2189,14 @@ const q0 = "_mapContainer_b0pyr_3", z0 = {
|
|
|
2189
2189
|
}) => {
|
|
2190
2190
|
console.log(h);
|
|
2191
2191
|
const f = $e();
|
|
2192
|
-
return
|
|
2192
|
+
return V(() => {
|
|
2193
2193
|
if (f.current) {
|
|
2194
2194
|
const _ = f.current.getMap();
|
|
2195
2195
|
_.getStyle().layers.map((b) => {
|
|
2196
2196
|
b.type == "symbol" && b.id != "professionals" && (C ? _.setLayoutProperty(b.id, "visibility", "visible") : _.setLayoutProperty(b.id, "visibility", "none"));
|
|
2197
2197
|
});
|
|
2198
2198
|
}
|
|
2199
|
-
}, [C]),
|
|
2199
|
+
}, [C]), V(() => {
|
|
2200
2200
|
let _ = new Lt();
|
|
2201
2201
|
return fe.addProtocol("pmtiles", _.tile), () => {
|
|
2202
2202
|
fe.removeProtocol("pmtiles");
|
|
@@ -2211,10 +2211,10 @@ const q0 = "_mapContainer_b0pyr_3", z0 = {
|
|
|
2211
2211
|
maxZoom: d,
|
|
2212
2212
|
minZoom: o,
|
|
2213
2213
|
mapStyle: i,
|
|
2214
|
-
onClick:
|
|
2214
|
+
onClick: l,
|
|
2215
2215
|
interactiveLayerIds: a,
|
|
2216
2216
|
children: [
|
|
2217
|
-
|
|
2217
|
+
c.length && c.map((_, p) => /* @__PURE__ */ s(
|
|
2218
2218
|
Dt,
|
|
2219
2219
|
{
|
|
2220
2220
|
..._,
|
|
@@ -2289,13 +2289,13 @@ K0.propTypes = {
|
|
|
2289
2289
|
popUpParams: e.object,
|
|
2290
2290
|
onClosePopUp: e.func
|
|
2291
2291
|
};
|
|
2292
|
-
const U0 = "_sectionBar_1egwc_2", G0 = "_leftContent_1egwc_14", Y0 = "_textContainer_1egwc_20", W0 = "_title_1egwc_27", Q0 = "_subtitle_1egwc_33",
|
|
2292
|
+
const U0 = "_sectionBar_1egwc_2", G0 = "_leftContent_1egwc_14", Y0 = "_textContainer_1egwc_20", W0 = "_title_1egwc_27", Q0 = "_subtitle_1egwc_33", X0 = "_rightContent_1egwc_38", K = {
|
|
2293
2293
|
sectionBar: U0,
|
|
2294
2294
|
leftContent: G0,
|
|
2295
2295
|
textContainer: Y0,
|
|
2296
2296
|
title: W0,
|
|
2297
2297
|
subtitle: Q0,
|
|
2298
|
-
rightContent:
|
|
2298
|
+
rightContent: X0
|
|
2299
2299
|
}, ii = ({
|
|
2300
2300
|
leftIcon: n,
|
|
2301
2301
|
title: d,
|
|
@@ -2304,18 +2304,18 @@ const U0 = "_sectionBar_1egwc_2", G0 = "_leftContent_1egwc_14", Y0 = "_textConta
|
|
|
2304
2304
|
mainColor: t,
|
|
2305
2305
|
width: r
|
|
2306
2306
|
}) => {
|
|
2307
|
-
const { t:
|
|
2307
|
+
const { t: l } = k();
|
|
2308
2308
|
return /* @__PURE__ */ m("div", { className: K.sectionBar, style: { width: r && r }, children: [
|
|
2309
2309
|
/* @__PURE__ */ m("div", { className: K.leftContent, children: [
|
|
2310
2310
|
n && /* @__PURE__ */ s("img", { src: n, alt: "Icono", className: K.icon }),
|
|
2311
2311
|
/* @__PURE__ */ m("div", { className: K.textContainer, children: [
|
|
2312
|
-
/* @__PURE__ */ s("div", { className: K.title, children:
|
|
2312
|
+
/* @__PURE__ */ s("div", { className: K.title, children: l(d) }),
|
|
2313
2313
|
o && /* @__PURE__ */ s("div", { className: K.subtitle, children: o })
|
|
2314
2314
|
] })
|
|
2315
2315
|
] }),
|
|
2316
2316
|
/* @__PURE__ */ s("div", { className: K.rightContent, children: i })
|
|
2317
2317
|
] });
|
|
2318
|
-
},
|
|
2318
|
+
}, J0 = At({
|
|
2319
2319
|
name: "mapSlice",
|
|
2320
2320
|
initialState: {
|
|
2321
2321
|
showTexts: !0,
|
|
@@ -2341,14 +2341,14 @@ const U0 = "_sectionBar_1egwc_2", G0 = "_leftContent_1egwc_14", Y0 = "_textConta
|
|
|
2341
2341
|
n.activeIndicatorUnit = d.payload;
|
|
2342
2342
|
}
|
|
2343
2343
|
}
|
|
2344
|
-
}), { setShowTexts: oi, setYear: we, setActiveIndicatorKey: si, setActiveIndicatorType: ri, setActiveIndicatorUnit: ai } =
|
|
2344
|
+
}), { setShowTexts: oi, setYear: we, setActiveIndicatorKey: si, setActiveIndicatorType: ri, setActiveIndicatorUnit: ai } = J0.actions, en = "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", tn = "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", nn = "_slider_a19yo_2", on = "_playButton_a19yo_17", sn = "_sliderOpen_a19yo_28", rn = "_sliderResults_a19yo_32", ie = {
|
|
2345
2345
|
slider: nn,
|
|
2346
2346
|
playButton: on,
|
|
2347
2347
|
sliderOpen: sn,
|
|
2348
2348
|
sliderResults: rn
|
|
2349
2349
|
}, an = ({ onResults: n = !1, defaultYear: d = 2025, firstYear: o = 2025, lastYear: i = 2050, zIndex: t = 10, rightBarOpen: r = !1 }) => {
|
|
2350
|
-
const [
|
|
2351
|
-
a(v),
|
|
2350
|
+
const [l, a] = S(d), c = xt(), u = (b, v) => {
|
|
2351
|
+
a(v), c(we(v - 2e3));
|
|
2352
2352
|
}, [h, g] = S(!1), y = () => {
|
|
2353
2353
|
g(!0);
|
|
2354
2354
|
}, C = () => {
|
|
@@ -2356,9 +2356,9 @@ const U0 = "_sectionBar_1egwc_2", G0 = "_leftContent_1egwc_14", Y0 = "_textConta
|
|
|
2356
2356
|
};
|
|
2357
2357
|
((b, v) => {
|
|
2358
2358
|
const x = $e();
|
|
2359
|
-
|
|
2359
|
+
V(() => {
|
|
2360
2360
|
x.current = b;
|
|
2361
|
-
}, [b]),
|
|
2361
|
+
}, [b]), V(() => {
|
|
2362
2362
|
function w() {
|
|
2363
2363
|
x.current();
|
|
2364
2364
|
}
|
|
@@ -2368,7 +2368,7 @@ const U0 = "_sectionBar_1egwc_2", G0 = "_leftContent_1egwc_14", Y0 = "_textConta
|
|
|
2368
2368
|
}
|
|
2369
2369
|
}, [v]);
|
|
2370
2370
|
})(() => {
|
|
2371
|
-
h && (
|
|
2371
|
+
h && (l != 2050 ? (a(l + 1), c(we(l - 2e3 + 1))) : (a(2025), c(we(25))));
|
|
2372
2372
|
}, 1e3);
|
|
2373
2373
|
const _ = Ot({
|
|
2374
2374
|
palette: {
|
|
@@ -2398,7 +2398,7 @@ const U0 = "_sectionBar_1egwc_2", G0 = "_leftContent_1egwc_14", Y0 = "_textConta
|
|
|
2398
2398
|
{ label: "", value: 2041 },
|
|
2399
2399
|
{ label: "", value: 2050 }
|
|
2400
2400
|
];
|
|
2401
|
-
return /* @__PURE__ */ s(
|
|
2401
|
+
return /* @__PURE__ */ s(Pt, { theme: _, children: /* @__PURE__ */ m(
|
|
2402
2402
|
Rt,
|
|
2403
2403
|
{
|
|
2404
2404
|
sx: { width: 400 },
|
|
@@ -2410,7 +2410,7 @@ const U0 = "_sectionBar_1egwc_2", G0 = "_leftContent_1egwc_14", Y0 = "_textConta
|
|
|
2410
2410
|
It,
|
|
2411
2411
|
{
|
|
2412
2412
|
"aria-label": "TimeSlider",
|
|
2413
|
-
value:
|
|
2413
|
+
value: l,
|
|
2414
2414
|
valueLabelDisplay: "on",
|
|
2415
2415
|
step: 1,
|
|
2416
2416
|
marks: p,
|
|
@@ -2447,8 +2447,8 @@ const ln = "_TopNavMenuContainer_12mp4_2", cn = "_topNavOptions_12mp4_13", dn =
|
|
|
2447
2447
|
textColor: i = "white"
|
|
2448
2448
|
}) => {
|
|
2449
2449
|
const { t } = k();
|
|
2450
|
-
return /* @__PURE__ */ s("div", { className: xe.TopNavMenuContainer, style: { ...d }, children: n.map((r,
|
|
2451
|
-
|
|
2450
|
+
return /* @__PURE__ */ s("div", { className: xe.TopNavMenuContainer, style: { ...d }, children: n.map((r, l) => /* @__PURE__ */ s(
|
|
2451
|
+
Et,
|
|
2452
2452
|
{
|
|
2453
2453
|
to: r.url,
|
|
2454
2454
|
className: ({ isActive: a }) => `${xe.topNavOptions} ${a ? xe.active : ""} `,
|
|
@@ -2458,7 +2458,7 @@ const ln = "_TopNavMenuContainer_12mp4_2", cn = "_topNavOptions_12mp4_13", dn =
|
|
|
2458
2458
|
}),
|
|
2459
2459
|
children: t(r.name)
|
|
2460
2460
|
},
|
|
2461
|
-
|
|
2461
|
+
l
|
|
2462
2462
|
)) });
|
|
2463
2463
|
};
|
|
2464
2464
|
un.propTypes = {
|
|
@@ -2480,21 +2480,21 @@ const pn = "_LogInButton_1vxj5_2", mn = {
|
|
|
2480
2480
|
containerStyles: i,
|
|
2481
2481
|
userName: t = "",
|
|
2482
2482
|
isLoggedIn: r = !1,
|
|
2483
|
-
onClickLogIn:
|
|
2483
|
+
onClickLogIn: l = () => {
|
|
2484
2484
|
console.log("Login clicked");
|
|
2485
2485
|
},
|
|
2486
2486
|
onClickLogOut: a = () => {
|
|
2487
2487
|
console.log("Logout clicked");
|
|
2488
2488
|
}
|
|
2489
2489
|
}) => {
|
|
2490
|
-
const { t:
|
|
2490
|
+
const { t: c } = k();
|
|
2491
2491
|
return /* @__PURE__ */ s(
|
|
2492
2492
|
"div",
|
|
2493
2493
|
{
|
|
2494
2494
|
style: { ...i },
|
|
2495
2495
|
className: `${mn.LogInButton} link ${n}`,
|
|
2496
|
-
onClick: r ? a :
|
|
2497
|
-
children: r ? t ||
|
|
2496
|
+
onClick: r ? a : l,
|
|
2497
|
+
children: r ? t || c(o) : c(d)
|
|
2498
2498
|
}
|
|
2499
2499
|
);
|
|
2500
2500
|
};
|
|
@@ -2557,9 +2557,9 @@ const On = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2557
2557
|
activeColor: i,
|
|
2558
2558
|
fontColor: t,
|
|
2559
2559
|
moreInfo: r,
|
|
2560
|
-
columns:
|
|
2560
|
+
columns: l,
|
|
2561
2561
|
elementButtons: a,
|
|
2562
|
-
processTooltip:
|
|
2562
|
+
processTooltip: c,
|
|
2563
2563
|
defaultTooltip: u
|
|
2564
2564
|
}) => {
|
|
2565
2565
|
const { nom: h, created_at: g, id: y, isBeingProcessed: C } = n, [f, _] = S(!1), { t: p } = k();
|
|
@@ -2570,7 +2570,7 @@ const On = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2570
2570
|
style: { borderBottom: `1px solid ${t}` },
|
|
2571
2571
|
children: [
|
|
2572
2572
|
/* @__PURE__ */ m("div", { className: O.elementNameDate, onClick: () => d(y), children: [
|
|
2573
|
-
|
|
2573
|
+
l.nom && /* @__PURE__ */ s("div", { className: O.elementNameContainer, children: /* @__PURE__ */ m("div", { className: O.elementName, children: [
|
|
2574
2574
|
o ? /* @__PURE__ */ s(In, { style: { color: i, marginRight: 9 } }) : /* @__PURE__ */ s(
|
|
2575
2575
|
"img",
|
|
2576
2576
|
{
|
|
@@ -2580,14 +2580,14 @@ const On = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2580
2580
|
),
|
|
2581
2581
|
/* @__PURE__ */ s("span", { style: { color: o ? i : t }, children: h })
|
|
2582
2582
|
] }) }),
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2583
|
+
l.data && /* @__PURE__ */ s("div", { className: O.elementDate, children: g ? new Date(g).toLocaleDateString() : "" }),
|
|
2584
|
+
l.ambit && /* @__PURE__ */ s("div", { className: O.elementDate, children: n.ambit }),
|
|
2585
|
+
l.escenari && /* @__PURE__ */ s("div", { className: O.elementDate, children: n.escenari })
|
|
2586
2586
|
] }),
|
|
2587
2587
|
/* @__PURE__ */ m("div", { className: O.elementButtons, children: [
|
|
2588
2588
|
n.processing && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
2589
2589
|
/* @__PURE__ */ s("img", { src: Vn }),
|
|
2590
|
-
/* @__PURE__ */ s(Y, { text:
|
|
2590
|
+
/* @__PURE__ */ s(Y, { text: c, position: "left" })
|
|
2591
2591
|
] }),
|
|
2592
2592
|
a.filter && !n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
2593
2593
|
/* @__PURE__ */ s("button", { onClick: () => a.filter.onclick(n), children: /* @__PURE__ */ s("img", { src: $n }) }),
|
|
@@ -2660,10 +2660,10 @@ const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2660
2660
|
activeColor: i,
|
|
2661
2661
|
buttonContainerStyles: t = {},
|
|
2662
2662
|
containerStyles: r = {},
|
|
2663
|
-
newElementButton:
|
|
2663
|
+
newElementButton: l,
|
|
2664
2664
|
//{label: 'text', onClick: function()}/null
|
|
2665
2665
|
onClickElement: a = (C) => console.log(`OnCLickElement: ${C}`),
|
|
2666
|
-
columns:
|
|
2666
|
+
columns: c,
|
|
2667
2667
|
// {'nom': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
|
|
2668
2668
|
elementButtons: u,
|
|
2669
2669
|
//{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
|
|
@@ -2675,7 +2675,7 @@ const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2675
2675
|
//texto para el tooltip del símbolo de candado para los elementos default
|
|
2676
2676
|
}) => {
|
|
2677
2677
|
const { t: C } = k(), [f, _] = S(n);
|
|
2678
|
-
|
|
2678
|
+
V(() => {
|
|
2679
2679
|
n && _(n);
|
|
2680
2680
|
}, [n]);
|
|
2681
2681
|
const p = (b) => {
|
|
@@ -2697,16 +2697,16 @@ const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2697
2697
|
style: { borderBottom: `1px solid ${o}` },
|
|
2698
2698
|
children: [
|
|
2699
2699
|
/* @__PURE__ */ m("div", { className: q.nameDateContainer, children: [
|
|
2700
|
-
|
|
2701
|
-
/* @__PURE__ */ s("span", { children: C(
|
|
2700
|
+
c.nom && /* @__PURE__ */ s("div", { className: q.elementName, children: /* @__PURE__ */ m("button", { onClick: () => p("name"), children: [
|
|
2701
|
+
/* @__PURE__ */ s("span", { children: C(c.nom) }),
|
|
2702
2702
|
/* @__PURE__ */ s("img", { src: Ye })
|
|
2703
2703
|
] }) }),
|
|
2704
|
-
|
|
2705
|
-
/* @__PURE__ */ s("span", { children: C(
|
|
2704
|
+
c.data && /* @__PURE__ */ s("div", { className: q.elementDate, children: /* @__PURE__ */ m("button", { onClick: () => p("date"), children: [
|
|
2705
|
+
/* @__PURE__ */ s("span", { children: C(c.data) }),
|
|
2706
2706
|
/* @__PURE__ */ s("img", { src: Ye })
|
|
2707
2707
|
] }) }),
|
|
2708
|
-
|
|
2709
|
-
|
|
2708
|
+
c.ambit && /* @__PURE__ */ s("div", { className: q.elementDate, children: /* @__PURE__ */ s("span", { children: C(c.ambit) }) }),
|
|
2709
|
+
c.escenari && /* @__PURE__ */ s("div", { className: q.elementDate, children: /* @__PURE__ */ s("span", { children: C(c.escenari) }) })
|
|
2710
2710
|
] }),
|
|
2711
2711
|
/* @__PURE__ */ s("div", { className: q.buttonsContainer })
|
|
2712
2712
|
]
|
|
@@ -2720,7 +2720,7 @@ const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2720
2720
|
fontColor: o,
|
|
2721
2721
|
activeColor: i,
|
|
2722
2722
|
onClickElement: a,
|
|
2723
|
-
columns:
|
|
2723
|
+
columns: c,
|
|
2724
2724
|
elementButtons: u,
|
|
2725
2725
|
moreInfo: h,
|
|
2726
2726
|
processTooltip: g,
|
|
@@ -2728,13 +2728,13 @@ const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2728
2728
|
},
|
|
2729
2729
|
`elementKey${b.id}`
|
|
2730
2730
|
)) }),
|
|
2731
|
-
|
|
2731
|
+
l && /* @__PURE__ */ s("div", { className: q.newElementButtonContainer, children: /* @__PURE__ */ s(
|
|
2732
2732
|
ge,
|
|
2733
2733
|
{
|
|
2734
2734
|
style: { ...t },
|
|
2735
|
-
onClick:
|
|
2735
|
+
onClick: l.onClick,
|
|
2736
2736
|
borderColor: "grey",
|
|
2737
|
-
children: C(
|
|
2737
|
+
children: C(l.label)
|
|
2738
2738
|
}
|
|
2739
2739
|
) })
|
|
2740
2740
|
]
|
|
@@ -2792,9 +2792,9 @@ const pe = {
|
|
|
2792
2792
|
password: "password",
|
|
2793
2793
|
radioList: "radioList",
|
|
2794
2794
|
select: "select"
|
|
2795
|
-
},
|
|
2796
|
-
textInputContainer:
|
|
2797
|
-
labelContainer:
|
|
2795
|
+
}, Pn = "_textInputContainer_1o3iy_2", En = "_labelContainer_1o3iy_5", qn = "_inputContainer_1o3iy_8", zn = "_showPasswordButton_1o3iy_14", jn = "_forgotPassButton_1o3iy_26", oe = {
|
|
2796
|
+
textInputContainer: Pn,
|
|
2797
|
+
labelContainer: En,
|
|
2798
2798
|
inputContainer: qn,
|
|
2799
2799
|
showPasswordButton: zn,
|
|
2800
2800
|
forgotPassButton: jn
|
|
@@ -2820,50 +2820,50 @@ function mt(n) {
|
|
|
2820
2820
|
return n;
|
|
2821
2821
|
return d;
|
|
2822
2822
|
}
|
|
2823
|
-
var ht = (n) => /^\w*$/.test(n), Te = (n) => n === void 0,
|
|
2823
|
+
var ht = (n) => /^\w*$/.test(n), Te = (n) => n === void 0, Xn = (n) => Array.isArray(n) ? n.filter(Boolean) : [], gt = (n) => Xn(n.replace(/["|']|\]/g, "").split(/\.|\[/)), A = (n, d, o) => {
|
|
2824
2824
|
if (!d || !re(n))
|
|
2825
2825
|
return o;
|
|
2826
2826
|
const i = (ht(d) ? [d] : gt(d)).reduce((t, r) => pt(t) ? t : t[r], n);
|
|
2827
2827
|
return Te(i) || i === n ? Te(n[d]) ? o : n[d] : i;
|
|
2828
2828
|
}, ke = (n) => typeof n == "boolean", We = (n, d, o) => {
|
|
2829
2829
|
let i = -1;
|
|
2830
|
-
const t = ht(d) ? [d] : gt(d), r = t.length,
|
|
2830
|
+
const t = ht(d) ? [d] : gt(d), r = t.length, l = r - 1;
|
|
2831
2831
|
for (; ++i < r; ) {
|
|
2832
2832
|
const a = t[i];
|
|
2833
|
-
let
|
|
2834
|
-
if (i !==
|
|
2833
|
+
let c = o;
|
|
2834
|
+
if (i !== l) {
|
|
2835
2835
|
const u = n[a];
|
|
2836
|
-
|
|
2836
|
+
c = re(u) || Array.isArray(u) ? u : isNaN(+t[i + 1]) ? {} : [];
|
|
2837
2837
|
}
|
|
2838
2838
|
if (a === "__proto__" || a === "constructor" || a === "prototype")
|
|
2839
2839
|
return;
|
|
2840
|
-
n[a] =
|
|
2840
|
+
n[a] = c, n = n[a];
|
|
2841
2841
|
}
|
|
2842
2842
|
};
|
|
2843
2843
|
const Qe = {
|
|
2844
2844
|
BLUR: "blur",
|
|
2845
2845
|
CHANGE: "change"
|
|
2846
|
-
},
|
|
2846
|
+
}, Xe = {
|
|
2847
2847
|
all: "all"
|
|
2848
2848
|
}, Ct = B.createContext(null);
|
|
2849
2849
|
Ct.displayName = "HookFormContext";
|
|
2850
2850
|
const Re = () => B.useContext(Ct);
|
|
2851
|
-
var
|
|
2851
|
+
var Jn = (n, d, o, i = !0) => {
|
|
2852
2852
|
const t = {
|
|
2853
2853
|
defaultValues: d._defaultValues
|
|
2854
2854
|
};
|
|
2855
2855
|
for (const r in n)
|
|
2856
2856
|
Object.defineProperty(t, r, {
|
|
2857
2857
|
get: () => {
|
|
2858
|
-
const
|
|
2859
|
-
return d._proxyFormState[
|
|
2858
|
+
const l = r;
|
|
2859
|
+
return d._proxyFormState[l] !== Xe.all && (d._proxyFormState[l] = !i || Xe.all), o && (o[l] = !0), n[l];
|
|
2860
2860
|
}
|
|
2861
2861
|
});
|
|
2862
2862
|
return t;
|
|
2863
2863
|
};
|
|
2864
2864
|
const ft = typeof window < "u" ? te.useLayoutEffect : te.useEffect;
|
|
2865
2865
|
function e1(n) {
|
|
2866
|
-
const d = Re(), { control: o = d.control, disabled: i, name: t, exact: r } = n || {}, [
|
|
2866
|
+
const d = Re(), { control: o = d.control, disabled: i, name: t, exact: r } = n || {}, [l, a] = B.useState(o._formState), c = B.useRef({
|
|
2867
2867
|
isDirty: !1,
|
|
2868
2868
|
isLoading: !1,
|
|
2869
2869
|
dirtyFields: !1,
|
|
@@ -2875,7 +2875,7 @@ function e1(n) {
|
|
|
2875
2875
|
});
|
|
2876
2876
|
return ft(() => o._subscribe({
|
|
2877
2877
|
name: t,
|
|
2878
|
-
formState:
|
|
2878
|
+
formState: c.current,
|
|
2879
2879
|
exact: r,
|
|
2880
2880
|
callback: (u) => {
|
|
2881
2881
|
!i && a({
|
|
@@ -2884,28 +2884,28 @@ function e1(n) {
|
|
|
2884
2884
|
});
|
|
2885
2885
|
}
|
|
2886
2886
|
}), [t, i, r]), B.useEffect(() => {
|
|
2887
|
-
|
|
2888
|
-
}, [o]), B.useMemo(() =>
|
|
2887
|
+
c.current.isValid && o._setValid(!0);
|
|
2888
|
+
}, [o]), B.useMemo(() => Jn(l, o, c.current, !1), [l, o]);
|
|
2889
2889
|
}
|
|
2890
2890
|
var t1 = (n) => typeof n == "string", n1 = (n, d, o, i, t) => t1(n) ? A(o, n, t) : Array.isArray(n) ? n.map((r) => A(o, r)) : o;
|
|
2891
2891
|
function i1(n) {
|
|
2892
|
-
const d = Re(), { control: o = d.control, name: i, defaultValue: t, disabled: r, exact:
|
|
2892
|
+
const d = Re(), { control: o = d.control, name: i, defaultValue: t, disabled: r, exact: l } = n || {}, a = B.useRef(t), [c, u] = B.useState(o._getWatch(i, a.current));
|
|
2893
2893
|
return ft(() => o._subscribe({
|
|
2894
2894
|
name: i,
|
|
2895
2895
|
formState: {
|
|
2896
2896
|
values: !0
|
|
2897
2897
|
},
|
|
2898
|
-
exact:
|
|
2898
|
+
exact: l,
|
|
2899
2899
|
callback: (h) => !r && u(n1(i, o._names, h.values || o._formValues, !1, a.current))
|
|
2900
|
-
}), [i, o, r,
|
|
2900
|
+
}), [i, o, r, l]), B.useEffect(() => o._removeUnmounted()), c;
|
|
2901
2901
|
}
|
|
2902
2902
|
function o1(n) {
|
|
2903
|
-
const d = Re(), { name: o, disabled: i, control: t = d.control, shouldUnregister: r } = n,
|
|
2903
|
+
const d = Re(), { name: o, disabled: i, control: t = d.control, shouldUnregister: r } = n, l = Yn(t._names.array, o), a = i1({
|
|
2904
2904
|
control: t,
|
|
2905
2905
|
name: o,
|
|
2906
2906
|
defaultValue: A(t._formValues, o, A(t._defaultValues, o, n.defaultValue)),
|
|
2907
2907
|
exact: !0
|
|
2908
|
-
}),
|
|
2908
|
+
}), c = e1({
|
|
2909
2909
|
control: t,
|
|
2910
2910
|
name: o,
|
|
2911
2911
|
exact: !0
|
|
@@ -2916,25 +2916,25 @@ function o1(n) {
|
|
|
2916
2916
|
})), g = B.useMemo(() => Object.defineProperties({}, {
|
|
2917
2917
|
invalid: {
|
|
2918
2918
|
enumerable: !0,
|
|
2919
|
-
get: () => !!A(
|
|
2919
|
+
get: () => !!A(c.errors, o)
|
|
2920
2920
|
},
|
|
2921
2921
|
isDirty: {
|
|
2922
2922
|
enumerable: !0,
|
|
2923
|
-
get: () => !!A(
|
|
2923
|
+
get: () => !!A(c.dirtyFields, o)
|
|
2924
2924
|
},
|
|
2925
2925
|
isTouched: {
|
|
2926
2926
|
enumerable: !0,
|
|
2927
|
-
get: () => !!A(
|
|
2927
|
+
get: () => !!A(c.touchedFields, o)
|
|
2928
2928
|
},
|
|
2929
2929
|
isValidating: {
|
|
2930
2930
|
enumerable: !0,
|
|
2931
|
-
get: () => !!A(
|
|
2931
|
+
get: () => !!A(c.validatingFields, o)
|
|
2932
2932
|
},
|
|
2933
2933
|
error: {
|
|
2934
2934
|
enumerable: !0,
|
|
2935
|
-
get: () => A(
|
|
2935
|
+
get: () => A(c.errors, o)
|
|
2936
2936
|
}
|
|
2937
|
-
}), [
|
|
2937
|
+
}), [c, o]), y = B.useCallback((p) => h.current.onChange({
|
|
2938
2938
|
target: {
|
|
2939
2939
|
value: Un(p),
|
|
2940
2940
|
name: o
|
|
@@ -2957,11 +2957,11 @@ function o1(n) {
|
|
|
2957
2957
|
}, [t._fields, o]), _ = B.useMemo(() => ({
|
|
2958
2958
|
name: o,
|
|
2959
2959
|
value: a,
|
|
2960
|
-
...ke(i) ||
|
|
2960
|
+
...ke(i) || c.disabled ? { disabled: c.disabled || i } : {},
|
|
2961
2961
|
onChange: y,
|
|
2962
2962
|
onBlur: C,
|
|
2963
2963
|
ref: f
|
|
2964
|
-
}), [o, i,
|
|
2964
|
+
}), [o, i, c.disabled, y, C, f, a]);
|
|
2965
2965
|
return B.useEffect(() => {
|
|
2966
2966
|
const p = t._options.shouldUnregister || r;
|
|
2967
2967
|
t.register(o, {
|
|
@@ -2976,21 +2976,21 @@ function o1(n) {
|
|
|
2976
2976
|
const v = mt(A(t._options.defaultValues, o));
|
|
2977
2977
|
We(t._defaultValues, o, v), Te(A(t._formValues, o)) && We(t._formValues, o, v);
|
|
2978
2978
|
}
|
|
2979
|
-
return !
|
|
2980
|
-
(
|
|
2979
|
+
return !l && t.register(o), () => {
|
|
2980
|
+
(l ? p && !t._state.action : p) ? t.unregister(o) : b(o, !1);
|
|
2981
2981
|
};
|
|
2982
|
-
}, [o, t,
|
|
2982
|
+
}, [o, t, l, r]), B.useEffect(() => {
|
|
2983
2983
|
t._setDisabledField({
|
|
2984
2984
|
disabled: i,
|
|
2985
2985
|
name: o
|
|
2986
2986
|
});
|
|
2987
2987
|
}, [i, o, t]), B.useMemo(() => ({
|
|
2988
2988
|
field: _,
|
|
2989
|
-
formState:
|
|
2989
|
+
formState: c,
|
|
2990
2990
|
fieldState: g
|
|
2991
|
-
}), [_,
|
|
2991
|
+
}), [_, c, g]);
|
|
2992
2992
|
}
|
|
2993
|
-
const
|
|
2993
|
+
const Pe = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
2994
2994
|
errorMessage: s1
|
|
2995
2995
|
}, Ce = ({
|
|
2996
2996
|
errorMessage: n,
|
|
@@ -3006,15 +3006,15 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3006
3006
|
children: n ? i(n) : ""
|
|
3007
3007
|
}
|
|
3008
3008
|
);
|
|
3009
|
-
},
|
|
3009
|
+
}, Je = ({ input: n, control: d }) => {
|
|
3010
3010
|
const {
|
|
3011
3011
|
code: o,
|
|
3012
3012
|
type: i,
|
|
3013
3013
|
label: t,
|
|
3014
3014
|
maxLength: r,
|
|
3015
|
-
required:
|
|
3015
|
+
required: l,
|
|
3016
3016
|
validateFunction: a,
|
|
3017
|
-
placeholder:
|
|
3017
|
+
placeholder: c,
|
|
3018
3018
|
errorColor: u = "red",
|
|
3019
3019
|
width: h = 325,
|
|
3020
3020
|
onClickForgotPass: g = () => {
|
|
@@ -3023,12 +3023,12 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3023
3023
|
forgotPassLabel: y = "forgot-password"
|
|
3024
3024
|
} = n, { t: C } = k(), [f, _] = S(!1), p = () => i ? i === "password" && f ? "text" : i : "text";
|
|
3025
3025
|
return /* @__PURE__ */ s(
|
|
3026
|
-
|
|
3026
|
+
Pe,
|
|
3027
3027
|
{
|
|
3028
3028
|
name: o,
|
|
3029
3029
|
control: d,
|
|
3030
3030
|
rules: {
|
|
3031
|
-
required:
|
|
3031
|
+
required: l ? `${C(t)} ${C("errorMessages.required")}` : !1,
|
|
3032
3032
|
maxLength: r || void 0,
|
|
3033
3033
|
validate: a || void 0
|
|
3034
3034
|
},
|
|
@@ -3038,7 +3038,7 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3038
3038
|
/* @__PURE__ */ m("h3", { className: oe.labelContainer, children: [
|
|
3039
3039
|
C(t),
|
|
3040
3040
|
" ",
|
|
3041
|
-
|
|
3041
|
+
l && /* @__PURE__ */ s("label", { style: { color: v.error ? u : "" }, children: "*" })
|
|
3042
3042
|
] }),
|
|
3043
3043
|
/* @__PURE__ */ m(
|
|
3044
3044
|
"div",
|
|
@@ -3051,7 +3051,7 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3051
3051
|
{
|
|
3052
3052
|
type: p(),
|
|
3053
3053
|
...b,
|
|
3054
|
-
placeholder:
|
|
3054
|
+
placeholder: c ? C(c) : "",
|
|
3055
3055
|
maxLength: r || void 0
|
|
3056
3056
|
}
|
|
3057
3057
|
),
|
|
@@ -3098,20 +3098,20 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3098
3098
|
type: i,
|
|
3099
3099
|
label: t,
|
|
3100
3100
|
maxLength: r,
|
|
3101
|
-
required:
|
|
3101
|
+
required: l,
|
|
3102
3102
|
validateFunction: a,
|
|
3103
|
-
placeholder:
|
|
3103
|
+
placeholder: c,
|
|
3104
3104
|
errorColor: u = "red",
|
|
3105
3105
|
width: h = 325,
|
|
3106
3106
|
options: g = []
|
|
3107
3107
|
} = n, { t: y } = k();
|
|
3108
|
-
return
|
|
3109
|
-
|
|
3108
|
+
return /* @__PURE__ */ s(
|
|
3109
|
+
Pe,
|
|
3110
3110
|
{
|
|
3111
3111
|
name: o,
|
|
3112
3112
|
control: d,
|
|
3113
3113
|
rules: {
|
|
3114
|
-
required:
|
|
3114
|
+
required: l ? `${y(t)} ${y("errorMessages.required")}` : !1,
|
|
3115
3115
|
validate: a || void 0
|
|
3116
3116
|
},
|
|
3117
3117
|
render: ({ field: C, fieldState: f }) => {
|
|
@@ -3120,7 +3120,7 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3120
3120
|
/* @__PURE__ */ m("h3", { className: ee.labelContainer, children: [
|
|
3121
3121
|
y(t),
|
|
3122
3122
|
" ",
|
|
3123
|
-
|
|
3123
|
+
l && /* @__PURE__ */ s("label", { style: { color: f.error ? u : "" }, children: "*" })
|
|
3124
3124
|
] }),
|
|
3125
3125
|
/* @__PURE__ */ m("div", { className: ee.inputContainer, style: { width: h }, children: [
|
|
3126
3126
|
/* @__PURE__ */ m(
|
|
@@ -3133,7 +3133,7 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3133
3133
|
},
|
|
3134
3134
|
className: ee.selectInput,
|
|
3135
3135
|
children: [
|
|
3136
|
-
/* @__PURE__ */ s("option", { value: "", disabled: !0, hidden: !0, children: y(
|
|
3136
|
+
/* @__PURE__ */ s("option", { value: "", disabled: !0, hidden: !0, children: y(c || "selectOption") }),
|
|
3137
3137
|
g.map((p, b) => /* @__PURE__ */ s(
|
|
3138
3138
|
"option",
|
|
3139
3139
|
{
|
|
@@ -3180,9 +3180,9 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3180
3180
|
type: i,
|
|
3181
3181
|
label: t,
|
|
3182
3182
|
maxLength: r,
|
|
3183
|
-
required:
|
|
3183
|
+
required: l,
|
|
3184
3184
|
validateFunction: a,
|
|
3185
|
-
placeholder:
|
|
3185
|
+
placeholder: c,
|
|
3186
3186
|
errorColor: u = "red",
|
|
3187
3187
|
width: h = 325,
|
|
3188
3188
|
options: g = [],
|
|
@@ -3196,12 +3196,12 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3196
3196
|
y ? v && v.length > 0 ? b([...v, p]) : b([p]) : b(p);
|
|
3197
3197
|
};
|
|
3198
3198
|
return /* @__PURE__ */ s(
|
|
3199
|
-
|
|
3199
|
+
Pe,
|
|
3200
3200
|
{
|
|
3201
3201
|
control: d,
|
|
3202
3202
|
name: o,
|
|
3203
3203
|
rules: {
|
|
3204
|
-
validate: (p) =>
|
|
3204
|
+
validate: (p) => l && (p == null || p === "") ? `${C(t)} ${C("errorMessages.required")}` : null
|
|
3205
3205
|
},
|
|
3206
3206
|
render: ({
|
|
3207
3207
|
formState: { errors: p },
|
|
@@ -3214,7 +3214,7 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3214
3214
|
"h3",
|
|
3215
3215
|
{
|
|
3216
3216
|
htmlFor: o + "id",
|
|
3217
|
-
className: `${U.radioQuestion} ${
|
|
3217
|
+
className: `${U.radioQuestion} ${l && U.required}`,
|
|
3218
3218
|
children: C(t)
|
|
3219
3219
|
}
|
|
3220
3220
|
) }),
|
|
@@ -3225,16 +3225,16 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3225
3225
|
value: z,
|
|
3226
3226
|
disabled: ae = !1,
|
|
3227
3227
|
italicLabel: le
|
|
3228
|
-
},
|
|
3229
|
-
const
|
|
3230
|
-
return
|
|
3228
|
+
}, R) => {
|
|
3229
|
+
const P = x && y ? x.isArray && (x == null ? void 0 : x.length) > 0 && x.some((E) => E === z) : x === z;
|
|
3230
|
+
return /* @__PURE__ */ m("label", { children: [
|
|
3231
3231
|
/* @__PURE__ */ s(
|
|
3232
3232
|
"input",
|
|
3233
3233
|
{
|
|
3234
3234
|
type: "radio",
|
|
3235
|
-
checked:
|
|
3235
|
+
checked: P,
|
|
3236
3236
|
onChange: () => {
|
|
3237
|
-
y ?
|
|
3237
|
+
y ? P ? f({
|
|
3238
3238
|
actualValue: x,
|
|
3239
3239
|
options: g,
|
|
3240
3240
|
onChange: b
|
|
@@ -3268,13 +3268,13 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3268
3268
|
const { inputType: r } = i;
|
|
3269
3269
|
switch (r) {
|
|
3270
3270
|
case pe.text:
|
|
3271
|
-
const { code:
|
|
3271
|
+
const { code: l, type: a, label: c, maxLength: u, required: h, validateFunction: g } = i;
|
|
3272
3272
|
return /* @__PURE__ */ s(
|
|
3273
3273
|
"div",
|
|
3274
3274
|
{
|
|
3275
3275
|
className: se.inputContainer,
|
|
3276
3276
|
style: { ...o },
|
|
3277
|
-
children: /* @__PURE__ */ s(
|
|
3277
|
+
children: /* @__PURE__ */ s(Je, { input: i, control: d })
|
|
3278
3278
|
}
|
|
3279
3279
|
);
|
|
3280
3280
|
case pe.password:
|
|
@@ -3283,7 +3283,7 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3283
3283
|
{
|
|
3284
3284
|
className: se.inputContainer,
|
|
3285
3285
|
style: { ...o },
|
|
3286
|
-
children: /* @__PURE__ */ s(
|
|
3286
|
+
children: /* @__PURE__ */ s(Je, { input: i, control: d })
|
|
3287
3287
|
}
|
|
3288
3288
|
);
|
|
3289
3289
|
case pe.select:
|
|
@@ -3317,9 +3317,9 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3317
3317
|
inputContainerStyles: i,
|
|
3318
3318
|
generalError: t,
|
|
3319
3319
|
errorColor: r = "red",
|
|
3320
|
-
submitButtonLabel:
|
|
3320
|
+
submitButtonLabel: l = "Submit",
|
|
3321
3321
|
submitButtonStyles: a = { width: 325 },
|
|
3322
|
-
activeCategory:
|
|
3322
|
+
activeCategory: c = null,
|
|
3323
3323
|
// If provided, only the category with this categoryId will be displayed.
|
|
3324
3324
|
onSubmit: u = (h) => console.log("Form submitted with data: ", h)
|
|
3325
3325
|
}) => {
|
|
@@ -3329,11 +3329,7 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3329
3329
|
watch: y,
|
|
3330
3330
|
control: C,
|
|
3331
3331
|
formState: { errors: f }
|
|
3332
|
-
} = n;
|
|
3333
|
-
T(() => {
|
|
3334
|
-
console.log("Errors ", f);
|
|
3335
|
-
}, [JSON.stringify(f)]);
|
|
3336
|
-
const { t: _ } = k();
|
|
3332
|
+
} = n, { t: _ } = k();
|
|
3337
3333
|
return (
|
|
3338
3334
|
/* "handleSubmit" will validate your inputs before invoking "onSubmit" */
|
|
3339
3335
|
/* @__PURE__ */ m("form", { className: Ne.formContainer, onSubmit: g(u), children: [
|
|
@@ -3343,7 +3339,7 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3343
3339
|
"div",
|
|
3344
3340
|
{
|
|
3345
3341
|
style: {
|
|
3346
|
-
display:
|
|
3342
|
+
display: c && p.categoryId !== c ? "none" : "inherit",
|
|
3347
3343
|
width: "100%"
|
|
3348
3344
|
},
|
|
3349
3345
|
children: /* @__PURE__ */ s(
|
|
@@ -3368,7 +3364,7 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3368
3364
|
{
|
|
3369
3365
|
style: {
|
|
3370
3366
|
width: "100%",
|
|
3371
|
-
display:
|
|
3367
|
+
display: c && p.categoryId !== c ? "none" : "flex",
|
|
3372
3368
|
flexDirection: "column"
|
|
3373
3369
|
},
|
|
3374
3370
|
children: [
|
|
@@ -3396,7 +3392,7 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3396
3392
|
) }, `inputKey${b}`);
|
|
3397
3393
|
}) }),
|
|
3398
3394
|
/* @__PURE__ */ m("div", { className: Ne.buttonContainer, children: [
|
|
3399
|
-
/* @__PURE__ */ s(ge, { containerStyles: a, type: "submit", children: _(
|
|
3395
|
+
/* @__PURE__ */ s(ge, { containerStyles: a, type: "submit", children: _(l) }),
|
|
3400
3396
|
/* @__PURE__ */ s(Ce, { errorMessage: t, errorColor: r })
|
|
3401
3397
|
] })
|
|
3402
3398
|
] })
|
|
@@ -3414,7 +3410,7 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3414
3410
|
rightComponents: i = [],
|
|
3415
3411
|
zIndex: t = 10,
|
|
3416
3412
|
height: r = 60,
|
|
3417
|
-
backgroundColor:
|
|
3413
|
+
backgroundColor: l = "#605B56",
|
|
3418
3414
|
isFooter: a = !1
|
|
3419
3415
|
// If true, it will apply footer styles
|
|
3420
3416
|
}) => /* @__PURE__ */ m(
|
|
@@ -3425,14 +3421,14 @@ const Ee = (n) => n.render(o1(n)), s1 = "_errorMessage_1xiyb_2", r1 = {
|
|
|
3425
3421
|
...n,
|
|
3426
3422
|
zIndex: t,
|
|
3427
3423
|
height: r,
|
|
3428
|
-
backgroundColor:
|
|
3424
|
+
backgroundColor: l,
|
|
3429
3425
|
top: a ? "auto" : 0,
|
|
3430
3426
|
bottom: a ? 0 : "auto"
|
|
3431
3427
|
},
|
|
3432
3428
|
children: [
|
|
3433
|
-
/* @__PURE__ */ s("div", { className: G.leftComponents, children: d.map((
|
|
3434
|
-
/* @__PURE__ */ s("div", { className: G.centerComponents, children: o.map((
|
|
3435
|
-
/* @__PURE__ */ s("div", { className: G.rightComponents, children: i.map((
|
|
3429
|
+
/* @__PURE__ */ s("div", { className: G.leftComponents, children: d.map((c, u) => /* @__PURE__ */ s("div", { className: G.componentsContainer, children: c }, u)) }),
|
|
3430
|
+
/* @__PURE__ */ s("div", { className: G.centerComponents, children: o.map((c, u) => /* @__PURE__ */ s("div", { className: G.componentsContainer, children: c }, u)) }),
|
|
3431
|
+
/* @__PURE__ */ s("div", { className: G.rightComponents, children: i.map((c, u) => /* @__PURE__ */ s("div", { className: G.componentsContainer, children: c }, u)) })
|
|
3436
3432
|
]
|
|
3437
3433
|
}
|
|
3438
3434
|
);
|
|
@@ -3494,13 +3490,13 @@ export {
|
|
|
3494
3490
|
Rn as ListSelector,
|
|
3495
3491
|
hn as LogInButton,
|
|
3496
3492
|
O0 as LogoApp,
|
|
3497
|
-
|
|
3493
|
+
E0 as MapboxMap,
|
|
3498
3494
|
K0 as MaplibreMap,
|
|
3499
3495
|
B1 as RadioButtonInput,
|
|
3500
3496
|
R1 as RightSidebar,
|
|
3501
3497
|
ii as SectionBar,
|
|
3502
3498
|
b1 as SelectInput,
|
|
3503
|
-
|
|
3499
|
+
Je as TextInput,
|
|
3504
3500
|
an as TimeSlider,
|
|
3505
3501
|
Y as Tooltip,
|
|
3506
3502
|
un as TopNavMenu
|