@tmf_ciclica/ciclicastorybook 1.2.8 → 1.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +312 -300
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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}._indicatorsCategory_11gdl_2{overflow:hidden;min-height:50px}._indicatorsCategory_11gdl_2 ._title_11gdl_6{align-items:center;gap:10px;cursor:pointer;display:grid;height:50px;grid-template-columns:12px auto}._indicatorsCategory_11gdl_2 ._title_11gdl_6._mainTitle_11gdl_14{border-bottom:1px solid;height:70px}._indicatorsCategory_11gdl_2 ._list_11gdl_18{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._AppliedFiltersContainer_cokx9_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start;flex-wrap:wrap}._AppliedFiltersContainer_cokx9_2 ._AppliedFilterContent_cokx9_11{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:row;align-items:center;font-size:16px;font-weight:400;height:35px;width:fit-content;padding:0 20px;border-radius:100px}._GeographicalFilters_cn837_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:10px;flex-direction:row;align-items:start}._GeographicalFilters_cn837_2 ._AppliedFilterContent_cn837_10{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:row;align-items:center;font-size:16px;font-weight:400;height:35px;width:fit-content;padding:20px;border-radius:100px}._layersList_cn837_25{display:flex;flex-wrap:nowrap;justify-content:center;gap:10px;flex-direction:column;align-items:flex-start}._layerName_cn837_34{padding-left:25px;cursor:pointer}._checkboxContainer_1nxra_2{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:400;cursor:pointer}._checkboxContainer_1nxra_2 input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:10px;height:10px;border-radius:1px;background-color:#fff;cursor:pointer}._container_4u41i_2,._container_4u41i_2 span{font-size:14px}._container_4u41i_2 ._unitLabel_4u41i_8{height:40px}._container_4u41i_2 ._slider_4u41i_11{height:6px;background-color:#ddd;border-radius:3px;position:relative}._container_4u41i_2 ._thumb_4u41i_17{height:20px;width:20px;background-color:#605b56;border-radius:50%;cursor:grab;top:-7px;position:absolute}._container_4u41i_2 ._track_4u41i_26{top:0;bottom:0;background:#605b56;border-radius:3px}._container_4u41i_2 ._labels_4u41i_32{display:flex;justify-content:space-between;font-size:14px;margin-top:10px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px;padding-bottom:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 label,._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input{cursor:pointer;font-size:14px}._tematicalFiltersInputContainer_1vm1r_2 ._inputTypeContainer_1vm1r_2 input[type=radio]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:16px;height:16px;border-radius:50%;background-color:#fff;transition:background-color .2s ease;cursor:pointer;vertical-align:middle}._tematicalFiltersInputContainer_1vm1r_2 ._checkboxContainer_1vm1r_28{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;gap:14px}._tematicalFiltersInputContainer_1vm1r_2 ._absoluteSliderContainer_1vm1r_37{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:flex-start}._FiltersAmbitContainer_bp6cj_2{width:100%;height:100%;padding-left:24px;position:relative;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:column;align-items:start;gap:20px}._FiltersAmbitContainer_bp6cj_2 ._FiltersAmbitHeader_bp6cj_15{display:flex;flex-wrap:nowrap;justify-content:start;gap:30px;flex-direction:column;align-items:start}._FiltersAmbitContainer_bp6cj_2 ._FiltersAmbitHeader_bp6cj_15 ._FiltersAmbitTitle_bp6cj_23{font-size:18px;font-weight:600;border-bottom:1.5px solid #605B56;width:100%;height:70px;display:flex;align-items:center}._FiltersAmbitContainer_bp6cj_2 ._FiltersAmbitHeader_bp6cj_15 ._FiltersAmbitDescription_bp6cj_32{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_bp6cj_2 ._FiltersAmbitHeader_bp6cj_15 ._FiltersAmbitDescription_bp6cj_32 ._FiltersAmbitDescriptionTitle_bp6cj_43{font-size:18px;font-weight:600}._FiltersAmbitContainer_bp6cj_2 ._warning_bp6cj_47{color:red}._FiltersAmbitContainer_bp6cj_2 ._buttonContainer_bp6cj_50{width:100%;margin-left:-24px;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:column;align-items:center;margin-bottom:20px;height:60px}._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_arwy3_2{overflow:hidden}._indicatorsCategory_arwy3_2 ._title_arwy3_5{align-items:center;gap:10px;cursor:pointer;margin-bottom:25px;display:grid;grid-template-columns:12px auto}._indicatorsCategory_arwy3_2 ._list_arwy3_13{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._indicatorContainer_17b40_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:center;gap:10px}._indicatorContainer_17b40_2 ._indicatorNameContainer_17b40_11{gap:8px;display:grid;grid-template-columns:15px auto;align-items:center}._indicatorContainer_17b40_2 ._dot_17b40_17{border-radius:100px;width:13px;height:13px;display:flex;align-items:center;justify-content:center}._indicatorContainer_17b40_2 ._indicatorName_17b40_11{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_17b40_31{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start}._switchExternalContainer_17b40_31 ._switchType_17b40_39{margin:0;width:100%}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43 ._optionContainer_17b40_54{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:9px;cursor:pointer}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43 ._optionContainer_17b40_54 ._customRadious_17b40_64{width:13px;height:13px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_17b40_31 ._switchType_17b40_39 ._switchTypeOptions_17b40_43 ._optionContainer_17b40_54 ._optionText_17b40_71{font-weight:400}._indicatorsSubCategory_1nuug_2{overflow:hidden}._indicatorsSubCategory_1nuug_2 h3{text-align:left;display:grid;gap:10px;grid-template-columns:12px auto}._indicatorsSubCategory_1nuug_2 ._list_1nuug_11{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:start;margin:20px 0;gap:20px}._indicatorsList_13b3m_2{width:100%;padding-left:30px}._indicatorsList_13b3m_2 ._title_13b3m_6{border-bottom:1px solid;height:70px;display:flex;align-items:center;margin-bottom:32px}._langSelector_o9enq_2{position:relative;width:fit-content;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;height:100%}._currentLang_o9enq_14{color:#404040;cursor:pointer;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:5px;text-transform:capitalize}._currentLang_o9enq_14 ._arrow_o9enq_26{width:10px}._currentLang_o9enq_14 ._prevImg_o9enq_29{width:20px}._langMenu_o9enq_33{position:absolute;width:80px;background:#000!important;border-radius:8px}._langMenu_o9enq_33 button{cursor:pointer;background:#000!important;color:#ccc;width:100%;padding:4px 8px;text-align:left}._langMenu_o9enq_33 button:first-child{border-radius:8px 8px 0 0}._langMenu_o9enq_33 button:last-child{border-radius:0 0 8px 8px}._langMenu_o9enq_33 button:hover{color:#cbcbcb;background-color:#fafafa!important}._legendContainer_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_1ox68_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;padding-left:24px;min-height:100%;flex:1}._elementSelector_1ox68_2 ._header_1ox68_14{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;height:70px}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementName_1ox68_40{font-size:18px;font-weight:600;flex:1}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementName_1ox68_40 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementDate_1ox68_54{font-size:18px;font-weight:600;flex:.5}._elementSelector_1ox68_2 ._header_1ox68_14 ._nameDateContainer_1ox68_24 ._elementDate_1ox68_54 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1ox68_2 ._header_1ox68_14 ._buttonsContainer_1ox68_68{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._elementSelector_1ox68_2 ._elementListContainer_1ox68_77{flex:1;width:100%}._elementSelector_1ox68_2 ._newElementButtonContainer_1ox68_81{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px;padding-top:50px}._listElement_1evjl_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;padding-right:15px}._listElement_1evjl_2 ._elementNameDate_1evjl_18{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._listElement_1evjl_2 ._elementNameDate_1evjl_18 ._elementNameContainer_1evjl_28{flex:1;display:flex;flex-direction:column;align-items:flex-start;position:relative}._listElement_1evjl_2 ._elementNameDate_1evjl_18 ._elementName_1evjl_18{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center}._listElement_1evjl_2 ._elementNameDate_1evjl_18 ._elementDate_1evjl_43{flex:.5}._listElement_1evjl_2 ._elementButtons_1evjl_46{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._listElement_1evjl_2 ._elementButtons_1evjl_46 button:disabled{opacity:.5;cursor:default}._listElement_1evjl_2 ._elementButtons_1evjl_46 img{display:inline}._break_1evjl_64{flex-basis:100%;height:0}._moreInfoContainer_1evjl_69 ._moreInfo_1evjl_69{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_1t164_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_1t164_2 ._sectionItemActive_1t164_16{color:#fff}._categorySelector_1t164_2 ._sectionItem_1t164_16{border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;padding:5px;min-width:120px;height:100%}._overlay_mnd4j_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9999}._modal_mnd4j_15{background:#fff;border-radius:12px;position:relative;padding:24px 32px;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 20px #0003;overflow:hidden;min-width:300px}._closeButton_mnd4j_29{position:absolute;top:3px;right:8px;background:transparent;border:none;font-size:20px;cursor:pointer}._icon_mnd4j_39{width:60px;height:60px;margin-bottom:16px}._message_mnd4j_45{font-size:18px;font-weight:700;margin-bottom:8px}._submessage_mnd4j_51{font-size:14px;color:#666;margin-bottom:20px}._buttonsContainer_mnd4j_57{display:flex;gap:12px;justify-content:center;flex-wrap:nowrap}._buttonWrapper_mnd4j_64{display:inline-flex}._stepsContainer_1cyua_3{display:flex;flex-direction:column;position:relative}._stepWrapper_1cyua_9{display:flex;align-items:center;position:relative;margin-bottom:1.5rem}._stepWrapper_1cyua_9:last-child{margin-bottom:0}._circleContainer_1cyua_19{position:relative}._circle_1cyua_19{width:28px;height:28px;border-radius:50%;border:2px solid #ccc;background-color:#fff;color:#aaa;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;cursor:pointer;z-index:1}._active_1cyua_39{color:#fff;border:none}._completed_1cyua_44{background-color:#ccc;color:#fff;border:none}._label_1cyua_50{margin-left:10px;font-size:14px;color:#aaa}._labelActive_1cyua_56{font-weight:700;color:#333}._connector_1cyua_61{position:absolute;left:50%;transform:translate(-50%);top:32px;width:1px;height:calc(100% - 10px);background-color:#ccc;z-index:0}._statusTextContainer_ch14r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:128px;height:31px;border-radius:200px}._statusTextContainer_ch14r_2 span{font-size:16px;color:#605b56}._buttonsContainer_1c7dw_2{padding:5px 7px;background-color:#efefef;border-radius:10px;display:flex;gap:8px}._buttonsContainer_1c7dw_2 ._button_1c7dw_2{border-radius:10px;display:flex;align-items:center;cursor:pointer;padding:4px;color:#605b56}._buttonsContainer_1c7dw_2 ._button_1c7dw_2:hover{opacity:.8}._buttonsContainer_1c7dw_2 ._button_1c7dw_2._active_1c7dw_20{background:#b32f5d;color:#efefef}._switchContainer_194wl_2{display:flex;align-items:center;gap:10px;font-size:12px;justify-content:center}._switchContainer_194wl_2 ._labelRight_194wl_9,._switchContainer_194wl_2 ._labelLeft_194wl_9{white-space:nowrap;color:#605b56}._switchContainer_194wl_2 ._labelLeft_194wl_9{text-align:right}._switch_194wl_2{position:relative;display:inline-block;width:44px;height:24px}._switch_194wl_2 input{opacity:0;width:0;height:0}._switch_194wl_2 ._slider_194wl_28{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#fff;border-radius:24px;transition:background-color .3s;border:2px solid #605b56}._switch_194wl_2 ._slider_194wl_28:before{position:absolute;content:"";height:16px;width:16px;left:3px;bottom:2.5px;background-color:var(--switch-thumb-color, #ccc);border-radius:50%;transition:transform .3s,background-color .3s}._switch_194wl_2 input:checked+._slider_194wl_28:before{transform:translate(20px)}._switch_194wl_2._disabled_194wl_54{opacity:.5;pointer-events:none}._overlay_1xyw2_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999}._popup_1xyw2_15{background:#fff;padding:2rem;border-radius:12px;display:flex;flex-direction:column;align-items:center;box-shadow:0 4px 20px #0003}._gif_1xyw2_25{width:120px;height:auto;margin-bottom:1rem}._message_1xyw2_31{font-size:1.1rem;text-align:center}._container_gnwec_2{position:relative}._burger_gnwec_6{position:fixed;top:1rem;right:1rem;width:32px;height:32px;display:flex;flex-direction:column;justify-content:space-between;background:none;border:none;padding:0;cursor:pointer;z-index:1000}._burger_gnwec_6 span{display:block;height:4px;border-radius:2px;transition:.3s ease}._open_gnwec_29 span:nth-child(1){transform:translateY(18px) rotate(45deg)}._open_gnwec_29 span:nth-child(2){opacity:0}._open_gnwec_29 span:nth-child(3){transform:translateY(-10px) rotate(-45deg)}._menu_gnwec_41{position:fixed;top:0;right:0;width:250px;height:100vh;padding:1.5rem;display:flex;flex-direction:column;box-shadow:-2px 0 8px #00000026;animation:_slideIn_gnwec_1 .3s ease forwards;z-index:999}@keyframes _slideIn_gnwec_1{0%{transform:translate(100%)}to{transform:translate(0)}}._close_gnwec_63{align-self:flex-end;background:none;border:none;font-size:24px;cursor:pointer}._list_gnwec_71{list-style:none;padding:0;margin-top:50px;display:flex;flex-direction:column;gap:1rem}._link_gnwec_80,._button_gnwec_81{text-decoration:none;color:inherit;font-size:18px;border:none;background:none;cursor:pointer}._active_gnwec_90{font-weight:700;border-bottom:3px solid}._header_13kbt_2{width:100%;display:flex;align-items:center;position:absolute;top:0;left:0;padding:0 16px;background-color:#fff;border-bottom:1px solid black}._header_13kbt_2 ._leftComponents_13kbt_13,._header_13kbt_2 ._centerComponents_13kbt_14,._header_13kbt_2 ._rightComponents_13kbt_15{position:absolute;top:0;bottom:0;display:flex;align-items:center}._header_13kbt_2 ._leftComponents_13kbt_13{left:16px}._header_13kbt_2 ._centerComponents_13kbt_14{left:50%;transform:translate(-50%)}._header_13kbt_2 ._rightComponents_13kbt_15{right:16px}._header_13kbt_2 ._componentsContainer_13kbt_32{height:100%;width:100%}._sidebar_1kaqu_2{position:absolute;top:0;right:0;height:100%;background-color:#fff;box-shadow:-2px 0 5px #0000001a;overflow-x:hidden;overflow-y:auto;transition:width .3s ease;z-index:1000;width:0}._open_1kaqu_16{border-left:1px solid #ddd}._content_1kaqu_20{position:relative;height:100%}._closeButton_1kaqu_25{position:absolute;top:28px;right:28px;font-size:24px;background:none;border:none;cursor:pointer;color:#333;transition:color .2s ease;z-index:10}._closeButton_1kaqu_25:hover{color:#000}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
import { jsxs as p, jsx as n, Fragment as Ee } from "react/jsx-runtime";
|
|
3
3
|
import * as me from "react";
|
|
4
|
-
import V, { useState as
|
|
4
|
+
import V, { useState as F, useEffect as D, useMemo as he, useLayoutEffect as Et, useRef as ae } from "react";
|
|
5
5
|
import e from "prop-types";
|
|
6
6
|
import { useTranslation as L, Trans as We } from "react-i18next";
|
|
7
7
|
import { motion as Ge } from "framer-motion";
|
|
@@ -44,14 +44,14 @@ const r2 = "_ambitSelector_mcunf_2", a2 = "_header_mcunf_13", l2 = "_nameDateCon
|
|
|
44
44
|
fontColor: a,
|
|
45
45
|
moreInfo: c
|
|
46
46
|
}) => {
|
|
47
|
-
const { name: u, created_at:
|
|
47
|
+
const { name: u, created_at: g, id: C, isBeingProcessed: b } = i;
|
|
48
48
|
return /* @__PURE__ */ p(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
className: ge.ambitItem,
|
|
52
52
|
style: { borderBottom: `1px solid ${a}` },
|
|
53
53
|
children: [
|
|
54
|
-
/* @__PURE__ */ p("div", { className: ge.ambitNameDate, onClick: () => t(
|
|
54
|
+
/* @__PURE__ */ p("div", { className: ge.ambitNameDate, onClick: () => t(C), children: [
|
|
55
55
|
/* @__PURE__ */ p("div", { className: ge.ambitName, children: [
|
|
56
56
|
/* @__PURE__ */ n(
|
|
57
57
|
"img",
|
|
@@ -62,13 +62,13 @@ const r2 = "_ambitSelector_mcunf_2", a2 = "_header_mcunf_13", l2 = "_nameDateCon
|
|
|
62
62
|
),
|
|
63
63
|
/* @__PURE__ */ n("span", { style: { color: r ? l : a }, children: u })
|
|
64
64
|
] }),
|
|
65
|
-
/* @__PURE__ */ n("div", { className: ge.ambitDate, children:
|
|
65
|
+
/* @__PURE__ */ n("div", { className: ge.ambitDate, children: g ? new Date(g).toLocaleDateString() : "" })
|
|
66
66
|
] }),
|
|
67
67
|
/* @__PURE__ */ p("div", { className: ge.ambitButtons, children: [
|
|
68
68
|
b && /* @__PURE__ */ n("img", { src: w2 }),
|
|
69
|
-
/* @__PURE__ */ n("button", { onClick: () => o(
|
|
70
|
-
/* @__PURE__ */ n("button", { onClick: () => d(
|
|
71
|
-
/* @__PURE__ */ n("button", { onClick: () => s(
|
|
69
|
+
/* @__PURE__ */ n("button", { onClick: () => o(C), disabled: i.is_default, children: /* @__PURE__ */ n("img", { src: v2 }) }),
|
|
70
|
+
/* @__PURE__ */ n("button", { onClick: () => d(C), children: /* @__PURE__ */ n("img", { src: _2 }) }),
|
|
71
|
+
/* @__PURE__ */ n("button", { onClick: () => s(C), disabled: i.is_default, children: /* @__PURE__ */ n("img", { src: y2 }) })
|
|
72
72
|
] })
|
|
73
73
|
]
|
|
74
74
|
}
|
|
@@ -129,13 +129,13 @@ const Je = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
129
129
|
buttonContainerStyles: a = {},
|
|
130
130
|
containerStyles: c = {},
|
|
131
131
|
onCLickNewAmbit: u = () => console.log("New ambit clicked"),
|
|
132
|
-
onClickCopy:
|
|
133
|
-
onCLickDelete:
|
|
132
|
+
onClickCopy: g = (v) => console.log(`Copy ambit: ${v}`),
|
|
133
|
+
onCLickDelete: C = (v) => console.log(`Delete ambit: ${v}`),
|
|
134
134
|
onClickFilters: b = (v) => console.log(`Filters clicked: ${v}`),
|
|
135
|
-
onClickAmbit:
|
|
135
|
+
onClickAmbit: h = (v) => console.log(`OnCLickAmbit: ${v}`)
|
|
136
136
|
}) => {
|
|
137
|
-
const { t: v } = L(), [y, _] =
|
|
138
|
-
|
|
137
|
+
const { t: v } = L(), [y, _] = F(i);
|
|
138
|
+
D(() => {
|
|
139
139
|
i && _(i);
|
|
140
140
|
}, [i]);
|
|
141
141
|
const m = (f) => {
|
|
@@ -177,10 +177,10 @@ const Je = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
177
177
|
ambit: f,
|
|
178
178
|
fontColor: s,
|
|
179
179
|
activeColor: o,
|
|
180
|
-
onClickCopy:
|
|
181
|
-
onClickDelete:
|
|
180
|
+
onClickCopy: g,
|
|
181
|
+
onClickDelete: C,
|
|
182
182
|
onClickFilters: b,
|
|
183
|
-
onClickAmbit:
|
|
183
|
+
onClickAmbit: h
|
|
184
184
|
},
|
|
185
185
|
`ambitKey${f.id}`
|
|
186
186
|
)) }),
|
|
@@ -257,23 +257,23 @@ const q2 = ({
|
|
|
257
257
|
children: i.map((a, c) => {
|
|
258
258
|
const {
|
|
259
259
|
icon: u,
|
|
260
|
-
activeIcon:
|
|
261
|
-
isActive:
|
|
260
|
+
activeIcon: g,
|
|
261
|
+
isActive: C,
|
|
262
262
|
name: b,
|
|
263
|
-
onClick:
|
|
263
|
+
onClick: h,
|
|
264
264
|
disabled: v
|
|
265
265
|
} = a, y = /* @__PURE__ */ p(Ee, { children: [
|
|
266
266
|
s && o === "left" && /* @__PURE__ */ n("span", { className: ee.buttonName, children: l(b) }),
|
|
267
|
-
/* @__PURE__ */ n("img", { src:
|
|
267
|
+
/* @__PURE__ */ n("img", { src: C ? g : u, alt: l(b) }),
|
|
268
268
|
s && o === "right" && /* @__PURE__ */ n("span", { className: ee.buttonName, children: l(b) })
|
|
269
269
|
] });
|
|
270
270
|
return /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
271
271
|
/* @__PURE__ */ n(
|
|
272
272
|
"button",
|
|
273
273
|
{
|
|
274
|
-
onClick:
|
|
274
|
+
onClick: h,
|
|
275
275
|
className: `${ee.button}
|
|
276
|
-
${
|
|
276
|
+
${C && ee.active}`,
|
|
277
277
|
disabled: v,
|
|
278
278
|
children: y
|
|
279
279
|
}
|
|
@@ -319,9 +319,9 @@ const P2 = "_indicatorsCategory_11gdl_2", E2 = "_title_11gdl_6", j2 = "_mainTitl
|
|
|
319
319
|
titleFontStyles: a,
|
|
320
320
|
showBottomBar: c = !0,
|
|
321
321
|
titleMarginChildren: u = 15,
|
|
322
|
-
mainTitle:
|
|
322
|
+
mainTitle: g = !1
|
|
323
323
|
}) => {
|
|
324
|
-
const { t:
|
|
324
|
+
const { t: C } = L();
|
|
325
325
|
return /* @__PURE__ */ p(
|
|
326
326
|
Ge.div,
|
|
327
327
|
{
|
|
@@ -332,7 +332,7 @@ const P2 = "_indicatorsCategory_11gdl_2", E2 = "_title_11gdl_6", j2 = "_mainTitl
|
|
|
332
332
|
style: {
|
|
333
333
|
backgroundColor: "white",
|
|
334
334
|
borderBottom: i && c ? `1px solid ${t}` : "0px",
|
|
335
|
-
minHeight:
|
|
335
|
+
minHeight: g ? "70px" : "50px"
|
|
336
336
|
},
|
|
337
337
|
children: [
|
|
338
338
|
/* @__PURE__ */ p(
|
|
@@ -342,15 +342,15 @@ const P2 = "_indicatorsCategory_11gdl_2", E2 = "_title_11gdl_6", j2 = "_mainTitl
|
|
|
342
342
|
...a
|
|
343
343
|
//marginBottom: titleMarginChildren ? titleMarginChildren : "auto",
|
|
344
344
|
},
|
|
345
|
-
className: `${ke.title} ${
|
|
345
|
+
className: `${ke.title} ${g && ke.mainTitle}`,
|
|
346
346
|
onClick: d,
|
|
347
347
|
children: [
|
|
348
348
|
/* @__PURE__ */ n("span", { style: { color: i ? t : o }, children: i ? "-" : "+" }),
|
|
349
|
-
/* @__PURE__ */ n("span", { style: { color: i ? t : o }, children:
|
|
349
|
+
/* @__PURE__ */ n("span", { style: { color: i ? t : o }, children: C(r) })
|
|
350
350
|
]
|
|
351
351
|
}
|
|
352
352
|
),
|
|
353
|
-
/* @__PURE__ */ n("div", { className: ke.content, style: { padding:
|
|
353
|
+
/* @__PURE__ */ n("div", { className: ke.content, style: { padding: g ? "20px 0px" : "0px" }, children: s })
|
|
354
354
|
]
|
|
355
355
|
}
|
|
356
356
|
);
|
|
@@ -379,9 +379,9 @@ const Ss = () => /* @__PURE__ */ n("div", { children: "EditAmbit" }), Z2 = "data
|
|
|
379
379
|
activeFiltersType: null,
|
|
380
380
|
geoLayers: []
|
|
381
381
|
})), yt = ({ title: i, onClick: d, isOpen: s = !0, textColor: o = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r, fontColor: l = "#605B56" }) => {
|
|
382
|
-
const { t: a } = L(), { tematicalFiltersSelected: c, activeFiltersType: u } = M((b) => b),
|
|
383
|
-
M.setState((
|
|
384
|
-
tematicalFiltersSelected:
|
|
382
|
+
const { t: a } = L(), { tematicalFiltersSelected: c, activeFiltersType: u } = M((b) => b), g = (b) => {
|
|
383
|
+
M.setState((h) => ({
|
|
384
|
+
tematicalFiltersSelected: h.tematicalFiltersSelected.filter(
|
|
385
385
|
(v) => v.code !== b
|
|
386
386
|
)
|
|
387
387
|
}));
|
|
@@ -397,10 +397,10 @@ const Ss = () => /* @__PURE__ */ n("div", { children: "EditAmbit" }), Z2 = "data
|
|
|
397
397
|
activeColor: r,
|
|
398
398
|
mainTitle: !0,
|
|
399
399
|
color: l,
|
|
400
|
-
children: /* @__PURE__ */ n("div", { className: et.AppliedFiltersContainer, children: c == null ? void 0 : c.map((b,
|
|
400
|
+
children: /* @__PURE__ */ n("div", { className: et.AppliedFiltersContainer, children: c == null ? void 0 : c.map((b, h) => /* @__PURE__ */ p("div", { className: et.AppliedFilterContent, style: { color: o, background: t }, children: [
|
|
401
401
|
a(b.name),
|
|
402
|
-
/* @__PURE__ */ n("img", { src: Z2, alt: "CloseIcon", onClick: () =>
|
|
403
|
-
] },
|
|
402
|
+
/* @__PURE__ */ n("img", { src: Z2, alt: "CloseIcon", onClick: () => g(b.code), style: { cursor: "pointer" } })
|
|
403
|
+
] }, h)) })
|
|
404
404
|
}
|
|
405
405
|
);
|
|
406
406
|
};
|
|
@@ -429,17 +429,17 @@ const K2 = "_layersList_cn837_25", U2 = "_layerName_cn837_34", tt = {
|
|
|
429
429
|
activeColor: t,
|
|
430
430
|
onGeoLayersChange: r
|
|
431
431
|
}) => {
|
|
432
|
-
const { t: l } = L(), { activeFiltersType: a, geoLayers: c } = M((
|
|
432
|
+
const { t: l } = L(), { activeFiltersType: a, geoLayers: c } = M((C) => C), u = () => {
|
|
433
433
|
a == "geographical" ? M.setState(() => ({ activeFiltersType: null })) : M.setState(() => ({ activeFiltersType: "geographical" }));
|
|
434
|
-
},
|
|
434
|
+
}, g = (C) => {
|
|
435
435
|
M.setState((b) => ({
|
|
436
|
-
geoLayers: b.geoLayers.map((
|
|
437
|
-
...
|
|
438
|
-
active:
|
|
436
|
+
geoLayers: b.geoLayers.map((h) => ({
|
|
437
|
+
...h,
|
|
438
|
+
active: h.name === C.name
|
|
439
439
|
}))
|
|
440
440
|
})), r(c);
|
|
441
441
|
};
|
|
442
|
-
return
|
|
442
|
+
return D(() => {
|
|
443
443
|
r && r(c);
|
|
444
444
|
}, [c]), /* @__PURE__ */ n(
|
|
445
445
|
le,
|
|
@@ -450,15 +450,15 @@ const K2 = "_layersList_cn837_25", U2 = "_layerName_cn837_34", tt = {
|
|
|
450
450
|
activeColor: t,
|
|
451
451
|
color: s,
|
|
452
452
|
mainTitle: !0,
|
|
453
|
-
children: /* @__PURE__ */ n("div", { className: `${tt.layersList}`, children: c.map((
|
|
453
|
+
children: /* @__PURE__ */ n("div", { className: `${tt.layersList}`, children: c.map((C) => /* @__PURE__ */ p(
|
|
454
454
|
"div",
|
|
455
455
|
{
|
|
456
456
|
className: `${tt.layerName}`,
|
|
457
|
-
style: { color:
|
|
458
|
-
onClick: () =>
|
|
457
|
+
style: { color: C.active ? t : s, fontWeight: C.active ? "bold" : "normal" },
|
|
458
|
+
onClick: () => g(C),
|
|
459
459
|
children: [
|
|
460
|
-
l(
|
|
461
|
-
|
|
460
|
+
l(C.name),
|
|
461
|
+
C.active
|
|
462
462
|
]
|
|
463
463
|
}
|
|
464
464
|
)) })
|
|
@@ -566,19 +566,19 @@ let ze = function(i) {
|
|
|
566
566
|
t.setState({ index: -1 }, t.onEnd(t.getKeyDownEventMap()));
|
|
567
567
|
}, t.onMouseMove = (a) => {
|
|
568
568
|
t.setState({ pending: !0 });
|
|
569
|
-
const c = t.getMousePosition(a), u = t.getDiffPosition(c[0]),
|
|
570
|
-
t.move(
|
|
569
|
+
const c = t.getMousePosition(a), u = t.getDiffPosition(c[0]), g = t.getValueFromPosition(u);
|
|
570
|
+
t.move(g);
|
|
571
571
|
}, t.onTouchMove = (a) => {
|
|
572
572
|
if (a.touches.length > 1) return;
|
|
573
573
|
t.setState({ pending: !0 });
|
|
574
574
|
const c = t.getTouchPosition(a);
|
|
575
575
|
if (t.isScrolling === void 0) {
|
|
576
|
-
const
|
|
577
|
-
t.isScrolling = Math.abs(b) > Math.abs(
|
|
576
|
+
const C = c[0] - t.startPosition[0], b = c[1] - t.startPosition[1];
|
|
577
|
+
t.isScrolling = Math.abs(b) > Math.abs(C);
|
|
578
578
|
}
|
|
579
579
|
if (t.isScrolling) return void t.setState({ index: -1 });
|
|
580
|
-
const u = t.getDiffPosition(c[0]),
|
|
581
|
-
t.move(
|
|
580
|
+
const u = t.getDiffPosition(c[0]), g = t.getValueFromPosition(u);
|
|
581
|
+
t.move(g);
|
|
582
582
|
}, t.onKeyDown = (a) => {
|
|
583
583
|
if (!(a.ctrlKey || a.shiftKey || a.altKey || a.metaKey)) switch (t.setState({ pending: !0 }), a.key) {
|
|
584
584
|
case "ArrowLeft":
|
|
@@ -631,8 +631,8 @@ let ze = function(i) {
|
|
|
631
631
|
if (t.props.disabled || c.touches.length > 1) return;
|
|
632
632
|
t.setState({ pending: !0 });
|
|
633
633
|
const u = t.getTouchPosition(c);
|
|
634
|
-
t.startPosition = u, t.isScrolling = void 0, t.start(a, u[0]), $e(t.getTouchEventMap()), function(
|
|
635
|
-
|
|
634
|
+
t.startPosition = u, t.isScrolling = void 0, t.start(a, u[0]), $e(t.getTouchEventMap()), function(g) {
|
|
635
|
+
g.stopPropagation && g.stopPropagation();
|
|
636
636
|
}(c);
|
|
637
637
|
}, t.handleResize = () => {
|
|
638
638
|
const a = window.setTimeout(() => {
|
|
@@ -640,13 +640,13 @@ let ze = function(i) {
|
|
|
640
640
|
}, 0);
|
|
641
641
|
t.pendingResizeTimeouts.push(a);
|
|
642
642
|
}, t.renderThumb = (a, c) => {
|
|
643
|
-
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""),
|
|
643
|
+
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), g = { ref: (b) => {
|
|
644
644
|
t["thumb" + c] = b;
|
|
645
|
-
}, key: t.props.thumbClassName + "-" + c, className: u, style: a, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled },
|
|
646
|
-
return t.props.ariaValuetext && (
|
|
645
|
+
}, key: t.props.thumbClassName + "-" + c, className: u, style: a, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, C = { index: c, value: Se(t.state.value), valueNow: t.state.value[c] };
|
|
646
|
+
return t.props.ariaValuetext && (g["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(C)), t.props.renderThumb(g, C);
|
|
647
647
|
}, t.renderTrack = (a, c, u) => {
|
|
648
|
-
const
|
|
649
|
-
return t.props.renderTrack(
|
|
648
|
+
const g = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(c, t.state.upperBound - u) }, C = { index: a, value: Se(t.state.value) };
|
|
649
|
+
return t.props.renderTrack(g, C);
|
|
650
650
|
};
|
|
651
651
|
let r = Re(o.value);
|
|
652
652
|
r.length || (r = Re(o.defaultValue)), t.pendingResizeTimeouts = [];
|
|
@@ -677,8 +677,8 @@ let ze = function(i) {
|
|
|
677
677
|
let t = Number.MAX_VALUE, r = -1;
|
|
678
678
|
const { value: l } = this.state, a = l.length;
|
|
679
679
|
for (let c = 0; c < a; c += 1) {
|
|
680
|
-
const u = this.calcOffset(l[c]),
|
|
681
|
-
|
|
680
|
+
const u = this.calcOffset(l[c]), g = Math.abs(o - u);
|
|
681
|
+
g < t && (t = g, r = c);
|
|
682
682
|
}
|
|
683
683
|
return r;
|
|
684
684
|
}, s.getMousePosition = function(o) {
|
|
@@ -701,8 +701,8 @@ let ze = function(i) {
|
|
|
701
701
|
}, s.resize = function() {
|
|
702
702
|
const { slider: o, thumb0: t } = this;
|
|
703
703
|
if (!o || !t) return;
|
|
704
|
-
const r = this.sizeKey(), l = o.getBoundingClientRect(), a = o[r], c = l[this.posMaxKey()], u = l[this.posMinKey()],
|
|
705
|
-
this.state.upperBound ===
|
|
704
|
+
const r = this.sizeKey(), l = o.getBoundingClientRect(), a = o[r], c = l[this.posMaxKey()], u = l[this.posMinKey()], g = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], C = a - g, b = Math.abs(c - u);
|
|
705
|
+
this.state.upperBound === C && this.state.sliderLength === b && this.state.thumbSize === g || this.setState({ upperBound: C, sliderLength: b, thumbSize: g });
|
|
706
706
|
}, s.calcOffset = function(o) {
|
|
707
707
|
const t = this.props.max - this.props.min;
|
|
708
708
|
return t === 0 ? 0 : (o - this.props.min) / t * this.state.upperBound;
|
|
@@ -741,28 +741,28 @@ let ze = function(i) {
|
|
|
741
741
|
const t = this.state.value.slice(), { index: r } = this.state, { length: l } = t, a = t[r];
|
|
742
742
|
if (o === a) return;
|
|
743
743
|
this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
|
|
744
|
-
const { pearling: c, max: u, min:
|
|
744
|
+
const { pearling: c, max: u, min: g, minDistance: C } = this.props;
|
|
745
745
|
if (!c) {
|
|
746
746
|
if (r > 0) {
|
|
747
747
|
const b = t[r - 1];
|
|
748
|
-
o < b +
|
|
748
|
+
o < b + C && (o = b + C);
|
|
749
749
|
}
|
|
750
750
|
if (r < l - 1) {
|
|
751
751
|
const b = t[r + 1];
|
|
752
|
-
o > b -
|
|
752
|
+
o > b - C && (o = b - C);
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
-
t[r] = o, c && l > 1 && (o > a ? (this.pushSucceeding(t,
|
|
755
|
+
t[r] = o, c && l > 1 && (o > a ? (this.pushSucceeding(t, C, r), function(b, h, v, y) {
|
|
756
756
|
for (let _ = 0; _ < b; _ += 1) {
|
|
757
757
|
const m = y - _ * v;
|
|
758
|
-
|
|
758
|
+
h[b - 1 - _] > m && (h[b - 1 - _] = m);
|
|
759
759
|
}
|
|
760
|
-
}(l, t,
|
|
760
|
+
}(l, t, C, u)) : o < a && (this.pushPreceding(t, C, r), function(b, h, v, y) {
|
|
761
761
|
for (let _ = 0; _ < b; _ += 1) {
|
|
762
762
|
const m = y + _ * v;
|
|
763
|
-
|
|
763
|
+
h[_] < m && (h[_] = m);
|
|
764
764
|
}
|
|
765
|
-
}(l, t,
|
|
765
|
+
}(l, t, C, g))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
|
|
766
766
|
}, s.pushSucceeding = function(o, t, r) {
|
|
767
767
|
let l, a;
|
|
768
768
|
for (l = r, a = o[l] + t; o[l + 1] !== null && a > o[l + 1]; l += 1, a = o[l] + t) o[l + 1] = Ze(a, this.props);
|
|
@@ -836,11 +836,11 @@ const X2 = "_container_4u41i_2", Q2 = "_unitLabel_4u41i_8", J2 = "_slider_4u41i_
|
|
|
836
836
|
defaultValue: a,
|
|
837
837
|
isDate: c
|
|
838
838
|
}) => {
|
|
839
|
-
const { t: u } = L(),
|
|
840
|
-
|
|
839
|
+
const { t: u } = L(), g = c ? new Date(i).getTime() : null, C = c ? new Date(d).getTime() : null, [b, h] = F(c ? [g, C] : [i, d]), v = (y) => {
|
|
840
|
+
h(y), o == null || o({ min: y[0], max: y[1] });
|
|
841
841
|
};
|
|
842
|
-
return
|
|
843
|
-
a ||
|
|
842
|
+
return D(() => {
|
|
843
|
+
a || h(c ? [g, C] : [i, d]);
|
|
844
844
|
}, [a, c]), /* @__PURE__ */ p(
|
|
845
845
|
"div",
|
|
846
846
|
{
|
|
@@ -854,9 +854,9 @@ const X2 = "_container_4u41i_2", Q2 = "_unitLabel_4u41i_8", J2 = "_slider_4u41i_
|
|
|
854
854
|
className: ce.slider,
|
|
855
855
|
thumbClassName: ce.thumb,
|
|
856
856
|
trackClassName: ce.track,
|
|
857
|
-
min: c ?
|
|
858
|
-
max: c ?
|
|
859
|
-
step: c ? (
|
|
857
|
+
min: c ? g : i,
|
|
858
|
+
max: c ? C : d,
|
|
859
|
+
step: c ? (C - g) / 30 : s,
|
|
860
860
|
value: b,
|
|
861
861
|
onAfterChange: v,
|
|
862
862
|
withTracks: !0,
|
|
@@ -902,17 +902,17 @@ const i0 = "_tematicalFiltersInputContainer_1vm1r_2", s0 = "_inputTypeContainer_
|
|
|
902
902
|
//onChangeBothType
|
|
903
903
|
activeColor: d
|
|
904
904
|
}) => {
|
|
905
|
-
const [s, o] =
|
|
905
|
+
const [s, o] = F(), {
|
|
906
906
|
type: t,
|
|
907
907
|
name: r,
|
|
908
908
|
values: l,
|
|
909
909
|
minValue: a,
|
|
910
910
|
maxValue: c,
|
|
911
911
|
unit: u,
|
|
912
|
-
step:
|
|
913
|
-
disabled:
|
|
912
|
+
step: g,
|
|
913
|
+
disabled: C,
|
|
914
914
|
isDate: b
|
|
915
|
-
} = i || {},
|
|
915
|
+
} = i || {}, h = he(
|
|
916
916
|
() => t == "cat" || s == "cat",
|
|
917
917
|
[s, t]
|
|
918
918
|
), v = he(
|
|
@@ -925,7 +925,7 @@ const i0 = "_tematicalFiltersInputContainer_1vm1r_2", s0 = "_inputTypeContainer_
|
|
|
925
925
|
inputsColor: f
|
|
926
926
|
} = M((N) => N), x = (N) => {
|
|
927
927
|
if (N) {
|
|
928
|
-
const { min: S, max: $, valueClicked: k, allValues: B } = N || {}, { code: A, type: H, source: T } = i || {}, j = v ? "abs" :
|
|
928
|
+
const { min: S, max: $, valueClicked: k, allValues: B } = N || {}, { code: A, type: H, source: T } = i || {}, j = v ? "abs" : h ? "cat" : "both";
|
|
929
929
|
let Z = A[0];
|
|
930
930
|
H == "both" && (Z = j == "cat" ? A[1] : A[0]), j == "cat" ? M.setState((J) => {
|
|
931
931
|
let G = J.tematicalFiltersSelected.find(
|
|
@@ -1006,12 +1006,12 @@ const i0 = "_tematicalFiltersInputContainer_1vm1r_2", s0 = "_inputTypeContainer_
|
|
|
1006
1006
|
titleFontStyles: {
|
|
1007
1007
|
fontSize: 16,
|
|
1008
1008
|
fontWeight: 400,
|
|
1009
|
-
opacity:
|
|
1009
|
+
opacity: C ? 0.5 : 1
|
|
1010
1010
|
},
|
|
1011
1011
|
title: r,
|
|
1012
1012
|
isOpen: _ == `id${r}`,
|
|
1013
1013
|
onClick: () => {
|
|
1014
|
-
|
|
1014
|
+
C || M.setState(() => ({
|
|
1015
1015
|
selectedIndicator: _ == `id${r}` ? "" : `id${r}`
|
|
1016
1016
|
}));
|
|
1017
1017
|
},
|
|
@@ -1069,7 +1069,7 @@ const i0 = "_tematicalFiltersInputContainer_1vm1r_2", s0 = "_inputTypeContainer_
|
|
|
1069
1069
|
]
|
|
1070
1070
|
}
|
|
1071
1071
|
),
|
|
1072
|
-
|
|
1072
|
+
h && /* @__PURE__ */ n("div", { className: Be.checkboxContainer, children: l.map((N, S) => {
|
|
1073
1073
|
var $;
|
|
1074
1074
|
return /* @__PURE__ */ n(
|
|
1075
1075
|
vt,
|
|
@@ -1090,7 +1090,7 @@ const i0 = "_tematicalFiltersInputContainer_1vm1r_2", s0 = "_inputTypeContainer_
|
|
|
1090
1090
|
unit: u,
|
|
1091
1091
|
defaultValue: w[i.code[0]] ? w[i.code[0]] : "",
|
|
1092
1092
|
isDate: b,
|
|
1093
|
-
step:
|
|
1093
|
+
step: g
|
|
1094
1094
|
}
|
|
1095
1095
|
) })
|
|
1096
1096
|
]
|
|
@@ -1218,11 +1218,11 @@ const kt = ({
|
|
|
1218
1218
|
inputsColor: t = "#605B56",
|
|
1219
1219
|
activeColor: r
|
|
1220
1220
|
}) => {
|
|
1221
|
-
const { tematicalFiltersSelected: l, activeFiltersType: a } = M((
|
|
1222
|
-
|
|
1223
|
-
}, [l]),
|
|
1221
|
+
const { tematicalFiltersSelected: l, activeFiltersType: a } = M((g) => g), { t: c } = L();
|
|
1222
|
+
D(() => {
|
|
1223
|
+
}, [l]), D(() => {
|
|
1224
1224
|
o && M.setState(() => ({ fontColor: o }));
|
|
1225
|
-
}, [o]),
|
|
1225
|
+
}, [o]), D(() => {
|
|
1226
1226
|
t && M.setState(() => ({ inputsColor: t }));
|
|
1227
1227
|
}, [t]);
|
|
1228
1228
|
const u = () => {
|
|
@@ -1237,14 +1237,14 @@ const kt = ({
|
|
|
1237
1237
|
activeColor: r,
|
|
1238
1238
|
onClick: u,
|
|
1239
1239
|
mainTitle: !0,
|
|
1240
|
-
children: i == null ? void 0 : i.map((
|
|
1240
|
+
children: i == null ? void 0 : i.map((g, C) => /* @__PURE__ */ n(
|
|
1241
1241
|
Nt,
|
|
1242
1242
|
{
|
|
1243
|
-
category:
|
|
1243
|
+
category: g,
|
|
1244
1244
|
fontColor: o,
|
|
1245
1245
|
activeColor: r
|
|
1246
1246
|
},
|
|
1247
|
-
`category-${
|
|
1247
|
+
`category-${C}`
|
|
1248
1248
|
))
|
|
1249
1249
|
}
|
|
1250
1250
|
);
|
|
@@ -1277,31 +1277,31 @@ const a0 = "_FiltersAmbitContainer_bp6cj_2", l0 = "_FiltersAmbitHeader_bp6cj_15"
|
|
|
1277
1277
|
onChangeAppliedFilters: a,
|
|
1278
1278
|
saveAmbit: c,
|
|
1279
1279
|
namePlaceholder: u,
|
|
1280
|
-
descPlaceholder:
|
|
1281
|
-
filtersTypes:
|
|
1280
|
+
descPlaceholder: g,
|
|
1281
|
+
filtersTypes: C = ["geographical", "tematical"],
|
|
1282
1282
|
nameRequiredText: b,
|
|
1283
|
-
geoFilterLayers:
|
|
1283
|
+
geoFilterLayers: h = [],
|
|
1284
1284
|
onGeoLayersChange: v,
|
|
1285
1285
|
onlyFilters: y = !1,
|
|
1286
1286
|
//usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
|
|
1287
1287
|
descriptionRequired: _ = !1
|
|
1288
1288
|
//campo descripción required
|
|
1289
1289
|
}) => {
|
|
1290
|
-
const { t: m } = L(), { tematicalFiltersSelected: f, activeFiltersType: x, geoLayers: w } = M((T) => T), [N, S] =
|
|
1291
|
-
|
|
1290
|
+
const { t: m } = L(), { tematicalFiltersSelected: f, activeFiltersType: x, geoLayers: w } = M((T) => T), [N, S] = F(i || null), [$, k] = F(d || null), [B, A] = F(!1);
|
|
1291
|
+
D(() => {
|
|
1292
1292
|
s && s.length > 0 && M.setState((T) => ({
|
|
1293
1293
|
tematicalFiltersSelected: s
|
|
1294
1294
|
}));
|
|
1295
|
-
}, [s]),
|
|
1296
|
-
|
|
1297
|
-
}, [
|
|
1295
|
+
}, [s]), D(() => {
|
|
1296
|
+
C.includes("geographical") && w != h && M.setState({ geoLayers: h });
|
|
1297
|
+
}, [h]), D(() => {
|
|
1298
1298
|
a(f);
|
|
1299
1299
|
}, [f]);
|
|
1300
1300
|
const H = () => {
|
|
1301
1301
|
_ ? N && $ ? c({ name: N, description: $ }) : A(!0) : N ? c({ name: N, description: $ }) : A(!0);
|
|
1302
1302
|
};
|
|
1303
|
-
return
|
|
1304
|
-
|
|
1303
|
+
return D(() => {
|
|
1304
|
+
C.includes("geographical") && x != "geographical" && w.length > 0 && M.setState((T) => ({
|
|
1305
1305
|
geoLayers: T.geoLayers.map((j) => ({
|
|
1306
1306
|
...j,
|
|
1307
1307
|
active: !1
|
|
@@ -1328,7 +1328,7 @@ const a0 = "_FiltersAmbitContainer_bp6cj_2", l0 = "_FiltersAmbitHeader_bp6cj_15"
|
|
|
1328
1328
|
onChange: (T) => {
|
|
1329
1329
|
_ && A(!1), k(T.target.value);
|
|
1330
1330
|
},
|
|
1331
|
-
placeholder: m(
|
|
1331
|
+
placeholder: m(g)
|
|
1332
1332
|
}
|
|
1333
1333
|
) }) })
|
|
1334
1334
|
] }),
|
|
@@ -1342,7 +1342,7 @@ const a0 = "_FiltersAmbitContainer_bp6cj_2", l0 = "_FiltersAmbitHeader_bp6cj_15"
|
|
|
1342
1342
|
activeColor: t
|
|
1343
1343
|
}
|
|
1344
1344
|
),
|
|
1345
|
-
|
|
1345
|
+
C.includes("geographical") && /* @__PURE__ */ n(
|
|
1346
1346
|
_t,
|
|
1347
1347
|
{
|
|
1348
1348
|
title: "geo_filters",
|
|
@@ -1350,7 +1350,7 @@ const a0 = "_FiltersAmbitContainer_bp6cj_2", l0 = "_FiltersAmbitHeader_bp6cj_15"
|
|
|
1350
1350
|
onGeoLayersChange: v
|
|
1351
1351
|
}
|
|
1352
1352
|
),
|
|
1353
|
-
|
|
1353
|
+
C.includes("tematical") && /* @__PURE__ */ n(
|
|
1354
1354
|
kt,
|
|
1355
1355
|
{
|
|
1356
1356
|
indicators: o,
|
|
@@ -1396,13 +1396,13 @@ const St = ({
|
|
|
1396
1396
|
orientation: c = "horizontal",
|
|
1397
1397
|
// "horizontal" or "vertical"
|
|
1398
1398
|
horizontalPadding: u = c == "vertical" ? 50 : 20,
|
|
1399
|
-
verticalPadding:
|
|
1399
|
+
verticalPadding: g = 10
|
|
1400
1400
|
}) => {
|
|
1401
|
-
const { xScale: b, yScale:
|
|
1401
|
+
const { xScale: b, yScale: h, ticks: v, height: y, chartWidth: _ } = he(() => {
|
|
1402
1402
|
if (i && i.length > 0) {
|
|
1403
1403
|
const m = Ae.max(i, (x) => x.value) || 1, f = a || m;
|
|
1404
1404
|
if (c === "vertical") {
|
|
1405
|
-
const x = i.length * (s + o) + u * 2, w = d, S = Ae.scaleLinear().domain([0, f]).range([w - 100,
|
|
1405
|
+
const x = i.length * (s + o) + u * 2, w = d, S = Ae.scaleLinear().domain([0, f]).range([w - 100, g]), $ = Array.from(
|
|
1406
1406
|
{ length: l + 1 },
|
|
1407
1407
|
(k, B) => f / l * B
|
|
1408
1408
|
);
|
|
@@ -1413,7 +1413,7 @@ const St = ({
|
|
|
1413
1413
|
chartWidth: x
|
|
1414
1414
|
};
|
|
1415
1415
|
} else {
|
|
1416
|
-
const x = i.length * (s + o) +
|
|
1416
|
+
const x = i.length * (s + o) + g * 2 + 50, w = Ae.scaleLinear().domain([0, f]).range([0, d - r]), N = Array.from(
|
|
1417
1417
|
{ length: l + 1 },
|
|
1418
1418
|
(S, $) => f / l * $
|
|
1419
1419
|
);
|
|
@@ -1439,13 +1439,13 @@ const St = ({
|
|
|
1439
1439
|
s,
|
|
1440
1440
|
o,
|
|
1441
1441
|
u,
|
|
1442
|
-
|
|
1442
|
+
g,
|
|
1443
1443
|
a,
|
|
1444
1444
|
c
|
|
1445
1445
|
]);
|
|
1446
1446
|
return c === "vertical" ? /* @__PURE__ */ n("div", { style: { overflow: "auto" }, children: /* @__PURE__ */ n("svg", { width: _, height: y, children: /* @__PURE__ */ p("g", { transform: `translate(${u}, 0)`, children: [
|
|
1447
1447
|
/* @__PURE__ */ n("g", { children: v.map((m, f) => {
|
|
1448
|
-
const x =
|
|
1448
|
+
const x = h(m);
|
|
1449
1449
|
return /* @__PURE__ */ p("g", { children: [
|
|
1450
1450
|
/* @__PURE__ */ n(
|
|
1451
1451
|
"line",
|
|
@@ -1471,7 +1471,7 @@ const St = ({
|
|
|
1471
1471
|
] }, f);
|
|
1472
1472
|
}) }),
|
|
1473
1473
|
i && i.length > 0 && i.map((m, f) => {
|
|
1474
|
-
const x =
|
|
1474
|
+
const x = h(0) - h(m.value), w = f * (s + o), N = h(m.value);
|
|
1475
1475
|
return /* @__PURE__ */ p("g", { children: [
|
|
1476
1476
|
/* @__PURE__ */ n(
|
|
1477
1477
|
"rect",
|
|
@@ -1589,7 +1589,7 @@ const g0 = "_graphicContainer_c9zrg_2", C0 = "_titleContainer_c9zrg_14", nt = {
|
|
|
1589
1589
|
leftPadding: c = -200,
|
|
1590
1590
|
orientation: u = "horizontal"
|
|
1591
1591
|
}) => {
|
|
1592
|
-
const { t:
|
|
1592
|
+
const { t: g } = L();
|
|
1593
1593
|
return /* @__PURE__ */ p(
|
|
1594
1594
|
"div",
|
|
1595
1595
|
{
|
|
@@ -1600,7 +1600,7 @@ const g0 = "_graphicContainer_c9zrg_2", C0 = "_titleContainer_c9zrg_14", nt = {
|
|
|
1600
1600
|
paddingBottom: 40
|
|
1601
1601
|
},
|
|
1602
1602
|
children: [
|
|
1603
|
-
/* @__PURE__ */ n("div", { className: nt.titleContainer, children: /* @__PURE__ */ n("h2", { children:
|
|
1603
|
+
/* @__PURE__ */ n("div", { className: nt.titleContainer, children: /* @__PURE__ */ n("h2", { children: g(t) }) }),
|
|
1604
1604
|
/* @__PURE__ */ n(
|
|
1605
1605
|
St,
|
|
1606
1606
|
{
|
|
@@ -1660,14 +1660,14 @@ const b0 = "_indicatorsCategory_arwy3_2", y0 = "_title_arwy3_5", _0 = "_list_arw
|
|
|
1660
1660
|
multiple: a = !1,
|
|
1661
1661
|
onChangeType: c
|
|
1662
1662
|
}) => {
|
|
1663
|
-
const { t: u } = L(), { name:
|
|
1663
|
+
const { t: u } = L(), { name: g, type: C, disabled: b } = i;
|
|
1664
1664
|
console.log(it);
|
|
1665
|
-
const [
|
|
1666
|
-
|
|
1665
|
+
const [h, v] = F(!1);
|
|
1666
|
+
D(() => {
|
|
1667
1667
|
t && v(
|
|
1668
1668
|
a ? t.some(
|
|
1669
|
-
(m) => m.name == String(
|
|
1670
|
-
) : t.name ==
|
|
1669
|
+
(m) => m.name == String(g)
|
|
1670
|
+
) : t.name == g
|
|
1671
1671
|
);
|
|
1672
1672
|
}, [t]);
|
|
1673
1673
|
const y = () => /* @__PURE__ */ n("div", { className: R.switchExternalContainer, children: /* @__PURE__ */ n("div", { className: R.switchType, children: /* @__PURE__ */ p("div", { className: R.switchTypeOptions, children: [
|
|
@@ -1756,12 +1756,12 @@ const b0 = "_indicatorsCategory_arwy3_2", y0 = "_title_arwy3_5", _0 = "_list_arw
|
|
|
1756
1756
|
"div",
|
|
1757
1757
|
{
|
|
1758
1758
|
style: {
|
|
1759
|
-
border:
|
|
1759
|
+
border: h ? `1px solid ${s}` : `1px solid ${o}`,
|
|
1760
1760
|
opacity: b ? 0.5 : 1,
|
|
1761
|
-
backgroundColor:
|
|
1761
|
+
backgroundColor: h ? s : "transparent"
|
|
1762
1762
|
},
|
|
1763
1763
|
className: R.dot,
|
|
1764
|
-
children: a && /* @__PURE__ */ n("img", { src:
|
|
1764
|
+
children: a && /* @__PURE__ */ n("img", { src: h ? v0 : it, alt: "" })
|
|
1765
1765
|
}
|
|
1766
1766
|
),
|
|
1767
1767
|
/* @__PURE__ */ n(
|
|
@@ -1769,13 +1769,13 @@ const b0 = "_indicatorsCategory_arwy3_2", y0 = "_title_arwy3_5", _0 = "_list_arw
|
|
|
1769
1769
|
{
|
|
1770
1770
|
className: R.indicatorName,
|
|
1771
1771
|
style: {
|
|
1772
|
-
color:
|
|
1772
|
+
color: h ? s : o,
|
|
1773
1773
|
opacity: b ? 0.5 : 1
|
|
1774
1774
|
},
|
|
1775
1775
|
children: /* @__PURE__ */ n(
|
|
1776
1776
|
We,
|
|
1777
1777
|
{
|
|
1778
|
-
i18nKey:
|
|
1778
|
+
i18nKey: g,
|
|
1779
1779
|
components: { sup: /* @__PURE__ */ n("sup", {}) },
|
|
1780
1780
|
shouldUnescape: !0
|
|
1781
1781
|
}
|
|
@@ -1785,8 +1785,8 @@ const b0 = "_indicatorsCategory_arwy3_2", y0 = "_title_arwy3_5", _0 = "_list_arw
|
|
|
1785
1785
|
]
|
|
1786
1786
|
}
|
|
1787
1787
|
),
|
|
1788
|
-
(t == null ? void 0 : t.name) ===
|
|
1789
|
-
(t == null ? void 0 : t.name) ===
|
|
1788
|
+
(t == null ? void 0 : t.name) === g && C === "both" && /* @__PURE__ */ n("div", { children: y() }),
|
|
1789
|
+
(t == null ? void 0 : t.name) === g && C === "twoUnits" && /* @__PURE__ */ n("div", { children: _() })
|
|
1790
1790
|
] });
|
|
1791
1791
|
};
|
|
1792
1792
|
Xe.propTypes = {
|
|
@@ -1815,26 +1815,26 @@ const V0 = "_indicatorsSubCategory_1nuug_2", D0 = "_list_1nuug_11", st = {
|
|
|
1815
1815
|
activeIndicator: a,
|
|
1816
1816
|
onClickIndicator: c,
|
|
1817
1817
|
multiple: u,
|
|
1818
|
-
activeIndicatorType:
|
|
1819
|
-
onChangeType:
|
|
1818
|
+
activeIndicatorType: g,
|
|
1819
|
+
onChangeType: C
|
|
1820
1820
|
}) => {
|
|
1821
|
-
const { t: b } = L(), [
|
|
1822
|
-
return
|
|
1821
|
+
const { t: b } = L(), [h, v] = F(!1);
|
|
1822
|
+
return D(() => {
|
|
1823
1823
|
v(t == l);
|
|
1824
1824
|
}, [t, l]), /* @__PURE__ */ p(
|
|
1825
1825
|
Ge.div,
|
|
1826
1826
|
{
|
|
1827
1827
|
className: st.indicatorsSubCategory,
|
|
1828
1828
|
initial: { height: "43px" },
|
|
1829
|
-
animate: { height:
|
|
1829
|
+
animate: { height: h ? "auto" : "43px" },
|
|
1830
1830
|
transition: { duration: 0.4 },
|
|
1831
1831
|
children: [
|
|
1832
|
-
/* @__PURE__ */ n("button", { onClick: () => r(l), children: /* @__PURE__ */ p("h3", { style: { color:
|
|
1833
|
-
/* @__PURE__ */ n("span", { style: { color:
|
|
1832
|
+
/* @__PURE__ */ n("button", { onClick: () => r(l), children: /* @__PURE__ */ p("h3", { style: { color: h ? o : s }, children: [
|
|
1833
|
+
/* @__PURE__ */ n("span", { style: { color: h ? o : s }, children: h ? "-" : "+" }),
|
|
1834
1834
|
/* @__PURE__ */ n(
|
|
1835
1835
|
"span",
|
|
1836
1836
|
{
|
|
1837
|
-
style: { color:
|
|
1837
|
+
style: { color: h ? o : s },
|
|
1838
1838
|
children: b(i)
|
|
1839
1839
|
}
|
|
1840
1840
|
)
|
|
@@ -1848,8 +1848,8 @@ const V0 = "_indicatorsSubCategory_1nuug_2", D0 = "_list_1nuug_11", st = {
|
|
|
1848
1848
|
activeIndicator: a,
|
|
1849
1849
|
onClickIndicator: c,
|
|
1850
1850
|
multiple: u,
|
|
1851
|
-
activeIndicatorType:
|
|
1852
|
-
onChangeType:
|
|
1851
|
+
activeIndicatorType: g,
|
|
1852
|
+
onChangeType: C
|
|
1853
1853
|
},
|
|
1854
1854
|
"indicator" + _
|
|
1855
1855
|
)) })
|
|
@@ -1880,13 +1880,13 @@ const Bt = ({
|
|
|
1880
1880
|
onClickSubCategory: a,
|
|
1881
1881
|
activeIndicator: c,
|
|
1882
1882
|
onClickIndicator: u,
|
|
1883
|
-
multiple:
|
|
1884
|
-
activeIndicatorType:
|
|
1883
|
+
multiple: g,
|
|
1884
|
+
activeIndicatorType: C,
|
|
1885
1885
|
onChangeType: b
|
|
1886
1886
|
}) => {
|
|
1887
1887
|
var _;
|
|
1888
|
-
const { t:
|
|
1889
|
-
return
|
|
1888
|
+
const { t: h } = L(), [v, y] = F(!1);
|
|
1889
|
+
return D(() => {
|
|
1890
1890
|
y(r === d);
|
|
1891
1891
|
}, [r, d]), /* @__PURE__ */ p(
|
|
1892
1892
|
Ge.div,
|
|
@@ -1907,7 +1907,7 @@ const Bt = ({
|
|
|
1907
1907
|
"span",
|
|
1908
1908
|
{
|
|
1909
1909
|
style: { color: v ? s : o },
|
|
1910
|
-
children:
|
|
1910
|
+
children: h(i.name)
|
|
1911
1911
|
}
|
|
1912
1912
|
)
|
|
1913
1913
|
] }),
|
|
@@ -1921,11 +1921,11 @@ const Bt = ({
|
|
|
1921
1921
|
onClickSubCategory: a,
|
|
1922
1922
|
activeIndicator: c,
|
|
1923
1923
|
onClickIndicator: u,
|
|
1924
|
-
multiple:
|
|
1924
|
+
multiple: g,
|
|
1925
1925
|
activeColor: s,
|
|
1926
1926
|
defaultColor: o,
|
|
1927
1927
|
indicators: x,
|
|
1928
|
-
activeIndicatorType:
|
|
1928
|
+
activeIndicatorType: C,
|
|
1929
1929
|
onChangeType: b
|
|
1930
1930
|
},
|
|
1931
1931
|
`subcKey ${w}`
|
|
@@ -1939,8 +1939,8 @@ const Bt = ({
|
|
|
1939
1939
|
defaultColor: o,
|
|
1940
1940
|
activeIndicator: c,
|
|
1941
1941
|
onClickIndicator: u,
|
|
1942
|
-
multiple:
|
|
1943
|
-
activeIndicatorType:
|
|
1942
|
+
multiple: g,
|
|
1943
|
+
activeIndicatorType: C,
|
|
1944
1944
|
onChangeType: b
|
|
1945
1945
|
},
|
|
1946
1946
|
`indicator${f}`
|
|
@@ -1980,19 +1980,19 @@ const F0 = "_indicatorsList_13b3m_2", A0 = "_title_13b3m_6", ot = {
|
|
|
1980
1980
|
changeIndType: l,
|
|
1981
1981
|
activeIndicatorType: a
|
|
1982
1982
|
}) => {
|
|
1983
|
-
const { t: c } = L(), [u,
|
|
1984
|
-
|
|
1983
|
+
const { t: c } = L(), [u, g] = F(), [C, b] = F(), [h, v] = F(), y = (w) => {
|
|
1984
|
+
g(u == w ? null : w);
|
|
1985
1985
|
}, _ = (w) => {
|
|
1986
|
-
b(
|
|
1986
|
+
b(C == w ? null : w);
|
|
1987
1987
|
}, m = ({ indicator: w }) => {
|
|
1988
1988
|
f(w);
|
|
1989
1989
|
}, f = (w) => {
|
|
1990
1990
|
if (!t)
|
|
1991
1991
|
v(
|
|
1992
|
-
(
|
|
1992
|
+
(h == null ? void 0 : h.name) == w.name ? null : w
|
|
1993
1993
|
);
|
|
1994
1994
|
else {
|
|
1995
|
-
let N =
|
|
1995
|
+
let N = h && h.length > 0 ? [...h] : [];
|
|
1996
1996
|
v(
|
|
1997
1997
|
N != null && N.some(
|
|
1998
1998
|
(S) => S.name == w.name
|
|
@@ -2002,16 +2002,23 @@ const F0 = "_indicatorsList_13b3m_2", A0 = "_title_13b3m_6", ot = {
|
|
|
2002
2002
|
), w.type == "both" && l("cat");
|
|
2003
2003
|
}
|
|
2004
2004
|
};
|
|
2005
|
-
|
|
2006
|
-
o && typeof o == "function" &&
|
|
2007
|
-
}, [
|
|
2008
|
-
if (r && !
|
|
2005
|
+
D(() => {
|
|
2006
|
+
o && typeof o == "function" && h && o({ activeIndicator: h });
|
|
2007
|
+
}, [h]), Et(() => {
|
|
2008
|
+
if (r && !h)
|
|
2009
|
+
if (t && r && Array.isArray(r)) {
|
|
2010
|
+
let w = h && h.length > 0 ? [...h] : [];
|
|
2011
|
+
v([...w, ...r]), x(r[0].name);
|
|
2012
|
+
} else
|
|
2013
|
+
f(r), x(r.name);
|
|
2014
|
+
}, []), D(() => {
|
|
2015
|
+
if (r != h)
|
|
2009
2016
|
if (t && r && Array.isArray(r)) {
|
|
2010
|
-
let w =
|
|
2017
|
+
let w = h && h.length > 0 ? [...h] : [];
|
|
2011
2018
|
v([...w, ...r]), x(r[0].name);
|
|
2012
2019
|
} else
|
|
2013
2020
|
f(r), x(r.name);
|
|
2014
|
-
}, []);
|
|
2021
|
+
}, [r]);
|
|
2015
2022
|
const x = (w) => {
|
|
2016
2023
|
const N = i.find((S) => {
|
|
2017
2024
|
if (S.subcategories) {
|
|
@@ -2023,7 +2030,7 @@ const F0 = "_indicatorsList_13b3m_2", A0 = "_title_13b3m_6", ot = {
|
|
|
2023
2030
|
} else
|
|
2024
2031
|
return S.indicators.some(($) => $.name == w);
|
|
2025
2032
|
});
|
|
2026
|
-
N &&
|
|
2033
|
+
N && g(N.category);
|
|
2027
2034
|
};
|
|
2028
2035
|
return /* @__PURE__ */ p("div", { className: ot.indicatorsList, children: [
|
|
2029
2036
|
/* @__PURE__ */ n("h2", { className: ot.title, style: { color: s }, children: c("indicators.indicators") }),
|
|
@@ -2035,9 +2042,9 @@ const F0 = "_indicatorsList_13b3m_2", A0 = "_title_13b3m_6", ot = {
|
|
|
2035
2042
|
onClickCategory: y,
|
|
2036
2043
|
activeCategory: u,
|
|
2037
2044
|
onClickSubCategory: _,
|
|
2038
|
-
activeSubCategory:
|
|
2045
|
+
activeSubCategory: C,
|
|
2039
2046
|
onClickIndicator: m,
|
|
2040
|
-
activeIndicator:
|
|
2047
|
+
activeIndicator: h,
|
|
2041
2048
|
activeColor: d,
|
|
2042
2049
|
defaultColor: s,
|
|
2043
2050
|
multiple: t,
|
|
@@ -2067,7 +2074,7 @@ const O0 = "_langSelector_o9enq_2", R0 = "_currentLang_o9enq_14", q0 = "_arrow_o
|
|
|
2067
2074
|
prevImg: P0,
|
|
2068
2075
|
langMenu: E0
|
|
2069
2076
|
}, j0 = ({ langs: i, arrow: d, imgPrev: s }) => {
|
|
2070
|
-
const [o, t] =
|
|
2077
|
+
const [o, t] = F(!1), { i18n: r } = L(), l = i.find((c) => c.code == r.language), a = (c) => {
|
|
2071
2078
|
r.changeLanguage(c), t(!1);
|
|
2072
2079
|
};
|
|
2073
2080
|
return /* @__PURE__ */ p("div", { className: de.langSelector, children: [
|
|
@@ -2158,11 +2165,11 @@ const Z0 = "_legendContainer_qs4x9_3", z0 = "_closeButton_qs4x9_31", H0 = "_titl
|
|
|
2158
2165
|
children: [
|
|
2159
2166
|
/* @__PURE__ */ n("button", { className: O.closeButton, onClick: c }),
|
|
2160
2167
|
d && /* @__PURE__ */ n("div", { className: O.titleContainer, style: { marginBottom: (!s || s.length == 0) && "15px" }, children: /* @__PURE__ */ n("h2", { children: d }) }),
|
|
2161
|
-
s && s.length > 0 && /* @__PURE__ */ n("div", { className: O.infoContainer, children: /* @__PURE__ */ n("ul", { children: s.map(({ title:
|
|
2162
|
-
/* @__PURE__ */ n("h3", { className: O.title, children: `${
|
|
2168
|
+
s && s.length > 0 && /* @__PURE__ */ n("div", { className: O.infoContainer, children: /* @__PURE__ */ n("ul", { children: s.map(({ title: g, value: C }) => /* @__PURE__ */ p("li", { children: [
|
|
2169
|
+
/* @__PURE__ */ n("h3", { className: O.title, children: `${g}:` }),
|
|
2163
2170
|
/* @__PURE__ */ p("span", { className: O.value, children: [
|
|
2164
2171
|
" ",
|
|
2165
|
-
|
|
2172
|
+
C
|
|
2166
2173
|
] })
|
|
2167
2174
|
] }, d)) }) }),
|
|
2168
2175
|
/* @__PURE__ */ n("h3", { className: O.titleLegendList, style: { marginTop: s && s.length > 0 && "30px" }, children: t && /* @__PURE__ */ n(We, { i18nKey: t, components: { sup: /* @__PURE__ */ n("sup", {}) }, shouldUnescape: !0 }) }),
|
|
@@ -2195,16 +2202,16 @@ const Z0 = "_legendContainer_qs4x9_3", z0 = "_closeButton_qs4x9_31", H0 = "_titl
|
|
|
2195
2202
|
] })
|
|
2196
2203
|
] })
|
|
2197
2204
|
] }) : o && o.length > 0 && /* @__PURE__ */ n("div", { className: O.gridContainer, children: o.map(
|
|
2198
|
-
({ title:
|
|
2205
|
+
({ title: g, color: C }) => /* @__PURE__ */ p("div", { className: O.elementLegendContainer, children: [
|
|
2199
2206
|
/* @__PURE__ */ n(
|
|
2200
2207
|
"div",
|
|
2201
2208
|
{
|
|
2202
2209
|
className: O.colorDot,
|
|
2203
|
-
style: { backgroundColor:
|
|
2210
|
+
style: { backgroundColor: C }
|
|
2204
2211
|
}
|
|
2205
2212
|
),
|
|
2206
2213
|
/* @__PURE__ */ p("div", { className: O.titleLegendElement, children: [
|
|
2207
|
-
u(
|
|
2214
|
+
u(g),
|
|
2208
2215
|
" "
|
|
2209
2216
|
] })
|
|
2210
2217
|
] }, d)
|
|
@@ -2281,12 +2288,12 @@ const dn = ({
|
|
|
2281
2288
|
interactiveLayers: a = [],
|
|
2282
2289
|
popUp: c = !1,
|
|
2283
2290
|
sources: u = [],
|
|
2284
|
-
layers:
|
|
2291
|
+
layers: g = []
|
|
2285
2292
|
}) => {
|
|
2286
|
-
const
|
|
2287
|
-
return
|
|
2288
|
-
if (
|
|
2289
|
-
const y =
|
|
2293
|
+
const C = ae(), [b, h] = F(null), v = Zt((y) => y.mapState.showTexts);
|
|
2294
|
+
return D(() => {
|
|
2295
|
+
if (C.current) {
|
|
2296
|
+
const y = C.current.getMap();
|
|
2290
2297
|
y.getStyle().layers.map((m) => {
|
|
2291
2298
|
m.type == "symbol" && m.id != "professionals" && (v ? y.setLayoutProperty(m.id, "visibility", "visible") : y.setLayoutProperty(m.id, "visibility", "none"));
|
|
2292
2299
|
});
|
|
@@ -2295,7 +2302,7 @@ const dn = ({
|
|
|
2295
2302
|
zt,
|
|
2296
2303
|
{
|
|
2297
2304
|
initialViewState: i,
|
|
2298
|
-
ref:
|
|
2305
|
+
ref: C,
|
|
2299
2306
|
hash: !1,
|
|
2300
2307
|
maxZoom: d,
|
|
2301
2308
|
minZoom: s,
|
|
@@ -2307,7 +2314,7 @@ const dn = ({
|
|
|
2307
2314
|
Ht,
|
|
2308
2315
|
{
|
|
2309
2316
|
...y,
|
|
2310
|
-
children:
|
|
2317
|
+
children: g.length && g.map((m, f) => {
|
|
2311
2318
|
if (m.sourceId == y.id) return /* @__PURE__ */ n(
|
|
2312
2319
|
Kt,
|
|
2313
2320
|
{
|
|
@@ -2327,7 +2334,7 @@ const dn = ({
|
|
|
2327
2334
|
longitude: c.longitude,
|
|
2328
2335
|
latitude: c.latitude,
|
|
2329
2336
|
anchor: c.anchor,
|
|
2330
|
-
onClose: () =>
|
|
2337
|
+
onClose: () => h(null),
|
|
2331
2338
|
children: c.content
|
|
2332
2339
|
}
|
|
2333
2340
|
)
|
|
@@ -2409,20 +2416,20 @@ const un = "_mapContainer_b0pyr_3", pn = {
|
|
|
2409
2416
|
interactiveLayers: a = [],
|
|
2410
2417
|
sources: c = [],
|
|
2411
2418
|
layers: u = [],
|
|
2412
|
-
popUpParams:
|
|
2413
|
-
onClosePopUp:
|
|
2419
|
+
popUpParams: g,
|
|
2420
|
+
onClosePopUp: C,
|
|
2414
2421
|
showTexts: b,
|
|
2415
|
-
hash:
|
|
2422
|
+
hash: h = !1
|
|
2416
2423
|
}) => {
|
|
2417
2424
|
const v = ae();
|
|
2418
|
-
return
|
|
2425
|
+
return D(() => {
|
|
2419
2426
|
if (v.current) {
|
|
2420
2427
|
const y = v.current.getMap();
|
|
2421
2428
|
y.getStyle().layers.map((m) => {
|
|
2422
2429
|
m.type == "symbol" && m.id != "professionals" && (b ? y.setLayoutProperty(m.id, "visibility", "visible") : y.setLayoutProperty(m.id, "visibility", "none"));
|
|
2423
2430
|
});
|
|
2424
2431
|
}
|
|
2425
|
-
}, [b]),
|
|
2432
|
+
}, [b]), D(() => {
|
|
2426
2433
|
let y = new Gt();
|
|
2427
2434
|
return Ie.addProtocol("pmtiles", y.tile), () => {
|
|
2428
2435
|
Ie.removeProtocol("pmtiles");
|
|
@@ -2433,7 +2440,7 @@ const un = "_mapContainer_b0pyr_3", pn = {
|
|
|
2433
2440
|
mapLib: Ie,
|
|
2434
2441
|
initialViewState: i,
|
|
2435
2442
|
ref: v,
|
|
2436
|
-
hash:
|
|
2443
|
+
hash: h,
|
|
2437
2444
|
maxZoom: d,
|
|
2438
2445
|
minZoom: s,
|
|
2439
2446
|
mapStyle: o,
|
|
@@ -2462,13 +2469,13 @@ const un = "_mapContainer_b0pyr_3", pn = {
|
|
|
2462
2469
|
_
|
|
2463
2470
|
)),
|
|
2464
2471
|
/* @__PURE__ */ n(Jt, { position: "bottom-right", visualizePitch: !0 }),
|
|
2465
|
-
|
|
2472
|
+
g && /* @__PURE__ */ n(
|
|
2466
2473
|
e2,
|
|
2467
2474
|
{
|
|
2468
|
-
longitude:
|
|
2469
|
-
latitude:
|
|
2470
|
-
onClose:
|
|
2471
|
-
children: /* @__PURE__ */ n(gn, { props:
|
|
2475
|
+
longitude: g.lng,
|
|
2476
|
+
latitude: g.lat,
|
|
2477
|
+
onClose: C,
|
|
2478
|
+
children: /* @__PURE__ */ n(gn, { props: g.props })
|
|
2472
2479
|
}
|
|
2473
2480
|
)
|
|
2474
2481
|
]
|
|
@@ -2604,18 +2611,18 @@ const Nn = t2({
|
|
|
2604
2611
|
console.log("year changed to ", a);
|
|
2605
2612
|
}
|
|
2606
2613
|
}) => {
|
|
2607
|
-
const [a, c] =
|
|
2614
|
+
const [a, c] = F(d), u = (m, f) => {
|
|
2608
2615
|
c(f), l(f);
|
|
2609
|
-
}, [
|
|
2610
|
-
|
|
2611
|
-
},
|
|
2612
|
-
|
|
2616
|
+
}, [g, C] = F(!1), b = () => {
|
|
2617
|
+
C(!0);
|
|
2618
|
+
}, h = () => {
|
|
2619
|
+
C(!1);
|
|
2613
2620
|
};
|
|
2614
2621
|
((m, f) => {
|
|
2615
2622
|
const x = ae();
|
|
2616
|
-
|
|
2623
|
+
D(() => {
|
|
2617
2624
|
x.current = m;
|
|
2618
|
-
}, [m]),
|
|
2625
|
+
}, [m]), D(() => {
|
|
2619
2626
|
function w() {
|
|
2620
2627
|
x.current();
|
|
2621
2628
|
}
|
|
@@ -2625,7 +2632,7 @@ const Nn = t2({
|
|
|
2625
2632
|
}
|
|
2626
2633
|
}, [f]);
|
|
2627
2634
|
})(() => {
|
|
2628
|
-
|
|
2635
|
+
g && (a != 2050 ? (c(a + 1), l(a + 1)) : (c(2025), l(2025)));
|
|
2629
2636
|
}, 1e3);
|
|
2630
2637
|
const y = i2({
|
|
2631
2638
|
palette: {
|
|
@@ -2679,8 +2686,8 @@ const Nn = t2({
|
|
|
2679
2686
|
}
|
|
2680
2687
|
),
|
|
2681
2688
|
o,
|
|
2682
|
-
!
|
|
2683
|
-
|
|
2689
|
+
!g && /* @__PURE__ */ n("button", { className: Ce.playButton, onClick: b, children: /* @__PURE__ */ n("img", { src: kn, alt: "Play" }) }),
|
|
2690
|
+
g && /* @__PURE__ */ n("button", { className: Ce.playButton, onClick: h, children: /* @__PURE__ */ n("img", { src: Sn, alt: "Pause" }) })
|
|
2684
2691
|
]
|
|
2685
2692
|
}
|
|
2686
2693
|
) });
|
|
@@ -2823,17 +2830,17 @@ const ai = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2823
2830
|
elementButtons: a,
|
|
2824
2831
|
processTooltip: c,
|
|
2825
2832
|
defaultTooltip: u,
|
|
2826
|
-
showEye:
|
|
2833
|
+
showEye: g = !0
|
|
2827
2834
|
}) => {
|
|
2828
|
-
const { name:
|
|
2835
|
+
const { name: C, created_at: b, id: h, isBeingProcessed: v } = i, [y, _] = F(!1), { t: m } = L();
|
|
2829
2836
|
return /* @__PURE__ */ p(
|
|
2830
2837
|
"div",
|
|
2831
2838
|
{
|
|
2832
2839
|
className: K.listElement,
|
|
2833
2840
|
style: { borderBottom: `1px solid ${t}` },
|
|
2834
2841
|
children: [
|
|
2835
|
-
/* @__PURE__ */ n("div", { className: K.elementNameDate, onClick: () => d(
|
|
2836
|
-
|
|
2842
|
+
/* @__PURE__ */ n("div", { className: K.elementNameDate, onClick: () => d(h), children: Object.keys(l).map((f) => f === "name" ? /* @__PURE__ */ n("div", { className: K.elementNameContainer, children: /* @__PURE__ */ p("div", { className: K.elementName, children: [
|
|
2843
|
+
g && (s ? /* @__PURE__ */ n(ri, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ n(
|
|
2837
2844
|
"img",
|
|
2838
2845
|
{
|
|
2839
2846
|
style: { marginRight: 9 },
|
|
@@ -2841,7 +2848,7 @@ const ai = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2841
2848
|
alt: "eye"
|
|
2842
2849
|
}
|
|
2843
2850
|
)),
|
|
2844
|
-
/* @__PURE__ */ n("span", { style: { color: s ? o : t }, children:
|
|
2851
|
+
/* @__PURE__ */ n("span", { style: { color: s ? o : t }, children: C })
|
|
2845
2852
|
] }) }) : f == "data" ? /* @__PURE__ */ n("div", { className: K.elementDate, children: b ? new Date(b).toLocaleDateString() : "" }) : /* @__PURE__ */ n("div", { className: K.elementDate, children: i[f] })) }),
|
|
2846
2853
|
/* @__PURE__ */ p("div", { className: K.elementButtons, children: [
|
|
2847
2854
|
i.processing && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
@@ -2927,16 +2934,16 @@ const ct = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2927
2934
|
// {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
|
|
2928
2935
|
elementButtons: u,
|
|
2929
2936
|
//{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
|
|
2930
|
-
moreInfo:
|
|
2937
|
+
moreInfo: g = !1,
|
|
2931
2938
|
//{label: 'x'}
|
|
2932
|
-
processTooltip:
|
|
2939
|
+
processTooltip: C,
|
|
2933
2940
|
//texto para el tooltip del simbolo "En proceso"
|
|
2934
2941
|
defaultTooltip: b,
|
|
2935
2942
|
//texto para el tooltip del símbolo de candado para los elementos default
|
|
2936
|
-
showEye:
|
|
2943
|
+
showEye: h = !0
|
|
2937
2944
|
}) => {
|
|
2938
|
-
const { t: v } = L(), [y, _] =
|
|
2939
|
-
|
|
2945
|
+
const { t: v } = L(), [y, _] = F(i);
|
|
2946
|
+
D(() => {
|
|
2940
2947
|
i && _(i);
|
|
2941
2948
|
}, [i]);
|
|
2942
2949
|
const m = (f) => {
|
|
@@ -2978,10 +2985,10 @@ const ct = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2978
2985
|
onClickElement: a,
|
|
2979
2986
|
columns: c,
|
|
2980
2987
|
elementButtons: u,
|
|
2981
|
-
moreInfo:
|
|
2982
|
-
processTooltip:
|
|
2988
|
+
moreInfo: g,
|
|
2989
|
+
processTooltip: C,
|
|
2983
2990
|
defaultTooltip: b,
|
|
2984
|
-
showEye:
|
|
2991
|
+
showEye: h
|
|
2985
2992
|
},
|
|
2986
2993
|
`elementKey${f.id}`
|
|
2987
2994
|
)) }),
|
|
@@ -3154,7 +3161,7 @@ function Si(i) {
|
|
|
3154
3161
|
values: !0
|
|
3155
3162
|
},
|
|
3156
3163
|
exact: l,
|
|
3157
|
-
callback: (
|
|
3164
|
+
callback: (g) => !r && u(ki(o, s._names, g.values || s._formValues, !1, a.current))
|
|
3158
3165
|
}), [o, s, r, l]), V.useEffect(() => s._removeUnmounted()), c;
|
|
3159
3166
|
}
|
|
3160
3167
|
function $i(i) {
|
|
@@ -3167,11 +3174,11 @@ function $i(i) {
|
|
|
3167
3174
|
control: t,
|
|
3168
3175
|
name: s,
|
|
3169
3176
|
exact: !0
|
|
3170
|
-
}), u = V.useRef(i),
|
|
3177
|
+
}), u = V.useRef(i), g = V.useRef(t.register(s, {
|
|
3171
3178
|
...i.rules,
|
|
3172
3179
|
value: a,
|
|
3173
3180
|
...Pe(i.disabled) ? { disabled: i.disabled } : {}
|
|
3174
|
-
})),
|
|
3181
|
+
})), C = V.useMemo(() => Object.defineProperties({}, {
|
|
3175
3182
|
invalid: {
|
|
3176
3183
|
enumerable: !0,
|
|
3177
3184
|
get: () => !!P(c.errors, s)
|
|
@@ -3192,13 +3199,13 @@ function $i(i) {
|
|
|
3192
3199
|
enumerable: !0,
|
|
3193
3200
|
get: () => P(c.errors, s)
|
|
3194
3201
|
}
|
|
3195
|
-
}), [c, s]), b = V.useCallback((_) =>
|
|
3202
|
+
}), [c, s]), b = V.useCallback((_) => g.current.onChange({
|
|
3196
3203
|
target: {
|
|
3197
3204
|
value: Ci(_),
|
|
3198
3205
|
name: s
|
|
3199
3206
|
},
|
|
3200
3207
|
type: ut.CHANGE
|
|
3201
|
-
}), [s]),
|
|
3208
|
+
}), [s]), h = V.useCallback(() => g.current.onBlur({
|
|
3202
3209
|
target: {
|
|
3203
3210
|
value: P(t._formValues, s),
|
|
3204
3211
|
name: s
|
|
@@ -3217,9 +3224,9 @@ function $i(i) {
|
|
|
3217
3224
|
value: a,
|
|
3218
3225
|
...Pe(o) || c.disabled ? { disabled: c.disabled || o } : {},
|
|
3219
3226
|
onChange: b,
|
|
3220
|
-
onBlur:
|
|
3227
|
+
onBlur: h,
|
|
3221
3228
|
ref: v
|
|
3222
|
-
}), [s, o, c.disabled, b,
|
|
3229
|
+
}), [s, o, c.disabled, b, h, v, a]);
|
|
3223
3230
|
return V.useEffect(() => {
|
|
3224
3231
|
const _ = t._options.shouldUnregister || r;
|
|
3225
3232
|
t.register(s, {
|
|
@@ -3245,8 +3252,8 @@ function $i(i) {
|
|
|
3245
3252
|
}, [o, s, t]), V.useMemo(() => ({
|
|
3246
3253
|
field: y,
|
|
3247
3254
|
formState: c,
|
|
3248
|
-
fieldState:
|
|
3249
|
-
}), [y, c,
|
|
3255
|
+
fieldState: C
|
|
3256
|
+
}), [y, c, C]);
|
|
3250
3257
|
}
|
|
3251
3258
|
const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_labelContainer_1o3iy_5", Ti = "_inputContainer_1o3iy_8", Mi = "_showPasswordButton_1o3iy_14", Vi = "_forgotPassButton_1o3iy_26", ye = {
|
|
3252
3259
|
textInputContainer: Bi,
|
|
@@ -3282,12 +3289,12 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3282
3289
|
validateFunction: a,
|
|
3283
3290
|
placeholder: c,
|
|
3284
3291
|
errorColor: u = "red",
|
|
3285
|
-
width:
|
|
3286
|
-
onClickForgotPass:
|
|
3292
|
+
width: g = 325,
|
|
3293
|
+
onClickForgotPass: C = () => {
|
|
3287
3294
|
console.log("Click on forgot password");
|
|
3288
3295
|
},
|
|
3289
3296
|
forgotPassLabel: b = "forgot-password"
|
|
3290
|
-
} = i, { t:
|
|
3297
|
+
} = i, { t: h } = L(), { control: v, trigger: y, clearErrors: _ } = d, { errorColor: m } = Ne((N) => N), [f, x] = F(!1);
|
|
3291
3298
|
ae(l);
|
|
3292
3299
|
const w = () => o ? o === "password" && f ? "text" : o : "text";
|
|
3293
3300
|
return /* @__PURE__ */ n(
|
|
@@ -3296,7 +3303,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3296
3303
|
name: s,
|
|
3297
3304
|
control: v,
|
|
3298
3305
|
rules: {
|
|
3299
|
-
required: l ? `${
|
|
3306
|
+
required: l ? `${h(t)} ${h("errorMessages.required")}` : !1,
|
|
3300
3307
|
maxLength: r || void 0,
|
|
3301
3308
|
validate: a || void 0
|
|
3302
3309
|
},
|
|
@@ -3304,14 +3311,14 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3304
3311
|
var $;
|
|
3305
3312
|
return /* @__PURE__ */ p("div", { className: ye.textInputContainer, children: [
|
|
3306
3313
|
/* @__PURE__ */ p("h3", { className: ye.labelContainer, children: [
|
|
3307
|
-
|
|
3314
|
+
h(t),
|
|
3308
3315
|
" ",
|
|
3309
3316
|
l && /* @__PURE__ */ n("label", { style: { color: S.error ? u : "" }, children: "*" })
|
|
3310
3317
|
] }),
|
|
3311
3318
|
/* @__PURE__ */ p(
|
|
3312
3319
|
"div",
|
|
3313
3320
|
{
|
|
3314
|
-
style: { position: "relative", width:
|
|
3321
|
+
style: { position: "relative", width: g },
|
|
3315
3322
|
className: ye.inputContainer,
|
|
3316
3323
|
children: [
|
|
3317
3324
|
/* @__PURE__ */ n(
|
|
@@ -3319,7 +3326,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3319
3326
|
{
|
|
3320
3327
|
type: w(),
|
|
3321
3328
|
...N,
|
|
3322
|
-
placeholder: c ?
|
|
3329
|
+
placeholder: c ? h(c) : "",
|
|
3323
3330
|
maxLength: r || void 0
|
|
3324
3331
|
}
|
|
3325
3332
|
),
|
|
@@ -3333,7 +3340,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3333
3340
|
"img",
|
|
3334
3341
|
{
|
|
3335
3342
|
src: f ? Ii : Ai,
|
|
3336
|
-
alt:
|
|
3343
|
+
alt: h("show-password")
|
|
3337
3344
|
}
|
|
3338
3345
|
)
|
|
3339
3346
|
}
|
|
@@ -3341,7 +3348,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3341
3348
|
]
|
|
3342
3349
|
}
|
|
3343
3350
|
),
|
|
3344
|
-
o == "password" && /* @__PURE__ */ n("div", { className: ye.forgotPassButton, children: /* @__PURE__ */ n("button", { onClick:
|
|
3351
|
+
o == "password" && /* @__PURE__ */ n("div", { className: ye.forgotPassButton, children: /* @__PURE__ */ n("button", { onClick: C, children: h(b) }) }),
|
|
3345
3352
|
/* @__PURE__ */ n(
|
|
3346
3353
|
xe,
|
|
3347
3354
|
{
|
|
@@ -3371,14 +3378,14 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3371
3378
|
required: a,
|
|
3372
3379
|
validateFunction: c,
|
|
3373
3380
|
placeholder: u,
|
|
3374
|
-
errorColor:
|
|
3375
|
-
width:
|
|
3381
|
+
errorColor: g = "red",
|
|
3382
|
+
width: C = 325,
|
|
3376
3383
|
options: b = []
|
|
3377
3384
|
//Used if we dont use react hook form
|
|
3378
|
-
} = i, { t:
|
|
3385
|
+
} = i, { t: h } = L(), { control: v, trigger: y, clearErrors: _ } = d || {}, { errorColor: m } = Ne((w) => w);
|
|
3379
3386
|
ae(a);
|
|
3380
|
-
const [f, x] =
|
|
3381
|
-
return
|
|
3387
|
+
const [f, x] = F(null);
|
|
3388
|
+
return D(() => {
|
|
3382
3389
|
f && s && s(f);
|
|
3383
3390
|
}, [f, s]), d ? /* @__PURE__ */ n(
|
|
3384
3391
|
we,
|
|
@@ -3386,7 +3393,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3386
3393
|
name: o,
|
|
3387
3394
|
control: v,
|
|
3388
3395
|
rules: {
|
|
3389
|
-
required: a ? `${
|
|
3396
|
+
required: a ? `${h(r)} ${h("errorMessages.required")}` : !1,
|
|
3390
3397
|
validate: c ? (w) => {
|
|
3391
3398
|
let N = d.getValues();
|
|
3392
3399
|
return c(w, N);
|
|
@@ -3396,11 +3403,11 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3396
3403
|
var S;
|
|
3397
3404
|
return /* @__PURE__ */ p("div", { className: z.selectInputContainer, children: [
|
|
3398
3405
|
r && /* @__PURE__ */ p("h3", { className: z.labelContainer, children: [
|
|
3399
|
-
|
|
3406
|
+
h(r),
|
|
3400
3407
|
" ",
|
|
3401
|
-
a && /* @__PURE__ */ n("label", { style: { color: N.error ?
|
|
3408
|
+
a && /* @__PURE__ */ n("label", { style: { color: N.error ? g : "" }, children: "*" })
|
|
3402
3409
|
] }),
|
|
3403
|
-
/* @__PURE__ */ p("div", { className: z.inputContainer, style: { width:
|
|
3410
|
+
/* @__PURE__ */ p("div", { className: z.inputContainer, style: { width: C }, children: [
|
|
3404
3411
|
/* @__PURE__ */ p(
|
|
3405
3412
|
"select",
|
|
3406
3413
|
{
|
|
@@ -3411,13 +3418,13 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3411
3418
|
},
|
|
3412
3419
|
className: z.selectInput,
|
|
3413
3420
|
children: [
|
|
3414
|
-
/* @__PURE__ */ n("option", { value: "", disabled: !0, hidden: !0, children:
|
|
3421
|
+
/* @__PURE__ */ n("option", { value: "", disabled: !0, hidden: !0, children: h(u || "selectOption") }),
|
|
3415
3422
|
b.map(($, k) => /* @__PURE__ */ n(
|
|
3416
3423
|
"option",
|
|
3417
3424
|
{
|
|
3418
3425
|
value: $.value,
|
|
3419
3426
|
className: z.option,
|
|
3420
|
-
children:
|
|
3427
|
+
children: h($.label)
|
|
3421
3428
|
},
|
|
3422
3429
|
k
|
|
3423
3430
|
))
|
|
@@ -3437,7 +3444,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3437
3444
|
xe,
|
|
3438
3445
|
{
|
|
3439
3446
|
errorMessage: (S = N.error) == null ? void 0 : S.message,
|
|
3440
|
-
errorColor: m ||
|
|
3447
|
+
errorColor: m || g
|
|
3441
3448
|
}
|
|
3442
3449
|
)
|
|
3443
3450
|
] });
|
|
@@ -3445,11 +3452,11 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3445
3452
|
}
|
|
3446
3453
|
) : /* @__PURE__ */ p("div", { className: z.selectInputContainer, children: [
|
|
3447
3454
|
r && /* @__PURE__ */ p("h3", { className: z.labelContainer, children: [
|
|
3448
|
-
|
|
3455
|
+
h(r),
|
|
3449
3456
|
" ",
|
|
3450
3457
|
a && /* @__PURE__ */ n("label", { children: "*" })
|
|
3451
3458
|
] }),
|
|
3452
|
-
/* @__PURE__ */ p("div", { className: z.inputContainer, style: { width:
|
|
3459
|
+
/* @__PURE__ */ p("div", { className: z.inputContainer, style: { width: C }, children: [
|
|
3453
3460
|
/* @__PURE__ */ p(
|
|
3454
3461
|
"select",
|
|
3455
3462
|
{
|
|
@@ -3460,13 +3467,13 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3460
3467
|
},
|
|
3461
3468
|
className: z.selectInput,
|
|
3462
3469
|
children: [
|
|
3463
|
-
/* @__PURE__ */ n("option", { value: "", disabled: !0, hidden: !0, children:
|
|
3470
|
+
/* @__PURE__ */ n("option", { value: "", disabled: !0, hidden: !0, children: h(u || "selectOption") }),
|
|
3464
3471
|
b.map((w, N) => /* @__PURE__ */ n(
|
|
3465
3472
|
"option",
|
|
3466
3473
|
{
|
|
3467
3474
|
value: w.value,
|
|
3468
3475
|
className: z.option,
|
|
3469
|
-
children:
|
|
3476
|
+
children: h(w.label)
|
|
3470
3477
|
},
|
|
3471
3478
|
N
|
|
3472
3479
|
))
|
|
@@ -3492,7 +3499,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3492
3499
|
errorColor: l = "red",
|
|
3493
3500
|
options: a = [],
|
|
3494
3501
|
multi: c = !1
|
|
3495
|
-
} = i, { t: u } = L(), { control:
|
|
3502
|
+
} = i, { t: u } = L(), { control: g, trigger: C, clearErrors: b } = d, { errorColor: h } = Ne((_) => _), v = ({ options: _, onChange: m, actualValue: f }) => {
|
|
3496
3503
|
if (c && f && f.length > 0) {
|
|
3497
3504
|
let x = f.filter((w) => w !== _);
|
|
3498
3505
|
m(x);
|
|
@@ -3503,7 +3510,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3503
3510
|
return ae(t), /* @__PURE__ */ n(
|
|
3504
3511
|
we,
|
|
3505
3512
|
{
|
|
3506
|
-
control:
|
|
3513
|
+
control: g,
|
|
3507
3514
|
name: s,
|
|
3508
3515
|
rules: {
|
|
3509
3516
|
validate: (_) => t && (_ == null || _ === "") ? `${u(o)} ${u("errorMessages.required")}` : null
|
|
@@ -3571,7 +3578,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3571
3578
|
xe,
|
|
3572
3579
|
{
|
|
3573
3580
|
errorMessage: (S = N.error) == null ? void 0 : S.message,
|
|
3574
|
-
errorColor:
|
|
3581
|
+
errorColor: h || l
|
|
3575
3582
|
}
|
|
3576
3583
|
)
|
|
3577
3584
|
] })
|
|
@@ -3598,10 +3605,10 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3598
3605
|
thumbColor: c = "#B32F5D",
|
|
3599
3606
|
//trackColors = ["#B32F5D", "#EFEFEF"],
|
|
3600
3607
|
required: u,
|
|
3601
|
-
errorColor:
|
|
3602
|
-
labelWidth:
|
|
3608
|
+
errorColor: g = "red",
|
|
3609
|
+
labelWidth: C = "300px",
|
|
3603
3610
|
sliderWidth: b = "300px",
|
|
3604
|
-
minText:
|
|
3611
|
+
minText: h,
|
|
3605
3612
|
maxText: v,
|
|
3606
3613
|
disabled: y = !1,
|
|
3607
3614
|
marks: _ = Array.from(
|
|
@@ -3611,7 +3618,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3611
3618
|
showMarksNumber: m = !0
|
|
3612
3619
|
} = i, { t: f } = L(), { control: x, trigger: w, clearErrors: N } = d || {};
|
|
3613
3620
|
ae(u);
|
|
3614
|
-
const { errorColorForm: S } = Ne((B) => B), [$, k] =
|
|
3621
|
+
const { errorColorForm: S } = Ne((B) => B), [$, k] = F(a);
|
|
3615
3622
|
return d ? /* @__PURE__ */ n(
|
|
3616
3623
|
we,
|
|
3617
3624
|
{
|
|
@@ -3628,12 +3635,12 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3628
3635
|
{
|
|
3629
3636
|
className: I.rankingSliderContainer,
|
|
3630
3637
|
style: {
|
|
3631
|
-
gridTemplateColumns: `${t &&
|
|
3638
|
+
gridTemplateColumns: `${t && C} ${b}`
|
|
3632
3639
|
},
|
|
3633
3640
|
children: [
|
|
3634
3641
|
t && /* @__PURE__ */ n("p", { className: I.labelContainer, children: f(t) }),
|
|
3635
3642
|
/* @__PURE__ */ p("div", { className: I.inputContainer, children: [
|
|
3636
|
-
|
|
3643
|
+
h && /* @__PURE__ */ n("div", { className: I.minLabel, children: f(h) }),
|
|
3637
3644
|
/* @__PURE__ */ p("div", { children: [
|
|
3638
3645
|
/* @__PURE__ */ n(
|
|
3639
3646
|
He,
|
|
@@ -3666,7 +3673,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3666
3673
|
xe,
|
|
3667
3674
|
{
|
|
3668
3675
|
errorMessage: (H = A.error) == null ? void 0 : H.message,
|
|
3669
|
-
errorColor: S ||
|
|
3676
|
+
errorColor: S || g
|
|
3670
3677
|
}
|
|
3671
3678
|
)
|
|
3672
3679
|
]
|
|
@@ -3678,11 +3685,11 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3678
3685
|
"div",
|
|
3679
3686
|
{
|
|
3680
3687
|
className: I.rankingSliderContainer,
|
|
3681
|
-
style: { gridTemplateColumns: `${t &&
|
|
3688
|
+
style: { gridTemplateColumns: `${t && C} ${b}` },
|
|
3682
3689
|
children: [
|
|
3683
3690
|
t && /* @__PURE__ */ n("p", { className: I.labelContainer, children: f(t) }),
|
|
3684
3691
|
/* @__PURE__ */ p("div", { className: I.inputContainer, children: [
|
|
3685
|
-
|
|
3692
|
+
h && /* @__PURE__ */ n("div", { className: I.minLabel, children: f(h) }),
|
|
3686
3693
|
/* @__PURE__ */ p("div", { children: [
|
|
3687
3694
|
/* @__PURE__ */ n(
|
|
3688
3695
|
He,
|
|
@@ -3855,20 +3862,20 @@ const _e = ({
|
|
|
3855
3862
|
className: Te.categorySelector,
|
|
3856
3863
|
style: t ? { ...t } : {},
|
|
3857
3864
|
children: i.map((a, c) => {
|
|
3858
|
-
const { id: u, label:
|
|
3865
|
+
const { id: u, label: g } = a, C = s == u;
|
|
3859
3866
|
return /* @__PURE__ */ n(
|
|
3860
3867
|
"button",
|
|
3861
3868
|
{
|
|
3862
|
-
className: `${Te.sectionItem} ${
|
|
3869
|
+
className: `${Te.sectionItem} ${C ? Te.sectionItemActive : ""}`,
|
|
3863
3870
|
type: "button",
|
|
3864
|
-
style: { backgroundColor:
|
|
3871
|
+
style: { backgroundColor: C ? o : "inherit" },
|
|
3865
3872
|
onClick: () => l(u),
|
|
3866
3873
|
children: /* @__PURE__ */ n(
|
|
3867
3874
|
"span",
|
|
3868
3875
|
{
|
|
3869
|
-
style: { color:
|
|
3876
|
+
style: { color: C ? "white" : "inherit" },
|
|
3870
3877
|
className: Te.sectionLabel,
|
|
3871
|
-
children: r(
|
|
3878
|
+
children: r(g)
|
|
3872
3879
|
}
|
|
3873
3880
|
)
|
|
3874
3881
|
},
|
|
@@ -3888,13 +3895,13 @@ const _e = ({
|
|
|
3888
3895
|
submitButtonStyles: a = { width: 325 },
|
|
3889
3896
|
showCategorySelector: c = !0,
|
|
3890
3897
|
defaultCategory: u = null,
|
|
3891
|
-
categoryLabel:
|
|
3892
|
-
activeCategory:
|
|
3898
|
+
categoryLabel: g = "Select Category",
|
|
3899
|
+
activeCategory: C = null,
|
|
3893
3900
|
activeCategoryColor: b = "#b32f5d",
|
|
3894
|
-
onSubmit:
|
|
3901
|
+
onSubmit: h = (v) => console.log("Form submitted with: ", v)
|
|
3895
3902
|
}) => {
|
|
3896
3903
|
const { t: v } = L(), { handleSubmit: y, control: _ } = i;
|
|
3897
|
-
|
|
3904
|
+
D(() => {
|
|
3898
3905
|
r && Ne.setState(() => ({ errorColor: r }));
|
|
3899
3906
|
}, [r]);
|
|
3900
3907
|
const m = he(() => d ? d.filter((k) => k.category).map((k) => {
|
|
@@ -3907,12 +3914,12 @@ const _e = ({
|
|
|
3907
3914
|
}) : [], [d]), f = (k) => {
|
|
3908
3915
|
const B = d == null ? void 0 : d.find((A) => A.categoryId === k);
|
|
3909
3916
|
return (B == null ? void 0 : B.subcategories) || [];
|
|
3910
|
-
}, [x, w] =
|
|
3911
|
-
|
|
3912
|
-
), [N, S] =
|
|
3913
|
-
|
|
3917
|
+
}, [x, w] = F(
|
|
3918
|
+
C || u || null
|
|
3919
|
+
), [N, S] = F(null);
|
|
3920
|
+
D(() => {
|
|
3914
3921
|
!x && m.length > 0 && w(m[0].id);
|
|
3915
|
-
}, [m, x]),
|
|
3922
|
+
}, [m, x]), D(() => {
|
|
3916
3923
|
const k = f(x);
|
|
3917
3924
|
!N && (k == null ? void 0 : k.length) > 0 && S(k[0].id);
|
|
3918
3925
|
}, [x, N, d]);
|
|
@@ -4007,7 +4014,7 @@ const _e = ({
|
|
|
4007
4014
|
)
|
|
4008
4015
|
] }, k.categoryId);
|
|
4009
4016
|
};
|
|
4010
|
-
return /* @__PURE__ */ p("form", { className: fe.formContainer, onSubmit: y(
|
|
4017
|
+
return /* @__PURE__ */ p("form", { className: fe.formContainer, onSubmit: y(h), children: [
|
|
4011
4018
|
c && m.length > 0 && /* @__PURE__ */ n("div", { className: fe.categorySelectorContainer, children: /* @__PURE__ */ n(
|
|
4012
4019
|
gt,
|
|
4013
4020
|
{
|
|
@@ -4205,16 +4212,16 @@ const D1 = "_switchContainer_194wl_2", F1 = "_labelRight_194wl_9", A1 = "_labelL
|
|
|
4205
4212
|
defValue: a = !1,
|
|
4206
4213
|
colorOn: c = "#5A514D",
|
|
4207
4214
|
disabled: u = !1,
|
|
4208
|
-
width:
|
|
4209
|
-
} = i, { t:
|
|
4215
|
+
width: g = 240
|
|
4216
|
+
} = i, { t: C } = L(), { control: b } = d || {}, [h, v] = F(a), y = (m) => {
|
|
4210
4217
|
v(m), s && s(m);
|
|
4211
|
-
}, _ = (m, f) => /* @__PURE__ */ p("div", { className: pe.switchContainer, style: { width: `${
|
|
4218
|
+
}, _ = (m, f) => /* @__PURE__ */ p("div", { className: pe.switchContainer, style: { width: `${g}px` }, children: [
|
|
4212
4219
|
r && /* @__PURE__ */ n(
|
|
4213
4220
|
"span",
|
|
4214
4221
|
{
|
|
4215
4222
|
className: pe.labelLeft,
|
|
4216
|
-
style: { width: `${(
|
|
4217
|
-
children:
|
|
4223
|
+
style: { width: `${(g - 74) / 2}px` },
|
|
4224
|
+
children: C(r)
|
|
4218
4225
|
}
|
|
4219
4226
|
),
|
|
4220
4227
|
/* @__PURE__ */ p("label", { className: `${pe.switch} ${u ? pe.disabled : ""}`, children: [
|
|
@@ -4237,7 +4244,7 @@ const D1 = "_switchContainer_194wl_2", F1 = "_labelRight_194wl_9", A1 = "_labelL
|
|
|
4237
4244
|
}
|
|
4238
4245
|
)
|
|
4239
4246
|
] }),
|
|
4240
|
-
l && /* @__PURE__ */ n("span", { className: pe.labelRight, style: { width: `${(
|
|
4247
|
+
l && /* @__PURE__ */ n("span", { className: pe.labelRight, style: { width: `${(g - 74) / 2}px` }, children: C(l) })
|
|
4241
4248
|
] });
|
|
4242
4249
|
return d ? /* @__PURE__ */ n(
|
|
4243
4250
|
we,
|
|
@@ -4247,7 +4254,7 @@ const D1 = "_switchContainer_194wl_2", F1 = "_labelRight_194wl_9", A1 = "_labelL
|
|
|
4247
4254
|
defaultValue: a,
|
|
4248
4255
|
render: ({ field: m }) => _(m.value, m.onChange)
|
|
4249
4256
|
}
|
|
4250
|
-
) : _(
|
|
4257
|
+
) : _(h, y);
|
|
4251
4258
|
};
|
|
4252
4259
|
R1.propTypes = {
|
|
4253
4260
|
input: e.shape({
|
|
@@ -4290,7 +4297,7 @@ const z1 = "_container_gnwec_2", H1 = "_burger_gnwec_6", K1 = "_menu_gnwec_41",
|
|
|
4290
4297
|
button: G1,
|
|
4291
4298
|
active: Y1
|
|
4292
4299
|
}, qt = ({ options: i, backgroundColor: d, textColor: s, iconColor: o }) => {
|
|
4293
|
-
const [t, r] =
|
|
4300
|
+
const [t, r] = F(!1), l = () => r(!t), a = () => r(!1), c = 7, u = t ? 11 : 0, g = t ? 13 : 0, C = t ? -11.51666 : 0, b = t ? -13 : 0;
|
|
4294
4301
|
return /* @__PURE__ */ p("div", { className: Q.container, children: [
|
|
4295
4302
|
/* @__PURE__ */ n("button", { onClick: l, className: Q.burger, children: /* @__PURE__ */ p("svg", { width: "40", height: "40", viewBox: "0 0 40 40", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: [
|
|
4296
4303
|
/* @__PURE__ */ n(
|
|
@@ -4309,7 +4316,7 @@ const z1 = "_container_gnwec_2", H1 = "_burger_gnwec_6", K1 = "_menu_gnwec_41",
|
|
|
4309
4316
|
"g",
|
|
4310
4317
|
{
|
|
4311
4318
|
style: {
|
|
4312
|
-
transform: `translate(${
|
|
4319
|
+
transform: `translate(${g}px,${C}px)`,
|
|
4313
4320
|
transition: "transform 0.8s cubic-bezier(0.42, 0, 0.58, 1)",
|
|
4314
4321
|
transformBox: "fill-box",
|
|
4315
4322
|
transformOrigin: "0 0"
|
|
@@ -4321,7 +4328,7 @@ const z1 = "_container_gnwec_2", H1 = "_burger_gnwec_6", K1 = "_menu_gnwec_41",
|
|
|
4321
4328
|
"g",
|
|
4322
4329
|
{
|
|
4323
4330
|
style: {
|
|
4324
|
-
transform: `translate(${b}px,${
|
|
4331
|
+
transform: `translate(${b}px,${C}px)`,
|
|
4325
4332
|
transition: "transform 0.8s cubic-bezier(0.42, 0, 0.58, 1)",
|
|
4326
4333
|
transformBox: "fill-box",
|
|
4327
4334
|
transformOrigin: "0 0"
|
|
@@ -4357,25 +4364,29 @@ const z1 = "_container_gnwec_2", H1 = "_burger_gnwec_6", K1 = "_menu_gnwec_41",
|
|
|
4357
4364
|
{
|
|
4358
4365
|
className: Q.menu,
|
|
4359
4366
|
style: { backgroundColor: d, color: s },
|
|
4360
|
-
children: /* @__PURE__ */ n("ul", { className: Q.list, children: i.map((
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
|
|
4373
|
-
|
|
4374
|
-
|
|
4375
|
-
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4367
|
+
children: /* @__PURE__ */ n("ul", { className: Q.list, children: i.map((h, v) => /* @__PURE__ */ p("li", { className: Q.item, children: [
|
|
4368
|
+
h.url && /* @__PURE__ */ n(
|
|
4369
|
+
ft,
|
|
4370
|
+
{
|
|
4371
|
+
to: h.url,
|
|
4372
|
+
className: ({ isActive: y }) => `${Q.link} ${y ? Q.active : ""}`,
|
|
4373
|
+
onClick: a,
|
|
4374
|
+
style: { color: s },
|
|
4375
|
+
children: h.name
|
|
4376
|
+
}
|
|
4377
|
+
),
|
|
4378
|
+
h.onclick && /* @__PURE__ */ n(
|
|
4379
|
+
"button",
|
|
4380
|
+
{
|
|
4381
|
+
className: Q.button,
|
|
4382
|
+
onClick: () => {
|
|
4383
|
+
h.onclick && h.onclick(), a();
|
|
4384
|
+
},
|
|
4385
|
+
children: h.name
|
|
4386
|
+
}
|
|
4387
|
+
),
|
|
4388
|
+
h.component && h.component
|
|
4389
|
+
] }, v)) })
|
|
4379
4390
|
}
|
|
4380
4391
|
)
|
|
4381
4392
|
] });
|
|
@@ -4383,9 +4394,10 @@ const z1 = "_container_gnwec_2", H1 = "_burger_gnwec_6", K1 = "_menu_gnwec_41",
|
|
|
4383
4394
|
qt.propTypes = {
|
|
4384
4395
|
options: e.arrayOf(
|
|
4385
4396
|
e.shape({
|
|
4386
|
-
name: e.string
|
|
4397
|
+
name: e.string,
|
|
4387
4398
|
url: e.string,
|
|
4388
|
-
onclick: e.func
|
|
4399
|
+
onclick: e.func,
|
|
4400
|
+
component: e.any
|
|
4389
4401
|
})
|
|
4390
4402
|
).isRequired,
|
|
4391
4403
|
backgroundColor: e.string,
|