@tmf_ciclica/ciclicastorybook 1.1.127 → 1.1.128
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 +7 -7
- package/dist/index.es.js +915 -936
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";@import"https://unpkg.com/maplibre-gl@^5.3.0/dist/maplibre-gl.css";@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap";._ambitSelector_mcunf_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;height:100%;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39{font-size:18px;font-weight:600;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53{font-size:18px;font-weight:600;flex:.5}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._buttonsContainer_mcunf_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._ambitListContainer_mcunf_76{flex:1;width:100%}._ambitSelector_mcunf_2 ._newAmbitButtonContainer_mcunf_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px}._ambitItem_1qa6u_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:10px;width:100%;padding-bottom:30px;padding-top:30px}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitName_1qa6u_16{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;flex:1}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitDate_1qa6u_35{flex:.5}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38 button:disabled{opacity:.5;cursor:default}._generalButton_phq4n_2{padding:5px 95px;border-radius:100px}._generalButton_phq4n_2:disabled{opacity:.6}._buttonsContainer_1ks7x_2{display:flex;gap:8px}._buttonsContainer_1ks7x_2._vertical_1ks7x_6{flex-direction:column}._buttonsContainer_1ks7x_2._horizontal_1ks7x_9{flex-direction:row}._button_1ks7x_2{background:transparent;border:none;display:flex;align-items:center;cursor:pointer;padding:4px;position:relative}._button_1ks7x_2:hover{opacity:.8}._button_1ks7x_2._active_1ks7x_25{font-weight:700}._button_1ks7x_2 ._buttonName_1ks7x_28{margin:0 4px}._button_1ks7x_2:disabled{opacity:.5!important;cursor:auto}._left_1l4m4_2{position:absolute;width:auto;bottom:50%;right:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000}._left_1l4m4_2:before{content:"";position:absolute;top:50%;left:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent transparent #ccc;z-index:-2}._left_1l4m4_2:after{content:"";position:absolute;top:50%;left:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent transparent #fff;z-index:-1}._top_1l4m4_40{position:absolute;width:auto;bottom:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._top_1l4m4_40:before{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:#ccc transparent transparent transparent;z-index:-2}._top_1l4m4_40:after{content:"";position:absolute;top:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:#fff transparent transparent transparent;z-index:-1}._bottom_1l4m4_79{position:absolute;width:auto;top:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._bottom_1l4m4_79:before{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent #ccc transparent;z-index:-2}._bottom_1l4m4_79:after{content:"";position:absolute;bottom:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent #fff transparent;z-index:-1}._right_1l4m4_118{position:absolute;width:auto;bottom:50%;left:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:20px;margin:0;white-space:nowrap;color:#000;z-index:10}._right_1l4m4_118:before{content:"";position:absolute;top:50%;right:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent #ccc transparent transparent;z-index:-2}._right_1l4m4_118:after{content:"";position:absolute;top:50%;right:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent #fff transparent transparent;z-index:-1}._AppliedFiltersContainer_cokx9_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start;flex-wrap:wrap}._AppliedFiltersContainer_cokx9_2 ._AppliedFilterContent_cokx9_11{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:row;align-items:center;font-size:16px;font-weight:400;height:35px;width:fit-content;padding:0 20px;border-radius:100px}._checkboxContainer_zld97_2{display:flex;align-items:center;gap:.5rem;font-size:14px;font-weight:400;cursor:pointer}._checkboxContainer_zld97_2 input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:10px;height:10px;border-radius:1px;background-color:#fff;cursor:pointer}._container_15vgv_2{padding-top:15px;font-size:14px}._container_15vgv_2 span{font-size:14px}._container_15vgv_2 ._unitLabel_15vgv_9{height:40px}._container_15vgv_2 ._slider_15vgv_12{height:6px;background-color:#ddd;border-radius:3px;position:relative}._container_15vgv_2 ._thumb_15vgv_18{height:20px;width:20px;background-color:#605b56;border-radius:50%;cursor:grab;top:-7px;position:absolute}._container_15vgv_2 ._track_15vgv_27{top:0;bottom:0;background:#605b56;border-radius:3px}._container_15vgv_2 ._labels_15vgv_33{display:flex;justify-content:space-between;font-size:14px;margin-top:10px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px;padding-bottom:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 label,._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input{cursor:pointer;font-size:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input[type=radio]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background-color:#fff;transition:background-color .2s ease;cursor:pointer;vertical-align:middle}._tematicalFiltersInputContainer_1vm1r_2 ._checkboxContainer_1vm1r_28{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px}._tematicalFiltersInputContainer_1vm1r_2 ._absoluteSliderContainer_1vm1r_37{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:flex-start}._FiltersAmbitContainer_1g9xx_2{width:100%;height:100%;padding:28.5px 0 0 24px}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7{display:flex;flex-wrap:nowrap;justify-content:start;gap:30px;flex-direction:column;align-items:start}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitTitle_1g9xx_15{font-size:18px;font-weight:600;padding:0 0 26px;border-bottom:1.5px solid #605B56;width:100%}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitDescription_1g9xx_22{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:column;align-items:start;padding:0 0 26px;font-size:16px;font-weight:400}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitDescription_1g9xx_22 ._FiltersAmbitDescriptionTitle_1g9xx_33{font-size:18px;font-weight:600}._FiltersAmbitContainer_1g9xx_2 ._warning_1g9xx_37{color:red}._barChartContainer_d2f1z_2{height:100%;width:100%;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._graphicContainer_c9zrg_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;width:100%;border:1.5px solid black;padding:33px 50px;border-radius:20px}._graphicContainer_c9zrg_2 ._titleContainer_c9zrg_14{display:flex;flex-wrap:nowrap;gap:0;flex-direction:row;align-items:center;justify-content:center;margin-bottom:83px}._indicatorsCategory_1cu33_2{overflow:hidden}._indicatorsCategory_1cu33_2 ._title_1cu33_5{align-items:center;gap:10px;cursor:pointer;margin-bottom:25px}._indicatorsCategory_1cu33_2 ._list_1cu33_11{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._indicatorContainer_1go6h_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:center;gap:10px}._indicatorContainer_1go6h_2 ._indicatorNameContainer_1go6h_11{gap:10px;display:grid;grid-template-columns:15px auto;align-items:center}._indicatorContainer_1go6h_2 ._dot_1go6h_17{border-radius:100px;width:16px;height:16px}._indicatorContainer_1go6h_2 ._indicatorName_1go6h_11{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_1go6h_28{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:20px 0 0}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37{margin:0;width:100%}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:10px;cursor:pointer}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52 ._customRadious_1go6h_62{width:16px;height:16px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52 ._optionText_1go6h_69{font-weight:400}._indicatorsSubCategory_1dzsi_2{overflow:hidden}._indicatorsSubCategory_1dzsi_2 h3{text-align:left}._indicatorsSubCategory_1dzsi_2 ._list_1dzsi_8{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:start;margin:20px 0;gap:20px}._indicatorsList_fklyu_2{width:100%;padding-left:30px}._indicatorsList_fklyu_2 ._title_fklyu_6{border-bottom:1px solid;padding-bottom:25px;margin-bottom:32px}._langSelector_o9enq_2{position:relative;width:fit-content;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;height:100%}._currentLang_o9enq_14{color:#404040;cursor:pointer;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:5px;text-transform:capitalize}._currentLang_o9enq_14 ._arrow_o9enq_26{width:10px}._currentLang_o9enq_14 ._prevImg_o9enq_29{width:20px}._langMenu_o9enq_33{position:absolute;width:80px;background:#000!important;border-radius:8px}._langMenu_o9enq_33 button{cursor:pointer;background:#000!important;color:#ccc;width:100%;padding:4px 8px;text-align:left}._langMenu_o9enq_33 button:first-child{border-radius:8px 8px 0 0}._langMenu_o9enq_33 button:last-child{border-radius:0 0 8px 8px}._langMenu_o9enq_33 button:hover{color:#cbcbcb;background-color:#fafafa!important}._legendContainer_qs4x9_3{width:402px;background-color:#fdfdfd;color:#605b56;border:solid 1.5px #605b56;border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:flexStart;padding:20px;position:relative;overflow-y:scroll}._legendContainer_qs4x9_3::-webkit-scrollbar{width:8px}._legendContainer_qs4x9_3::-webkit-scrollbar-track{background:transparent;margin:5px 0}._legendContainer_qs4x9_3::-webkit-scrollbar-thumb{background-color:#ebebeb;border-radius:20px}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31{position:absolute;right:20px;top:20px;width:24px;height:24px;border:none;background:transparent;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:before,._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:after{content:"";position:absolute;width:16px;height:2px;background-color:#333}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:before{transform:rotate(45deg)}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:after{transform:rotate(-45deg)}._legendContainer_qs4x9_3 ._titleContainer_qs4x9_59{border-bottom:solid 1.5px #605b56}._legendContainer_qs4x9_3 ._titleContainer_qs4x9_59 h2{padding-bottom:16px}._legendContainer_qs4x9_3 ._infoContainer_qs4x9_65{padding-top:20px}._legendContainer_qs4x9_3 ._infoContainer_qs4x9_65 ul li{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:row;align-items:center}._legendContainer_qs4x9_3 ._titleLegendList_qs4x9_76{font-size:20px;padding-bottom:20px;margin-bottom:20px;border-bottom:solid 1.5px #605b56}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._gridContainer_qs4x9_82{display:grid;grid-template-columns:auto;column-gap:20px;row-gap:15px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._gridContainer_qs4x9_82 ._elementLegendContainer_qs4x9_88{display:grid;grid-template-columns:23px auto;align-items:center;gap:5px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._gridContainer_qs4x9_82 ._elementLegendContainer_qs4x9_88 ._colorDot_qs4x9_94{width:22px;height:22px;border-radius:50%;margin-right:10px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._absoluteValueContainer_qs4x9_100{position:relative}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._absoluteValueContainer_qs4x9_100 ._absoluteValueColor_qs4x9_103{height:130px;width:22px;border-radius:20px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._absoluteValueContainer_qs4x9_100 ._absoluteValueText_qs4x9_108{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:flex-start;position:absolute;left:30px;top:0;height:100%}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._noDataContainer_qs4x9_120{position:relative;margin-top:10px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._noDataContainer_qs4x9_120 ._noData_qs4x9_120{height:22px;width:22px;border-radius:20px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._noDataContainer_qs4x9_120 ._absoluteValueText_qs4x9_108{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:flex-start;position:absolute;left:30px;top:0;height:100%}._legendContainer_qs4x9_3 ._moreInfoContainer_qs4x9_141{margin-top:30px;padding:8.5px 20px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;border:1.5px solid #605b56;border-radius:25px;font-size:16px;font-weight:600}._logo_1ewa6_2{padding:10px;height:100%}._logo_1ewa6_2 img{height:100%}._mapContainer_84pkf_2{width:100vw;height:100vh}._mapContainer_b0pyr_3{width:100vw;height:100vh;position:absolute;top:0;z-index:0}._FeaturePopUp_mt8l5_2{padding:15px;color:#92898a}._FeaturePopUp_mt8l5_2 p{margin-bottom:10px}._FeaturePopUp_mt8l5_2 ._title_mt8l5_9{font-weight:600;margin-right:5px;color:#92898a}._sectionBar_1egwc_2{height:70px;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid black;transition:width .3s ease}._leftContent_1egwc_14{display:flex;align-items:center;gap:12px}._textContainer_1egwc_20{display:flex;flex-direction:row;align-items:center;gap:8px}._title_1egwc_27{font-size:16px;font-weight:600;color:#000}._subtitle_1egwc_33{font-size:16px;color:#000}._rightContent_1egwc_38{display:flex;align-items:center;gap:8px}._slider_a19yo_2{position:absolute;padding:5px 20px;right:150px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;top:188px;transition:all .5s ease-out}._slider_a19yo_2 ._playButton_a19yo_17,._slider_a19yo_2 ._playButton_a19yo_17._hover_a19yo_20{background-color:transparent!important}._slider_a19yo_2 ._playButton_a19yo_17 img{height:30px;width:30px}._sliderOpen_a19yo_28{right:490px}._sliderResults_a19yo_32{position:absolute;top:75px;right:430px;padding:5px 20px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;transition:all .5s ease-out}._sliderResults_a19yo_32 ._playButton_a19yo_17,._sliderResults_a19yo_32 ._playButton_a19yo_17._hover_a19yo_20{background-color:transparent!important}._sliderResults_a19yo_32 ._playButton_a19yo_17 img{height:30px;width:30px}._TopNavMenuContainer_12mp4_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:fit-content;gap:80px;height:100%}._TopNavMenuContainer_12mp4_2 ._topNavOptions_12mp4_13{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer;padding:0 10px;text-align:center;border-bottom:5px solid transparent;border-top:5px solid transparent;height:100%}._TopNavMenuContainer_12mp4_2 ._active_12mp4_27{border-bottom:5px solid white}._LogInButton_1vxj5_2{height:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center}._elementSelector_fd7az_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;height:100%;flex:1}._elementSelector_fd7az_2 ._header_fd7az_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementName_fd7az_39{font-size:18px;font-weight:600;flex:1}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementName_fd7az_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementDate_fd7az_53{font-size:18px;font-weight:600;flex:.5}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementDate_fd7az_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_fd7az_2 ._header_fd7az_13 ._buttonsContainer_fd7az_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._elementSelector_fd7az_2 ._elementListContainer_fd7az_76{flex:1;width:100%}._elementSelector_fd7az_2 ._newElementButtonContainer_fd7az_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px}._listElement_1s506_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:5px;width:100%;padding-bottom:30px;padding-top:30px;flex-wrap:wrap}._listElement_1s506_2 ._elementNameDate_1s506_17{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementNameContainer_1s506_27{flex:1;display:flex;flex-direction:column;align-items:flex-start;position:relative}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementName_1s506_17{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementDate_1s506_42{flex:.5}._listElement_1s506_2 ._elementButtons_1s506_45{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._listElement_1s506_2 ._elementButtons_1s506_45 button:disabled{opacity:.5;cursor:default}._listElement_1s506_2 ._elementButtons_1s506_45 img{display:inline}._break_1s506_63{flex-basis:100%;height:0}._moreInfoContainer_1s506_68 ._moreInfo_1s506_68{display:flex;gap:5px;cursor:pointer}._textInputContainer_1o3iy_2{width:100%}._textInputContainer_1o3iy_2 ._labelContainer_1o3iy_5{margin-bottom:25px}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8{background-color:#605b5620;padding:7px;border-radius:4px;position:relative}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 ._showPasswordButton_1o3iy_14{position:absolute;right:15px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 input{width:100%}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26{margin-top:10px;cursor:pointer}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26 button{text-decoration:underline}._errorMessage_1xiyb_2{min-height:25px}._formContainer_b071f_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start;flex-direction:column}._formContainer_b071f_2 ._formObjectContainer_b071f_11{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:center;flex:1;width:100%;gap:80px}._formContainer_b071f_2 ._buttonContainer_b071f_22{width:100%;margin-top:30px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;gap:20px}._inputsContainer_10t9s_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;gap:30px}._selectInputContainer_1rj0h_2{width:100%;position:relative}._selectInputContainer_1rj0h_2 ._labelContainer_1rj0h_6{margin-bottom:25px}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9{position:relative}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._selectInput_1rj0h_2{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:100%;padding:9px 40px 9px 9px;border:1.5px solid #605b56;border-radius:4px;cursor:pointer}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._selectInput_1rj0h_2 ._option_1rj0h_23{cursor:pointer}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._dropdownArrow_1rj0h_26{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:16px;height:16px;pointer-events:none}._radioButtonContainer_1e994_2{width:100%}._radioButtonContainer_1e994_2 ._wholeInputContainer_1e994_5{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;width:100%;flex-wrap:wrap;position:relative;gap:15px}@media (width < 768px){._radioButtonContainer_1e994_2 ._wholeInputContainer_1e994_5{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start}}._radioButtonContainer_1e994_2 ._questionContainer_1e994_27{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;align-self:flex-start;position:relative}@media (width < 768px){._radioButtonContainer_1e994_2 ._questionContainer_1e994_27{min-width:auto;max-width:215px}}._radioButtonContainer_1e994_2 ._errorContainer_1e994_44{position:absolute;top:-25px;left:0}._radioButtonContainer_1e994_2 ._iconPrivacy_1e994_49{height:100%;padding-right:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._radioButtonContainer_1e994_2 ._radioQuestion_1e994_59{width:100%;flex:1}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;gap:10px;position:relative;height:100%}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63 label{text-align:left}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63 label input{margin-right:5px}@media (width < 768px){._radioButtonContainer_1e994_2 ._inputContainer_1e994_63{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;flex:1}}label,._radioInput_1e994_93{cursor:pointer}._rankingSliderContainer_1gn40_2{display:grid;width:100%}._rankingSliderContainer_1gn40_2 ._labelContainer_1gn40_6{margin-bottom:25px;color:#605b56}._rankingSliderContainer_1gn40_2 ._inputContainer_1gn40_10{width:100%;position:relative}._rankingSliderContainer_1gn40_2 ._inputContainer_1gn40_10 ._slider_1gn40_14{height:6px;background:#efefef;border-radius:3px;position:relative}._rankingSliderContainer_1gn40_2 ._inputContainer_1gn40_10 ._thumb_1gn40_20{height:10px;width:10px;border-radius:50%;cursor:grab;top:-50%;transform:translateY(10%);outline:none}._rankingSliderContainer_1gn40_2 ._inputContainer_1gn40_10 ._trackLeft_1gn40_30,._rankingSliderContainer_1gn40_2 ._inputContainer_1gn40_10 ._trackRight_1gn40_35{height:6px;border-radius:9999px}._rankingSliderContainer_1gn40_2 ._inputContainer_1gn40_10 ._labels_1gn40_39{display:flex;justify-content:space-between;margin-top:8px;font-size:14px;color:#444}._rankingSliderContainer_1gn40_2 ._inputContainer_1gn40_10 ._labels_1gn40_39 span{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:10px}._rankingSliderContainer_1gn40_2 ._inputContainer_1gn40_10 ._labels_1gn40_39 ._labelsText_1gn40_55{color:#605b56}._overlay_mnd4j_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9999}._modal_mnd4j_15{background:#fff;border-radius:12px;position:relative;padding:24px 32px;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 20px #0003;overflow:hidden;min-width:300px}._closeButton_mnd4j_29{position:absolute;top:3px;right:8px;background:transparent;border:none;font-size:20px;cursor:pointer}._icon_mnd4j_39{width:60px;height:60px;margin-bottom:16px}._message_mnd4j_45{font-size:18px;font-weight:700;margin-bottom:8px}._submessage_mnd4j_51{font-size:14px;color:#666;margin-bottom:20px}._buttonsContainer_mnd4j_57{display:flex;gap:12px;justify-content:center;flex-wrap:nowrap}._buttonWrapper_mnd4j_64{display:inline-flex}._stepsContainer_1cyua_3{display:flex;flex-direction:column;position:relative}._stepWrapper_1cyua_9{display:flex;align-items:center;position:relative;margin-bottom:1.5rem}._stepWrapper_1cyua_9:last-child{margin-bottom:0}._circleContainer_1cyua_19{position:relative}._circle_1cyua_19{width:28px;height:28px;border-radius:50%;border:2px solid #ccc;background-color:#fff;color:#aaa;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;cursor:pointer;z-index:1}._active_1cyua_39{color:#fff;border:none}._completed_1cyua_44{background-color:#ccc;color:#fff;border:none}._label_1cyua_50{margin-left:10px;font-size:14px;color:#aaa}._labelActive_1cyua_56{font-weight:700;color:#333}._connector_1cyua_61{position:absolute;left:50%;transform:translate(-50%);top:32px;width:1px;height:calc(100% - 10px);background-color:#ccc;z-index:0}._statusTextContainer_ch14r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:128px;height:31px;border-radius:200px}._statusTextContainer_ch14r_2 span{font-size:16px;color:#605b56}._buttonsContainer_1c7dw_2{padding:5px 7px;background-color:#efefef;border-radius:10px;display:flex;gap:8px}._buttonsContainer_1c7dw_2 ._button_1c7dw_2{border-radius:10px;display:flex;align-items:center;cursor:pointer;padding:4px;color:#605b56}._buttonsContainer_1c7dw_2 ._button_1c7dw_2:hover{opacity:.8}._buttonsContainer_1c7dw_2 ._button_1c7dw_2._active_1c7dw_20{background:#b32f5d;color:#efefef}._header_13kbt_2{width:100%;display:flex;align-items:center;position:absolute;top:0;left:0;padding:0 16px;background-color:#fff;border-bottom:1px solid black}._header_13kbt_2 ._leftComponents_13kbt_13,._header_13kbt_2 ._centerComponents_13kbt_14,._header_13kbt_2 ._rightComponents_13kbt_15{position:absolute;top:0;bottom:0;display:flex;align-items:center}._header_13kbt_2 ._leftComponents_13kbt_13{left:16px}._header_13kbt_2 ._centerComponents_13kbt_14{left:50%;transform:translate(-50%)}._header_13kbt_2 ._rightComponents_13kbt_15{right:16px}._header_13kbt_2 ._componentsContainer_13kbt_32{height:100%;width:100%}._sidebar_1fmjn_2{position:absolute;top:0;right:0;height:100%;background-color:#fff;box-shadow:-2px 0 5px #0000001a;overflow-x:hidden;overflow-y:auto;transition:width .3s ease;z-index:1000;width:0}._open_1fmjn_16{border-left:1px solid #ddd}._content_1fmjn_20{position:relative;padding:20px;height:100%}._closeButton_1fmjn_26{position:absolute;top:28px;right:28px;font-size:24px;background:none;border:none;cursor:pointer;color:#333;transition:color .2s ease}._closeButton_1fmjn_26:hover{color:#000}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
-
import { jsxs as p, jsx as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";@import"https://unpkg.com/maplibre-gl@^5.3.0/dist/maplibre-gl.css";@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap";._ambitSelector_mcunf_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;height:100%;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39{font-size:18px;font-weight:600;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53{font-size:18px;font-weight:600;flex:.5}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._buttonsContainer_mcunf_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._ambitListContainer_mcunf_76{flex:1;width:100%}._ambitSelector_mcunf_2 ._newAmbitButtonContainer_mcunf_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px}._ambitItem_1qa6u_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:10px;width:100%;padding-bottom:30px;padding-top:30px}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitName_1qa6u_16{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;flex:1}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitDate_1qa6u_35{flex:.5}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38 button:disabled{opacity:.5;cursor:default}._generalButton_phq4n_2{padding:5px 95px;border-radius:100px}._generalButton_phq4n_2:disabled{opacity:.6}._buttonsContainer_1ks7x_2{display:flex;gap:8px}._buttonsContainer_1ks7x_2._vertical_1ks7x_6{flex-direction:column}._buttonsContainer_1ks7x_2._horizontal_1ks7x_9{flex-direction:row}._button_1ks7x_2{background:transparent;border:none;display:flex;align-items:center;cursor:pointer;padding:4px;position:relative}._button_1ks7x_2:hover{opacity:.8}._button_1ks7x_2._active_1ks7x_25{font-weight:700}._button_1ks7x_2 ._buttonName_1ks7x_28{margin:0 4px}._button_1ks7x_2:disabled{opacity:.5!important;cursor:auto}._left_1l4m4_2{position:absolute;width:auto;bottom:50%;right:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000}._left_1l4m4_2:before{content:"";position:absolute;top:50%;left:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent transparent #ccc;z-index:-2}._left_1l4m4_2:after{content:"";position:absolute;top:50%;left:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent transparent #fff;z-index:-1}._top_1l4m4_40{position:absolute;width:auto;bottom:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._top_1l4m4_40:before{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:#ccc transparent transparent transparent;z-index:-2}._top_1l4m4_40:after{content:"";position:absolute;top:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:#fff transparent transparent transparent;z-index:-1}._bottom_1l4m4_79{position:absolute;width:auto;top:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._bottom_1l4m4_79:before{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent #ccc transparent;z-index:-2}._bottom_1l4m4_79:after{content:"";position:absolute;bottom:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent #fff transparent;z-index:-1}._right_1l4m4_118{position:absolute;width:auto;bottom:50%;left:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:20px;margin:0;white-space:nowrap;color:#000;z-index:10}._right_1l4m4_118:before{content:"";position:absolute;top:50%;right:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent #ccc transparent transparent;z-index:-2}._right_1l4m4_118:after{content:"";position:absolute;top:50%;right:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent #fff transparent transparent;z-index:-1}._AppliedFiltersContainer_cokx9_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start;flex-wrap:wrap}._AppliedFiltersContainer_cokx9_2 ._AppliedFilterContent_cokx9_11{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:row;align-items:center;font-size:16px;font-weight:400;height:35px;width:fit-content;padding:0 20px;border-radius:100px}._checkboxContainer_zld97_2{display:flex;align-items:center;gap:.5rem;font-size:14px;font-weight:400;cursor:pointer}._checkboxContainer_zld97_2 input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:10px;height:10px;border-radius:1px;background-color:#fff;cursor:pointer}._container_15vgv_2{padding-top:15px;font-size:14px}._container_15vgv_2 span{font-size:14px}._container_15vgv_2 ._unitLabel_15vgv_9{height:40px}._container_15vgv_2 ._slider_15vgv_12{height:6px;background-color:#ddd;border-radius:3px;position:relative}._container_15vgv_2 ._thumb_15vgv_18{height:20px;width:20px;background-color:#605b56;border-radius:50%;cursor:grab;top:-7px;position:absolute}._container_15vgv_2 ._track_15vgv_27{top:0;bottom:0;background:#605b56;border-radius:3px}._container_15vgv_2 ._labels_15vgv_33{display:flex;justify-content:space-between;font-size:14px;margin-top:10px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px;padding-bottom:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 label,._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input{cursor:pointer;font-size:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input[type=radio]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background-color:#fff;transition:background-color .2s ease;cursor:pointer;vertical-align:middle}._tematicalFiltersInputContainer_1vm1r_2 ._checkboxContainer_1vm1r_28{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px}._tematicalFiltersInputContainer_1vm1r_2 ._absoluteSliderContainer_1vm1r_37{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:flex-start}._FiltersAmbitContainer_1g9xx_2{width:100%;height:100%;padding:28.5px 0 0 24px}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7{display:flex;flex-wrap:nowrap;justify-content:start;gap:30px;flex-direction:column;align-items:start}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitTitle_1g9xx_15{font-size:18px;font-weight:600;padding:0 0 26px;border-bottom:1.5px solid #605B56;width:100%}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitDescription_1g9xx_22{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:column;align-items:start;padding:0 0 26px;font-size:16px;font-weight:400}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitDescription_1g9xx_22 ._FiltersAmbitDescriptionTitle_1g9xx_33{font-size:18px;font-weight:600}._FiltersAmbitContainer_1g9xx_2 ._warning_1g9xx_37{color:red}._barChartContainer_d2f1z_2{height:100%;width:100%;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._graphicContainer_c9zrg_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;width:100%;border:1.5px solid black;padding:33px 50px;border-radius:20px}._graphicContainer_c9zrg_2 ._titleContainer_c9zrg_14{display:flex;flex-wrap:nowrap;gap:0;flex-direction:row;align-items:center;justify-content:center;margin-bottom:83px}._indicatorsCategory_1cu33_2{overflow:hidden}._indicatorsCategory_1cu33_2 ._title_1cu33_5{align-items:center;gap:10px;cursor:pointer;margin-bottom:25px}._indicatorsCategory_1cu33_2 ._list_1cu33_11{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._indicatorContainer_1go6h_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:center;gap:10px}._indicatorContainer_1go6h_2 ._indicatorNameContainer_1go6h_11{gap:10px;display:grid;grid-template-columns:15px auto;align-items:center}._indicatorContainer_1go6h_2 ._dot_1go6h_17{border-radius:100px;width:16px;height:16px}._indicatorContainer_1go6h_2 ._indicatorName_1go6h_11{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_1go6h_28{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:20px 0 0}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37{margin:0;width:100%}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:10px;cursor:pointer}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52 ._customRadious_1go6h_62{width:16px;height:16px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52 ._optionText_1go6h_69{font-weight:400}._indicatorsSubCategory_1dzsi_2{overflow:hidden}._indicatorsSubCategory_1dzsi_2 h3{text-align:left}._indicatorsSubCategory_1dzsi_2 ._list_1dzsi_8{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:start;margin:20px 0;gap:20px}._indicatorsList_fklyu_2{width:100%;padding-left:30px}._indicatorsList_fklyu_2 ._title_fklyu_6{border-bottom:1px solid;padding-bottom:25px;margin-bottom:32px}._langSelector_o9enq_2{position:relative;width:fit-content;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;height:100%}._currentLang_o9enq_14{color:#404040;cursor:pointer;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:5px;text-transform:capitalize}._currentLang_o9enq_14 ._arrow_o9enq_26{width:10px}._currentLang_o9enq_14 ._prevImg_o9enq_29{width:20px}._langMenu_o9enq_33{position:absolute;width:80px;background:#000!important;border-radius:8px}._langMenu_o9enq_33 button{cursor:pointer;background:#000!important;color:#ccc;width:100%;padding:4px 8px;text-align:left}._langMenu_o9enq_33 button:first-child{border-radius:8px 8px 0 0}._langMenu_o9enq_33 button:last-child{border-radius:0 0 8px 8px}._langMenu_o9enq_33 button:hover{color:#cbcbcb;background-color:#fafafa!important}._legendContainer_qs4x9_3{width:402px;background-color:#fdfdfd;color:#605b56;border:solid 1.5px #605b56;border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:flexStart;padding:20px;position:relative;overflow-y:scroll}._legendContainer_qs4x9_3::-webkit-scrollbar{width:8px}._legendContainer_qs4x9_3::-webkit-scrollbar-track{background:transparent;margin:5px 0}._legendContainer_qs4x9_3::-webkit-scrollbar-thumb{background-color:#ebebeb;border-radius:20px}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31{position:absolute;right:20px;top:20px;width:24px;height:24px;border:none;background:transparent;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:before,._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:after{content:"";position:absolute;width:16px;height:2px;background-color:#333}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:before{transform:rotate(45deg)}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:after{transform:rotate(-45deg)}._legendContainer_qs4x9_3 ._titleContainer_qs4x9_59{border-bottom:solid 1.5px #605b56}._legendContainer_qs4x9_3 ._titleContainer_qs4x9_59 h2{padding-bottom:16px}._legendContainer_qs4x9_3 ._infoContainer_qs4x9_65{padding-top:20px}._legendContainer_qs4x9_3 ._infoContainer_qs4x9_65 ul li{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:row;align-items:center}._legendContainer_qs4x9_3 ._titleLegendList_qs4x9_76{font-size:20px;padding-bottom:20px;margin-bottom:20px;border-bottom:solid 1.5px #605b56}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._gridContainer_qs4x9_82{display:grid;grid-template-columns:auto;column-gap:20px;row-gap:15px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._gridContainer_qs4x9_82 ._elementLegendContainer_qs4x9_88{display:grid;grid-template-columns:23px auto;align-items:center;gap:5px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._gridContainer_qs4x9_82 ._elementLegendContainer_qs4x9_88 ._colorDot_qs4x9_94{width:22px;height:22px;border-radius:50%;margin-right:10px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._absoluteValueContainer_qs4x9_100{position:relative}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._absoluteValueContainer_qs4x9_100 ._absoluteValueColor_qs4x9_103{height:130px;width:22px;border-radius:20px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._absoluteValueContainer_qs4x9_100 ._absoluteValueText_qs4x9_108{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:flex-start;position:absolute;left:30px;top:0;height:100%}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._noDataContainer_qs4x9_120{position:relative;margin-top:10px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._noDataContainer_qs4x9_120 ._noData_qs4x9_120{height:22px;width:22px;border-radius:20px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._noDataContainer_qs4x9_120 ._absoluteValueText_qs4x9_108{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:flex-start;position:absolute;left:30px;top:0;height:100%}._legendContainer_qs4x9_3 ._moreInfoContainer_qs4x9_141{margin-top:30px;padding:8.5px 20px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;border:1.5px solid #605b56;border-radius:25px;font-size:16px;font-weight:600}._logo_1ewa6_2{padding:10px;height:100%}._logo_1ewa6_2 img{height:100%}._mapContainer_84pkf_2{width:100vw;height:100vh}._mapContainer_b0pyr_3{width:100vw;height:100vh;position:absolute;top:0;z-index:0}._FeaturePopUp_mt8l5_2{padding:15px;color:#92898a}._FeaturePopUp_mt8l5_2 p{margin-bottom:10px}._FeaturePopUp_mt8l5_2 ._title_mt8l5_9{font-weight:600;margin-right:5px;color:#92898a}._sectionBar_1egwc_2{height:70px;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid black;transition:width .3s ease}._leftContent_1egwc_14{display:flex;align-items:center;gap:12px}._textContainer_1egwc_20{display:flex;flex-direction:row;align-items:center;gap:8px}._title_1egwc_27{font-size:16px;font-weight:600;color:#000}._subtitle_1egwc_33{font-size:16px;color:#000}._rightContent_1egwc_38{display:flex;align-items:center;gap:8px}._slider_a19yo_2{position:absolute;padding:5px 20px;right:150px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;top:188px;transition:all .5s ease-out}._slider_a19yo_2 ._playButton_a19yo_17,._slider_a19yo_2 ._playButton_a19yo_17._hover_a19yo_20{background-color:transparent!important}._slider_a19yo_2 ._playButton_a19yo_17 img{height:30px;width:30px}._sliderOpen_a19yo_28{right:490px}._sliderResults_a19yo_32{position:absolute;top:75px;right:430px;padding:5px 20px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;transition:all .5s ease-out}._sliderResults_a19yo_32 ._playButton_a19yo_17,._sliderResults_a19yo_32 ._playButton_a19yo_17._hover_a19yo_20{background-color:transparent!important}._sliderResults_a19yo_32 ._playButton_a19yo_17 img{height:30px;width:30px}._TopNavMenuContainer_12mp4_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:fit-content;gap:80px;height:100%}._TopNavMenuContainer_12mp4_2 ._topNavOptions_12mp4_13{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer;padding:0 10px;text-align:center;border-bottom:5px solid transparent;border-top:5px solid transparent;height:100%}._TopNavMenuContainer_12mp4_2 ._active_12mp4_27{border-bottom:5px solid white}._LogInButton_1vxj5_2{height:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center}._elementSelector_fd7az_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;height:100%;flex:1}._elementSelector_fd7az_2 ._header_fd7az_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementName_fd7az_39{font-size:18px;font-weight:600;flex:1}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementName_fd7az_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementDate_fd7az_53{font-size:18px;font-weight:600;flex:.5}._elementSelector_fd7az_2 ._header_fd7az_13 ._nameDateContainer_fd7az_23 ._elementDate_fd7az_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_fd7az_2 ._header_fd7az_13 ._buttonsContainer_fd7az_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._elementSelector_fd7az_2 ._elementListContainer_fd7az_76{flex:1;width:100%}._elementSelector_fd7az_2 ._newElementButtonContainer_fd7az_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px}._listElement_1s506_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:5px;width:100%;padding-bottom:30px;padding-top:30px;flex-wrap:wrap}._listElement_1s506_2 ._elementNameDate_1s506_17{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementNameContainer_1s506_27{flex:1;display:flex;flex-direction:column;align-items:flex-start;position:relative}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementName_1s506_17{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementDate_1s506_42{flex:.5}._listElement_1s506_2 ._elementButtons_1s506_45{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._listElement_1s506_2 ._elementButtons_1s506_45 button:disabled{opacity:.5;cursor:default}._listElement_1s506_2 ._elementButtons_1s506_45 img{display:inline}._break_1s506_63{flex-basis:100%;height:0}._moreInfoContainer_1s506_68 ._moreInfo_1s506_68{display:flex;gap:5px;cursor:pointer}._textInputContainer_1o3iy_2{width:100%}._textInputContainer_1o3iy_2 ._labelContainer_1o3iy_5{margin-bottom:25px}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8{background-color:#605b5620;padding:7px;border-radius:4px;position:relative}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 ._showPasswordButton_1o3iy_14{position:absolute;right:15px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 input{width:100%}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26{margin-top:10px;cursor:pointer}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26 button{text-decoration:underline}._errorMessage_1xiyb_2{min-height:25px}._formContainer_b071f_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start;flex-direction:column}._formContainer_b071f_2 ._formObjectContainer_b071f_11{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:center;flex:1;width:100%;gap:80px}._formContainer_b071f_2 ._buttonContainer_b071f_22{width:100%;margin-top:30px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;gap:20px}._inputsContainer_10t9s_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;gap:30px}._selectInputContainer_1rj0h_2{width:100%;position:relative}._selectInputContainer_1rj0h_2 ._labelContainer_1rj0h_6{margin-bottom:25px}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9{position:relative}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._selectInput_1rj0h_2{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:100%;padding:9px 40px 9px 9px;border:1.5px solid #605b56;border-radius:4px;cursor:pointer}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._selectInput_1rj0h_2 ._option_1rj0h_23{cursor:pointer}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._dropdownArrow_1rj0h_26{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:16px;height:16px;pointer-events:none}._radioButtonContainer_1e994_2{width:100%}._radioButtonContainer_1e994_2 ._wholeInputContainer_1e994_5{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;width:100%;flex-wrap:wrap;position:relative;gap:15px}@media (width < 768px){._radioButtonContainer_1e994_2 ._wholeInputContainer_1e994_5{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start}}._radioButtonContainer_1e994_2 ._questionContainer_1e994_27{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;align-self:flex-start;position:relative}@media (width < 768px){._radioButtonContainer_1e994_2 ._questionContainer_1e994_27{min-width:auto;max-width:215px}}._radioButtonContainer_1e994_2 ._errorContainer_1e994_44{position:absolute;top:-25px;left:0}._radioButtonContainer_1e994_2 ._iconPrivacy_1e994_49{height:100%;padding-right:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._radioButtonContainer_1e994_2 ._radioQuestion_1e994_59{width:100%;flex:1}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;gap:10px;position:relative;height:100%}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63 label{text-align:left}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63 label input{margin-right:5px}@media (width < 768px){._radioButtonContainer_1e994_2 ._inputContainer_1e994_63{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;flex:1}}label,._radioInput_1e994_93{cursor:pointer}._rankingSliderContainer_brgxs_2{display:grid;width:100%}._rankingSliderContainer_brgxs_2 ._labelContainer_brgxs_6{margin-bottom:25px;color:#605b56}._rankingSliderContainer_brgxs_2 ._inputContainer_brgxs_10{width:100%;position:relative;display:flex;gap:14px;align-items:flex-start;flex-wrap:nowrap}._rankingSliderContainer_brgxs_2 ._inputContainer_brgxs_10 ._slider_brgxs_18{height:3px;background:#efefef;border-radius:3px;position:relative;min-width:250px}._rankingSliderContainer_brgxs_2 ._inputContainer_brgxs_10 ._thumb_brgxs_25{height:15px;width:15px;border-radius:50%;cursor:grab;top:-100%;transform:translateY(-20%);outline:none}._rankingSliderContainer_brgxs_2 ._inputContainer_brgxs_10 ._labels_brgxs_35{display:flex;justify-content:space-between;margin-top:8px;font-size:14px;color:#444}._rankingSliderContainer_brgxs_2 ._inputContainer_brgxs_10 ._labels_brgxs_35 span{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:10px}._rankingSliderContainer_brgxs_2 ._inputContainer_brgxs_10 ._labels_brgxs_35 span:before{content:"";background:#efefef;width:10px;height:10px;position:absolute;top:-3.5px;border-radius:50%}._rankingSliderContainer_brgxs_2 ._inputContainer_brgxs_10 ._labels_brgxs_35 ._labelsText_brgxs_60{color:#605b56}._rankingSliderContainer_brgxs_2 ._inputContainer_brgxs_10 ._minLabel_brgxs_63,._rankingSliderContainer_brgxs_2 ._inputContainer_brgxs_10 ._maxLabel_brgxs_63{color:#605b56;font-size:12px;white-space:nowrap;margin-top:-7px}._rankingSliderContainer_brgxs_2 ._inputContainer_brgxs_10 ._minLabel_brgxs_63{text-align:right}._overlay_mnd4j_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9999}._modal_mnd4j_15{background:#fff;border-radius:12px;position:relative;padding:24px 32px;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 20px #0003;overflow:hidden;min-width:300px}._closeButton_mnd4j_29{position:absolute;top:3px;right:8px;background:transparent;border:none;font-size:20px;cursor:pointer}._icon_mnd4j_39{width:60px;height:60px;margin-bottom:16px}._message_mnd4j_45{font-size:18px;font-weight:700;margin-bottom:8px}._submessage_mnd4j_51{font-size:14px;color:#666;margin-bottom:20px}._buttonsContainer_mnd4j_57{display:flex;gap:12px;justify-content:center;flex-wrap:nowrap}._buttonWrapper_mnd4j_64{display:inline-flex}._stepsContainer_1cyua_3{display:flex;flex-direction:column;position:relative}._stepWrapper_1cyua_9{display:flex;align-items:center;position:relative;margin-bottom:1.5rem}._stepWrapper_1cyua_9:last-child{margin-bottom:0}._circleContainer_1cyua_19{position:relative}._circle_1cyua_19{width:28px;height:28px;border-radius:50%;border:2px solid #ccc;background-color:#fff;color:#aaa;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;cursor:pointer;z-index:1}._active_1cyua_39{color:#fff;border:none}._completed_1cyua_44{background-color:#ccc;color:#fff;border:none}._label_1cyua_50{margin-left:10px;font-size:14px;color:#aaa}._labelActive_1cyua_56{font-weight:700;color:#333}._connector_1cyua_61{position:absolute;left:50%;transform:translate(-50%);top:32px;width:1px;height:calc(100% - 10px);background-color:#ccc;z-index:0}._statusTextContainer_ch14r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:128px;height:31px;border-radius:200px}._statusTextContainer_ch14r_2 span{font-size:16px;color:#605b56}._buttonsContainer_1c7dw_2{padding:5px 7px;background-color:#efefef;border-radius:10px;display:flex;gap:8px}._buttonsContainer_1c7dw_2 ._button_1c7dw_2{border-radius:10px;display:flex;align-items:center;cursor:pointer;padding:4px;color:#605b56}._buttonsContainer_1c7dw_2 ._button_1c7dw_2:hover{opacity:.8}._buttonsContainer_1c7dw_2 ._button_1c7dw_2._active_1c7dw_20{background:#b32f5d;color:#efefef}._header_13kbt_2{width:100%;display:flex;align-items:center;position:absolute;top:0;left:0;padding:0 16px;background-color:#fff;border-bottom:1px solid black}._header_13kbt_2 ._leftComponents_13kbt_13,._header_13kbt_2 ._centerComponents_13kbt_14,._header_13kbt_2 ._rightComponents_13kbt_15{position:absolute;top:0;bottom:0;display:flex;align-items:center}._header_13kbt_2 ._leftComponents_13kbt_13{left:16px}._header_13kbt_2 ._centerComponents_13kbt_14{left:50%;transform:translate(-50%)}._header_13kbt_2 ._rightComponents_13kbt_15{right:16px}._header_13kbt_2 ._componentsContainer_13kbt_32{height:100%;width:100%}._sidebar_1fmjn_2{position:absolute;top:0;right:0;height:100%;background-color:#fff;box-shadow:-2px 0 5px #0000001a;overflow-x:hidden;overflow-y:auto;transition:width .3s ease;z-index:1000;width:0}._open_1fmjn_16{border-left:1px solid #ddd}._content_1fmjn_20{position:relative;padding:20px;height:100%}._closeButton_1fmjn_26{position:absolute;top:28px;right:28px;font-size:24px;background:none;border:none;cursor:pointer;color:#333;transition:color .2s ease}._closeButton_1fmjn_26:hover{color:#000}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
|
+
import { jsxs as p, jsx as s, Fragment as Ae } from "react/jsx-runtime";
|
|
3
3
|
import * as ce from "react";
|
|
4
|
-
import
|
|
4
|
+
import S, { useState as L, useEffect as M, useMemo as ge, useLayoutEffect as Mt, useRef as ne } from "react";
|
|
5
5
|
import e from "prop-types";
|
|
6
6
|
import { useTranslation as k, Trans as je } from "react-i18next";
|
|
7
7
|
import { motion as ze } from "framer-motion";
|
|
8
|
-
import { create as
|
|
8
|
+
import { create as Tt } from "zustand";
|
|
9
9
|
import * as Ue from "d3";
|
|
10
|
-
import
|
|
10
|
+
import Dt from "mapbox-gl";
|
|
11
11
|
import { useSelector as Lt, useDispatch as Ft } from "react-redux";
|
|
12
12
|
import Vt, { Source as At, Layer as Ot, NavigationControl as It, Popup as Rt } from "react-map-gl/mapbox";
|
|
13
13
|
import ke from "maplibre-gl";
|
|
@@ -36,7 +36,7 @@ const Qt = "_ambitSelector_mcunf_2", Xt = "_header_mcunf_13", Jt = "_nameDateCon
|
|
|
36
36
|
}, d2 = "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", u2 = "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", p2 = "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", m2 = "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", h2 = "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", g2 = "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", at = ({
|
|
37
37
|
ambit: n,
|
|
38
38
|
onClickCopy: d,
|
|
39
|
-
onClickDelete:
|
|
39
|
+
onClickDelete: i,
|
|
40
40
|
onClickFilters: o,
|
|
41
41
|
onClickAmbit: t,
|
|
42
42
|
isActive: r,
|
|
@@ -44,31 +44,31 @@ const Qt = "_ambitSelector_mcunf_2", Xt = "_header_mcunf_13", Jt = "_nameDateCon
|
|
|
44
44
|
fontColor: l,
|
|
45
45
|
moreInfo: c
|
|
46
46
|
}) => {
|
|
47
|
-
const { name: u, created_at:
|
|
47
|
+
const { name: u, created_at: m, id: g, isBeingProcessed: _ } = n;
|
|
48
48
|
return /* @__PURE__ */ p(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
className: ue.ambitItem,
|
|
52
52
|
style: { borderBottom: `1px solid ${l}` },
|
|
53
53
|
children: [
|
|
54
|
-
/* @__PURE__ */ p("div", { className: ue.ambitNameDate, onClick: () => t(
|
|
54
|
+
/* @__PURE__ */ p("div", { className: ue.ambitNameDate, onClick: () => t(g), children: [
|
|
55
55
|
/* @__PURE__ */ p("div", { className: ue.ambitName, children: [
|
|
56
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ s(
|
|
57
57
|
"img",
|
|
58
58
|
{
|
|
59
59
|
style: { marginRight: 9 },
|
|
60
60
|
src: r ? h2 : g2
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ s("span", { style: { color: r ? a : l }, children: u })
|
|
64
64
|
] }),
|
|
65
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ s("div", { className: ue.ambitDate, children: m ? new Date(m).toLocaleDateString() : "" })
|
|
66
66
|
] }),
|
|
67
67
|
/* @__PURE__ */ p("div", { className: ue.ambitButtons, children: [
|
|
68
|
-
_ && /* @__PURE__ */
|
|
69
|
-
/* @__PURE__ */
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
/* @__PURE__ */
|
|
68
|
+
_ && /* @__PURE__ */ s("img", { src: m2 }),
|
|
69
|
+
/* @__PURE__ */ s("button", { onClick: () => o(g), disabled: n.is_default, children: /* @__PURE__ */ s("img", { src: p2 }) }),
|
|
70
|
+
/* @__PURE__ */ s("button", { onClick: () => d(g), children: /* @__PURE__ */ s("img", { src: u2 }) }),
|
|
71
|
+
/* @__PURE__ */ s("button", { onClick: () => i(g), disabled: n.is_default, children: /* @__PURE__ */ s("img", { src: d2 }) })
|
|
72
72
|
] })
|
|
73
73
|
]
|
|
74
74
|
}
|
|
@@ -97,17 +97,17 @@ const Ge = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
97
97
|
}, we = ({
|
|
98
98
|
children: n,
|
|
99
99
|
onClick: d,
|
|
100
|
-
fontColor:
|
|
100
|
+
fontColor: i = "#605B56",
|
|
101
101
|
borderColor: o = "#605B56",
|
|
102
102
|
type: t = "button",
|
|
103
103
|
containerStyles: r = {},
|
|
104
104
|
disabled: a = !1
|
|
105
|
-
}) => /* @__PURE__ */
|
|
105
|
+
}) => /* @__PURE__ */ s(
|
|
106
106
|
"button",
|
|
107
107
|
{
|
|
108
108
|
className: f2.generalButton,
|
|
109
109
|
style: {
|
|
110
|
-
color:
|
|
110
|
+
color: i,
|
|
111
111
|
border: `1.5px solid ${o}`,
|
|
112
112
|
...r
|
|
113
113
|
},
|
|
@@ -119,7 +119,7 @@ const Ge = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
119
119
|
), b2 = ({
|
|
120
120
|
ambitList: n,
|
|
121
121
|
activeAmbitId: d,
|
|
122
|
-
fontColor:
|
|
122
|
+
fontColor: i = "#605B56",
|
|
123
123
|
activeColor: o,
|
|
124
124
|
nameLabel: t,
|
|
125
125
|
dateLabel: r,
|
|
@@ -127,62 +127,62 @@ const Ge = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
127
127
|
buttonContainerStyles: l = {},
|
|
128
128
|
containerStyles: c = {},
|
|
129
129
|
onCLickNewAmbit: u = () => console.log("New ambit clicked"),
|
|
130
|
-
onClickCopy:
|
|
131
|
-
onCLickDelete:
|
|
130
|
+
onClickCopy: m = (h) => console.log(`Copy ambit: ${h}`),
|
|
131
|
+
onCLickDelete: g = (h) => console.log(`Delete ambit: ${h}`),
|
|
132
132
|
onClickFilters: _ = (h) => console.log(`Filters clicked: ${h}`),
|
|
133
133
|
onClickAmbit: y = (h) => console.log(`OnCLickAmbit: ${h}`)
|
|
134
134
|
}) => {
|
|
135
|
-
const { t: h } = k(), [
|
|
135
|
+
const { t: h } = k(), [b, C] = L(n);
|
|
136
136
|
M(() => {
|
|
137
|
-
n &&
|
|
137
|
+
n && C(n);
|
|
138
138
|
}, [n]);
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
141
|
-
let N = [...
|
|
142
|
-
N.sort((x, w) => x[v].localeCompare(w[v])),
|
|
139
|
+
const f = (v) => {
|
|
140
|
+
if (b && b.length > 0) {
|
|
141
|
+
let N = [...b];
|
|
142
|
+
N.sort((x, w) => x[v].localeCompare(w[v])), C(N);
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
return /* @__PURE__ */ p(
|
|
146
146
|
"div",
|
|
147
147
|
{
|
|
148
148
|
className: U.ambitSelector,
|
|
149
|
-
style: { color:
|
|
149
|
+
style: { color: i, ...c },
|
|
150
150
|
children: [
|
|
151
151
|
/* @__PURE__ */ p(
|
|
152
152
|
"div",
|
|
153
153
|
{
|
|
154
154
|
className: U.header,
|
|
155
|
-
style: { borderBottom: `1px solid ${
|
|
155
|
+
style: { borderBottom: `1px solid ${i}` },
|
|
156
156
|
children: [
|
|
157
157
|
/* @__PURE__ */ p("div", { className: U.nameDateContainer, children: [
|
|
158
|
-
/* @__PURE__ */
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
/* @__PURE__ */
|
|
158
|
+
/* @__PURE__ */ s("div", { className: U.ambitName, children: /* @__PURE__ */ p("button", { onClick: () => f("name"), children: [
|
|
159
|
+
/* @__PURE__ */ s("span", { children: h(t) }),
|
|
160
|
+
/* @__PURE__ */ s("img", { src: Ge })
|
|
161
161
|
] }) }),
|
|
162
|
-
/* @__PURE__ */
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
/* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ s("div", { className: U.ambitDate, children: /* @__PURE__ */ p("button", { onClick: () => f("date"), children: [
|
|
163
|
+
/* @__PURE__ */ s("span", { children: h(r) }),
|
|
164
|
+
/* @__PURE__ */ s("img", { src: Ge })
|
|
165
165
|
] }) })
|
|
166
166
|
] }),
|
|
167
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ s("div", { className: U.buttonsContainer })
|
|
168
168
|
]
|
|
169
169
|
}
|
|
170
170
|
),
|
|
171
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ s("div", { className: U.ambitListContainer, children: b && b.length > 0 && b.map((v) => /* @__PURE__ */ s(
|
|
172
172
|
at,
|
|
173
173
|
{
|
|
174
174
|
isActive: d == v.id,
|
|
175
175
|
ambit: v,
|
|
176
|
-
fontColor:
|
|
176
|
+
fontColor: i,
|
|
177
177
|
activeColor: o,
|
|
178
|
-
onClickCopy:
|
|
179
|
-
onClickDelete:
|
|
178
|
+
onClickCopy: m,
|
|
179
|
+
onClickDelete: g,
|
|
180
180
|
onClickFilters: _,
|
|
181
181
|
onClickAmbit: y
|
|
182
182
|
},
|
|
183
183
|
`ambitKey${v.id}`
|
|
184
184
|
)) }),
|
|
185
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ s("div", { className: U.newAmbitButtonContainer, children: /* @__PURE__ */ s(
|
|
186
186
|
we,
|
|
187
187
|
{
|
|
188
188
|
style: { ...l },
|
|
@@ -224,30 +224,30 @@ const _2 = "_buttonsContainer_1ks7x_2", y2 = "_vertical_1ks7x_6", v2 = "_horizon
|
|
|
224
224
|
button: x2,
|
|
225
225
|
active: w2,
|
|
226
226
|
buttonName: N2
|
|
227
|
-
}, k2 = "_left_1l4m4_2",
|
|
227
|
+
}, k2 = "_left_1l4m4_2", B2 = "_top_1l4m4_40", $2 = "_bottom_1l4m4_79", S2 = "_right_1l4m4_118", M2 = {
|
|
228
228
|
left: k2,
|
|
229
|
-
top:
|
|
230
|
-
bottom:
|
|
229
|
+
top: B2,
|
|
230
|
+
bottom: $2,
|
|
231
231
|
right: S2
|
|
232
|
-
}, te = ({ text: n, position: d, styleCustom:
|
|
232
|
+
}, te = ({ text: n, position: d, styleCustom: i = null }) => {
|
|
233
233
|
const { t: o } = k();
|
|
234
|
-
return /* @__PURE__ */
|
|
234
|
+
return /* @__PURE__ */ s("div", { className: `tooltip ${M2[d]}`, style: i, children: o(n) });
|
|
235
235
|
};
|
|
236
236
|
te.propTypes = {
|
|
237
237
|
text: e.string.isRequired,
|
|
238
238
|
position: e.oneOf(["top", "bottom", "left", "right"]).isRequired,
|
|
239
239
|
styleCustom: e.object
|
|
240
240
|
};
|
|
241
|
-
const
|
|
241
|
+
const T2 = ({
|
|
242
242
|
buttons: n = [],
|
|
243
243
|
orientation: d = "horizontal",
|
|
244
|
-
showName:
|
|
244
|
+
showName: i = !0,
|
|
245
245
|
namePosition: o = "right",
|
|
246
246
|
useTooltip: t = !1,
|
|
247
247
|
tooltipPosition: r = "top"
|
|
248
248
|
}) => {
|
|
249
249
|
const { t: a } = k();
|
|
250
|
-
return /* @__PURE__ */
|
|
250
|
+
return /* @__PURE__ */ s(
|
|
251
251
|
"div",
|
|
252
252
|
{
|
|
253
253
|
className: `${Y.buttonsContainer} ${d === "vertical" && Y.vertical}
|
|
@@ -255,34 +255,34 @@ const D2 = ({
|
|
|
255
255
|
children: n.map((l, c) => {
|
|
256
256
|
const {
|
|
257
257
|
icon: u,
|
|
258
|
-
activeIcon:
|
|
259
|
-
isActive:
|
|
258
|
+
activeIcon: m,
|
|
259
|
+
isActive: g,
|
|
260
260
|
name: _,
|
|
261
261
|
onClick: y,
|
|
262
262
|
disabled: h
|
|
263
|
-
} = l,
|
|
264
|
-
|
|
265
|
-
/* @__PURE__ */
|
|
266
|
-
|
|
263
|
+
} = l, b = /* @__PURE__ */ p(Ae, { children: [
|
|
264
|
+
i && o === "left" && /* @__PURE__ */ s("span", { className: Y.buttonName, children: a(_) }),
|
|
265
|
+
/* @__PURE__ */ s("img", { src: g ? m : u, alt: a(_) }),
|
|
266
|
+
i && o === "right" && /* @__PURE__ */ s("span", { className: Y.buttonName, children: a(_) })
|
|
267
267
|
] });
|
|
268
268
|
return /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
269
|
-
/* @__PURE__ */
|
|
269
|
+
/* @__PURE__ */ s(
|
|
270
270
|
"button",
|
|
271
271
|
{
|
|
272
272
|
onClick: y,
|
|
273
273
|
className: `${Y.button}
|
|
274
|
-
${
|
|
274
|
+
${g && Y.active}`,
|
|
275
275
|
disabled: h,
|
|
276
|
-
children:
|
|
276
|
+
children: b
|
|
277
277
|
}
|
|
278
278
|
),
|
|
279
|
-
t && /* @__PURE__ */
|
|
279
|
+
t && /* @__PURE__ */ s(te, { text: _, position: r })
|
|
280
280
|
] }, c);
|
|
281
281
|
})
|
|
282
282
|
}
|
|
283
283
|
);
|
|
284
284
|
};
|
|
285
|
-
|
|
285
|
+
T2.propTypes = {
|
|
286
286
|
buttons: e.arrayOf(
|
|
287
287
|
e.shape({
|
|
288
288
|
icon: e.node.isRequired,
|
|
@@ -300,13 +300,13 @@ D2.propTypes = {
|
|
|
300
300
|
useTooltip: e.bool,
|
|
301
301
|
tooltipPosition: e.oneOf(["top", "bottom", "left", "right"])
|
|
302
302
|
};
|
|
303
|
-
const
|
|
304
|
-
indicatorsCategory:
|
|
303
|
+
const D2 = "_indicatorsCategory_1cu33_2", L2 = "_title_1cu33_5", Be = {
|
|
304
|
+
indicatorsCategory: D2,
|
|
305
305
|
title: L2
|
|
306
306
|
}, ie = ({
|
|
307
307
|
isOpen: n,
|
|
308
308
|
onClick: d,
|
|
309
|
-
children:
|
|
309
|
+
children: i,
|
|
310
310
|
color: o,
|
|
311
311
|
activeColor: t = "#F8A925",
|
|
312
312
|
title: r = "Title",
|
|
@@ -317,11 +317,11 @@ const M2 = "_indicatorsCategory_1cu33_2", L2 = "_title_1cu33_5", $e = {
|
|
|
317
317
|
showBottomBar: c = !0,
|
|
318
318
|
titleMarginChildren: u = 25
|
|
319
319
|
}) => {
|
|
320
|
-
const { t:
|
|
320
|
+
const { t: m } = k();
|
|
321
321
|
return /* @__PURE__ */ p(
|
|
322
322
|
ze.div,
|
|
323
323
|
{
|
|
324
|
-
className:
|
|
324
|
+
className: Be.indicatorsCategory,
|
|
325
325
|
initial: { height: `${a}px` },
|
|
326
326
|
animate: { height: n ? "auto" : `${a}px` },
|
|
327
327
|
transition: { duration: 0.4 },
|
|
@@ -338,15 +338,15 @@ const M2 = "_indicatorsCategory_1cu33_2", L2 = "_title_1cu33_5", $e = {
|
|
|
338
338
|
...l,
|
|
339
339
|
marginBottom: u || "auto"
|
|
340
340
|
},
|
|
341
|
-
className: `${
|
|
341
|
+
className: `${Be.title}`,
|
|
342
342
|
onClick: d,
|
|
343
343
|
children: [
|
|
344
|
-
/* @__PURE__ */
|
|
345
|
-
/* @__PURE__ */
|
|
344
|
+
/* @__PURE__ */ s("span", { style: { color: n ? t : o }, children: n ? "-" : "+" }),
|
|
345
|
+
/* @__PURE__ */ s("span", { style: { marginLeft: 12, color: n ? t : o }, children: m(r) })
|
|
346
346
|
]
|
|
347
347
|
}
|
|
348
348
|
),
|
|
349
|
-
/* @__PURE__ */
|
|
349
|
+
/* @__PURE__ */ s("div", { className: Be.content, children: i })
|
|
350
350
|
]
|
|
351
351
|
}
|
|
352
352
|
);
|
|
@@ -362,35 +362,35 @@ ie.propTypes = {
|
|
|
362
362
|
showBottomBar: e.bool,
|
|
363
363
|
titleFontStyles: e.object
|
|
364
364
|
};
|
|
365
|
-
const
|
|
365
|
+
const Ks = () => /* @__PURE__ */ s("div", { children: "EditAmbit" }), F2 = "data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%201L13.9996%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14%201L1.00044%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e", V2 = "_AppliedFiltersContainer_cokx9_2", A2 = "_AppliedFilterContent_cokx9_11", We = {
|
|
366
366
|
AppliedFiltersContainer: V2,
|
|
367
367
|
AppliedFilterContent: A2
|
|
368
|
-
}, O =
|
|
368
|
+
}, O = Tt((n) => ({
|
|
369
369
|
activeCategory: "",
|
|
370
370
|
activeSubCategory: "",
|
|
371
371
|
selectedIndicator: "",
|
|
372
372
|
tematicalFiltersSelected: [],
|
|
373
373
|
fontColor: "#605B56",
|
|
374
374
|
inputsColor: "#605B56"
|
|
375
|
-
})), lt = ({ title: n, onClick: d, isOpen:
|
|
375
|
+
})), lt = ({ title: n, onClick: d, isOpen: i = !0, textColor: o = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
|
|
376
376
|
const { t: a } = k(), { tematicalFiltersSelected: l } = O((u) => u), c = (u) => {
|
|
377
|
-
O.setState((
|
|
378
|
-
tematicalFiltersSelected:
|
|
379
|
-
(
|
|
377
|
+
O.setState((m) => ({
|
|
378
|
+
tematicalFiltersSelected: m.tematicalFiltersSelected.filter(
|
|
379
|
+
(g) => g.code !== u
|
|
380
380
|
)
|
|
381
381
|
}));
|
|
382
382
|
};
|
|
383
|
-
return /* @__PURE__ */
|
|
383
|
+
return /* @__PURE__ */ s(
|
|
384
384
|
ie,
|
|
385
385
|
{
|
|
386
|
-
isOpen:
|
|
386
|
+
isOpen: i,
|
|
387
387
|
onClick: d,
|
|
388
388
|
title: n ? a(n) : "Applied Filters",
|
|
389
389
|
activeColor: r,
|
|
390
|
-
children: /* @__PURE__ */
|
|
390
|
+
children: /* @__PURE__ */ s("div", { className: We.AppliedFiltersContainer, children: l == null ? void 0 : l.map((u, m) => /* @__PURE__ */ p("div", { className: We.AppliedFilterContent, style: { color: o, background: t }, children: [
|
|
391
391
|
a(u.name),
|
|
392
|
-
/* @__PURE__ */
|
|
393
|
-
] },
|
|
392
|
+
/* @__PURE__ */ s("img", { src: F2, alt: "CloseIcon", onClick: () => c(u.code), style: { cursor: "pointer" } })
|
|
393
|
+
] }, m)) })
|
|
394
394
|
}
|
|
395
395
|
);
|
|
396
396
|
};
|
|
@@ -408,12 +408,12 @@ lt.propTypes = {
|
|
|
408
408
|
),
|
|
409
409
|
activeColor: e.string
|
|
410
410
|
};
|
|
411
|
-
const ct = ({ title: n, onClick: d, isOpen:
|
|
411
|
+
const ct = ({ title: n, onClick: d, isOpen: i = !0, textColor: o = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
|
|
412
412
|
const { t: a } = k(), { tematicalFiltersSelected: l } = O((c) => c);
|
|
413
|
-
return /* @__PURE__ */
|
|
413
|
+
return /* @__PURE__ */ s(
|
|
414
414
|
ie,
|
|
415
415
|
{
|
|
416
|
-
isOpen:
|
|
416
|
+
isOpen: i,
|
|
417
417
|
onClick: d,
|
|
418
418
|
title: n ? a(n) : "Geographical Filters",
|
|
419
419
|
activeColor: r,
|
|
@@ -434,7 +434,7 @@ const O2 = "_checkboxContainer_zld97_2", I2 = {
|
|
|
434
434
|
}, dt = ({
|
|
435
435
|
onClick: n,
|
|
436
436
|
containerStyles: d,
|
|
437
|
-
color:
|
|
437
|
+
color: i = "#605B56",
|
|
438
438
|
indicator: o,
|
|
439
439
|
value: t
|
|
440
440
|
}) => {
|
|
@@ -442,12 +442,12 @@ const O2 = "_checkboxContainer_zld97_2", I2 = {
|
|
|
442
442
|
return /* @__PURE__ */ p(
|
|
443
443
|
"div",
|
|
444
444
|
{
|
|
445
|
-
style: { ...d, color:
|
|
445
|
+
style: { ...d, color: i },
|
|
446
446
|
role: "checkbox",
|
|
447
447
|
className: I2.checkboxContainer,
|
|
448
448
|
onClick: n,
|
|
449
449
|
children: [
|
|
450
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ s(
|
|
451
451
|
"input",
|
|
452
452
|
{
|
|
453
453
|
type: "checkbox",
|
|
@@ -460,7 +460,7 @@ const O2 = "_checkboxContainer_zld97_2", I2 = {
|
|
|
460
460
|
}
|
|
461
461
|
}
|
|
462
462
|
),
|
|
463
|
-
/* @__PURE__ */
|
|
463
|
+
/* @__PURE__ */ s("span", { className: "checkmark", children: r(a) })
|
|
464
464
|
]
|
|
465
465
|
}
|
|
466
466
|
);
|
|
@@ -477,14 +477,14 @@ dt.propTypes = {
|
|
|
477
477
|
checkedColor: e.string
|
|
478
478
|
};
|
|
479
479
|
function Oe(n, d) {
|
|
480
|
-
return Oe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(
|
|
481
|
-
return
|
|
480
|
+
return Oe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(i, o) {
|
|
481
|
+
return i.__proto__ = o, i;
|
|
482
482
|
}, Oe(n, d);
|
|
483
483
|
}
|
|
484
484
|
function R2(n, d) {
|
|
485
485
|
n.prototype = Object.create(d.prototype), n.prototype.constructor = n, Oe(n, d);
|
|
486
486
|
}
|
|
487
|
-
function
|
|
487
|
+
function $e(n) {
|
|
488
488
|
return n && n.stopPropagation && n.stopPropagation(), n && n.preventDefault && n.preventDefault(), !1;
|
|
489
489
|
}
|
|
490
490
|
function Se(n) {
|
|
@@ -499,15 +499,15 @@ function _e(n) {
|
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
function Q(n, d) {
|
|
502
|
-
return Ie(function(
|
|
503
|
-
let t =
|
|
502
|
+
return Ie(function(i, o) {
|
|
503
|
+
let t = i;
|
|
504
504
|
return t <= o.min && (t = o.min), t >= o.max && (t = o.max), t;
|
|
505
505
|
}(n, d), d);
|
|
506
506
|
}
|
|
507
507
|
function Ie(n, d) {
|
|
508
|
-
const
|
|
509
|
-
let o = n -
|
|
510
|
-
return 2 * Math.abs(
|
|
508
|
+
const i = (n - d.min) % d.step;
|
|
509
|
+
let o = n - i;
|
|
510
|
+
return 2 * Math.abs(i) >= d.step && (o += i > 0 ? d.step : -d.step), parseFloat(o.toFixed(5));
|
|
511
511
|
}
|
|
512
512
|
let Re = function(n) {
|
|
513
513
|
function d(o) {
|
|
@@ -522,19 +522,19 @@ let Re = function(n) {
|
|
|
522
522
|
t.setState({ index: -1 }, t.onEnd(t.getKeyDownEventMap()));
|
|
523
523
|
}, t.onMouseMove = (l) => {
|
|
524
524
|
t.setState({ pending: !0 });
|
|
525
|
-
const c = t.getMousePosition(l), u = t.getDiffPosition(c[0]),
|
|
526
|
-
t.move(
|
|
525
|
+
const c = t.getMousePosition(l), u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
|
|
526
|
+
t.move(m);
|
|
527
527
|
}, t.onTouchMove = (l) => {
|
|
528
528
|
if (l.touches.length > 1) return;
|
|
529
529
|
t.setState({ pending: !0 });
|
|
530
530
|
const c = t.getTouchPosition(l);
|
|
531
531
|
if (t.isScrolling === void 0) {
|
|
532
|
-
const
|
|
533
|
-
t.isScrolling = Math.abs(_) > Math.abs(
|
|
532
|
+
const g = c[0] - t.startPosition[0], _ = c[1] - t.startPosition[1];
|
|
533
|
+
t.isScrolling = Math.abs(_) > Math.abs(g);
|
|
534
534
|
}
|
|
535
535
|
if (t.isScrolling) return void t.setState({ index: -1 });
|
|
536
|
-
const u = t.getDiffPosition(c[0]),
|
|
537
|
-
t.move(
|
|
536
|
+
const u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
|
|
537
|
+
t.move(m);
|
|
538
538
|
}, t.onKeyDown = (l) => {
|
|
539
539
|
if (!(l.ctrlKey || l.shiftKey || l.altKey || l.metaKey)) switch (t.setState({ pending: !0 }), l.key) {
|
|
540
540
|
case "ArrowLeft":
|
|
@@ -569,7 +569,7 @@ let Re = function(n) {
|
|
|
569
569
|
t.start(u, c[0]), _e(t.getMouseEventMap());
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
|
-
|
|
572
|
+
$e(l);
|
|
573
573
|
}
|
|
574
574
|
}, t.onSliderClick = (l) => {
|
|
575
575
|
if (!t.props.disabled && t.props.onSliderClick && !t.hasMoved) {
|
|
@@ -577,18 +577,18 @@ let Re = function(n) {
|
|
|
577
577
|
t.props.onSliderClick(u);
|
|
578
578
|
}
|
|
579
579
|
}, t.createOnKeyDown = (l) => (c) => {
|
|
580
|
-
t.props.disabled || (t.start(l), _e(t.getKeyDownEventMap()),
|
|
580
|
+
t.props.disabled || (t.start(l), _e(t.getKeyDownEventMap()), $e(c));
|
|
581
581
|
}, t.createOnMouseDown = (l) => (c) => {
|
|
582
582
|
if (t.props.disabled || c.button === 2) return;
|
|
583
583
|
t.setState({ pending: !0 });
|
|
584
584
|
const u = t.getMousePosition(c);
|
|
585
|
-
t.start(l, u[0]), _e(t.getMouseEventMap()),
|
|
585
|
+
t.start(l, u[0]), _e(t.getMouseEventMap()), $e(c);
|
|
586
586
|
}, t.createOnTouchStart = (l) => (c) => {
|
|
587
587
|
if (t.props.disabled || c.touches.length > 1) return;
|
|
588
588
|
t.setState({ pending: !0 });
|
|
589
589
|
const u = t.getTouchPosition(c);
|
|
590
|
-
t.startPosition = u, t.isScrolling = void 0, t.start(l, u[0]), _e(t.getTouchEventMap()), function(
|
|
591
|
-
|
|
590
|
+
t.startPosition = u, t.isScrolling = void 0, t.start(l, u[0]), _e(t.getTouchEventMap()), function(m) {
|
|
591
|
+
m.stopPropagation && m.stopPropagation();
|
|
592
592
|
}(c);
|
|
593
593
|
}, t.handleResize = () => {
|
|
594
594
|
const l = window.setTimeout(() => {
|
|
@@ -596,183 +596,183 @@ let Re = function(n) {
|
|
|
596
596
|
}, 0);
|
|
597
597
|
t.pendingResizeTimeouts.push(l);
|
|
598
598
|
}, t.renderThumb = (l, c) => {
|
|
599
|
-
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""),
|
|
599
|
+
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), m = { ref: (_) => {
|
|
600
600
|
t["thumb" + c] = _;
|
|
601
|
-
}, key: t.props.thumbClassName + "-" + c, className: u, style: l, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled },
|
|
602
|
-
return t.props.ariaValuetext && (
|
|
601
|
+
}, key: t.props.thumbClassName + "-" + c, className: u, style: l, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, g = { index: c, value: be(t.state.value), valueNow: t.state.value[c] };
|
|
602
|
+
return t.props.ariaValuetext && (m["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(g)), t.props.renderThumb(m, g);
|
|
603
603
|
}, t.renderTrack = (l, c, u) => {
|
|
604
|
-
const
|
|
605
|
-
return t.props.renderTrack(
|
|
604
|
+
const m = { key: t.props.trackClassName + "-" + l, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + l, style: t.buildTrackStyle(c, t.state.upperBound - u) }, g = { index: l, value: be(t.state.value) };
|
|
605
|
+
return t.props.renderTrack(m, g);
|
|
606
606
|
};
|
|
607
607
|
let r = Se(o.value);
|
|
608
608
|
r.length || (r = Se(o.defaultValue)), t.pendingResizeTimeouts = [];
|
|
609
609
|
const a = [];
|
|
610
610
|
for (let l = 0; l < r.length; l += 1) r[l] = Q(r[l], o), a.push(l);
|
|
611
|
-
return t.resizeObserver = null, t.resizeElementRef =
|
|
611
|
+
return t.resizeObserver = null, t.resizeElementRef = S.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: r, zIndices: a }, t;
|
|
612
612
|
}
|
|
613
613
|
R2(d, n);
|
|
614
|
-
var
|
|
615
|
-
return
|
|
614
|
+
var i = d.prototype;
|
|
615
|
+
return i.componentDidMount = function() {
|
|
616
616
|
typeof window < "u" && (this.resizeObserver = new ResizeObserver(this.handleResize), this.resizeObserver.observe(this.resizeElementRef.current), this.resize());
|
|
617
617
|
}, d.getDerivedStateFromProps = function(o, t) {
|
|
618
618
|
const r = Se(o.value);
|
|
619
619
|
return r.length ? t.pending ? null : { value: r.map((a) => Q(a, o)) } : null;
|
|
620
|
-
},
|
|
620
|
+
}, i.componentDidUpdate = function() {
|
|
621
621
|
this.state.upperBound === 0 && this.resize();
|
|
622
|
-
},
|
|
622
|
+
}, i.componentWillUnmount = function() {
|
|
623
623
|
this.clearPendingResizeTimeouts(), this.resizeObserver && this.resizeObserver.disconnect();
|
|
624
|
-
},
|
|
624
|
+
}, i.onEnd = function(o) {
|
|
625
625
|
o && function(t) {
|
|
626
626
|
Object.keys(t).forEach((r) => {
|
|
627
627
|
typeof document < "u" && document.removeEventListener(r, t[r], !1);
|
|
628
628
|
});
|
|
629
629
|
}(o), this.hasMoved && this.fireChangeEvent("onAfterChange"), this.setState({ pending: !1 }), this.hasMoved = !1;
|
|
630
|
-
},
|
|
630
|
+
}, i.getValue = function() {
|
|
631
631
|
return be(this.state.value);
|
|
632
|
-
},
|
|
632
|
+
}, i.getClosestIndex = function(o) {
|
|
633
633
|
let t = Number.MAX_VALUE, r = -1;
|
|
634
634
|
const { value: a } = this.state, l = a.length;
|
|
635
635
|
for (let c = 0; c < l; c += 1) {
|
|
636
|
-
const u = this.calcOffset(a[c]),
|
|
637
|
-
|
|
636
|
+
const u = this.calcOffset(a[c]), m = Math.abs(o - u);
|
|
637
|
+
m < t && (t = m, r = c);
|
|
638
638
|
}
|
|
639
639
|
return r;
|
|
640
|
-
},
|
|
640
|
+
}, i.getMousePosition = function(o) {
|
|
641
641
|
return [o["page" + this.axisKey()], o["page" + this.orthogonalAxisKey()]];
|
|
642
|
-
},
|
|
642
|
+
}, i.getTouchPosition = function(o) {
|
|
643
643
|
const t = o.touches[0];
|
|
644
644
|
return [t["page" + this.axisKey()], t["page" + this.orthogonalAxisKey()]];
|
|
645
|
-
},
|
|
645
|
+
}, i.getKeyDownEventMap = function() {
|
|
646
646
|
return { keydown: this.onKeyDown, keyup: this.onKeyUp, focusout: this.onBlur };
|
|
647
|
-
},
|
|
647
|
+
}, i.getMouseEventMap = function() {
|
|
648
648
|
return { mousemove: this.onMouseMove, mouseup: this.onMouseUp };
|
|
649
|
-
},
|
|
649
|
+
}, i.getTouchEventMap = function() {
|
|
650
650
|
return { touchmove: this.onTouchMove, touchend: this.onTouchEnd };
|
|
651
|
-
},
|
|
651
|
+
}, i.getValueFromPosition = function(o) {
|
|
652
652
|
const t = o / (this.state.sliderLength - this.state.thumbSize) * (this.props.max - this.props.min);
|
|
653
653
|
return Q(this.state.startValue + t, this.props);
|
|
654
|
-
},
|
|
654
|
+
}, i.getDiffPosition = function(o) {
|
|
655
655
|
let t = o - this.state.startPosition;
|
|
656
656
|
return this.props.invert && (t *= -1), t;
|
|
657
|
-
},
|
|
657
|
+
}, i.resize = function() {
|
|
658
658
|
const { slider: o, thumb0: t } = this;
|
|
659
659
|
if (!o || !t) return;
|
|
660
|
-
const r = this.sizeKey(), a = o.getBoundingClientRect(), l = o[r], c = a[this.posMaxKey()], u = a[this.posMinKey()],
|
|
661
|
-
this.state.upperBound ===
|
|
662
|
-
},
|
|
660
|
+
const r = this.sizeKey(), a = o.getBoundingClientRect(), l = o[r], c = a[this.posMaxKey()], u = a[this.posMinKey()], m = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], g = l - m, _ = Math.abs(c - u);
|
|
661
|
+
this.state.upperBound === g && this.state.sliderLength === _ && this.state.thumbSize === m || this.setState({ upperBound: g, sliderLength: _, thumbSize: m });
|
|
662
|
+
}, i.calcOffset = function(o) {
|
|
663
663
|
const t = this.props.max - this.props.min;
|
|
664
664
|
return t === 0 ? 0 : (o - this.props.min) / t * this.state.upperBound;
|
|
665
|
-
},
|
|
665
|
+
}, i.calcValue = function(o) {
|
|
666
666
|
return o / this.state.upperBound * (this.props.max - this.props.min) + this.props.min;
|
|
667
|
-
},
|
|
667
|
+
}, i.calcOffsetFromPosition = function(o) {
|
|
668
668
|
const { slider: t } = this, r = t.getBoundingClientRect(), a = r[this.posMaxKey()], l = r[this.posMinKey()];
|
|
669
669
|
let c = o - (window["page" + this.axisKey() + "Offset"] + (this.props.invert ? a : l));
|
|
670
670
|
return this.props.invert && (c = this.state.sliderLength - c), c -= this.state.thumbSize / 2, c;
|
|
671
|
-
},
|
|
671
|
+
}, i.forceValueFromPosition = function(o, t) {
|
|
672
672
|
const r = this.calcOffsetFromPosition(o), a = this.getClosestIndex(r), l = Q(this.calcValue(r), this.props), c = this.state.value.slice();
|
|
673
673
|
c[a] = l;
|
|
674
674
|
for (let u = 0; u < c.length - 1; u += 1) if (c[u + 1] - c[u] < this.props.minDistance) return;
|
|
675
675
|
this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value: c }, () => {
|
|
676
676
|
t(a), this.fireChangeEvent("onChange");
|
|
677
677
|
});
|
|
678
|
-
},
|
|
678
|
+
}, i.clearPendingResizeTimeouts = function() {
|
|
679
679
|
do {
|
|
680
680
|
const o = this.pendingResizeTimeouts.shift();
|
|
681
681
|
clearTimeout(o);
|
|
682
682
|
} while (this.pendingResizeTimeouts.length);
|
|
683
|
-
},
|
|
683
|
+
}, i.start = function(o, t) {
|
|
684
684
|
const r = this["thumb" + o];
|
|
685
685
|
r && r.focus();
|
|
686
686
|
const { zIndices: a } = this.state;
|
|
687
687
|
a.splice(a.indexOf(o), 1), a.push(o), this.setState((l) => ({ startValue: l.value[o], startPosition: t !== void 0 ? t : l.startPosition, index: o, zIndices: a }));
|
|
688
|
-
},
|
|
688
|
+
}, i.moveUpByStep = function(o) {
|
|
689
689
|
o === void 0 && (o = this.props.step);
|
|
690
690
|
const t = this.state.value[this.state.index], r = Q(this.props.invert && this.props.orientation === "horizontal" ? t - o : t + o, this.props);
|
|
691
691
|
this.move(Math.min(r, this.props.max));
|
|
692
|
-
},
|
|
692
|
+
}, i.moveDownByStep = function(o) {
|
|
693
693
|
o === void 0 && (o = this.props.step);
|
|
694
694
|
const t = this.state.value[this.state.index], r = Q(this.props.invert && this.props.orientation === "horizontal" ? t + o : t - o, this.props);
|
|
695
695
|
this.move(Math.max(r, this.props.min));
|
|
696
|
-
},
|
|
696
|
+
}, i.move = function(o) {
|
|
697
697
|
const t = this.state.value.slice(), { index: r } = this.state, { length: a } = t, l = t[r];
|
|
698
698
|
if (o === l) return;
|
|
699
699
|
this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
|
|
700
|
-
const { pearling: c, max: u, min:
|
|
700
|
+
const { pearling: c, max: u, min: m, minDistance: g } = this.props;
|
|
701
701
|
if (!c) {
|
|
702
702
|
if (r > 0) {
|
|
703
703
|
const _ = t[r - 1];
|
|
704
|
-
o < _ +
|
|
704
|
+
o < _ + g && (o = _ + g);
|
|
705
705
|
}
|
|
706
706
|
if (r < a - 1) {
|
|
707
707
|
const _ = t[r + 1];
|
|
708
|
-
o > _ -
|
|
708
|
+
o > _ - g && (o = _ - g);
|
|
709
709
|
}
|
|
710
710
|
}
|
|
711
|
-
t[r] = o, c && a > 1 && (o > l ? (this.pushSucceeding(t,
|
|
712
|
-
for (let
|
|
713
|
-
const
|
|
714
|
-
y[_ - 1 -
|
|
711
|
+
t[r] = o, c && a > 1 && (o > l ? (this.pushSucceeding(t, g, r), function(_, y, h, b) {
|
|
712
|
+
for (let C = 0; C < _; C += 1) {
|
|
713
|
+
const f = b - C * h;
|
|
714
|
+
y[_ - 1 - C] > f && (y[_ - 1 - C] = f);
|
|
715
715
|
}
|
|
716
|
-
}(a, t,
|
|
717
|
-
for (let
|
|
718
|
-
const
|
|
719
|
-
y[
|
|
716
|
+
}(a, t, g, u)) : o < l && (this.pushPreceding(t, g, r), function(_, y, h, b) {
|
|
717
|
+
for (let C = 0; C < _; C += 1) {
|
|
718
|
+
const f = b + C * h;
|
|
719
|
+
y[C] < f && (y[C] = f);
|
|
720
720
|
}
|
|
721
|
-
}(a, t,
|
|
722
|
-
},
|
|
721
|
+
}(a, t, g, m))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
|
|
722
|
+
}, i.pushSucceeding = function(o, t, r) {
|
|
723
723
|
let a, l;
|
|
724
724
|
for (a = r, l = o[a] + t; o[a + 1] !== null && l > o[a + 1]; a += 1, l = o[a] + t) o[a + 1] = Ie(l, this.props);
|
|
725
|
-
},
|
|
725
|
+
}, i.pushPreceding = function(o, t, r) {
|
|
726
726
|
for (let a = r, l = o[a] - t; o[a - 1] !== null && l < o[a - 1]; a -= 1, l = o[a] - t) o[a - 1] = Ie(l, this.props);
|
|
727
|
-
},
|
|
727
|
+
}, i.axisKey = function() {
|
|
728
728
|
return this.props.orientation === "vertical" ? "Y" : "X";
|
|
729
|
-
},
|
|
729
|
+
}, i.orthogonalAxisKey = function() {
|
|
730
730
|
return this.props.orientation === "vertical" ? "X" : "Y";
|
|
731
|
-
},
|
|
731
|
+
}, i.posMinKey = function() {
|
|
732
732
|
return this.props.orientation === "vertical" ? this.props.invert ? "bottom" : "top" : this.props.invert ? "right" : "left";
|
|
733
|
-
},
|
|
733
|
+
}, i.posMaxKey = function() {
|
|
734
734
|
return this.props.orientation === "vertical" ? this.props.invert ? "top" : "bottom" : this.props.invert ? "left" : "right";
|
|
735
|
-
},
|
|
735
|
+
}, i.sizeKey = function() {
|
|
736
736
|
return this.props.orientation === "vertical" ? "clientHeight" : "clientWidth";
|
|
737
|
-
},
|
|
737
|
+
}, i.fireChangeEvent = function(o) {
|
|
738
738
|
this.props[o] && this.props[o](be(this.state.value), this.state.index);
|
|
739
|
-
},
|
|
739
|
+
}, i.buildThumbStyle = function(o, t) {
|
|
740
740
|
const r = { position: "absolute", touchAction: "none", willChange: this.state.index >= 0 ? this.posMinKey() : void 0, zIndex: this.state.zIndices.indexOf(t) + 1 };
|
|
741
741
|
return r[this.posMinKey()] = o + "px", r;
|
|
742
|
-
},
|
|
742
|
+
}, i.buildTrackStyle = function(o, t) {
|
|
743
743
|
const r = { position: "absolute", willChange: this.state.index >= 0 ? this.posMinKey() + "," + this.posMaxKey() : void 0 };
|
|
744
744
|
return r[this.posMinKey()] = o, r[this.posMaxKey()] = t, r;
|
|
745
|
-
},
|
|
745
|
+
}, i.buildMarkStyle = function(o) {
|
|
746
746
|
var t;
|
|
747
747
|
return (t = { position: "absolute" })[this.posMinKey()] = o, t;
|
|
748
|
-
},
|
|
748
|
+
}, i.renderThumbs = function(o) {
|
|
749
749
|
const { length: t } = o, r = [];
|
|
750
750
|
for (let l = 0; l < t; l += 1) r[l] = this.buildThumbStyle(o[l], l);
|
|
751
751
|
const a = [];
|
|
752
752
|
for (let l = 0; l < t; l += 1) a[l] = this.renderThumb(r[l], l);
|
|
753
753
|
return a;
|
|
754
|
-
},
|
|
754
|
+
}, i.renderTracks = function(o) {
|
|
755
755
|
const t = [], r = o.length - 1;
|
|
756
756
|
t.push(this.renderTrack(0, 0, o[0]));
|
|
757
757
|
for (let a = 0; a < r; a += 1) t.push(this.renderTrack(a + 1, o[a], o[a + 1]));
|
|
758
758
|
return t.push(this.renderTrack(r + 1, o[r], this.state.upperBound)), t;
|
|
759
|
-
},
|
|
759
|
+
}, i.renderMarks = function() {
|
|
760
760
|
let { marks: o } = this.props;
|
|
761
761
|
const t = this.props.max - this.props.min + 1;
|
|
762
762
|
return typeof o == "boolean" ? o = Array.from({ length: t }).map((r, a) => a) : typeof o == "number" && (o = Array.from({ length: t }).map((r, a) => a).filter((r) => r % o == 0)), o.map(parseFloat).sort((r, a) => r - a).map((r) => {
|
|
763
763
|
const a = this.calcOffset(r), l = { key: r, className: this.props.markClassName, style: this.buildMarkStyle(a) };
|
|
764
764
|
return this.props.renderMark(l);
|
|
765
765
|
});
|
|
766
|
-
},
|
|
766
|
+
}, i.render = function() {
|
|
767
767
|
const o = [], { value: t } = this.state, r = t.length;
|
|
768
768
|
for (let u = 0; u < r; u += 1) o[u] = this.calcOffset(t[u], u);
|
|
769
769
|
const a = this.props.withTracks ? this.renderTracks(o) : null, l = this.renderThumbs(o), c = this.props.marks ? this.renderMarks() : null;
|
|
770
|
-
return
|
|
770
|
+
return S.createElement("div", { ref: (u) => {
|
|
771
771
|
this.slider = u, this.resizeElementRef.current = u;
|
|
772
772
|
}, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, a, l, c);
|
|
773
773
|
}, d;
|
|
774
|
-
}(
|
|
775
|
-
Re.displayName = "ReactSlider", Re.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) =>
|
|
774
|
+
}(S.Component);
|
|
775
|
+
Re.displayName = "ReactSlider", Re.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) => S.createElement("div", n), renderTrack: (n) => S.createElement("div", n), renderMark: (n) => S.createElement("span", n) };
|
|
776
776
|
var qe = Re;
|
|
777
777
|
const q2 = "_container_15vgv_2", E2 = "_unitLabel_15vgv_9", P2 = "_slider_15vgv_12", j2 = "_thumb_15vgv_18", z2 = "_track_15vgv_27", Z2 = "_labels_15vgv_33", se = {
|
|
778
778
|
container: q2,
|
|
@@ -784,26 +784,26 @@ const q2 = "_container_15vgv_2", E2 = "_unitLabel_15vgv_9", P2 = "_slider_15vgv_
|
|
|
784
784
|
}, ut = ({
|
|
785
785
|
min: n = 0,
|
|
786
786
|
max: d = 100,
|
|
787
|
-
step:
|
|
787
|
+
step: i = 1,
|
|
788
788
|
onChange: o,
|
|
789
789
|
width: t = 300,
|
|
790
790
|
unit: r,
|
|
791
791
|
fontColor: a = "#605B56",
|
|
792
792
|
defaultValue: l
|
|
793
793
|
}) => {
|
|
794
|
-
const { t: c } = k(), [u,
|
|
795
|
-
|
|
794
|
+
const { t: c } = k(), [u, m] = L([n, d]), g = (_) => {
|
|
795
|
+
m(_), o == null || o({ min: _[0], max: _[1] });
|
|
796
796
|
};
|
|
797
797
|
return M(() => {
|
|
798
|
-
l ||
|
|
798
|
+
l || m([n, d]);
|
|
799
799
|
}, [l]), /* @__PURE__ */ p(
|
|
800
800
|
"div",
|
|
801
801
|
{
|
|
802
802
|
className: se.container,
|
|
803
803
|
style: { width: `${t}px`, color: `${a}` },
|
|
804
804
|
children: [
|
|
805
|
-
/* @__PURE__ */
|
|
806
|
-
/* @__PURE__ */
|
|
805
|
+
/* @__PURE__ */ s("div", { className: se.unitLabel, children: /* @__PURE__ */ s("span", { children: c(r) }) }),
|
|
806
|
+
/* @__PURE__ */ s(
|
|
807
807
|
qe,
|
|
808
808
|
{
|
|
809
809
|
className: se.slider,
|
|
@@ -811,17 +811,17 @@ const q2 = "_container_15vgv_2", E2 = "_unitLabel_15vgv_9", P2 = "_slider_15vgv_
|
|
|
811
811
|
trackClassName: se.track,
|
|
812
812
|
min: n,
|
|
813
813
|
max: d,
|
|
814
|
-
step:
|
|
814
|
+
step: i,
|
|
815
815
|
value: u,
|
|
816
|
-
onAfterChange:
|
|
816
|
+
onAfterChange: g,
|
|
817
817
|
withTracks: !0,
|
|
818
818
|
pearling: !0,
|
|
819
819
|
minDistance: 0.1
|
|
820
820
|
}
|
|
821
821
|
),
|
|
822
822
|
/* @__PURE__ */ p("div", { className: se.labels, children: [
|
|
823
|
-
/* @__PURE__ */
|
|
824
|
-
/* @__PURE__ */
|
|
823
|
+
/* @__PURE__ */ s("span", { children: u[0] }),
|
|
824
|
+
/* @__PURE__ */ s("span", { children: u[1] })
|
|
825
825
|
] })
|
|
826
826
|
]
|
|
827
827
|
}
|
|
@@ -849,78 +849,78 @@ const K2 = "_tematicalFiltersInputContainer_1vm1r_2", H2 = "_inputTypeContainer_
|
|
|
849
849
|
//onChangeBothType
|
|
850
850
|
activeColor: d
|
|
851
851
|
}) => {
|
|
852
|
-
const [
|
|
852
|
+
const [i, o] = L(), {
|
|
853
853
|
type: t,
|
|
854
854
|
name: r,
|
|
855
855
|
values: a,
|
|
856
856
|
minValue: l,
|
|
857
857
|
maxValue: c,
|
|
858
858
|
unit: u,
|
|
859
|
-
step:
|
|
860
|
-
disabled:
|
|
859
|
+
step: m,
|
|
860
|
+
disabled: g
|
|
861
861
|
} = n || {}, _ = ge(
|
|
862
|
-
() => t == "cat" ||
|
|
863
|
-
[
|
|
862
|
+
() => t == "cat" || i == "cat",
|
|
863
|
+
[i, t]
|
|
864
864
|
), y = ge(
|
|
865
|
-
() => t == "abs" ||
|
|
866
|
-
[
|
|
865
|
+
() => t == "abs" || i == "abs",
|
|
866
|
+
[i, t]
|
|
867
867
|
), {
|
|
868
868
|
tematicalFiltersSelected: h,
|
|
869
|
-
selectedIndicator:
|
|
870
|
-
fontColor:
|
|
871
|
-
inputsColor:
|
|
869
|
+
selectedIndicator: b,
|
|
870
|
+
fontColor: C,
|
|
871
|
+
inputsColor: f
|
|
872
872
|
} = O((x) => x), v = (x) => {
|
|
873
873
|
if (console.log("onChangInput", x), x) {
|
|
874
|
-
const { min: w, max:
|
|
875
|
-
console.log("type: ",
|
|
876
|
-
let
|
|
877
|
-
de == "both" && (
|
|
874
|
+
const { min: w, max: B, valueClicked: $, allValues: T } = x || {}, { code: j, type: de, source: q } = n || {}, z = y ? "abs" : _ ? "cat" : "both";
|
|
875
|
+
console.log("type: ", z);
|
|
876
|
+
let E = j[0];
|
|
877
|
+
de == "both" && (E = z == "cat" ? j[1] : j[0]), z == "cat" ? O.setState((W) => {
|
|
878
878
|
let H = W.tematicalFiltersSelected.find(
|
|
879
|
-
(A) => A.code ===
|
|
879
|
+
(A) => A.code === E
|
|
880
880
|
);
|
|
881
881
|
if (H) {
|
|
882
882
|
let A = [H.values];
|
|
883
|
-
return H.values.includes(
|
|
884
|
-
(
|
|
885
|
-
) : A = [...H.values,
|
|
883
|
+
return H.values.includes($) ? A = H.values.filter(
|
|
884
|
+
(R) => R !== $
|
|
885
|
+
) : A = [...H.values, $], A.length == T.length ? {
|
|
886
886
|
tematicalFiltersSelected: W.tematicalFiltersSelected.filter(
|
|
887
|
-
(
|
|
887
|
+
(R) => R.code !== E
|
|
888
888
|
)
|
|
889
889
|
} : {
|
|
890
890
|
tematicalFiltersSelected: W.tematicalFiltersSelected.map(
|
|
891
|
-
(
|
|
891
|
+
(R) => R.code === E ? { ...R, values: A } : R
|
|
892
892
|
)
|
|
893
893
|
};
|
|
894
894
|
} else {
|
|
895
|
-
let A =
|
|
895
|
+
let A = T.map((R, St) => St);
|
|
896
896
|
return {
|
|
897
897
|
tematicalFiltersSelected: [
|
|
898
898
|
...h,
|
|
899
899
|
{
|
|
900
900
|
type: "cat",
|
|
901
|
-
code:
|
|
902
|
-
values: A.filter((
|
|
901
|
+
code: E,
|
|
902
|
+
values: A.filter((R) => R !== $),
|
|
903
903
|
name: n.name,
|
|
904
|
-
source:
|
|
904
|
+
source: q
|
|
905
905
|
}
|
|
906
906
|
]
|
|
907
907
|
};
|
|
908
908
|
}
|
|
909
|
-
}) :
|
|
909
|
+
}) : z == "abs" && O.setState((W) => {
|
|
910
910
|
let H = W.tematicalFiltersSelected.find(
|
|
911
|
-
(A) => A.code ===
|
|
911
|
+
(A) => A.code === E
|
|
912
912
|
);
|
|
913
|
-
if (w == n.minValue &&
|
|
913
|
+
if (w == n.minValue && B == n.maxValue)
|
|
914
914
|
return {
|
|
915
915
|
tematicalFiltersSelected: W.tematicalFiltersSelected.filter(
|
|
916
|
-
(A) => A.code !==
|
|
916
|
+
(A) => A.code !== E
|
|
917
917
|
)
|
|
918
918
|
};
|
|
919
919
|
if (H) {
|
|
920
920
|
let A = { ...H };
|
|
921
|
-
return A.min = w, A.max =
|
|
921
|
+
return A.min = w, A.max = B, A.type = z, {
|
|
922
922
|
tematicalFiltersSelected: W.tematicalFiltersSelected.map(
|
|
923
|
-
(
|
|
923
|
+
(R) => R.code === E ? A : R
|
|
924
924
|
)
|
|
925
925
|
};
|
|
926
926
|
} else
|
|
@@ -928,10 +928,10 @@ const K2 = "_tematicalFiltersInputContainer_1vm1r_2", H2 = "_inputTypeContainer_
|
|
|
928
928
|
tematicalFiltersSelected: [
|
|
929
929
|
...h,
|
|
930
930
|
{
|
|
931
|
-
type:
|
|
932
|
-
code:
|
|
931
|
+
type: z,
|
|
932
|
+
code: E,
|
|
933
933
|
min: w,
|
|
934
|
-
max:
|
|
934
|
+
max: B,
|
|
935
935
|
name: n.name,
|
|
936
936
|
source: n.source
|
|
937
937
|
}
|
|
@@ -946,36 +946,36 @@ const K2 = "_tematicalFiltersInputContainer_1vm1r_2", H2 = "_inputTypeContainer_
|
|
|
946
946
|
w.type === "cat" ? x[w.code] = new Set(w.values) : x[w.code] = [w.min, w.max];
|
|
947
947
|
return x;
|
|
948
948
|
}, [h]);
|
|
949
|
-
return /* @__PURE__ */
|
|
949
|
+
return /* @__PURE__ */ s("div", { className: ye.tematicalFiltersInputContainer, children: /* @__PURE__ */ p(
|
|
950
950
|
ie,
|
|
951
951
|
{
|
|
952
952
|
titleFontStyles: {
|
|
953
953
|
fontSize: 16,
|
|
954
954
|
fontWeight: 400,
|
|
955
|
-
opacity:
|
|
955
|
+
opacity: g ? 0.5 : 1
|
|
956
956
|
},
|
|
957
957
|
title: r,
|
|
958
|
-
isOpen:
|
|
958
|
+
isOpen: b == `id${r}`,
|
|
959
959
|
onClick: () => {
|
|
960
|
-
|
|
961
|
-
selectedIndicator:
|
|
960
|
+
g || O.setState(() => ({
|
|
961
|
+
selectedIndicator: b == `id${r}` ? "" : `id${r}`
|
|
962
962
|
}));
|
|
963
963
|
},
|
|
964
964
|
showBottomBar: !1,
|
|
965
965
|
height: 42,
|
|
966
966
|
titleMarginChildren: 14,
|
|
967
967
|
className: "tematicalFiltersInputContainer",
|
|
968
|
-
color:
|
|
968
|
+
color: C,
|
|
969
969
|
activeColor: d,
|
|
970
970
|
children: [
|
|
971
971
|
t == "both" && /* @__PURE__ */ p(
|
|
972
972
|
"div",
|
|
973
973
|
{
|
|
974
974
|
className: ye.inputTypeContainer,
|
|
975
|
-
style: { color:
|
|
975
|
+
style: { color: C },
|
|
976
976
|
children: [
|
|
977
977
|
/* @__PURE__ */ p("label", { children: [
|
|
978
|
-
/* @__PURE__ */
|
|
978
|
+
/* @__PURE__ */ s(
|
|
979
979
|
"input",
|
|
980
980
|
{
|
|
981
981
|
type: "radio",
|
|
@@ -986,15 +986,15 @@ const K2 = "_tematicalFiltersInputContainer_1vm1r_2", H2 = "_inputTypeContainer_
|
|
|
986
986
|
},
|
|
987
987
|
style: {
|
|
988
988
|
marginRight: 4,
|
|
989
|
-
backgroundColor:
|
|
990
|
-
border: `1.5px solid ${
|
|
989
|
+
backgroundColor: i == "abs" ? f : "white",
|
|
990
|
+
border: `1.5px solid ${i == "abs" ? f : C}`
|
|
991
991
|
}
|
|
992
992
|
}
|
|
993
993
|
),
|
|
994
994
|
"Absoluto"
|
|
995
995
|
] }),
|
|
996
996
|
/* @__PURE__ */ p("label", { children: [
|
|
997
|
-
/* @__PURE__ */
|
|
997
|
+
/* @__PURE__ */ s(
|
|
998
998
|
"input",
|
|
999
999
|
{
|
|
1000
1000
|
type: "radio",
|
|
@@ -1005,8 +1005,8 @@ const K2 = "_tematicalFiltersInputContainer_1vm1r_2", H2 = "_inputTypeContainer_
|
|
|
1005
1005
|
},
|
|
1006
1006
|
style: {
|
|
1007
1007
|
marginRight: 4,
|
|
1008
|
-
backgroundColor:
|
|
1009
|
-
border: `1.5px solid ${
|
|
1008
|
+
backgroundColor: i == "cat" ? f : "white",
|
|
1009
|
+
border: `1.5px solid ${i == "cat" ? f : C}`
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
1012
|
),
|
|
@@ -1015,19 +1015,19 @@ const K2 = "_tematicalFiltersInputContainer_1vm1r_2", H2 = "_inputTypeContainer_
|
|
|
1015
1015
|
]
|
|
1016
1016
|
}
|
|
1017
1017
|
),
|
|
1018
|
-
_ && /* @__PURE__ */
|
|
1019
|
-
var
|
|
1020
|
-
return /* @__PURE__ */
|
|
1018
|
+
_ && /* @__PURE__ */ s("div", { className: ye.checkboxContainer, children: a.map((x, w) => {
|
|
1019
|
+
var B;
|
|
1020
|
+
return /* @__PURE__ */ s(
|
|
1021
1021
|
dt,
|
|
1022
1022
|
{
|
|
1023
1023
|
onClick: () => v({ valueClicked: w, allValues: a }),
|
|
1024
1024
|
indicator: x,
|
|
1025
|
-
value: ((
|
|
1025
|
+
value: ((B = N[n.code[t == "both" ? 1 : 0]]) == null ? void 0 : B.has(w)) || !N[n.code[t == "both" ? 1 : 0]]
|
|
1026
1026
|
},
|
|
1027
1027
|
`checkbox-${w}`
|
|
1028
1028
|
);
|
|
1029
1029
|
}) }),
|
|
1030
|
-
(y || t == "glb") && /* @__PURE__ */
|
|
1030
|
+
(y || t == "glb") && /* @__PURE__ */ s("div", { className: ye.absoluteSliderContainer, children: /* @__PURE__ */ s(
|
|
1031
1031
|
ut,
|
|
1032
1032
|
{
|
|
1033
1033
|
onChange: v,
|
|
@@ -1035,7 +1035,7 @@ const K2 = "_tematicalFiltersInputContainer_1vm1r_2", H2 = "_inputTypeContainer_
|
|
|
1035
1035
|
max: c,
|
|
1036
1036
|
unit: u,
|
|
1037
1037
|
defaultValue: N[n.code[0]] ? N[n.code[0]] : "",
|
|
1038
|
-
step:
|
|
1038
|
+
step: m
|
|
1039
1039
|
}
|
|
1040
1040
|
) })
|
|
1041
1041
|
]
|
|
@@ -1060,11 +1060,11 @@ Ze.propTypes = {
|
|
|
1060
1060
|
const pt = ({
|
|
1061
1061
|
subcategory: n,
|
|
1062
1062
|
fontColor: d,
|
|
1063
|
-
activeColor:
|
|
1063
|
+
activeColor: i
|
|
1064
1064
|
//onChangeBothType,
|
|
1065
1065
|
}) => {
|
|
1066
1066
|
const { activeSubcategory: o } = O((a) => a), { name: t, indicators: r } = n || {};
|
|
1067
|
-
return /* @__PURE__ */
|
|
1067
|
+
return /* @__PURE__ */ s(
|
|
1068
1068
|
ie,
|
|
1069
1069
|
{
|
|
1070
1070
|
title: t,
|
|
@@ -1079,13 +1079,13 @@ const pt = ({
|
|
|
1079
1079
|
titleMarginChildren: 20,
|
|
1080
1080
|
height: 48,
|
|
1081
1081
|
color: d,
|
|
1082
|
-
activeColor:
|
|
1083
|
-
children: r == null ? void 0 : r.map((a, l) => /* @__PURE__ */
|
|
1082
|
+
activeColor: i,
|
|
1083
|
+
children: r == null ? void 0 : r.map((a, l) => /* @__PURE__ */ s(
|
|
1084
1084
|
Ze,
|
|
1085
1085
|
{
|
|
1086
1086
|
indicator: a,
|
|
1087
1087
|
fontColor: d,
|
|
1088
|
-
activeColor:
|
|
1088
|
+
activeColor: i
|
|
1089
1089
|
},
|
|
1090
1090
|
`indicatorSub-${l}`
|
|
1091
1091
|
))
|
|
@@ -1110,22 +1110,22 @@ const mt = ({
|
|
|
1110
1110
|
// onChangeBothType,
|
|
1111
1111
|
activeColor: d
|
|
1112
1112
|
}) => {
|
|
1113
|
-
const { name:
|
|
1114
|
-
return n && /* @__PURE__ */
|
|
1113
|
+
const { name: i, subcategories: o, indicators: t } = n || {}, { activeCategory: r, fontColor: a } = O((l) => l);
|
|
1114
|
+
return n && /* @__PURE__ */ s(
|
|
1115
1115
|
ie,
|
|
1116
1116
|
{
|
|
1117
1117
|
onClick: () => {
|
|
1118
1118
|
O.setState((l) => ({
|
|
1119
|
-
activeCategory: r === `id${
|
|
1119
|
+
activeCategory: r === `id${i}` ? "" : `id${i}`
|
|
1120
1120
|
}));
|
|
1121
1121
|
},
|
|
1122
|
-
title:
|
|
1123
|
-
isOpen: r === `id${
|
|
1122
|
+
title: i,
|
|
1123
|
+
isOpen: r === `id${i}`,
|
|
1124
1124
|
titleFontStyles: { fontSize: 18, fontWeight: "bold" },
|
|
1125
1125
|
showBottomBar: !1,
|
|
1126
1126
|
color: a,
|
|
1127
1127
|
activeColor: d,
|
|
1128
|
-
children: o ? o.map((l, c) => /* @__PURE__ */
|
|
1128
|
+
children: o ? o.map((l, c) => /* @__PURE__ */ s(
|
|
1129
1129
|
pt,
|
|
1130
1130
|
{
|
|
1131
1131
|
subcategory: l,
|
|
@@ -1133,7 +1133,7 @@ const mt = ({
|
|
|
1133
1133
|
activeColor: d
|
|
1134
1134
|
},
|
|
1135
1135
|
`subcategory-${c}`
|
|
1136
|
-
)) : t && t.map((l, c) => /* @__PURE__ */
|
|
1136
|
+
)) : t && t.map((l, c) => /* @__PURE__ */ s(
|
|
1137
1137
|
Ze,
|
|
1138
1138
|
{
|
|
1139
1139
|
indicator: l,
|
|
@@ -1157,7 +1157,7 @@ mt.propTypes = {
|
|
|
1157
1157
|
const ht = ({
|
|
1158
1158
|
indicators: n,
|
|
1159
1159
|
isOpen: d = !0,
|
|
1160
|
-
title:
|
|
1160
|
+
title: i,
|
|
1161
1161
|
fontColor: o = "#605B56",
|
|
1162
1162
|
//The color of the slider and the checkbox when is checked
|
|
1163
1163
|
inputsColor: t = "#605B56",
|
|
@@ -1170,14 +1170,14 @@ const ht = ({
|
|
|
1170
1170
|
o && O.setState(() => ({ fontColor: o }));
|
|
1171
1171
|
}, [o]), M(() => {
|
|
1172
1172
|
t && O.setState(() => ({ inputsColor: t }));
|
|
1173
|
-
}, [t]), /* @__PURE__ */
|
|
1173
|
+
}, [t]), /* @__PURE__ */ s(
|
|
1174
1174
|
ie,
|
|
1175
1175
|
{
|
|
1176
1176
|
isOpen: d,
|
|
1177
|
-
title:
|
|
1177
|
+
title: i ? l(i) : "Tematical filters",
|
|
1178
1178
|
color: o,
|
|
1179
1179
|
activeColor: r,
|
|
1180
|
-
children: n == null ? void 0 : n.map((c, u) => /* @__PURE__ */
|
|
1180
|
+
children: n == null ? void 0 : n.map((c, u) => /* @__PURE__ */ s(
|
|
1181
1181
|
mt,
|
|
1182
1182
|
{
|
|
1183
1183
|
category: c,
|
|
@@ -1208,7 +1208,7 @@ const W2 = "_FiltersAmbitContainer_1g9xx_2", Y2 = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1208
1208
|
}, t0 = ({
|
|
1209
1209
|
ambitName: n,
|
|
1210
1210
|
ambitDescription: d,
|
|
1211
|
-
defaultFilters:
|
|
1211
|
+
defaultFilters: i,
|
|
1212
1212
|
indicators: o,
|
|
1213
1213
|
activeColor: t,
|
|
1214
1214
|
textColor: r,
|
|
@@ -1216,46 +1216,46 @@ const W2 = "_FiltersAmbitContainer_1g9xx_2", Y2 = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1216
1216
|
onChangeAppliedFilters: l,
|
|
1217
1217
|
saveAmbit: c,
|
|
1218
1218
|
namePlaceholder: u,
|
|
1219
|
-
descPlaceholder:
|
|
1220
|
-
filtersTypes:
|
|
1219
|
+
descPlaceholder: m,
|
|
1220
|
+
filtersTypes: g = ["geographical", "tematical"],
|
|
1221
1221
|
nameRequiredText: _,
|
|
1222
1222
|
onlyFilters: y = !1
|
|
1223
1223
|
//usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
|
|
1224
1224
|
}) => {
|
|
1225
|
-
const { t: h } = k(), { tematicalFiltersSelected:
|
|
1225
|
+
const { t: h } = k(), { tematicalFiltersSelected: b } = O(($) => $), [C, f] = L(n || null), [v, N] = L(d || null), [x, w] = L(!1);
|
|
1226
1226
|
M(() => {
|
|
1227
|
-
|
|
1228
|
-
tematicalFiltersSelected:
|
|
1227
|
+
i && i.length > 0 && O.setState(($) => ({
|
|
1228
|
+
tematicalFiltersSelected: i
|
|
1229
1229
|
}));
|
|
1230
|
-
}, [
|
|
1231
|
-
console.log("filtersSelected changed: ",
|
|
1232
|
-
}, [
|
|
1233
|
-
const
|
|
1234
|
-
|
|
1230
|
+
}, [i]), M(() => {
|
|
1231
|
+
console.log("filtersSelected changed: ", b), l(b);
|
|
1232
|
+
}, [b]);
|
|
1233
|
+
const B = () => {
|
|
1234
|
+
C ? c({ name: C, description: v }) : w(!0);
|
|
1235
1235
|
};
|
|
1236
1236
|
return /* @__PURE__ */ p("div", { className: oe.FiltersAmbitContainer, children: [
|
|
1237
1237
|
!y && /* @__PURE__ */ p("div", { className: oe.FiltersAmbitHeader, children: [
|
|
1238
|
-
/* @__PURE__ */
|
|
1238
|
+
/* @__PURE__ */ s("div", { className: oe.FiltersAmbitTitle, children: /* @__PURE__ */ s(
|
|
1239
1239
|
"input",
|
|
1240
1240
|
{
|
|
1241
1241
|
type: "text",
|
|
1242
|
-
onChange: (
|
|
1243
|
-
w(!1),
|
|
1242
|
+
onChange: ($) => {
|
|
1243
|
+
w(!1), f($.target.value);
|
|
1244
1244
|
},
|
|
1245
|
-
value:
|
|
1245
|
+
value: C,
|
|
1246
1246
|
placeholder: h(u)
|
|
1247
1247
|
}
|
|
1248
1248
|
) }),
|
|
1249
|
-
/* @__PURE__ */
|
|
1249
|
+
/* @__PURE__ */ s("div", { className: oe.FiltersAmbitDescription, children: /* @__PURE__ */ s("div", { className: oe.FiltersAmbitDescriptionTitle, children: /* @__PURE__ */ s(
|
|
1250
1250
|
"textarea",
|
|
1251
1251
|
{
|
|
1252
1252
|
value: v,
|
|
1253
|
-
onChange: (
|
|
1254
|
-
placeholder: h(
|
|
1253
|
+
onChange: ($) => N($.target.value),
|
|
1254
|
+
placeholder: h(m)
|
|
1255
1255
|
}
|
|
1256
1256
|
) }) })
|
|
1257
1257
|
] }),
|
|
1258
|
-
/* @__PURE__ */
|
|
1258
|
+
/* @__PURE__ */ s(
|
|
1259
1259
|
lt,
|
|
1260
1260
|
{
|
|
1261
1261
|
title: h("applied_filters"),
|
|
@@ -1265,8 +1265,8 @@ const W2 = "_FiltersAmbitContainer_1g9xx_2", Y2 = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1265
1265
|
activeColor: t
|
|
1266
1266
|
}
|
|
1267
1267
|
),
|
|
1268
|
-
|
|
1269
|
-
|
|
1268
|
+
g.includes("geographical") && /* @__PURE__ */ s(ct, { activeColor: t }),
|
|
1269
|
+
g.includes("tematical") && /* @__PURE__ */ s(
|
|
1270
1270
|
ht,
|
|
1271
1271
|
{
|
|
1272
1272
|
indicators: o,
|
|
@@ -1276,8 +1276,8 @@ const W2 = "_FiltersAmbitContainer_1g9xx_2", Y2 = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1276
1276
|
activeColor: t
|
|
1277
1277
|
}
|
|
1278
1278
|
),
|
|
1279
|
-
x && /* @__PURE__ */
|
|
1280
|
-
!y && /* @__PURE__ */
|
|
1279
|
+
x && /* @__PURE__ */ s("div", { className: oe.warning, children: h(_) }),
|
|
1280
|
+
!y && /* @__PURE__ */ s("div", { className: "buttonContainer", children: /* @__PURE__ */ s(we, { onClick: () => B(), children: h("save_ambit") }) })
|
|
1281
1281
|
] });
|
|
1282
1282
|
};
|
|
1283
1283
|
t0.propTypes = {
|
|
@@ -1300,7 +1300,7 @@ const n0 = "_barChartContainer_d2f1z_2", i0 = {
|
|
|
1300
1300
|
}, gt = ({
|
|
1301
1301
|
data: n,
|
|
1302
1302
|
width: d = 700,
|
|
1303
|
-
barHeight:
|
|
1303
|
+
barHeight: i = 25,
|
|
1304
1304
|
gap: o = 23,
|
|
1305
1305
|
fontColor: t = "#605B56",
|
|
1306
1306
|
verticalPaddign: r = 10,
|
|
@@ -1309,12 +1309,12 @@ const n0 = "_barChartContainer_d2f1z_2", i0 = {
|
|
|
1309
1309
|
numberOfDivisions: c = 7,
|
|
1310
1310
|
maxValue: u = null
|
|
1311
1311
|
}) => {
|
|
1312
|
-
const { t:
|
|
1312
|
+
const { t: m } = k(), { xScale: g, ticks: _, height: y } = ge(() => {
|
|
1313
1313
|
if (n && n.length > 0) {
|
|
1314
|
-
const h = (n == null ? void 0 : n.length) * (
|
|
1314
|
+
const h = (n == null ? void 0 : n.length) * (i + o) + r * 2, b = Ue.max(n, (v) => v.value) || 1, C = Ue.scaleLinear().domain([0, u || b]).range([0, d - l]), f = Array.from({ length: c + 1 }, (v, N) => u ? u / c * N : b / c * N);
|
|
1315
1315
|
return {
|
|
1316
|
-
xScale:
|
|
1317
|
-
ticks:
|
|
1316
|
+
xScale: C,
|
|
1317
|
+
ticks: f,
|
|
1318
1318
|
height: h,
|
|
1319
1319
|
width: d,
|
|
1320
1320
|
verticalPaddign: r,
|
|
@@ -1326,17 +1326,17 @@ const n0 = "_barChartContainer_d2f1z_2", i0 = {
|
|
|
1326
1326
|
n,
|
|
1327
1327
|
d,
|
|
1328
1328
|
c,
|
|
1329
|
-
|
|
1329
|
+
i,
|
|
1330
1330
|
o,
|
|
1331
1331
|
a,
|
|
1332
1332
|
r,
|
|
1333
1333
|
u
|
|
1334
1334
|
]);
|
|
1335
|
-
return /* @__PURE__ */
|
|
1336
|
-
/* @__PURE__ */
|
|
1337
|
-
const
|
|
1338
|
-
return /* @__PURE__ */ p("g", { transform: `translate(${
|
|
1339
|
-
/* @__PURE__ */
|
|
1335
|
+
return /* @__PURE__ */ s("div", { className: i0.barChartContainer, children: /* @__PURE__ */ s("svg", { width: d + a * 2, height: y, children: /* @__PURE__ */ p("g", { transform: `translate(0,${o})`, children: [
|
|
1336
|
+
/* @__PURE__ */ s("g", { transform: `translate(${l + a}, 0)`, children: _.map((h, b) => {
|
|
1337
|
+
const C = g(h);
|
|
1338
|
+
return /* @__PURE__ */ p("g", { transform: `translate(${C}, 0)`, children: [
|
|
1339
|
+
/* @__PURE__ */ s(
|
|
1340
1340
|
"line",
|
|
1341
1341
|
{
|
|
1342
1342
|
y1: 0,
|
|
@@ -1344,7 +1344,7 @@ const n0 = "_barChartContainer_d2f1z_2", i0 = {
|
|
|
1344
1344
|
stroke: "#ccc"
|
|
1345
1345
|
}
|
|
1346
1346
|
),
|
|
1347
|
-
/* @__PURE__ */
|
|
1347
|
+
/* @__PURE__ */ s(
|
|
1348
1348
|
"text",
|
|
1349
1349
|
{
|
|
1350
1350
|
y: y - o,
|
|
@@ -1354,37 +1354,37 @@ const n0 = "_barChartContainer_d2f1z_2", i0 = {
|
|
|
1354
1354
|
children: parseInt(h)
|
|
1355
1355
|
}
|
|
1356
1356
|
)
|
|
1357
|
-
] },
|
|
1357
|
+
] }, b);
|
|
1358
1358
|
}) }),
|
|
1359
|
-
n && n.length > 0 && (n == null ? void 0 : n.map((h,
|
|
1360
|
-
const
|
|
1359
|
+
n && n.length > 0 && (n == null ? void 0 : n.map((h, b) => {
|
|
1360
|
+
const C = g(h.value), f = b * (i + o);
|
|
1361
1361
|
return /* @__PURE__ */ p(
|
|
1362
1362
|
"g",
|
|
1363
1363
|
{
|
|
1364
|
-
transform: `translate(${l + a}, ${
|
|
1364
|
+
transform: `translate(${l + a}, ${f})`,
|
|
1365
1365
|
children: [
|
|
1366
|
-
/* @__PURE__ */
|
|
1366
|
+
/* @__PURE__ */ s(
|
|
1367
1367
|
"text",
|
|
1368
1368
|
{
|
|
1369
1369
|
x: -24,
|
|
1370
|
-
y:
|
|
1370
|
+
y: i / 2 + 5,
|
|
1371
1371
|
textAnchor: "end",
|
|
1372
1372
|
fill: t,
|
|
1373
|
-
children:
|
|
1373
|
+
children: m(h.title)
|
|
1374
1374
|
}
|
|
1375
1375
|
),
|
|
1376
|
-
/* @__PURE__ */
|
|
1376
|
+
/* @__PURE__ */ s(
|
|
1377
1377
|
"rect",
|
|
1378
1378
|
{
|
|
1379
|
-
width:
|
|
1380
|
-
height:
|
|
1379
|
+
width: C,
|
|
1380
|
+
height: i,
|
|
1381
1381
|
fill: h.color,
|
|
1382
1382
|
rx: 0
|
|
1383
1383
|
}
|
|
1384
1384
|
)
|
|
1385
1385
|
]
|
|
1386
1386
|
},
|
|
1387
|
-
|
|
1387
|
+
b
|
|
1388
1388
|
);
|
|
1389
1389
|
}))
|
|
1390
1390
|
] }) }) });
|
|
@@ -1411,7 +1411,7 @@ const s0 = "_graphicContainer_c9zrg_2", o0 = "_titleContainer_c9zrg_14", Ye = {
|
|
|
1411
1411
|
}, r0 = ({
|
|
1412
1412
|
data: n,
|
|
1413
1413
|
graphWidth: d = 700,
|
|
1414
|
-
containerStyle:
|
|
1414
|
+
containerStyle: i,
|
|
1415
1415
|
borderColor: o = "#605B56",
|
|
1416
1416
|
title: t = "Graphic Title",
|
|
1417
1417
|
fontColor: r = "#605B56",
|
|
@@ -1425,12 +1425,12 @@ const s0 = "_graphicContainer_c9zrg_2", o0 = "_titleContainer_c9zrg_14", Ye = {
|
|
|
1425
1425
|
{
|
|
1426
1426
|
className: Ye.graphicContainer,
|
|
1427
1427
|
style: {
|
|
1428
|
-
...
|
|
1428
|
+
...i || {},
|
|
1429
1429
|
border: `1.5px solid ${o}`
|
|
1430
1430
|
},
|
|
1431
1431
|
children: [
|
|
1432
|
-
/* @__PURE__ */
|
|
1433
|
-
/* @__PURE__ */
|
|
1432
|
+
/* @__PURE__ */ s("div", { className: Ye.titleContainer, children: /* @__PURE__ */ s("h2", { children: u(t) }) }),
|
|
1433
|
+
/* @__PURE__ */ s(
|
|
1434
1434
|
gt,
|
|
1435
1435
|
{
|
|
1436
1436
|
data: n,
|
|
@@ -1462,7 +1462,7 @@ r0.propTypes = {
|
|
|
1462
1462
|
numberOfDivisions: e.number,
|
|
1463
1463
|
leftPadding: e.number
|
|
1464
1464
|
};
|
|
1465
|
-
const a0 = "_indicatorsCategory_1cu33_2", l0 = "_title_1cu33_5", c0 = "_list_1cu33_11",
|
|
1465
|
+
const a0 = "_indicatorsCategory_1cu33_2", l0 = "_title_1cu33_5", c0 = "_list_1cu33_11", Me = {
|
|
1466
1466
|
indicatorsCategory: a0,
|
|
1467
1467
|
title: l0,
|
|
1468
1468
|
list: c0
|
|
@@ -1480,7 +1480,7 @@ const a0 = "_indicatorsCategory_1cu33_2", l0 = "_title_1cu33_5", c0 = "_list_1cu
|
|
|
1480
1480
|
}, Ke = ({
|
|
1481
1481
|
indicator: n,
|
|
1482
1482
|
values: d = [],
|
|
1483
|
-
activeColor:
|
|
1483
|
+
activeColor: i,
|
|
1484
1484
|
defaultColor: o = "#92898A",
|
|
1485
1485
|
activeIndicator: t,
|
|
1486
1486
|
activeIndicatorType: r,
|
|
@@ -1488,37 +1488,37 @@ const a0 = "_indicatorsCategory_1cu33_2", l0 = "_title_1cu33_5", c0 = "_list_1cu
|
|
|
1488
1488
|
multiple: l = !1,
|
|
1489
1489
|
onChangeType: c
|
|
1490
1490
|
}) => {
|
|
1491
|
-
const { t: u } = k(), { name:
|
|
1491
|
+
const { t: u } = k(), { name: m, type: g, disabled: _ } = n, [y, h] = L(!1);
|
|
1492
1492
|
M(() => {
|
|
1493
1493
|
t && h(
|
|
1494
1494
|
l ? t.some(
|
|
1495
|
-
(
|
|
1496
|
-
) : t.name ==
|
|
1495
|
+
(f) => f.name == String(m)
|
|
1496
|
+
) : t.name == m
|
|
1497
1497
|
);
|
|
1498
1498
|
}, [t]);
|
|
1499
|
-
const
|
|
1499
|
+
const b = () => /* @__PURE__ */ s("div", { className: V.switchExternalContainer, children: /* @__PURE__ */ s("div", { className: V.switchType, children: /* @__PURE__ */ p("div", { className: V.switchTypeOptions, children: [
|
|
1500
1500
|
/* @__PURE__ */ p(
|
|
1501
1501
|
"div",
|
|
1502
1502
|
{
|
|
1503
1503
|
className: V.optionContainer,
|
|
1504
1504
|
onClick: () => c("cat"),
|
|
1505
1505
|
children: [
|
|
1506
|
-
/* @__PURE__ */
|
|
1506
|
+
/* @__PURE__ */ s(
|
|
1507
1507
|
"span",
|
|
1508
1508
|
{
|
|
1509
1509
|
className: `${V.customRadious}`,
|
|
1510
1510
|
style: {
|
|
1511
|
-
backgroundColor: r === "cat" ?
|
|
1512
|
-
borderColor: r === "cat" ?
|
|
1511
|
+
backgroundColor: r === "cat" ? i : "transparent",
|
|
1512
|
+
borderColor: r === "cat" ? i : o
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
1515
|
),
|
|
1516
|
-
/* @__PURE__ */
|
|
1516
|
+
/* @__PURE__ */ s(
|
|
1517
1517
|
"h4",
|
|
1518
1518
|
{
|
|
1519
1519
|
className: V.optionText,
|
|
1520
1520
|
style: {
|
|
1521
|
-
color: r === "cat" ?
|
|
1521
|
+
color: r === "cat" ? i : o
|
|
1522
1522
|
},
|
|
1523
1523
|
children: u("indicators.cat")
|
|
1524
1524
|
}
|
|
@@ -1532,22 +1532,22 @@ const a0 = "_indicatorsCategory_1cu33_2", l0 = "_title_1cu33_5", c0 = "_list_1cu
|
|
|
1532
1532
|
className: V.optionContainer,
|
|
1533
1533
|
onClick: () => c("abs"),
|
|
1534
1534
|
children: [
|
|
1535
|
-
/* @__PURE__ */
|
|
1535
|
+
/* @__PURE__ */ s(
|
|
1536
1536
|
"span",
|
|
1537
1537
|
{
|
|
1538
1538
|
className: `${V.customRadious}`,
|
|
1539
1539
|
style: {
|
|
1540
|
-
backgroundColor: r === "abs" ?
|
|
1541
|
-
borderColor: r === "abs" ?
|
|
1540
|
+
backgroundColor: r === "abs" ? i : "transparent",
|
|
1541
|
+
borderColor: r === "abs" ? i : o
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
1544
|
),
|
|
1545
|
-
/* @__PURE__ */
|
|
1545
|
+
/* @__PURE__ */ s(
|
|
1546
1546
|
"h4",
|
|
1547
1547
|
{
|
|
1548
1548
|
className: V.optionText,
|
|
1549
1549
|
style: {
|
|
1550
|
-
color: r === "abs" ?
|
|
1550
|
+
color: r === "abs" ? i : o
|
|
1551
1551
|
},
|
|
1552
1552
|
children: u("indicators.abs")
|
|
1553
1553
|
}
|
|
@@ -1555,18 +1555,18 @@ const a0 = "_indicatorsCategory_1cu33_2", l0 = "_title_1cu33_5", c0 = "_list_1cu
|
|
|
1555
1555
|
]
|
|
1556
1556
|
}
|
|
1557
1557
|
)
|
|
1558
|
-
] }) }) }),
|
|
1558
|
+
] }) }) }), C = () => /* @__PURE__ */ s("div", { className: V.switchExternalContainer, children: /* @__PURE__ */ s("div", { className: V.switchType, children: /* @__PURE__ */ s("div", { className: V.switchTypeOptions, children: d.map((f, v) => /* @__PURE__ */ p(
|
|
1559
1559
|
"div",
|
|
1560
1560
|
{
|
|
1561
1561
|
className: V.optionContainer,
|
|
1562
1562
|
children: [
|
|
1563
|
-
/* @__PURE__ */
|
|
1563
|
+
/* @__PURE__ */ s(
|
|
1564
1564
|
"span",
|
|
1565
1565
|
{
|
|
1566
1566
|
className: V.customRadious
|
|
1567
1567
|
}
|
|
1568
1568
|
),
|
|
1569
|
-
/* @__PURE__ */
|
|
1569
|
+
/* @__PURE__ */ s("h4", { children: u(f.unit) })
|
|
1570
1570
|
]
|
|
1571
1571
|
},
|
|
1572
1572
|
v
|
|
@@ -1578,29 +1578,29 @@ const a0 = "_indicatorsCategory_1cu33_2", l0 = "_title_1cu33_5", c0 = "_list_1cu
|
|
|
1578
1578
|
className: V.indicatorNameContainer,
|
|
1579
1579
|
onClick: () => !_ && a({ indicator: n }),
|
|
1580
1580
|
children: [
|
|
1581
|
-
/* @__PURE__ */
|
|
1581
|
+
/* @__PURE__ */ s(
|
|
1582
1582
|
"div",
|
|
1583
1583
|
{
|
|
1584
1584
|
style: {
|
|
1585
|
-
border: y ? `1px solid ${
|
|
1585
|
+
border: y ? `1px solid ${i}` : `1px solid ${o}`,
|
|
1586
1586
|
opacity: _ ? 0.5 : 1
|
|
1587
1587
|
},
|
|
1588
1588
|
className: V.dot
|
|
1589
1589
|
}
|
|
1590
1590
|
),
|
|
1591
|
-
/* @__PURE__ */
|
|
1591
|
+
/* @__PURE__ */ s(
|
|
1592
1592
|
"h4",
|
|
1593
1593
|
{
|
|
1594
1594
|
className: V.indicatorName,
|
|
1595
1595
|
style: {
|
|
1596
|
-
color: y ?
|
|
1596
|
+
color: y ? i : o,
|
|
1597
1597
|
opacity: _ ? 0.5 : 1
|
|
1598
1598
|
},
|
|
1599
|
-
children: /* @__PURE__ */
|
|
1599
|
+
children: /* @__PURE__ */ s(
|
|
1600
1600
|
je,
|
|
1601
1601
|
{
|
|
1602
|
-
i18nKey:
|
|
1603
|
-
components: { sup: /* @__PURE__ */
|
|
1602
|
+
i18nKey: m,
|
|
1603
|
+
components: { sup: /* @__PURE__ */ s("sup", {}) },
|
|
1604
1604
|
shouldUnescape: !0
|
|
1605
1605
|
}
|
|
1606
1606
|
)
|
|
@@ -1609,8 +1609,8 @@ const a0 = "_indicatorsCategory_1cu33_2", l0 = "_title_1cu33_5", c0 = "_list_1cu
|
|
|
1609
1609
|
]
|
|
1610
1610
|
}
|
|
1611
1611
|
),
|
|
1612
|
-
(t == null ? void 0 : t.name) ===
|
|
1613
|
-
(t == null ? void 0 : t.name) ===
|
|
1612
|
+
(t == null ? void 0 : t.name) === m && g === "both" && /* @__PURE__ */ s("div", { children: b() }),
|
|
1613
|
+
(t == null ? void 0 : t.name) === m && g === "twoUnits" && /* @__PURE__ */ s("div", { children: C() })
|
|
1614
1614
|
] });
|
|
1615
1615
|
};
|
|
1616
1616
|
Ke.propTypes = {
|
|
@@ -1631,7 +1631,7 @@ const y0 = "_indicatorsSubCategory_1dzsi_2", v0 = "_list_1dzsi_8", Qe = {
|
|
|
1631
1631
|
}, Ct = ({
|
|
1632
1632
|
subcName: n,
|
|
1633
1633
|
indicators: d,
|
|
1634
|
-
defaultColor:
|
|
1634
|
+
defaultColor: i,
|
|
1635
1635
|
activeColor: o,
|
|
1636
1636
|
activeSubCategory: t,
|
|
1637
1637
|
onClickSubCategory: r,
|
|
@@ -1639,8 +1639,8 @@ const y0 = "_indicatorsSubCategory_1dzsi_2", v0 = "_list_1dzsi_8", Qe = {
|
|
|
1639
1639
|
activeIndicator: l,
|
|
1640
1640
|
onClickIndicator: c,
|
|
1641
1641
|
multiple: u,
|
|
1642
|
-
activeIndicatorType:
|
|
1643
|
-
onChangeType:
|
|
1642
|
+
activeIndicatorType: m,
|
|
1643
|
+
onChangeType: g
|
|
1644
1644
|
}) => {
|
|
1645
1645
|
const { t: _ } = k(), [y, h] = L(!1);
|
|
1646
1646
|
return M(() => {
|
|
@@ -1653,29 +1653,29 @@ const y0 = "_indicatorsSubCategory_1dzsi_2", v0 = "_list_1dzsi_8", Qe = {
|
|
|
1653
1653
|
animate: { height: y ? "auto" : "43px" },
|
|
1654
1654
|
transition: { duration: 0.4 },
|
|
1655
1655
|
children: [
|
|
1656
|
-
/* @__PURE__ */
|
|
1657
|
-
/* @__PURE__ */
|
|
1658
|
-
/* @__PURE__ */
|
|
1656
|
+
/* @__PURE__ */ s("button", { onClick: () => r(a), children: /* @__PURE__ */ p("h3", { style: { color: y ? o : i }, children: [
|
|
1657
|
+
/* @__PURE__ */ s("span", { style: { color: y ? o : i }, children: y ? "-" : "+" }),
|
|
1658
|
+
/* @__PURE__ */ s(
|
|
1659
1659
|
"span",
|
|
1660
1660
|
{
|
|
1661
|
-
style: { marginLeft: 12, color: y ? o :
|
|
1661
|
+
style: { marginLeft: 12, color: y ? o : i },
|
|
1662
1662
|
children: _(n)
|
|
1663
1663
|
}
|
|
1664
1664
|
)
|
|
1665
1665
|
] }) }),
|
|
1666
|
-
d && /* @__PURE__ */
|
|
1666
|
+
d && /* @__PURE__ */ s("div", { className: Qe.list, children: d == null ? void 0 : d.map((b, C) => /* @__PURE__ */ s(
|
|
1667
1667
|
Ke,
|
|
1668
1668
|
{
|
|
1669
|
-
indicator:
|
|
1670
|
-
defaultColor:
|
|
1669
|
+
indicator: b,
|
|
1670
|
+
defaultColor: i,
|
|
1671
1671
|
activeColor: o,
|
|
1672
1672
|
activeIndicator: l,
|
|
1673
1673
|
onClickIndicator: c,
|
|
1674
1674
|
multiple: u,
|
|
1675
|
-
activeIndicatorType:
|
|
1676
|
-
onChangeType:
|
|
1675
|
+
activeIndicatorType: m,
|
|
1676
|
+
onChangeType: g
|
|
1677
1677
|
},
|
|
1678
|
-
"indicator" +
|
|
1678
|
+
"indicator" + C
|
|
1679
1679
|
)) })
|
|
1680
1680
|
]
|
|
1681
1681
|
}
|
|
@@ -1696,7 +1696,7 @@ Ct.propTypes = {
|
|
|
1696
1696
|
const ft = ({
|
|
1697
1697
|
cat: n,
|
|
1698
1698
|
id: d,
|
|
1699
|
-
activeColor:
|
|
1699
|
+
activeColor: i,
|
|
1700
1700
|
defaultColor: o,
|
|
1701
1701
|
onClickCategory: t,
|
|
1702
1702
|
activeCategory: r,
|
|
@@ -1704,67 +1704,67 @@ const ft = ({
|
|
|
1704
1704
|
onClickSubCategory: l,
|
|
1705
1705
|
activeIndicator: c,
|
|
1706
1706
|
onClickIndicator: u,
|
|
1707
|
-
multiple:
|
|
1708
|
-
activeIndicatorType:
|
|
1707
|
+
multiple: m,
|
|
1708
|
+
activeIndicatorType: g,
|
|
1709
1709
|
onChangeType: _
|
|
1710
1710
|
}) => {
|
|
1711
|
-
var
|
|
1712
|
-
const { t: y } = k(), [h,
|
|
1711
|
+
var C;
|
|
1712
|
+
const { t: y } = k(), [h, b] = L(!1);
|
|
1713
1713
|
return M(() => {
|
|
1714
|
-
|
|
1714
|
+
b(r === d);
|
|
1715
1715
|
}, [r, d]), /* @__PURE__ */ p(
|
|
1716
1716
|
ze.div,
|
|
1717
1717
|
{
|
|
1718
|
-
className:
|
|
1718
|
+
className: Me.indicatorsCategory,
|
|
1719
1719
|
initial: { height: "53px" },
|
|
1720
1720
|
animate: { height: h ? "auto" : "53px" },
|
|
1721
1721
|
transition: { duration: 0.4 },
|
|
1722
1722
|
style: {
|
|
1723
1723
|
backgroundColor: "white",
|
|
1724
|
-
borderBottom: h ? `1px solid ${
|
|
1724
|
+
borderBottom: h ? `1px solid ${i}` : "0px",
|
|
1725
1725
|
marginBottom: h ? "20px" : "0px"
|
|
1726
1726
|
},
|
|
1727
1727
|
children: [
|
|
1728
|
-
/* @__PURE__ */ p("h2", { className: `${
|
|
1729
|
-
/* @__PURE__ */
|
|
1730
|
-
/* @__PURE__ */
|
|
1728
|
+
/* @__PURE__ */ p("h2", { className: `${Me.title}`, onClick: () => t(d), children: [
|
|
1729
|
+
/* @__PURE__ */ s("span", { style: { color: h ? i : o }, children: h ? "-" : "+" }),
|
|
1730
|
+
/* @__PURE__ */ s(
|
|
1731
1731
|
"span",
|
|
1732
1732
|
{
|
|
1733
|
-
style: { marginLeft: 12, color: h ?
|
|
1733
|
+
style: { marginLeft: 12, color: h ? i : o },
|
|
1734
1734
|
children: y(n.name)
|
|
1735
1735
|
}
|
|
1736
1736
|
)
|
|
1737
1737
|
] }),
|
|
1738
1738
|
n.subcategories ? n.subcategories.map(
|
|
1739
|
-
({ name:
|
|
1739
|
+
({ name: f, subcategory: v, indicators: N }, x) => /* @__PURE__ */ s(
|
|
1740
1740
|
Ct,
|
|
1741
1741
|
{
|
|
1742
1742
|
id: v,
|
|
1743
1743
|
activeSubCategory: a,
|
|
1744
|
-
subcName:
|
|
1744
|
+
subcName: f,
|
|
1745
1745
|
onClickSubCategory: l,
|
|
1746
1746
|
activeIndicator: c,
|
|
1747
1747
|
onClickIndicator: u,
|
|
1748
|
-
multiple:
|
|
1749
|
-
activeColor:
|
|
1748
|
+
multiple: m,
|
|
1749
|
+
activeColor: i,
|
|
1750
1750
|
defaultColor: o,
|
|
1751
1751
|
indicators: N,
|
|
1752
|
-
activeIndicatorType:
|
|
1752
|
+
activeIndicatorType: g,
|
|
1753
1753
|
onChangeType: _
|
|
1754
1754
|
},
|
|
1755
1755
|
`subcKey ${x}`
|
|
1756
1756
|
)
|
|
1757
|
-
) : /* @__PURE__ */
|
|
1757
|
+
) : /* @__PURE__ */ s("div", { className: Me.list, children: (C = n.indicators) == null ? void 0 : C.map((f, v) => /* @__PURE__ */ s(
|
|
1758
1758
|
Ke,
|
|
1759
1759
|
{
|
|
1760
|
-
indicator:
|
|
1761
|
-
values:
|
|
1762
|
-
activeColor:
|
|
1760
|
+
indicator: f,
|
|
1761
|
+
values: f.type == "twoUnits" && f.values,
|
|
1762
|
+
activeColor: i,
|
|
1763
1763
|
defaultColor: o,
|
|
1764
1764
|
activeIndicator: c,
|
|
1765
1765
|
onClickIndicator: u,
|
|
1766
|
-
multiple:
|
|
1767
|
-
activeIndicatorType:
|
|
1766
|
+
multiple: m,
|
|
1767
|
+
activeIndicatorType: g,
|
|
1768
1768
|
onChangeType: _
|
|
1769
1769
|
},
|
|
1770
1770
|
`indicator${v}`
|
|
@@ -1793,7 +1793,7 @@ const x0 = "_indicatorsList_fklyu_2", w0 = "_title_fklyu_6", Xe = {
|
|
|
1793
1793
|
}, N0 = ({
|
|
1794
1794
|
indicators: n,
|
|
1795
1795
|
activeColor: d,
|
|
1796
|
-
defaultColor:
|
|
1796
|
+
defaultColor: i = "#92898A",
|
|
1797
1797
|
// Función que se ejecuta al seleccionar un indicador, recibe el o los ikeys como parametro
|
|
1798
1798
|
onChange: o,
|
|
1799
1799
|
// Selección multiple
|
|
@@ -1804,11 +1804,11 @@ const x0 = "_indicatorsList_fklyu_2", w0 = "_title_fklyu_6", Xe = {
|
|
|
1804
1804
|
changeIndType: a,
|
|
1805
1805
|
activeIndicatorType: l
|
|
1806
1806
|
}) => {
|
|
1807
|
-
const { t: c } = k(), [u,
|
|
1808
|
-
|
|
1809
|
-
},
|
|
1810
|
-
_(
|
|
1811
|
-
},
|
|
1807
|
+
const { t: c } = k(), [u, m] = L(), [g, _] = L(), [y, h] = L(), b = (x) => {
|
|
1808
|
+
m(u == x ? null : x);
|
|
1809
|
+
}, C = (x) => {
|
|
1810
|
+
_(g == x ? null : x);
|
|
1811
|
+
}, f = ({ indicator: x }) => {
|
|
1812
1812
|
console.log("onClickIndicator: ", x), v(x);
|
|
1813
1813
|
}, v = (x) => {
|
|
1814
1814
|
if (!t)
|
|
@@ -1819,16 +1819,16 @@ const x0 = "_indicatorsList_fklyu_2", w0 = "_title_fklyu_6", Xe = {
|
|
|
1819
1819
|
let w = y && y.length > 0 ? [...y] : [];
|
|
1820
1820
|
h(
|
|
1821
1821
|
w != null && w.some(
|
|
1822
|
-
(
|
|
1822
|
+
(B) => B.name == x.name
|
|
1823
1823
|
) ? w.filter(
|
|
1824
|
-
(
|
|
1824
|
+
(B) => B.name != String(x.name)
|
|
1825
1825
|
) : [...w, x]
|
|
1826
1826
|
), x.type == "both" && a("cat");
|
|
1827
1827
|
}
|
|
1828
1828
|
};
|
|
1829
1829
|
M(() => {
|
|
1830
1830
|
console.log("activeindicator changed to: ", y), o && typeof o == "function" && y && o({ activeIndicator: y });
|
|
1831
|
-
}, [y]),
|
|
1831
|
+
}, [y]), Mt(() => {
|
|
1832
1832
|
if (r && !y)
|
|
1833
1833
|
if (t && r && Array.isArray(r)) {
|
|
1834
1834
|
let x = y && y.length > 0 ? [...y] : [];
|
|
@@ -1837,33 +1837,33 @@ const x0 = "_indicatorsList_fklyu_2", w0 = "_title_fklyu_6", Xe = {
|
|
|
1837
1837
|
v(r), N(r.name);
|
|
1838
1838
|
}, []);
|
|
1839
1839
|
const N = (x) => {
|
|
1840
|
-
const w = n.find((
|
|
1841
|
-
if (
|
|
1842
|
-
let
|
|
1843
|
-
(
|
|
1840
|
+
const w = n.find((B) => {
|
|
1841
|
+
if (B.subcategories) {
|
|
1842
|
+
let $ = B.subcategories.find(
|
|
1843
|
+
(T) => T.indicators.find((j) => j.name == x)
|
|
1844
1844
|
);
|
|
1845
|
-
if (
|
|
1846
|
-
return _(
|
|
1845
|
+
if ($)
|
|
1846
|
+
return _($.subcategory), $;
|
|
1847
1847
|
} else
|
|
1848
|
-
return
|
|
1848
|
+
return B.indicators.some(($) => $.name == x);
|
|
1849
1849
|
});
|
|
1850
|
-
w &&
|
|
1850
|
+
w && m(w.category);
|
|
1851
1851
|
};
|
|
1852
1852
|
return /* @__PURE__ */ p("div", { className: Xe.indicatorsList, children: [
|
|
1853
|
-
/* @__PURE__ */
|
|
1854
|
-
n.map((x, w) => /* @__PURE__ */
|
|
1853
|
+
/* @__PURE__ */ s("h2", { className: Xe.title, style: { color: i }, children: c("indicators.indicators") }),
|
|
1854
|
+
n.map((x, w) => /* @__PURE__ */ s(
|
|
1855
1855
|
ft,
|
|
1856
1856
|
{
|
|
1857
1857
|
id: x.category,
|
|
1858
1858
|
cat: x,
|
|
1859
|
-
onClickCategory:
|
|
1859
|
+
onClickCategory: b,
|
|
1860
1860
|
activeCategory: u,
|
|
1861
|
-
onClickSubCategory:
|
|
1862
|
-
activeSubCategory:
|
|
1863
|
-
onClickIndicator:
|
|
1861
|
+
onClickSubCategory: C,
|
|
1862
|
+
activeSubCategory: g,
|
|
1863
|
+
onClickIndicator: f,
|
|
1864
1864
|
activeIndicator: y,
|
|
1865
1865
|
activeColor: d,
|
|
1866
|
-
defaultColor:
|
|
1866
|
+
defaultColor: i,
|
|
1867
1867
|
multiple: t,
|
|
1868
1868
|
onChange: o,
|
|
1869
1869
|
onChangeType: a,
|
|
@@ -1884,13 +1884,13 @@ N0.propTypes = {
|
|
|
1884
1884
|
defaultValue: e.oneOfType([e.object, e.array]),
|
|
1885
1885
|
activeIndicatorType: e.string
|
|
1886
1886
|
};
|
|
1887
|
-
const k0 = "_langSelector_o9enq_2",
|
|
1887
|
+
const k0 = "_langSelector_o9enq_2", B0 = "_currentLang_o9enq_14", $0 = "_arrow_o9enq_26", S0 = "_prevImg_o9enq_29", M0 = "_langMenu_o9enq_33", re = {
|
|
1888
1888
|
langSelector: k0,
|
|
1889
|
-
currentLang:
|
|
1890
|
-
arrow:
|
|
1889
|
+
currentLang: B0,
|
|
1890
|
+
arrow: $0,
|
|
1891
1891
|
prevImg: S0,
|
|
1892
|
-
langMenu:
|
|
1893
|
-
},
|
|
1892
|
+
langMenu: M0
|
|
1893
|
+
}, T0 = ({ langs: n, arrow: d, imgPrev: i }) => {
|
|
1894
1894
|
const [o, t] = L(!1), { i18n: r } = k(), a = n.find((c) => c.code == r.language), l = (c) => {
|
|
1895
1895
|
r.changeLanguage(c), t(!1);
|
|
1896
1896
|
};
|
|
@@ -1903,13 +1903,13 @@ const k0 = "_langSelector_o9enq_2", $0 = "_currentLang_o9enq_14", B0 = "_arrow_o
|
|
|
1903
1903
|
t(!o);
|
|
1904
1904
|
},
|
|
1905
1905
|
children: [
|
|
1906
|
-
|
|
1906
|
+
i && /* @__PURE__ */ s("img", { className: re.prevImg, src: i }),
|
|
1907
1907
|
(a == null ? void 0 : a.titleSelected) || (a == null ? void 0 : a.title),
|
|
1908
|
-
/* @__PURE__ */
|
|
1908
|
+
/* @__PURE__ */ s("img", { src: d, className: re.arrow })
|
|
1909
1909
|
]
|
|
1910
1910
|
}
|
|
1911
1911
|
),
|
|
1912
|
-
o && /* @__PURE__ */
|
|
1912
|
+
o && /* @__PURE__ */ s("div", { className: re.langMenu, children: n.map((c) => /* @__PURE__ */ s(
|
|
1913
1913
|
"button",
|
|
1914
1914
|
{
|
|
1915
1915
|
className: (a == null ? void 0 : a.code) == c.code ? re.active : "",
|
|
@@ -1920,7 +1920,7 @@ const k0 = "_langSelector_o9enq_2", $0 = "_currentLang_o9enq_14", B0 = "_arrow_o
|
|
|
1920
1920
|
)) })
|
|
1921
1921
|
] });
|
|
1922
1922
|
};
|
|
1923
|
-
|
|
1923
|
+
T0.propTypes = {
|
|
1924
1924
|
langs: e.arrayOf(
|
|
1925
1925
|
e.shape({
|
|
1926
1926
|
code: e.string,
|
|
@@ -1934,8 +1934,8 @@ D0.propTypes = {
|
|
|
1934
1934
|
arrow: e.object,
|
|
1935
1935
|
imgPrev: e.object
|
|
1936
1936
|
};
|
|
1937
|
-
const
|
|
1938
|
-
legendContainer:
|
|
1937
|
+
const D0 = "_legendContainer_qs4x9_3", L0 = "_closeButton_qs4x9_31", F0 = "_titleContainer_qs4x9_59", V0 = "_infoContainer_qs4x9_65", A0 = "_titleLegendList_qs4x9_76", O0 = "_legendListContainer_qs4x9_82", I0 = "_gridContainer_qs4x9_82", R0 = "_elementLegendContainer_qs4x9_88", q0 = "_colorDot_qs4x9_94", E0 = "_absoluteValueContainer_qs4x9_100", P0 = "_absoluteValueColor_qs4x9_103", j0 = "_absoluteValueText_qs4x9_108", z0 = "_noDataContainer_qs4x9_120", Z0 = "_noData_qs4x9_120", K0 = "_moreInfoContainer_qs4x9_141", F = {
|
|
1938
|
+
legendContainer: D0,
|
|
1939
1939
|
closeButton: L0,
|
|
1940
1940
|
titleContainer: F0,
|
|
1941
1941
|
infoContainer: V0,
|
|
@@ -1956,7 +1956,7 @@ const M0 = "_legendContainer_qs4x9_3", L0 = "_closeButton_qs4x9_31", F0 = "_titl
|
|
|
1956
1956
|
//Title on top of the legend
|
|
1957
1957
|
title: d,
|
|
1958
1958
|
//Array to display the info behind the title should have: [{title, value}, ...]
|
|
1959
|
-
infoList:
|
|
1959
|
+
infoList: i,
|
|
1960
1960
|
//Array to display the items of the legend: [{title, color}, ...]
|
|
1961
1961
|
//color should be a string with hexadecimal value
|
|
1962
1962
|
legendList: o,
|
|
@@ -1980,19 +1980,19 @@ const M0 = "_legendContainer_qs4x9_3", L0 = "_closeButton_qs4x9_31", F0 = "_titl
|
|
|
1980
1980
|
style: n ? { ...n } : {},
|
|
1981
1981
|
className: `${F.legendContainer}`,
|
|
1982
1982
|
children: [
|
|
1983
|
-
/* @__PURE__ */
|
|
1984
|
-
d && /* @__PURE__ */
|
|
1985
|
-
|
|
1986
|
-
/* @__PURE__ */
|
|
1983
|
+
/* @__PURE__ */ s("button", { className: F.closeButton, onClick: c }),
|
|
1984
|
+
d && /* @__PURE__ */ s("div", { className: F.titleContainer, style: { marginBottom: (!i || i.length == 0) && "15px" }, children: /* @__PURE__ */ s("h2", { children: d }) }),
|
|
1985
|
+
i && i.length > 0 && /* @__PURE__ */ s("div", { className: F.infoContainer, children: /* @__PURE__ */ s("ul", { children: i.map(({ title: m, value: g }) => /* @__PURE__ */ p("li", { children: [
|
|
1986
|
+
/* @__PURE__ */ s("h3", { className: F.title, children: `${m}:` }),
|
|
1987
1987
|
/* @__PURE__ */ p("span", { className: F.value, children: [
|
|
1988
1988
|
" ",
|
|
1989
|
-
|
|
1989
|
+
g
|
|
1990
1990
|
] })
|
|
1991
1991
|
] }, d)) }) }),
|
|
1992
|
-
/* @__PURE__ */
|
|
1992
|
+
/* @__PURE__ */ s("h3", { className: F.titleLegendList, style: { marginTop: i && i.length > 0 && "30px" }, children: t && /* @__PURE__ */ s(je, { i18nKey: t, components: { sup: /* @__PURE__ */ s("sup", {}) }, shouldUnescape: !0 }) }),
|
|
1993
1993
|
/* @__PURE__ */ p("div", { className: F.legendListContainer, children: [
|
|
1994
1994
|
r ? /* @__PURE__ */ p("div", { className: F.absoluteValueContainer, children: [
|
|
1995
|
-
/* @__PURE__ */
|
|
1995
|
+
/* @__PURE__ */ s(
|
|
1996
1996
|
"div",
|
|
1997
1997
|
{
|
|
1998
1998
|
className: F.absoluteValueColor,
|
|
@@ -2018,23 +2018,23 @@ const M0 = "_legendContainer_qs4x9_3", L0 = "_closeButton_qs4x9_31", F0 = "_titl
|
|
|
2018
2018
|
u(r.unit)
|
|
2019
2019
|
] })
|
|
2020
2020
|
] })
|
|
2021
|
-
] }) : o && o.length > 0 && /* @__PURE__ */
|
|
2022
|
-
({ title:
|
|
2023
|
-
/* @__PURE__ */
|
|
2021
|
+
] }) : o && o.length > 0 && /* @__PURE__ */ s("div", { className: F.gridContainer, children: o.map(
|
|
2022
|
+
({ title: m, color: g }) => /* @__PURE__ */ p("div", { className: F.elementLegendContainer, children: [
|
|
2023
|
+
/* @__PURE__ */ s(
|
|
2024
2024
|
"div",
|
|
2025
2025
|
{
|
|
2026
2026
|
className: F.colorDot,
|
|
2027
|
-
style: { backgroundColor:
|
|
2027
|
+
style: { backgroundColor: g }
|
|
2028
2028
|
}
|
|
2029
2029
|
),
|
|
2030
2030
|
/* @__PURE__ */ p("div", { className: F.titleLegendElement, children: [
|
|
2031
|
-
u(
|
|
2031
|
+
u(m),
|
|
2032
2032
|
" "
|
|
2033
2033
|
] })
|
|
2034
2034
|
] }, d)
|
|
2035
2035
|
) }),
|
|
2036
2036
|
r.noDataColor && /* @__PURE__ */ p("div", { className: F.noDataContainer, children: [
|
|
2037
|
-
/* @__PURE__ */
|
|
2037
|
+
/* @__PURE__ */ s(
|
|
2038
2038
|
"div",
|
|
2039
2039
|
{
|
|
2040
2040
|
className: F.noData,
|
|
@@ -2043,10 +2043,10 @@ const M0 = "_legendContainer_qs4x9_3", L0 = "_closeButton_qs4x9_31", F0 = "_titl
|
|
|
2043
2043
|
}
|
|
2044
2044
|
}
|
|
2045
2045
|
),
|
|
2046
|
-
/* @__PURE__ */
|
|
2046
|
+
/* @__PURE__ */ s("div", { className: F.absoluteValueText, children: /* @__PURE__ */ s("span", { children: u(r.noDataText) }) })
|
|
2047
2047
|
] })
|
|
2048
2048
|
] }),
|
|
2049
|
-
a && /* @__PURE__ */
|
|
2049
|
+
a && /* @__PURE__ */ s("button", { className: F.moreInfoContainer, onClick: a, children: l || u("moreInformation") })
|
|
2050
2050
|
]
|
|
2051
2051
|
}
|
|
2052
2052
|
);
|
|
@@ -2080,9 +2080,9 @@ H0.propTypes = {
|
|
|
2080
2080
|
};
|
|
2081
2081
|
const U0 = "_logo_1ewa6_2", Je = {
|
|
2082
2082
|
logo: U0
|
|
2083
|
-
}, G0 = ({ src: n, alt: d, href:
|
|
2084
|
-
const { t: o } = k(), t = /* @__PURE__ */
|
|
2085
|
-
return
|
|
2083
|
+
}, G0 = ({ src: n, alt: d, href: i }) => {
|
|
2084
|
+
const { t: o } = k(), t = /* @__PURE__ */ s("img", { src: n, alt: o(d) });
|
|
2085
|
+
return i ? /* @__PURE__ */ s("div", { className: Je.logo, children: /* @__PURE__ */ s("a", { href: i, children: t }) }) : /* @__PURE__ */ s("div", { className: Je.logo, children: t });
|
|
2086
2086
|
};
|
|
2087
2087
|
G0.propTypes = {
|
|
2088
2088
|
src: e.string.isRequired,
|
|
@@ -2093,11 +2093,11 @@ G0.propTypes = {
|
|
|
2093
2093
|
const W0 = "_mapContainer_84pkf_2", Y0 = {
|
|
2094
2094
|
mapContainer: W0
|
|
2095
2095
|
};
|
|
2096
|
-
|
|
2096
|
+
Dt.accessToken = "pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";
|
|
2097
2097
|
const Q0 = ({
|
|
2098
2098
|
initialView: n = { latitude: 39.4699, longitude: -0.3763, zoom: 12 },
|
|
2099
2099
|
maxZoom: d = 17,
|
|
2100
|
-
minZoom:
|
|
2100
|
+
minZoom: i = 8,
|
|
2101
2101
|
mapStyle: o,
|
|
2102
2102
|
firstSymbolLayer: t,
|
|
2103
2103
|
cssProps: r = "",
|
|
@@ -2105,47 +2105,47 @@ const Q0 = ({
|
|
|
2105
2105
|
interactiveLayers: l = [],
|
|
2106
2106
|
popUp: c = !1,
|
|
2107
2107
|
sources: u = [],
|
|
2108
|
-
layers:
|
|
2108
|
+
layers: m = []
|
|
2109
2109
|
}) => {
|
|
2110
|
-
const
|
|
2110
|
+
const g = ne(), [_, y] = L(null), h = Lt((b) => b.mapState.showTexts);
|
|
2111
2111
|
return M(() => {
|
|
2112
|
-
if (
|
|
2113
|
-
const
|
|
2114
|
-
|
|
2115
|
-
|
|
2112
|
+
if (g.current) {
|
|
2113
|
+
const b = g.current.getMap();
|
|
2114
|
+
b.getStyle().layers.map((f) => {
|
|
2115
|
+
f.type == "symbol" && f.id != "professionals" && (h ? b.setLayoutProperty(f.id, "visibility", "visible") : b.setLayoutProperty(f.id, "visibility", "none"));
|
|
2116
2116
|
});
|
|
2117
2117
|
}
|
|
2118
|
-
}, [h]), /* @__PURE__ */
|
|
2118
|
+
}, [h]), /* @__PURE__ */ s("div", { className: `${Y0.mapContainer}`, style: r, children: /* @__PURE__ */ p(
|
|
2119
2119
|
Vt,
|
|
2120
2120
|
{
|
|
2121
2121
|
initialViewState: n,
|
|
2122
|
-
ref:
|
|
2122
|
+
ref: g,
|
|
2123
2123
|
hash: !1,
|
|
2124
2124
|
maxZoom: d,
|
|
2125
|
-
minZoom:
|
|
2125
|
+
minZoom: i,
|
|
2126
2126
|
mapStyle: o,
|
|
2127
2127
|
onClick: a,
|
|
2128
2128
|
interactiveLayerIds: l,
|
|
2129
2129
|
children: [
|
|
2130
|
-
u.length && u.map((
|
|
2130
|
+
u.length && u.map((b, C) => /* @__PURE__ */ s(
|
|
2131
2131
|
At,
|
|
2132
2132
|
{
|
|
2133
|
-
...
|
|
2134
|
-
children:
|
|
2135
|
-
if (
|
|
2133
|
+
...b,
|
|
2134
|
+
children: m.length && m.map((f, v) => {
|
|
2135
|
+
if (f.sourceId == b.id) return /* @__PURE__ */ s(
|
|
2136
2136
|
Ot,
|
|
2137
2137
|
{
|
|
2138
|
-
...
|
|
2138
|
+
...f.layer,
|
|
2139
2139
|
beforeId: t
|
|
2140
2140
|
},
|
|
2141
2141
|
v
|
|
2142
2142
|
);
|
|
2143
2143
|
})
|
|
2144
2144
|
},
|
|
2145
|
-
|
|
2145
|
+
C
|
|
2146
2146
|
)),
|
|
2147
|
-
/* @__PURE__ */
|
|
2148
|
-
c && _ && /* @__PURE__ */
|
|
2147
|
+
/* @__PURE__ */ s(It, { position: "bottom-right", visualizePitch: !0 }),
|
|
2148
|
+
c && _ && /* @__PURE__ */ s(
|
|
2149
2149
|
Rt,
|
|
2150
2150
|
{
|
|
2151
2151
|
longitude: c.longitude,
|
|
@@ -2211,21 +2211,21 @@ const X0 = "_mapContainer_b0pyr_3", J0 = {
|
|
|
2211
2211
|
title: tn
|
|
2212
2212
|
}, nn = ({ props: n }) => {
|
|
2213
2213
|
const { t: d } = k();
|
|
2214
|
-
return /* @__PURE__ */
|
|
2214
|
+
return /* @__PURE__ */ s("div", { className: et.FeaturePopUp, children: n.map((i) => /* @__PURE__ */ p("p", { children: [
|
|
2215
2215
|
/* @__PURE__ */ p("span", { className: et.title, children: [
|
|
2216
|
-
/* @__PURE__ */
|
|
2216
|
+
/* @__PURE__ */ s(je, { i18nKey: i.name, components: { sup: /* @__PURE__ */ s("sup", {}) }, shouldUnescape: !0 }),
|
|
2217
2217
|
":"
|
|
2218
2218
|
] }),
|
|
2219
|
-
isNaN(
|
|
2220
|
-
|
|
2219
|
+
isNaN(i.value) ? /* @__PURE__ */ s(Ae, { children: d(i.value) }) : /* @__PURE__ */ p(Ae, { children: [
|
|
2220
|
+
i.value.toLocaleString("de", { maximumFractionDigits: 2 }),
|
|
2221
2221
|
" ",
|
|
2222
|
-
d(
|
|
2222
|
+
d(i.unit)
|
|
2223
2223
|
] })
|
|
2224
2224
|
] })) });
|
|
2225
2225
|
}, sn = ({
|
|
2226
2226
|
initialView: n = { latitude: 39.4699, longitude: -0.3763, zoom: 12 },
|
|
2227
2227
|
maxZoom: d = 17,
|
|
2228
|
-
minZoom:
|
|
2228
|
+
minZoom: i = 8,
|
|
2229
2229
|
mapStyle: o,
|
|
2230
2230
|
firstSymbolLayer: t,
|
|
2231
2231
|
cssProps: r = {},
|
|
@@ -2233,26 +2233,26 @@ const X0 = "_mapContainer_b0pyr_3", J0 = {
|
|
|
2233
2233
|
interactiveLayers: l = [],
|
|
2234
2234
|
sources: c = [],
|
|
2235
2235
|
layers: u = [],
|
|
2236
|
-
filters:
|
|
2237
|
-
popUpParams:
|
|
2236
|
+
filters: m,
|
|
2237
|
+
popUpParams: g,
|
|
2238
2238
|
onClosePopUp: _,
|
|
2239
2239
|
showTexts: y
|
|
2240
2240
|
}) => {
|
|
2241
|
-
console.log(
|
|
2241
|
+
console.log(m);
|
|
2242
2242
|
const h = ne();
|
|
2243
2243
|
return M(() => {
|
|
2244
2244
|
if (h.current) {
|
|
2245
|
-
const
|
|
2246
|
-
|
|
2247
|
-
|
|
2245
|
+
const b = h.current.getMap();
|
|
2246
|
+
b.getStyle().layers.map((f) => {
|
|
2247
|
+
f.type == "symbol" && f.id != "professionals" && (y ? b.setLayoutProperty(f.id, "visibility", "visible") : b.setLayoutProperty(f.id, "visibility", "none"));
|
|
2248
2248
|
});
|
|
2249
2249
|
}
|
|
2250
2250
|
}, [y]), M(() => {
|
|
2251
|
-
let
|
|
2252
|
-
return ke.addProtocol("pmtiles",
|
|
2251
|
+
let b = new qt();
|
|
2252
|
+
return ke.addProtocol("pmtiles", b.tile), () => {
|
|
2253
2253
|
ke.removeProtocol("pmtiles");
|
|
2254
2254
|
};
|
|
2255
|
-
}, []), /* @__PURE__ */
|
|
2255
|
+
}, []), /* @__PURE__ */ s("div", { className: `${J0.mapContainer}`, style: r && r, children: /* @__PURE__ */ p(
|
|
2256
2256
|
Et,
|
|
2257
2257
|
{
|
|
2258
2258
|
mapLib: ke,
|
|
@@ -2260,37 +2260,37 @@ const X0 = "_mapContainer_b0pyr_3", J0 = {
|
|
|
2260
2260
|
ref: h,
|
|
2261
2261
|
hash: !1,
|
|
2262
2262
|
maxZoom: d,
|
|
2263
|
-
minZoom:
|
|
2263
|
+
minZoom: i,
|
|
2264
2264
|
mapStyle: o,
|
|
2265
2265
|
onClick: a,
|
|
2266
2266
|
interactiveLayerIds: l,
|
|
2267
2267
|
children: [
|
|
2268
|
-
c.length && c.map((
|
|
2268
|
+
c.length && c.map((b, C) => /* @__PURE__ */ s(
|
|
2269
2269
|
Pt,
|
|
2270
2270
|
{
|
|
2271
|
-
...
|
|
2272
|
-
children: u.length && u.map((
|
|
2273
|
-
if (
|
|
2271
|
+
...b,
|
|
2272
|
+
children: u.length && u.map((f, v) => {
|
|
2273
|
+
if (f.sourceId == b.id) return /* @__PURE__ */ s(
|
|
2274
2274
|
jt,
|
|
2275
2275
|
{
|
|
2276
|
-
...
|
|
2276
|
+
...f.layer,
|
|
2277
2277
|
beforeId: t,
|
|
2278
|
-
filter:
|
|
2278
|
+
filter: m && m
|
|
2279
2279
|
},
|
|
2280
2280
|
v
|
|
2281
2281
|
);
|
|
2282
2282
|
})
|
|
2283
2283
|
},
|
|
2284
|
-
|
|
2284
|
+
C
|
|
2285
2285
|
)),
|
|
2286
|
-
/* @__PURE__ */
|
|
2287
|
-
|
|
2286
|
+
/* @__PURE__ */ s(zt, { position: "bottom-right", visualizePitch: !0 }),
|
|
2287
|
+
g && /* @__PURE__ */ s(
|
|
2288
2288
|
Zt,
|
|
2289
2289
|
{
|
|
2290
|
-
longitude:
|
|
2291
|
-
latitude:
|
|
2290
|
+
longitude: g.lng,
|
|
2291
|
+
latitude: g.lat,
|
|
2292
2292
|
onClose: _,
|
|
2293
|
-
children: /* @__PURE__ */
|
|
2293
|
+
children: /* @__PURE__ */ s(nn, { props: g.props })
|
|
2294
2294
|
}
|
|
2295
2295
|
)
|
|
2296
2296
|
]
|
|
@@ -2350,7 +2350,7 @@ const on = "_sectionBar_1egwc_2", rn = "_leftContent_1egwc_14", an = "_textConta
|
|
|
2350
2350
|
}, un = ({
|
|
2351
2351
|
leftIcon: n,
|
|
2352
2352
|
title: d,
|
|
2353
|
-
subtitle:
|
|
2353
|
+
subtitle: i,
|
|
2354
2354
|
rightContent: o,
|
|
2355
2355
|
mainColor: t,
|
|
2356
2356
|
width: r
|
|
@@ -2358,13 +2358,13 @@ const on = "_sectionBar_1egwc_2", rn = "_leftContent_1egwc_14", an = "_textConta
|
|
|
2358
2358
|
const { t: a } = k();
|
|
2359
2359
|
return /* @__PURE__ */ p("div", { className: X.sectionBar, style: { width: r && r }, children: [
|
|
2360
2360
|
/* @__PURE__ */ p("div", { className: X.leftContent, children: [
|
|
2361
|
-
n && /* @__PURE__ */
|
|
2361
|
+
n && /* @__PURE__ */ s("img", { src: n, alt: "Icono", className: X.icon }),
|
|
2362
2362
|
/* @__PURE__ */ p("div", { className: X.textContainer, children: [
|
|
2363
|
-
/* @__PURE__ */
|
|
2364
|
-
|
|
2363
|
+
/* @__PURE__ */ s("div", { className: X.title, children: a(d) }),
|
|
2364
|
+
i && /* @__PURE__ */ s("div", { className: X.subtitle, children: i })
|
|
2365
2365
|
] })
|
|
2366
2366
|
] }),
|
|
2367
|
-
/* @__PURE__ */
|
|
2367
|
+
/* @__PURE__ */ s("div", { className: X.rightContent, children: o })
|
|
2368
2368
|
] });
|
|
2369
2369
|
};
|
|
2370
2370
|
un.propTypes = {
|
|
@@ -2407,24 +2407,24 @@ const pn = Kt({
|
|
|
2407
2407
|
n.activeIndicatorUnit = d.payload;
|
|
2408
2408
|
}
|
|
2409
2409
|
}
|
|
2410
|
-
}), { setShowTexts:
|
|
2410
|
+
}), { setShowTexts: Hs, setYear: Te, setActiveIndicatorKey: Us, setActiveIndicatorType: Gs, setActiveIndicatorUnit: Ws } = pn.actions, mn = "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", hn = "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", gn = "_slider_a19yo_2", Cn = "_playButton_a19yo_17", fn = "_sliderOpen_a19yo_28", bn = "_sliderResults_a19yo_32", pe = {
|
|
2411
2411
|
slider: gn,
|
|
2412
2412
|
playButton: Cn,
|
|
2413
2413
|
sliderOpen: fn,
|
|
2414
2414
|
sliderResults: bn
|
|
2415
|
-
}, _n = ({ onResults: n = !1, defaultYear: d = 2025, firstYear:
|
|
2416
|
-
const [a, l] = L(d), c = Ft(), u = (
|
|
2417
|
-
l(v), c(
|
|
2418
|
-
}, [
|
|
2419
|
-
|
|
2415
|
+
}, _n = ({ onResults: n = !1, defaultYear: d = 2025, firstYear: i = 2025, lastYear: o = 2050, zIndex: t = 10, rightBarOpen: r = !1 }) => {
|
|
2416
|
+
const [a, l] = L(d), c = Ft(), u = (f, v) => {
|
|
2417
|
+
l(v), c(Te(v - 2e3));
|
|
2418
|
+
}, [m, g] = L(!1), _ = () => {
|
|
2419
|
+
g(!0);
|
|
2420
2420
|
}, y = () => {
|
|
2421
|
-
|
|
2421
|
+
g(!1);
|
|
2422
2422
|
};
|
|
2423
|
-
((
|
|
2423
|
+
((f, v) => {
|
|
2424
2424
|
const N = ne();
|
|
2425
2425
|
M(() => {
|
|
2426
|
-
N.current =
|
|
2427
|
-
}, [
|
|
2426
|
+
N.current = f;
|
|
2427
|
+
}, [f]), M(() => {
|
|
2428
2428
|
function x() {
|
|
2429
2429
|
N.current();
|
|
2430
2430
|
}
|
|
@@ -2434,9 +2434,9 @@ const pn = Kt({
|
|
|
2434
2434
|
}
|
|
2435
2435
|
}, [v]);
|
|
2436
2436
|
})(() => {
|
|
2437
|
-
|
|
2437
|
+
m && (a != 2050 ? (l(a + 1), c(Te(a - 2e3 + 1))) : (l(2025), c(Te(25))));
|
|
2438
2438
|
}, 1e3);
|
|
2439
|
-
const
|
|
2439
|
+
const b = Ut({
|
|
2440
2440
|
palette: {
|
|
2441
2441
|
primary: {
|
|
2442
2442
|
main: "#605b56"
|
|
@@ -2458,29 +2458,29 @@ const pn = Kt({
|
|
|
2458
2458
|
}
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
|
-
}),
|
|
2461
|
+
}), C = [
|
|
2462
2462
|
{ label: "", value: 2025 },
|
|
2463
2463
|
{ label: "", value: 2032 },
|
|
2464
2464
|
{ label: "", value: 2041 },
|
|
2465
2465
|
{ label: "", value: 2050 }
|
|
2466
2466
|
];
|
|
2467
|
-
return /* @__PURE__ */
|
|
2467
|
+
return /* @__PURE__ */ s(Wt, { theme: b, children: /* @__PURE__ */ p(
|
|
2468
2468
|
Gt,
|
|
2469
2469
|
{
|
|
2470
2470
|
sx: { width: 400 },
|
|
2471
2471
|
className: `${n ? pe.sliderResults : pe.slider} ${r ? pe.sliderOpen : ""}`,
|
|
2472
2472
|
style: { zIndex: t },
|
|
2473
2473
|
children: [
|
|
2474
|
-
|
|
2475
|
-
/* @__PURE__ */
|
|
2474
|
+
i,
|
|
2475
|
+
/* @__PURE__ */ s(
|
|
2476
2476
|
Ht,
|
|
2477
2477
|
{
|
|
2478
2478
|
"aria-label": "TimeSlider",
|
|
2479
2479
|
value: a,
|
|
2480
2480
|
valueLabelDisplay: "on",
|
|
2481
2481
|
step: 1,
|
|
2482
|
-
marks:
|
|
2483
|
-
min:
|
|
2482
|
+
marks: C,
|
|
2483
|
+
min: i,
|
|
2484
2484
|
max: o,
|
|
2485
2485
|
onChange: u,
|
|
2486
2486
|
color: "primary",
|
|
@@ -2488,8 +2488,8 @@ const pn = Kt({
|
|
|
2488
2488
|
}
|
|
2489
2489
|
),
|
|
2490
2490
|
o,
|
|
2491
|
-
!
|
|
2492
|
-
|
|
2491
|
+
!m && /* @__PURE__ */ s("button", { className: pe.playButton, onClick: _, children: /* @__PURE__ */ s("img", { src: mn, alt: "Play" }) }),
|
|
2492
|
+
m && /* @__PURE__ */ s("button", { className: pe.playButton, onClick: y, children: /* @__PURE__ */ s("img", { src: hn, alt: "Pause" }) })
|
|
2493
2493
|
]
|
|
2494
2494
|
}
|
|
2495
2495
|
) });
|
|
@@ -2502,29 +2502,29 @@ _n.propTypes = {
|
|
|
2502
2502
|
zIndex: e.number,
|
|
2503
2503
|
rightBarOpen: e.bool
|
|
2504
2504
|
};
|
|
2505
|
-
const yn = "_TopNavMenuContainer_12mp4_2", vn = "_topNavOptions_12mp4_13", xn = "_active_12mp4_27",
|
|
2505
|
+
const yn = "_TopNavMenuContainer_12mp4_2", vn = "_topNavOptions_12mp4_13", xn = "_active_12mp4_27", De = {
|
|
2506
2506
|
TopNavMenuContainer: yn,
|
|
2507
2507
|
topNavOptions: vn,
|
|
2508
2508
|
active: xn
|
|
2509
2509
|
}, wn = ({
|
|
2510
2510
|
options: n = [],
|
|
2511
2511
|
containerStyles: d,
|
|
2512
|
-
borderColor:
|
|
2512
|
+
borderColor: i = "red",
|
|
2513
2513
|
textColor: o = "white",
|
|
2514
2514
|
onChangeNavLink: t = (r) => {
|
|
2515
2515
|
console.log("Changed NavLink", r);
|
|
2516
2516
|
}
|
|
2517
2517
|
}) => {
|
|
2518
2518
|
const { t: r } = k();
|
|
2519
|
-
return /* @__PURE__ */
|
|
2519
|
+
return /* @__PURE__ */ s("div", { className: De.TopNavMenuContainer, style: { ...d }, children: n.map((a, l) => /* @__PURE__ */ s(
|
|
2520
2520
|
Yt,
|
|
2521
2521
|
{
|
|
2522
2522
|
to: a.url,
|
|
2523
|
-
className: ({ isActive: c }) => `${
|
|
2523
|
+
className: ({ isActive: c }) => `${De.topNavOptions} ${c ? De.active : ""} `,
|
|
2524
2524
|
onClick: () => t(a.url),
|
|
2525
2525
|
style: ({ isActive: c }) => ({
|
|
2526
2526
|
color: o,
|
|
2527
|
-
borderBottom: c ? `5px solid ${
|
|
2527
|
+
borderBottom: c ? `5px solid ${i}` : "5px solid transparent"
|
|
2528
2528
|
}),
|
|
2529
2529
|
children: r(a.name)
|
|
2530
2530
|
},
|
|
@@ -2543,10 +2543,10 @@ wn.propTypes = {
|
|
|
2543
2543
|
};
|
|
2544
2544
|
const Nn = "_LogInButton_1vxj5_2", kn = {
|
|
2545
2545
|
LogInButton: Nn
|
|
2546
|
-
},
|
|
2546
|
+
}, Bn = ({
|
|
2547
2547
|
cssClass: n,
|
|
2548
2548
|
notLoggedInLabel: d = "Log in",
|
|
2549
|
-
loggedInLabel:
|
|
2549
|
+
loggedInLabel: i = "Log out",
|
|
2550
2550
|
containerStyles: o,
|
|
2551
2551
|
userName: t = "",
|
|
2552
2552
|
isLoggedIn: r = !1,
|
|
@@ -2558,17 +2558,17 @@ const Nn = "_LogInButton_1vxj5_2", kn = {
|
|
|
2558
2558
|
}
|
|
2559
2559
|
}) => {
|
|
2560
2560
|
const { t: c } = k();
|
|
2561
|
-
return /* @__PURE__ */
|
|
2561
|
+
return /* @__PURE__ */ s(
|
|
2562
2562
|
"div",
|
|
2563
2563
|
{
|
|
2564
2564
|
style: { ...o },
|
|
2565
2565
|
className: `${kn.LogInButton} link ${n}`,
|
|
2566
2566
|
onClick: r ? l : a,
|
|
2567
|
-
children: r ? t || c(
|
|
2567
|
+
children: r ? t || c(i) : c(d)
|
|
2568
2568
|
}
|
|
2569
2569
|
);
|
|
2570
2570
|
};
|
|
2571
|
-
|
|
2571
|
+
Bn.propTypes = {
|
|
2572
2572
|
cssClass: e.string,
|
|
2573
2573
|
notLoggedInLabel: e.string,
|
|
2574
2574
|
loggedInLabel: e.string,
|
|
@@ -2576,16 +2576,16 @@ $n.propTypes = {
|
|
|
2576
2576
|
userName: e.string,
|
|
2577
2577
|
isLoggedIn: e.bool
|
|
2578
2578
|
};
|
|
2579
|
-
const
|
|
2580
|
-
elementSelector:
|
|
2579
|
+
const $n = "_elementSelector_fd7az_2", Sn = "_header_fd7az_13", Mn = "_nameDateContainer_fd7az_23", Tn = "_elementName_fd7az_39", Dn = "_elementDate_fd7az_53", Ln = "_buttonsContainer_fd7az_67", Fn = "_elementListContainer_fd7az_76", Vn = "_newElementButtonContainer_fd7az_80", Z = {
|
|
2580
|
+
elementSelector: $n,
|
|
2581
2581
|
header: Sn,
|
|
2582
|
-
nameDateContainer:
|
|
2583
|
-
elementName:
|
|
2584
|
-
elementDate:
|
|
2582
|
+
nameDateContainer: Mn,
|
|
2583
|
+
elementName: Tn,
|
|
2584
|
+
elementDate: Dn,
|
|
2585
2585
|
buttonsContainer: Ln,
|
|
2586
2586
|
elementListContainer: Fn,
|
|
2587
2587
|
newElementButtonContainer: Vn
|
|
2588
|
-
}, An = "_listElement_1s506_2", On = "_elementNameDate_1s506_17", In = "_elementNameContainer_1s506_27", Rn = "_elementName_1s506_17", qn = "_elementDate_1s506_42", En = "_elementButtons_1s506_45", Pn = "_moreInfoContainer_1s506_68", jn = "_moreInfo_1s506_68",
|
|
2588
|
+
}, An = "_listElement_1s506_2", On = "_elementNameDate_1s506_17", In = "_elementNameContainer_1s506_27", Rn = "_elementName_1s506_17", qn = "_elementDate_1s506_42", En = "_elementButtons_1s506_45", Pn = "_moreInfoContainer_1s506_68", jn = "_moreInfo_1s506_68", P = {
|
|
2589
2589
|
listElement: An,
|
|
2590
2590
|
elementNameDate: On,
|
|
2591
2591
|
elementNameContainer: In,
|
|
@@ -2600,8 +2600,8 @@ var tt;
|
|
|
2600
2600
|
function Ee() {
|
|
2601
2601
|
return Ee = Object.assign ? Object.assign.bind() : function(n) {
|
|
2602
2602
|
for (var d = 1; d < arguments.length; d++) {
|
|
2603
|
-
var
|
|
2604
|
-
for (var o in
|
|
2603
|
+
var i = arguments[d];
|
|
2604
|
+
for (var o in i) ({}).hasOwnProperty.call(i, o) && (n[o] = i[o]);
|
|
2605
2605
|
}
|
|
2606
2606
|
return n;
|
|
2607
2607
|
}, Ee.apply(null, arguments);
|
|
@@ -2623,7 +2623,7 @@ var Gn = function(d) {
|
|
|
2623
2623
|
const Wn = "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", bt = ({
|
|
2624
2624
|
listelement: n,
|
|
2625
2625
|
onClickElement: d,
|
|
2626
|
-
isActive:
|
|
2626
|
+
isActive: i,
|
|
2627
2627
|
activeColor: o,
|
|
2628
2628
|
fontColor: t,
|
|
2629
2629
|
moreInfo: r,
|
|
@@ -2631,17 +2631,17 @@ const Wn = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2631
2631
|
elementButtons: l,
|
|
2632
2632
|
processTooltip: c,
|
|
2633
2633
|
defaultTooltip: u,
|
|
2634
|
-
showEye:
|
|
2634
|
+
showEye: m = !0
|
|
2635
2635
|
}) => {
|
|
2636
|
-
const { name:
|
|
2636
|
+
const { name: g, created_at: _, id: y, isBeingProcessed: h } = n, [b, C] = L(!1), { t: f } = k();
|
|
2637
2637
|
return /* @__PURE__ */ p(
|
|
2638
2638
|
"div",
|
|
2639
2639
|
{
|
|
2640
|
-
className:
|
|
2640
|
+
className: P.listElement,
|
|
2641
2641
|
style: { borderBottom: `1px solid ${t}` },
|
|
2642
2642
|
children: [
|
|
2643
|
-
/* @__PURE__ */
|
|
2644
|
-
|
|
2643
|
+
/* @__PURE__ */ s("div", { className: P.elementNameDate, onClick: () => d(y), children: Object.keys(a).map((v) => v === "name" ? /* @__PURE__ */ s("div", { className: P.elementNameContainer, children: /* @__PURE__ */ p("div", { className: P.elementName, children: [
|
|
2644
|
+
m && (i ? /* @__PURE__ */ s(Gn, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ s(
|
|
2645
2645
|
"img",
|
|
2646
2646
|
{
|
|
2647
2647
|
style: { marginRight: 9 },
|
|
@@ -2649,37 +2649,37 @@ const Wn = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2649
2649
|
alt: "eye"
|
|
2650
2650
|
}
|
|
2651
2651
|
)),
|
|
2652
|
-
/* @__PURE__ */
|
|
2653
|
-
] }) }) : v == "data" ? /* @__PURE__ */
|
|
2654
|
-
/* @__PURE__ */ p("div", { className:
|
|
2652
|
+
/* @__PURE__ */ s("span", { style: { color: i ? o : t }, children: g })
|
|
2653
|
+
] }) }) : v == "data" ? /* @__PURE__ */ s("div", { className: P.elementDate, children: _ ? new Date(_).toLocaleDateString() : "" }) : /* @__PURE__ */ s("div", { className: P.elementDate, children: n[v] })) }),
|
|
2654
|
+
/* @__PURE__ */ p("div", { className: P.elementButtons, children: [
|
|
2655
2655
|
n.processing && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
2656
|
-
/* @__PURE__ */
|
|
2657
|
-
/* @__PURE__ */
|
|
2656
|
+
/* @__PURE__ */ s("img", { src: Hn }),
|
|
2657
|
+
/* @__PURE__ */ s(te, { text: c, position: "left" })
|
|
2658
2658
|
] }),
|
|
2659
2659
|
l.filter && !n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
2660
|
-
/* @__PURE__ */
|
|
2661
|
-
/* @__PURE__ */
|
|
2660
|
+
/* @__PURE__ */ s("button", { onClick: () => l.filter.onclick(n), children: /* @__PURE__ */ s("img", { src: Kn }) }),
|
|
2661
|
+
/* @__PURE__ */ s(te, { text: l.filter.tooltiptext, position: "left" })
|
|
2662
2662
|
] }),
|
|
2663
2663
|
l.copy && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
2664
|
-
/* @__PURE__ */
|
|
2665
|
-
/* @__PURE__ */
|
|
2664
|
+
/* @__PURE__ */ s("button", { onClick: () => l.copy.onclick(n), children: /* @__PURE__ */ s("img", { src: Zn }) }),
|
|
2665
|
+
/* @__PURE__ */ s(te, { text: l.copy.tooltiptext, position: "left" })
|
|
2666
2666
|
] }),
|
|
2667
2667
|
l.trash && !n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
2668
|
-
/* @__PURE__ */
|
|
2669
|
-
/* @__PURE__ */
|
|
2668
|
+
/* @__PURE__ */ s("button", { onClick: () => l.trash.onclick(n), children: /* @__PURE__ */ s("img", { src: zn }) }),
|
|
2669
|
+
/* @__PURE__ */ s(te, { text: l.trash.tooltiptext, position: "left" })
|
|
2670
2670
|
] }),
|
|
2671
2671
|
n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
2672
|
-
/* @__PURE__ */
|
|
2673
|
-
/* @__PURE__ */
|
|
2672
|
+
/* @__PURE__ */ s("img", { src: Un }),
|
|
2673
|
+
/* @__PURE__ */ s(te, { text: u, position: "left" })
|
|
2674
2674
|
] })
|
|
2675
2675
|
] }),
|
|
2676
|
-
r && /* @__PURE__ */
|
|
2677
|
-
r && /* @__PURE__ */ p("div", { className:
|
|
2678
|
-
/* @__PURE__ */ p("div", { className:
|
|
2679
|
-
/* @__PURE__ */
|
|
2680
|
-
|
|
2676
|
+
r && /* @__PURE__ */ s("div", { className: P.break }),
|
|
2677
|
+
r && /* @__PURE__ */ p("div", { className: P.moreInfoContainer, children: [
|
|
2678
|
+
/* @__PURE__ */ p("div", { className: P.moreInfo, onClick: () => C(!b), children: [
|
|
2679
|
+
/* @__PURE__ */ s("span", { children: b ? "-" : "+" }),
|
|
2680
|
+
f(r.label)
|
|
2681
2681
|
] }),
|
|
2682
|
-
r &&
|
|
2682
|
+
r && b && /* @__PURE__ */ s("div", { className: P.moreInfoInfo, children: n[r.info] })
|
|
2683
2683
|
] })
|
|
2684
2684
|
]
|
|
2685
2685
|
}
|
|
@@ -2724,7 +2724,7 @@ bt.propTypes = {
|
|
|
2724
2724
|
const nt = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Yn = ({
|
|
2725
2725
|
elementsList: n,
|
|
2726
2726
|
activeElementId: d,
|
|
2727
|
-
fontColor:
|
|
2727
|
+
fontColor: i = "#605B56",
|
|
2728
2728
|
activeColor: o,
|
|
2729
2729
|
buttonContainerStyles: t = {},
|
|
2730
2730
|
containerStyles: r = {},
|
|
@@ -2735,65 +2735,65 @@ const nt = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2735
2735
|
// {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
|
|
2736
2736
|
elementButtons: u,
|
|
2737
2737
|
//{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
|
|
2738
|
-
moreInfo:
|
|
2738
|
+
moreInfo: m = !1,
|
|
2739
2739
|
//{label: 'x'}
|
|
2740
|
-
processTooltip:
|
|
2740
|
+
processTooltip: g,
|
|
2741
2741
|
//texto para el tooltip del simbolo "En proceso"
|
|
2742
2742
|
defaultTooltip: _,
|
|
2743
2743
|
//texto para el tooltip del símbolo de candado para los elementos default
|
|
2744
2744
|
showEye: y = !0
|
|
2745
2745
|
}) => {
|
|
2746
|
-
const { t: h } = k(), [
|
|
2746
|
+
const { t: h } = k(), [b, C] = L(n);
|
|
2747
2747
|
M(() => {
|
|
2748
|
-
n &&
|
|
2748
|
+
n && C(n);
|
|
2749
2749
|
}, [n]);
|
|
2750
|
-
const
|
|
2751
|
-
if (
|
|
2752
|
-
let N = [...
|
|
2753
|
-
N.sort((x, w) => x[v].localeCompare(w[v])),
|
|
2750
|
+
const f = (v) => {
|
|
2751
|
+
if (b && b.length > 0) {
|
|
2752
|
+
let N = [...b];
|
|
2753
|
+
N.sort((x, w) => x[v].localeCompare(w[v])), C(N);
|
|
2754
2754
|
}
|
|
2755
2755
|
};
|
|
2756
2756
|
return /* @__PURE__ */ p(
|
|
2757
2757
|
"div",
|
|
2758
2758
|
{
|
|
2759
2759
|
className: Z.elementSelector,
|
|
2760
|
-
style: { color:
|
|
2760
|
+
style: { color: i, ...r },
|
|
2761
2761
|
children: [
|
|
2762
2762
|
/* @__PURE__ */ p(
|
|
2763
2763
|
"div",
|
|
2764
2764
|
{
|
|
2765
2765
|
className: Z.header,
|
|
2766
|
-
style: { borderBottom: `1px solid ${
|
|
2766
|
+
style: { borderBottom: `1px solid ${i}` },
|
|
2767
2767
|
children: [
|
|
2768
|
-
/* @__PURE__ */
|
|
2769
|
-
/* @__PURE__ */
|
|
2770
|
-
/* @__PURE__ */
|
|
2771
|
-
] }) }, v) : v === "data" ? /* @__PURE__ */
|
|
2772
|
-
/* @__PURE__ */
|
|
2773
|
-
/* @__PURE__ */
|
|
2774
|
-
] }) }, v) : /* @__PURE__ */
|
|
2775
|
-
/* @__PURE__ */
|
|
2768
|
+
/* @__PURE__ */ s("div", { className: Z.nameDateContainer, children: Object.keys(c).map((v) => v === "name" ? /* @__PURE__ */ s("div", { className: Z.elementName, children: /* @__PURE__ */ p("button", { onClick: () => f("name"), children: [
|
|
2769
|
+
/* @__PURE__ */ s("span", { children: h(c.name) }),
|
|
2770
|
+
/* @__PURE__ */ s("img", { src: nt, alt: "order arrow" })
|
|
2771
|
+
] }) }, v) : v === "data" ? /* @__PURE__ */ s("div", { className: Z.elementDate, children: /* @__PURE__ */ p("button", { onClick: () => f("date"), children: [
|
|
2772
|
+
/* @__PURE__ */ s("span", { children: h(c.data) }),
|
|
2773
|
+
/* @__PURE__ */ s("img", { src: nt, alt: "order arrow" })
|
|
2774
|
+
] }) }, v) : /* @__PURE__ */ s("div", { className: Z.elementDate, children: /* @__PURE__ */ s("span", { children: h(c[v]) }) }, v)) }),
|
|
2775
|
+
/* @__PURE__ */ s("div", { className: Z.buttonsContainer })
|
|
2776
2776
|
]
|
|
2777
2777
|
}
|
|
2778
2778
|
),
|
|
2779
|
-
/* @__PURE__ */
|
|
2779
|
+
/* @__PURE__ */ s("div", { className: Z.elementListContainer, children: b && b.length > 0 && b.map((v) => /* @__PURE__ */ s(
|
|
2780
2780
|
bt,
|
|
2781
2781
|
{
|
|
2782
2782
|
isActive: d == v.id,
|
|
2783
2783
|
listelement: v,
|
|
2784
|
-
fontColor:
|
|
2784
|
+
fontColor: i,
|
|
2785
2785
|
activeColor: o,
|
|
2786
2786
|
onClickElement: l,
|
|
2787
2787
|
columns: c,
|
|
2788
2788
|
elementButtons: u,
|
|
2789
|
-
moreInfo:
|
|
2790
|
-
processTooltip:
|
|
2789
|
+
moreInfo: m,
|
|
2790
|
+
processTooltip: g,
|
|
2791
2791
|
defaultTooltip: _,
|
|
2792
2792
|
showEye: y
|
|
2793
2793
|
},
|
|
2794
2794
|
`elementKey${v.id}`
|
|
2795
2795
|
)) }),
|
|
2796
|
-
a && /* @__PURE__ */
|
|
2796
|
+
a && /* @__PURE__ */ s("div", { className: Z.newElementButtonContainer, children: /* @__PURE__ */ s(
|
|
2797
2797
|
we,
|
|
2798
2798
|
{
|
|
2799
2799
|
style: { ...t },
|
|
@@ -2874,11 +2874,11 @@ var Ce = (n) => !_t(n) && !Array.isArray(n) && si(n) && !ii(n), oi = (n) => Ce(n
|
|
|
2874
2874
|
}, ci = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
2875
2875
|
function yt(n) {
|
|
2876
2876
|
let d;
|
|
2877
|
-
const
|
|
2877
|
+
const i = Array.isArray(n), o = typeof FileList < "u" ? n instanceof FileList : !1;
|
|
2878
2878
|
if (n instanceof Date)
|
|
2879
2879
|
d = new Date(n);
|
|
2880
|
-
else if (!(ci && (n instanceof Blob || o)) && (
|
|
2881
|
-
if (d =
|
|
2880
|
+
else if (!(ci && (n instanceof Blob || o)) && (i || Ce(n)))
|
|
2881
|
+
if (d = i ? [] : {}, !i && !li(n))
|
|
2882
2882
|
d = n;
|
|
2883
2883
|
else
|
|
2884
2884
|
for (const t in n)
|
|
@@ -2887,17 +2887,17 @@ function yt(n) {
|
|
|
2887
2887
|
return n;
|
|
2888
2888
|
return d;
|
|
2889
2889
|
}
|
|
2890
|
-
var vt = (n) => /^\w*$/.test(n), Pe = (n) => n === void 0, di = (n) => Array.isArray(n) ? n.filter(Boolean) : [], xt = (n) => di(n.replace(/["|']|\]/g, "").split(/\.|\[/)),
|
|
2890
|
+
var vt = (n) => /^\w*$/.test(n), Pe = (n) => n === void 0, di = (n) => Array.isArray(n) ? n.filter(Boolean) : [], xt = (n) => di(n.replace(/["|']|\]/g, "").split(/\.|\[/)), I = (n, d, i) => {
|
|
2891
2891
|
if (!d || !Ce(n))
|
|
2892
|
-
return
|
|
2892
|
+
return i;
|
|
2893
2893
|
const o = (vt(d) ? [d] : xt(d)).reduce((t, r) => _t(t) ? t : t[r], n);
|
|
2894
|
-
return Pe(o) || o === n ? Pe(n[d]) ?
|
|
2895
|
-
}, Le = (n) => typeof n == "boolean", it = (n, d,
|
|
2894
|
+
return Pe(o) || o === n ? Pe(n[d]) ? i : n[d] : o;
|
|
2895
|
+
}, Le = (n) => typeof n == "boolean", it = (n, d, i) => {
|
|
2896
2896
|
let o = -1;
|
|
2897
2897
|
const t = vt(d) ? [d] : xt(d), r = t.length, a = r - 1;
|
|
2898
2898
|
for (; ++o < r; ) {
|
|
2899
2899
|
const l = t[o];
|
|
2900
|
-
let c =
|
|
2900
|
+
let c = i;
|
|
2901
2901
|
if (o !== a) {
|
|
2902
2902
|
const u = n[l];
|
|
2903
2903
|
c = Ce(u) || Array.isArray(u) ? u : isNaN(+t[o + 1]) ? {} : [];
|
|
@@ -2912,10 +2912,10 @@ const st = {
|
|
|
2912
2912
|
CHANGE: "change"
|
|
2913
2913
|
}, ot = {
|
|
2914
2914
|
all: "all"
|
|
2915
|
-
}, wt =
|
|
2915
|
+
}, wt = S.createContext(null);
|
|
2916
2916
|
wt.displayName = "HookFormContext";
|
|
2917
|
-
const He = () =>
|
|
2918
|
-
var ui = (n, d,
|
|
2917
|
+
const He = () => S.useContext(wt);
|
|
2918
|
+
var ui = (n, d, i, o = !0) => {
|
|
2919
2919
|
const t = {
|
|
2920
2920
|
defaultValues: d._defaultValues
|
|
2921
2921
|
};
|
|
@@ -2923,14 +2923,14 @@ var ui = (n, d, s, o = !0) => {
|
|
|
2923
2923
|
Object.defineProperty(t, r, {
|
|
2924
2924
|
get: () => {
|
|
2925
2925
|
const a = r;
|
|
2926
|
-
return d._proxyFormState[a] !== ot.all && (d._proxyFormState[a] = !o || ot.all),
|
|
2926
|
+
return d._proxyFormState[a] !== ot.all && (d._proxyFormState[a] = !o || ot.all), i && (i[a] = !0), n[a];
|
|
2927
2927
|
}
|
|
2928
2928
|
});
|
|
2929
2929
|
return t;
|
|
2930
2930
|
};
|
|
2931
2931
|
const Nt = typeof window < "u" ? ce.useLayoutEffect : ce.useEffect;
|
|
2932
2932
|
function pi(n) {
|
|
2933
|
-
const d = He(), { control:
|
|
2933
|
+
const d = He(), { control: i = d.control, disabled: o, name: t, exact: r } = n || {}, [a, l] = S.useState(i._formState), c = S.useRef({
|
|
2934
2934
|
isDirty: !1,
|
|
2935
2935
|
isLoading: !1,
|
|
2936
2936
|
dirtyFields: !1,
|
|
@@ -2940,142 +2940,142 @@ function pi(n) {
|
|
|
2940
2940
|
isValid: !1,
|
|
2941
2941
|
errors: !1
|
|
2942
2942
|
});
|
|
2943
|
-
return Nt(() =>
|
|
2943
|
+
return Nt(() => i._subscribe({
|
|
2944
2944
|
name: t,
|
|
2945
2945
|
formState: c.current,
|
|
2946
2946
|
exact: r,
|
|
2947
2947
|
callback: (u) => {
|
|
2948
2948
|
!o && l({
|
|
2949
|
-
...
|
|
2949
|
+
...i._formState,
|
|
2950
2950
|
...u
|
|
2951
2951
|
});
|
|
2952
2952
|
}
|
|
2953
|
-
}), [t, o, r]),
|
|
2954
|
-
c.current.isValid &&
|
|
2955
|
-
}, [
|
|
2953
|
+
}), [t, o, r]), S.useEffect(() => {
|
|
2954
|
+
c.current.isValid && i._setValid(!0);
|
|
2955
|
+
}, [i]), S.useMemo(() => ui(a, i, c.current, !1), [a, i]);
|
|
2956
2956
|
}
|
|
2957
|
-
var mi = (n) => typeof n == "string", hi = (n, d,
|
|
2957
|
+
var mi = (n) => typeof n == "string", hi = (n, d, i, o, t) => mi(n) ? I(i, n, t) : Array.isArray(n) ? n.map((r) => I(i, r)) : i;
|
|
2958
2958
|
function gi(n) {
|
|
2959
|
-
const d = He(), { control:
|
|
2960
|
-
return Nt(() =>
|
|
2959
|
+
const d = He(), { control: i = d.control, name: o, defaultValue: t, disabled: r, exact: a } = n || {}, l = S.useRef(t), [c, u] = S.useState(i._getWatch(o, l.current));
|
|
2960
|
+
return Nt(() => i._subscribe({
|
|
2961
2961
|
name: o,
|
|
2962
2962
|
formState: {
|
|
2963
2963
|
values: !0
|
|
2964
2964
|
},
|
|
2965
2965
|
exact: a,
|
|
2966
|
-
callback: (
|
|
2967
|
-
}), [o,
|
|
2966
|
+
callback: (m) => !r && u(hi(o, i._names, m.values || i._formValues, !1, l.current))
|
|
2967
|
+
}), [o, i, r, a]), S.useEffect(() => i._removeUnmounted()), c;
|
|
2968
2968
|
}
|
|
2969
2969
|
function Ci(n) {
|
|
2970
|
-
const d = He(), { name:
|
|
2970
|
+
const d = He(), { name: i, disabled: o, control: t = d.control, shouldUnregister: r } = n, a = ai(t._names.array, i), l = gi({
|
|
2971
2971
|
control: t,
|
|
2972
|
-
name:
|
|
2973
|
-
defaultValue:
|
|
2972
|
+
name: i,
|
|
2973
|
+
defaultValue: I(t._formValues, i, I(t._defaultValues, i, n.defaultValue)),
|
|
2974
2974
|
exact: !0
|
|
2975
2975
|
}), c = pi({
|
|
2976
2976
|
control: t,
|
|
2977
|
-
name:
|
|
2977
|
+
name: i,
|
|
2978
2978
|
exact: !0
|
|
2979
|
-
}), u =
|
|
2979
|
+
}), u = S.useRef(n), m = S.useRef(t.register(i, {
|
|
2980
2980
|
...n.rules,
|
|
2981
2981
|
value: l,
|
|
2982
2982
|
...Le(n.disabled) ? { disabled: n.disabled } : {}
|
|
2983
|
-
})),
|
|
2983
|
+
})), g = S.useMemo(() => Object.defineProperties({}, {
|
|
2984
2984
|
invalid: {
|
|
2985
2985
|
enumerable: !0,
|
|
2986
|
-
get: () => !!
|
|
2986
|
+
get: () => !!I(c.errors, i)
|
|
2987
2987
|
},
|
|
2988
2988
|
isDirty: {
|
|
2989
2989
|
enumerable: !0,
|
|
2990
|
-
get: () => !!
|
|
2990
|
+
get: () => !!I(c.dirtyFields, i)
|
|
2991
2991
|
},
|
|
2992
2992
|
isTouched: {
|
|
2993
2993
|
enumerable: !0,
|
|
2994
|
-
get: () => !!
|
|
2994
|
+
get: () => !!I(c.touchedFields, i)
|
|
2995
2995
|
},
|
|
2996
2996
|
isValidating: {
|
|
2997
2997
|
enumerable: !0,
|
|
2998
|
-
get: () => !!
|
|
2998
|
+
get: () => !!I(c.validatingFields, i)
|
|
2999
2999
|
},
|
|
3000
3000
|
error: {
|
|
3001
3001
|
enumerable: !0,
|
|
3002
|
-
get: () =>
|
|
3002
|
+
get: () => I(c.errors, i)
|
|
3003
3003
|
}
|
|
3004
|
-
}), [c,
|
|
3004
|
+
}), [c, i]), _ = S.useCallback((C) => m.current.onChange({
|
|
3005
3005
|
target: {
|
|
3006
|
-
value: oi(
|
|
3007
|
-
name:
|
|
3006
|
+
value: oi(C),
|
|
3007
|
+
name: i
|
|
3008
3008
|
},
|
|
3009
3009
|
type: st.CHANGE
|
|
3010
|
-
}), [
|
|
3010
|
+
}), [i]), y = S.useCallback(() => m.current.onBlur({
|
|
3011
3011
|
target: {
|
|
3012
|
-
value:
|
|
3013
|
-
name:
|
|
3012
|
+
value: I(t._formValues, i),
|
|
3013
|
+
name: i
|
|
3014
3014
|
},
|
|
3015
3015
|
type: st.BLUR
|
|
3016
|
-
}), [
|
|
3017
|
-
const
|
|
3018
|
-
|
|
3019
|
-
focus: () =>
|
|
3020
|
-
select: () =>
|
|
3021
|
-
setCustomValidity: (v) =>
|
|
3022
|
-
reportValidity: () =>
|
|
3016
|
+
}), [i, t._formValues]), h = S.useCallback((C) => {
|
|
3017
|
+
const f = I(t._fields, i);
|
|
3018
|
+
f && C && (f._f.ref = {
|
|
3019
|
+
focus: () => C.focus && C.focus(),
|
|
3020
|
+
select: () => C.select && C.select(),
|
|
3021
|
+
setCustomValidity: (v) => C.setCustomValidity(v),
|
|
3022
|
+
reportValidity: () => C.reportValidity()
|
|
3023
3023
|
});
|
|
3024
|
-
}, [t._fields,
|
|
3025
|
-
name:
|
|
3024
|
+
}, [t._fields, i]), b = S.useMemo(() => ({
|
|
3025
|
+
name: i,
|
|
3026
3026
|
value: l,
|
|
3027
3027
|
...Le(o) || c.disabled ? { disabled: c.disabled || o } : {},
|
|
3028
3028
|
onChange: _,
|
|
3029
3029
|
onBlur: y,
|
|
3030
3030
|
ref: h
|
|
3031
|
-
}), [
|
|
3032
|
-
return
|
|
3033
|
-
const
|
|
3034
|
-
t.register(
|
|
3031
|
+
}), [i, o, c.disabled, _, y, h, l]);
|
|
3032
|
+
return S.useEffect(() => {
|
|
3033
|
+
const C = t._options.shouldUnregister || r;
|
|
3034
|
+
t.register(i, {
|
|
3035
3035
|
...u.current.rules,
|
|
3036
3036
|
...Le(u.current.disabled) ? { disabled: u.current.disabled } : {}
|
|
3037
3037
|
});
|
|
3038
|
-
const
|
|
3039
|
-
const x =
|
|
3038
|
+
const f = (v, N) => {
|
|
3039
|
+
const x = I(t._fields, v);
|
|
3040
3040
|
x && x._f && (x._f.mount = N);
|
|
3041
3041
|
};
|
|
3042
|
-
if (
|
|
3043
|
-
const v = yt(
|
|
3044
|
-
it(t._defaultValues,
|
|
3042
|
+
if (f(i, !0), C) {
|
|
3043
|
+
const v = yt(I(t._options.defaultValues, i));
|
|
3044
|
+
it(t._defaultValues, i, v), Pe(I(t._formValues, i)) && it(t._formValues, i, v);
|
|
3045
3045
|
}
|
|
3046
|
-
return !a && t.register(
|
|
3047
|
-
(a ?
|
|
3046
|
+
return !a && t.register(i), () => {
|
|
3047
|
+
(a ? C && !t._state.action : C) ? t.unregister(i) : f(i, !1);
|
|
3048
3048
|
};
|
|
3049
|
-
}, [
|
|
3049
|
+
}, [i, t, a, r]), S.useEffect(() => {
|
|
3050
3050
|
t._setDisabledField({
|
|
3051
3051
|
disabled: o,
|
|
3052
|
-
name:
|
|
3052
|
+
name: i
|
|
3053
3053
|
});
|
|
3054
|
-
}, [o,
|
|
3055
|
-
field:
|
|
3054
|
+
}, [o, i, t]), S.useMemo(() => ({
|
|
3055
|
+
field: b,
|
|
3056
3056
|
formState: c,
|
|
3057
|
-
fieldState:
|
|
3058
|
-
}), [
|
|
3057
|
+
fieldState: g
|
|
3058
|
+
}), [b, c, g]);
|
|
3059
3059
|
}
|
|
3060
3060
|
const Ne = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
|
|
3061
3061
|
errorMessage: fi
|
|
3062
3062
|
}, fe = ({
|
|
3063
3063
|
errorMessage: n,
|
|
3064
3064
|
errorColor: d = "red",
|
|
3065
|
-
containerStyles:
|
|
3065
|
+
containerStyles: i
|
|
3066
3066
|
}) => {
|
|
3067
3067
|
const { t: o } = k();
|
|
3068
|
-
return /* @__PURE__ */
|
|
3068
|
+
return /* @__PURE__ */ s(
|
|
3069
3069
|
"div",
|
|
3070
3070
|
{
|
|
3071
3071
|
className: bi.errorMessage,
|
|
3072
|
-
style: { color: d, ...
|
|
3072
|
+
style: { color: d, ...i },
|
|
3073
3073
|
children: n ? o(n) : ""
|
|
3074
3074
|
}
|
|
3075
3075
|
);
|
|
3076
3076
|
}, rt = ({ input: n, reactHookFormInstance: d }) => {
|
|
3077
3077
|
const {
|
|
3078
|
-
code:
|
|
3078
|
+
code: i,
|
|
3079
3079
|
type: o,
|
|
3080
3080
|
label: t,
|
|
3081
3081
|
maxLength: r,
|
|
@@ -3083,41 +3083,41 @@ const Ne = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
|
|
|
3083
3083
|
validateFunction: l,
|
|
3084
3084
|
placeholder: c,
|
|
3085
3085
|
errorColor: u = "red",
|
|
3086
|
-
width:
|
|
3087
|
-
onClickForgotPass:
|
|
3086
|
+
width: m = 325,
|
|
3087
|
+
onClickForgotPass: g = () => {
|
|
3088
3088
|
console.log("Click on forgot password");
|
|
3089
3089
|
},
|
|
3090
3090
|
forgotPassLabel: _ = "forgot-password"
|
|
3091
|
-
} = n, { t: y } = k(), { control: h, trigger:
|
|
3091
|
+
} = n, { t: y } = k(), { control: h, trigger: b, clearErrors: C } = d, [f, v] = L(!1), N = ne(a);
|
|
3092
3092
|
M(() => {
|
|
3093
|
-
N.current !== a && (a ?
|
|
3094
|
-
}, [a,
|
|
3095
|
-
const x = () => o ? o === "password" &&
|
|
3096
|
-
return /* @__PURE__ */
|
|
3093
|
+
N.current !== a && (a ? b(i) : C(i), N.current = a);
|
|
3094
|
+
}, [a, i, b, C]);
|
|
3095
|
+
const x = () => o ? o === "password" && f ? "text" : o : "text";
|
|
3096
|
+
return /* @__PURE__ */ s(
|
|
3097
3097
|
Ne,
|
|
3098
3098
|
{
|
|
3099
|
-
name:
|
|
3099
|
+
name: i,
|
|
3100
3100
|
control: h,
|
|
3101
3101
|
rules: {
|
|
3102
3102
|
required: a ? `${y(t)} ${y("errorMessages.required")}` : !1,
|
|
3103
3103
|
maxLength: r || void 0,
|
|
3104
3104
|
validate: l || void 0
|
|
3105
3105
|
},
|
|
3106
|
-
render: ({ field: w, fieldState:
|
|
3107
|
-
var
|
|
3106
|
+
render: ({ field: w, fieldState: B }) => {
|
|
3107
|
+
var $;
|
|
3108
3108
|
return /* @__PURE__ */ p("div", { className: he.textInputContainer, children: [
|
|
3109
3109
|
/* @__PURE__ */ p("h3", { className: he.labelContainer, children: [
|
|
3110
3110
|
y(t),
|
|
3111
3111
|
" ",
|
|
3112
|
-
a && /* @__PURE__ */
|
|
3112
|
+
a && /* @__PURE__ */ s("label", { style: { color: B.error ? u : "" }, children: "*" })
|
|
3113
3113
|
] }),
|
|
3114
3114
|
/* @__PURE__ */ p(
|
|
3115
3115
|
"div",
|
|
3116
3116
|
{
|
|
3117
|
-
style: { position: "relative", width:
|
|
3117
|
+
style: { position: "relative", width: m },
|
|
3118
3118
|
className: he.inputContainer,
|
|
3119
3119
|
children: [
|
|
3120
|
-
/* @__PURE__ */
|
|
3120
|
+
/* @__PURE__ */ s(
|
|
3121
3121
|
"input",
|
|
3122
3122
|
{
|
|
3123
3123
|
type: x(),
|
|
@@ -3126,23 +3126,23 @@ const Ne = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
|
|
|
3126
3126
|
maxLength: r || void 0
|
|
3127
3127
|
}
|
|
3128
3128
|
),
|
|
3129
|
-
o == "password" && /* @__PURE__ */
|
|
3129
|
+
o == "password" && /* @__PURE__ */ s(
|
|
3130
3130
|
"button",
|
|
3131
3131
|
{
|
|
3132
|
-
onClick: () => v(!
|
|
3132
|
+
onClick: () => v(!f),
|
|
3133
3133
|
type: "button",
|
|
3134
3134
|
className: he.showPasswordButton,
|
|
3135
|
-
children:
|
|
3135
|
+
children: f ? "🙈" : "👁️"
|
|
3136
3136
|
}
|
|
3137
3137
|
)
|
|
3138
3138
|
]
|
|
3139
3139
|
}
|
|
3140
3140
|
),
|
|
3141
|
-
o == "password" && /* @__PURE__ */
|
|
3142
|
-
/* @__PURE__ */
|
|
3141
|
+
o == "password" && /* @__PURE__ */ s("div", { className: he.forgotPassButton, children: /* @__PURE__ */ s("button", { onClick: g, children: y(_) }) }),
|
|
3142
|
+
/* @__PURE__ */ s(
|
|
3143
3143
|
fe,
|
|
3144
3144
|
{
|
|
3145
|
-
errorMessage: (
|
|
3145
|
+
errorMessage: ($ = B.error) == null ? void 0 : $.message,
|
|
3146
3146
|
errorColor: u
|
|
3147
3147
|
}
|
|
3148
3148
|
)
|
|
@@ -3156,16 +3156,16 @@ const Ne = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
|
|
|
3156
3156
|
buttonContainer: vi
|
|
3157
3157
|
}, xi = "_inputsContainer_10t9s_2", ae = {
|
|
3158
3158
|
inputsContainer: xi
|
|
3159
|
-
}, wi = "_selectInputContainer_1rj0h_2", Ni = "_labelContainer_1rj0h_6", ki = "_inputContainer_1rj0h_9",
|
|
3159
|
+
}, wi = "_selectInputContainer_1rj0h_2", Ni = "_labelContainer_1rj0h_6", ki = "_inputContainer_1rj0h_9", Bi = "_selectInput_1rj0h_2", $i = "_option_1rj0h_23", Si = "_dropdownArrow_1rj0h_26", le = {
|
|
3160
3160
|
selectInputContainer: wi,
|
|
3161
3161
|
labelContainer: Ni,
|
|
3162
3162
|
inputContainer: ki,
|
|
3163
|
-
selectInput:
|
|
3164
|
-
option:
|
|
3163
|
+
selectInput: Bi,
|
|
3164
|
+
option: $i,
|
|
3165
3165
|
dropdownArrow: Si
|
|
3166
|
-
},
|
|
3166
|
+
}, Mi = "data:image/svg+xml,%3csvg%20width='19'%20height='10'%20viewBox='0%200%2019%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector%20311'%20d='M1%201.09961L8.79289%208.8925C9.18342%209.28303%209.81658%209.28303%2010.2071%208.8925L18%201.09961'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e", Ti = ({ input: n, reactHookFormInstance: d }) => {
|
|
3167
3167
|
const {
|
|
3168
|
-
code:
|
|
3168
|
+
code: i,
|
|
3169
3169
|
type: o,
|
|
3170
3170
|
label: t,
|
|
3171
3171
|
maxLength: r,
|
|
@@ -3173,41 +3173,41 @@ const Ne = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
|
|
|
3173
3173
|
validateFunction: l,
|
|
3174
3174
|
placeholder: c,
|
|
3175
3175
|
errorColor: u = "red",
|
|
3176
|
-
width:
|
|
3177
|
-
options:
|
|
3178
|
-
} = n, { t: _ } = k(), { control: y, trigger: h, clearErrors:
|
|
3176
|
+
width: m = 325,
|
|
3177
|
+
options: g = []
|
|
3178
|
+
} = n, { t: _ } = k(), { control: y, trigger: h, clearErrors: b } = d, C = ne(a);
|
|
3179
3179
|
return M(() => {
|
|
3180
|
-
|
|
3181
|
-
}, [a,
|
|
3180
|
+
C.current !== a && (a ? h(i) : b(i), C.current = a);
|
|
3181
|
+
}, [a, i, h, b]), /* @__PURE__ */ s(
|
|
3182
3182
|
Ne,
|
|
3183
3183
|
{
|
|
3184
|
-
name:
|
|
3184
|
+
name: i,
|
|
3185
3185
|
control: y,
|
|
3186
3186
|
rules: {
|
|
3187
3187
|
required: a ? `${_(t)} ${_("errorMessages.required")}` : !1,
|
|
3188
3188
|
validate: l || void 0
|
|
3189
3189
|
},
|
|
3190
|
-
render: ({ field:
|
|
3190
|
+
render: ({ field: f, fieldState: v }) => {
|
|
3191
3191
|
var N;
|
|
3192
3192
|
return /* @__PURE__ */ p("div", { className: le.selectInputContainer, children: [
|
|
3193
3193
|
/* @__PURE__ */ p("h3", { className: le.labelContainer, children: [
|
|
3194
3194
|
_(t),
|
|
3195
3195
|
" ",
|
|
3196
|
-
a && /* @__PURE__ */
|
|
3196
|
+
a && /* @__PURE__ */ s("label", { style: { color: v.error ? u : "" }, children: "*" })
|
|
3197
3197
|
] }),
|
|
3198
|
-
/* @__PURE__ */ p("div", { className: le.inputContainer, style: { width:
|
|
3198
|
+
/* @__PURE__ */ p("div", { className: le.inputContainer, style: { width: m }, children: [
|
|
3199
3199
|
/* @__PURE__ */ p(
|
|
3200
3200
|
"select",
|
|
3201
3201
|
{
|
|
3202
|
-
...
|
|
3202
|
+
...f,
|
|
3203
3203
|
onChange: (x) => {
|
|
3204
|
-
const w = x.target.value,
|
|
3205
|
-
|
|
3204
|
+
const w = x.target.value, B = g.every(($) => typeof $.value == "number") ? Number(w) : w;
|
|
3205
|
+
f.onChange(B);
|
|
3206
3206
|
},
|
|
3207
3207
|
className: le.selectInput,
|
|
3208
3208
|
children: [
|
|
3209
|
-
/* @__PURE__ */
|
|
3210
|
-
|
|
3209
|
+
/* @__PURE__ */ s("option", { value: "", disabled: !0, hidden: !0, children: _(c || "selectOption") }),
|
|
3210
|
+
g.map((x, w) => /* @__PURE__ */ s(
|
|
3211
3211
|
"option",
|
|
3212
3212
|
{
|
|
3213
3213
|
value: x.value,
|
|
@@ -3219,16 +3219,16 @@ const Ne = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
|
|
|
3219
3219
|
]
|
|
3220
3220
|
}
|
|
3221
3221
|
),
|
|
3222
|
-
/* @__PURE__ */
|
|
3222
|
+
/* @__PURE__ */ s(
|
|
3223
3223
|
"img",
|
|
3224
3224
|
{
|
|
3225
|
-
src:
|
|
3225
|
+
src: Mi,
|
|
3226
3226
|
alt: "Open",
|
|
3227
3227
|
className: le.dropdownArrow
|
|
3228
3228
|
}
|
|
3229
3229
|
)
|
|
3230
3230
|
] }),
|
|
3231
|
-
/* @__PURE__ */
|
|
3231
|
+
/* @__PURE__ */ s(
|
|
3232
3232
|
fe,
|
|
3233
3233
|
{
|
|
3234
3234
|
errorMessage: (N = v.error) == null ? void 0 : N.message,
|
|
@@ -3239,8 +3239,8 @@ const Ne = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
|
|
|
3239
3239
|
}
|
|
3240
3240
|
}
|
|
3241
3241
|
);
|
|
3242
|
-
},
|
|
3243
|
-
radioButtonContainer:
|
|
3242
|
+
}, Di = "_radioButtonContainer_1e994_2", Li = "_wholeInputContainer_1e994_5", Fi = "_questionContainer_1e994_27", Vi = "_radioQuestion_1e994_59", Ai = "_inputContainer_1e994_63", Oi = "_radioInput_1e994_93", J = {
|
|
3243
|
+
radioButtonContainer: Di,
|
|
3244
3244
|
wholeInputContainer: Li,
|
|
3245
3245
|
questionContainer: Fi,
|
|
3246
3246
|
radioQuestion: Vi,
|
|
@@ -3248,47 +3248,47 @@ const Ne = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
|
|
|
3248
3248
|
radioInput: Oi
|
|
3249
3249
|
}, Ii = ({ input: n, reactHookFormInstance: d }) => {
|
|
3250
3250
|
const {
|
|
3251
|
-
code:
|
|
3251
|
+
code: i,
|
|
3252
3252
|
label: o,
|
|
3253
3253
|
required: t,
|
|
3254
3254
|
validateFunction: r,
|
|
3255
3255
|
errorColor: a = "red",
|
|
3256
3256
|
options: l = [],
|
|
3257
3257
|
multi: c = !1
|
|
3258
|
-
} = n, { t: u } = k(), { control:
|
|
3258
|
+
} = n, { t: u } = k(), { control: m, trigger: g, clearErrors: _ } = d, y = ({ options: C, onChange: f, actualValue: v }) => {
|
|
3259
3259
|
if (c && v && v.length > 0) {
|
|
3260
|
-
let N = v.filter((x) => x !==
|
|
3261
|
-
|
|
3260
|
+
let N = v.filter((x) => x !== C);
|
|
3261
|
+
f(N);
|
|
3262
3262
|
}
|
|
3263
|
-
}, h = ({ options:
|
|
3264
|
-
c ? v && v.length > 0 ?
|
|
3265
|
-
},
|
|
3263
|
+
}, h = ({ options: C, onChange: f, actualValue: v }) => {
|
|
3264
|
+
c ? v && v.length > 0 ? f([...v, C]) : f([C]) : f(C);
|
|
3265
|
+
}, b = ne(t);
|
|
3266
3266
|
return M(() => {
|
|
3267
|
-
|
|
3268
|
-
}, [t,
|
|
3267
|
+
b.current !== t && (t ? g(i) : _(i), b.current = t);
|
|
3268
|
+
}, [t, i, g, _]), /* @__PURE__ */ s(
|
|
3269
3269
|
Ne,
|
|
3270
3270
|
{
|
|
3271
|
-
control:
|
|
3272
|
-
name:
|
|
3271
|
+
control: m,
|
|
3272
|
+
name: i,
|
|
3273
3273
|
rules: {
|
|
3274
|
-
validate: (
|
|
3274
|
+
validate: (C) => t && (C == null || C === "") ? `${u(o)} ${u("errorMessages.required")}` : null
|
|
3275
3275
|
},
|
|
3276
3276
|
render: ({
|
|
3277
|
-
formState: { errors:
|
|
3278
|
-
field: { onChange:
|
|
3277
|
+
formState: { errors: C },
|
|
3278
|
+
field: { onChange: f, onBlur: v, value: N, ref: x },
|
|
3279
3279
|
fieldState: w
|
|
3280
3280
|
}) => {
|
|
3281
|
-
var
|
|
3282
|
-
return /* @__PURE__ */
|
|
3283
|
-
o && /* @__PURE__ */
|
|
3281
|
+
var B;
|
|
3282
|
+
return /* @__PURE__ */ s("div", { id: i + "id", className: J.radioButtonContainer, children: /* @__PURE__ */ p("div", { className: J.wholeInputContainer, children: [
|
|
3283
|
+
o && /* @__PURE__ */ s("div", { className: J.questionContainer, children: /* @__PURE__ */ p(
|
|
3284
3284
|
"h3",
|
|
3285
3285
|
{
|
|
3286
|
-
htmlFor:
|
|
3286
|
+
htmlFor: i + "id",
|
|
3287
3287
|
className: `${J.radioQuestion} ${t && J.required}`,
|
|
3288
3288
|
children: [
|
|
3289
3289
|
u(o),
|
|
3290
3290
|
" ",
|
|
3291
|
-
t && /* @__PURE__ */
|
|
3291
|
+
t && /* @__PURE__ */ s(
|
|
3292
3292
|
"label",
|
|
3293
3293
|
{
|
|
3294
3294
|
style: { color: w.error ? a : "" },
|
|
@@ -3301,41 +3301,41 @@ const Ne = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
|
|
|
3301
3301
|
/* @__PURE__ */ p("div", { className: J.inputContainer, children: [
|
|
3302
3302
|
l.map(
|
|
3303
3303
|
({
|
|
3304
|
-
label:
|
|
3305
|
-
value:
|
|
3306
|
-
disabled:
|
|
3304
|
+
label: $,
|
|
3305
|
+
value: T,
|
|
3306
|
+
disabled: j = !1,
|
|
3307
3307
|
italicLabel: de
|
|
3308
|
-
},
|
|
3309
|
-
const
|
|
3308
|
+
}, q) => {
|
|
3309
|
+
const z = N && c ? N.isArray && (N == null ? void 0 : N.length) > 0 && N.some((E) => E === T) : N === T;
|
|
3310
3310
|
return /* @__PURE__ */ p("label", { children: [
|
|
3311
|
-
/* @__PURE__ */
|
|
3311
|
+
/* @__PURE__ */ s(
|
|
3312
3312
|
"input",
|
|
3313
3313
|
{
|
|
3314
3314
|
type: "radio",
|
|
3315
|
-
checked:
|
|
3315
|
+
checked: z,
|
|
3316
3316
|
onChange: () => {
|
|
3317
|
-
c ?
|
|
3317
|
+
c ? z ? y({
|
|
3318
3318
|
actualValue: N,
|
|
3319
3319
|
options: l,
|
|
3320
|
-
onChange:
|
|
3320
|
+
onChange: f
|
|
3321
3321
|
}) : h({
|
|
3322
3322
|
actualValue: N,
|
|
3323
3323
|
options: l,
|
|
3324
|
-
onChange:
|
|
3325
|
-
}) :
|
|
3324
|
+
onChange: f
|
|
3325
|
+
}) : f(T);
|
|
3326
3326
|
},
|
|
3327
3327
|
className: J.radioInput
|
|
3328
3328
|
}
|
|
3329
3329
|
),
|
|
3330
|
-
/* @__PURE__ */
|
|
3331
|
-
u(
|
|
3332
|
-
] }, `inputRadio ${
|
|
3330
|
+
/* @__PURE__ */ s("span", { className: "radio-custom" }),
|
|
3331
|
+
u($)
|
|
3332
|
+
] }, `inputRadio ${q}`);
|
|
3333
3333
|
}
|
|
3334
3334
|
),
|
|
3335
|
-
/* @__PURE__ */
|
|
3335
|
+
/* @__PURE__ */ s(
|
|
3336
3336
|
fe,
|
|
3337
3337
|
{
|
|
3338
|
-
errorMessage: (
|
|
3338
|
+
errorMessage: (B = w.error) == null ? void 0 : B.message,
|
|
3339
3339
|
errorColor: a
|
|
3340
3340
|
}
|
|
3341
3341
|
)
|
|
@@ -3344,93 +3344,83 @@ const Ne = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
|
|
|
3344
3344
|
}
|
|
3345
3345
|
}
|
|
3346
3346
|
);
|
|
3347
|
-
}, Ri = "
|
|
3347
|
+
}, Ri = "_rankingSliderContainer_brgxs_2", qi = "_labelContainer_brgxs_6", Ei = "_inputContainer_brgxs_10", Pi = "_slider_brgxs_18", ji = "_thumb_brgxs_25", zi = "_labels_brgxs_35", Zi = "_minLabel_brgxs_63", Ki = "_maxLabel_brgxs_63", D = {
|
|
3348
3348
|
rankingSliderContainer: Ri,
|
|
3349
3349
|
labelContainer: qi,
|
|
3350
3350
|
inputContainer: Ei,
|
|
3351
3351
|
slider: Pi,
|
|
3352
3352
|
thumb: ji,
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
labelsText: Hi
|
|
3353
|
+
labels: zi,
|
|
3354
|
+
minLabel: Zi,
|
|
3355
|
+
maxLabel: Ki
|
|
3357
3356
|
}, kt = ({ input: n, reactHookFormInstance: d }) => {
|
|
3358
3357
|
const {
|
|
3359
|
-
code:
|
|
3358
|
+
code: i,
|
|
3360
3359
|
label: o,
|
|
3361
3360
|
minValue: t = 1,
|
|
3362
3361
|
maxValue: r = 5,
|
|
3363
3362
|
defValue: a = 3,
|
|
3364
3363
|
thumbColor: l = "#B32F5D",
|
|
3365
|
-
trackColors
|
|
3366
|
-
required:
|
|
3367
|
-
errorColor:
|
|
3368
|
-
labelWidth:
|
|
3369
|
-
sliderWidth:
|
|
3370
|
-
minText:
|
|
3371
|
-
maxText:
|
|
3372
|
-
disabled:
|
|
3373
|
-
|
|
3364
|
+
//trackColors = ["#B32F5D", "#EFEFEF"],
|
|
3365
|
+
required: c,
|
|
3366
|
+
errorColor: u = "red",
|
|
3367
|
+
labelWidth: m = "300px",
|
|
3368
|
+
sliderWidth: g = "300px",
|
|
3369
|
+
minText: _,
|
|
3370
|
+
maxText: y,
|
|
3371
|
+
disabled: h = !1,
|
|
3372
|
+
marks: b = Array.from({ length: r - t + 1 }, (T, j) => t + j),
|
|
3373
|
+
showMarksNumber: C = !0
|
|
3374
|
+
} = n, { t: f } = k(), { control: v, trigger: N, clearErrors: x } = d || {}, w = ne(c), [B, $] = L(a);
|
|
3374
3375
|
return M(() => {
|
|
3375
|
-
d &&
|
|
3376
|
-
}, [
|
|
3376
|
+
d && w.current !== c && (c ? N(i) : x(i), w.current = c);
|
|
3377
|
+
}, [c, i, N, x, d]), d ? /* @__PURE__ */ s(
|
|
3377
3378
|
Ne,
|
|
3378
3379
|
{
|
|
3379
|
-
name:
|
|
3380
|
-
control:
|
|
3380
|
+
name: i,
|
|
3381
|
+
control: v,
|
|
3381
3382
|
defaultValue: a,
|
|
3382
3383
|
rules: {
|
|
3383
|
-
required:
|
|
3384
|
+
required: c ? `${f(o)} ${f("errorMessages.required")}` : !1
|
|
3384
3385
|
},
|
|
3385
|
-
render: ({ field:
|
|
3386
|
+
render: ({ field: T, fieldState: j }) => {
|
|
3386
3387
|
var de;
|
|
3387
3388
|
return /* @__PURE__ */ p(
|
|
3388
3389
|
"div",
|
|
3389
3390
|
{
|
|
3390
|
-
className:
|
|
3391
|
-
style: { gridTemplateColumns: `${
|
|
3391
|
+
className: D.rankingSliderContainer,
|
|
3392
|
+
style: { gridTemplateColumns: `${m} ${g}` },
|
|
3392
3393
|
children: [
|
|
3393
|
-
o && /* @__PURE__ */
|
|
3394
|
-
/* @__PURE__ */ p("div", { className:
|
|
3395
|
-
/* @__PURE__ */
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
"div",
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
),
|
|
3418
|
-
trackClassName: S.track,
|
|
3419
|
-
markClassName: S.mark,
|
|
3420
|
-
disabled: f
|
|
3421
|
-
}
|
|
3422
|
-
),
|
|
3423
|
-
/* @__PURE__ */ i("div", { className: S.labels, children: w.map((I) => /* @__PURE__ */ i("span", { children: I }, I)) }),
|
|
3424
|
-
/* @__PURE__ */ p("div", { className: S.labels, children: [
|
|
3425
|
-
/* @__PURE__ */ i("span", { className: S.labelsText, children: m(y) }),
|
|
3426
|
-
/* @__PURE__ */ i("span", { className: S.labelsText, children: m(h) })
|
|
3427
|
-
] })
|
|
3394
|
+
o && /* @__PURE__ */ s("p", { className: D.labelContainer, children: f(o) }),
|
|
3395
|
+
/* @__PURE__ */ p("div", { className: D.inputContainer, children: [
|
|
3396
|
+
_ && /* @__PURE__ */ s("div", { className: D.minLabel, children: f(_) }),
|
|
3397
|
+
/* @__PURE__ */ p("div", { children: [
|
|
3398
|
+
/* @__PURE__ */ s(
|
|
3399
|
+
qe,
|
|
3400
|
+
{
|
|
3401
|
+
min: t,
|
|
3402
|
+
max: r,
|
|
3403
|
+
step: 1,
|
|
3404
|
+
value: T.value ?? a,
|
|
3405
|
+
onChange: (q) => T.onChange(q),
|
|
3406
|
+
marks: !0,
|
|
3407
|
+
className: D.slider,
|
|
3408
|
+
thumbClassName: D.thumb,
|
|
3409
|
+
renderThumb: (q) => /* @__PURE__ */ s("div", { ...q, style: { ...q.style, backgroundColor: l } }),
|
|
3410
|
+
trackClassName: D.track,
|
|
3411
|
+
markClassName: D.mark,
|
|
3412
|
+
disabled: h
|
|
3413
|
+
}
|
|
3414
|
+
),
|
|
3415
|
+
b && /* @__PURE__ */ s("div", { className: D.labels, children: b.map((q) => /* @__PURE__ */ s("span", { children: C && q }, q)) })
|
|
3416
|
+
] }),
|
|
3417
|
+
y && /* @__PURE__ */ s("div", { className: D.maxLabel, children: f(y) })
|
|
3428
3418
|
] }),
|
|
3429
|
-
/* @__PURE__ */
|
|
3419
|
+
/* @__PURE__ */ s(
|
|
3430
3420
|
fe,
|
|
3431
3421
|
{
|
|
3432
|
-
errorMessage: (de =
|
|
3433
|
-
errorColor:
|
|
3422
|
+
errorMessage: (de = j.error) == null ? void 0 : de.message,
|
|
3423
|
+
errorColor: u
|
|
3434
3424
|
}
|
|
3435
3425
|
)
|
|
3436
3426
|
]
|
|
@@ -3441,43 +3431,32 @@ const Ne = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
|
|
|
3441
3431
|
) : /* @__PURE__ */ p(
|
|
3442
3432
|
"div",
|
|
3443
3433
|
{
|
|
3444
|
-
className:
|
|
3445
|
-
style: { gridTemplateColumns: `${
|
|
3434
|
+
className: D.rankingSliderContainer,
|
|
3435
|
+
style: { gridTemplateColumns: `${m} ${g}` },
|
|
3446
3436
|
children: [
|
|
3447
|
-
o && /* @__PURE__ */
|
|
3448
|
-
/* @__PURE__ */ p("div", { className:
|
|
3449
|
-
/* @__PURE__ */
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
"div",
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
}
|
|
3471
|
-
),
|
|
3472
|
-
trackClassName: S.track,
|
|
3473
|
-
markClassName: S.mark
|
|
3474
|
-
}
|
|
3475
|
-
),
|
|
3476
|
-
/* @__PURE__ */ i("div", { className: S.labels, children: w.map((D) => /* @__PURE__ */ i("span", { children: D }, D)) }),
|
|
3477
|
-
/* @__PURE__ */ p("div", { className: S.labels, children: [
|
|
3478
|
-
/* @__PURE__ */ i("span", { className: S.labelsText, children: m(y) }),
|
|
3479
|
-
/* @__PURE__ */ i("span", { className: S.labelsText, children: m(h) })
|
|
3480
|
-
] })
|
|
3437
|
+
o && /* @__PURE__ */ s("p", { className: D.labelContainer, children: f(o) }),
|
|
3438
|
+
/* @__PURE__ */ p("div", { className: D.inputContainer, children: [
|
|
3439
|
+
_ && /* @__PURE__ */ s("div", { className: D.minLabel, children: f(_) }),
|
|
3440
|
+
/* @__PURE__ */ p("div", { children: [
|
|
3441
|
+
/* @__PURE__ */ s(
|
|
3442
|
+
qe,
|
|
3443
|
+
{
|
|
3444
|
+
min: t,
|
|
3445
|
+
max: r,
|
|
3446
|
+
step: 1,
|
|
3447
|
+
value: B,
|
|
3448
|
+
onChange: (T) => $(T),
|
|
3449
|
+
marks: !0,
|
|
3450
|
+
className: D.slider,
|
|
3451
|
+
thumbClassName: D.thumb,
|
|
3452
|
+
renderThumb: (T) => /* @__PURE__ */ s("div", { ...T, style: { ...T.style, backgroundColor: l } }),
|
|
3453
|
+
trackClassName: D.track,
|
|
3454
|
+
markClassName: D.mark
|
|
3455
|
+
}
|
|
3456
|
+
),
|
|
3457
|
+
b && /* @__PURE__ */ s("div", { className: D.labels, children: b.map((T) => /* @__PURE__ */ s("span", { children: C && T }, T)) })
|
|
3458
|
+
] }),
|
|
3459
|
+
y && /* @__PURE__ */ s("div", { className: D.maxLabel, children: f(y) })
|
|
3481
3460
|
] })
|
|
3482
3461
|
]
|
|
3483
3462
|
}
|
|
@@ -3491,7 +3470,7 @@ kt.propTypes = {
|
|
|
3491
3470
|
maxValue: e.number,
|
|
3492
3471
|
defValue: e.number,
|
|
3493
3472
|
thumbColor: e.string,
|
|
3494
|
-
trackColors:
|
|
3473
|
+
//trackColors: PropTypes.arrayOf(PropTypes.string),
|
|
3495
3474
|
required: e.bool,
|
|
3496
3475
|
errorColor: e.string,
|
|
3497
3476
|
labelWidth: e.string,
|
|
@@ -3504,109 +3483,109 @@ kt.propTypes = {
|
|
|
3504
3483
|
const Ve = ({
|
|
3505
3484
|
inputs: n,
|
|
3506
3485
|
inputContainerStyles: d,
|
|
3507
|
-
reactHookFormInstance:
|
|
3486
|
+
reactHookFormInstance: i
|
|
3508
3487
|
}) => {
|
|
3509
|
-
const { watch: o } =
|
|
3488
|
+
const { watch: o } = i, t = o(), r = ge(() => n.map((a) => {
|
|
3510
3489
|
const l = typeof a.required == "function" ? a.required(t) : a.required;
|
|
3511
3490
|
return {
|
|
3512
3491
|
...a,
|
|
3513
3492
|
required: l
|
|
3514
3493
|
};
|
|
3515
3494
|
}), [n, t]);
|
|
3516
|
-
return /* @__PURE__ */
|
|
3495
|
+
return /* @__PURE__ */ s("div", { className: ae.inputsContainer, children: r == null ? void 0 : r.map((a, l) => {
|
|
3517
3496
|
const { inputType: c } = a;
|
|
3518
3497
|
switch (c) {
|
|
3519
3498
|
case me.text:
|
|
3520
|
-
return /* @__PURE__ */
|
|
3499
|
+
return /* @__PURE__ */ s(
|
|
3521
3500
|
"div",
|
|
3522
3501
|
{
|
|
3523
3502
|
className: ae.inputContainer,
|
|
3524
3503
|
style: { ...d },
|
|
3525
|
-
children: /* @__PURE__ */
|
|
3504
|
+
children: /* @__PURE__ */ s(
|
|
3526
3505
|
rt,
|
|
3527
3506
|
{
|
|
3528
3507
|
input: a,
|
|
3529
|
-
reactHookFormInstance:
|
|
3508
|
+
reactHookFormInstance: i
|
|
3530
3509
|
}
|
|
3531
3510
|
)
|
|
3532
3511
|
},
|
|
3533
3512
|
`${a.code}${l}`
|
|
3534
3513
|
);
|
|
3535
3514
|
case me.password:
|
|
3536
|
-
return /* @__PURE__ */
|
|
3515
|
+
return /* @__PURE__ */ s(
|
|
3537
3516
|
"div",
|
|
3538
3517
|
{
|
|
3539
3518
|
className: ae.inputContainer,
|
|
3540
3519
|
style: { ...d },
|
|
3541
|
-
children: /* @__PURE__ */
|
|
3520
|
+
children: /* @__PURE__ */ s(
|
|
3542
3521
|
rt,
|
|
3543
3522
|
{
|
|
3544
3523
|
input: a,
|
|
3545
|
-
reactHookFormInstance:
|
|
3524
|
+
reactHookFormInstance: i
|
|
3546
3525
|
}
|
|
3547
3526
|
)
|
|
3548
3527
|
},
|
|
3549
3528
|
`${a.code}${l}`
|
|
3550
3529
|
);
|
|
3551
3530
|
case me.select:
|
|
3552
|
-
return /* @__PURE__ */
|
|
3531
|
+
return /* @__PURE__ */ s(
|
|
3553
3532
|
"div",
|
|
3554
3533
|
{
|
|
3555
3534
|
className: ae.inputContainer,
|
|
3556
3535
|
style: { ...d },
|
|
3557
|
-
children: /* @__PURE__ */
|
|
3558
|
-
|
|
3536
|
+
children: /* @__PURE__ */ s(
|
|
3537
|
+
Ti,
|
|
3559
3538
|
{
|
|
3560
3539
|
input: a,
|
|
3561
|
-
reactHookFormInstance:
|
|
3540
|
+
reactHookFormInstance: i
|
|
3562
3541
|
}
|
|
3563
3542
|
)
|
|
3564
3543
|
},
|
|
3565
3544
|
`${a.code}${l}`
|
|
3566
3545
|
);
|
|
3567
3546
|
case me.radioList:
|
|
3568
|
-
return /* @__PURE__ */
|
|
3547
|
+
return /* @__PURE__ */ s(
|
|
3569
3548
|
"div",
|
|
3570
3549
|
{
|
|
3571
3550
|
className: ae.inputContainer,
|
|
3572
3551
|
style: { ...d },
|
|
3573
|
-
children: /* @__PURE__ */
|
|
3552
|
+
children: /* @__PURE__ */ s(
|
|
3574
3553
|
Ii,
|
|
3575
3554
|
{
|
|
3576
3555
|
input: a,
|
|
3577
|
-
reactHookFormInstance:
|
|
3556
|
+
reactHookFormInstance: i
|
|
3578
3557
|
}
|
|
3579
3558
|
)
|
|
3580
3559
|
},
|
|
3581
3560
|
`${a.code}${l}`
|
|
3582
3561
|
);
|
|
3583
3562
|
case me.rankingSlider:
|
|
3584
|
-
return /* @__PURE__ */
|
|
3563
|
+
return /* @__PURE__ */ s(
|
|
3585
3564
|
"div",
|
|
3586
3565
|
{
|
|
3587
3566
|
className: ae.inputContainer,
|
|
3588
3567
|
style: { ...d },
|
|
3589
|
-
children: /* @__PURE__ */
|
|
3568
|
+
children: /* @__PURE__ */ s(
|
|
3590
3569
|
kt,
|
|
3591
3570
|
{
|
|
3592
3571
|
input: a,
|
|
3593
|
-
reactHookFormInstance:
|
|
3572
|
+
reactHookFormInstance: i
|
|
3594
3573
|
}
|
|
3595
3574
|
)
|
|
3596
3575
|
},
|
|
3597
3576
|
`${a.code}${l}`
|
|
3598
3577
|
);
|
|
3599
3578
|
default:
|
|
3600
|
-
return /* @__PURE__ */
|
|
3579
|
+
return /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s("h4", { children: "Default" }) }, `${a.code}${l}`);
|
|
3601
3580
|
}
|
|
3602
3581
|
}) });
|
|
3603
|
-
},
|
|
3582
|
+
}, Ys = ({
|
|
3604
3583
|
reactHookFormInstance: n,
|
|
3605
3584
|
formObject: d,
|
|
3606
3585
|
//Component with {title, children} as props.
|
|
3607
3586
|
// Used to render a category section in the form.
|
|
3608
3587
|
//If not provided, a default component will be used.
|
|
3609
|
-
CategoryComponent:
|
|
3588
|
+
CategoryComponent: i,
|
|
3610
3589
|
inputContainerStyles: o,
|
|
3611
3590
|
generalError: t,
|
|
3612
3591
|
errorColor: r = "red",
|
|
@@ -3614,39 +3593,39 @@ const Ve = ({
|
|
|
3614
3593
|
submitButtonStyles: l = { width: 325 },
|
|
3615
3594
|
activeCategory: c = null,
|
|
3616
3595
|
// If provided, only the category with this categoryId will be displayed.
|
|
3617
|
-
onSubmit: u = (
|
|
3596
|
+
onSubmit: u = (m) => console.log("Form submitted with data: ", m)
|
|
3618
3597
|
}) => {
|
|
3619
3598
|
const {
|
|
3620
|
-
handleSubmit:
|
|
3621
|
-
control:
|
|
3599
|
+
handleSubmit: m,
|
|
3600
|
+
control: g,
|
|
3622
3601
|
formState: { errors: _ }
|
|
3623
3602
|
} = n, { t: y } = k();
|
|
3624
|
-
return /* @__PURE__ */ p("form", { className: Fe.formContainer, onSubmit:
|
|
3625
|
-
/* @__PURE__ */
|
|
3626
|
-
const { inputs:
|
|
3627
|
-
return h.category ?
|
|
3603
|
+
return /* @__PURE__ */ p("form", { className: Fe.formContainer, onSubmit: m(u), children: [
|
|
3604
|
+
/* @__PURE__ */ s("div", { className: Fe.formObjectContainer, children: d && d.map((h, b) => {
|
|
3605
|
+
const { inputs: C } = h;
|
|
3606
|
+
return h.category ? i ? /* @__PURE__ */ s(
|
|
3628
3607
|
"div",
|
|
3629
3608
|
{
|
|
3630
3609
|
style: {
|
|
3631
3610
|
display: c && h.categoryId !== c ? "none" : "inherit",
|
|
3632
3611
|
width: "100%"
|
|
3633
3612
|
},
|
|
3634
|
-
children: /* @__PURE__ */
|
|
3635
|
-
|
|
3613
|
+
children: /* @__PURE__ */ s(
|
|
3614
|
+
i,
|
|
3636
3615
|
{
|
|
3637
3616
|
title: h.category,
|
|
3638
|
-
children: /* @__PURE__ */
|
|
3617
|
+
children: /* @__PURE__ */ s(
|
|
3639
3618
|
Ve,
|
|
3640
3619
|
{
|
|
3641
|
-
inputs:
|
|
3642
|
-
control:
|
|
3620
|
+
inputs: C,
|
|
3621
|
+
control: g,
|
|
3643
3622
|
inputContainerStyles: o,
|
|
3644
3623
|
errorColor: r,
|
|
3645
3624
|
formInstance: n
|
|
3646
3625
|
}
|
|
3647
3626
|
)
|
|
3648
3627
|
},
|
|
3649
|
-
`${h.category}${
|
|
3628
|
+
`${h.category}${b}`
|
|
3650
3629
|
)
|
|
3651
3630
|
}
|
|
3652
3631
|
) : /* @__PURE__ */ p(
|
|
@@ -3658,12 +3637,12 @@ const Ve = ({
|
|
|
3658
3637
|
flexDirection: "column"
|
|
3659
3638
|
},
|
|
3660
3639
|
children: [
|
|
3661
|
-
/* @__PURE__ */
|
|
3662
|
-
/* @__PURE__ */
|
|
3640
|
+
/* @__PURE__ */ s("h2", { style: { marginBottom: 20 }, children: y(h.category) }),
|
|
3641
|
+
/* @__PURE__ */ s("div", { style: { paddingTop: 50, width: "100%" }, children: /* @__PURE__ */ s(
|
|
3663
3642
|
Ve,
|
|
3664
3643
|
{
|
|
3665
|
-
inputs:
|
|
3666
|
-
control:
|
|
3644
|
+
inputs: C,
|
|
3645
|
+
control: g,
|
|
3667
3646
|
inputContainerStyles: o,
|
|
3668
3647
|
errorColor: r,
|
|
3669
3648
|
reactHookFormInstance: n
|
|
@@ -3671,55 +3650,55 @@ const Ve = ({
|
|
|
3671
3650
|
) })
|
|
3672
3651
|
]
|
|
3673
3652
|
},
|
|
3674
|
-
`${h.category}${
|
|
3675
|
-
) : /* @__PURE__ */
|
|
3653
|
+
`${h.category}${b}`
|
|
3654
|
+
) : /* @__PURE__ */ s("div", { style: { width: "100%" }, children: /* @__PURE__ */ s(
|
|
3676
3655
|
Ve,
|
|
3677
3656
|
{
|
|
3678
3657
|
inputContainerStyles: o,
|
|
3679
|
-
inputs:
|
|
3680
|
-
control:
|
|
3658
|
+
inputs: C,
|
|
3659
|
+
control: g,
|
|
3681
3660
|
errorColor: r,
|
|
3682
3661
|
reactHookFormInstance: n
|
|
3683
3662
|
}
|
|
3684
|
-
) }, `inputKey${
|
|
3663
|
+
) }, `inputKey${b}`);
|
|
3685
3664
|
}) }),
|
|
3686
3665
|
/* @__PURE__ */ p("div", { className: Fe.buttonContainer, children: [
|
|
3687
|
-
/* @__PURE__ */
|
|
3688
|
-
/* @__PURE__ */
|
|
3666
|
+
/* @__PURE__ */ s(we, { containerStyles: l, type: "submit", children: y(a) }),
|
|
3667
|
+
/* @__PURE__ */ s(fe, { errorMessage: t, errorColor: r })
|
|
3689
3668
|
] })
|
|
3690
3669
|
] });
|
|
3691
|
-
},
|
|
3692
|
-
overlay:
|
|
3693
|
-
modal:
|
|
3694
|
-
closeButton:
|
|
3695
|
-
icon:
|
|
3696
|
-
message:
|
|
3697
|
-
submessage:
|
|
3698
|
-
buttonsContainer:
|
|
3699
|
-
buttonWrapper:
|
|
3700
|
-
},
|
|
3670
|
+
}, Hi = "_overlay_mnd4j_2", Ui = "_modal_mnd4j_15", Gi = "_closeButton_mnd4j_29", Wi = "_icon_mnd4j_39", Yi = "_message_mnd4j_45", Qi = "_submessage_mnd4j_51", Xi = "_buttonsContainer_mnd4j_57", Ji = "_buttonWrapper_mnd4j_64", G = {
|
|
3671
|
+
overlay: Hi,
|
|
3672
|
+
modal: Ui,
|
|
3673
|
+
closeButton: Gi,
|
|
3674
|
+
icon: Wi,
|
|
3675
|
+
message: Yi,
|
|
3676
|
+
submessage: Qi,
|
|
3677
|
+
buttonsContainer: Xi,
|
|
3678
|
+
buttonWrapper: Ji
|
|
3679
|
+
}, es = ({
|
|
3701
3680
|
onClose: n,
|
|
3702
3681
|
icon: d,
|
|
3703
|
-
message:
|
|
3682
|
+
message: i,
|
|
3704
3683
|
submessage: o,
|
|
3705
3684
|
buttons: t,
|
|
3706
3685
|
maxHeight: r = "450px",
|
|
3707
3686
|
maxWidth: a = "450px"
|
|
3708
|
-
}) => /* @__PURE__ */
|
|
3687
|
+
}) => /* @__PURE__ */ s("div", { className: G.overlay, children: /* @__PURE__ */ p(
|
|
3709
3688
|
"div",
|
|
3710
3689
|
{
|
|
3711
3690
|
className: G.modal,
|
|
3712
3691
|
style: { maxHeight: r, maxWidth: a },
|
|
3713
3692
|
children: [
|
|
3714
|
-
/* @__PURE__ */
|
|
3715
|
-
d && /* @__PURE__ */
|
|
3716
|
-
/* @__PURE__ */
|
|
3717
|
-
o && /* @__PURE__ */
|
|
3718
|
-
t.length > 0 && /* @__PURE__ */
|
|
3693
|
+
/* @__PURE__ */ s("button", { className: G.closeButton, onClick: n, "aria-label": "Close modal", children: "✕" }),
|
|
3694
|
+
d && /* @__PURE__ */ s("img", { src: d, alt: "icon", className: G.icon }),
|
|
3695
|
+
/* @__PURE__ */ s("p", { className: G.message, children: i }),
|
|
3696
|
+
o && /* @__PURE__ */ s("p", { className: G.submessage, children: o }),
|
|
3697
|
+
t.length > 0 && /* @__PURE__ */ s("div", { className: G.buttonsContainer, children: t.map((l, c) => /* @__PURE__ */ s("div", { className: G.buttonWrapper, children: l }, c)) })
|
|
3719
3698
|
]
|
|
3720
3699
|
}
|
|
3721
3700
|
) });
|
|
3722
|
-
|
|
3701
|
+
es.propTypes = {
|
|
3723
3702
|
/** Función que se ejecuta al clicar la "X" de cierre */
|
|
3724
3703
|
onClose: e.func.isRequired,
|
|
3725
3704
|
/** URL de la imagen opcional que aparece sobre el mensaje */
|
|
@@ -3735,43 +3714,43 @@ ts.propTypes = {
|
|
|
3735
3714
|
/** Anchura máxima del modal (por defecto 400px) */
|
|
3736
3715
|
maxWidth: e.string
|
|
3737
3716
|
};
|
|
3738
|
-
const
|
|
3739
|
-
stepsContainer:
|
|
3740
|
-
stepWrapper:
|
|
3741
|
-
circleContainer:
|
|
3742
|
-
circle:
|
|
3743
|
-
active:
|
|
3744
|
-
completed:
|
|
3745
|
-
label:
|
|
3746
|
-
labelActive:
|
|
3747
|
-
connector:
|
|
3748
|
-
},
|
|
3749
|
-
const t =
|
|
3717
|
+
const ts = "_stepsContainer_1cyua_3", ns = "_stepWrapper_1cyua_9", is = "_circleContainer_1cyua_19", ss = "_circle_1cyua_19", os = "_active_1cyua_39", rs = "_completed_1cyua_44", as = "_label_1cyua_50", ls = "_labelActive_1cyua_56", cs = "_connector_1cyua_61", K = {
|
|
3718
|
+
stepsContainer: ts,
|
|
3719
|
+
stepWrapper: ns,
|
|
3720
|
+
circleContainer: is,
|
|
3721
|
+
circle: ss,
|
|
3722
|
+
active: os,
|
|
3723
|
+
completed: rs,
|
|
3724
|
+
label: as,
|
|
3725
|
+
labelActive: ls,
|
|
3726
|
+
connector: cs
|
|
3727
|
+
}, Bt = ({ steps: n, activeColor: d }) => /* @__PURE__ */ s("div", { className: K.stepsContainer, children: n.map((i, o) => {
|
|
3728
|
+
const t = i.status === "active", r = i.status === "completed";
|
|
3750
3729
|
return /* @__PURE__ */ p("div", { className: K.stepWrapper, children: [
|
|
3751
3730
|
/* @__PURE__ */ p("div", { className: K.circleContainer, children: [
|
|
3752
|
-
/* @__PURE__ */
|
|
3731
|
+
/* @__PURE__ */ s(
|
|
3753
3732
|
"div",
|
|
3754
3733
|
{
|
|
3755
3734
|
className: `${K.circle}
|
|
3756
3735
|
${t ? K.active : ""}
|
|
3757
3736
|
${r ? K.completed : ""}`,
|
|
3758
3737
|
style: t ? { backgroundColor: d } : {},
|
|
3759
|
-
onClick:
|
|
3738
|
+
onClick: i.onClick,
|
|
3760
3739
|
children: o + 1
|
|
3761
3740
|
}
|
|
3762
3741
|
),
|
|
3763
|
-
o < n.length - 1 && /* @__PURE__ */
|
|
3742
|
+
o < n.length - 1 && /* @__PURE__ */ s("div", { className: K.connector })
|
|
3764
3743
|
] }),
|
|
3765
|
-
/* @__PURE__ */
|
|
3744
|
+
/* @__PURE__ */ s(
|
|
3766
3745
|
"div",
|
|
3767
3746
|
{
|
|
3768
3747
|
className: `${K.label} ${t ? K.labelActive : ""}`,
|
|
3769
|
-
children:
|
|
3748
|
+
children: i.name
|
|
3770
3749
|
}
|
|
3771
3750
|
)
|
|
3772
3751
|
] }, o);
|
|
3773
3752
|
}) });
|
|
3774
|
-
|
|
3753
|
+
Bt.propTypes = {
|
|
3775
3754
|
steps: e.arrayOf(
|
|
3776
3755
|
e.shape({
|
|
3777
3756
|
name: e.string.isRequired,
|
|
@@ -3781,47 +3760,47 @@ $t.propTypes = {
|
|
|
3781
3760
|
).isRequired,
|
|
3782
3761
|
activeColor: e.string
|
|
3783
3762
|
};
|
|
3784
|
-
|
|
3763
|
+
Bt.defaultProps = {
|
|
3785
3764
|
activeColor: "#C2185B"
|
|
3786
3765
|
// color por defecto
|
|
3787
3766
|
};
|
|
3788
|
-
const
|
|
3789
|
-
statusTextContainer:
|
|
3790
|
-
},
|
|
3791
|
-
|
|
3767
|
+
const ds = "_statusTextContainer_ch14r_2", us = {
|
|
3768
|
+
statusTextContainer: ds
|
|
3769
|
+
}, $t = ({ text: n, color: d }) => /* @__PURE__ */ s("div", { className: us.statusTextContainer, style: { background: d }, children: /* @__PURE__ */ s("span", { children: n }) });
|
|
3770
|
+
$t.propTypes = {
|
|
3792
3771
|
text: e.string,
|
|
3793
3772
|
color: e.string
|
|
3794
3773
|
};
|
|
3795
|
-
|
|
3774
|
+
$t.defaultProps = {
|
|
3796
3775
|
color: "#C2185B"
|
|
3797
3776
|
// color por defecto
|
|
3798
3777
|
};
|
|
3799
|
-
const
|
|
3800
|
-
buttonsContainer:
|
|
3801
|
-
button:
|
|
3802
|
-
active:
|
|
3803
|
-
},
|
|
3778
|
+
const ps = "_buttonsContainer_1c7dw_2", ms = "_button_1c7dw_2", hs = "_active_1c7dw_20", ve = {
|
|
3779
|
+
buttonsContainer: ps,
|
|
3780
|
+
button: ms,
|
|
3781
|
+
active: hs
|
|
3782
|
+
}, gs = ({
|
|
3804
3783
|
buttons: n = []
|
|
3805
3784
|
}) => {
|
|
3806
3785
|
const { t: d } = k();
|
|
3807
|
-
return /* @__PURE__ */
|
|
3786
|
+
return /* @__PURE__ */ s("div", { className: `${ve.buttonsContainer}`, children: n.map((i, o) => {
|
|
3808
3787
|
const {
|
|
3809
3788
|
isActive: t,
|
|
3810
3789
|
name: r,
|
|
3811
3790
|
onClick: a
|
|
3812
|
-
} =
|
|
3813
|
-
return /* @__PURE__ */
|
|
3791
|
+
} = i;
|
|
3792
|
+
return /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
|
|
3814
3793
|
"button",
|
|
3815
3794
|
{
|
|
3816
3795
|
onClick: a,
|
|
3817
3796
|
className: `${ve.button}
|
|
3818
3797
|
${t && ve.active}`,
|
|
3819
|
-
children: /* @__PURE__ */
|
|
3798
|
+
children: /* @__PURE__ */ s("span", { className: ve.buttonName, children: d(r) })
|
|
3820
3799
|
}
|
|
3821
3800
|
) }, o);
|
|
3822
3801
|
}) });
|
|
3823
3802
|
};
|
|
3824
|
-
|
|
3803
|
+
gs.propTypes = {
|
|
3825
3804
|
buttons: e.arrayOf(
|
|
3826
3805
|
e.shape({
|
|
3827
3806
|
isActive: e.bool,
|
|
@@ -3831,16 +3810,16 @@ Cs.propTypes = {
|
|
|
3831
3810
|
})
|
|
3832
3811
|
).isRequired
|
|
3833
3812
|
};
|
|
3834
|
-
const
|
|
3835
|
-
header:
|
|
3836
|
-
leftComponents:
|
|
3837
|
-
centerComponents:
|
|
3838
|
-
rightComponents:
|
|
3839
|
-
componentsContainer:
|
|
3840
|
-
},
|
|
3813
|
+
const Cs = "_header_13kbt_2", fs = "_leftComponents_13kbt_13", bs = "_centerComponents_13kbt_14", _s = "_rightComponents_13kbt_15", ys = "_componentsContainer_13kbt_32", ee = {
|
|
3814
|
+
header: Cs,
|
|
3815
|
+
leftComponents: fs,
|
|
3816
|
+
centerComponents: bs,
|
|
3817
|
+
rightComponents: _s,
|
|
3818
|
+
componentsContainer: ys
|
|
3819
|
+
}, vs = ({
|
|
3841
3820
|
cssProps: n,
|
|
3842
3821
|
leftComponents: d = [],
|
|
3843
|
-
centerComponents:
|
|
3822
|
+
centerComponents: i = [],
|
|
3844
3823
|
rightComponents: o = [],
|
|
3845
3824
|
zIndex: t = 10,
|
|
3846
3825
|
height: r = 60,
|
|
@@ -3860,13 +3839,13 @@ const fs = "_header_13kbt_2", bs = "_leftComponents_13kbt_13", _s = "_centerComp
|
|
|
3860
3839
|
bottom: l ? 0 : "auto"
|
|
3861
3840
|
},
|
|
3862
3841
|
children: [
|
|
3863
|
-
/* @__PURE__ */
|
|
3864
|
-
/* @__PURE__ */
|
|
3865
|
-
/* @__PURE__ */
|
|
3842
|
+
/* @__PURE__ */ s("div", { className: ee.leftComponents, children: d.map((c, u) => /* @__PURE__ */ s("div", { className: ee.componentsContainer, children: c }, u)) }),
|
|
3843
|
+
/* @__PURE__ */ s("div", { className: ee.centerComponents, children: i.map((c, u) => /* @__PURE__ */ s("div", { className: ee.componentsContainer, children: c }, u)) }),
|
|
3844
|
+
/* @__PURE__ */ s("div", { className: ee.rightComponents, children: o.map((c, u) => /* @__PURE__ */ s("div", { className: ee.componentsContainer, children: c }, u)) })
|
|
3866
3845
|
]
|
|
3867
3846
|
}
|
|
3868
3847
|
);
|
|
3869
|
-
|
|
3848
|
+
vs.propTypes = {
|
|
3870
3849
|
leftComponents: e.arrayOf(e.node),
|
|
3871
3850
|
centerComponents: e.arrayOf(e.node),
|
|
3872
3851
|
rightComponents: e.arrayOf(e.node),
|
|
@@ -3876,33 +3855,33 @@ xs.propTypes = {
|
|
|
3876
3855
|
backgroundColor: e.string,
|
|
3877
3856
|
isFooter: e.bool
|
|
3878
3857
|
};
|
|
3879
|
-
const
|
|
3880
|
-
sidebar:
|
|
3881
|
-
open:
|
|
3882
|
-
content:
|
|
3883
|
-
closeButton:
|
|
3884
|
-
}, Bs = "data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%203699'%3e%3cpath%20id='Vector%20223'%20d='M1%201L18.1566%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20id='Vector%20224'%20d='M18.1575%201L1.00083%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e",
|
|
3858
|
+
const xs = "_sidebar_1fmjn_2", ws = "_open_1fmjn_16", Ns = "_content_1fmjn_20", ks = "_closeButton_1fmjn_26", xe = {
|
|
3859
|
+
sidebar: xs,
|
|
3860
|
+
open: ws,
|
|
3861
|
+
content: Ns,
|
|
3862
|
+
closeButton: ks
|
|
3863
|
+
}, Bs = "data:image/svg+xml,%3csvg%20width='19'%20height='19'%20viewBox='0%200%2019%2019'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%203699'%3e%3cpath%20id='Vector%20223'%20d='M1%201L18.1566%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20id='Vector%20224'%20d='M18.1575%201L1.00083%2018.1566'%20stroke='%23605B56'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/g%3e%3c/svg%3e", $s = ({
|
|
3885
3864
|
width: n = "300px",
|
|
3886
3865
|
children: d,
|
|
3887
|
-
showRightBar:
|
|
3866
|
+
showRightBar: i,
|
|
3888
3867
|
onCloseBar: o
|
|
3889
3868
|
}) => {
|
|
3890
3869
|
const t = () => {
|
|
3891
3870
|
o();
|
|
3892
3871
|
};
|
|
3893
|
-
return /* @__PURE__ */
|
|
3872
|
+
return /* @__PURE__ */ s(
|
|
3894
3873
|
"div",
|
|
3895
3874
|
{
|
|
3896
|
-
className: `${xe.sidebar} ${
|
|
3897
|
-
style: { width:
|
|
3898
|
-
children:
|
|
3899
|
-
/* @__PURE__ */
|
|
3875
|
+
className: `${xe.sidebar} ${i ? xe.open : ""}`,
|
|
3876
|
+
style: { width: i ? n : 0 },
|
|
3877
|
+
children: i && /* @__PURE__ */ p("div", { className: xe.content, children: [
|
|
3878
|
+
/* @__PURE__ */ s("button", { className: xe.closeButton, onClick: t, children: /* @__PURE__ */ s("img", { src: Bs, alt: "Close Sidebar" }) }),
|
|
3900
3879
|
d
|
|
3901
3880
|
] })
|
|
3902
3881
|
}
|
|
3903
3882
|
);
|
|
3904
3883
|
};
|
|
3905
|
-
|
|
3884
|
+
$s.propTypes = {
|
|
3906
3885
|
width: e.string,
|
|
3907
3886
|
children: e.node,
|
|
3908
3887
|
showRightBar: e.bool,
|
|
@@ -3910,32 +3889,32 @@ Ss.propTypes = {
|
|
|
3910
3889
|
};
|
|
3911
3890
|
export {
|
|
3912
3891
|
b2 as AmbitSelector,
|
|
3913
|
-
|
|
3914
|
-
|
|
3892
|
+
gs as ButtonsBar,
|
|
3893
|
+
T2 as ButtonsList,
|
|
3915
3894
|
ie as DropdownList,
|
|
3916
|
-
|
|
3895
|
+
Ks as EditAmbit,
|
|
3917
3896
|
fe as ErrorMessage,
|
|
3918
3897
|
t0 as FiltersAmbit,
|
|
3919
|
-
|
|
3898
|
+
Ys as Form,
|
|
3920
3899
|
we as GeneralButton,
|
|
3921
3900
|
r0 as Graphic,
|
|
3922
|
-
|
|
3901
|
+
vs as HeaderSection,
|
|
3923
3902
|
N0 as IndicatorsList,
|
|
3924
|
-
|
|
3903
|
+
T0 as LangSelector,
|
|
3925
3904
|
H0 as Legend,
|
|
3926
3905
|
Yn as ListSelector,
|
|
3927
|
-
|
|
3906
|
+
Bn as LogInButton,
|
|
3928
3907
|
G0 as LogoApp,
|
|
3929
3908
|
Q0 as MapboxMap,
|
|
3930
3909
|
sn as MaplibreMap,
|
|
3931
|
-
|
|
3910
|
+
es as ModalAlert,
|
|
3932
3911
|
Ii as RadioButtonInput,
|
|
3933
3912
|
kt as RankingSlider,
|
|
3934
|
-
|
|
3913
|
+
$s as RightSidebar,
|
|
3935
3914
|
un as SectionBar,
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3915
|
+
Ti as SelectInput,
|
|
3916
|
+
$t as StatusText,
|
|
3917
|
+
Bt as Steps,
|
|
3939
3918
|
rt as TextInput,
|
|
3940
3919
|
_n as TimeSlider,
|
|
3941
3920
|
te as Tooltip,
|