@tmf_ciclica/ciclicastorybook 1.1.164 → 1.1.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +589 -584
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";@import"https://unpkg.com/maplibre-gl@^5.3.0/dist/maplibre-gl.css";@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap";._ambitSelector_mcunf_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;height:100%;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39{font-size:18px;font-weight:600;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53{font-size:18px;font-weight:600;flex:.5}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._buttonsContainer_mcunf_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._ambitListContainer_mcunf_76{flex:1;width:100%}._ambitSelector_mcunf_2 ._newAmbitButtonContainer_mcunf_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px}._ambitItem_1qa6u_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:10px;width:100%;padding-bottom:30px;padding-top:30px}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitName_1qa6u_16{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;flex:1}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitDate_1qa6u_35{flex:.5}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38 button:disabled{opacity:.5;cursor:default}._generalButton_phq4n_2{padding:5px 95px;border-radius:100px}._generalButton_phq4n_2:disabled{opacity:.6}._buttonsContainer_1ks7x_2{display:flex;gap:8px}._buttonsContainer_1ks7x_2._vertical_1ks7x_6{flex-direction:column}._buttonsContainer_1ks7x_2._horizontal_1ks7x_9{flex-direction:row}._button_1ks7x_2{background:transparent;border:none;display:flex;align-items:center;cursor:pointer;padding:4px;position:relative}._button_1ks7x_2:hover{opacity:.8}._button_1ks7x_2._active_1ks7x_25{font-weight:700}._button_1ks7x_2 ._buttonName_1ks7x_28{margin:0 4px}._button_1ks7x_2:disabled{opacity:.5!important;cursor:auto}._left_1l4m4_2{position:absolute;width:auto;bottom:50%;right:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000}._left_1l4m4_2:before{content:"";position:absolute;top:50%;left:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent transparent #ccc;z-index:-2}._left_1l4m4_2:after{content:"";position:absolute;top:50%;left:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent transparent #fff;z-index:-1}._top_1l4m4_40{position:absolute;width:auto;bottom:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._top_1l4m4_40:before{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:#ccc transparent transparent transparent;z-index:-2}._top_1l4m4_40:after{content:"";position:absolute;top:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:#fff transparent transparent transparent;z-index:-1}._bottom_1l4m4_79{position:absolute;width:auto;top:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._bottom_1l4m4_79:before{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent #ccc transparent;z-index:-2}._bottom_1l4m4_79:after{content:"";position:absolute;bottom:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent #fff transparent;z-index:-1}._right_1l4m4_118{position:absolute;width:auto;bottom:50%;left:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:20px;margin:0;white-space:nowrap;color:#000;z-index:10}._right_1l4m4_118:before{content:"";position:absolute;top:50%;right:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent #ccc transparent transparent;z-index:-2}._right_1l4m4_118:after{content:"";position:absolute;top:50%;right:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent #fff transparent transparent;z-index:-1}._AppliedFiltersContainer_cokx9_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start;flex-wrap:wrap}._AppliedFiltersContainer_cokx9_2 ._AppliedFilterContent_cokx9_11{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:row;align-items:center;font-size:16px;font-weight:400;height:35px;width:fit-content;padding:0 20px;border-radius:100px}._GeographicalFilters_1ikqs_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start}._GeographicalFilters_1ikqs_2 ._AppliedFilterContent_1ikqs_10{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:row;align-items:center;font-size:16px;font-weight:400;height:35px;width:fit-content;padding:0 20px;border-radius:100px}._layerName_1ikqs_25{color:#00f}._layerName_1ikqs_25._layerActive_1ikqs_28{color:red}._checkboxContainer_zld97_2{display:flex;align-items:center;gap:.5rem;font-size:14px;font-weight:400;cursor:pointer}._checkboxContainer_zld97_2 input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:10px;height:10px;border-radius:1px;background-color:#fff;cursor:pointer}._container_4u41i_2,._container_4u41i_2 span{font-size:14px}._container_4u41i_2 ._unitLabel_4u41i_8{height:40px}._container_4u41i_2 ._slider_4u41i_11{height:6px;background-color:#ddd;border-radius:3px;position:relative}._container_4u41i_2 ._thumb_4u41i_17{height:20px;width:20px;background-color:#605b56;border-radius:50%;cursor:grab;top:-7px;position:absolute}._container_4u41i_2 ._track_4u41i_26{top:0;bottom:0;background:#605b56;border-radius:3px}._container_4u41i_2 ._labels_4u41i_32{display:flex;justify-content:space-between;font-size:14px;margin-top:10px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px;padding-bottom:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 label,._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input{cursor:pointer;font-size:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input[type=radio]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background-color:#fff;transition:background-color .2s ease;cursor:pointer;vertical-align:middle}._tematicalFiltersInputContainer_1vm1r_2 ._checkboxContainer_1vm1r_28{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px}._tematicalFiltersInputContainer_1vm1r_2 ._absoluteSliderContainer_1vm1r_37{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:flex-start}._FiltersAmbitContainer_1g9xx_2{width:100%;height:100%;padding:28.5px 0 0 24px}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7{display:flex;flex-wrap:nowrap;justify-content:start;gap:30px;flex-direction:column;align-items:start}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitTitle_1g9xx_15{font-size:18px;font-weight:600;padding:0 0 26px;border-bottom:1.5px solid #605B56;width:100%}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitDescription_1g9xx_22{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:column;align-items:start;padding:0 0 26px;font-size:16px;font-weight:400}._FiltersAmbitContainer_1g9xx_2 ._FiltersAmbitHeader_1g9xx_7 ._FiltersAmbitDescription_1g9xx_22 ._FiltersAmbitDescriptionTitle_1g9xx_33{font-size:18px;font-weight:600}._FiltersAmbitContainer_1g9xx_2 ._warning_1g9xx_37{color:red}._barChartContainer_d2f1z_2{height:100%;width:100%;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._graphicContainer_c9zrg_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;width:100%;border:1.5px solid black;padding:33px 50px;border-radius:20px}._graphicContainer_c9zrg_2 ._titleContainer_c9zrg_14{display:flex;flex-wrap:nowrap;gap:0;flex-direction:row;align-items:center;justify-content:center;margin-bottom:83px}._indicatorsCategory_1cu33_2{overflow:hidden}._indicatorsCategory_1cu33_2 ._title_1cu33_5{align-items:center;gap:10px;cursor:pointer;margin-bottom:25px}._indicatorsCategory_1cu33_2 ._list_1cu33_11{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._indicatorContainer_1go6h_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:center;gap:10px}._indicatorContainer_1go6h_2 ._indicatorNameContainer_1go6h_11{gap:10px;display:grid;grid-template-columns:15px auto;align-items:center}._indicatorContainer_1go6h_2 ._dot_1go6h_17{border-radius:100px;width:16px;height:16px}._indicatorContainer_1go6h_2 ._indicatorName_1go6h_11{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_1go6h_28{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:20px 0 0}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37{margin:0;width:100%}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:10px;cursor:pointer}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52 ._customRadious_1go6h_62{width:16px;height:16px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_1go6h_28 ._switchType_1go6h_37 ._switchTypeOptions_1go6h_41 ._optionContainer_1go6h_52 ._optionText_1go6h_69{font-weight:400}._indicatorsSubCategory_1dzsi_2{overflow:hidden}._indicatorsSubCategory_1dzsi_2 h3{text-align:left}._indicatorsSubCategory_1dzsi_2 ._list_1dzsi_8{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:start;margin:20px 0;gap:20px}._indicatorsList_fklyu_2{width:100%;padding-left:30px}._indicatorsList_fklyu_2 ._title_fklyu_6{border-bottom:1px solid;padding-bottom:25px;margin-bottom:32px}._langSelector_o9enq_2{position:relative;width:fit-content;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;height:100%}._currentLang_o9enq_14{color:#404040;cursor:pointer;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:5px;text-transform:capitalize}._currentLang_o9enq_14 ._arrow_o9enq_26{width:10px}._currentLang_o9enq_14 ._prevImg_o9enq_29{width:20px}._langMenu_o9enq_33{position:absolute;width:80px;background:#000!important;border-radius:8px}._langMenu_o9enq_33 button{cursor:pointer;background:#000!important;color:#ccc;width:100%;padding:4px 8px;text-align:left}._langMenu_o9enq_33 button:first-child{border-radius:8px 8px 0 0}._langMenu_o9enq_33 button:last-child{border-radius:0 0 8px 8px}._langMenu_o9enq_33 button:hover{color:#cbcbcb;background-color:#fafafa!important}._legendContainer_qs4x9_3{width:402px;background-color:#fdfdfd;color:#605b56;border:solid 1.5px #605b56;border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:flexStart;padding:20px;position:relative;overflow-y:scroll}._legendContainer_qs4x9_3::-webkit-scrollbar{width:8px}._legendContainer_qs4x9_3::-webkit-scrollbar-track{background:transparent;margin:5px 0}._legendContainer_qs4x9_3::-webkit-scrollbar-thumb{background-color:#ebebeb;border-radius:20px}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31{position:absolute;right:20px;top:20px;width:24px;height:24px;border:none;background:transparent;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:before,._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:after{content:"";position:absolute;width:16px;height:2px;background-color:#333}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:before{transform:rotate(45deg)}._legendContainer_qs4x9_3 ._closeButton_qs4x9_31:after{transform:rotate(-45deg)}._legendContainer_qs4x9_3 ._titleContainer_qs4x9_59{border-bottom:solid 1.5px #605b56}._legendContainer_qs4x9_3 ._titleContainer_qs4x9_59 h2{padding-bottom:16px}._legendContainer_qs4x9_3 ._infoContainer_qs4x9_65{padding-top:20px}._legendContainer_qs4x9_3 ._infoContainer_qs4x9_65 ul li{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:row;align-items:center}._legendContainer_qs4x9_3 ._titleLegendList_qs4x9_76{font-size:20px;padding-bottom:20px;margin-bottom:20px;border-bottom:solid 1.5px #605b56}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._gridContainer_qs4x9_82{display:grid;grid-template-columns:auto;column-gap:20px;row-gap:15px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._gridContainer_qs4x9_82 ._elementLegendContainer_qs4x9_88{display:grid;grid-template-columns:23px auto;align-items:center;gap:5px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._gridContainer_qs4x9_82 ._elementLegendContainer_qs4x9_88 ._colorDot_qs4x9_94{width:22px;height:22px;border-radius:50%;margin-right:10px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._absoluteValueContainer_qs4x9_100{position:relative}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._absoluteValueContainer_qs4x9_100 ._absoluteValueColor_qs4x9_103{height:130px;width:22px;border-radius:20px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._absoluteValueContainer_qs4x9_100 ._absoluteValueText_qs4x9_108{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:flex-start;position:absolute;left:30px;top:0;height:100%}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._noDataContainer_qs4x9_120{position:relative;margin-top:10px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._noDataContainer_qs4x9_120 ._noData_qs4x9_120{height:22px;width:22px;border-radius:20px}._legendContainer_qs4x9_3 ._legendListContainer_qs4x9_82 ._noDataContainer_qs4x9_120 ._absoluteValueText_qs4x9_108{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:flex-start;position:absolute;left:30px;top:0;height:100%}._legendContainer_qs4x9_3 ._moreInfoContainer_qs4x9_141{margin-top:30px;padding:8.5px 20px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;border:1.5px solid #605b56;border-radius:25px;font-size:16px;font-weight:600}._logo_1ewa6_2{padding:10px;height:100%}._logo_1ewa6_2 img{height:100%}._mapContainer_84pkf_2{width:100vw;height:100vh}._mapContainer_b0pyr_3{width:100vw;height:100vh;position:absolute;top:0;z-index:0}._FeaturePopUp_mt8l5_2{padding:15px;color:#92898a}._FeaturePopUp_mt8l5_2 p{margin-bottom:10px}._FeaturePopUp_mt8l5_2 ._title_mt8l5_9{font-weight:600;margin-right:5px;color:#92898a}._sectionBar_1egwc_2{height:70px;width:100%;background-color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid black;transition:width .3s ease}._leftContent_1egwc_14{display:flex;align-items:center;gap:12px}._textContainer_1egwc_20{display:flex;flex-direction:row;align-items:center;gap:8px}._title_1egwc_27{font-size:16px;font-weight:600;color:#000}._subtitle_1egwc_33{font-size:16px;color:#000}._rightContent_1egwc_38{display:flex;align-items:center;gap:8px}._slider_1prh1_2{padding:5px 20px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;transition:all .5s ease-out}._slider_1prh1_2 ._playButton_1prh1_14,._slider_1prh1_2 ._playButton_1prh1_14._hover_1prh1_17{background-color:transparent!important}._slider_1prh1_2 ._playButton_1prh1_14 img{height:30px;width:30px}._sliderOpen_1prh1_25{right:490px}._sliderResults_1prh1_29{position:absolute;top:75px;right:430px;padding:5px 20px;border:1px solid;border-radius:10px;display:flex;gap:20px;color:#605b56;justify-content:center;align-items:center;background-color:#fff;transition:all .5s ease-out}._sliderResults_1prh1_29 ._playButton_1prh1_14,._sliderResults_1prh1_29 ._playButton_1prh1_14._hover_1prh1_17{background-color:transparent!important}._sliderResults_1prh1_29 ._playButton_1prh1_14 img{height:30px;width:30px}._TopNavMenuContainer_12mp4_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:fit-content;gap:80px;height:100%}._TopNavMenuContainer_12mp4_2 ._topNavOptions_12mp4_13{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer;padding:0 10px;text-align:center;border-bottom:5px solid transparent;border-top:5px solid transparent;height:100%}._TopNavMenuContainer_12mp4_2 ._active_12mp4_27{border-bottom:5px solid white}._LogInButton_1vxj5_2{height:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center}._elementSelector_1qdhv_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;height:100%;flex:1}._elementSelector_1qdhv_2 ._header_1qdhv_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._elementSelector_1qdhv_2 ._header_1qdhv_13 ._nameDateContainer_1qdhv_23{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._elementSelector_1qdhv_2 ._header_1qdhv_13 ._nameDateContainer_1qdhv_23 ._elementName_1qdhv_39{font-size:18px;font-weight:600;flex:1}._elementSelector_1qdhv_2 ._header_1qdhv_13 ._nameDateContainer_1qdhv_23 ._elementName_1qdhv_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1qdhv_2 ._header_1qdhv_13 ._nameDateContainer_1qdhv_23 ._elementDate_1qdhv_53{font-size:18px;font-weight:600;flex:.5}._elementSelector_1qdhv_2 ._header_1qdhv_13 ._nameDateContainer_1qdhv_23 ._elementDate_1qdhv_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1qdhv_2 ._header_1qdhv_13 ._buttonsContainer_1qdhv_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._elementSelector_1qdhv_2 ._elementListContainer_1qdhv_76{flex:1;width:100%}._elementSelector_1qdhv_2 ._newElementButtonContainer_1qdhv_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px;padding-top:50px}._listElement_1s506_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:5px;width:100%;padding-bottom:30px;padding-top:30px;flex-wrap:wrap}._listElement_1s506_2 ._elementNameDate_1s506_17{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementNameContainer_1s506_27{flex:1;display:flex;flex-direction:column;align-items:flex-start;position:relative}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementName_1s506_17{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._listElement_1s506_2 ._elementNameDate_1s506_17 ._elementDate_1s506_42{flex:.5}._listElement_1s506_2 ._elementButtons_1s506_45{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._listElement_1s506_2 ._elementButtons_1s506_45 button:disabled{opacity:.5;cursor:default}._listElement_1s506_2 ._elementButtons_1s506_45 img{display:inline}._break_1s506_63{flex-basis:100%;height:0}._moreInfoContainer_1s506_68 ._moreInfo_1s506_68{display:flex;gap:5px;cursor:pointer}._formContainer_asv64_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start;flex-direction:column}._formContainer_asv64_2 ._categorySelectorContainer_asv64_11{margin-bottom:5px;width:100%}._formContainer_asv64_2 ._formObjectContainer_asv64_15{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:column;align-items:center;flex:1;width:100%;gap:80px}._formContainer_asv64_2 ._buttonContainer_asv64_26{width:100%;margin-top:30px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;gap:20px}._textInputContainer_1o3iy_2{width:100%}._textInputContainer_1o3iy_2 ._labelContainer_1o3iy_5{margin-bottom:25px}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8{background-color:#605b5620;padding:7px;border-radius:4px;position:relative}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 ._showPasswordButton_1o3iy_14{position:absolute;right:15px;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer}._textInputContainer_1o3iy_2 ._inputContainer_1o3iy_8 input{width:100%}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26{margin-top:10px;cursor:pointer}._textInputContainer_1o3iy_2 ._forgotPassButton_1o3iy_26 button{text-decoration:underline}._errorMessage_1xiyb_2{min-height:25px}._inputsContainer_10t9s_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;gap:30px}._selectInputContainer_1rj0h_2{width:100%;position:relative}._selectInputContainer_1rj0h_2 ._labelContainer_1rj0h_6{margin-bottom:25px}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9{position:relative}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._selectInput_1rj0h_2{appearance:none;-webkit-appearance:none;-moz-appearance:none;width:100%;padding:9px 40px 9px 9px;border:1.5px solid #605b56;border-radius:4px;cursor:pointer}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._selectInput_1rj0h_2 ._option_1rj0h_23{cursor:pointer}._selectInputContainer_1rj0h_2 ._inputContainer_1rj0h_9 ._dropdownArrow_1rj0h_26{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:16px;height:16px;pointer-events:none}._radioButtonContainer_1e994_2{width:100%}._radioButtonContainer_1e994_2 ._wholeInputContainer_1e994_5{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;width:100%;flex-wrap:wrap;position:relative;gap:15px}@media (width < 768px){._radioButtonContainer_1e994_2 ._wholeInputContainer_1e994_5{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:flex-start}}._radioButtonContainer_1e994_2 ._questionContainer_1e994_27{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;align-self:flex-start;position:relative}@media (width < 768px){._radioButtonContainer_1e994_2 ._questionContainer_1e994_27{min-width:auto;max-width:215px}}._radioButtonContainer_1e994_2 ._errorContainer_1e994_44{position:absolute;top:-25px;left:0}._radioButtonContainer_1e994_2 ._iconPrivacy_1e994_49{height:100%;padding-right:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._radioButtonContainer_1e994_2 ._radioQuestion_1e994_59{width:100%;flex:1}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;gap:10px;position:relative;height:100%}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63 label{text-align:left}._radioButtonContainer_1e994_2 ._inputContainer_1e994_63 label input{margin-right:5px}@media (width < 768px){._radioButtonContainer_1e994_2 ._inputContainer_1e994_63{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;flex:1}}label,._radioInput_1e994_93{cursor:pointer}._rankingSliderContainer_1lekm_2{display:grid;width:100%}._rankingSliderContainer_1lekm_2 ._labelContainer_1lekm_6{margin-bottom:25px;color:#605b56}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10{width:100%;position:relative;display:flex;gap:14px;align-items:center;flex-wrap:nowrap;justify-content:center;height:48px}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._slider_1lekm_20{height:3px;background:#efefef;border-radius:3px;position:relative;min-width:250px}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._thumb_1lekm_27{height:15px;width:15px;border-radius:50%;cursor:grab;top:-100%;transform:translateY(-20%);outline:none}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._labels_1lekm_37{display:flex;justify-content:space-between;margin-top:8px;font-size:14px;color:#444}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._labels_1lekm_37 span{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:10px;height:20px;position:relative}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._labels_1lekm_37 span:before{content:"";background:#efefef;width:10px;height:10px;position:absolute;top:-14.5px;border-radius:50%}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._labels_1lekm_37 ._labelsText_1lekm_64{color:#605b56}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._minLabel_1lekm_67,._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._maxLabel_1lekm_67{align-self:baseline;padding-top:10px;color:#605b56;font-size:12px;white-space:nowrap;margin-top:-7px}._rankingSliderContainer_1lekm_2 ._inputContainer_1lekm_10 ._minLabel_1lekm_67{text-align:right}._categorySelector_9bdf4_2{min-height:50px;width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:10px;background-color:#efefef;border-radius:10px;padding:5px}._categorySelector_9bdf4_2 ._sectionItemActive_9bdf4_16{color:#fff}._categorySelector_9bdf4_2 ._sectionItem_9bdf4_16{border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;padding:5px;width:120px;height:100%}._overlay_mnd4j_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9999}._modal_mnd4j_15{background:#fff;border-radius:12px;position:relative;padding:24px 32px;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 20px #0003;overflow:hidden;min-width:300px}._closeButton_mnd4j_29{position:absolute;top:3px;right:8px;background:transparent;border:none;font-size:20px;cursor:pointer}._icon_mnd4j_39{width:60px;height:60px;margin-bottom:16px}._message_mnd4j_45{font-size:18px;font-weight:700;margin-bottom:8px}._submessage_mnd4j_51{font-size:14px;color:#666;margin-bottom:20px}._buttonsContainer_mnd4j_57{display:flex;gap:12px;justify-content:center;flex-wrap:nowrap}._buttonWrapper_mnd4j_64{display:inline-flex}._stepsContainer_1cyua_3{display:flex;flex-direction:column;position:relative}._stepWrapper_1cyua_9{display:flex;align-items:center;position:relative;margin-bottom:1.5rem}._stepWrapper_1cyua_9:last-child{margin-bottom:0}._circleContainer_1cyua_19{position:relative}._circle_1cyua_19{width:28px;height:28px;border-radius:50%;border:2px solid #ccc;background-color:#fff;color:#aaa;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;cursor:pointer;z-index:1}._active_1cyua_39{color:#fff;border:none}._completed_1cyua_44{background-color:#ccc;color:#fff;border:none}._label_1cyua_50{margin-left:10px;font-size:14px;color:#aaa}._labelActive_1cyua_56{font-weight:700;color:#333}._connector_1cyua_61{position:absolute;left:50%;transform:translate(-50%);top:32px;width:1px;height:calc(100% - 10px);background-color:#ccc;z-index:0}._statusTextContainer_ch14r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:128px;height:31px;border-radius:200px}._statusTextContainer_ch14r_2 span{font-size:16px;color:#605b56}._buttonsContainer_1c7dw_2{padding:5px 7px;background-color:#efefef;border-radius:10px;display:flex;gap:8px}._buttonsContainer_1c7dw_2 ._button_1c7dw_2{border-radius:10px;display:flex;align-items:center;cursor:pointer;padding:4px;color:#605b56}._buttonsContainer_1c7dw_2 ._button_1c7dw_2:hover{opacity:.8}._buttonsContainer_1c7dw_2 ._button_1c7dw_2._active_1c7dw_20{background:#b32f5d;color:#efefef}._switchContainer_194wl_2{display:flex;align-items:center;gap:10px;font-size:12px;justify-content:center}._switchContainer_194wl_2 ._labelRight_194wl_9,._switchContainer_194wl_2 ._labelLeft_194wl_9{white-space:nowrap;color:#605b56}._switchContainer_194wl_2 ._labelLeft_194wl_9{text-align:right}._switch_194wl_2{position:relative;display:inline-block;width:44px;height:24px}._switch_194wl_2 input{opacity:0;width:0;height:0}._switch_194wl_2 ._slider_194wl_28{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#fff;border-radius:24px;transition:background-color .3s;border:2px solid #605b56}._switch_194wl_2 ._slider_194wl_28:before{position:absolute;content:"";height:16px;width:16px;left:3px;bottom:2.5px;background-color:var(--switch-thumb-color, #ccc);border-radius:50%;transition:transform .3s,background-color .3s}._switch_194wl_2 input:checked+._slider_194wl_28:before{transform:translate(20px)}._switch_194wl_2._disabled_194wl_54{opacity:.5;pointer-events:none}._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
|
|
2
|
+
import { jsxs as h, jsx as i, Fragment as Re } from "react/jsx-runtime";
|
|
3
3
|
import * as pe from "react";
|
|
4
4
|
import M, { useState as V, useEffect as F, useMemo as me, useLayoutEffect as At, useRef as se } from "react";
|
|
5
5
|
import e from "prop-types";
|
|
@@ -11,8 +11,8 @@ import It from "mapbox-gl";
|
|
|
11
11
|
import { useSelector as Ot } from "react-redux";
|
|
12
12
|
import Rt, { Source as qt, Layer as Et, NavigationControl as Pt, Popup as jt } from "react-map-gl/mapbox";
|
|
13
13
|
import Me from "maplibre-gl";
|
|
14
|
-
import { Protocol as
|
|
15
|
-
import
|
|
14
|
+
import { Protocol as zt } from "pmtiles";
|
|
15
|
+
import Zt, { Source as Kt, Layer as Ht, NavigationControl as Ut, Popup as Gt } from "react-map-gl/maplibre";
|
|
16
16
|
import { createSlice as Wt } from "@reduxjs/toolkit";
|
|
17
17
|
import Yt from "@mui/material/Slider";
|
|
18
18
|
import { createTheme as Qt, Box as Xt } from "@mui/material";
|
|
@@ -44,15 +44,15 @@ const t2 = "_ambitSelector_mcunf_2", n2 = "_header_mcunf_13", i2 = "_nameDateCon
|
|
|
44
44
|
fontColor: l,
|
|
45
45
|
moreInfo: c
|
|
46
46
|
}) => {
|
|
47
|
-
const { name: u, created_at:
|
|
48
|
-
return /* @__PURE__ */
|
|
47
|
+
const { name: u, created_at: m, id: g, isBeingProcessed: b } = n;
|
|
48
|
+
return /* @__PURE__ */ h(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
className: he.ambitItem,
|
|
52
52
|
style: { borderBottom: `1px solid ${l}` },
|
|
53
53
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ h("div", { className: he.ambitNameDate, onClick: () => t(g), children: [
|
|
55
|
+
/* @__PURE__ */ h("div", { className: he.ambitName, children: [
|
|
56
56
|
/* @__PURE__ */ i(
|
|
57
57
|
"img",
|
|
58
58
|
{
|
|
@@ -62,10 +62,10 @@ const t2 = "_ambitSelector_mcunf_2", n2 = "_header_mcunf_13", i2 = "_nameDateCon
|
|
|
62
62
|
),
|
|
63
63
|
/* @__PURE__ */ i("span", { style: { color: r ? a : l }, children: u })
|
|
64
64
|
] }),
|
|
65
|
-
/* @__PURE__ */ i("div", { className: he.ambitDate, children:
|
|
65
|
+
/* @__PURE__ */ i("div", { className: he.ambitDate, children: m ? new Date(m).toLocaleDateString() : "" })
|
|
66
66
|
] }),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
|
|
67
|
+
/* @__PURE__ */ h("div", { className: he.ambitButtons, children: [
|
|
68
|
+
b && /* @__PURE__ */ i("img", { src: f2 }),
|
|
69
69
|
/* @__PURE__ */ i("button", { onClick: () => o(g), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: C2 }) }),
|
|
70
70
|
/* @__PURE__ */ i("button", { onClick: () => d(g), children: /* @__PURE__ */ i("img", { src: g2 }) }),
|
|
71
71
|
/* @__PURE__ */ i("button", { onClick: () => s(g), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: h2 }) })
|
|
@@ -127,40 +127,40 @@ const Qe = "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: g = (
|
|
132
|
-
onClickFilters:
|
|
133
|
-
onClickAmbit:
|
|
130
|
+
onClickCopy: m = (_) => console.log(`Copy ambit: ${_}`),
|
|
131
|
+
onCLickDelete: g = (_) => console.log(`Delete ambit: ${_}`),
|
|
132
|
+
onClickFilters: b = (_) => console.log(`Filters clicked: ${_}`),
|
|
133
|
+
onClickAmbit: y = (_) => console.log(`OnCLickAmbit: ${_}`)
|
|
134
134
|
}) => {
|
|
135
|
-
const { t:
|
|
135
|
+
const { t: _ } = $(), [v, p] = V(n);
|
|
136
136
|
F(() => {
|
|
137
|
-
n &&
|
|
137
|
+
n && p(n);
|
|
138
138
|
}, [n]);
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
141
|
-
let x = [...
|
|
142
|
-
x.sort((w, N) => w[
|
|
139
|
+
const f = (C) => {
|
|
140
|
+
if (v && v.length > 0) {
|
|
141
|
+
let x = [...v];
|
|
142
|
+
x.sort((w, N) => w[C].localeCompare(N[C])), p(x);
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
|
-
return /* @__PURE__ */
|
|
145
|
+
return /* @__PURE__ */ h(
|
|
146
146
|
"div",
|
|
147
147
|
{
|
|
148
148
|
className: W.ambitSelector,
|
|
149
149
|
style: { color: s, ...c },
|
|
150
150
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ h(
|
|
152
152
|
"div",
|
|
153
153
|
{
|
|
154
154
|
className: W.header,
|
|
155
155
|
style: { borderBottom: `1px solid ${s}` },
|
|
156
156
|
children: [
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
/* @__PURE__ */ i("div", { className: W.ambitName, children: /* @__PURE__ */
|
|
159
|
-
/* @__PURE__ */ i("span", { children:
|
|
157
|
+
/* @__PURE__ */ h("div", { className: W.nameDateContainer, children: [
|
|
158
|
+
/* @__PURE__ */ i("div", { className: W.ambitName, children: /* @__PURE__ */ h("button", { onClick: () => f("name"), children: [
|
|
159
|
+
/* @__PURE__ */ i("span", { children: _(t) }),
|
|
160
160
|
/* @__PURE__ */ i("img", { src: Qe })
|
|
161
161
|
] }) }),
|
|
162
|
-
/* @__PURE__ */ i("div", { className: W.ambitDate, children: /* @__PURE__ */
|
|
163
|
-
/* @__PURE__ */ i("span", { children:
|
|
162
|
+
/* @__PURE__ */ i("div", { className: W.ambitDate, children: /* @__PURE__ */ h("button", { onClick: () => f("date"), children: [
|
|
163
|
+
/* @__PURE__ */ i("span", { children: _(r) }),
|
|
164
164
|
/* @__PURE__ */ i("img", { src: Qe })
|
|
165
165
|
] }) })
|
|
166
166
|
] }),
|
|
@@ -168,19 +168,19 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
168
168
|
]
|
|
169
169
|
}
|
|
170
170
|
),
|
|
171
|
-
/* @__PURE__ */ i("div", { className: W.ambitListContainer, children:
|
|
171
|
+
/* @__PURE__ */ i("div", { className: W.ambitListContainer, children: v && v.length > 0 && v.map((C) => /* @__PURE__ */ i(
|
|
172
172
|
mt,
|
|
173
173
|
{
|
|
174
|
-
isActive: d ==
|
|
175
|
-
ambit:
|
|
174
|
+
isActive: d == C.id,
|
|
175
|
+
ambit: C,
|
|
176
176
|
fontColor: s,
|
|
177
177
|
activeColor: o,
|
|
178
|
-
onClickCopy:
|
|
178
|
+
onClickCopy: m,
|
|
179
179
|
onClickDelete: g,
|
|
180
|
-
onClickFilters:
|
|
181
|
-
onClickAmbit:
|
|
180
|
+
onClickFilters: b,
|
|
181
|
+
onClickAmbit: y
|
|
182
182
|
},
|
|
183
|
-
`ambitKey${
|
|
183
|
+
`ambitKey${C.id}`
|
|
184
184
|
)) }),
|
|
185
185
|
/* @__PURE__ */ i("div", { className: W.newAmbitButtonContainer, children: /* @__PURE__ */ i(
|
|
186
186
|
Te,
|
|
@@ -188,7 +188,7 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
188
188
|
style: { ...l },
|
|
189
189
|
onClick: u,
|
|
190
190
|
borderColor: "grey",
|
|
191
|
-
children:
|
|
191
|
+
children: _(a)
|
|
192
192
|
}
|
|
193
193
|
) })
|
|
194
194
|
]
|
|
@@ -255,28 +255,28 @@ const V2 = ({
|
|
|
255
255
|
children: n.map((l, c) => {
|
|
256
256
|
const {
|
|
257
257
|
icon: u,
|
|
258
|
-
activeIcon:
|
|
258
|
+
activeIcon: m,
|
|
259
259
|
isActive: g,
|
|
260
|
-
name:
|
|
261
|
-
onClick:
|
|
262
|
-
disabled:
|
|
263
|
-
} = l,
|
|
264
|
-
s && o === "left" && /* @__PURE__ */ i("span", { className: X.buttonName, children: a(
|
|
265
|
-
/* @__PURE__ */ i("img", { src: g ?
|
|
266
|
-
s && o === "right" && /* @__PURE__ */ i("span", { className: X.buttonName, children: a(
|
|
260
|
+
name: b,
|
|
261
|
+
onClick: y,
|
|
262
|
+
disabled: _
|
|
263
|
+
} = l, v = /* @__PURE__ */ h(Re, { children: [
|
|
264
|
+
s && o === "left" && /* @__PURE__ */ i("span", { className: X.buttonName, children: a(b) }),
|
|
265
|
+
/* @__PURE__ */ i("img", { src: g ? m : u, alt: a(b) }),
|
|
266
|
+
s && o === "right" && /* @__PURE__ */ i("span", { className: X.buttonName, children: a(b) })
|
|
267
267
|
] });
|
|
268
|
-
return /* @__PURE__ */
|
|
268
|
+
return /* @__PURE__ */ h("div", { className: "tooltip-parent", children: [
|
|
269
269
|
/* @__PURE__ */ i(
|
|
270
270
|
"button",
|
|
271
271
|
{
|
|
272
|
-
onClick:
|
|
272
|
+
onClick: y,
|
|
273
273
|
className: `${X.button}
|
|
274
274
|
${g && X.active}`,
|
|
275
|
-
disabled:
|
|
276
|
-
children:
|
|
275
|
+
disabled: _,
|
|
276
|
+
children: v
|
|
277
277
|
}
|
|
278
278
|
),
|
|
279
|
-
t && /* @__PURE__ */ i(ie, { text:
|
|
279
|
+
t && /* @__PURE__ */ i(ie, { text: b, position: r })
|
|
280
280
|
] }, c);
|
|
281
281
|
})
|
|
282
282
|
}
|
|
@@ -317,8 +317,8 @@ const A2 = "_indicatorsCategory_1cu33_2", I2 = "_title_1cu33_5", De = {
|
|
|
317
317
|
showBottomBar: c = !0,
|
|
318
318
|
titleMarginChildren: u = 25
|
|
319
319
|
}) => {
|
|
320
|
-
const { t:
|
|
321
|
-
return /* @__PURE__ */
|
|
320
|
+
const { t: m } = $();
|
|
321
|
+
return /* @__PURE__ */ h(
|
|
322
322
|
He.div,
|
|
323
323
|
{
|
|
324
324
|
className: De.indicatorsCategory,
|
|
@@ -331,7 +331,7 @@ const A2 = "_indicatorsCategory_1cu33_2", I2 = "_title_1cu33_5", De = {
|
|
|
331
331
|
marginBottom: n ? "20px" : "0px"
|
|
332
332
|
},
|
|
333
333
|
children: [
|
|
334
|
-
/* @__PURE__ */
|
|
334
|
+
/* @__PURE__ */ h(
|
|
335
335
|
"h2",
|
|
336
336
|
{
|
|
337
337
|
style: {
|
|
@@ -342,7 +342,7 @@ const A2 = "_indicatorsCategory_1cu33_2", I2 = "_title_1cu33_5", De = {
|
|
|
342
342
|
onClick: d,
|
|
343
343
|
children: [
|
|
344
344
|
/* @__PURE__ */ i("span", { style: { color: n ? t : o }, children: n ? "-" : "+" }),
|
|
345
|
-
/* @__PURE__ */ i("span", { style: { marginLeft: 12, color: n ? t : o }, children:
|
|
345
|
+
/* @__PURE__ */ i("span", { style: { marginLeft: 12, color: n ? t : o }, children: m(r) })
|
|
346
346
|
]
|
|
347
347
|
}
|
|
348
348
|
),
|
|
@@ -376,8 +376,8 @@ const ao = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), O2 = "data
|
|
|
376
376
|
geoLayers: []
|
|
377
377
|
})), ht = ({ title: n, onClick: d, isOpen: s = !0, textColor: o = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
|
|
378
378
|
const { t: a } = $(), { tematicalFiltersSelected: l } = D((u) => u), c = (u) => {
|
|
379
|
-
D.setState((
|
|
380
|
-
tematicalFiltersSelected:
|
|
379
|
+
D.setState((m) => ({
|
|
380
|
+
tematicalFiltersSelected: m.tematicalFiltersSelected.filter(
|
|
381
381
|
(g) => g.code !== u
|
|
382
382
|
)
|
|
383
383
|
}));
|
|
@@ -389,10 +389,10 @@ const ao = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), O2 = "data
|
|
|
389
389
|
onClick: d,
|
|
390
390
|
title: n ? a(n) : "Applied Filters",
|
|
391
391
|
activeColor: r,
|
|
392
|
-
children: /* @__PURE__ */ i("div", { className: Xe.AppliedFiltersContainer, children: l == null ? void 0 : l.map((u,
|
|
392
|
+
children: /* @__PURE__ */ i("div", { className: Xe.AppliedFiltersContainer, children: l == null ? void 0 : l.map((u, m) => /* @__PURE__ */ h("div", { className: Xe.AppliedFilterContent, style: { color: o, background: t }, children: [
|
|
393
393
|
a(u.name),
|
|
394
394
|
/* @__PURE__ */ i("img", { src: O2, alt: "CloseIcon", onClick: () => c(u.code), style: { cursor: "pointer" } })
|
|
395
|
-
] },
|
|
395
|
+
] }, m)) })
|
|
396
396
|
}
|
|
397
397
|
);
|
|
398
398
|
};
|
|
@@ -423,11 +423,11 @@ const E2 = "_layerName_1ikqs_25", P2 = "_layerActive_1ikqs_28", Je = {
|
|
|
423
423
|
}) => {
|
|
424
424
|
const { t: a } = $(), { activeFiltersType: l, geoLayers: c } = D((g) => g), u = () => {
|
|
425
425
|
l == "geographical" ? D.setState(() => ({ activeFiltersType: null })) : D.setState(() => ({ activeFiltersType: "geographical" }));
|
|
426
|
-
},
|
|
427
|
-
D.setState((
|
|
428
|
-
geoLayers:
|
|
429
|
-
...
|
|
430
|
-
active:
|
|
426
|
+
}, m = (g) => {
|
|
427
|
+
D.setState((b) => ({
|
|
428
|
+
geoLayers: b.geoLayers.map((y) => ({
|
|
429
|
+
...y,
|
|
430
|
+
active: y.name === g.name
|
|
431
431
|
}))
|
|
432
432
|
}));
|
|
433
433
|
};
|
|
@@ -444,7 +444,7 @@ const E2 = "_layerName_1ikqs_25", P2 = "_layerActive_1ikqs_28", Je = {
|
|
|
444
444
|
"div",
|
|
445
445
|
{
|
|
446
446
|
className: `${Je.layerName} ${g.active ? Je.layerActive : ""}`,
|
|
447
|
-
onClick: () =>
|
|
447
|
+
onClick: () => m(g),
|
|
448
448
|
children: a(g.name)
|
|
449
449
|
}
|
|
450
450
|
))
|
|
@@ -459,7 +459,7 @@ gt.propTypes = {
|
|
|
459
459
|
backgroundColor: e.string,
|
|
460
460
|
activeColor: e.string
|
|
461
461
|
};
|
|
462
|
-
const j2 = "_checkboxContainer_zld97_2",
|
|
462
|
+
const j2 = "_checkboxContainer_zld97_2", z2 = {
|
|
463
463
|
checkboxContainer: j2
|
|
464
464
|
}, Ct = ({
|
|
465
465
|
onClick: n,
|
|
@@ -469,12 +469,12 @@ const j2 = "_checkboxContainer_zld97_2", Z2 = {
|
|
|
469
469
|
value: t
|
|
470
470
|
}) => {
|
|
471
471
|
const { t: r } = $(), { title: a } = o || {}, { fontColor: l, inputsColor: c } = D((u) => u);
|
|
472
|
-
return /* @__PURE__ */
|
|
472
|
+
return /* @__PURE__ */ h(
|
|
473
473
|
"div",
|
|
474
474
|
{
|
|
475
475
|
style: { ...d, color: s },
|
|
476
476
|
role: "checkbox",
|
|
477
|
-
className:
|
|
477
|
+
className: z2.checkboxContainer,
|
|
478
478
|
onClick: n,
|
|
479
479
|
children: [
|
|
480
480
|
/* @__PURE__ */ i(
|
|
@@ -511,7 +511,7 @@ function qe(n, d) {
|
|
|
511
511
|
return s.__proto__ = o, s;
|
|
512
512
|
}, qe(n, d);
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function Z2(n, d) {
|
|
515
515
|
n.prototype = Object.create(d.prototype), n.prototype.constructor = n, qe(n, d);
|
|
516
516
|
}
|
|
517
517
|
function Fe(n) {
|
|
@@ -552,19 +552,19 @@ let Pe = function(n) {
|
|
|
552
552
|
t.setState({ index: -1 }, t.onEnd(t.getKeyDownEventMap()));
|
|
553
553
|
}, t.onMouseMove = (l) => {
|
|
554
554
|
t.setState({ pending: !0 });
|
|
555
|
-
const c = t.getMousePosition(l), u = t.getDiffPosition(c[0]),
|
|
556
|
-
t.move(
|
|
555
|
+
const c = t.getMousePosition(l), u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
|
|
556
|
+
t.move(m);
|
|
557
557
|
}, t.onTouchMove = (l) => {
|
|
558
558
|
if (l.touches.length > 1) return;
|
|
559
559
|
t.setState({ pending: !0 });
|
|
560
560
|
const c = t.getTouchPosition(l);
|
|
561
561
|
if (t.isScrolling === void 0) {
|
|
562
|
-
const g = c[0] - t.startPosition[0],
|
|
563
|
-
t.isScrolling = Math.abs(
|
|
562
|
+
const g = c[0] - t.startPosition[0], b = c[1] - t.startPosition[1];
|
|
563
|
+
t.isScrolling = Math.abs(b) > Math.abs(g);
|
|
564
564
|
}
|
|
565
565
|
if (t.isScrolling) return void t.setState({ index: -1 });
|
|
566
|
-
const u = t.getDiffPosition(c[0]),
|
|
567
|
-
t.move(
|
|
566
|
+
const u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
|
|
567
|
+
t.move(m);
|
|
568
568
|
}, t.onKeyDown = (l) => {
|
|
569
569
|
if (!(l.ctrlKey || l.shiftKey || l.altKey || l.metaKey)) switch (t.setState({ pending: !0 }), l.key) {
|
|
570
570
|
case "ArrowLeft":
|
|
@@ -617,8 +617,8 @@ let Pe = function(n) {
|
|
|
617
617
|
if (t.props.disabled || c.touches.length > 1) return;
|
|
618
618
|
t.setState({ pending: !0 });
|
|
619
619
|
const u = t.getTouchPosition(c);
|
|
620
|
-
t.startPosition = u, t.isScrolling = void 0, t.start(l, u[0]), ke(t.getTouchEventMap()), function(
|
|
621
|
-
|
|
620
|
+
t.startPosition = u, t.isScrolling = void 0, t.start(l, u[0]), ke(t.getTouchEventMap()), function(m) {
|
|
621
|
+
m.stopPropagation && m.stopPropagation();
|
|
622
622
|
}(c);
|
|
623
623
|
}, t.handleResize = () => {
|
|
624
624
|
const l = window.setTimeout(() => {
|
|
@@ -626,13 +626,13 @@ let Pe = function(n) {
|
|
|
626
626
|
}, 0);
|
|
627
627
|
t.pendingResizeTimeouts.push(l);
|
|
628
628
|
}, t.renderThumb = (l, c) => {
|
|
629
|
-
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""),
|
|
630
|
-
t["thumb" + c] =
|
|
629
|
+
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), m = { ref: (b) => {
|
|
630
|
+
t["thumb" + c] = b;
|
|
631
631
|
}, 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: Ne(t.state.value), valueNow: t.state.value[c] };
|
|
632
|
-
return t.props.ariaValuetext && (
|
|
632
|
+
return t.props.ariaValuetext && (m["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(g)), t.props.renderThumb(m, g);
|
|
633
633
|
}, t.renderTrack = (l, c, u) => {
|
|
634
|
-
const
|
|
635
|
-
return t.props.renderTrack(
|
|
634
|
+
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: Ne(t.state.value) };
|
|
635
|
+
return t.props.renderTrack(m, g);
|
|
636
636
|
};
|
|
637
637
|
let r = Ve(o.value);
|
|
638
638
|
r.length || (r = Ve(o.defaultValue)), t.pendingResizeTimeouts = [];
|
|
@@ -640,7 +640,7 @@ let Pe = function(n) {
|
|
|
640
640
|
for (let l = 0; l < r.length; l += 1) r[l] = J(r[l], o), a.push(l);
|
|
641
641
|
return t.resizeObserver = null, t.resizeElementRef = M.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: r, zIndices: a }, t;
|
|
642
642
|
}
|
|
643
|
-
|
|
643
|
+
Z2(d, n);
|
|
644
644
|
var s = d.prototype;
|
|
645
645
|
return s.componentDidMount = function() {
|
|
646
646
|
typeof window < "u" && (this.resizeObserver = new ResizeObserver(this.handleResize), this.resizeObserver.observe(this.resizeElementRef.current), this.resize());
|
|
@@ -663,8 +663,8 @@ let Pe = function(n) {
|
|
|
663
663
|
let t = Number.MAX_VALUE, r = -1;
|
|
664
664
|
const { value: a } = this.state, l = a.length;
|
|
665
665
|
for (let c = 0; c < l; c += 1) {
|
|
666
|
-
const u = this.calcOffset(a[c]),
|
|
667
|
-
|
|
666
|
+
const u = this.calcOffset(a[c]), m = Math.abs(o - u);
|
|
667
|
+
m < t && (t = m, r = c);
|
|
668
668
|
}
|
|
669
669
|
return r;
|
|
670
670
|
}, s.getMousePosition = function(o) {
|
|
@@ -687,8 +687,8 @@ let Pe = function(n) {
|
|
|
687
687
|
}, s.resize = function() {
|
|
688
688
|
const { slider: o, thumb0: t } = this;
|
|
689
689
|
if (!o || !t) return;
|
|
690
|
-
const r = this.sizeKey(), a = o.getBoundingClientRect(), l = o[r], c = a[this.posMaxKey()], u = a[this.posMinKey()],
|
|
691
|
-
this.state.upperBound === g && this.state.sliderLength ===
|
|
690
|
+
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, b = Math.abs(c - u);
|
|
691
|
+
this.state.upperBound === g && this.state.sliderLength === b && this.state.thumbSize === m || this.setState({ upperBound: g, sliderLength: b, thumbSize: m });
|
|
692
692
|
}, s.calcOffset = function(o) {
|
|
693
693
|
const t = this.props.max - this.props.min;
|
|
694
694
|
return t === 0 ? 0 : (o - this.props.min) / t * this.state.upperBound;
|
|
@@ -727,28 +727,28 @@ let Pe = function(n) {
|
|
|
727
727
|
const t = this.state.value.slice(), { index: r } = this.state, { length: a } = t, l = t[r];
|
|
728
728
|
if (o === l) return;
|
|
729
729
|
this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
|
|
730
|
-
const { pearling: c, max: u, min:
|
|
730
|
+
const { pearling: c, max: u, min: m, minDistance: g } = this.props;
|
|
731
731
|
if (!c) {
|
|
732
732
|
if (r > 0) {
|
|
733
|
-
const
|
|
734
|
-
o <
|
|
733
|
+
const b = t[r - 1];
|
|
734
|
+
o < b + g && (o = b + g);
|
|
735
735
|
}
|
|
736
736
|
if (r < a - 1) {
|
|
737
|
-
const
|
|
738
|
-
o >
|
|
737
|
+
const b = t[r + 1];
|
|
738
|
+
o > b - g && (o = b - g);
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
|
-
t[r] = o, c && a > 1 && (o > l ? (this.pushSucceeding(t, g, r), function(y, _, v
|
|
742
|
-
for (let
|
|
743
|
-
const
|
|
744
|
-
|
|
741
|
+
t[r] = o, c && a > 1 && (o > l ? (this.pushSucceeding(t, g, r), function(b, y, _, v) {
|
|
742
|
+
for (let p = 0; p < b; p += 1) {
|
|
743
|
+
const f = v - p * _;
|
|
744
|
+
y[b - 1 - p] > f && (y[b - 1 - p] = f);
|
|
745
745
|
}
|
|
746
|
-
}(a, t, g, u)) : o < l && (this.pushPreceding(t, g, r), function(y, _, v
|
|
747
|
-
for (let
|
|
748
|
-
const
|
|
749
|
-
|
|
746
|
+
}(a, t, g, u)) : o < l && (this.pushPreceding(t, g, r), function(b, y, _, v) {
|
|
747
|
+
for (let p = 0; p < b; p += 1) {
|
|
748
|
+
const f = v + p * _;
|
|
749
|
+
y[p] < f && (y[p] = f);
|
|
750
750
|
}
|
|
751
|
-
}(a, t, g,
|
|
751
|
+
}(a, t, g, m))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
|
|
752
752
|
}, s.pushSucceeding = function(o, t, r) {
|
|
753
753
|
let a, l;
|
|
754
754
|
for (a = r, l = o[a] + t; o[a + 1] !== null && l > o[a + 1]; a += 1, l = o[a] + t) o[a + 1] = Ee(l, this.props);
|
|
@@ -822,12 +822,12 @@ const K2 = "_container_4u41i_2", H2 = "_unitLabel_4u41i_8", U2 = "_slider_4u41i_
|
|
|
822
822
|
defaultValue: l,
|
|
823
823
|
isDate: c
|
|
824
824
|
}) => {
|
|
825
|
-
const { t: u } = $(),
|
|
826
|
-
|
|
825
|
+
const { t: u } = $(), m = c ? new Date(n).getTime() : null, g = c ? new Date(d).getTime() : null, [b, y] = V(c ? [m, g] : [n, d]), _ = (v) => {
|
|
826
|
+
y(v), o == null || o({ min: v[0], max: v[1] });
|
|
827
827
|
};
|
|
828
828
|
return F(() => {
|
|
829
|
-
l ||
|
|
830
|
-
}, [l, c]), /* @__PURE__ */
|
|
829
|
+
l || y(c ? [m, g] : [n, d]);
|
|
830
|
+
}, [l, c]), /* @__PURE__ */ h(
|
|
831
831
|
"div",
|
|
832
832
|
{
|
|
833
833
|
className: re.container,
|
|
@@ -840,27 +840,27 @@ const K2 = "_container_4u41i_2", H2 = "_unitLabel_4u41i_8", U2 = "_slider_4u41i_
|
|
|
840
840
|
className: re.slider,
|
|
841
841
|
thumbClassName: re.thumb,
|
|
842
842
|
trackClassName: re.track,
|
|
843
|
-
min: c ?
|
|
843
|
+
min: c ? m : n,
|
|
844
844
|
max: c ? g : d,
|
|
845
|
-
step: c ? (g -
|
|
846
|
-
value:
|
|
847
|
-
onAfterChange:
|
|
845
|
+
step: c ? (g - m) / 30 : s,
|
|
846
|
+
value: b,
|
|
847
|
+
onAfterChange: _,
|
|
848
848
|
withTracks: !0,
|
|
849
849
|
pearling: !c,
|
|
850
850
|
minDistance: c ? 0 : 0.1
|
|
851
851
|
}
|
|
852
852
|
),
|
|
853
|
-
/* @__PURE__ */
|
|
854
|
-
/* @__PURE__ */ i("span", { children: c ? new Date(
|
|
853
|
+
/* @__PURE__ */ h("div", { className: re.labels, children: [
|
|
854
|
+
/* @__PURE__ */ i("span", { children: c ? new Date(b[0]).toLocaleDateString("en-EN", {
|
|
855
855
|
day: "2-digit",
|
|
856
856
|
month: "short",
|
|
857
857
|
year: "numeric"
|
|
858
|
-
}) :
|
|
859
|
-
/* @__PURE__ */ i("span", { children: c ? new Date(
|
|
858
|
+
}) : b[0] }),
|
|
859
|
+
/* @__PURE__ */ i("span", { children: c ? new Date(b[1]).toLocaleDateString("en-EN", {
|
|
860
860
|
day: "2-digit",
|
|
861
861
|
month: "short",
|
|
862
862
|
year: "numeric"
|
|
863
|
-
}) :
|
|
863
|
+
}) : b[1] })
|
|
864
864
|
] })
|
|
865
865
|
]
|
|
866
866
|
}
|
|
@@ -895,28 +895,28 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
895
895
|
minValue: l,
|
|
896
896
|
maxValue: c,
|
|
897
897
|
unit: u,
|
|
898
|
-
step:
|
|
898
|
+
step: m,
|
|
899
899
|
disabled: g,
|
|
900
|
-
isDate:
|
|
901
|
-
} = n || {},
|
|
900
|
+
isDate: b
|
|
901
|
+
} = n || {}, y = me(
|
|
902
902
|
() => t == "cat" || s == "cat",
|
|
903
903
|
[s, t]
|
|
904
|
-
),
|
|
904
|
+
), _ = me(
|
|
905
905
|
() => t == "abs" || s == "abs",
|
|
906
906
|
[s, t]
|
|
907
907
|
), {
|
|
908
|
-
tematicalFiltersSelected:
|
|
909
|
-
selectedIndicator:
|
|
910
|
-
fontColor:
|
|
911
|
-
inputsColor:
|
|
908
|
+
tematicalFiltersSelected: v,
|
|
909
|
+
selectedIndicator: p,
|
|
910
|
+
fontColor: f,
|
|
911
|
+
inputsColor: C
|
|
912
912
|
} = D((N) => N), x = (N) => {
|
|
913
913
|
if (console.log("onChangInput", N), N) {
|
|
914
|
-
const { min: S, max: L, valueClicked: k, allValues: B } = N || {}, { code: O, type: R, source: T } = n || {},
|
|
915
|
-
console.log("type: ",
|
|
916
|
-
let
|
|
917
|
-
R == "both" && (
|
|
914
|
+
const { min: S, max: L, valueClicked: k, allValues: B } = N || {}, { code: O, type: R, source: T } = n || {}, Z = _ ? "abs" : y ? "cat" : "both";
|
|
915
|
+
console.log("type: ", Z);
|
|
916
|
+
let z = O[0];
|
|
917
|
+
R == "both" && (z = Z == "cat" ? O[1] : O[0]), Z == "cat" ? D.setState((Q) => {
|
|
918
918
|
let G = Q.tematicalFiltersSelected.find(
|
|
919
|
-
(E) => E.code ===
|
|
919
|
+
(E) => E.code === z
|
|
920
920
|
);
|
|
921
921
|
if (G) {
|
|
922
922
|
let E = [G.values];
|
|
@@ -924,53 +924,53 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
924
924
|
(j) => j !== k
|
|
925
925
|
) : E = [...G.values, k], E.length == B.length ? {
|
|
926
926
|
tematicalFiltersSelected: Q.tematicalFiltersSelected.filter(
|
|
927
|
-
(j) => j.code !==
|
|
927
|
+
(j) => j.code !== z
|
|
928
928
|
)
|
|
929
929
|
} : {
|
|
930
930
|
tematicalFiltersSelected: Q.tematicalFiltersSelected.map(
|
|
931
|
-
(j) => j.code ===
|
|
931
|
+
(j) => j.code === z ? { ...j, values: E } : j
|
|
932
932
|
)
|
|
933
933
|
};
|
|
934
934
|
} else {
|
|
935
935
|
let E = B.map((j, Vt) => Vt);
|
|
936
936
|
return {
|
|
937
937
|
tematicalFiltersSelected: [
|
|
938
|
-
...
|
|
938
|
+
...v,
|
|
939
939
|
{
|
|
940
940
|
type: "cat",
|
|
941
|
-
code:
|
|
941
|
+
code: z,
|
|
942
942
|
values: E.filter((j) => j !== k),
|
|
943
943
|
name: n.name,
|
|
944
944
|
source: T,
|
|
945
|
-
isDate:
|
|
945
|
+
isDate: b
|
|
946
946
|
}
|
|
947
947
|
]
|
|
948
948
|
};
|
|
949
949
|
}
|
|
950
|
-
}) :
|
|
950
|
+
}) : Z == "abs" && D.setState((Q) => {
|
|
951
951
|
let G = Q.tematicalFiltersSelected.find(
|
|
952
|
-
(E) => E.code ===
|
|
952
|
+
(E) => E.code === z
|
|
953
953
|
);
|
|
954
954
|
if (S == n.minValue && L == n.maxValue)
|
|
955
955
|
return {
|
|
956
956
|
tematicalFiltersSelected: Q.tematicalFiltersSelected.filter(
|
|
957
|
-
(E) => E.code !==
|
|
957
|
+
(E) => E.code !== z
|
|
958
958
|
)
|
|
959
959
|
};
|
|
960
960
|
if (G) {
|
|
961
|
-
let E = { ...G, min: S, max: L, type:
|
|
961
|
+
let E = { ...G, min: S, max: L, type: Z, isDate: b };
|
|
962
962
|
return {
|
|
963
963
|
tematicalFiltersSelected: Q.tematicalFiltersSelected.map(
|
|
964
|
-
(j) => j.code ===
|
|
964
|
+
(j) => j.code === z ? E : j
|
|
965
965
|
)
|
|
966
966
|
};
|
|
967
967
|
} else
|
|
968
968
|
return {
|
|
969
969
|
tematicalFiltersSelected: [
|
|
970
|
-
...
|
|
970
|
+
...v,
|
|
971
971
|
{
|
|
972
|
-
type:
|
|
973
|
-
code:
|
|
972
|
+
type: Z,
|
|
973
|
+
code: z,
|
|
974
974
|
min: S,
|
|
975
975
|
max: L,
|
|
976
976
|
name: n.name,
|
|
@@ -982,12 +982,12 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
982
982
|
}
|
|
983
983
|
}, w = me(() => {
|
|
984
984
|
const N = {};
|
|
985
|
-
if ((
|
|
986
|
-
for (const S of
|
|
985
|
+
if ((v == null ? void 0 : v.length) > 0)
|
|
986
|
+
for (const S of v)
|
|
987
987
|
S.type === "cat" ? N[S.code] = new Set(S.values) : N[S.code] = [S.min, S.max];
|
|
988
988
|
return N;
|
|
989
|
-
}, [
|
|
990
|
-
return /* @__PURE__ */ i("div", { className: Se.tematicalFiltersInputContainer, children: /* @__PURE__ */
|
|
989
|
+
}, [v]);
|
|
990
|
+
return /* @__PURE__ */ i("div", { className: Se.tematicalFiltersInputContainer, children: /* @__PURE__ */ h(
|
|
991
991
|
oe,
|
|
992
992
|
{
|
|
993
993
|
titleFontStyles: {
|
|
@@ -996,26 +996,26 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
996
996
|
opacity: g ? 0.5 : 1
|
|
997
997
|
},
|
|
998
998
|
title: r,
|
|
999
|
-
isOpen:
|
|
999
|
+
isOpen: p == `id${r}`,
|
|
1000
1000
|
onClick: () => {
|
|
1001
1001
|
g || D.setState(() => ({
|
|
1002
|
-
selectedIndicator:
|
|
1002
|
+
selectedIndicator: p == `id${r}` ? "" : `id${r}`
|
|
1003
1003
|
}));
|
|
1004
1004
|
},
|
|
1005
1005
|
showBottomBar: !1,
|
|
1006
1006
|
height: 42,
|
|
1007
1007
|
titleMarginChildren: 14,
|
|
1008
1008
|
className: "tematicalFiltersInputContainer",
|
|
1009
|
-
color:
|
|
1009
|
+
color: f,
|
|
1010
1010
|
activeColor: d,
|
|
1011
1011
|
children: [
|
|
1012
|
-
t == "both" && /* @__PURE__ */
|
|
1012
|
+
t == "both" && /* @__PURE__ */ h(
|
|
1013
1013
|
"div",
|
|
1014
1014
|
{
|
|
1015
1015
|
className: Se.inputTypeContainer,
|
|
1016
|
-
style: { color:
|
|
1016
|
+
style: { color: f },
|
|
1017
1017
|
children: [
|
|
1018
|
-
/* @__PURE__ */
|
|
1018
|
+
/* @__PURE__ */ h("label", { children: [
|
|
1019
1019
|
/* @__PURE__ */ i(
|
|
1020
1020
|
"input",
|
|
1021
1021
|
{
|
|
@@ -1027,14 +1027,14 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
1027
1027
|
},
|
|
1028
1028
|
style: {
|
|
1029
1029
|
marginRight: 4,
|
|
1030
|
-
backgroundColor: s == "abs" ?
|
|
1031
|
-
border: `1.5px solid ${s == "abs" ?
|
|
1030
|
+
backgroundColor: s == "abs" ? C : "white",
|
|
1031
|
+
border: `1.5px solid ${s == "abs" ? C : f}`
|
|
1032
1032
|
}
|
|
1033
1033
|
}
|
|
1034
1034
|
),
|
|
1035
1035
|
"Absoluto"
|
|
1036
1036
|
] }),
|
|
1037
|
-
/* @__PURE__ */
|
|
1037
|
+
/* @__PURE__ */ h("label", { children: [
|
|
1038
1038
|
/* @__PURE__ */ i(
|
|
1039
1039
|
"input",
|
|
1040
1040
|
{
|
|
@@ -1046,8 +1046,8 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
1046
1046
|
},
|
|
1047
1047
|
style: {
|
|
1048
1048
|
marginRight: 4,
|
|
1049
|
-
backgroundColor: s == "cat" ?
|
|
1050
|
-
border: `1.5px solid ${s == "cat" ?
|
|
1049
|
+
backgroundColor: s == "cat" ? C : "white",
|
|
1050
|
+
border: `1.5px solid ${s == "cat" ? C : f}`
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
1053
|
),
|
|
@@ -1056,7 +1056,7 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
1056
1056
|
]
|
|
1057
1057
|
}
|
|
1058
1058
|
),
|
|
1059
|
-
|
|
1059
|
+
y && /* @__PURE__ */ i("div", { className: Se.checkboxContainer, children: a.map((N, S) => {
|
|
1060
1060
|
var L;
|
|
1061
1061
|
return /* @__PURE__ */ i(
|
|
1062
1062
|
Ct,
|
|
@@ -1068,7 +1068,7 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
1068
1068
|
`checkbox-${S}`
|
|
1069
1069
|
);
|
|
1070
1070
|
}) }),
|
|
1071
|
-
(
|
|
1071
|
+
(_ || t == "glb") && /* @__PURE__ */ i("div", { className: Se.absoluteSliderContainer, children: /* @__PURE__ */ i(
|
|
1072
1072
|
ft,
|
|
1073
1073
|
{
|
|
1074
1074
|
onChange: x,
|
|
@@ -1076,8 +1076,8 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
1076
1076
|
max: c,
|
|
1077
1077
|
unit: u,
|
|
1078
1078
|
defaultValue: w[n.code[0]] ? w[n.code[0]] : "",
|
|
1079
|
-
isDate:
|
|
1080
|
-
step:
|
|
1079
|
+
isDate: b,
|
|
1080
|
+
step: m
|
|
1081
1081
|
}
|
|
1082
1082
|
) })
|
|
1083
1083
|
]
|
|
@@ -1205,7 +1205,7 @@ const _t = ({
|
|
|
1205
1205
|
inputsColor: t = "#605B56",
|
|
1206
1206
|
activeColor: r
|
|
1207
1207
|
}) => {
|
|
1208
|
-
const { tematicalFiltersSelected: a, activeFiltersType: l } = D((
|
|
1208
|
+
const { tematicalFiltersSelected: a, activeFiltersType: l } = D((m) => m), { t: c } = $();
|
|
1209
1209
|
F(() => {
|
|
1210
1210
|
console.log("filtersSelected changed: ", a);
|
|
1211
1211
|
}, [a]), F(() => {
|
|
@@ -1224,10 +1224,10 @@ const _t = ({
|
|
|
1224
1224
|
color: o,
|
|
1225
1225
|
activeColor: r,
|
|
1226
1226
|
onClick: u,
|
|
1227
|
-
children: n == null ? void 0 : n.map((
|
|
1227
|
+
children: n == null ? void 0 : n.map((m, g) => /* @__PURE__ */ i(
|
|
1228
1228
|
yt,
|
|
1229
1229
|
{
|
|
1230
|
-
category:
|
|
1230
|
+
category: m,
|
|
1231
1231
|
fontColor: o,
|
|
1232
1232
|
activeColor: r
|
|
1233
1233
|
},
|
|
@@ -1263,36 +1263,36 @@ const tn = "_FiltersAmbitContainer_1g9xx_2", nn = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1263
1263
|
onChangeAppliedFilters: l,
|
|
1264
1264
|
saveAmbit: c,
|
|
1265
1265
|
namePlaceholder: u,
|
|
1266
|
-
descPlaceholder:
|
|
1266
|
+
descPlaceholder: m,
|
|
1267
1267
|
filtersTypes: g = ["geographical", "tematical"],
|
|
1268
|
-
nameRequiredText:
|
|
1269
|
-
geoFilterLayers:
|
|
1270
|
-
onGeoLayersChange:
|
|
1271
|
-
onlyFilters:
|
|
1268
|
+
nameRequiredText: b,
|
|
1269
|
+
geoFilterLayers: y = [],
|
|
1270
|
+
onGeoLayersChange: _,
|
|
1271
|
+
onlyFilters: v = !1
|
|
1272
1272
|
//usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
|
|
1273
1273
|
}) => {
|
|
1274
|
-
const { t:
|
|
1274
|
+
const { t: p } = $(), { tematicalFiltersSelected: f, activeFiltersType: C, geoLayers: x } = D((R) => R), [w, N] = V(n || null), [S, L] = V(d || null), [k, B] = V(!1);
|
|
1275
1275
|
F(() => {
|
|
1276
1276
|
s && s.length > 0 && D.setState((R) => ({
|
|
1277
1277
|
tematicalFiltersSelected: s
|
|
1278
1278
|
}));
|
|
1279
1279
|
}, [s]), F(() => {
|
|
1280
|
-
D.setState({ geoLayers:
|
|
1281
|
-
}, [
|
|
1282
|
-
console.log("filtersSelected changed: ",
|
|
1283
|
-
}, [
|
|
1280
|
+
D.setState({ geoLayers: y });
|
|
1281
|
+
}, [y]), F(() => {
|
|
1282
|
+
console.log("filtersSelected changed: ", f), l(f);
|
|
1283
|
+
}, [f]);
|
|
1284
1284
|
const O = () => {
|
|
1285
1285
|
w ? c({ name: w, description: S }) : B(!0);
|
|
1286
1286
|
};
|
|
1287
1287
|
return F(() => {
|
|
1288
|
-
|
|
1288
|
+
C != "geographical" && x.length > 0 && D.setState((R) => ({
|
|
1289
1289
|
geoLayers: R.geoLayers.map((T) => ({
|
|
1290
1290
|
...T,
|
|
1291
1291
|
active: !1
|
|
1292
1292
|
}))
|
|
1293
1293
|
}));
|
|
1294
|
-
}, [
|
|
1295
|
-
!
|
|
1294
|
+
}, [C]), /* @__PURE__ */ h("div", { className: ae.FiltersAmbitContainer, children: [
|
|
1295
|
+
!v && /* @__PURE__ */ h("div", { className: ae.FiltersAmbitHeader, children: [
|
|
1296
1296
|
/* @__PURE__ */ i("div", { className: ae.FiltersAmbitTitle, children: /* @__PURE__ */ i(
|
|
1297
1297
|
"input",
|
|
1298
1298
|
{
|
|
@@ -1301,7 +1301,7 @@ const tn = "_FiltersAmbitContainer_1g9xx_2", nn = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1301
1301
|
B(!1), N(R.target.value);
|
|
1302
1302
|
},
|
|
1303
1303
|
value: w,
|
|
1304
|
-
placeholder:
|
|
1304
|
+
placeholder: p(u)
|
|
1305
1305
|
}
|
|
1306
1306
|
) }),
|
|
1307
1307
|
/* @__PURE__ */ i("div", { className: ae.FiltersAmbitDescription, children: /* @__PURE__ */ i("div", { className: ae.FiltersAmbitDescriptionTitle, children: /* @__PURE__ */ i(
|
|
@@ -1309,21 +1309,21 @@ const tn = "_FiltersAmbitContainer_1g9xx_2", nn = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1309
1309
|
{
|
|
1310
1310
|
value: S,
|
|
1311
1311
|
onChange: (R) => L(R.target.value),
|
|
1312
|
-
placeholder:
|
|
1312
|
+
placeholder: p(m)
|
|
1313
1313
|
}
|
|
1314
1314
|
) }) })
|
|
1315
1315
|
] }),
|
|
1316
1316
|
/* @__PURE__ */ i(
|
|
1317
1317
|
ht,
|
|
1318
1318
|
{
|
|
1319
|
-
title:
|
|
1319
|
+
title: p("applied_filters"),
|
|
1320
1320
|
isOpen: !0,
|
|
1321
1321
|
textColor: r || "#fff",
|
|
1322
1322
|
backgroundColor: a || "#605B5680",
|
|
1323
1323
|
activeColor: t
|
|
1324
1324
|
}
|
|
1325
1325
|
),
|
|
1326
|
-
g.includes("geographical") && /* @__PURE__ */ i(gt, { activeColor: t, geoFilterLayers:
|
|
1326
|
+
g.includes("geographical") && /* @__PURE__ */ i(gt, { activeColor: t, geoFilterLayers: y, onGeoLayersChange: _ }),
|
|
1327
1327
|
g.includes("tematical") && /* @__PURE__ */ i(
|
|
1328
1328
|
_t,
|
|
1329
1329
|
{
|
|
@@ -1334,8 +1334,8 @@ const tn = "_FiltersAmbitContainer_1g9xx_2", nn = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1334
1334
|
activeColor: t
|
|
1335
1335
|
}
|
|
1336
1336
|
),
|
|
1337
|
-
k && /* @__PURE__ */ i("div", { className: ae.warning, children:
|
|
1338
|
-
!
|
|
1337
|
+
k && /* @__PURE__ */ i("div", { className: ae.warning, children: p(b) }),
|
|
1338
|
+
!v && /* @__PURE__ */ i("div", { className: "buttonContainer", children: /* @__PURE__ */ i(Te, { onClick: () => O(), children: p("save_ambit") }) })
|
|
1339
1339
|
] });
|
|
1340
1340
|
};
|
|
1341
1341
|
ln.propTypes = {
|
|
@@ -1367,13 +1367,13 @@ const cn = "_barChartContainer_d2f1z_2", dn = {
|
|
|
1367
1367
|
numberOfDivisions: c = 7,
|
|
1368
1368
|
maxValue: u = null
|
|
1369
1369
|
}) => {
|
|
1370
|
-
const { t:
|
|
1370
|
+
const { t: m } = $(), { xScale: g, ticks: b, height: y } = me(() => {
|
|
1371
1371
|
if (n && n.length > 0) {
|
|
1372
|
-
const
|
|
1372
|
+
const _ = (n == null ? void 0 : n.length) * (s + o) + r * 2, v = Ye.max(n, (C) => C.value) || 1, p = Ye.scaleLinear().domain([0, u || v]).range([0, d - l]), f = Array.from({ length: c + 1 }, (C, x) => u ? u / c * x : v / c * x);
|
|
1373
1373
|
return {
|
|
1374
|
-
xScale:
|
|
1375
|
-
ticks:
|
|
1376
|
-
height:
|
|
1374
|
+
xScale: p,
|
|
1375
|
+
ticks: f,
|
|
1376
|
+
height: _,
|
|
1377
1377
|
width: d,
|
|
1378
1378
|
verticalPaddign: r,
|
|
1379
1379
|
horizontalPaddign: a
|
|
@@ -1390,36 +1390,36 @@ const cn = "_barChartContainer_d2f1z_2", dn = {
|
|
|
1390
1390
|
r,
|
|
1391
1391
|
u
|
|
1392
1392
|
]);
|
|
1393
|
-
return /* @__PURE__ */ i("div", { className: dn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + a * 2, height:
|
|
1394
|
-
/* @__PURE__ */ i("g", { transform: `translate(${l + a}, 0)`, children:
|
|
1395
|
-
const
|
|
1396
|
-
return /* @__PURE__ */
|
|
1393
|
+
return /* @__PURE__ */ i("div", { className: dn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + a * 2, height: y, children: /* @__PURE__ */ h("g", { transform: `translate(0,${o})`, children: [
|
|
1394
|
+
/* @__PURE__ */ i("g", { transform: `translate(${l + a}, 0)`, children: b.map((_, v) => {
|
|
1395
|
+
const p = g(_);
|
|
1396
|
+
return /* @__PURE__ */ h("g", { transform: `translate(${p}, 0)`, children: [
|
|
1397
1397
|
/* @__PURE__ */ i(
|
|
1398
1398
|
"line",
|
|
1399
1399
|
{
|
|
1400
1400
|
y1: 0,
|
|
1401
|
-
y2:
|
|
1401
|
+
y2: y - o * 2,
|
|
1402
1402
|
stroke: "#ccc"
|
|
1403
1403
|
}
|
|
1404
1404
|
),
|
|
1405
1405
|
/* @__PURE__ */ i(
|
|
1406
1406
|
"text",
|
|
1407
1407
|
{
|
|
1408
|
-
y:
|
|
1408
|
+
y: y - o,
|
|
1409
1409
|
textAnchor: "middle",
|
|
1410
1410
|
fontSize: 10,
|
|
1411
1411
|
fill: t,
|
|
1412
|
-
children: parseInt(
|
|
1412
|
+
children: parseInt(_)
|
|
1413
1413
|
}
|
|
1414
1414
|
)
|
|
1415
|
-
] },
|
|
1415
|
+
] }, v);
|
|
1416
1416
|
}) }),
|
|
1417
|
-
n && n.length > 0 && (n == null ? void 0 : n.map((
|
|
1418
|
-
const
|
|
1419
|
-
return /* @__PURE__ */
|
|
1417
|
+
n && n.length > 0 && (n == null ? void 0 : n.map((_, v) => {
|
|
1418
|
+
const p = g(_.value), f = v * (s + o);
|
|
1419
|
+
return /* @__PURE__ */ h(
|
|
1420
1420
|
"g",
|
|
1421
1421
|
{
|
|
1422
|
-
transform: `translate(${l + a}, ${
|
|
1422
|
+
transform: `translate(${l + a}, ${f})`,
|
|
1423
1423
|
children: [
|
|
1424
1424
|
/* @__PURE__ */ i(
|
|
1425
1425
|
"text",
|
|
@@ -1428,21 +1428,21 @@ const cn = "_barChartContainer_d2f1z_2", dn = {
|
|
|
1428
1428
|
y: s / 2 + 5,
|
|
1429
1429
|
textAnchor: "end",
|
|
1430
1430
|
fill: t,
|
|
1431
|
-
children:
|
|
1431
|
+
children: m(_.title)
|
|
1432
1432
|
}
|
|
1433
1433
|
),
|
|
1434
1434
|
/* @__PURE__ */ i(
|
|
1435
1435
|
"rect",
|
|
1436
1436
|
{
|
|
1437
|
-
width:
|
|
1437
|
+
width: p,
|
|
1438
1438
|
height: s,
|
|
1439
|
-
fill:
|
|
1439
|
+
fill: _.color,
|
|
1440
1440
|
rx: 0
|
|
1441
1441
|
}
|
|
1442
1442
|
)
|
|
1443
1443
|
]
|
|
1444
1444
|
},
|
|
1445
|
-
|
|
1445
|
+
v
|
|
1446
1446
|
);
|
|
1447
1447
|
}))
|
|
1448
1448
|
] }) }) });
|
|
@@ -1478,7 +1478,7 @@ const un = "_graphicContainer_c9zrg_2", pn = "_titleContainer_c9zrg_14", et = {
|
|
|
1478
1478
|
leftPadding: c = 200
|
|
1479
1479
|
}) => {
|
|
1480
1480
|
const { t: u } = $();
|
|
1481
|
-
return /* @__PURE__ */
|
|
1481
|
+
return /* @__PURE__ */ h(
|
|
1482
1482
|
"div",
|
|
1483
1483
|
{
|
|
1484
1484
|
className: et.graphicContainer,
|
|
@@ -1546,16 +1546,16 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1546
1546
|
multiple: l = !1,
|
|
1547
1547
|
onChangeType: c
|
|
1548
1548
|
}) => {
|
|
1549
|
-
const { t: u } = $(), { name:
|
|
1549
|
+
const { t: u } = $(), { name: m, type: g, disabled: b } = n, [y, _] = V(!1);
|
|
1550
1550
|
F(() => {
|
|
1551
|
-
t &&
|
|
1551
|
+
t && _(
|
|
1552
1552
|
l ? t.some(
|
|
1553
|
-
(
|
|
1554
|
-
) : t.name ==
|
|
1553
|
+
(f) => f.name == String(m)
|
|
1554
|
+
) : t.name == m
|
|
1555
1555
|
);
|
|
1556
1556
|
}, [t]);
|
|
1557
|
-
const
|
|
1558
|
-
/* @__PURE__ */
|
|
1557
|
+
const v = () => /* @__PURE__ */ i("div", { className: q.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: q.switchType, children: /* @__PURE__ */ h("div", { className: q.switchTypeOptions, children: [
|
|
1558
|
+
/* @__PURE__ */ h(
|
|
1559
1559
|
"div",
|
|
1560
1560
|
{
|
|
1561
1561
|
className: q.optionContainer,
|
|
@@ -1584,7 +1584,7 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1584
1584
|
]
|
|
1585
1585
|
}
|
|
1586
1586
|
),
|
|
1587
|
-
/* @__PURE__ */
|
|
1587
|
+
/* @__PURE__ */ h(
|
|
1588
1588
|
"div",
|
|
1589
1589
|
{
|
|
1590
1590
|
className: q.optionContainer,
|
|
@@ -1613,7 +1613,7 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1613
1613
|
]
|
|
1614
1614
|
}
|
|
1615
1615
|
)
|
|
1616
|
-
] }) }) }),
|
|
1616
|
+
] }) }) }), p = () => /* @__PURE__ */ i("div", { className: q.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: q.switchType, children: /* @__PURE__ */ i("div", { className: q.switchTypeOptions, children: d.map((f, C) => /* @__PURE__ */ h(
|
|
1617
1617
|
"div",
|
|
1618
1618
|
{
|
|
1619
1619
|
className: q.optionContainer,
|
|
@@ -1624,24 +1624,24 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1624
1624
|
className: q.customRadious
|
|
1625
1625
|
}
|
|
1626
1626
|
),
|
|
1627
|
-
/* @__PURE__ */ i("h4", { children: u(
|
|
1627
|
+
/* @__PURE__ */ i("h4", { children: u(f.unit) })
|
|
1628
1628
|
]
|
|
1629
1629
|
},
|
|
1630
|
-
|
|
1630
|
+
C
|
|
1631
1631
|
)) }) }) });
|
|
1632
|
-
return /* @__PURE__ */
|
|
1633
|
-
/* @__PURE__ */
|
|
1632
|
+
return /* @__PURE__ */ h("div", { className: q.indicatorContainer, children: [
|
|
1633
|
+
/* @__PURE__ */ h(
|
|
1634
1634
|
"div",
|
|
1635
1635
|
{
|
|
1636
1636
|
className: q.indicatorNameContainer,
|
|
1637
|
-
onClick: () => !
|
|
1637
|
+
onClick: () => !b && a({ indicator: n }),
|
|
1638
1638
|
children: [
|
|
1639
1639
|
/* @__PURE__ */ i(
|
|
1640
1640
|
"div",
|
|
1641
1641
|
{
|
|
1642
1642
|
style: {
|
|
1643
|
-
border:
|
|
1644
|
-
opacity:
|
|
1643
|
+
border: y ? `1px solid ${s}` : `1px solid ${o}`,
|
|
1644
|
+
opacity: b ? 0.5 : 1
|
|
1645
1645
|
},
|
|
1646
1646
|
className: q.dot
|
|
1647
1647
|
}
|
|
@@ -1651,13 +1651,13 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1651
1651
|
{
|
|
1652
1652
|
className: q.indicatorName,
|
|
1653
1653
|
style: {
|
|
1654
|
-
color:
|
|
1655
|
-
opacity:
|
|
1654
|
+
color: y ? s : o,
|
|
1655
|
+
opacity: b ? 0.5 : 1
|
|
1656
1656
|
},
|
|
1657
1657
|
children: /* @__PURE__ */ i(
|
|
1658
1658
|
Ke,
|
|
1659
1659
|
{
|
|
1660
|
-
i18nKey:
|
|
1660
|
+
i18nKey: m,
|
|
1661
1661
|
components: { sup: /* @__PURE__ */ i("sup", {}) },
|
|
1662
1662
|
shouldUnescape: !0
|
|
1663
1663
|
}
|
|
@@ -1667,8 +1667,8 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1667
1667
|
]
|
|
1668
1668
|
}
|
|
1669
1669
|
),
|
|
1670
|
-
(t == null ? void 0 : t.name) ===
|
|
1671
|
-
(t == null ? void 0 : t.name) ===
|
|
1670
|
+
(t == null ? void 0 : t.name) === m && g === "both" && /* @__PURE__ */ i("div", { children: v() }),
|
|
1671
|
+
(t == null ? void 0 : t.name) === m && g === "twoUnits" && /* @__PURE__ */ i("div", { children: p() })
|
|
1672
1672
|
] });
|
|
1673
1673
|
};
|
|
1674
1674
|
Ge.propTypes = {
|
|
@@ -1697,43 +1697,43 @@ const $n = "_indicatorsSubCategory_1dzsi_2", Bn = "_list_1dzsi_8", tt = {
|
|
|
1697
1697
|
activeIndicator: l,
|
|
1698
1698
|
onClickIndicator: c,
|
|
1699
1699
|
multiple: u,
|
|
1700
|
-
activeIndicatorType:
|
|
1700
|
+
activeIndicatorType: m,
|
|
1701
1701
|
onChangeType: g
|
|
1702
1702
|
}) => {
|
|
1703
|
-
const { t:
|
|
1703
|
+
const { t: b } = $(), [y, _] = V(!1);
|
|
1704
1704
|
return F(() => {
|
|
1705
|
-
|
|
1706
|
-
}, [t, a]), /* @__PURE__ */
|
|
1705
|
+
_(t == a);
|
|
1706
|
+
}, [t, a]), /* @__PURE__ */ h(
|
|
1707
1707
|
He.div,
|
|
1708
1708
|
{
|
|
1709
1709
|
className: tt.indicatorsSubCategory,
|
|
1710
1710
|
initial: { height: "43px" },
|
|
1711
|
-
animate: { height:
|
|
1711
|
+
animate: { height: y ? "auto" : "43px" },
|
|
1712
1712
|
transition: { duration: 0.4 },
|
|
1713
1713
|
children: [
|
|
1714
|
-
/* @__PURE__ */ i("button", { onClick: () => r(a), children: /* @__PURE__ */
|
|
1715
|
-
/* @__PURE__ */ i("span", { style: { color:
|
|
1714
|
+
/* @__PURE__ */ i("button", { onClick: () => r(a), children: /* @__PURE__ */ h("h3", { style: { color: y ? o : s }, children: [
|
|
1715
|
+
/* @__PURE__ */ i("span", { style: { color: y ? o : s }, children: y ? "-" : "+" }),
|
|
1716
1716
|
/* @__PURE__ */ i(
|
|
1717
1717
|
"span",
|
|
1718
1718
|
{
|
|
1719
|
-
style: { marginLeft: 12, color:
|
|
1720
|
-
children:
|
|
1719
|
+
style: { marginLeft: 12, color: y ? o : s },
|
|
1720
|
+
children: b(n)
|
|
1721
1721
|
}
|
|
1722
1722
|
)
|
|
1723
1723
|
] }) }),
|
|
1724
|
-
d && /* @__PURE__ */ i("div", { className: tt.list, children: d == null ? void 0 : d.map((
|
|
1724
|
+
d && /* @__PURE__ */ i("div", { className: tt.list, children: d == null ? void 0 : d.map((v, p) => /* @__PURE__ */ i(
|
|
1725
1725
|
Ge,
|
|
1726
1726
|
{
|
|
1727
|
-
indicator:
|
|
1727
|
+
indicator: v,
|
|
1728
1728
|
defaultColor: s,
|
|
1729
1729
|
activeColor: o,
|
|
1730
1730
|
activeIndicator: l,
|
|
1731
1731
|
onClickIndicator: c,
|
|
1732
1732
|
multiple: u,
|
|
1733
|
-
activeIndicatorType:
|
|
1733
|
+
activeIndicatorType: m,
|
|
1734
1734
|
onChangeType: g
|
|
1735
1735
|
},
|
|
1736
|
-
"indicator" +
|
|
1736
|
+
"indicator" + p
|
|
1737
1737
|
)) })
|
|
1738
1738
|
]
|
|
1739
1739
|
}
|
|
@@ -1762,70 +1762,70 @@ const xt = ({
|
|
|
1762
1762
|
onClickSubCategory: l,
|
|
1763
1763
|
activeIndicator: c,
|
|
1764
1764
|
onClickIndicator: u,
|
|
1765
|
-
multiple:
|
|
1765
|
+
multiple: m,
|
|
1766
1766
|
activeIndicatorType: g,
|
|
1767
|
-
onChangeType:
|
|
1767
|
+
onChangeType: b
|
|
1768
1768
|
}) => {
|
|
1769
|
-
var
|
|
1770
|
-
const { t:
|
|
1769
|
+
var p;
|
|
1770
|
+
const { t: y } = $(), [_, v] = V(!1);
|
|
1771
1771
|
return F(() => {
|
|
1772
|
-
|
|
1773
|
-
}, [r, d]), /* @__PURE__ */
|
|
1772
|
+
v(r === d);
|
|
1773
|
+
}, [r, d]), /* @__PURE__ */ h(
|
|
1774
1774
|
He.div,
|
|
1775
1775
|
{
|
|
1776
1776
|
className: Ae.indicatorsCategory,
|
|
1777
1777
|
initial: { height: "53px" },
|
|
1778
|
-
animate: { height:
|
|
1778
|
+
animate: { height: _ ? "auto" : "53px" },
|
|
1779
1779
|
transition: { duration: 0.4 },
|
|
1780
1780
|
style: {
|
|
1781
1781
|
backgroundColor: "white",
|
|
1782
|
-
borderBottom:
|
|
1783
|
-
marginBottom:
|
|
1782
|
+
borderBottom: _ ? `1px solid ${s}` : "0px",
|
|
1783
|
+
marginBottom: _ ? "20px" : "0px"
|
|
1784
1784
|
},
|
|
1785
1785
|
children: [
|
|
1786
|
-
/* @__PURE__ */
|
|
1787
|
-
/* @__PURE__ */ i("span", { style: { color:
|
|
1786
|
+
/* @__PURE__ */ h("h2", { className: `${Ae.title}`, onClick: () => t(d), children: [
|
|
1787
|
+
/* @__PURE__ */ i("span", { style: { color: _ ? s : o }, children: _ ? "-" : "+" }),
|
|
1788
1788
|
/* @__PURE__ */ i(
|
|
1789
1789
|
"span",
|
|
1790
1790
|
{
|
|
1791
|
-
style: { marginLeft: 12, color:
|
|
1792
|
-
children:
|
|
1791
|
+
style: { marginLeft: 12, color: _ ? s : o },
|
|
1792
|
+
children: y(n.name)
|
|
1793
1793
|
}
|
|
1794
1794
|
)
|
|
1795
1795
|
] }),
|
|
1796
1796
|
n.subcategories ? n.subcategories.map(
|
|
1797
|
-
({ name:
|
|
1797
|
+
({ name: f, subcategory: C, indicators: x }, w) => /* @__PURE__ */ i(
|
|
1798
1798
|
wt,
|
|
1799
1799
|
{
|
|
1800
|
-
id:
|
|
1800
|
+
id: C,
|
|
1801
1801
|
activeSubCategory: a,
|
|
1802
|
-
subcName:
|
|
1802
|
+
subcName: f,
|
|
1803
1803
|
onClickSubCategory: l,
|
|
1804
1804
|
activeIndicator: c,
|
|
1805
1805
|
onClickIndicator: u,
|
|
1806
|
-
multiple:
|
|
1806
|
+
multiple: m,
|
|
1807
1807
|
activeColor: s,
|
|
1808
1808
|
defaultColor: o,
|
|
1809
1809
|
indicators: x,
|
|
1810
1810
|
activeIndicatorType: g,
|
|
1811
|
-
onChangeType:
|
|
1811
|
+
onChangeType: b
|
|
1812
1812
|
},
|
|
1813
1813
|
`subcKey ${w}`
|
|
1814
1814
|
)
|
|
1815
|
-
) : /* @__PURE__ */ i("div", { className: Ae.list, children: (
|
|
1815
|
+
) : /* @__PURE__ */ i("div", { className: Ae.list, children: (p = n.indicators) == null ? void 0 : p.map((f, C) => /* @__PURE__ */ i(
|
|
1816
1816
|
Ge,
|
|
1817
1817
|
{
|
|
1818
|
-
indicator:
|
|
1819
|
-
values:
|
|
1818
|
+
indicator: f,
|
|
1819
|
+
values: f.type == "twoUnits" && f.values,
|
|
1820
1820
|
activeColor: s,
|
|
1821
1821
|
defaultColor: o,
|
|
1822
1822
|
activeIndicator: c,
|
|
1823
1823
|
onClickIndicator: u,
|
|
1824
|
-
multiple:
|
|
1824
|
+
multiple: m,
|
|
1825
1825
|
activeIndicatorType: g,
|
|
1826
|
-
onChangeType:
|
|
1826
|
+
onChangeType: b
|
|
1827
1827
|
},
|
|
1828
|
-
`indicator${
|
|
1828
|
+
`indicator${C}`
|
|
1829
1829
|
)) })
|
|
1830
1830
|
]
|
|
1831
1831
|
}
|
|
@@ -1862,20 +1862,20 @@ const Ln = "_indicatorsList_fklyu_2", Tn = "_title_fklyu_6", nt = {
|
|
|
1862
1862
|
changeIndType: a,
|
|
1863
1863
|
activeIndicatorType: l
|
|
1864
1864
|
}) => {
|
|
1865
|
-
const { t: c } = $(), [u,
|
|
1866
|
-
|
|
1867
|
-
},
|
|
1868
|
-
|
|
1869
|
-
},
|
|
1870
|
-
console.log("onClickIndicator: ", w),
|
|
1871
|
-
},
|
|
1865
|
+
const { t: c } = $(), [u, m] = V(), [g, b] = V(), [y, _] = V(), v = (w) => {
|
|
1866
|
+
m(u == w ? null : w);
|
|
1867
|
+
}, p = (w) => {
|
|
1868
|
+
b(g == w ? null : w);
|
|
1869
|
+
}, f = ({ indicator: w }) => {
|
|
1870
|
+
console.log("onClickIndicator: ", w), C(w);
|
|
1871
|
+
}, C = (w) => {
|
|
1872
1872
|
if (!t)
|
|
1873
|
-
|
|
1874
|
-
(
|
|
1873
|
+
_(
|
|
1874
|
+
(y == null ? void 0 : y.name) == w.name ? null : w
|
|
1875
1875
|
);
|
|
1876
1876
|
else {
|
|
1877
|
-
let N =
|
|
1878
|
-
|
|
1877
|
+
let N = y && y.length > 0 ? [...y] : [];
|
|
1878
|
+
_(
|
|
1879
1879
|
N != null && N.some(
|
|
1880
1880
|
(S) => S.name == w.name
|
|
1881
1881
|
) ? N.filter(
|
|
@@ -1885,14 +1885,14 @@ const Ln = "_indicatorsList_fklyu_2", Tn = "_title_fklyu_6", nt = {
|
|
|
1885
1885
|
}
|
|
1886
1886
|
};
|
|
1887
1887
|
F(() => {
|
|
1888
|
-
console.log("activeindicator changed to: ",
|
|
1889
|
-
}, [
|
|
1890
|
-
if (r && !
|
|
1888
|
+
console.log("activeindicator changed to: ", y), o && typeof o == "function" && y && o({ activeIndicator: y });
|
|
1889
|
+
}, [y]), At(() => {
|
|
1890
|
+
if (r && !y)
|
|
1891
1891
|
if (t && r && Array.isArray(r)) {
|
|
1892
|
-
let w =
|
|
1893
|
-
|
|
1892
|
+
let w = y && y.length > 0 ? [...y] : [];
|
|
1893
|
+
_([...w, ...r]), x(r[0].name);
|
|
1894
1894
|
} else
|
|
1895
|
-
|
|
1895
|
+
C(r), x(r.name);
|
|
1896
1896
|
}, []);
|
|
1897
1897
|
const x = (w) => {
|
|
1898
1898
|
const N = n.find((S) => {
|
|
@@ -1901,25 +1901,25 @@ const Ln = "_indicatorsList_fklyu_2", Tn = "_title_fklyu_6", nt = {
|
|
|
1901
1901
|
(k) => k.indicators.find((B) => B.name == w)
|
|
1902
1902
|
);
|
|
1903
1903
|
if (L)
|
|
1904
|
-
return
|
|
1904
|
+
return b(L.subcategory), L;
|
|
1905
1905
|
} else
|
|
1906
1906
|
return S.indicators.some((L) => L.name == w);
|
|
1907
1907
|
});
|
|
1908
|
-
N &&
|
|
1908
|
+
N && m(N.category);
|
|
1909
1909
|
};
|
|
1910
|
-
return /* @__PURE__ */
|
|
1910
|
+
return /* @__PURE__ */ h("div", { className: nt.indicatorsList, children: [
|
|
1911
1911
|
/* @__PURE__ */ i("h2", { className: nt.title, style: { color: s }, children: c("indicators.indicators") }),
|
|
1912
1912
|
n.map((w, N) => /* @__PURE__ */ i(
|
|
1913
1913
|
xt,
|
|
1914
1914
|
{
|
|
1915
1915
|
id: w.category,
|
|
1916
1916
|
cat: w,
|
|
1917
|
-
onClickCategory:
|
|
1917
|
+
onClickCategory: v,
|
|
1918
1918
|
activeCategory: u,
|
|
1919
|
-
onClickSubCategory:
|
|
1919
|
+
onClickSubCategory: p,
|
|
1920
1920
|
activeSubCategory: g,
|
|
1921
|
-
onClickIndicator:
|
|
1922
|
-
activeIndicator:
|
|
1921
|
+
onClickIndicator: f,
|
|
1922
|
+
activeIndicator: y,
|
|
1923
1923
|
activeColor: d,
|
|
1924
1924
|
defaultColor: s,
|
|
1925
1925
|
multiple: t,
|
|
@@ -1952,8 +1952,8 @@ const Dn = "_langSelector_o9enq_2", Fn = "_currentLang_o9enq_14", Vn = "_arrow_o
|
|
|
1952
1952
|
const [o, t] = V(!1), { i18n: r } = $(), a = n.find((c) => c.code == r.language), l = (c) => {
|
|
1953
1953
|
r.changeLanguage(c), t(!1);
|
|
1954
1954
|
};
|
|
1955
|
-
return /* @__PURE__ */
|
|
1956
|
-
/* @__PURE__ */
|
|
1955
|
+
return /* @__PURE__ */ h("div", { className: le.langSelector, children: [
|
|
1956
|
+
/* @__PURE__ */ h(
|
|
1957
1957
|
"div",
|
|
1958
1958
|
{
|
|
1959
1959
|
className: le.currentLang,
|
|
@@ -1992,14 +1992,14 @@ On.propTypes = {
|
|
|
1992
1992
|
arrow: e.object,
|
|
1993
1993
|
imgPrev: e.object
|
|
1994
1994
|
};
|
|
1995
|
-
const Rn = "_legendContainer_qs4x9_3", qn = "_closeButton_qs4x9_31", En = "_titleContainer_qs4x9_59", Pn = "_infoContainer_qs4x9_65", jn = "_titleLegendList_qs4x9_76",
|
|
1995
|
+
const Rn = "_legendContainer_qs4x9_3", qn = "_closeButton_qs4x9_31", En = "_titleContainer_qs4x9_59", Pn = "_infoContainer_qs4x9_65", jn = "_titleLegendList_qs4x9_76", zn = "_legendListContainer_qs4x9_82", Zn = "_gridContainer_qs4x9_82", Kn = "_elementLegendContainer_qs4x9_88", Hn = "_colorDot_qs4x9_94", Un = "_absoluteValueContainer_qs4x9_100", Gn = "_absoluteValueColor_qs4x9_103", Wn = "_absoluteValueText_qs4x9_108", Yn = "_noDataContainer_qs4x9_120", Qn = "_noData_qs4x9_120", Xn = "_moreInfoContainer_qs4x9_141", I = {
|
|
1996
1996
|
legendContainer: Rn,
|
|
1997
1997
|
closeButton: qn,
|
|
1998
1998
|
titleContainer: En,
|
|
1999
1999
|
infoContainer: Pn,
|
|
2000
2000
|
titleLegendList: jn,
|
|
2001
|
-
legendListContainer:
|
|
2002
|
-
gridContainer:
|
|
2001
|
+
legendListContainer: zn,
|
|
2002
|
+
gridContainer: Zn,
|
|
2003
2003
|
elementLegendContainer: Kn,
|
|
2004
2004
|
colorDot: Hn,
|
|
2005
2005
|
absoluteValueContainer: Un,
|
|
@@ -2032,7 +2032,7 @@ const Rn = "_legendContainer_qs4x9_3", qn = "_closeButton_qs4x9_31", En = "_titl
|
|
|
2032
2032
|
onClickClose: c
|
|
2033
2033
|
}) => {
|
|
2034
2034
|
const { t: u } = $();
|
|
2035
|
-
return /* @__PURE__ */
|
|
2035
|
+
return /* @__PURE__ */ h(
|
|
2036
2036
|
"div",
|
|
2037
2037
|
{
|
|
2038
2038
|
style: n ? { ...n } : {},
|
|
@@ -2040,16 +2040,16 @@ const Rn = "_legendContainer_qs4x9_3", qn = "_closeButton_qs4x9_31", En = "_titl
|
|
|
2040
2040
|
children: [
|
|
2041
2041
|
/* @__PURE__ */ i("button", { className: I.closeButton, onClick: c }),
|
|
2042
2042
|
d && /* @__PURE__ */ i("div", { className: I.titleContainer, style: { marginBottom: (!s || s.length == 0) && "15px" }, children: /* @__PURE__ */ i("h2", { children: d }) }),
|
|
2043
|
-
s && s.length > 0 && /* @__PURE__ */ i("div", { className: I.infoContainer, children: /* @__PURE__ */ i("ul", { children: s.map(({ title:
|
|
2044
|
-
/* @__PURE__ */ i("h3", { className: I.title, children: `${
|
|
2045
|
-
/* @__PURE__ */
|
|
2043
|
+
s && s.length > 0 && /* @__PURE__ */ i("div", { className: I.infoContainer, children: /* @__PURE__ */ i("ul", { children: s.map(({ title: m, value: g }) => /* @__PURE__ */ h("li", { children: [
|
|
2044
|
+
/* @__PURE__ */ i("h3", { className: I.title, children: `${m}:` }),
|
|
2045
|
+
/* @__PURE__ */ h("span", { className: I.value, children: [
|
|
2046
2046
|
" ",
|
|
2047
2047
|
g
|
|
2048
2048
|
] })
|
|
2049
2049
|
] }, d)) }) }),
|
|
2050
2050
|
/* @__PURE__ */ i("h3", { className: I.titleLegendList, style: { marginTop: s && s.length > 0 && "30px" }, children: t && /* @__PURE__ */ i(Ke, { i18nKey: t, components: { sup: /* @__PURE__ */ i("sup", {}) }, shouldUnescape: !0 }) }),
|
|
2051
|
-
/* @__PURE__ */
|
|
2052
|
-
r ? /* @__PURE__ */
|
|
2051
|
+
/* @__PURE__ */ h("div", { className: I.legendListContainer, children: [
|
|
2052
|
+
r ? /* @__PURE__ */ h("div", { className: I.absoluteValueContainer, children: [
|
|
2053
2053
|
/* @__PURE__ */ i(
|
|
2054
2054
|
"div",
|
|
2055
2055
|
{
|
|
@@ -2059,25 +2059,25 @@ const Rn = "_legendContainer_qs4x9_3", qn = "_closeButton_qs4x9_31", En = "_titl
|
|
|
2059
2059
|
}
|
|
2060
2060
|
}
|
|
2061
2061
|
),
|
|
2062
|
-
/* @__PURE__ */
|
|
2063
|
-
/* @__PURE__ */
|
|
2062
|
+
/* @__PURE__ */ h("div", { className: I.absoluteValueText, children: [
|
|
2063
|
+
/* @__PURE__ */ h("span", { children: [
|
|
2064
2064
|
r.maxValue,
|
|
2065
2065
|
" ",
|
|
2066
2066
|
u(r.unit)
|
|
2067
2067
|
] }),
|
|
2068
|
-
r.midValue && /* @__PURE__ */
|
|
2068
|
+
r.midValue && /* @__PURE__ */ h("span", { children: [
|
|
2069
2069
|
r.midValue,
|
|
2070
2070
|
" ",
|
|
2071
2071
|
u(r.unit)
|
|
2072
2072
|
] }),
|
|
2073
|
-
/* @__PURE__ */
|
|
2073
|
+
/* @__PURE__ */ h("span", { children: [
|
|
2074
2074
|
r.minValue,
|
|
2075
2075
|
" ",
|
|
2076
2076
|
u(r.unit)
|
|
2077
2077
|
] })
|
|
2078
2078
|
] })
|
|
2079
2079
|
] }) : o && o.length > 0 && /* @__PURE__ */ i("div", { className: I.gridContainer, children: o.map(
|
|
2080
|
-
({ title:
|
|
2080
|
+
({ title: m, color: g }) => /* @__PURE__ */ h("div", { className: I.elementLegendContainer, children: [
|
|
2081
2081
|
/* @__PURE__ */ i(
|
|
2082
2082
|
"div",
|
|
2083
2083
|
{
|
|
@@ -2085,13 +2085,13 @@ const Rn = "_legendContainer_qs4x9_3", qn = "_closeButton_qs4x9_31", En = "_titl
|
|
|
2085
2085
|
style: { backgroundColor: g }
|
|
2086
2086
|
}
|
|
2087
2087
|
),
|
|
2088
|
-
/* @__PURE__ */
|
|
2089
|
-
u(
|
|
2088
|
+
/* @__PURE__ */ h("div", { className: I.titleLegendElement, children: [
|
|
2089
|
+
u(m),
|
|
2090
2090
|
" "
|
|
2091
2091
|
] })
|
|
2092
2092
|
] }, d)
|
|
2093
2093
|
) }),
|
|
2094
|
-
r.noDataColor && /* @__PURE__ */
|
|
2094
|
+
r.noDataColor && /* @__PURE__ */ h("div", { className: I.noDataContainer, children: [
|
|
2095
2095
|
/* @__PURE__ */ i(
|
|
2096
2096
|
"div",
|
|
2097
2097
|
{
|
|
@@ -2163,17 +2163,17 @@ const s0 = ({
|
|
|
2163
2163
|
interactiveLayers: l = [],
|
|
2164
2164
|
popUp: c = !1,
|
|
2165
2165
|
sources: u = [],
|
|
2166
|
-
layers:
|
|
2166
|
+
layers: m = []
|
|
2167
2167
|
}) => {
|
|
2168
|
-
const g = se(), [
|
|
2168
|
+
const g = se(), [b, y] = V(null), _ = Ot((v) => v.mapState.showTexts);
|
|
2169
2169
|
return F(() => {
|
|
2170
2170
|
if (g.current) {
|
|
2171
|
-
const
|
|
2172
|
-
|
|
2173
|
-
|
|
2171
|
+
const v = g.current.getMap();
|
|
2172
|
+
v.getStyle().layers.map((f) => {
|
|
2173
|
+
f.type == "symbol" && f.id != "professionals" && (_ ? v.setLayoutProperty(f.id, "visibility", "visible") : v.setLayoutProperty(f.id, "visibility", "none"));
|
|
2174
2174
|
});
|
|
2175
2175
|
}
|
|
2176
|
-
}, [
|
|
2176
|
+
}, [_]), /* @__PURE__ */ i("div", { className: `${i0.mapContainer}`, style: r, children: /* @__PURE__ */ h(
|
|
2177
2177
|
Rt,
|
|
2178
2178
|
{
|
|
2179
2179
|
initialViewState: n,
|
|
@@ -2185,31 +2185,31 @@ const s0 = ({
|
|
|
2185
2185
|
onClick: a,
|
|
2186
2186
|
interactiveLayerIds: l,
|
|
2187
2187
|
children: [
|
|
2188
|
-
u.length && u.map((
|
|
2188
|
+
u.length && u.map((v, p) => /* @__PURE__ */ i(
|
|
2189
2189
|
qt,
|
|
2190
2190
|
{
|
|
2191
|
-
...
|
|
2192
|
-
children:
|
|
2193
|
-
if (
|
|
2191
|
+
...v,
|
|
2192
|
+
children: m.length && m.map((f, C) => {
|
|
2193
|
+
if (f.sourceId == v.id) return /* @__PURE__ */ i(
|
|
2194
2194
|
Et,
|
|
2195
2195
|
{
|
|
2196
|
-
...
|
|
2196
|
+
...f.layer,
|
|
2197
2197
|
beforeId: t
|
|
2198
2198
|
},
|
|
2199
|
-
|
|
2199
|
+
C
|
|
2200
2200
|
);
|
|
2201
2201
|
})
|
|
2202
2202
|
},
|
|
2203
|
-
|
|
2203
|
+
p
|
|
2204
2204
|
)),
|
|
2205
2205
|
/* @__PURE__ */ i(Pt, { position: "bottom-right", visualizePitch: !0 }),
|
|
2206
|
-
c &&
|
|
2206
|
+
c && b && /* @__PURE__ */ i(
|
|
2207
2207
|
jt,
|
|
2208
2208
|
{
|
|
2209
2209
|
longitude: c.longitude,
|
|
2210
2210
|
latitude: c.latitude,
|
|
2211
2211
|
anchor: c.anchor,
|
|
2212
|
-
onClose: () =>
|
|
2212
|
+
onClose: () => y(null),
|
|
2213
2213
|
children: c.content
|
|
2214
2214
|
}
|
|
2215
2215
|
)
|
|
@@ -2269,12 +2269,12 @@ const o0 = "_mapContainer_b0pyr_3", r0 = {
|
|
|
2269
2269
|
title: l0
|
|
2270
2270
|
}, c0 = ({ props: n }) => {
|
|
2271
2271
|
const { t: d } = $();
|
|
2272
|
-
return /* @__PURE__ */ i("div", { className: st.FeaturePopUp, children: n.map((s) => /* @__PURE__ */
|
|
2273
|
-
/* @__PURE__ */
|
|
2272
|
+
return /* @__PURE__ */ i("div", { className: st.FeaturePopUp, children: n.map((s) => /* @__PURE__ */ h("p", { children: [
|
|
2273
|
+
/* @__PURE__ */ h("span", { className: st.title, children: [
|
|
2274
2274
|
/* @__PURE__ */ i(Ke, { i18nKey: s.name, components: { sup: /* @__PURE__ */ i("sup", {}) }, shouldUnescape: !0 }),
|
|
2275
2275
|
":"
|
|
2276
2276
|
] }),
|
|
2277
|
-
isNaN(s.value) ? /* @__PURE__ */ i(Re, { children: d(s.value) }) : /* @__PURE__ */
|
|
2277
|
+
isNaN(s.value) ? /* @__PURE__ */ i(Re, { children: d(s.value) }) : /* @__PURE__ */ h(Re, { children: [
|
|
2278
2278
|
s.value.toLocaleString("de", { maximumFractionDigits: 2 }),
|
|
2279
2279
|
" ",
|
|
2280
2280
|
d(s.unit)
|
|
@@ -2291,55 +2291,59 @@ const o0 = "_mapContainer_b0pyr_3", r0 = {
|
|
|
2291
2291
|
interactiveLayers: l = [],
|
|
2292
2292
|
sources: c = [],
|
|
2293
2293
|
layers: u = [],
|
|
2294
|
-
filters:
|
|
2294
|
+
filters: m,
|
|
2295
2295
|
popUpParams: g,
|
|
2296
|
-
onClosePopUp:
|
|
2297
|
-
showTexts:
|
|
2296
|
+
onClosePopUp: b,
|
|
2297
|
+
showTexts: y,
|
|
2298
|
+
hash: _ = !1
|
|
2298
2299
|
}) => {
|
|
2299
|
-
console.log(
|
|
2300
|
+
console.log(m);
|
|
2300
2301
|
const v = se();
|
|
2301
2302
|
return F(() => {
|
|
2302
2303
|
if (v.current) {
|
|
2303
|
-
const
|
|
2304
|
-
|
|
2305
|
-
C.type == "symbol" && C.id != "professionals" && (
|
|
2304
|
+
const p = v.current.getMap();
|
|
2305
|
+
p.getStyle().layers.map((C) => {
|
|
2306
|
+
C.type == "symbol" && C.id != "professionals" && (y ? p.setLayoutProperty(C.id, "visibility", "visible") : p.setLayoutProperty(C.id, "visibility", "none"));
|
|
2306
2307
|
});
|
|
2307
2308
|
}
|
|
2308
|
-
}, [
|
|
2309
|
-
let
|
|
2310
|
-
return Me.addProtocol("pmtiles",
|
|
2309
|
+
}, [y]), F(() => {
|
|
2310
|
+
let p = new zt();
|
|
2311
|
+
return Me.addProtocol("pmtiles", p.tile), () => {
|
|
2311
2312
|
Me.removeProtocol("pmtiles");
|
|
2312
2313
|
};
|
|
2313
|
-
}, []), /* @__PURE__ */ i("div", { className: `${r0.mapContainer}`, style: r && r, children: /* @__PURE__ */
|
|
2314
|
-
|
|
2314
|
+
}, []), /* @__PURE__ */ i("div", { className: `${r0.mapContainer}`, style: r && r, children: /* @__PURE__ */ h(
|
|
2315
|
+
Zt,
|
|
2315
2316
|
{
|
|
2316
2317
|
mapLib: Me,
|
|
2317
2318
|
initialViewState: n,
|
|
2318
2319
|
ref: v,
|
|
2319
|
-
hash:
|
|
2320
|
+
hash: _,
|
|
2320
2321
|
maxZoom: d,
|
|
2321
2322
|
minZoom: s,
|
|
2322
2323
|
mapStyle: o,
|
|
2323
2324
|
onClick: a,
|
|
2324
2325
|
interactiveLayerIds: l,
|
|
2325
2326
|
children: [
|
|
2326
|
-
c.length && c.map((
|
|
2327
|
+
c.length && c.map((p, f) => /* @__PURE__ */ i(
|
|
2327
2328
|
Kt,
|
|
2328
2329
|
{
|
|
2329
|
-
...
|
|
2330
|
-
children: u.length && u.map((C,
|
|
2331
|
-
if (C.sourceId ==
|
|
2330
|
+
...p,
|
|
2331
|
+
children: u.length && u.map((C, x) => {
|
|
2332
|
+
if (console.log(C), C.sourceId == p.id) return /* @__PURE__ */ i(
|
|
2332
2333
|
Ht,
|
|
2333
2334
|
{
|
|
2334
2335
|
...C.layer,
|
|
2335
2336
|
beforeId: t,
|
|
2336
|
-
filter:
|
|
2337
|
+
filter: m && m,
|
|
2338
|
+
layout: {
|
|
2339
|
+
visibility: C.layer.visibility || "visible"
|
|
2340
|
+
}
|
|
2337
2341
|
},
|
|
2338
|
-
|
|
2342
|
+
x
|
|
2339
2343
|
);
|
|
2340
2344
|
})
|
|
2341
2345
|
},
|
|
2342
|
-
|
|
2346
|
+
f
|
|
2343
2347
|
)),
|
|
2344
2348
|
/* @__PURE__ */ i(Ut, { position: "bottom-right", visualizePitch: !0 }),
|
|
2345
2349
|
g && /* @__PURE__ */ i(
|
|
@@ -2347,7 +2351,7 @@ const o0 = "_mapContainer_b0pyr_3", r0 = {
|
|
|
2347
2351
|
{
|
|
2348
2352
|
longitude: g.lng,
|
|
2349
2353
|
latitude: g.lat,
|
|
2350
|
-
onClose:
|
|
2354
|
+
onClose: b,
|
|
2351
2355
|
children: /* @__PURE__ */ i(c0, { props: g.props })
|
|
2352
2356
|
}
|
|
2353
2357
|
)
|
|
@@ -2387,9 +2391,10 @@ d0.propTypes = {
|
|
|
2387
2391
|
id: e.string,
|
|
2388
2392
|
type: e.string,
|
|
2389
2393
|
sourceLayer: e.string,
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
paint: e.object
|
|
2394
|
+
minzoom: e.number,
|
|
2395
|
+
maxzoom: e.number,
|
|
2396
|
+
paint: e.object,
|
|
2397
|
+
visibility: e.string
|
|
2393
2398
|
})
|
|
2394
2399
|
})
|
|
2395
2400
|
),
|
|
@@ -2414,10 +2419,10 @@ const u0 = "_sectionBar_1egwc_2", p0 = "_leftContent_1egwc_14", m0 = "_textConta
|
|
|
2414
2419
|
width: r
|
|
2415
2420
|
}) => {
|
|
2416
2421
|
const { t: a } = $();
|
|
2417
|
-
return /* @__PURE__ */
|
|
2418
|
-
/* @__PURE__ */
|
|
2422
|
+
return /* @__PURE__ */ h("div", { className: ee.sectionBar, style: { width: r && r }, children: [
|
|
2423
|
+
/* @__PURE__ */ h("div", { className: ee.leftContent, children: [
|
|
2419
2424
|
n && /* @__PURE__ */ i("img", { src: n, alt: "Icono", className: ee.icon }),
|
|
2420
|
-
/* @__PURE__ */
|
|
2425
|
+
/* @__PURE__ */ h("div", { className: ee.textContainer, children: [
|
|
2421
2426
|
/* @__PURE__ */ i("div", { className: ee.title, children: a(d) }),
|
|
2422
2427
|
s && /* @__PURE__ */ i("div", { className: ee.subtitle, children: s })
|
|
2423
2428
|
] })
|
|
@@ -2481,30 +2486,30 @@ const b0 = Wt({
|
|
|
2481
2486
|
console.log("year changed to ", l);
|
|
2482
2487
|
}
|
|
2483
2488
|
}) => {
|
|
2484
|
-
const [l, c] = V(d), u = (
|
|
2485
|
-
c(
|
|
2486
|
-
}, [
|
|
2489
|
+
const [l, c] = V(d), u = (f, C) => {
|
|
2490
|
+
c(C), a(C);
|
|
2491
|
+
}, [m, g] = V(!1), b = () => {
|
|
2487
2492
|
g(!0);
|
|
2488
|
-
},
|
|
2493
|
+
}, y = () => {
|
|
2489
2494
|
g(!1);
|
|
2490
2495
|
};
|
|
2491
|
-
((
|
|
2496
|
+
((f, C) => {
|
|
2492
2497
|
const x = se();
|
|
2493
2498
|
F(() => {
|
|
2494
|
-
x.current =
|
|
2495
|
-
}, [
|
|
2499
|
+
x.current = f;
|
|
2500
|
+
}, [f]), F(() => {
|
|
2496
2501
|
function w() {
|
|
2497
2502
|
x.current();
|
|
2498
2503
|
}
|
|
2499
2504
|
{
|
|
2500
|
-
let N = setInterval(w,
|
|
2505
|
+
let N = setInterval(w, C);
|
|
2501
2506
|
return () => clearInterval(N);
|
|
2502
2507
|
}
|
|
2503
|
-
}, [
|
|
2508
|
+
}, [C]);
|
|
2504
2509
|
})(() => {
|
|
2505
|
-
|
|
2510
|
+
m && (l != 2050 ? (c(l + 1), a(l + 1)) : (c(2025), a(2025)));
|
|
2506
2511
|
}, 1e3);
|
|
2507
|
-
const
|
|
2512
|
+
const v = Qt({
|
|
2508
2513
|
palette: {
|
|
2509
2514
|
primary: {
|
|
2510
2515
|
main: "#605b56"
|
|
@@ -2526,13 +2531,13 @@ const b0 = Wt({
|
|
|
2526
2531
|
}
|
|
2527
2532
|
}
|
|
2528
2533
|
}
|
|
2529
|
-
}),
|
|
2534
|
+
}), p = [
|
|
2530
2535
|
{ label: "", value: 2025 },
|
|
2531
2536
|
{ label: "", value: 2032 },
|
|
2532
2537
|
{ label: "", value: 2041 },
|
|
2533
2538
|
{ label: "", value: 2050 }
|
|
2534
2539
|
];
|
|
2535
|
-
return /* @__PURE__ */ i(Jt, { theme:
|
|
2540
|
+
return /* @__PURE__ */ i(Jt, { theme: v, children: /* @__PURE__ */ h(
|
|
2536
2541
|
Xt,
|
|
2537
2542
|
{
|
|
2538
2543
|
sx: { width: 400 },
|
|
@@ -2547,7 +2552,7 @@ const b0 = Wt({
|
|
|
2547
2552
|
value: l,
|
|
2548
2553
|
valueLabelDisplay: "on",
|
|
2549
2554
|
step: 1,
|
|
2550
|
-
marks:
|
|
2555
|
+
marks: p,
|
|
2551
2556
|
min: s,
|
|
2552
2557
|
max: o,
|
|
2553
2558
|
onChange: u,
|
|
@@ -2556,8 +2561,8 @@ const b0 = Wt({
|
|
|
2556
2561
|
}
|
|
2557
2562
|
),
|
|
2558
2563
|
o,
|
|
2559
|
-
!
|
|
2560
|
-
|
|
2564
|
+
!m && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: b, children: /* @__PURE__ */ i("img", { src: y0, alt: "Play" }) }),
|
|
2565
|
+
m && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: y, children: /* @__PURE__ */ i("img", { src: _0, alt: "Pause" }) })
|
|
2561
2566
|
]
|
|
2562
2567
|
}
|
|
2563
2568
|
) });
|
|
@@ -2654,11 +2659,11 @@ const F0 = "_elementSelector_1qdhv_2", V0 = "_header_1qdhv_13", A0 = "_nameDateC
|
|
|
2654
2659
|
buttonsContainer: R0,
|
|
2655
2660
|
elementListContainer: q0,
|
|
2656
2661
|
newElementButtonContainer: E0
|
|
2657
|
-
}, P0 = "_listElement_1s506_2", j0 = "_elementNameDate_1s506_17",
|
|
2662
|
+
}, P0 = "_listElement_1s506_2", j0 = "_elementNameDate_1s506_17", z0 = "_elementNameContainer_1s506_27", Z0 = "_elementName_1s506_17", K0 = "_elementDate_1s506_42", H0 = "_elementButtons_1s506_45", U0 = "_moreInfoContainer_1s506_68", G0 = "_moreInfo_1s506_68", K = {
|
|
2658
2663
|
listElement: P0,
|
|
2659
2664
|
elementNameDate: j0,
|
|
2660
|
-
elementNameContainer:
|
|
2661
|
-
elementName:
|
|
2665
|
+
elementNameContainer: z0,
|
|
2666
|
+
elementName: Z0,
|
|
2662
2667
|
elementDate: K0,
|
|
2663
2668
|
elementButtons: H0,
|
|
2664
2669
|
break: "_break_1s506_63",
|
|
@@ -2666,17 +2671,17 @@ const F0 = "_elementSelector_1qdhv_2", V0 = "_header_1qdhv_13", A0 = "_nameDateC
|
|
|
2666
2671
|
moreInfo: G0
|
|
2667
2672
|
}, W0 = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e", Y0 = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209259'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.3062'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cg%20id='Group%203973'%3e%3cg%20id='Rectangle%20495'%3e%3cmask%20id='path-2-inside-1_4451_10560'%20fill='white'%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'/%3e%3c/mask%3e%3crect%20x='10.4033'%20y='7.70422'%20width='12.8'%20height='12.8'%20rx='1'%20stroke='%23605B56'%20stroke-width='3'%20mask='url(%23path-2-inside-1_4451_10560)'/%3e%3c/g%3e%3cg%20id='Group%203972'%3e%3crect%20id='Rectangle%20496'%20x='7.2041'%20y='10.9042'%20width='12.8'%20height='12.8'%20rx='1'%20fill='%23605B56'/%3e%3cpath%20id='+'%20d='M16.3785%2018.0509H14.3838V20.0776H12.9331V18.0509H10.9385V16.6749H12.9331V14.6376H14.3838V16.6749H16.3785V18.0509Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e", Q0 = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%209260'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M8.20744%208.70422C7.34769%208.70422%206.88873%209.71735%207.45568%2010.3637L13.3518%2017.085C13.5118%2017.2675%2013.6%2017.5018%2013.6%2017.7445V23.2443C13.6%2023.6283%2013.8199%2023.9783%2014.1658%2024.1451L15.9658%2025.0128C16.6297%2025.3329%2017.4%2024.8491%2017.4%2024.112V17.7445C17.4%2017.5018%2017.4882%2017.2675%2017.6482%2017.085L23.5443%2010.3637C24.1113%209.71735%2023.6523%208.70422%2022.7926%208.70422H8.20744Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e", X0 = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%206725'%3e%3ccircle%20id='Ellipse%20219'%20cx='15.1021'%20cy='15.7148'%20r='14.3521'%20stroke='%23605B56'%20stroke-opacity='0.5'%20stroke-width='1.5'/%3e%3cg%20id='Group%206724'%3e%3cpath%20id='Vector'%20d='M17.4114%2023.3302C17.4114%2024.5419%2016.4269%2027.4724%2015.2126%2027.4724C13.9982%2027.4724%2013.0137%2024.5419%2013.0137%2023.3302C13.0137%2022.7483%2013.2453%2022.1902%2013.6577%2021.7787C14.0701%2021.3673%2014.6294%2021.1361%2015.2126%2021.1361C15.7957%2021.1361%2016.355%2021.3673%2016.7674%2021.7787C17.1798%2022.1902%2017.4114%2022.7483%2017.4114%2023.3302Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union'%20d='M15.2919%2020.6088H11.2899L11.289%2020.6078C10.6273%2020.7718%209.36856%2021.3396%209.39931%2023.2845C9.39931%2023.2845%207.41254%2021.7976%208.17372%2019.0179L8.25575%2018.7445C8.59675%2017.7118%209.66004%2016.7306%2010.7714%2016.2435C10.7337%2012.8666%2011.5045%208.19644%2015.2919%204.724V20.6088ZM10.6835%2017.4164C10.5323%2017.5091%2010.3819%2017.6125%2010.2372%2017.7279C9.77215%2018.099%209.43634%2018.5195%209.26747%2018.8988L9.20595%2019.058C8.95666%2019.8145%208.9632%2020.4347%209.07607%2020.9291C9.34144%2020.5645%209.66233%2020.2832%209.9999%2020.0746C10.2365%2019.9284%2010.4715%2019.8251%2010.6835%2019.7494V17.4164Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Union_2'%20d='M15.293%204.724C19.0931%208.20817%2019.8548%2012.8981%2019.8115%2016.2777C20.8629%2016.7859%2021.8411%2017.7218%2022.165%2018.7045C23.1398%2021.6599%2021.0225%2023.2445%2021.0225%2023.2445C21.051%2021.4361%2019.9648%2020.8184%2019.2803%2020.6088H15.293V4.724ZM19.7676%2017.3949C19.7586%2017.5313%2019.7493%2017.6646%2019.7383%2017.7943V19.7094C19.9502%2019.7851%2020.1854%2019.8884%2020.4219%2020.0345C20.7595%2020.2432%2021.0794%2020.5253%2021.3447%2020.89C21.4466%2020.444%2021.4627%2019.8956%2021.2812%2019.2367L21.2148%2019.0179C21.0772%2018.6004%2020.7157%2018.1118%2020.1846%2017.6879C20.0493%2017.58%2019.9088%2017.4829%2019.7676%2017.3949Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cg%20id='Vector_2'%3e%3cpath%20d='M12.541%208.28445C12.541%208.28445%2014.8218%209.81829%2018.0434%208.28445C18.0434%208.28445%2016.9978%206.03912%2015.2919%204.61267C15.2919%204.61267%2013.7894%205.92343%2012.541%208.28445Z'%20fill='%23FDFDFD'/%3e%3cpath%20d='M15.3057%205.29626C15.9532%205.9116%2016.4918%206.63792%2016.8867%207.2533C17.0801%207.55466%2017.2355%207.82605%2017.3516%208.03748C16.0573%208.54342%2014.966%208.52427%2014.1807%208.36951C13.781%208.29074%2013.4584%208.17533%2013.2266%208.07556C13.7607%207.14513%2014.32%206.40895%2014.7646%205.88806C14.9759%205.64056%2015.1621%205.44302%2015.3057%205.29626Z'%20stroke='%23605B56'%20stroke-opacity='0.5'/%3e%3c/g%3e%3cpath%20id='Vector_3'%20d='M17.6984%2012.9862C17.6985%2013.4539%2017.5596%2013.9111%2017.2993%2014.3001C17.039%2014.689%2016.669%2014.9922%2016.236%2015.1712C15.803%2015.3503%2015.3265%2015.3972%2014.8668%2015.3061C14.4071%2015.2149%2013.9848%2014.9898%2013.6533%2014.6591C13.3218%2014.3285%2013.0961%2013.9072%2013.0046%2013.4485C12.9131%2012.9898%2012.96%2012.5143%2013.1393%2012.0822C13.3186%2011.6501%2013.6224%2011.2808%2014.0121%2011.021C14.4018%2010.7611%2014.86%2010.6224%2015.3287%2010.6224C15.957%2010.6224%2016.5597%2010.8715%2017.004%2011.3147C17.4484%2011.758%2017.6982%2012.3593%2017.6984%2012.9862Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_4'%20d='M17.1358%2013.0038C17.1358%2013.36%2017.0299%2013.7083%2016.8316%2014.0045C16.6332%2014.3007%2016.3513%2014.5316%2016.0214%2014.6679C15.6916%2014.8042%2015.3286%2014.8399%2014.9784%2014.7704C14.6282%2014.7009%2014.3066%2014.5294%2014.0541%2014.2774C13.8017%2014.0255%2013.6297%2013.7046%2013.5601%2013.3552C13.4904%2013.0058%2013.5262%2012.6436%2013.6628%2012.3145C13.7994%2011.9853%2014.0308%2011.704%2014.3277%2011.5061C14.6245%2011.3082%2014.9736%2011.2025%2015.3306%2011.2025C15.8094%2011.2025%2016.2685%2011.3923%2016.6071%2011.7301C16.9456%2012.0679%2017.1358%2012.526%2017.1358%2013.0038Z'%20fill='%23605B56'%20fill-opacity='0.5'/%3e%3cpath%20id='Vector_5'%20d='M16.7061%2013.2093C16.6508%2013.2093%2016.5978%2013.1874%2016.5588%2013.1485C16.5197%2013.1095%2016.4978%2013.0566%2016.4978%2013.0015C16.4974%2012.7236%2016.3866%2012.4572%2016.1897%2012.2607C15.9928%2012.0642%2015.7258%2011.9537%2015.4473%2011.9533C15.4175%2011.9582%2015.3869%2011.9566%2015.3578%2011.9485C15.3287%2011.9405%2015.3017%2011.9262%2015.2786%2011.9067C15.2556%2011.8872%2015.237%2011.8629%2015.2244%2011.8356C15.2117%2011.8082%2015.2051%2011.7784%2015.2051%2011.7482C15.2051%2011.7181%2015.2117%2011.6883%2015.2244%2011.6609C15.237%2011.6336%2015.2556%2011.6093%2015.2786%2011.5898C15.3017%2011.5703%2015.3287%2011.556%2015.3578%2011.5479C15.3869%2011.5399%2015.4175%2011.5383%2015.4473%2011.5432C15.8348%2011.5435%2016.2063%2011.6973%2016.4803%2011.9707C16.7543%2012.2441%2016.9084%2012.6148%2016.9088%2013.0015C16.9088%2013.0557%2016.8876%2013.1077%2016.8498%2013.1465C16.8119%2013.1854%2016.7603%2013.2079%2016.7061%2013.2093Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_6'%20d='M16.8082%2013.6607C16.8082%2013.7106%2016.7934%2013.7594%2016.7656%2013.8008C16.7378%2013.8423%2016.6984%2013.8746%2016.6522%2013.8937C16.606%2013.9128%2016.5552%2013.9178%2016.5062%2013.9081C16.4571%2013.8983%2016.4121%2013.8743%2016.3768%2013.8391C16.3414%2013.8038%2016.3173%2013.7589%2016.3076%2013.7099C16.2978%2013.661%2016.3028%2013.6103%2016.322%2013.5642C16.3411%2013.5182%2016.3735%2013.4788%2016.4151%2013.4511C16.4566%2013.4234%2016.5055%2013.4086%2016.5555%2013.4086C16.6225%2013.4086%2016.6868%2013.4351%2016.7342%2013.4824C16.7816%2013.5297%2016.8082%2013.5939%2016.8082%2013.6607Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_7'%20d='M15.6008%2016.0612C15.5633%2016.0097%2015.5141%2015.9677%2015.4573%2015.9388C15.4005%2015.9099%2015.3376%2015.8949%2015.2738%2015.8949H15.1898C15.126%2015.8948%2015.0631%2015.9099%2015.0062%2015.9388C14.9494%2015.9677%2014.9002%2016.0096%2014.8627%2016.0612C14.8627%2016.0612%2013.6074%2017.4973%2014.1816%2021.0915C14.4989%2023.0777%2015.2314%2023.6694%2015.2314%2023.6694C15.2314%2023.6694%2015.9639%2023.0777%2016.2819%2021.0915C16.8561%2017.4973%2015.6008%2016.0612%2015.6008%2016.0612Z'%20fill='%23FDFDFD'/%3e%3cpath%20id='Vector_8'%20d='M15.1468%2015.8949C15.083%2015.8948%2015.0201%2015.9099%2014.9632%2015.9388C14.9064%2015.9677%2014.8572%2016.0096%2014.8198%2016.0612C14.8198%2016.0612%2013.5645%2017.4973%2014.1387%2021.0915C14.456%2023.0777%2015.1884%2023.6694%2015.1884%2023.6694V15.8949H15.1468Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e", J0 = "data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='15.3062'%20cy='15.2144'%20r='14.3521'%20stroke='%2392898A'%20stroke-width='1.5'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M11.9898%2012.7234V9.89008C11.9898%208.88815%2012.3811%207.92726%2013.0777%207.21879C13.7743%206.51032%2014.719%206.1123%2015.7041%206.1123C16.6892%206.1123%2017.6339%206.51032%2018.3305%207.21879C19.0271%207.92726%2019.4184%208.88815%2019.4184%209.89008V12.7234H20.347C20.8395%2012.7234%2021.3119%2012.9224%2021.6602%2013.2767C22.0084%2013.6309%2022.2041%2014.1113%2022.2041%2014.6123V21.2234C22.2041%2021.7244%2022.0084%2022.2048%2021.6602%2022.5591C21.3119%2022.9133%2020.8395%2023.1123%2020.347%2023.1123H11.0612C10.5687%2023.1123%2010.0963%2022.9133%209.74805%2022.5591C9.39976%2022.2048%209.2041%2021.7244%209.2041%2021.2234V14.6123C9.2041%2014.1113%209.39976%2013.6309%209.74805%2013.2767C10.0963%2012.9224%2010.5687%2012.7234%2011.0612%2012.7234H11.9898ZM13.847%209.89008C13.847%209.38912%2014.0426%208.90867%2014.3909%208.55444C14.7392%208.2002%2015.2116%208.00119%2015.7041%208.00119C16.1966%208.00119%2016.669%208.2002%2017.0173%208.55444C17.3656%208.90867%2017.5612%209.38912%2017.5612%209.89008V12.7234H13.847V9.89008ZM15.7041%2015.5567C15.9504%2015.5567%2016.1866%2015.6563%2016.3607%2015.8334C16.5348%2016.0105%2016.6327%2016.2507%2016.6327%2016.5012V19.3345C16.6327%2019.585%2016.5348%2019.8252%2016.3607%2020.0023C16.1866%2020.1795%2015.9504%2020.279%2015.7041%2020.279C15.4578%2020.279%2015.2216%2020.1795%2015.0475%2020.0023C14.8734%2019.8252%2014.7755%2019.585%2014.7755%2019.3345V16.5012C14.7755%2016.2507%2014.8734%2016.0105%2015.0475%2015.8334C15.2216%2015.6563%2015.4578%2015.5567%2015.7041%2015.5567Z'%20fill='%2392898A'/%3e%3c/svg%3e";
|
|
2668
2673
|
var ot;
|
|
2669
|
-
function
|
|
2670
|
-
return
|
|
2674
|
+
function ze() {
|
|
2675
|
+
return ze = Object.assign ? Object.assign.bind() : function(n) {
|
|
2671
2676
|
for (var d = 1; d < arguments.length; d++) {
|
|
2672
2677
|
var s = arguments[d];
|
|
2673
2678
|
for (var o in s) ({}).hasOwnProperty.call(s, o) && (n[o] = s[o]);
|
|
2674
2679
|
}
|
|
2675
2680
|
return n;
|
|
2676
|
-
},
|
|
2681
|
+
}, ze.apply(null, arguments);
|
|
2677
2682
|
}
|
|
2678
2683
|
var ei = function(d) {
|
|
2679
|
-
return /* @__PURE__ */ pe.createElement("svg",
|
|
2684
|
+
return /* @__PURE__ */ pe.createElement("svg", ze({
|
|
2680
2685
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2681
2686
|
width: 26,
|
|
2682
2687
|
height: 14,
|
|
@@ -2700,17 +2705,17 @@ const ti = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2700
2705
|
elementButtons: l,
|
|
2701
2706
|
processTooltip: c,
|
|
2702
2707
|
defaultTooltip: u,
|
|
2703
|
-
showEye:
|
|
2708
|
+
showEye: m = !0
|
|
2704
2709
|
}) => {
|
|
2705
|
-
const { name: g, created_at:
|
|
2706
|
-
return /* @__PURE__ */
|
|
2710
|
+
const { name: g, created_at: b, id: y, isBeingProcessed: _ } = n, [v, p] = V(!1), { t: f } = $();
|
|
2711
|
+
return /* @__PURE__ */ h(
|
|
2707
2712
|
"div",
|
|
2708
2713
|
{
|
|
2709
2714
|
className: K.listElement,
|
|
2710
2715
|
style: { borderBottom: `1px solid ${t}` },
|
|
2711
2716
|
children: [
|
|
2712
|
-
/* @__PURE__ */ i("div", { className: K.elementNameDate, onClick: () => d(
|
|
2713
|
-
|
|
2717
|
+
/* @__PURE__ */ i("div", { className: K.elementNameDate, onClick: () => d(y), children: Object.keys(a).map((C) => C === "name" ? /* @__PURE__ */ i("div", { className: K.elementNameContainer, children: /* @__PURE__ */ h("div", { className: K.elementName, children: [
|
|
2718
|
+
m && (s ? /* @__PURE__ */ i(ei, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ i(
|
|
2714
2719
|
"img",
|
|
2715
2720
|
{
|
|
2716
2721
|
style: { marginRight: 9 },
|
|
@@ -2719,36 +2724,36 @@ const ti = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2719
2724
|
}
|
|
2720
2725
|
)),
|
|
2721
2726
|
/* @__PURE__ */ i("span", { style: { color: s ? o : t }, children: g })
|
|
2722
|
-
] }) }) :
|
|
2723
|
-
/* @__PURE__ */
|
|
2724
|
-
n.processing && /* @__PURE__ */
|
|
2727
|
+
] }) }) : C == "data" ? /* @__PURE__ */ i("div", { className: K.elementDate, children: b ? new Date(b).toLocaleDateString() : "" }) : /* @__PURE__ */ i("div", { className: K.elementDate, children: n[C] })) }),
|
|
2728
|
+
/* @__PURE__ */ h("div", { className: K.elementButtons, children: [
|
|
2729
|
+
n.processing && /* @__PURE__ */ h("div", { className: "tooltip-parent", children: [
|
|
2725
2730
|
/* @__PURE__ */ i("img", { src: X0 }),
|
|
2726
2731
|
/* @__PURE__ */ i(ie, { text: c, position: "left" })
|
|
2727
2732
|
] }),
|
|
2728
|
-
l.filter && !n.is_default && /* @__PURE__ */
|
|
2733
|
+
l.filter && !n.is_default && /* @__PURE__ */ h("div", { className: "tooltip-parent", children: [
|
|
2729
2734
|
/* @__PURE__ */ i("button", { onClick: () => l.filter.onclick(n), children: /* @__PURE__ */ i("img", { src: Q0 }) }),
|
|
2730
2735
|
/* @__PURE__ */ i(ie, { text: l.filter.tooltiptext, position: "left" })
|
|
2731
2736
|
] }),
|
|
2732
|
-
l.copy && /* @__PURE__ */
|
|
2737
|
+
l.copy && /* @__PURE__ */ h("div", { className: "tooltip-parent", children: [
|
|
2733
2738
|
/* @__PURE__ */ i("button", { onClick: () => l.copy.onclick(n), children: /* @__PURE__ */ i("img", { src: Y0 }) }),
|
|
2734
2739
|
/* @__PURE__ */ i(ie, { text: l.copy.tooltiptext, position: "left" })
|
|
2735
2740
|
] }),
|
|
2736
|
-
l.trash && !n.is_default && /* @__PURE__ */
|
|
2741
|
+
l.trash && !n.is_default && /* @__PURE__ */ h("div", { className: "tooltip-parent", children: [
|
|
2737
2742
|
/* @__PURE__ */ i("button", { onClick: () => l.trash.onclick(n), children: /* @__PURE__ */ i("img", { src: W0 }) }),
|
|
2738
2743
|
/* @__PURE__ */ i(ie, { text: l.trash.tooltiptext, position: "left" })
|
|
2739
2744
|
] }),
|
|
2740
|
-
n.is_default && /* @__PURE__ */
|
|
2745
|
+
n.is_default && /* @__PURE__ */ h("div", { className: "tooltip-parent", children: [
|
|
2741
2746
|
/* @__PURE__ */ i("img", { src: J0 }),
|
|
2742
2747
|
/* @__PURE__ */ i(ie, { text: u, position: "left" })
|
|
2743
2748
|
] })
|
|
2744
2749
|
] }),
|
|
2745
2750
|
r && /* @__PURE__ */ i("div", { className: K.break }),
|
|
2746
|
-
r && /* @__PURE__ */
|
|
2747
|
-
/* @__PURE__ */
|
|
2748
|
-
/* @__PURE__ */ i("span", { children:
|
|
2749
|
-
|
|
2751
|
+
r && /* @__PURE__ */ h("div", { className: K.moreInfoContainer, children: [
|
|
2752
|
+
/* @__PURE__ */ h("div", { className: K.moreInfo, onClick: () => p(!v), children: [
|
|
2753
|
+
/* @__PURE__ */ i("span", { children: v ? "-" : "+" }),
|
|
2754
|
+
f(r.label)
|
|
2750
2755
|
] }),
|
|
2751
|
-
r &&
|
|
2756
|
+
r && v && /* @__PURE__ */ i("div", { className: K.moreInfoInfo, children: n[r.info] })
|
|
2752
2757
|
] })
|
|
2753
2758
|
]
|
|
2754
2759
|
}
|
|
@@ -2799,68 +2804,68 @@ const rt = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2799
2804
|
containerStyles: r = {},
|
|
2800
2805
|
newElementButton: a,
|
|
2801
2806
|
//{label: 'text', onClick: function(), disabled}/null
|
|
2802
|
-
onClickElement: l = (
|
|
2807
|
+
onClickElement: l = (_) => console.log(`OnCLickElement: ${_}`),
|
|
2803
2808
|
columns: c,
|
|
2804
2809
|
// {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
|
|
2805
2810
|
elementButtons: u,
|
|
2806
2811
|
//{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
|
|
2807
|
-
moreInfo:
|
|
2812
|
+
moreInfo: m = !1,
|
|
2808
2813
|
//{label: 'x'}
|
|
2809
2814
|
processTooltip: g,
|
|
2810
2815
|
//texto para el tooltip del simbolo "En proceso"
|
|
2811
|
-
defaultTooltip:
|
|
2816
|
+
defaultTooltip: b,
|
|
2812
2817
|
//texto para el tooltip del símbolo de candado para los elementos default
|
|
2813
|
-
showEye:
|
|
2818
|
+
showEye: y = !0
|
|
2814
2819
|
}) => {
|
|
2815
|
-
const { t:
|
|
2820
|
+
const { t: _ } = $(), [v, p] = V(n);
|
|
2816
2821
|
F(() => {
|
|
2817
|
-
n &&
|
|
2822
|
+
n && p(n);
|
|
2818
2823
|
}, [n]);
|
|
2819
|
-
const
|
|
2820
|
-
if (
|
|
2821
|
-
let x = [...
|
|
2822
|
-
x.sort((w, N) => w[
|
|
2824
|
+
const f = (C) => {
|
|
2825
|
+
if (v && v.length > 0) {
|
|
2826
|
+
let x = [...v];
|
|
2827
|
+
x.sort((w, N) => w[C].localeCompare(N[C])), p(x);
|
|
2823
2828
|
}
|
|
2824
2829
|
};
|
|
2825
|
-
return /* @__PURE__ */
|
|
2830
|
+
return /* @__PURE__ */ h(
|
|
2826
2831
|
"div",
|
|
2827
2832
|
{
|
|
2828
2833
|
className: H.elementSelector,
|
|
2829
2834
|
style: { color: s, ...r },
|
|
2830
2835
|
children: [
|
|
2831
|
-
/* @__PURE__ */
|
|
2836
|
+
/* @__PURE__ */ h(
|
|
2832
2837
|
"div",
|
|
2833
2838
|
{
|
|
2834
2839
|
className: H.header,
|
|
2835
2840
|
style: { borderBottom: `1px solid ${s}` },
|
|
2836
2841
|
children: [
|
|
2837
|
-
/* @__PURE__ */ i("div", { className: H.nameDateContainer, children: Object.keys(c).map((
|
|
2838
|
-
/* @__PURE__ */ i("span", { children:
|
|
2842
|
+
/* @__PURE__ */ i("div", { className: H.nameDateContainer, children: Object.keys(c).map((C) => C === "name" ? /* @__PURE__ */ i("div", { className: H.elementName, children: /* @__PURE__ */ h("button", { onClick: () => f("name"), children: [
|
|
2843
|
+
/* @__PURE__ */ i("span", { children: _(c.name) }),
|
|
2839
2844
|
/* @__PURE__ */ i("img", { src: rt, alt: "order arrow" })
|
|
2840
|
-
] }) },
|
|
2841
|
-
/* @__PURE__ */ i("span", { children:
|
|
2845
|
+
] }) }, C) : C === "data" ? /* @__PURE__ */ i("div", { className: H.elementDate, children: /* @__PURE__ */ h("button", { onClick: () => f("date"), children: [
|
|
2846
|
+
/* @__PURE__ */ i("span", { children: _(c.data) }),
|
|
2842
2847
|
/* @__PURE__ */ i("img", { src: rt, alt: "order arrow" })
|
|
2843
|
-
] }) },
|
|
2848
|
+
] }) }, C) : /* @__PURE__ */ i("div", { className: H.elementDate, children: /* @__PURE__ */ i("span", { children: _(c[C]) }) }, C)) }),
|
|
2844
2849
|
/* @__PURE__ */ i("div", { className: H.buttonsContainer })
|
|
2845
2850
|
]
|
|
2846
2851
|
}
|
|
2847
2852
|
),
|
|
2848
|
-
/* @__PURE__ */ i("div", { className: H.elementListContainer, children:
|
|
2853
|
+
/* @__PURE__ */ i("div", { className: H.elementListContainer, children: v && v.length > 0 && v.map((C) => /* @__PURE__ */ i(
|
|
2849
2854
|
Nt,
|
|
2850
2855
|
{
|
|
2851
|
-
isActive: d ==
|
|
2852
|
-
listelement:
|
|
2856
|
+
isActive: d == C.id,
|
|
2857
|
+
listelement: C,
|
|
2853
2858
|
fontColor: s,
|
|
2854
2859
|
activeColor: o,
|
|
2855
2860
|
onClickElement: l,
|
|
2856
2861
|
columns: c,
|
|
2857
2862
|
elementButtons: u,
|
|
2858
|
-
moreInfo:
|
|
2863
|
+
moreInfo: m,
|
|
2859
2864
|
processTooltip: g,
|
|
2860
|
-
defaultTooltip:
|
|
2861
|
-
showEye:
|
|
2865
|
+
defaultTooltip: b,
|
|
2866
|
+
showEye: y
|
|
2862
2867
|
},
|
|
2863
|
-
`elementKey${
|
|
2868
|
+
`elementKey${C.id}`
|
|
2864
2869
|
)) }),
|
|
2865
2870
|
a && /* @__PURE__ */ i("div", { className: H.newElementButtonContainer, children: /* @__PURE__ */ i(
|
|
2866
2871
|
Te,
|
|
@@ -2869,7 +2874,7 @@ const rt = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2869
2874
|
onClick: a.onClick,
|
|
2870
2875
|
borderColor: "grey",
|
|
2871
2876
|
disabled: a.disabled || !1,
|
|
2872
|
-
children:
|
|
2877
|
+
children: _(a.label)
|
|
2873
2878
|
}
|
|
2874
2879
|
) })
|
|
2875
2880
|
]
|
|
@@ -2955,11 +2960,11 @@ function St(n) {
|
|
|
2955
2960
|
return n;
|
|
2956
2961
|
return d;
|
|
2957
2962
|
}
|
|
2958
|
-
var $t = (n) => /^\w*$/.test(n),
|
|
2963
|
+
var $t = (n) => /^\w*$/.test(n), Ze = (n) => n === void 0, gi = (n) => Array.isArray(n) ? n.filter(Boolean) : [], Bt = (n) => gi(n.replace(/["|']|\]/g, "").split(/\.|\[/)), P = (n, d, s) => {
|
|
2959
2964
|
if (!d || !_e(n))
|
|
2960
2965
|
return s;
|
|
2961
2966
|
const o = ($t(d) ? [d] : Bt(d)).reduce((t, r) => kt(t) ? t : t[r], n);
|
|
2962
|
-
return
|
|
2967
|
+
return Ze(o) || o === n ? Ze(n[d]) ? s : n[d] : o;
|
|
2963
2968
|
}, Oe = (n) => typeof n == "boolean", at = (n, d, s) => {
|
|
2964
2969
|
let o = -1;
|
|
2965
2970
|
const t = $t(d) ? [d] : Bt(d), r = t.length, a = r - 1;
|
|
@@ -3031,7 +3036,7 @@ function _i(n) {
|
|
|
3031
3036
|
values: !0
|
|
3032
3037
|
},
|
|
3033
3038
|
exact: a,
|
|
3034
|
-
callback: (
|
|
3039
|
+
callback: (m) => !r && u(yi(o, s._names, m.values || s._formValues, !1, l.current))
|
|
3035
3040
|
}), [o, s, r, a]), M.useEffect(() => s._removeUnmounted()), c;
|
|
3036
3041
|
}
|
|
3037
3042
|
function vi(n) {
|
|
@@ -3044,7 +3049,7 @@ function vi(n) {
|
|
|
3044
3049
|
control: t,
|
|
3045
3050
|
name: s,
|
|
3046
3051
|
exact: !0
|
|
3047
|
-
}), u = M.useRef(n),
|
|
3052
|
+
}), u = M.useRef(n), m = M.useRef(t.register(s, {
|
|
3048
3053
|
...n.rules,
|
|
3049
3054
|
value: l,
|
|
3050
3055
|
...Oe(n.disabled) ? { disabled: n.disabled } : {}
|
|
@@ -3069,50 +3074,50 @@ function vi(n) {
|
|
|
3069
3074
|
enumerable: !0,
|
|
3070
3075
|
get: () => P(c.errors, s)
|
|
3071
3076
|
}
|
|
3072
|
-
}), [c, s]),
|
|
3077
|
+
}), [c, s]), b = M.useCallback((p) => m.current.onChange({
|
|
3073
3078
|
target: {
|
|
3074
|
-
value: di(
|
|
3079
|
+
value: di(p),
|
|
3075
3080
|
name: s
|
|
3076
3081
|
},
|
|
3077
3082
|
type: lt.CHANGE
|
|
3078
|
-
}), [s]),
|
|
3083
|
+
}), [s]), y = M.useCallback(() => m.current.onBlur({
|
|
3079
3084
|
target: {
|
|
3080
3085
|
value: P(t._formValues, s),
|
|
3081
3086
|
name: s
|
|
3082
3087
|
},
|
|
3083
3088
|
type: lt.BLUR
|
|
3084
|
-
}), [s, t._formValues]),
|
|
3085
|
-
const
|
|
3086
|
-
|
|
3087
|
-
focus: () =>
|
|
3088
|
-
select: () =>
|
|
3089
|
-
setCustomValidity: (
|
|
3090
|
-
reportValidity: () =>
|
|
3089
|
+
}), [s, t._formValues]), _ = M.useCallback((p) => {
|
|
3090
|
+
const f = P(t._fields, s);
|
|
3091
|
+
f && p && (f._f.ref = {
|
|
3092
|
+
focus: () => p.focus && p.focus(),
|
|
3093
|
+
select: () => p.select && p.select(),
|
|
3094
|
+
setCustomValidity: (C) => p.setCustomValidity(C),
|
|
3095
|
+
reportValidity: () => p.reportValidity()
|
|
3091
3096
|
});
|
|
3092
|
-
}, [t._fields, s]),
|
|
3097
|
+
}, [t._fields, s]), v = M.useMemo(() => ({
|
|
3093
3098
|
name: s,
|
|
3094
3099
|
value: l,
|
|
3095
3100
|
...Oe(o) || c.disabled ? { disabled: c.disabled || o } : {},
|
|
3096
|
-
onChange:
|
|
3097
|
-
onBlur:
|
|
3098
|
-
ref:
|
|
3099
|
-
}), [s, o, c.disabled, y, _,
|
|
3101
|
+
onChange: b,
|
|
3102
|
+
onBlur: y,
|
|
3103
|
+
ref: _
|
|
3104
|
+
}), [s, o, c.disabled, b, y, _, l]);
|
|
3100
3105
|
return M.useEffect(() => {
|
|
3101
|
-
const
|
|
3106
|
+
const p = t._options.shouldUnregister || r;
|
|
3102
3107
|
t.register(s, {
|
|
3103
3108
|
...u.current.rules,
|
|
3104
3109
|
...Oe(u.current.disabled) ? { disabled: u.current.disabled } : {}
|
|
3105
3110
|
});
|
|
3106
|
-
const
|
|
3107
|
-
const w = P(t._fields,
|
|
3111
|
+
const f = (C, x) => {
|
|
3112
|
+
const w = P(t._fields, C);
|
|
3108
3113
|
w && w._f && (w._f.mount = x);
|
|
3109
3114
|
};
|
|
3110
|
-
if (
|
|
3111
|
-
const
|
|
3112
|
-
at(t._defaultValues, s,
|
|
3115
|
+
if (f(s, !0), p) {
|
|
3116
|
+
const C = St(P(t._options.defaultValues, s));
|
|
3117
|
+
at(t._defaultValues, s, C), Ze(P(t._formValues, s)) && at(t._formValues, s, C);
|
|
3113
3118
|
}
|
|
3114
3119
|
return !a && t.register(s), () => {
|
|
3115
|
-
(a ?
|
|
3120
|
+
(a ? p && !t._state.action : p) ? t.unregister(s) : f(s, !1);
|
|
3116
3121
|
};
|
|
3117
3122
|
}, [s, t, a, r]), M.useEffect(() => {
|
|
3118
3123
|
t._setDisabledField({
|
|
@@ -3120,10 +3125,10 @@ function vi(n) {
|
|
|
3120
3125
|
name: s
|
|
3121
3126
|
});
|
|
3122
3127
|
}, [o, s, t]), M.useMemo(() => ({
|
|
3123
|
-
field:
|
|
3128
|
+
field: v,
|
|
3124
3129
|
formState: c,
|
|
3125
3130
|
fieldState: g
|
|
3126
|
-
}), [
|
|
3131
|
+
}), [v, c, g]);
|
|
3127
3132
|
}
|
|
3128
3133
|
const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_labelContainer_1o3iy_5", Ni = "_inputContainer_1o3iy_8", ki = "_showPasswordButton_1o3iy_14", Si = "_forgotPassButton_1o3iy_26", be = {
|
|
3129
3134
|
textInputContainer: wi,
|
|
@@ -3159,36 +3164,36 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3159
3164
|
validateFunction: l,
|
|
3160
3165
|
placeholder: c,
|
|
3161
3166
|
errorColor: u = "red",
|
|
3162
|
-
width:
|
|
3167
|
+
width: m = 325,
|
|
3163
3168
|
onClickForgotPass: g = () => {
|
|
3164
3169
|
console.log("Click on forgot password");
|
|
3165
3170
|
},
|
|
3166
|
-
forgotPassLabel:
|
|
3167
|
-
} = n, { t:
|
|
3171
|
+
forgotPassLabel: b = "forgot-password"
|
|
3172
|
+
} = n, { t: y } = $(), { control: _, trigger: v, clearErrors: p } = d, { errorColor: f } = xe((N) => N), [C, x] = V(!1);
|
|
3168
3173
|
se(a);
|
|
3169
|
-
const w = () => o ? o === "password" &&
|
|
3174
|
+
const w = () => o ? o === "password" && C ? "text" : o : "text";
|
|
3170
3175
|
return /* @__PURE__ */ i(
|
|
3171
3176
|
ve,
|
|
3172
3177
|
{
|
|
3173
3178
|
name: s,
|
|
3174
|
-
control:
|
|
3179
|
+
control: _,
|
|
3175
3180
|
rules: {
|
|
3176
|
-
required: a ? `${
|
|
3181
|
+
required: a ? `${y(t)} ${y("errorMessages.required")}` : !1,
|
|
3177
3182
|
maxLength: r || void 0,
|
|
3178
3183
|
validate: l || void 0
|
|
3179
3184
|
},
|
|
3180
3185
|
render: ({ field: N, fieldState: S }) => {
|
|
3181
3186
|
var L;
|
|
3182
|
-
return /* @__PURE__ */
|
|
3183
|
-
/* @__PURE__ */
|
|
3184
|
-
|
|
3187
|
+
return /* @__PURE__ */ h("div", { className: be.textInputContainer, children: [
|
|
3188
|
+
/* @__PURE__ */ h("h3", { className: be.labelContainer, children: [
|
|
3189
|
+
y(t),
|
|
3185
3190
|
" ",
|
|
3186
3191
|
a && /* @__PURE__ */ i("label", { style: { color: S.error ? u : "" }, children: "*" })
|
|
3187
3192
|
] }),
|
|
3188
|
-
/* @__PURE__ */
|
|
3193
|
+
/* @__PURE__ */ h(
|
|
3189
3194
|
"div",
|
|
3190
3195
|
{
|
|
3191
|
-
style: { position: "relative", width:
|
|
3196
|
+
style: { position: "relative", width: m },
|
|
3192
3197
|
className: be.inputContainer,
|
|
3193
3198
|
children: [
|
|
3194
3199
|
/* @__PURE__ */ i(
|
|
@@ -3196,28 +3201,28 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3196
3201
|
{
|
|
3197
3202
|
type: w(),
|
|
3198
3203
|
...N,
|
|
3199
|
-
placeholder: c ?
|
|
3204
|
+
placeholder: c ? y(c) : "",
|
|
3200
3205
|
maxLength: r || void 0
|
|
3201
3206
|
}
|
|
3202
3207
|
),
|
|
3203
3208
|
o == "password" && /* @__PURE__ */ i(
|
|
3204
3209
|
"button",
|
|
3205
3210
|
{
|
|
3206
|
-
onClick: () => x(!
|
|
3211
|
+
onClick: () => x(!C),
|
|
3207
3212
|
type: "button",
|
|
3208
3213
|
className: be.showPasswordButton,
|
|
3209
|
-
children:
|
|
3214
|
+
children: C ? "🙈" : "👁️"
|
|
3210
3215
|
}
|
|
3211
3216
|
)
|
|
3212
3217
|
]
|
|
3213
3218
|
}
|
|
3214
3219
|
),
|
|
3215
|
-
o == "password" && /* @__PURE__ */ i("div", { className: be.forgotPassButton, children: /* @__PURE__ */ i("button", { onClick: g, children:
|
|
3220
|
+
o == "password" && /* @__PURE__ */ i("div", { className: be.forgotPassButton, children: /* @__PURE__ */ i("button", { onClick: g, children: y(b) }) }),
|
|
3216
3221
|
/* @__PURE__ */ i(
|
|
3217
3222
|
we,
|
|
3218
3223
|
{
|
|
3219
3224
|
errorMessage: (L = S.error) == null ? void 0 : L.message,
|
|
3220
|
-
errorColor:
|
|
3225
|
+
errorColor: f || u
|
|
3221
3226
|
}
|
|
3222
3227
|
)
|
|
3223
3228
|
] });
|
|
@@ -3243,47 +3248,47 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3243
3248
|
validateFunction: l,
|
|
3244
3249
|
placeholder: c,
|
|
3245
3250
|
errorColor: u = "red",
|
|
3246
|
-
width:
|
|
3251
|
+
width: m = 325,
|
|
3247
3252
|
options: g = []
|
|
3248
|
-
} = n, { t:
|
|
3253
|
+
} = n, { t: b } = $(), { control: y, trigger: _, clearErrors: v } = d, { errorColor: p } = xe((f) => f);
|
|
3249
3254
|
return se(a), /* @__PURE__ */ i(
|
|
3250
3255
|
ve,
|
|
3251
3256
|
{
|
|
3252
3257
|
name: s,
|
|
3253
|
-
control:
|
|
3258
|
+
control: y,
|
|
3254
3259
|
rules: {
|
|
3255
|
-
required: a ? `${
|
|
3256
|
-
validate: l ? (
|
|
3257
|
-
let
|
|
3258
|
-
return l(
|
|
3260
|
+
required: a ? `${b(t)} ${b("errorMessages.required")}` : !1,
|
|
3261
|
+
validate: l ? (f) => {
|
|
3262
|
+
let C = d.getValues();
|
|
3263
|
+
return l(f, C);
|
|
3259
3264
|
} : void 0
|
|
3260
3265
|
},
|
|
3261
|
-
render: ({ field:
|
|
3266
|
+
render: ({ field: f, fieldState: C }) => {
|
|
3262
3267
|
var x;
|
|
3263
|
-
return /* @__PURE__ */
|
|
3264
|
-
/* @__PURE__ */
|
|
3265
|
-
|
|
3268
|
+
return /* @__PURE__ */ h("div", { className: de.selectInputContainer, children: [
|
|
3269
|
+
/* @__PURE__ */ h("h3", { className: de.labelContainer, children: [
|
|
3270
|
+
b(t),
|
|
3266
3271
|
" ",
|
|
3267
|
-
a && /* @__PURE__ */ i("label", { style: { color:
|
|
3272
|
+
a && /* @__PURE__ */ i("label", { style: { color: C.error ? u : "" }, children: "*" })
|
|
3268
3273
|
] }),
|
|
3269
|
-
/* @__PURE__ */
|
|
3270
|
-
/* @__PURE__ */
|
|
3274
|
+
/* @__PURE__ */ h("div", { className: de.inputContainer, style: { width: m }, children: [
|
|
3275
|
+
/* @__PURE__ */ h(
|
|
3271
3276
|
"select",
|
|
3272
3277
|
{
|
|
3273
|
-
...
|
|
3278
|
+
...f,
|
|
3274
3279
|
onChange: (w) => {
|
|
3275
3280
|
const N = w.target.value, S = g.every((L) => typeof L.value == "number") ? Number(N) : N;
|
|
3276
|
-
|
|
3281
|
+
f.onChange(S);
|
|
3277
3282
|
},
|
|
3278
3283
|
className: de.selectInput,
|
|
3279
3284
|
children: [
|
|
3280
|
-
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children:
|
|
3285
|
+
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: b(c || "selectOption") }),
|
|
3281
3286
|
g.map((w, N) => /* @__PURE__ */ i(
|
|
3282
3287
|
"option",
|
|
3283
3288
|
{
|
|
3284
3289
|
value: w.value,
|
|
3285
3290
|
className: de.option,
|
|
3286
|
-
children:
|
|
3291
|
+
children: b(w.label)
|
|
3287
3292
|
},
|
|
3288
3293
|
N
|
|
3289
3294
|
))
|
|
@@ -3302,22 +3307,22 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3302
3307
|
/* @__PURE__ */ i(
|
|
3303
3308
|
we,
|
|
3304
3309
|
{
|
|
3305
|
-
errorMessage: (x =
|
|
3306
|
-
errorColor:
|
|
3310
|
+
errorMessage: (x = C.error) == null ? void 0 : x.message,
|
|
3311
|
+
errorColor: p || u
|
|
3307
3312
|
}
|
|
3308
3313
|
)
|
|
3309
3314
|
] });
|
|
3310
3315
|
}
|
|
3311
3316
|
}
|
|
3312
3317
|
);
|
|
3313
|
-
}, Ri = "_radioButtonContainer_1e994_2", qi = "_wholeInputContainer_1e994_5", Ei = "_questionContainer_1e994_27", Pi = "_radioQuestion_1e994_59", ji = "_inputContainer_1e994_63",
|
|
3318
|
+
}, Ri = "_radioButtonContainer_1e994_2", qi = "_wholeInputContainer_1e994_5", Ei = "_questionContainer_1e994_27", Pi = "_radioQuestion_1e994_59", ji = "_inputContainer_1e994_63", zi = "_radioInput_1e994_93", te = {
|
|
3314
3319
|
radioButtonContainer: Ri,
|
|
3315
3320
|
wholeInputContainer: qi,
|
|
3316
3321
|
questionContainer: Ei,
|
|
3317
3322
|
radioQuestion: Pi,
|
|
3318
3323
|
inputContainer: ji,
|
|
3319
|
-
radioInput:
|
|
3320
|
-
},
|
|
3324
|
+
radioInput: zi
|
|
3325
|
+
}, Zi = ({ input: n, reactHookFormInstance: d }) => {
|
|
3321
3326
|
const {
|
|
3322
3327
|
code: s,
|
|
3323
3328
|
label: o,
|
|
@@ -3326,30 +3331,30 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3326
3331
|
errorColor: a = "red",
|
|
3327
3332
|
options: l = [],
|
|
3328
3333
|
multi: c = !1
|
|
3329
|
-
} = n, { t: u } = $(), { control:
|
|
3330
|
-
if (c &&
|
|
3331
|
-
let x =
|
|
3332
|
-
|
|
3334
|
+
} = n, { t: u } = $(), { control: m, trigger: g, clearErrors: b } = d, { errorColor: y } = xe((p) => p), _ = ({ options: p, onChange: f, actualValue: C }) => {
|
|
3335
|
+
if (c && C && C.length > 0) {
|
|
3336
|
+
let x = C.filter((w) => w !== p);
|
|
3337
|
+
f(x);
|
|
3333
3338
|
}
|
|
3334
|
-
},
|
|
3335
|
-
c ?
|
|
3339
|
+
}, v = ({ options: p, onChange: f, actualValue: C }) => {
|
|
3340
|
+
c ? C && C.length > 0 ? f([...C, p]) : f([p]) : f(p);
|
|
3336
3341
|
};
|
|
3337
3342
|
return se(t), /* @__PURE__ */ i(
|
|
3338
3343
|
ve,
|
|
3339
3344
|
{
|
|
3340
|
-
control:
|
|
3345
|
+
control: m,
|
|
3341
3346
|
name: s,
|
|
3342
3347
|
rules: {
|
|
3343
|
-
validate: (
|
|
3348
|
+
validate: (p) => t && (p == null || p === "") ? `${u(o)} ${u("errorMessages.required")}` : null
|
|
3344
3349
|
},
|
|
3345
3350
|
render: ({
|
|
3346
|
-
formState: { errors:
|
|
3347
|
-
field: { onChange:
|
|
3351
|
+
formState: { errors: p },
|
|
3352
|
+
field: { onChange: f, onBlur: C, value: x, ref: w },
|
|
3348
3353
|
fieldState: N
|
|
3349
3354
|
}) => {
|
|
3350
3355
|
var S;
|
|
3351
|
-
return /* @__PURE__ */ i("div", { id: s + "id", className: te.radioButtonContainer, children: /* @__PURE__ */
|
|
3352
|
-
o && /* @__PURE__ */ i("div", { className: te.questionContainer, children: /* @__PURE__ */
|
|
3356
|
+
return /* @__PURE__ */ i("div", { id: s + "id", className: te.radioButtonContainer, children: /* @__PURE__ */ h("div", { className: te.wholeInputContainer, children: [
|
|
3357
|
+
o && /* @__PURE__ */ i("div", { className: te.questionContainer, children: /* @__PURE__ */ h(
|
|
3353
3358
|
"h3",
|
|
3354
3359
|
{
|
|
3355
3360
|
htmlFor: s + "id",
|
|
@@ -3367,7 +3372,7 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3367
3372
|
]
|
|
3368
3373
|
}
|
|
3369
3374
|
) }),
|
|
3370
|
-
/* @__PURE__ */
|
|
3375
|
+
/* @__PURE__ */ h("div", { className: te.inputContainer, children: [
|
|
3371
3376
|
l.map(
|
|
3372
3377
|
({
|
|
3373
3378
|
label: L,
|
|
@@ -3375,23 +3380,23 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3375
3380
|
disabled: B = !1,
|
|
3376
3381
|
italicLabel: O
|
|
3377
3382
|
}, R) => {
|
|
3378
|
-
const T = x && c ? x.isArray && (x == null ? void 0 : x.length) > 0 && x.some((
|
|
3379
|
-
return /* @__PURE__ */
|
|
3383
|
+
const T = x && c ? x.isArray && (x == null ? void 0 : x.length) > 0 && x.some((Z) => Z === k) : x === k;
|
|
3384
|
+
return /* @__PURE__ */ h("label", { children: [
|
|
3380
3385
|
/* @__PURE__ */ i(
|
|
3381
3386
|
"input",
|
|
3382
3387
|
{
|
|
3383
3388
|
type: "radio",
|
|
3384
3389
|
checked: T,
|
|
3385
3390
|
onChange: () => {
|
|
3386
|
-
c ? T ?
|
|
3391
|
+
c ? T ? _({
|
|
3387
3392
|
actualValue: x,
|
|
3388
3393
|
options: l,
|
|
3389
|
-
onChange:
|
|
3390
|
-
}) :
|
|
3394
|
+
onChange: f
|
|
3395
|
+
}) : v({
|
|
3391
3396
|
actualValue: x,
|
|
3392
3397
|
options: l,
|
|
3393
|
-
onChange:
|
|
3394
|
-
}) :
|
|
3398
|
+
onChange: f
|
|
3399
|
+
}) : f(k);
|
|
3395
3400
|
},
|
|
3396
3401
|
className: te.radioInput
|
|
3397
3402
|
}
|
|
@@ -3405,7 +3410,7 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3405
3410
|
we,
|
|
3406
3411
|
{
|
|
3407
3412
|
errorMessage: (S = N.error) == null ? void 0 : S.message,
|
|
3408
|
-
errorColor:
|
|
3413
|
+
errorColor: y || a
|
|
3409
3414
|
}
|
|
3410
3415
|
)
|
|
3411
3416
|
] })
|
|
@@ -3432,18 +3437,18 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3432
3437
|
thumbColor: c = "#B32F5D",
|
|
3433
3438
|
//trackColors = ["#B32F5D", "#EFEFEF"],
|
|
3434
3439
|
required: u,
|
|
3435
|
-
errorColor:
|
|
3440
|
+
errorColor: m = "red",
|
|
3436
3441
|
labelWidth: g = "300px",
|
|
3437
|
-
sliderWidth:
|
|
3438
|
-
minText:
|
|
3439
|
-
maxText:
|
|
3440
|
-
disabled:
|
|
3441
|
-
marks:
|
|
3442
|
+
sliderWidth: b = "300px",
|
|
3443
|
+
minText: y,
|
|
3444
|
+
maxText: _,
|
|
3445
|
+
disabled: v = !1,
|
|
3446
|
+
marks: p = Array.from(
|
|
3442
3447
|
{ length: a - r + 1 },
|
|
3443
3448
|
(B, O) => r + O
|
|
3444
3449
|
),
|
|
3445
|
-
showMarksNumber:
|
|
3446
|
-
} = n, { t:
|
|
3450
|
+
showMarksNumber: f = !0
|
|
3451
|
+
} = n, { t: C } = $(), { control: x, trigger: w, clearErrors: N } = d || {};
|
|
3447
3452
|
se(u);
|
|
3448
3453
|
const { errorColorForm: S } = xe((B) => B), [L, k] = V(l);
|
|
3449
3454
|
return d ? /* @__PURE__ */ i(
|
|
@@ -3453,22 +3458,22 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3453
3458
|
control: x,
|
|
3454
3459
|
defaultValue: l,
|
|
3455
3460
|
rules: {
|
|
3456
|
-
required: u ? `${
|
|
3461
|
+
required: u ? `${C(t)} ${C("errorMessages.required")}` : !1
|
|
3457
3462
|
},
|
|
3458
3463
|
render: ({ field: B, fieldState: O }) => {
|
|
3459
3464
|
var R;
|
|
3460
|
-
return /* @__PURE__ */
|
|
3465
|
+
return /* @__PURE__ */ h(
|
|
3461
3466
|
"div",
|
|
3462
3467
|
{
|
|
3463
3468
|
className: A.rankingSliderContainer,
|
|
3464
3469
|
style: {
|
|
3465
|
-
gridTemplateColumns: `${t && g} ${
|
|
3470
|
+
gridTemplateColumns: `${t && g} ${b}`
|
|
3466
3471
|
},
|
|
3467
3472
|
children: [
|
|
3468
|
-
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children:
|
|
3469
|
-
/* @__PURE__ */
|
|
3470
|
-
|
|
3471
|
-
/* @__PURE__ */
|
|
3473
|
+
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: C(t) }),
|
|
3474
|
+
/* @__PURE__ */ h("div", { className: A.inputContainer, children: [
|
|
3475
|
+
y && /* @__PURE__ */ i("div", { className: A.minLabel, children: C(y) }),
|
|
3476
|
+
/* @__PURE__ */ h("div", { children: [
|
|
3472
3477
|
/* @__PURE__ */ i(
|
|
3473
3478
|
je,
|
|
3474
3479
|
{
|
|
@@ -3489,18 +3494,18 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3489
3494
|
),
|
|
3490
3495
|
trackClassName: A.track,
|
|
3491
3496
|
markClassName: A.mark,
|
|
3492
|
-
disabled:
|
|
3497
|
+
disabled: v
|
|
3493
3498
|
}
|
|
3494
3499
|
),
|
|
3495
|
-
|
|
3500
|
+
p && /* @__PURE__ */ i("div", { className: A.labels, children: p.map((T) => /* @__PURE__ */ i("span", { children: f && T }, T)) })
|
|
3496
3501
|
] }),
|
|
3497
|
-
|
|
3502
|
+
_ && /* @__PURE__ */ i("div", { className: A.maxLabel, children: C(_) })
|
|
3498
3503
|
] }),
|
|
3499
3504
|
/* @__PURE__ */ i(
|
|
3500
3505
|
we,
|
|
3501
3506
|
{
|
|
3502
3507
|
errorMessage: (R = O.error) == null ? void 0 : R.message,
|
|
3503
|
-
errorColor: S ||
|
|
3508
|
+
errorColor: S || m
|
|
3504
3509
|
}
|
|
3505
3510
|
)
|
|
3506
3511
|
]
|
|
@@ -3508,16 +3513,16 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3508
3513
|
);
|
|
3509
3514
|
}
|
|
3510
3515
|
}
|
|
3511
|
-
) : /* @__PURE__ */
|
|
3516
|
+
) : /* @__PURE__ */ h(
|
|
3512
3517
|
"div",
|
|
3513
3518
|
{
|
|
3514
3519
|
className: A.rankingSliderContainer,
|
|
3515
|
-
style: { gridTemplateColumns: `${t && g} ${
|
|
3520
|
+
style: { gridTemplateColumns: `${t && g} ${b}` },
|
|
3516
3521
|
children: [
|
|
3517
|
-
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children:
|
|
3518
|
-
/* @__PURE__ */
|
|
3519
|
-
|
|
3520
|
-
/* @__PURE__ */
|
|
3522
|
+
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: C(t) }),
|
|
3523
|
+
/* @__PURE__ */ h("div", { className: A.inputContainer, children: [
|
|
3524
|
+
y && /* @__PURE__ */ i("div", { className: A.minLabel, children: C(y) }),
|
|
3525
|
+
/* @__PURE__ */ h("div", { children: [
|
|
3521
3526
|
/* @__PURE__ */ i(
|
|
3522
3527
|
je,
|
|
3523
3528
|
{
|
|
@@ -3540,12 +3545,12 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3540
3545
|
),
|
|
3541
3546
|
trackClassName: A.track,
|
|
3542
3547
|
markClassName: A.mark,
|
|
3543
|
-
disabled:
|
|
3548
|
+
disabled: v
|
|
3544
3549
|
}
|
|
3545
3550
|
),
|
|
3546
|
-
|
|
3551
|
+
p && /* @__PURE__ */ i("div", { className: A.labels, children: p.map((B) => /* @__PURE__ */ i("span", { children: f && B }, B)) })
|
|
3547
3552
|
] }),
|
|
3548
|
-
|
|
3553
|
+
_ && /* @__PURE__ */ i("div", { className: A.maxLabel, children: C(_) })
|
|
3549
3554
|
] })
|
|
3550
3555
|
]
|
|
3551
3556
|
}
|
|
@@ -3640,7 +3645,7 @@ const ye = ({
|
|
|
3640
3645
|
className: ce.inputContainer,
|
|
3641
3646
|
style: { ...d },
|
|
3642
3647
|
children: /* @__PURE__ */ i(
|
|
3643
|
-
|
|
3648
|
+
Zi,
|
|
3644
3649
|
{
|
|
3645
3650
|
input: a,
|
|
3646
3651
|
reactHookFormInstance: s
|
|
@@ -3683,18 +3688,18 @@ const ye = ({
|
|
|
3683
3688
|
d(a);
|
|
3684
3689
|
};
|
|
3685
3690
|
return /* @__PURE__ */ i("div", { className: $e.categorySelector, children: n.map((a, l) => {
|
|
3686
|
-
const { id: c, label: u } = a,
|
|
3687
|
-
return console.log("activeCategory", s, c,
|
|
3691
|
+
const { id: c, label: u } = a, m = s == c;
|
|
3692
|
+
return console.log("activeCategory", s, c, m), /* @__PURE__ */ i(
|
|
3688
3693
|
"button",
|
|
3689
3694
|
{
|
|
3690
|
-
className: `${$e.sectionItem} ${
|
|
3695
|
+
className: `${$e.sectionItem} ${m ? $e.sectionItemActive : ""}`,
|
|
3691
3696
|
type: "button",
|
|
3692
|
-
style: { backgroundColor:
|
|
3697
|
+
style: { backgroundColor: m ? o : "inherit" },
|
|
3693
3698
|
onClick: () => r(c),
|
|
3694
3699
|
children: /* @__PURE__ */ i(
|
|
3695
3700
|
"span",
|
|
3696
3701
|
{
|
|
3697
|
-
style: { color:
|
|
3702
|
+
style: { color: m ? "white" : "inherit" },
|
|
3698
3703
|
className: $e.sectionLabel,
|
|
3699
3704
|
children: t(u)
|
|
3700
3705
|
}
|
|
@@ -3714,39 +3719,39 @@ const ye = ({
|
|
|
3714
3719
|
submitButtonStyles: l = { width: 325 },
|
|
3715
3720
|
showCategorySelector: c = !0,
|
|
3716
3721
|
defaultCategory: u = null,
|
|
3717
|
-
categoryLabel:
|
|
3722
|
+
categoryLabel: m = "Select Category",
|
|
3718
3723
|
activeCategory: g = null,
|
|
3719
|
-
activeCategoryColor:
|
|
3720
|
-
onSubmit:
|
|
3724
|
+
activeCategoryColor: b = "#b32f5d",
|
|
3725
|
+
onSubmit: y = (_) => console.log("Form submitted with: ", _)
|
|
3721
3726
|
}) => {
|
|
3722
|
-
const { t:
|
|
3727
|
+
const { t: _ } = $(), { handleSubmit: v, control: p } = n;
|
|
3723
3728
|
F(() => {
|
|
3724
3729
|
r && xe.setState(() => ({ errorColor: r }));
|
|
3725
3730
|
}, [r]);
|
|
3726
|
-
const
|
|
3731
|
+
const f = me(() => d ? d.filter((k) => k.category).map((k) => {
|
|
3727
3732
|
var B;
|
|
3728
3733
|
return {
|
|
3729
3734
|
id: k.categoryId,
|
|
3730
3735
|
label: k.category,
|
|
3731
3736
|
hasSubcategories: ((B = k.subcategories) == null ? void 0 : B.length) > 0
|
|
3732
3737
|
};
|
|
3733
|
-
}) : [], [d]),
|
|
3738
|
+
}) : [], [d]), C = (k) => {
|
|
3734
3739
|
const B = d == null ? void 0 : d.find((O) => O.categoryId === k);
|
|
3735
3740
|
return (B == null ? void 0 : B.subcategories) || [];
|
|
3736
3741
|
}, [x, w] = V(
|
|
3737
3742
|
g || u || null
|
|
3738
3743
|
), [N, S] = V(null);
|
|
3739
3744
|
F(() => {
|
|
3740
|
-
!x &&
|
|
3741
|
-
}, [
|
|
3742
|
-
const k =
|
|
3745
|
+
!x && f.length > 0 && w(f[0].id);
|
|
3746
|
+
}, [f, x]), F(() => {
|
|
3747
|
+
const k = C(x);
|
|
3743
3748
|
!N && (k == null ? void 0 : k.length) > 0 && S(k[0].id);
|
|
3744
3749
|
}, [x, N, d]);
|
|
3745
3750
|
const L = (k, B) => {
|
|
3746
3751
|
var O;
|
|
3747
3752
|
if (((O = k.subcategories) == null ? void 0 : O.length) > 0) {
|
|
3748
3753
|
const R = k.subcategories;
|
|
3749
|
-
return /* @__PURE__ */
|
|
3754
|
+
return /* @__PURE__ */ h("div", { children: [
|
|
3750
3755
|
/* @__PURE__ */ i(
|
|
3751
3756
|
"div",
|
|
3752
3757
|
{
|
|
@@ -3757,47 +3762,47 @@ const ye = ({
|
|
|
3757
3762
|
activeCategory: N,
|
|
3758
3763
|
categories: R,
|
|
3759
3764
|
onChange: (T) => S(T),
|
|
3760
|
-
activeColor:
|
|
3765
|
+
activeColor: b
|
|
3761
3766
|
}
|
|
3762
3767
|
)
|
|
3763
3768
|
},
|
|
3764
3769
|
k.categoryId
|
|
3765
3770
|
),
|
|
3766
|
-
R.map((T,
|
|
3767
|
-
const
|
|
3771
|
+
R.map((T, Z) => {
|
|
3772
|
+
const z = !N || T.id === N;
|
|
3768
3773
|
return s ? /* @__PURE__ */ i(
|
|
3769
3774
|
"div",
|
|
3770
3775
|
{
|
|
3771
3776
|
style: {
|
|
3772
|
-
display:
|
|
3777
|
+
display: z ? "block" : "none",
|
|
3773
3778
|
width: "100%"
|
|
3774
3779
|
},
|
|
3775
3780
|
children: /* @__PURE__ */ i(s, { title: T.label, children: /* @__PURE__ */ i(
|
|
3776
3781
|
ye,
|
|
3777
3782
|
{
|
|
3778
3783
|
inputs: T.inputs,
|
|
3779
|
-
control:
|
|
3784
|
+
control: p,
|
|
3780
3785
|
inputContainerStyles: o,
|
|
3781
3786
|
errorColor: r,
|
|
3782
3787
|
reactHookFormInstance: n
|
|
3783
3788
|
}
|
|
3784
3789
|
) }, T.id)
|
|
3785
3790
|
},
|
|
3786
|
-
`${T.id}${
|
|
3787
|
-
) : /* @__PURE__ */
|
|
3791
|
+
`${T.id}${Z}`
|
|
3792
|
+
) : /* @__PURE__ */ h(
|
|
3788
3793
|
"div",
|
|
3789
3794
|
{
|
|
3790
3795
|
style: {
|
|
3791
3796
|
width: "100%",
|
|
3792
|
-
display:
|
|
3797
|
+
display: z ? "block" : "none"
|
|
3793
3798
|
},
|
|
3794
3799
|
children: [
|
|
3795
|
-
/* @__PURE__ */ i("h3", { style: { marginBottom: 15 }, children:
|
|
3800
|
+
/* @__PURE__ */ i("h3", { style: { marginBottom: 15 }, children: _(T.label) }),
|
|
3796
3801
|
/* @__PURE__ */ i(
|
|
3797
3802
|
ye,
|
|
3798
3803
|
{
|
|
3799
3804
|
inputs: T.inputs,
|
|
3800
|
-
control:
|
|
3805
|
+
control: p,
|
|
3801
3806
|
inputContainerStyles: o,
|
|
3802
3807
|
errorColor: r,
|
|
3803
3808
|
reactHookFormInstance: n
|
|
@@ -3805,7 +3810,7 @@ const ye = ({
|
|
|
3805
3810
|
)
|
|
3806
3811
|
]
|
|
3807
3812
|
},
|
|
3808
|
-
`${T.id}${
|
|
3813
|
+
`${T.id}${Z}`
|
|
3809
3814
|
);
|
|
3810
3815
|
})
|
|
3811
3816
|
] });
|
|
@@ -3814,18 +3819,18 @@ const ye = ({
|
|
|
3814
3819
|
ye,
|
|
3815
3820
|
{
|
|
3816
3821
|
inputs: k.inputs,
|
|
3817
|
-
control:
|
|
3822
|
+
control: p,
|
|
3818
3823
|
inputContainerStyles: o,
|
|
3819
3824
|
errorColor: r,
|
|
3820
3825
|
reactHookFormInstance: n
|
|
3821
3826
|
}
|
|
3822
|
-
) }, k.categoryId) : /* @__PURE__ */
|
|
3823
|
-
/* @__PURE__ */ i("h2", { children:
|
|
3827
|
+
) }, k.categoryId) : /* @__PURE__ */ h("div", { style: { width: "100%" }, children: [
|
|
3828
|
+
/* @__PURE__ */ i("h2", { children: _(k.category) }),
|
|
3824
3829
|
/* @__PURE__ */ i(
|
|
3825
3830
|
ye,
|
|
3826
3831
|
{
|
|
3827
3832
|
inputs: k.inputs,
|
|
3828
|
-
control:
|
|
3833
|
+
control: p,
|
|
3829
3834
|
inputContainerStyles: o,
|
|
3830
3835
|
errorColor: r,
|
|
3831
3836
|
reactHookFormInstance: n
|
|
@@ -3833,16 +3838,16 @@ const ye = ({
|
|
|
3833
3838
|
)
|
|
3834
3839
|
] }, k.categoryId);
|
|
3835
3840
|
};
|
|
3836
|
-
return /* @__PURE__ */
|
|
3837
|
-
c &&
|
|
3841
|
+
return /* @__PURE__ */ h("form", { className: Ce.formContainer, onSubmit: v(y), children: [
|
|
3842
|
+
c && f.length > 0 && /* @__PURE__ */ i("div", { className: Ce.categorySelectorContainer, children: /* @__PURE__ */ i(
|
|
3838
3843
|
ut,
|
|
3839
3844
|
{
|
|
3840
3845
|
activeCategory: x,
|
|
3841
|
-
categories:
|
|
3846
|
+
categories: f,
|
|
3842
3847
|
onChange: (k) => {
|
|
3843
3848
|
w(k), S(null);
|
|
3844
3849
|
},
|
|
3845
|
-
activeColor:
|
|
3850
|
+
activeColor: b
|
|
3846
3851
|
}
|
|
3847
3852
|
) }),
|
|
3848
3853
|
/* @__PURE__ */ i("div", { className: Ce.formObjectContainer, children: d == null ? void 0 : d.map((k, B) => {
|
|
@@ -3861,15 +3866,15 @@ const ye = ({
|
|
|
3861
3866
|
ye,
|
|
3862
3867
|
{
|
|
3863
3868
|
inputs: k.inputs,
|
|
3864
|
-
control:
|
|
3869
|
+
control: p,
|
|
3865
3870
|
inputContainerStyles: o,
|
|
3866
3871
|
errorColor: r,
|
|
3867
3872
|
reactHookFormInstance: n
|
|
3868
3873
|
}
|
|
3869
3874
|
);
|
|
3870
3875
|
}) }),
|
|
3871
|
-
/* @__PURE__ */
|
|
3872
|
-
/* @__PURE__ */ i(Te, { containerStyles: l, type: "submit", children:
|
|
3876
|
+
/* @__PURE__ */ h("div", { className: Ce.buttonContainer, children: [
|
|
3877
|
+
/* @__PURE__ */ i(Te, { containerStyles: l, type: "submit", children: _(a) }),
|
|
3873
3878
|
/* @__PURE__ */ i(we, { errorMessage: t, errorColor: r })
|
|
3874
3879
|
] })
|
|
3875
3880
|
] });
|
|
@@ -3890,7 +3895,7 @@ const ye = ({
|
|
|
3890
3895
|
buttons: t,
|
|
3891
3896
|
maxHeight: r = "450px",
|
|
3892
3897
|
maxWidth: a = "450px"
|
|
3893
|
-
}) => /* @__PURE__ */ i("div", { className: Y.overlay, children: /* @__PURE__ */
|
|
3898
|
+
}) => /* @__PURE__ */ i("div", { className: Y.overlay, children: /* @__PURE__ */ h(
|
|
3894
3899
|
"div",
|
|
3895
3900
|
{
|
|
3896
3901
|
className: Y.modal,
|
|
@@ -3932,8 +3937,8 @@ const us = "_stepsContainer_1cyua_3", ps = "_stepWrapper_1cyua_9", ms = "_circle
|
|
|
3932
3937
|
connector: ys
|
|
3933
3938
|
}, Dt = ({ steps: n, activeColor: d }) => /* @__PURE__ */ i("div", { className: U.stepsContainer, children: n.map((s, o) => {
|
|
3934
3939
|
const t = s.status === "active", r = s.status === "completed";
|
|
3935
|
-
return /* @__PURE__ */
|
|
3936
|
-
/* @__PURE__ */
|
|
3940
|
+
return /* @__PURE__ */ h("div", { className: U.stepWrapper, children: [
|
|
3941
|
+
/* @__PURE__ */ h("div", { className: U.circleContainer, children: [
|
|
3937
3942
|
/* @__PURE__ */ i(
|
|
3938
3943
|
"div",
|
|
3939
3944
|
{
|
|
@@ -4032,24 +4037,24 @@ const Ss = "_switchContainer_194wl_2", $s = "_labelRight_194wl_9", Bs = "_labelL
|
|
|
4032
4037
|
colorOn: l = "#5A514D",
|
|
4033
4038
|
disabled: c = !1,
|
|
4034
4039
|
width: u = 240
|
|
4035
|
-
} = n, { t:
|
|
4036
|
-
|
|
4037
|
-
},
|
|
4040
|
+
} = n, { t: m } = $(), { control: g } = d || {}, [b, y] = V(a), _ = (p) => {
|
|
4041
|
+
y(p), s && s(p);
|
|
4042
|
+
}, v = (p, f) => /* @__PURE__ */ h("div", { className: ue.switchContainer, style: { width: `${u}px` }, children: [
|
|
4038
4043
|
t && /* @__PURE__ */ i(
|
|
4039
4044
|
"span",
|
|
4040
4045
|
{
|
|
4041
4046
|
className: ue.labelLeft,
|
|
4042
4047
|
style: { width: `${(u - 74) / 2}px` },
|
|
4043
|
-
children:
|
|
4048
|
+
children: m(t)
|
|
4044
4049
|
}
|
|
4045
4050
|
),
|
|
4046
|
-
/* @__PURE__ */
|
|
4051
|
+
/* @__PURE__ */ h("label", { className: `${ue.switch} ${c ? ue.disabled : ""}`, children: [
|
|
4047
4052
|
/* @__PURE__ */ i(
|
|
4048
4053
|
"input",
|
|
4049
4054
|
{
|
|
4050
4055
|
type: "checkbox",
|
|
4051
|
-
checked: !!
|
|
4052
|
-
onChange: () =>
|
|
4056
|
+
checked: !!p,
|
|
4057
|
+
onChange: () => f(!p),
|
|
4053
4058
|
disabled: c
|
|
4054
4059
|
}
|
|
4055
4060
|
),
|
|
@@ -4058,12 +4063,12 @@ const Ss = "_switchContainer_194wl_2", $s = "_labelRight_194wl_9", Bs = "_labelL
|
|
|
4058
4063
|
{
|
|
4059
4064
|
className: ue.slider,
|
|
4060
4065
|
style: {
|
|
4061
|
-
"--switch-thumb-color":
|
|
4066
|
+
"--switch-thumb-color": p ? l : "#ccc"
|
|
4062
4067
|
}
|
|
4063
4068
|
}
|
|
4064
4069
|
)
|
|
4065
4070
|
] }),
|
|
4066
|
-
r && /* @__PURE__ */ i("span", { className: ue.labelRight, style: { width: `${(u - 74) / 2}px` }, children:
|
|
4071
|
+
r && /* @__PURE__ */ i("span", { className: ue.labelRight, style: { width: `${(u - 74) / 2}px` }, children: m(r) })
|
|
4067
4072
|
] });
|
|
4068
4073
|
return d ? /* @__PURE__ */ i(
|
|
4069
4074
|
ve,
|
|
@@ -4071,9 +4076,9 @@ const Ss = "_switchContainer_194wl_2", $s = "_labelRight_194wl_9", Bs = "_labelL
|
|
|
4071
4076
|
name: o,
|
|
4072
4077
|
control: g,
|
|
4073
4078
|
defaultValue: a,
|
|
4074
|
-
render: ({ field:
|
|
4079
|
+
render: ({ field: p }) => v(p.value, p.onChange)
|
|
4075
4080
|
}
|
|
4076
|
-
) : b
|
|
4081
|
+
) : v(b, _);
|
|
4077
4082
|
};
|
|
4078
4083
|
Ms.propTypes = {
|
|
4079
4084
|
input: e.shape({
|
|
@@ -4103,7 +4108,7 @@ const Ds = "_header_13kbt_2", Fs = "_leftComponents_13kbt_13", Vs = "_centerComp
|
|
|
4103
4108
|
backgroundColor: a = "#605B56",
|
|
4104
4109
|
isFooter: l = !1
|
|
4105
4110
|
// If true, it will apply footer styles
|
|
4106
|
-
}) => /* @__PURE__ */
|
|
4111
|
+
}) => /* @__PURE__ */ h(
|
|
4107
4112
|
"div",
|
|
4108
4113
|
{
|
|
4109
4114
|
className: ne.header,
|
|
@@ -4137,7 +4142,7 @@ const Rs = "_sidebar_1fmjn_2", qs = "_open_1fmjn_16", Es = "_content_1fmjn_20",
|
|
|
4137
4142
|
open: qs,
|
|
4138
4143
|
content: Es,
|
|
4139
4144
|
closeButton: Ps
|
|
4140
|
-
}, js = "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",
|
|
4145
|
+
}, js = "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", zs = ({
|
|
4141
4146
|
width: n = "300px",
|
|
4142
4147
|
children: d,
|
|
4143
4148
|
showRightBar: s,
|
|
@@ -4151,14 +4156,14 @@ const Rs = "_sidebar_1fmjn_2", qs = "_open_1fmjn_16", Es = "_content_1fmjn_20",
|
|
|
4151
4156
|
{
|
|
4152
4157
|
className: `${Le.sidebar} ${s ? Le.open : ""}`,
|
|
4153
4158
|
style: { width: s ? n : 0 },
|
|
4154
|
-
children: s && /* @__PURE__ */
|
|
4159
|
+
children: s && /* @__PURE__ */ h("div", { className: Le.content, children: [
|
|
4155
4160
|
/* @__PURE__ */ i("button", { className: Le.closeButton, onClick: t, children: /* @__PURE__ */ i("img", { src: js, alt: "Close Sidebar" }) }),
|
|
4156
4161
|
d
|
|
4157
4162
|
] })
|
|
4158
4163
|
}
|
|
4159
4164
|
);
|
|
4160
4165
|
};
|
|
4161
|
-
|
|
4166
|
+
zs.propTypes = {
|
|
4162
4167
|
width: e.string,
|
|
4163
4168
|
children: e.node,
|
|
4164
4169
|
showRightBar: e.bool,
|
|
@@ -4185,9 +4190,9 @@ export {
|
|
|
4185
4190
|
s0 as MapboxMap,
|
|
4186
4191
|
d0 as MaplibreMap,
|
|
4187
4192
|
ds as ModalAlert,
|
|
4188
|
-
|
|
4193
|
+
Zi as RadioButtonInput,
|
|
4189
4194
|
Mt as RankingSlider,
|
|
4190
|
-
|
|
4195
|
+
zs as RightSidebar,
|
|
4191
4196
|
f0 as SectionBar,
|
|
4192
4197
|
Oi as SelectInput,
|
|
4193
4198
|
Ft as StatusText,
|