@tmf_ciclica/ciclicastorybook 1.1.168 → 1.1.170
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 +1 -1
- package/dist/index.es.js +215 -218
- 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 m, 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";
|
|
@@ -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: h, id: g, isBeingProcessed: b } = n;
|
|
48
|
+
return /* @__PURE__ */ m(
|
|
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__ */ m("div", { className: he.ambitNameDate, onClick: () => t(g), children: [
|
|
55
|
+
/* @__PURE__ */ m("div", { className: he.ambitName, children: [
|
|
56
56
|
/* @__PURE__ */ i(
|
|
57
57
|
"img",
|
|
58
58
|
{
|
|
@@ -62,9 +62,9 @@ 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: h ? new Date(h).toLocaleDateString() : "" })
|
|
66
66
|
] }),
|
|
67
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ m("div", { className: he.ambitButtons, children: [
|
|
68
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 }) }),
|
|
@@ -127,7 +127,7 @@ 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:
|
|
130
|
+
onClickCopy: h = (_) => console.log(`Copy ambit: ${_}`),
|
|
131
131
|
onCLickDelete: g = (_) => console.log(`Delete ambit: ${_}`),
|
|
132
132
|
onClickFilters: b = (_) => console.log(`Filters clicked: ${_}`),
|
|
133
133
|
onClickAmbit: y = (_) => console.log(`OnCLickAmbit: ${_}`)
|
|
@@ -142,24 +142,24 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
142
142
|
x.sort((w, N) => w[C].localeCompare(N[C])), p(x);
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
|
-
return /* @__PURE__ */
|
|
145
|
+
return /* @__PURE__ */ m(
|
|
146
146
|
"div",
|
|
147
147
|
{
|
|
148
148
|
className: W.ambitSelector,
|
|
149
149
|
style: { color: s, ...c },
|
|
150
150
|
children: [
|
|
151
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ m(
|
|
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__ */
|
|
157
|
+
/* @__PURE__ */ m("div", { className: W.nameDateContainer, children: [
|
|
158
|
+
/* @__PURE__ */ i("div", { className: W.ambitName, children: /* @__PURE__ */ m("button", { onClick: () => f("name"), children: [
|
|
159
159
|
/* @__PURE__ */ i("span", { children: _(t) }),
|
|
160
160
|
/* @__PURE__ */ i("img", { src: Qe })
|
|
161
161
|
] }) }),
|
|
162
|
-
/* @__PURE__ */ i("div", { className: W.ambitDate, children: /* @__PURE__ */
|
|
162
|
+
/* @__PURE__ */ i("div", { className: W.ambitDate, children: /* @__PURE__ */ m("button", { onClick: () => f("date"), children: [
|
|
163
163
|
/* @__PURE__ */ i("span", { children: _(r) }),
|
|
164
164
|
/* @__PURE__ */ i("img", { src: Qe })
|
|
165
165
|
] }) })
|
|
@@ -175,7 +175,7 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
175
175
|
ambit: C,
|
|
176
176
|
fontColor: s,
|
|
177
177
|
activeColor: o,
|
|
178
|
-
onClickCopy:
|
|
178
|
+
onClickCopy: h,
|
|
179
179
|
onClickDelete: g,
|
|
180
180
|
onClickFilters: b,
|
|
181
181
|
onClickAmbit: y
|
|
@@ -255,17 +255,17 @@ const V2 = ({
|
|
|
255
255
|
children: n.map((l, c) => {
|
|
256
256
|
const {
|
|
257
257
|
icon: u,
|
|
258
|
-
activeIcon:
|
|
258
|
+
activeIcon: h,
|
|
259
259
|
isActive: g,
|
|
260
260
|
name: b,
|
|
261
261
|
onClick: y,
|
|
262
262
|
disabled: _
|
|
263
|
-
} = l, v = /* @__PURE__ */
|
|
263
|
+
} = l, v = /* @__PURE__ */ m(Re, { children: [
|
|
264
264
|
s && o === "left" && /* @__PURE__ */ i("span", { className: X.buttonName, children: a(b) }),
|
|
265
|
-
/* @__PURE__ */ i("img", { src: g ?
|
|
265
|
+
/* @__PURE__ */ i("img", { src: g ? h : u, alt: a(b) }),
|
|
266
266
|
s && o === "right" && /* @__PURE__ */ i("span", { className: X.buttonName, children: a(b) })
|
|
267
267
|
] });
|
|
268
|
-
return /* @__PURE__ */
|
|
268
|
+
return /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
269
269
|
/* @__PURE__ */ i(
|
|
270
270
|
"button",
|
|
271
271
|
{
|
|
@@ -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: h } = $();
|
|
321
|
+
return /* @__PURE__ */ m(
|
|
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__ */ m(
|
|
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: h(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((h) => ({
|
|
380
|
+
tematicalFiltersSelected: h.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, h) => /* @__PURE__ */ m("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
|
+
] }, h)) })
|
|
396
396
|
}
|
|
397
397
|
);
|
|
398
398
|
};
|
|
@@ -423,7 +423,7 @@ 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
|
-
},
|
|
426
|
+
}, h = (g) => {
|
|
427
427
|
D.setState((b) => ({
|
|
428
428
|
geoLayers: b.geoLayers.map((y) => ({
|
|
429
429
|
...y,
|
|
@@ -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: () => h(g),
|
|
448
448
|
children: a(g.name)
|
|
449
449
|
}
|
|
450
450
|
))
|
|
@@ -469,7 +469,7 @@ 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__ */ m(
|
|
473
473
|
"div",
|
|
474
474
|
{
|
|
475
475
|
style: { ...d, color: s },
|
|
@@ -552,8 +552,8 @@ 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]), h = t.getValueFromPosition(u);
|
|
556
|
+
t.move(h);
|
|
557
557
|
}, t.onTouchMove = (l) => {
|
|
558
558
|
if (l.touches.length > 1) return;
|
|
559
559
|
t.setState({ pending: !0 });
|
|
@@ -563,8 +563,8 @@ let Pe = function(n) {
|
|
|
563
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]), h = t.getValueFromPosition(u);
|
|
567
|
+
t.move(h);
|
|
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(h) {
|
|
621
|
+
h.stopPropagation && h.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 : ""),
|
|
629
|
+
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), h = { ref: (b) => {
|
|
630
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 && (h["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(g)), t.props.renderThumb(h, g);
|
|
633
633
|
}, t.renderTrack = (l, c, u) => {
|
|
634
|
-
const
|
|
635
|
-
return t.props.renderTrack(
|
|
634
|
+
const h = { 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(h, g);
|
|
636
636
|
};
|
|
637
637
|
let r = Ve(o.value);
|
|
638
638
|
r.length || (r = Ve(o.defaultValue)), t.pendingResizeTimeouts = [];
|
|
@@ -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]), h = Math.abs(o - u);
|
|
667
|
+
h < t && (t = h, 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 === b && this.state.thumbSize ===
|
|
690
|
+
const r = this.sizeKey(), a = o.getBoundingClientRect(), l = o[r], c = a[this.posMaxKey()], u = a[this.posMinKey()], h = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], g = l - h, b = Math.abs(c - u);
|
|
691
|
+
this.state.upperBound === g && this.state.sliderLength === b && this.state.thumbSize === h || this.setState({ upperBound: g, sliderLength: b, thumbSize: h });
|
|
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,7 +727,7 @@ 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: h, minDistance: g } = this.props;
|
|
731
731
|
if (!c) {
|
|
732
732
|
if (r > 0) {
|
|
733
733
|
const b = t[r - 1];
|
|
@@ -748,7 +748,7 @@ let Pe = function(n) {
|
|
|
748
748
|
const f = v + p * _;
|
|
749
749
|
y[p] < f && (y[p] = f);
|
|
750
750
|
}
|
|
751
|
-
}(a, t, g,
|
|
751
|
+
}(a, t, g, h))), 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 } = $(),
|
|
825
|
+
const { t: u } = $(), h = c ? new Date(n).getTime() : null, g = c ? new Date(d).getTime() : null, [b, y] = V(c ? [h, g] : [n, d]), _ = (v) => {
|
|
826
826
|
y(v), o == null || o({ min: v[0], max: v[1] });
|
|
827
827
|
};
|
|
828
828
|
return F(() => {
|
|
829
|
-
l || y(c ? [
|
|
830
|
-
}, [l, c]), /* @__PURE__ */
|
|
829
|
+
l || y(c ? [h, g] : [n, d]);
|
|
830
|
+
}, [l, c]), /* @__PURE__ */ m(
|
|
831
831
|
"div",
|
|
832
832
|
{
|
|
833
833
|
className: re.container,
|
|
@@ -840,9 +840,9 @@ 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 ? h : n,
|
|
844
844
|
max: c ? g : d,
|
|
845
|
-
step: c ? (g -
|
|
845
|
+
step: c ? (g - h) / 30 : s,
|
|
846
846
|
value: b,
|
|
847
847
|
onAfterChange: _,
|
|
848
848
|
withTracks: !0,
|
|
@@ -850,7 +850,7 @@ const K2 = "_container_4u41i_2", H2 = "_unitLabel_4u41i_8", U2 = "_slider_4u41i_
|
|
|
850
850
|
minDistance: c ? 0 : 0.1
|
|
851
851
|
}
|
|
852
852
|
),
|
|
853
|
-
/* @__PURE__ */
|
|
853
|
+
/* @__PURE__ */ m("div", { className: re.labels, children: [
|
|
854
854
|
/* @__PURE__ */ i("span", { children: c ? new Date(b[0]).toLocaleDateString("en-EN", {
|
|
855
855
|
day: "2-digit",
|
|
856
856
|
month: "short",
|
|
@@ -895,7 +895,7 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
895
895
|
minValue: l,
|
|
896
896
|
maxValue: c,
|
|
897
897
|
unit: u,
|
|
898
|
-
step:
|
|
898
|
+
step: h,
|
|
899
899
|
disabled: g,
|
|
900
900
|
isDate: b
|
|
901
901
|
} = n || {}, y = me(
|
|
@@ -910,11 +910,10 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
910
910
|
fontColor: f,
|
|
911
911
|
inputsColor: C
|
|
912
912
|
} = D((N) => N), x = (N) => {
|
|
913
|
-
if (
|
|
914
|
-
const { min: S, max: L, valueClicked: k, allValues: B } = N || {}, { code: O, type: R, source: T } = n || {},
|
|
915
|
-
console.log("type: ", Z);
|
|
913
|
+
if (N) {
|
|
914
|
+
const { min: S, max: L, valueClicked: k, allValues: B } = N || {}, { code: O, type: R, source: T } = n || {}, K = _ ? "abs" : y ? "cat" : "both";
|
|
916
915
|
let z = O[0];
|
|
917
|
-
R == "both" && (z =
|
|
916
|
+
R == "both" && (z = K == "cat" ? O[1] : O[0]), K == "cat" ? D.setState((Q) => {
|
|
918
917
|
let G = Q.tematicalFiltersSelected.find(
|
|
919
918
|
(E) => E.code === z
|
|
920
919
|
);
|
|
@@ -947,7 +946,7 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
947
946
|
]
|
|
948
947
|
};
|
|
949
948
|
}
|
|
950
|
-
}) :
|
|
949
|
+
}) : K == "abs" && D.setState((Q) => {
|
|
951
950
|
let G = Q.tematicalFiltersSelected.find(
|
|
952
951
|
(E) => E.code === z
|
|
953
952
|
);
|
|
@@ -958,7 +957,7 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
958
957
|
)
|
|
959
958
|
};
|
|
960
959
|
if (G) {
|
|
961
|
-
let E = { ...G, min: S, max: L, type:
|
|
960
|
+
let E = { ...G, min: S, max: L, type: K, isDate: b };
|
|
962
961
|
return {
|
|
963
962
|
tematicalFiltersSelected: Q.tematicalFiltersSelected.map(
|
|
964
963
|
(j) => j.code === z ? E : j
|
|
@@ -969,7 +968,7 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
969
968
|
tematicalFiltersSelected: [
|
|
970
969
|
...v,
|
|
971
970
|
{
|
|
972
|
-
type:
|
|
971
|
+
type: K,
|
|
973
972
|
code: z,
|
|
974
973
|
min: S,
|
|
975
974
|
max: L,
|
|
@@ -987,7 +986,7 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
987
986
|
S.type === "cat" ? N[S.code] = new Set(S.values) : N[S.code] = [S.min, S.max];
|
|
988
987
|
return N;
|
|
989
988
|
}, [v]);
|
|
990
|
-
return /* @__PURE__ */ i("div", { className: Se.tematicalFiltersInputContainer, children: /* @__PURE__ */
|
|
989
|
+
return /* @__PURE__ */ i("div", { className: Se.tematicalFiltersInputContainer, children: /* @__PURE__ */ m(
|
|
991
990
|
oe,
|
|
992
991
|
{
|
|
993
992
|
titleFontStyles: {
|
|
@@ -1009,13 +1008,13 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
1009
1008
|
color: f,
|
|
1010
1009
|
activeColor: d,
|
|
1011
1010
|
children: [
|
|
1012
|
-
t == "both" && /* @__PURE__ */
|
|
1011
|
+
t == "both" && /* @__PURE__ */ m(
|
|
1013
1012
|
"div",
|
|
1014
1013
|
{
|
|
1015
1014
|
className: Se.inputTypeContainer,
|
|
1016
1015
|
style: { color: f },
|
|
1017
1016
|
children: [
|
|
1018
|
-
/* @__PURE__ */
|
|
1017
|
+
/* @__PURE__ */ m("label", { children: [
|
|
1019
1018
|
/* @__PURE__ */ i(
|
|
1020
1019
|
"input",
|
|
1021
1020
|
{
|
|
@@ -1034,7 +1033,7 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
1034
1033
|
),
|
|
1035
1034
|
"Absoluto"
|
|
1036
1035
|
] }),
|
|
1037
|
-
/* @__PURE__ */
|
|
1036
|
+
/* @__PURE__ */ m("label", { children: [
|
|
1038
1037
|
/* @__PURE__ */ i(
|
|
1039
1038
|
"input",
|
|
1040
1039
|
{
|
|
@@ -1077,7 +1076,7 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
1077
1076
|
unit: u,
|
|
1078
1077
|
defaultValue: w[n.code[0]] ? w[n.code[0]] : "",
|
|
1079
1078
|
isDate: b,
|
|
1080
|
-
step:
|
|
1079
|
+
step: h
|
|
1081
1080
|
}
|
|
1082
1081
|
) })
|
|
1083
1082
|
]
|
|
@@ -1205,9 +1204,8 @@ const _t = ({
|
|
|
1205
1204
|
inputsColor: t = "#605B56",
|
|
1206
1205
|
activeColor: r
|
|
1207
1206
|
}) => {
|
|
1208
|
-
const { tematicalFiltersSelected: a, activeFiltersType: l } = D((
|
|
1207
|
+
const { tematicalFiltersSelected: a, activeFiltersType: l } = D((h) => h), { t: c } = $();
|
|
1209
1208
|
F(() => {
|
|
1210
|
-
console.log("filtersSelected changed: ", a);
|
|
1211
1209
|
}, [a]), F(() => {
|
|
1212
1210
|
o && D.setState(() => ({ fontColor: o }));
|
|
1213
1211
|
}, [o]), F(() => {
|
|
@@ -1224,10 +1222,10 @@ const _t = ({
|
|
|
1224
1222
|
color: o,
|
|
1225
1223
|
activeColor: r,
|
|
1226
1224
|
onClick: u,
|
|
1227
|
-
children: n == null ? void 0 : n.map((
|
|
1225
|
+
children: n == null ? void 0 : n.map((h, g) => /* @__PURE__ */ i(
|
|
1228
1226
|
yt,
|
|
1229
1227
|
{
|
|
1230
|
-
category:
|
|
1228
|
+
category: h,
|
|
1231
1229
|
fontColor: o,
|
|
1232
1230
|
activeColor: r
|
|
1233
1231
|
},
|
|
@@ -1263,7 +1261,7 @@ const tn = "_FiltersAmbitContainer_1g9xx_2", nn = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1263
1261
|
onChangeAppliedFilters: l,
|
|
1264
1262
|
saveAmbit: c,
|
|
1265
1263
|
namePlaceholder: u,
|
|
1266
|
-
descPlaceholder:
|
|
1264
|
+
descPlaceholder: h,
|
|
1267
1265
|
filtersTypes: g = ["geographical", "tematical"],
|
|
1268
1266
|
nameRequiredText: b,
|
|
1269
1267
|
geoFilterLayers: y = [],
|
|
@@ -1277,9 +1275,9 @@ const tn = "_FiltersAmbitContainer_1g9xx_2", nn = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1277
1275
|
tematicalFiltersSelected: s
|
|
1278
1276
|
}));
|
|
1279
1277
|
}, [s]), F(() => {
|
|
1280
|
-
D.setState({ geoLayers: y });
|
|
1278
|
+
g.includes("geographical") && D.setState({ geoLayers: y });
|
|
1281
1279
|
}, [y]), F(() => {
|
|
1282
|
-
|
|
1280
|
+
l(f);
|
|
1283
1281
|
}, [f]);
|
|
1284
1282
|
const O = () => {
|
|
1285
1283
|
w ? c({ name: w, description: S }) : B(!0);
|
|
@@ -1291,8 +1289,8 @@ const tn = "_FiltersAmbitContainer_1g9xx_2", nn = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1291
1289
|
active: !1
|
|
1292
1290
|
}))
|
|
1293
1291
|
}));
|
|
1294
|
-
}, [C]), /* @__PURE__ */
|
|
1295
|
-
!v && /* @__PURE__ */
|
|
1292
|
+
}, [C]), /* @__PURE__ */ m("div", { className: ae.FiltersAmbitContainer, children: [
|
|
1293
|
+
!v && /* @__PURE__ */ m("div", { className: ae.FiltersAmbitHeader, children: [
|
|
1296
1294
|
/* @__PURE__ */ i("div", { className: ae.FiltersAmbitTitle, children: /* @__PURE__ */ i(
|
|
1297
1295
|
"input",
|
|
1298
1296
|
{
|
|
@@ -1309,7 +1307,7 @@ const tn = "_FiltersAmbitContainer_1g9xx_2", nn = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1309
1307
|
{
|
|
1310
1308
|
value: S,
|
|
1311
1309
|
onChange: (R) => L(R.target.value),
|
|
1312
|
-
placeholder: p(
|
|
1310
|
+
placeholder: p(h)
|
|
1313
1311
|
}
|
|
1314
1312
|
) }) })
|
|
1315
1313
|
] }),
|
|
@@ -1367,7 +1365,7 @@ const cn = "_barChartContainer_d2f1z_2", dn = {
|
|
|
1367
1365
|
numberOfDivisions: c = 7,
|
|
1368
1366
|
maxValue: u = null
|
|
1369
1367
|
}) => {
|
|
1370
|
-
const { t:
|
|
1368
|
+
const { t: h } = $(), { xScale: g, ticks: b, height: y } = me(() => {
|
|
1371
1369
|
if (n && n.length > 0) {
|
|
1372
1370
|
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
1371
|
return {
|
|
@@ -1390,10 +1388,10 @@ const cn = "_barChartContainer_d2f1z_2", dn = {
|
|
|
1390
1388
|
r,
|
|
1391
1389
|
u
|
|
1392
1390
|
]);
|
|
1393
|
-
return /* @__PURE__ */ i("div", { className: dn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + a * 2, height: y, children: /* @__PURE__ */
|
|
1391
|
+
return /* @__PURE__ */ i("div", { className: dn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + a * 2, height: y, children: /* @__PURE__ */ m("g", { transform: `translate(0,${o})`, children: [
|
|
1394
1392
|
/* @__PURE__ */ i("g", { transform: `translate(${l + a}, 0)`, children: b.map((_, v) => {
|
|
1395
1393
|
const p = g(_);
|
|
1396
|
-
return /* @__PURE__ */
|
|
1394
|
+
return /* @__PURE__ */ m("g", { transform: `translate(${p}, 0)`, children: [
|
|
1397
1395
|
/* @__PURE__ */ i(
|
|
1398
1396
|
"line",
|
|
1399
1397
|
{
|
|
@@ -1416,7 +1414,7 @@ const cn = "_barChartContainer_d2f1z_2", dn = {
|
|
|
1416
1414
|
}) }),
|
|
1417
1415
|
n && n.length > 0 && (n == null ? void 0 : n.map((_, v) => {
|
|
1418
1416
|
const p = g(_.value), f = v * (s + o);
|
|
1419
|
-
return /* @__PURE__ */
|
|
1417
|
+
return /* @__PURE__ */ m(
|
|
1420
1418
|
"g",
|
|
1421
1419
|
{
|
|
1422
1420
|
transform: `translate(${l + a}, ${f})`,
|
|
@@ -1428,7 +1426,7 @@ const cn = "_barChartContainer_d2f1z_2", dn = {
|
|
|
1428
1426
|
y: s / 2 + 5,
|
|
1429
1427
|
textAnchor: "end",
|
|
1430
1428
|
fill: t,
|
|
1431
|
-
children:
|
|
1429
|
+
children: h(_.title)
|
|
1432
1430
|
}
|
|
1433
1431
|
),
|
|
1434
1432
|
/* @__PURE__ */ i(
|
|
@@ -1478,7 +1476,7 @@ const un = "_graphicContainer_c9zrg_2", pn = "_titleContainer_c9zrg_14", et = {
|
|
|
1478
1476
|
leftPadding: c = 200
|
|
1479
1477
|
}) => {
|
|
1480
1478
|
const { t: u } = $();
|
|
1481
|
-
return /* @__PURE__ */
|
|
1479
|
+
return /* @__PURE__ */ m(
|
|
1482
1480
|
"div",
|
|
1483
1481
|
{
|
|
1484
1482
|
className: et.graphicContainer,
|
|
@@ -1546,16 +1544,16 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1546
1544
|
multiple: l = !1,
|
|
1547
1545
|
onChangeType: c
|
|
1548
1546
|
}) => {
|
|
1549
|
-
const { t: u } = $(), { name:
|
|
1547
|
+
const { t: u } = $(), { name: h, type: g, disabled: b } = n, [y, _] = V(!1);
|
|
1550
1548
|
F(() => {
|
|
1551
1549
|
t && _(
|
|
1552
1550
|
l ? t.some(
|
|
1553
|
-
(f) => f.name == String(
|
|
1554
|
-
) : t.name ==
|
|
1551
|
+
(f) => f.name == String(h)
|
|
1552
|
+
) : t.name == h
|
|
1555
1553
|
);
|
|
1556
1554
|
}, [t]);
|
|
1557
|
-
const v = () => /* @__PURE__ */ i("div", { className: q.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: q.switchType, children: /* @__PURE__ */
|
|
1558
|
-
/* @__PURE__ */
|
|
1555
|
+
const v = () => /* @__PURE__ */ i("div", { className: q.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: q.switchType, children: /* @__PURE__ */ m("div", { className: q.switchTypeOptions, children: [
|
|
1556
|
+
/* @__PURE__ */ m(
|
|
1559
1557
|
"div",
|
|
1560
1558
|
{
|
|
1561
1559
|
className: q.optionContainer,
|
|
@@ -1584,7 +1582,7 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1584
1582
|
]
|
|
1585
1583
|
}
|
|
1586
1584
|
),
|
|
1587
|
-
/* @__PURE__ */
|
|
1585
|
+
/* @__PURE__ */ m(
|
|
1588
1586
|
"div",
|
|
1589
1587
|
{
|
|
1590
1588
|
className: q.optionContainer,
|
|
@@ -1613,7 +1611,7 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1613
1611
|
]
|
|
1614
1612
|
}
|
|
1615
1613
|
)
|
|
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__ */
|
|
1614
|
+
] }) }) }), 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__ */ m(
|
|
1617
1615
|
"div",
|
|
1618
1616
|
{
|
|
1619
1617
|
className: q.optionContainer,
|
|
@@ -1629,8 +1627,8 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1629
1627
|
},
|
|
1630
1628
|
C
|
|
1631
1629
|
)) }) }) });
|
|
1632
|
-
return /* @__PURE__ */
|
|
1633
|
-
/* @__PURE__ */
|
|
1630
|
+
return /* @__PURE__ */ m("div", { className: q.indicatorContainer, children: [
|
|
1631
|
+
/* @__PURE__ */ m(
|
|
1634
1632
|
"div",
|
|
1635
1633
|
{
|
|
1636
1634
|
className: q.indicatorNameContainer,
|
|
@@ -1657,7 +1655,7 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1657
1655
|
children: /* @__PURE__ */ i(
|
|
1658
1656
|
Ke,
|
|
1659
1657
|
{
|
|
1660
|
-
i18nKey:
|
|
1658
|
+
i18nKey: h,
|
|
1661
1659
|
components: { sup: /* @__PURE__ */ i("sup", {}) },
|
|
1662
1660
|
shouldUnescape: !0
|
|
1663
1661
|
}
|
|
@@ -1667,8 +1665,8 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1667
1665
|
]
|
|
1668
1666
|
}
|
|
1669
1667
|
),
|
|
1670
|
-
(t == null ? void 0 : t.name) ===
|
|
1671
|
-
(t == null ? void 0 : t.name) ===
|
|
1668
|
+
(t == null ? void 0 : t.name) === h && g === "both" && /* @__PURE__ */ i("div", { children: v() }),
|
|
1669
|
+
(t == null ? void 0 : t.name) === h && g === "twoUnits" && /* @__PURE__ */ i("div", { children: p() })
|
|
1672
1670
|
] });
|
|
1673
1671
|
};
|
|
1674
1672
|
Ge.propTypes = {
|
|
@@ -1697,13 +1695,13 @@ const $n = "_indicatorsSubCategory_1dzsi_2", Bn = "_list_1dzsi_8", tt = {
|
|
|
1697
1695
|
activeIndicator: l,
|
|
1698
1696
|
onClickIndicator: c,
|
|
1699
1697
|
multiple: u,
|
|
1700
|
-
activeIndicatorType:
|
|
1698
|
+
activeIndicatorType: h,
|
|
1701
1699
|
onChangeType: g
|
|
1702
1700
|
}) => {
|
|
1703
1701
|
const { t: b } = $(), [y, _] = V(!1);
|
|
1704
1702
|
return F(() => {
|
|
1705
1703
|
_(t == a);
|
|
1706
|
-
}, [t, a]), /* @__PURE__ */
|
|
1704
|
+
}, [t, a]), /* @__PURE__ */ m(
|
|
1707
1705
|
He.div,
|
|
1708
1706
|
{
|
|
1709
1707
|
className: tt.indicatorsSubCategory,
|
|
@@ -1711,7 +1709,7 @@ const $n = "_indicatorsSubCategory_1dzsi_2", Bn = "_list_1dzsi_8", tt = {
|
|
|
1711
1709
|
animate: { height: y ? "auto" : "43px" },
|
|
1712
1710
|
transition: { duration: 0.4 },
|
|
1713
1711
|
children: [
|
|
1714
|
-
/* @__PURE__ */ i("button", { onClick: () => r(a), children: /* @__PURE__ */
|
|
1712
|
+
/* @__PURE__ */ i("button", { onClick: () => r(a), children: /* @__PURE__ */ m("h3", { style: { color: y ? o : s }, children: [
|
|
1715
1713
|
/* @__PURE__ */ i("span", { style: { color: y ? o : s }, children: y ? "-" : "+" }),
|
|
1716
1714
|
/* @__PURE__ */ i(
|
|
1717
1715
|
"span",
|
|
@@ -1730,7 +1728,7 @@ const $n = "_indicatorsSubCategory_1dzsi_2", Bn = "_list_1dzsi_8", tt = {
|
|
|
1730
1728
|
activeIndicator: l,
|
|
1731
1729
|
onClickIndicator: c,
|
|
1732
1730
|
multiple: u,
|
|
1733
|
-
activeIndicatorType:
|
|
1731
|
+
activeIndicatorType: h,
|
|
1734
1732
|
onChangeType: g
|
|
1735
1733
|
},
|
|
1736
1734
|
"indicator" + p
|
|
@@ -1762,7 +1760,7 @@ const xt = ({
|
|
|
1762
1760
|
onClickSubCategory: l,
|
|
1763
1761
|
activeIndicator: c,
|
|
1764
1762
|
onClickIndicator: u,
|
|
1765
|
-
multiple:
|
|
1763
|
+
multiple: h,
|
|
1766
1764
|
activeIndicatorType: g,
|
|
1767
1765
|
onChangeType: b
|
|
1768
1766
|
}) => {
|
|
@@ -1770,7 +1768,7 @@ const xt = ({
|
|
|
1770
1768
|
const { t: y } = $(), [_, v] = V(!1);
|
|
1771
1769
|
return F(() => {
|
|
1772
1770
|
v(r === d);
|
|
1773
|
-
}, [r, d]), /* @__PURE__ */
|
|
1771
|
+
}, [r, d]), /* @__PURE__ */ m(
|
|
1774
1772
|
He.div,
|
|
1775
1773
|
{
|
|
1776
1774
|
className: Ae.indicatorsCategory,
|
|
@@ -1783,7 +1781,7 @@ const xt = ({
|
|
|
1783
1781
|
marginBottom: _ ? "20px" : "0px"
|
|
1784
1782
|
},
|
|
1785
1783
|
children: [
|
|
1786
|
-
/* @__PURE__ */
|
|
1784
|
+
/* @__PURE__ */ m("h2", { className: `${Ae.title}`, onClick: () => t(d), children: [
|
|
1787
1785
|
/* @__PURE__ */ i("span", { style: { color: _ ? s : o }, children: _ ? "-" : "+" }),
|
|
1788
1786
|
/* @__PURE__ */ i(
|
|
1789
1787
|
"span",
|
|
@@ -1803,7 +1801,7 @@ const xt = ({
|
|
|
1803
1801
|
onClickSubCategory: l,
|
|
1804
1802
|
activeIndicator: c,
|
|
1805
1803
|
onClickIndicator: u,
|
|
1806
|
-
multiple:
|
|
1804
|
+
multiple: h,
|
|
1807
1805
|
activeColor: s,
|
|
1808
1806
|
defaultColor: o,
|
|
1809
1807
|
indicators: x,
|
|
@@ -1821,7 +1819,7 @@ const xt = ({
|
|
|
1821
1819
|
defaultColor: o,
|
|
1822
1820
|
activeIndicator: c,
|
|
1823
1821
|
onClickIndicator: u,
|
|
1824
|
-
multiple:
|
|
1822
|
+
multiple: h,
|
|
1825
1823
|
activeIndicatorType: g,
|
|
1826
1824
|
onChangeType: b
|
|
1827
1825
|
},
|
|
@@ -1862,12 +1860,12 @@ const Ln = "_indicatorsList_fklyu_2", Tn = "_title_fklyu_6", nt = {
|
|
|
1862
1860
|
changeIndType: a,
|
|
1863
1861
|
activeIndicatorType: l
|
|
1864
1862
|
}) => {
|
|
1865
|
-
const { t: c } = $(), [u,
|
|
1866
|
-
|
|
1863
|
+
const { t: c } = $(), [u, h] = V(), [g, b] = V(), [y, _] = V(), v = (w) => {
|
|
1864
|
+
h(u == w ? null : w);
|
|
1867
1865
|
}, p = (w) => {
|
|
1868
1866
|
b(g == w ? null : w);
|
|
1869
1867
|
}, f = ({ indicator: w }) => {
|
|
1870
|
-
|
|
1868
|
+
C(w);
|
|
1871
1869
|
}, C = (w) => {
|
|
1872
1870
|
if (!t)
|
|
1873
1871
|
_(
|
|
@@ -1885,7 +1883,7 @@ const Ln = "_indicatorsList_fklyu_2", Tn = "_title_fklyu_6", nt = {
|
|
|
1885
1883
|
}
|
|
1886
1884
|
};
|
|
1887
1885
|
F(() => {
|
|
1888
|
-
|
|
1886
|
+
o && typeof o == "function" && y && o({ activeIndicator: y });
|
|
1889
1887
|
}, [y]), At(() => {
|
|
1890
1888
|
if (r && !y)
|
|
1891
1889
|
if (t && r && Array.isArray(r)) {
|
|
@@ -1905,9 +1903,9 @@ const Ln = "_indicatorsList_fklyu_2", Tn = "_title_fklyu_6", nt = {
|
|
|
1905
1903
|
} else
|
|
1906
1904
|
return S.indicators.some((L) => L.name == w);
|
|
1907
1905
|
});
|
|
1908
|
-
N &&
|
|
1906
|
+
N && h(N.category);
|
|
1909
1907
|
};
|
|
1910
|
-
return /* @__PURE__ */
|
|
1908
|
+
return /* @__PURE__ */ m("div", { className: nt.indicatorsList, children: [
|
|
1911
1909
|
/* @__PURE__ */ i("h2", { className: nt.title, style: { color: s }, children: c("indicators.indicators") }),
|
|
1912
1910
|
n.map((w, N) => /* @__PURE__ */ i(
|
|
1913
1911
|
xt,
|
|
@@ -1952,8 +1950,8 @@ const Dn = "_langSelector_o9enq_2", Fn = "_currentLang_o9enq_14", Vn = "_arrow_o
|
|
|
1952
1950
|
const [o, t] = V(!1), { i18n: r } = $(), a = n.find((c) => c.code == r.language), l = (c) => {
|
|
1953
1951
|
r.changeLanguage(c), t(!1);
|
|
1954
1952
|
};
|
|
1955
|
-
return /* @__PURE__ */
|
|
1956
|
-
/* @__PURE__ */
|
|
1953
|
+
return /* @__PURE__ */ m("div", { className: le.langSelector, children: [
|
|
1954
|
+
/* @__PURE__ */ m(
|
|
1957
1955
|
"div",
|
|
1958
1956
|
{
|
|
1959
1957
|
className: le.currentLang,
|
|
@@ -2032,7 +2030,7 @@ const Rn = "_legendContainer_qs4x9_3", qn = "_closeButton_qs4x9_31", En = "_titl
|
|
|
2032
2030
|
onClickClose: c
|
|
2033
2031
|
}) => {
|
|
2034
2032
|
const { t: u } = $();
|
|
2035
|
-
return /* @__PURE__ */
|
|
2033
|
+
return /* @__PURE__ */ m(
|
|
2036
2034
|
"div",
|
|
2037
2035
|
{
|
|
2038
2036
|
style: n ? { ...n } : {},
|
|
@@ -2040,16 +2038,16 @@ const Rn = "_legendContainer_qs4x9_3", qn = "_closeButton_qs4x9_31", En = "_titl
|
|
|
2040
2038
|
children: [
|
|
2041
2039
|
/* @__PURE__ */ i("button", { className: I.closeButton, onClick: c }),
|
|
2042
2040
|
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__ */
|
|
2041
|
+
s && s.length > 0 && /* @__PURE__ */ i("div", { className: I.infoContainer, children: /* @__PURE__ */ i("ul", { children: s.map(({ title: h, value: g }) => /* @__PURE__ */ m("li", { children: [
|
|
2042
|
+
/* @__PURE__ */ i("h3", { className: I.title, children: `${h}:` }),
|
|
2043
|
+
/* @__PURE__ */ m("span", { className: I.value, children: [
|
|
2046
2044
|
" ",
|
|
2047
2045
|
g
|
|
2048
2046
|
] })
|
|
2049
2047
|
] }, d)) }) }),
|
|
2050
2048
|
/* @__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__ */
|
|
2049
|
+
/* @__PURE__ */ m("div", { className: I.legendListContainer, children: [
|
|
2050
|
+
r ? /* @__PURE__ */ m("div", { className: I.absoluteValueContainer, children: [
|
|
2053
2051
|
/* @__PURE__ */ i(
|
|
2054
2052
|
"div",
|
|
2055
2053
|
{
|
|
@@ -2059,25 +2057,25 @@ const Rn = "_legendContainer_qs4x9_3", qn = "_closeButton_qs4x9_31", En = "_titl
|
|
|
2059
2057
|
}
|
|
2060
2058
|
}
|
|
2061
2059
|
),
|
|
2062
|
-
/* @__PURE__ */
|
|
2063
|
-
/* @__PURE__ */
|
|
2060
|
+
/* @__PURE__ */ m("div", { className: I.absoluteValueText, children: [
|
|
2061
|
+
/* @__PURE__ */ m("span", { children: [
|
|
2064
2062
|
r.maxValue,
|
|
2065
2063
|
" ",
|
|
2066
2064
|
u(r.unit)
|
|
2067
2065
|
] }),
|
|
2068
|
-
r.midValue && /* @__PURE__ */
|
|
2066
|
+
r.midValue && /* @__PURE__ */ m("span", { children: [
|
|
2069
2067
|
r.midValue,
|
|
2070
2068
|
" ",
|
|
2071
2069
|
u(r.unit)
|
|
2072
2070
|
] }),
|
|
2073
|
-
/* @__PURE__ */
|
|
2071
|
+
/* @__PURE__ */ m("span", { children: [
|
|
2074
2072
|
r.minValue,
|
|
2075
2073
|
" ",
|
|
2076
2074
|
u(r.unit)
|
|
2077
2075
|
] })
|
|
2078
2076
|
] })
|
|
2079
2077
|
] }) : o && o.length > 0 && /* @__PURE__ */ i("div", { className: I.gridContainer, children: o.map(
|
|
2080
|
-
({ title:
|
|
2078
|
+
({ title: h, color: g }) => /* @__PURE__ */ m("div", { className: I.elementLegendContainer, children: [
|
|
2081
2079
|
/* @__PURE__ */ i(
|
|
2082
2080
|
"div",
|
|
2083
2081
|
{
|
|
@@ -2085,13 +2083,13 @@ const Rn = "_legendContainer_qs4x9_3", qn = "_closeButton_qs4x9_31", En = "_titl
|
|
|
2085
2083
|
style: { backgroundColor: g }
|
|
2086
2084
|
}
|
|
2087
2085
|
),
|
|
2088
|
-
/* @__PURE__ */
|
|
2089
|
-
u(
|
|
2086
|
+
/* @__PURE__ */ m("div", { className: I.titleLegendElement, children: [
|
|
2087
|
+
u(h),
|
|
2090
2088
|
" "
|
|
2091
2089
|
] })
|
|
2092
2090
|
] }, d)
|
|
2093
2091
|
) }),
|
|
2094
|
-
r.noDataColor && /* @__PURE__ */
|
|
2092
|
+
r.noDataColor && /* @__PURE__ */ m("div", { className: I.noDataContainer, children: [
|
|
2095
2093
|
/* @__PURE__ */ i(
|
|
2096
2094
|
"div",
|
|
2097
2095
|
{
|
|
@@ -2163,7 +2161,7 @@ const s0 = ({
|
|
|
2163
2161
|
interactiveLayers: l = [],
|
|
2164
2162
|
popUp: c = !1,
|
|
2165
2163
|
sources: u = [],
|
|
2166
|
-
layers:
|
|
2164
|
+
layers: h = []
|
|
2167
2165
|
}) => {
|
|
2168
2166
|
const g = se(), [b, y] = V(null), _ = Ot((v) => v.mapState.showTexts);
|
|
2169
2167
|
return F(() => {
|
|
@@ -2173,7 +2171,7 @@ const s0 = ({
|
|
|
2173
2171
|
f.type == "symbol" && f.id != "professionals" && (_ ? v.setLayoutProperty(f.id, "visibility", "visible") : v.setLayoutProperty(f.id, "visibility", "none"));
|
|
2174
2172
|
});
|
|
2175
2173
|
}
|
|
2176
|
-
}, [_]), /* @__PURE__ */ i("div", { className: `${i0.mapContainer}`, style: r, children: /* @__PURE__ */
|
|
2174
|
+
}, [_]), /* @__PURE__ */ i("div", { className: `${i0.mapContainer}`, style: r, children: /* @__PURE__ */ m(
|
|
2177
2175
|
Rt,
|
|
2178
2176
|
{
|
|
2179
2177
|
initialViewState: n,
|
|
@@ -2189,7 +2187,7 @@ const s0 = ({
|
|
|
2189
2187
|
qt,
|
|
2190
2188
|
{
|
|
2191
2189
|
...v,
|
|
2192
|
-
children:
|
|
2190
|
+
children: h.length && h.map((f, C) => {
|
|
2193
2191
|
if (f.sourceId == v.id) return /* @__PURE__ */ i(
|
|
2194
2192
|
Et,
|
|
2195
2193
|
{
|
|
@@ -2269,12 +2267,12 @@ const o0 = "_mapContainer_b0pyr_3", r0 = {
|
|
|
2269
2267
|
title: l0
|
|
2270
2268
|
}, c0 = ({ props: n }) => {
|
|
2271
2269
|
const { t: d } = $();
|
|
2272
|
-
return /* @__PURE__ */ i("div", { className: st.FeaturePopUp, children: n.map((s) => /* @__PURE__ */
|
|
2273
|
-
/* @__PURE__ */
|
|
2270
|
+
return /* @__PURE__ */ i("div", { className: st.FeaturePopUp, children: n.map((s) => /* @__PURE__ */ m("p", { children: [
|
|
2271
|
+
/* @__PURE__ */ m("span", { className: st.title, children: [
|
|
2274
2272
|
/* @__PURE__ */ i(Ke, { i18nKey: s.name, components: { sup: /* @__PURE__ */ i("sup", {}) }, shouldUnescape: !0 }),
|
|
2275
2273
|
":"
|
|
2276
2274
|
] }),
|
|
2277
|
-
isNaN(s.value) ? /* @__PURE__ */ i(Re, { children: d(s.value) }) : /* @__PURE__ */
|
|
2275
|
+
isNaN(s.value) ? /* @__PURE__ */ i(Re, { children: d(s.value) }) : /* @__PURE__ */ m(Re, { children: [
|
|
2278
2276
|
s.value.toLocaleString("de", { maximumFractionDigits: 2 }),
|
|
2279
2277
|
" ",
|
|
2280
2278
|
d(s.unit)
|
|
@@ -2291,13 +2289,12 @@ const o0 = "_mapContainer_b0pyr_3", r0 = {
|
|
|
2291
2289
|
interactiveLayers: l = [],
|
|
2292
2290
|
sources: c = [],
|
|
2293
2291
|
layers: u = [],
|
|
2294
|
-
filters:
|
|
2292
|
+
filters: h,
|
|
2295
2293
|
popUpParams: g,
|
|
2296
2294
|
onClosePopUp: b,
|
|
2297
2295
|
showTexts: y,
|
|
2298
2296
|
hash: _ = !1
|
|
2299
2297
|
}) => {
|
|
2300
|
-
console.log(m);
|
|
2301
2298
|
const v = se();
|
|
2302
2299
|
return F(() => {
|
|
2303
2300
|
if (v.current) {
|
|
@@ -2311,7 +2308,7 @@ const o0 = "_mapContainer_b0pyr_3", r0 = {
|
|
|
2311
2308
|
return Me.addProtocol("pmtiles", p.tile), () => {
|
|
2312
2309
|
Me.removeProtocol("pmtiles");
|
|
2313
2310
|
};
|
|
2314
|
-
}, []), /* @__PURE__ */ i("div", { className: `${r0.mapContainer}`, style: r && r, children: /* @__PURE__ */
|
|
2311
|
+
}, []), /* @__PURE__ */ i("div", { className: `${r0.mapContainer}`, style: r && r, children: /* @__PURE__ */ m(
|
|
2315
2312
|
Zt,
|
|
2316
2313
|
{
|
|
2317
2314
|
mapLib: Me,
|
|
@@ -2329,12 +2326,12 @@ const o0 = "_mapContainer_b0pyr_3", r0 = {
|
|
|
2329
2326
|
{
|
|
2330
2327
|
...p,
|
|
2331
2328
|
children: u.length && u.map((C, x) => {
|
|
2332
|
-
if (
|
|
2329
|
+
if (C.sourceId == p.id) return /* @__PURE__ */ i(
|
|
2333
2330
|
Ht,
|
|
2334
2331
|
{
|
|
2335
2332
|
...C.layer,
|
|
2336
2333
|
beforeId: t,
|
|
2337
|
-
filter:
|
|
2334
|
+
filter: h && C.filterable && h,
|
|
2338
2335
|
layout: {
|
|
2339
2336
|
visibility: C.layer.visibility || "visible"
|
|
2340
2337
|
}
|
|
@@ -2419,10 +2416,10 @@ const u0 = "_sectionBar_1egwc_2", p0 = "_leftContent_1egwc_14", m0 = "_textConta
|
|
|
2419
2416
|
width: r
|
|
2420
2417
|
}) => {
|
|
2421
2418
|
const { t: a } = $();
|
|
2422
|
-
return /* @__PURE__ */
|
|
2423
|
-
/* @__PURE__ */
|
|
2419
|
+
return /* @__PURE__ */ m("div", { className: ee.sectionBar, style: { width: r && r }, children: [
|
|
2420
|
+
/* @__PURE__ */ m("div", { className: ee.leftContent, children: [
|
|
2424
2421
|
n && /* @__PURE__ */ i("img", { src: n, alt: "Icono", className: ee.icon }),
|
|
2425
|
-
/* @__PURE__ */
|
|
2422
|
+
/* @__PURE__ */ m("div", { className: ee.textContainer, children: [
|
|
2426
2423
|
/* @__PURE__ */ i("div", { className: ee.title, children: a(d) }),
|
|
2427
2424
|
s && /* @__PURE__ */ i("div", { className: ee.subtitle, children: s })
|
|
2428
2425
|
] })
|
|
@@ -2488,7 +2485,7 @@ const b0 = Wt({
|
|
|
2488
2485
|
}) => {
|
|
2489
2486
|
const [l, c] = V(d), u = (f, C) => {
|
|
2490
2487
|
c(C), a(C);
|
|
2491
|
-
}, [
|
|
2488
|
+
}, [h, g] = V(!1), b = () => {
|
|
2492
2489
|
g(!0);
|
|
2493
2490
|
}, y = () => {
|
|
2494
2491
|
g(!1);
|
|
@@ -2507,7 +2504,7 @@ const b0 = Wt({
|
|
|
2507
2504
|
}
|
|
2508
2505
|
}, [C]);
|
|
2509
2506
|
})(() => {
|
|
2510
|
-
|
|
2507
|
+
h && (l != 2050 ? (c(l + 1), a(l + 1)) : (c(2025), a(2025)));
|
|
2511
2508
|
}, 1e3);
|
|
2512
2509
|
const v = Qt({
|
|
2513
2510
|
palette: {
|
|
@@ -2537,7 +2534,7 @@ const b0 = Wt({
|
|
|
2537
2534
|
{ label: "", value: 2041 },
|
|
2538
2535
|
{ label: "", value: 2050 }
|
|
2539
2536
|
];
|
|
2540
|
-
return /* @__PURE__ */ i(Jt, { theme: v, children: /* @__PURE__ */
|
|
2537
|
+
return /* @__PURE__ */ i(Jt, { theme: v, children: /* @__PURE__ */ m(
|
|
2541
2538
|
Xt,
|
|
2542
2539
|
{
|
|
2543
2540
|
sx: { width: 400 },
|
|
@@ -2561,8 +2558,8 @@ const b0 = Wt({
|
|
|
2561
2558
|
}
|
|
2562
2559
|
),
|
|
2563
2560
|
o,
|
|
2564
|
-
!
|
|
2565
|
-
|
|
2561
|
+
!h && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: b, children: /* @__PURE__ */ i("img", { src: y0, alt: "Play" }) }),
|
|
2562
|
+
h && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: y, children: /* @__PURE__ */ i("img", { src: _0, alt: "Pause" }) })
|
|
2566
2563
|
]
|
|
2567
2564
|
}
|
|
2568
2565
|
) });
|
|
@@ -2659,7 +2656,7 @@ const F0 = "_elementSelector_1qdhv_2", V0 = "_header_1qdhv_13", A0 = "_nameDateC
|
|
|
2659
2656
|
buttonsContainer: R0,
|
|
2660
2657
|
elementListContainer: q0,
|
|
2661
2658
|
newElementButtonContainer: E0
|
|
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",
|
|
2659
|
+
}, 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", Z = {
|
|
2663
2660
|
listElement: P0,
|
|
2664
2661
|
elementNameDate: j0,
|
|
2665
2662
|
elementNameContainer: z0,
|
|
@@ -2705,17 +2702,17 @@ const ti = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2705
2702
|
elementButtons: l,
|
|
2706
2703
|
processTooltip: c,
|
|
2707
2704
|
defaultTooltip: u,
|
|
2708
|
-
showEye:
|
|
2705
|
+
showEye: h = !0
|
|
2709
2706
|
}) => {
|
|
2710
2707
|
const { name: g, created_at: b, id: y, isBeingProcessed: _ } = n, [v, p] = V(!1), { t: f } = $();
|
|
2711
|
-
return /* @__PURE__ */
|
|
2708
|
+
return /* @__PURE__ */ m(
|
|
2712
2709
|
"div",
|
|
2713
2710
|
{
|
|
2714
|
-
className:
|
|
2711
|
+
className: Z.listElement,
|
|
2715
2712
|
style: { borderBottom: `1px solid ${t}` },
|
|
2716
2713
|
children: [
|
|
2717
|
-
/* @__PURE__ */ i("div", { className:
|
|
2718
|
-
|
|
2714
|
+
/* @__PURE__ */ i("div", { className: Z.elementNameDate, onClick: () => d(y), children: Object.keys(a).map((C) => C === "name" ? /* @__PURE__ */ i("div", { className: Z.elementNameContainer, children: /* @__PURE__ */ m("div", { className: Z.elementName, children: [
|
|
2715
|
+
h && (s ? /* @__PURE__ */ i(ei, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ i(
|
|
2719
2716
|
"img",
|
|
2720
2717
|
{
|
|
2721
2718
|
style: { marginRight: 9 },
|
|
@@ -2724,36 +2721,36 @@ const ti = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2724
2721
|
}
|
|
2725
2722
|
)),
|
|
2726
2723
|
/* @__PURE__ */ i("span", { style: { color: s ? o : t }, children: g })
|
|
2727
|
-
] }) }) : C == "data" ? /* @__PURE__ */ i("div", { className:
|
|
2728
|
-
/* @__PURE__ */
|
|
2729
|
-
n.processing && /* @__PURE__ */
|
|
2724
|
+
] }) }) : C == "data" ? /* @__PURE__ */ i("div", { className: Z.elementDate, children: b ? new Date(b).toLocaleDateString() : "" }) : /* @__PURE__ */ i("div", { className: Z.elementDate, children: n[C] })) }),
|
|
2725
|
+
/* @__PURE__ */ m("div", { className: Z.elementButtons, children: [
|
|
2726
|
+
n.processing && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
2730
2727
|
/* @__PURE__ */ i("img", { src: X0 }),
|
|
2731
2728
|
/* @__PURE__ */ i(ie, { text: c, position: "left" })
|
|
2732
2729
|
] }),
|
|
2733
|
-
l.filter && !n.is_default && /* @__PURE__ */
|
|
2730
|
+
l.filter && !n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
2734
2731
|
/* @__PURE__ */ i("button", { onClick: () => l.filter.onclick(n), children: /* @__PURE__ */ i("img", { src: Q0 }) }),
|
|
2735
2732
|
/* @__PURE__ */ i(ie, { text: l.filter.tooltiptext, position: "left" })
|
|
2736
2733
|
] }),
|
|
2737
|
-
l.copy && /* @__PURE__ */
|
|
2734
|
+
l.copy && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
2738
2735
|
/* @__PURE__ */ i("button", { onClick: () => l.copy.onclick(n), children: /* @__PURE__ */ i("img", { src: Y0 }) }),
|
|
2739
2736
|
/* @__PURE__ */ i(ie, { text: l.copy.tooltiptext, position: "left" })
|
|
2740
2737
|
] }),
|
|
2741
|
-
l.trash && !n.is_default && /* @__PURE__ */
|
|
2738
|
+
l.trash && !n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
2742
2739
|
/* @__PURE__ */ i("button", { onClick: () => l.trash.onclick(n), children: /* @__PURE__ */ i("img", { src: W0 }) }),
|
|
2743
2740
|
/* @__PURE__ */ i(ie, { text: l.trash.tooltiptext, position: "left" })
|
|
2744
2741
|
] }),
|
|
2745
|
-
n.is_default && /* @__PURE__ */
|
|
2742
|
+
n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
2746
2743
|
/* @__PURE__ */ i("img", { src: J0 }),
|
|
2747
2744
|
/* @__PURE__ */ i(ie, { text: u, position: "left" })
|
|
2748
2745
|
] })
|
|
2749
2746
|
] }),
|
|
2750
|
-
r && /* @__PURE__ */ i("div", { className:
|
|
2751
|
-
r && /* @__PURE__ */
|
|
2752
|
-
/* @__PURE__ */
|
|
2747
|
+
r && /* @__PURE__ */ i("div", { className: Z.break }),
|
|
2748
|
+
r && /* @__PURE__ */ m("div", { className: Z.moreInfoContainer, children: [
|
|
2749
|
+
/* @__PURE__ */ m("div", { className: Z.moreInfo, onClick: () => p(!v), children: [
|
|
2753
2750
|
/* @__PURE__ */ i("span", { children: v ? "-" : "+" }),
|
|
2754
2751
|
f(r.label)
|
|
2755
2752
|
] }),
|
|
2756
|
-
r && v && /* @__PURE__ */ i("div", { className:
|
|
2753
|
+
r && v && /* @__PURE__ */ i("div", { className: Z.moreInfoInfo, children: n[r.info] })
|
|
2757
2754
|
] })
|
|
2758
2755
|
]
|
|
2759
2756
|
}
|
|
@@ -2809,7 +2806,7 @@ const rt = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2809
2806
|
// {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
|
|
2810
2807
|
elementButtons: u,
|
|
2811
2808
|
//{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
|
|
2812
|
-
moreInfo:
|
|
2809
|
+
moreInfo: h = !1,
|
|
2813
2810
|
//{label: 'x'}
|
|
2814
2811
|
processTooltip: g,
|
|
2815
2812
|
//texto para el tooltip del simbolo "En proceso"
|
|
@@ -2827,22 +2824,22 @@ const rt = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2827
2824
|
x.sort((w, N) => w[C].localeCompare(N[C])), p(x);
|
|
2828
2825
|
}
|
|
2829
2826
|
};
|
|
2830
|
-
return /* @__PURE__ */
|
|
2827
|
+
return /* @__PURE__ */ m(
|
|
2831
2828
|
"div",
|
|
2832
2829
|
{
|
|
2833
2830
|
className: H.elementSelector,
|
|
2834
2831
|
style: { color: s, ...r },
|
|
2835
2832
|
children: [
|
|
2836
|
-
/* @__PURE__ */
|
|
2833
|
+
/* @__PURE__ */ m(
|
|
2837
2834
|
"div",
|
|
2838
2835
|
{
|
|
2839
2836
|
className: H.header,
|
|
2840
2837
|
style: { borderBottom: `1px solid ${s}` },
|
|
2841
2838
|
children: [
|
|
2842
|
-
/* @__PURE__ */ i("div", { className: H.nameDateContainer, children: Object.keys(c).map((C) => C === "name" ? /* @__PURE__ */ i("div", { className: H.elementName, children: /* @__PURE__ */
|
|
2839
|
+
/* @__PURE__ */ i("div", { className: H.nameDateContainer, children: Object.keys(c).map((C) => C === "name" ? /* @__PURE__ */ i("div", { className: H.elementName, children: /* @__PURE__ */ m("button", { onClick: () => f("name"), children: [
|
|
2843
2840
|
/* @__PURE__ */ i("span", { children: _(c.name) }),
|
|
2844
2841
|
/* @__PURE__ */ i("img", { src: rt, alt: "order arrow" })
|
|
2845
|
-
] }) }, C) : C === "data" ? /* @__PURE__ */ i("div", { className: H.elementDate, children: /* @__PURE__ */
|
|
2842
|
+
] }) }, C) : C === "data" ? /* @__PURE__ */ i("div", { className: H.elementDate, children: /* @__PURE__ */ m("button", { onClick: () => f("date"), children: [
|
|
2846
2843
|
/* @__PURE__ */ i("span", { children: _(c.data) }),
|
|
2847
2844
|
/* @__PURE__ */ i("img", { src: rt, alt: "order arrow" })
|
|
2848
2845
|
] }) }, C) : /* @__PURE__ */ i("div", { className: H.elementDate, children: /* @__PURE__ */ i("span", { children: _(c[C]) }) }, C)) }),
|
|
@@ -2860,7 +2857,7 @@ const rt = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2860
2857
|
onClickElement: l,
|
|
2861
2858
|
columns: c,
|
|
2862
2859
|
elementButtons: u,
|
|
2863
|
-
moreInfo:
|
|
2860
|
+
moreInfo: h,
|
|
2864
2861
|
processTooltip: g,
|
|
2865
2862
|
defaultTooltip: b,
|
|
2866
2863
|
showEye: y
|
|
@@ -3036,7 +3033,7 @@ function _i(n) {
|
|
|
3036
3033
|
values: !0
|
|
3037
3034
|
},
|
|
3038
3035
|
exact: a,
|
|
3039
|
-
callback: (
|
|
3036
|
+
callback: (h) => !r && u(yi(o, s._names, h.values || s._formValues, !1, l.current))
|
|
3040
3037
|
}), [o, s, r, a]), M.useEffect(() => s._removeUnmounted()), c;
|
|
3041
3038
|
}
|
|
3042
3039
|
function vi(n) {
|
|
@@ -3049,7 +3046,7 @@ function vi(n) {
|
|
|
3049
3046
|
control: t,
|
|
3050
3047
|
name: s,
|
|
3051
3048
|
exact: !0
|
|
3052
|
-
}), u = M.useRef(n),
|
|
3049
|
+
}), u = M.useRef(n), h = M.useRef(t.register(s, {
|
|
3053
3050
|
...n.rules,
|
|
3054
3051
|
value: l,
|
|
3055
3052
|
...Oe(n.disabled) ? { disabled: n.disabled } : {}
|
|
@@ -3074,13 +3071,13 @@ function vi(n) {
|
|
|
3074
3071
|
enumerable: !0,
|
|
3075
3072
|
get: () => P(c.errors, s)
|
|
3076
3073
|
}
|
|
3077
|
-
}), [c, s]), b = M.useCallback((p) =>
|
|
3074
|
+
}), [c, s]), b = M.useCallback((p) => h.current.onChange({
|
|
3078
3075
|
target: {
|
|
3079
3076
|
value: di(p),
|
|
3080
3077
|
name: s
|
|
3081
3078
|
},
|
|
3082
3079
|
type: lt.CHANGE
|
|
3083
|
-
}), [s]), y = M.useCallback(() =>
|
|
3080
|
+
}), [s]), y = M.useCallback(() => h.current.onBlur({
|
|
3084
3081
|
target: {
|
|
3085
3082
|
value: P(t._formValues, s),
|
|
3086
3083
|
name: s
|
|
@@ -3164,7 +3161,7 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3164
3161
|
validateFunction: l,
|
|
3165
3162
|
placeholder: c,
|
|
3166
3163
|
errorColor: u = "red",
|
|
3167
|
-
width:
|
|
3164
|
+
width: h = 325,
|
|
3168
3165
|
onClickForgotPass: g = () => {
|
|
3169
3166
|
console.log("Click on forgot password");
|
|
3170
3167
|
},
|
|
@@ -3184,16 +3181,16 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3184
3181
|
},
|
|
3185
3182
|
render: ({ field: N, fieldState: S }) => {
|
|
3186
3183
|
var L;
|
|
3187
|
-
return /* @__PURE__ */
|
|
3188
|
-
/* @__PURE__ */
|
|
3184
|
+
return /* @__PURE__ */ m("div", { className: be.textInputContainer, children: [
|
|
3185
|
+
/* @__PURE__ */ m("h3", { className: be.labelContainer, children: [
|
|
3189
3186
|
y(t),
|
|
3190
3187
|
" ",
|
|
3191
3188
|
a && /* @__PURE__ */ i("label", { style: { color: S.error ? u : "" }, children: "*" })
|
|
3192
3189
|
] }),
|
|
3193
|
-
/* @__PURE__ */
|
|
3190
|
+
/* @__PURE__ */ m(
|
|
3194
3191
|
"div",
|
|
3195
3192
|
{
|
|
3196
|
-
style: { position: "relative", width:
|
|
3193
|
+
style: { position: "relative", width: h },
|
|
3197
3194
|
className: be.inputContainer,
|
|
3198
3195
|
children: [
|
|
3199
3196
|
/* @__PURE__ */ i(
|
|
@@ -3248,7 +3245,7 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3248
3245
|
validateFunction: l,
|
|
3249
3246
|
placeholder: c,
|
|
3250
3247
|
errorColor: u = "red",
|
|
3251
|
-
width:
|
|
3248
|
+
width: h = 325,
|
|
3252
3249
|
options: g = []
|
|
3253
3250
|
} = n, { t: b } = $(), { control: y, trigger: _, clearErrors: v } = d, { errorColor: p } = xe((f) => f);
|
|
3254
3251
|
return se(a), /* @__PURE__ */ i(
|
|
@@ -3265,14 +3262,14 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3265
3262
|
},
|
|
3266
3263
|
render: ({ field: f, fieldState: C }) => {
|
|
3267
3264
|
var x;
|
|
3268
|
-
return /* @__PURE__ */
|
|
3269
|
-
/* @__PURE__ */
|
|
3265
|
+
return /* @__PURE__ */ m("div", { className: de.selectInputContainer, children: [
|
|
3266
|
+
/* @__PURE__ */ m("h3", { className: de.labelContainer, children: [
|
|
3270
3267
|
b(t),
|
|
3271
3268
|
" ",
|
|
3272
3269
|
a && /* @__PURE__ */ i("label", { style: { color: C.error ? u : "" }, children: "*" })
|
|
3273
3270
|
] }),
|
|
3274
|
-
/* @__PURE__ */
|
|
3275
|
-
/* @__PURE__ */
|
|
3271
|
+
/* @__PURE__ */ m("div", { className: de.inputContainer, style: { width: h }, children: [
|
|
3272
|
+
/* @__PURE__ */ m(
|
|
3276
3273
|
"select",
|
|
3277
3274
|
{
|
|
3278
3275
|
...f,
|
|
@@ -3331,7 +3328,7 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3331
3328
|
errorColor: a = "red",
|
|
3332
3329
|
options: l = [],
|
|
3333
3330
|
multi: c = !1
|
|
3334
|
-
} = n, { t: u } = $(), { control:
|
|
3331
|
+
} = n, { t: u } = $(), { control: h, trigger: g, clearErrors: b } = d, { errorColor: y } = xe((p) => p), _ = ({ options: p, onChange: f, actualValue: C }) => {
|
|
3335
3332
|
if (c && C && C.length > 0) {
|
|
3336
3333
|
let x = C.filter((w) => w !== p);
|
|
3337
3334
|
f(x);
|
|
@@ -3342,7 +3339,7 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3342
3339
|
return se(t), /* @__PURE__ */ i(
|
|
3343
3340
|
ve,
|
|
3344
3341
|
{
|
|
3345
|
-
control:
|
|
3342
|
+
control: h,
|
|
3346
3343
|
name: s,
|
|
3347
3344
|
rules: {
|
|
3348
3345
|
validate: (p) => t && (p == null || p === "") ? `${u(o)} ${u("errorMessages.required")}` : null
|
|
@@ -3353,8 +3350,8 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3353
3350
|
fieldState: N
|
|
3354
3351
|
}) => {
|
|
3355
3352
|
var S;
|
|
3356
|
-
return /* @__PURE__ */ i("div", { id: s + "id", className: te.radioButtonContainer, children: /* @__PURE__ */
|
|
3357
|
-
o && /* @__PURE__ */ i("div", { className: te.questionContainer, children: /* @__PURE__ */
|
|
3353
|
+
return /* @__PURE__ */ i("div", { id: s + "id", className: te.radioButtonContainer, children: /* @__PURE__ */ m("div", { className: te.wholeInputContainer, children: [
|
|
3354
|
+
o && /* @__PURE__ */ i("div", { className: te.questionContainer, children: /* @__PURE__ */ m(
|
|
3358
3355
|
"h3",
|
|
3359
3356
|
{
|
|
3360
3357
|
htmlFor: s + "id",
|
|
@@ -3372,7 +3369,7 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3372
3369
|
]
|
|
3373
3370
|
}
|
|
3374
3371
|
) }),
|
|
3375
|
-
/* @__PURE__ */
|
|
3372
|
+
/* @__PURE__ */ m("div", { className: te.inputContainer, children: [
|
|
3376
3373
|
l.map(
|
|
3377
3374
|
({
|
|
3378
3375
|
label: L,
|
|
@@ -3380,8 +3377,8 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3380
3377
|
disabled: B = !1,
|
|
3381
3378
|
italicLabel: O
|
|
3382
3379
|
}, R) => {
|
|
3383
|
-
const T = x && c ? x.isArray && (x == null ? void 0 : x.length) > 0 && x.some((
|
|
3384
|
-
return /* @__PURE__ */
|
|
3380
|
+
const T = x && c ? x.isArray && (x == null ? void 0 : x.length) > 0 && x.some((K) => K === k) : x === k;
|
|
3381
|
+
return /* @__PURE__ */ m("label", { children: [
|
|
3385
3382
|
/* @__PURE__ */ i(
|
|
3386
3383
|
"input",
|
|
3387
3384
|
{
|
|
@@ -3437,7 +3434,7 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3437
3434
|
thumbColor: c = "#B32F5D",
|
|
3438
3435
|
//trackColors = ["#B32F5D", "#EFEFEF"],
|
|
3439
3436
|
required: u,
|
|
3440
|
-
errorColor:
|
|
3437
|
+
errorColor: h = "red",
|
|
3441
3438
|
labelWidth: g = "300px",
|
|
3442
3439
|
sliderWidth: b = "300px",
|
|
3443
3440
|
minText: y,
|
|
@@ -3462,7 +3459,7 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3462
3459
|
},
|
|
3463
3460
|
render: ({ field: B, fieldState: O }) => {
|
|
3464
3461
|
var R;
|
|
3465
|
-
return /* @__PURE__ */
|
|
3462
|
+
return /* @__PURE__ */ m(
|
|
3466
3463
|
"div",
|
|
3467
3464
|
{
|
|
3468
3465
|
className: A.rankingSliderContainer,
|
|
@@ -3471,9 +3468,9 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3471
3468
|
},
|
|
3472
3469
|
children: [
|
|
3473
3470
|
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: C(t) }),
|
|
3474
|
-
/* @__PURE__ */
|
|
3471
|
+
/* @__PURE__ */ m("div", { className: A.inputContainer, children: [
|
|
3475
3472
|
y && /* @__PURE__ */ i("div", { className: A.minLabel, children: C(y) }),
|
|
3476
|
-
/* @__PURE__ */
|
|
3473
|
+
/* @__PURE__ */ m("div", { children: [
|
|
3477
3474
|
/* @__PURE__ */ i(
|
|
3478
3475
|
je,
|
|
3479
3476
|
{
|
|
@@ -3505,7 +3502,7 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3505
3502
|
we,
|
|
3506
3503
|
{
|
|
3507
3504
|
errorMessage: (R = O.error) == null ? void 0 : R.message,
|
|
3508
|
-
errorColor: S ||
|
|
3505
|
+
errorColor: S || h
|
|
3509
3506
|
}
|
|
3510
3507
|
)
|
|
3511
3508
|
]
|
|
@@ -3513,16 +3510,16 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3513
3510
|
);
|
|
3514
3511
|
}
|
|
3515
3512
|
}
|
|
3516
|
-
) : /* @__PURE__ */
|
|
3513
|
+
) : /* @__PURE__ */ m(
|
|
3517
3514
|
"div",
|
|
3518
3515
|
{
|
|
3519
3516
|
className: A.rankingSliderContainer,
|
|
3520
3517
|
style: { gridTemplateColumns: `${t && g} ${b}` },
|
|
3521
3518
|
children: [
|
|
3522
3519
|
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: C(t) }),
|
|
3523
|
-
/* @__PURE__ */
|
|
3520
|
+
/* @__PURE__ */ m("div", { className: A.inputContainer, children: [
|
|
3524
3521
|
y && /* @__PURE__ */ i("div", { className: A.minLabel, children: C(y) }),
|
|
3525
|
-
/* @__PURE__ */
|
|
3522
|
+
/* @__PURE__ */ m("div", { children: [
|
|
3526
3523
|
/* @__PURE__ */ i(
|
|
3527
3524
|
je,
|
|
3528
3525
|
{
|
|
@@ -3688,18 +3685,18 @@ const ye = ({
|
|
|
3688
3685
|
d(a);
|
|
3689
3686
|
};
|
|
3690
3687
|
return /* @__PURE__ */ i("div", { className: $e.categorySelector, children: n.map((a, l) => {
|
|
3691
|
-
const { id: c, label: u } = a,
|
|
3692
|
-
return
|
|
3688
|
+
const { id: c, label: u } = a, h = s == c;
|
|
3689
|
+
return /* @__PURE__ */ i(
|
|
3693
3690
|
"button",
|
|
3694
3691
|
{
|
|
3695
|
-
className: `${$e.sectionItem} ${
|
|
3692
|
+
className: `${$e.sectionItem} ${h ? $e.sectionItemActive : ""}`,
|
|
3696
3693
|
type: "button",
|
|
3697
|
-
style: { backgroundColor:
|
|
3694
|
+
style: { backgroundColor: h ? o : "inherit" },
|
|
3698
3695
|
onClick: () => r(c),
|
|
3699
3696
|
children: /* @__PURE__ */ i(
|
|
3700
3697
|
"span",
|
|
3701
3698
|
{
|
|
3702
|
-
style: { color:
|
|
3699
|
+
style: { color: h ? "white" : "inherit" },
|
|
3703
3700
|
className: $e.sectionLabel,
|
|
3704
3701
|
children: t(u)
|
|
3705
3702
|
}
|
|
@@ -3719,7 +3716,7 @@ const ye = ({
|
|
|
3719
3716
|
submitButtonStyles: l = { width: 325 },
|
|
3720
3717
|
showCategorySelector: c = !0,
|
|
3721
3718
|
defaultCategory: u = null,
|
|
3722
|
-
categoryLabel:
|
|
3719
|
+
categoryLabel: h = "Select Category",
|
|
3723
3720
|
activeCategory: g = null,
|
|
3724
3721
|
activeCategoryColor: b = "#b32f5d",
|
|
3725
3722
|
onSubmit: y = (_) => console.log("Form submitted with: ", _)
|
|
@@ -3751,7 +3748,7 @@ const ye = ({
|
|
|
3751
3748
|
var O;
|
|
3752
3749
|
if (((O = k.subcategories) == null ? void 0 : O.length) > 0) {
|
|
3753
3750
|
const R = k.subcategories;
|
|
3754
|
-
return /* @__PURE__ */
|
|
3751
|
+
return /* @__PURE__ */ m("div", { children: [
|
|
3755
3752
|
/* @__PURE__ */ i(
|
|
3756
3753
|
"div",
|
|
3757
3754
|
{
|
|
@@ -3768,7 +3765,7 @@ const ye = ({
|
|
|
3768
3765
|
},
|
|
3769
3766
|
k.categoryId
|
|
3770
3767
|
),
|
|
3771
|
-
R.map((T,
|
|
3768
|
+
R.map((T, K) => {
|
|
3772
3769
|
const z = !N || T.id === N;
|
|
3773
3770
|
return s ? /* @__PURE__ */ i(
|
|
3774
3771
|
"div",
|
|
@@ -3788,8 +3785,8 @@ const ye = ({
|
|
|
3788
3785
|
}
|
|
3789
3786
|
) }, T.id)
|
|
3790
3787
|
},
|
|
3791
|
-
`${T.id}${
|
|
3792
|
-
) : /* @__PURE__ */
|
|
3788
|
+
`${T.id}${K}`
|
|
3789
|
+
) : /* @__PURE__ */ m(
|
|
3793
3790
|
"div",
|
|
3794
3791
|
{
|
|
3795
3792
|
style: {
|
|
@@ -3810,7 +3807,7 @@ const ye = ({
|
|
|
3810
3807
|
)
|
|
3811
3808
|
]
|
|
3812
3809
|
},
|
|
3813
|
-
`${T.id}${
|
|
3810
|
+
`${T.id}${K}`
|
|
3814
3811
|
);
|
|
3815
3812
|
})
|
|
3816
3813
|
] });
|
|
@@ -3824,7 +3821,7 @@ const ye = ({
|
|
|
3824
3821
|
errorColor: r,
|
|
3825
3822
|
reactHookFormInstance: n
|
|
3826
3823
|
}
|
|
3827
|
-
) }, k.categoryId) : /* @__PURE__ */
|
|
3824
|
+
) }, k.categoryId) : /* @__PURE__ */ m("div", { style: { width: "100%" }, children: [
|
|
3828
3825
|
/* @__PURE__ */ i("h2", { children: _(k.category) }),
|
|
3829
3826
|
/* @__PURE__ */ i(
|
|
3830
3827
|
ye,
|
|
@@ -3838,7 +3835,7 @@ const ye = ({
|
|
|
3838
3835
|
)
|
|
3839
3836
|
] }, k.categoryId);
|
|
3840
3837
|
};
|
|
3841
|
-
return /* @__PURE__ */
|
|
3838
|
+
return /* @__PURE__ */ m("form", { className: Ce.formContainer, onSubmit: v(y), children: [
|
|
3842
3839
|
c && f.length > 0 && /* @__PURE__ */ i("div", { className: Ce.categorySelectorContainer, children: /* @__PURE__ */ i(
|
|
3843
3840
|
ut,
|
|
3844
3841
|
{
|
|
@@ -3873,7 +3870,7 @@ const ye = ({
|
|
|
3873
3870
|
}
|
|
3874
3871
|
);
|
|
3875
3872
|
}) }),
|
|
3876
|
-
/* @__PURE__ */
|
|
3873
|
+
/* @__PURE__ */ m("div", { className: Ce.buttonContainer, children: [
|
|
3877
3874
|
/* @__PURE__ */ i(Te, { containerStyles: l, type: "submit", children: _(a) }),
|
|
3878
3875
|
/* @__PURE__ */ i(we, { errorMessage: t, errorColor: r })
|
|
3879
3876
|
] })
|
|
@@ -3895,7 +3892,7 @@ const ye = ({
|
|
|
3895
3892
|
buttons: t,
|
|
3896
3893
|
maxHeight: r = "450px",
|
|
3897
3894
|
maxWidth: a = "450px"
|
|
3898
|
-
}) => /* @__PURE__ */ i("div", { className: Y.overlay, children: /* @__PURE__ */
|
|
3895
|
+
}) => /* @__PURE__ */ i("div", { className: Y.overlay, children: /* @__PURE__ */ m(
|
|
3899
3896
|
"div",
|
|
3900
3897
|
{
|
|
3901
3898
|
className: Y.modal,
|
|
@@ -3937,8 +3934,8 @@ const us = "_stepsContainer_1cyua_3", ps = "_stepWrapper_1cyua_9", ms = "_circle
|
|
|
3937
3934
|
connector: ys
|
|
3938
3935
|
}, Dt = ({ steps: n, activeColor: d }) => /* @__PURE__ */ i("div", { className: U.stepsContainer, children: n.map((s, o) => {
|
|
3939
3936
|
const t = s.status === "active", r = s.status === "completed";
|
|
3940
|
-
return /* @__PURE__ */
|
|
3941
|
-
/* @__PURE__ */
|
|
3937
|
+
return /* @__PURE__ */ m("div", { className: U.stepWrapper, children: [
|
|
3938
|
+
/* @__PURE__ */ m("div", { className: U.circleContainer, children: [
|
|
3942
3939
|
/* @__PURE__ */ i(
|
|
3943
3940
|
"div",
|
|
3944
3941
|
{
|
|
@@ -4037,18 +4034,18 @@ const Ss = "_switchContainer_194wl_2", $s = "_labelRight_194wl_9", Bs = "_labelL
|
|
|
4037
4034
|
colorOn: l = "#5A514D",
|
|
4038
4035
|
disabled: c = !1,
|
|
4039
4036
|
width: u = 240
|
|
4040
|
-
} = n, { t:
|
|
4037
|
+
} = n, { t: h } = $(), { control: g } = d || {}, [b, y] = V(a), _ = (p) => {
|
|
4041
4038
|
y(p), s && s(p);
|
|
4042
|
-
}, v = (p, f) => /* @__PURE__ */
|
|
4039
|
+
}, v = (p, f) => /* @__PURE__ */ m("div", { className: ue.switchContainer, style: { width: `${u}px` }, children: [
|
|
4043
4040
|
t && /* @__PURE__ */ i(
|
|
4044
4041
|
"span",
|
|
4045
4042
|
{
|
|
4046
4043
|
className: ue.labelLeft,
|
|
4047
4044
|
style: { width: `${(u - 74) / 2}px` },
|
|
4048
|
-
children:
|
|
4045
|
+
children: h(t)
|
|
4049
4046
|
}
|
|
4050
4047
|
),
|
|
4051
|
-
/* @__PURE__ */
|
|
4048
|
+
/* @__PURE__ */ m("label", { className: `${ue.switch} ${c ? ue.disabled : ""}`, children: [
|
|
4052
4049
|
/* @__PURE__ */ i(
|
|
4053
4050
|
"input",
|
|
4054
4051
|
{
|
|
@@ -4068,7 +4065,7 @@ const Ss = "_switchContainer_194wl_2", $s = "_labelRight_194wl_9", Bs = "_labelL
|
|
|
4068
4065
|
}
|
|
4069
4066
|
)
|
|
4070
4067
|
] }),
|
|
4071
|
-
r && /* @__PURE__ */ i("span", { className: ue.labelRight, style: { width: `${(u - 74) / 2}px` }, children:
|
|
4068
|
+
r && /* @__PURE__ */ i("span", { className: ue.labelRight, style: { width: `${(u - 74) / 2}px` }, children: h(r) })
|
|
4072
4069
|
] });
|
|
4073
4070
|
return d ? /* @__PURE__ */ i(
|
|
4074
4071
|
ve,
|
|
@@ -4108,7 +4105,7 @@ const Ds = "_header_13kbt_2", Fs = "_leftComponents_13kbt_13", Vs = "_centerComp
|
|
|
4108
4105
|
backgroundColor: a = "#605B56",
|
|
4109
4106
|
isFooter: l = !1
|
|
4110
4107
|
// If true, it will apply footer styles
|
|
4111
|
-
}) => /* @__PURE__ */
|
|
4108
|
+
}) => /* @__PURE__ */ m(
|
|
4112
4109
|
"div",
|
|
4113
4110
|
{
|
|
4114
4111
|
className: ne.header,
|
|
@@ -4156,7 +4153,7 @@ const Rs = "_sidebar_1fmjn_2", qs = "_open_1fmjn_16", Es = "_content_1fmjn_20",
|
|
|
4156
4153
|
{
|
|
4157
4154
|
className: `${Le.sidebar} ${s ? Le.open : ""}`,
|
|
4158
4155
|
style: { width: s ? n : 0 },
|
|
4159
|
-
children: s && /* @__PURE__ */
|
|
4156
|
+
children: s && /* @__PURE__ */ m("div", { className: Le.content, children: [
|
|
4160
4157
|
/* @__PURE__ */ i("button", { className: Le.closeButton, onClick: t, children: /* @__PURE__ */ i("img", { src: js, alt: "Close Sidebar" }) }),
|
|
4161
4158
|
d
|
|
4162
4159
|
] })
|