@tmf_ciclica/ciclicastorybook 1.2.10 → 1.2.12
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 +525 -519
- package/package.json +3 -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
|
|
4
|
+
import D, { useState as A, useEffect as F, 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: g, id:
|
|
47
|
+
const { name: u, created_at: g, id: m, 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(m), children: [
|
|
55
55
|
/* @__PURE__ */ p("div", { className: ge.ambitName, children: [
|
|
56
56
|
/* @__PURE__ */ n(
|
|
57
57
|
"img",
|
|
@@ -66,9 +66,9 @@ const r2 = "_ambitSelector_mcunf_2", a2 = "_header_mcunf_13", l2 = "_nameDateCon
|
|
|
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(m), disabled: i.is_default, children: /* @__PURE__ */ n("img", { src: v2 }) }),
|
|
70
|
+
/* @__PURE__ */ n("button", { onClick: () => d(m), children: /* @__PURE__ */ n("img", { src: _2 }) }),
|
|
71
|
+
/* @__PURE__ */ n("button", { onClick: () => s(m), disabled: i.is_default, children: /* @__PURE__ */ n("img", { src: y2 }) })
|
|
72
72
|
] })
|
|
73
73
|
]
|
|
74
74
|
}
|
|
@@ -129,19 +129,19 @@ 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: g = (
|
|
133
|
-
onCLickDelete:
|
|
134
|
-
onClickFilters: b = (
|
|
135
|
-
onClickAmbit: h = (
|
|
132
|
+
onClickCopy: g = (_) => console.log(`Copy ambit: ${_}`),
|
|
133
|
+
onCLickDelete: m = (_) => console.log(`Delete ambit: ${_}`),
|
|
134
|
+
onClickFilters: b = (_) => console.log(`Filters clicked: ${_}`),
|
|
135
|
+
onClickAmbit: h = (_) => console.log(`OnCLickAmbit: ${_}`)
|
|
136
136
|
}) => {
|
|
137
|
-
const { t:
|
|
138
|
-
|
|
139
|
-
i &&
|
|
137
|
+
const { t: _ } = L(), [v, y] = A(i);
|
|
138
|
+
F(() => {
|
|
139
|
+
i && y(i);
|
|
140
140
|
}, [i]);
|
|
141
|
-
const
|
|
142
|
-
if (
|
|
143
|
-
let
|
|
144
|
-
|
|
141
|
+
const f = (C) => {
|
|
142
|
+
if (v && v.length > 0) {
|
|
143
|
+
let N = [...v];
|
|
144
|
+
N.sort((w, x) => w[C].localeCompare(x[C])), y(N);
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
return /* @__PURE__ */ p(
|
|
@@ -157,12 +157,12 @@ const Je = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
157
157
|
style: { borderBottom: `1px solid ${s}` },
|
|
158
158
|
children: [
|
|
159
159
|
/* @__PURE__ */ p("div", { className: Y.nameDateContainer, children: [
|
|
160
|
-
/* @__PURE__ */ n("div", { className: Y.ambitName, children: /* @__PURE__ */ p("button", { onClick: () =>
|
|
161
|
-
/* @__PURE__ */ n("span", { children:
|
|
160
|
+
/* @__PURE__ */ n("div", { className: Y.ambitName, children: /* @__PURE__ */ p("button", { onClick: () => f("name"), children: [
|
|
161
|
+
/* @__PURE__ */ n("span", { children: _(t) }),
|
|
162
162
|
/* @__PURE__ */ n("img", { src: Je })
|
|
163
163
|
] }) }),
|
|
164
|
-
/* @__PURE__ */ n("div", { className: Y.ambitDate, children: /* @__PURE__ */ p("button", { onClick: () =>
|
|
165
|
-
/* @__PURE__ */ n("span", { children:
|
|
164
|
+
/* @__PURE__ */ n("div", { className: Y.ambitDate, children: /* @__PURE__ */ p("button", { onClick: () => f("date"), children: [
|
|
165
|
+
/* @__PURE__ */ n("span", { children: _(r) }),
|
|
166
166
|
/* @__PURE__ */ n("img", { src: Je })
|
|
167
167
|
] }) })
|
|
168
168
|
] }),
|
|
@@ -170,19 +170,19 @@ const Je = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
170
170
|
]
|
|
171
171
|
}
|
|
172
172
|
),
|
|
173
|
-
/* @__PURE__ */ n("div", { className: Y.ambitListContainer, children:
|
|
173
|
+
/* @__PURE__ */ n("div", { className: Y.ambitListContainer, children: v && v.length > 0 && v.map((C) => /* @__PURE__ */ n(
|
|
174
174
|
bt,
|
|
175
175
|
{
|
|
176
|
-
isActive: d ==
|
|
177
|
-
ambit:
|
|
176
|
+
isActive: d == C.id,
|
|
177
|
+
ambit: C,
|
|
178
178
|
fontColor: s,
|
|
179
179
|
activeColor: o,
|
|
180
180
|
onClickCopy: g,
|
|
181
|
-
onClickDelete:
|
|
181
|
+
onClickDelete: m,
|
|
182
182
|
onClickFilters: b,
|
|
183
183
|
onClickAmbit: h
|
|
184
184
|
},
|
|
185
|
-
`ambitKey${
|
|
185
|
+
`ambitKey${C.id}`
|
|
186
186
|
)) }),
|
|
187
187
|
/* @__PURE__ */ n("div", { className: Y.newAmbitButtonContainer, children: /* @__PURE__ */ n(
|
|
188
188
|
Fe,
|
|
@@ -190,7 +190,7 @@ const Je = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
190
190
|
style: { ...a },
|
|
191
191
|
onClick: u,
|
|
192
192
|
borderColor: "grey",
|
|
193
|
-
children:
|
|
193
|
+
children: _(l)
|
|
194
194
|
}
|
|
195
195
|
) })
|
|
196
196
|
]
|
|
@@ -258,13 +258,13 @@ const q2 = ({
|
|
|
258
258
|
const {
|
|
259
259
|
icon: u,
|
|
260
260
|
activeIcon: g,
|
|
261
|
-
isActive:
|
|
261
|
+
isActive: m,
|
|
262
262
|
name: b,
|
|
263
263
|
onClick: h,
|
|
264
|
-
disabled:
|
|
265
|
-
} = a,
|
|
264
|
+
disabled: _
|
|
265
|
+
} = a, v = /* @__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: m ? 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: [
|
|
@@ -273,9 +273,9 @@ const q2 = ({
|
|
|
273
273
|
{
|
|
274
274
|
onClick: h,
|
|
275
275
|
className: `${ee.button}
|
|
276
|
-
${
|
|
277
|
-
disabled:
|
|
278
|
-
children:
|
|
276
|
+
${m && ee.active}`,
|
|
277
|
+
disabled: _,
|
|
278
|
+
children: v
|
|
279
279
|
}
|
|
280
280
|
),
|
|
281
281
|
t && /* @__PURE__ */ n(re, { text: b, position: r })
|
|
@@ -321,7 +321,7 @@ const P2 = "_indicatorsCategory_11gdl_2", E2 = "_title_11gdl_6", j2 = "_mainTitl
|
|
|
321
321
|
titleMarginChildren: u = 15,
|
|
322
322
|
mainTitle: g = !1
|
|
323
323
|
}) => {
|
|
324
|
-
const { t:
|
|
324
|
+
const { t: m } = L();
|
|
325
325
|
return /* @__PURE__ */ p(
|
|
326
326
|
Ge.div,
|
|
327
327
|
{
|
|
@@ -346,7 +346,7 @@ const P2 = "_indicatorsCategory_11gdl_2", E2 = "_title_11gdl_6", j2 = "_mainTitl
|
|
|
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: m(r) })
|
|
350
350
|
]
|
|
351
351
|
}
|
|
352
352
|
),
|
|
@@ -382,7 +382,7 @@ const Ss = () => /* @__PURE__ */ n("div", { children: "EditAmbit" }), Z2 = "data
|
|
|
382
382
|
const { t: a } = L(), { tematicalFiltersSelected: c, activeFiltersType: u } = M((b) => b), g = (b) => {
|
|
383
383
|
M.setState((h) => ({
|
|
384
384
|
tematicalFiltersSelected: h.tematicalFiltersSelected.filter(
|
|
385
|
-
(
|
|
385
|
+
(_) => _.code !== b
|
|
386
386
|
)
|
|
387
387
|
}));
|
|
388
388
|
};
|
|
@@ -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((m) => m), u = () => {
|
|
433
433
|
a == "geographical" ? M.setState(() => ({ activeFiltersType: null })) : M.setState(() => ({ activeFiltersType: "geographical" }));
|
|
434
|
-
}, g = (
|
|
434
|
+
}, g = (m) => {
|
|
435
435
|
M.setState((b) => ({
|
|
436
436
|
geoLayers: b.geoLayers.map((h) => ({
|
|
437
437
|
...h,
|
|
438
|
-
active: h.name ===
|
|
438
|
+
active: h.name === m.name
|
|
439
439
|
}))
|
|
440
440
|
})), r(c);
|
|
441
441
|
};
|
|
442
|
-
return
|
|
442
|
+
return F(() => {
|
|
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((m) => /* @__PURE__ */ p(
|
|
454
454
|
"div",
|
|
455
455
|
{
|
|
456
456
|
className: `${tt.layerName}`,
|
|
457
|
-
style: { color:
|
|
458
|
-
onClick: () => g(
|
|
457
|
+
style: { color: m.active ? t : s, fontWeight: m.active ? "bold" : "normal" },
|
|
458
|
+
onClick: () => g(m),
|
|
459
459
|
children: [
|
|
460
|
-
l(
|
|
461
|
-
|
|
460
|
+
l(m.name),
|
|
461
|
+
m.active
|
|
462
462
|
]
|
|
463
463
|
}
|
|
464
464
|
)) })
|
|
@@ -573,8 +573,8 @@ let ze = function(i) {
|
|
|
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 m = c[0] - t.startPosition[0], b = c[1] - t.startPosition[1];
|
|
577
|
+
t.isScrolling = Math.abs(b) > Math.abs(m);
|
|
578
578
|
}
|
|
579
579
|
if (t.isScrolling) return void t.setState({ index: -1 });
|
|
580
580
|
const u = t.getDiffPosition(c[0]), g = t.getValueFromPosition(u);
|
|
@@ -642,17 +642,17 @@ let ze = function(i) {
|
|
|
642
642
|
}, t.renderThumb = (a, c) => {
|
|
643
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 && (g["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : 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 }, m = { 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(m)), t.props.renderThumb(g, m);
|
|
647
647
|
}, t.renderTrack = (a, c, u) => {
|
|
648
|
-
const g = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(c, t.state.upperBound - u) },
|
|
649
|
-
return t.props.renderTrack(g,
|
|
648
|
+
const g = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(c, t.state.upperBound - u) }, m = { index: a, value: Se(t.state.value) };
|
|
649
|
+
return t.props.renderTrack(g, m);
|
|
650
650
|
};
|
|
651
651
|
let r = Re(o.value);
|
|
652
652
|
r.length || (r = Re(o.defaultValue)), t.pendingResizeTimeouts = [];
|
|
653
653
|
const l = [];
|
|
654
654
|
for (let a = 0; a < r.length; a += 1) r[a] = te(r[a], o), l.push(a);
|
|
655
|
-
return t.resizeObserver = null, t.resizeElementRef =
|
|
655
|
+
return t.resizeObserver = null, t.resizeElementRef = D.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: r, zIndices: l }, t;
|
|
656
656
|
}
|
|
657
657
|
Y2(d, i);
|
|
658
658
|
var s = d.prototype;
|
|
@@ -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()], g = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()],
|
|
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()], m = a - g, b = Math.abs(c - u);
|
|
705
|
+
this.state.upperBound === m && this.state.sliderLength === b && this.state.thumbSize === g || this.setState({ upperBound: m, 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: g, minDistance:
|
|
744
|
+
const { pearling: c, max: u, min: g, minDistance: m } = this.props;
|
|
745
745
|
if (!c) {
|
|
746
746
|
if (r > 0) {
|
|
747
747
|
const b = t[r - 1];
|
|
748
|
-
o < b +
|
|
748
|
+
o < b + m && (o = b + m);
|
|
749
749
|
}
|
|
750
750
|
if (r < l - 1) {
|
|
751
751
|
const b = t[r + 1];
|
|
752
|
-
o > b -
|
|
752
|
+
o > b - m && (o = b - m);
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
-
t[r] = o, c && l > 1 && (o > a ? (this.pushSucceeding(t,
|
|
756
|
-
for (let
|
|
757
|
-
const
|
|
758
|
-
h[b - 1 -
|
|
755
|
+
t[r] = o, c && l > 1 && (o > a ? (this.pushSucceeding(t, m, r), function(b, h, _, v) {
|
|
756
|
+
for (let y = 0; y < b; y += 1) {
|
|
757
|
+
const f = v - y * _;
|
|
758
|
+
h[b - 1 - y] > f && (h[b - 1 - y] = f);
|
|
759
759
|
}
|
|
760
|
-
}(l, t,
|
|
761
|
-
for (let
|
|
762
|
-
const
|
|
763
|
-
h[
|
|
760
|
+
}(l, t, m, u)) : o < a && (this.pushPreceding(t, m, r), function(b, h, _, v) {
|
|
761
|
+
for (let y = 0; y < b; y += 1) {
|
|
762
|
+
const f = v + y * _;
|
|
763
|
+
h[y] < f && (h[y] = f);
|
|
764
764
|
}
|
|
765
|
-
}(l, t,
|
|
765
|
+
}(l, t, m, 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);
|
|
@@ -811,12 +811,12 @@ let ze = function(i) {
|
|
|
811
811
|
const o = [], { value: t } = this.state, r = t.length;
|
|
812
812
|
for (let u = 0; u < r; u += 1) o[u] = this.calcOffset(t[u], u);
|
|
813
813
|
const l = this.props.withTracks ? this.renderTracks(o) : null, a = this.renderThumbs(o), c = this.props.marks ? this.renderMarks() : null;
|
|
814
|
-
return
|
|
814
|
+
return D.createElement("div", { ref: (u) => {
|
|
815
815
|
this.slider = u, this.resizeElementRef.current = u;
|
|
816
816
|
}, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, l, a, c);
|
|
817
817
|
}, d;
|
|
818
|
-
}(
|
|
819
|
-
ze.displayName = "ReactSlider", ze.defaultProps = { min: 0, max: 100, step: 1, pageFn: (i) => 10 * i, minDistance: 0, defaultValue: 0, orientation: "horizontal", className: "slider", thumbClassName: "thumb", thumbActiveClassName: "active", trackClassName: "track", markClassName: "mark", withTracks: !0, pearling: !1, disabled: !1, snapDragDisabled: !1, invert: !1, marks: [], renderThumb: (i) =>
|
|
818
|
+
}(D.Component);
|
|
819
|
+
ze.displayName = "ReactSlider", ze.defaultProps = { min: 0, max: 100, step: 1, pageFn: (i) => 10 * i, minDistance: 0, defaultValue: 0, orientation: "horizontal", className: "slider", thumbClassName: "thumb", thumbActiveClassName: "active", trackClassName: "track", markClassName: "mark", withTracks: !0, pearling: !1, disabled: !1, snapDragDisabled: !1, invert: !1, marks: [], renderThumb: (i) => D.createElement("div", i), renderTrack: (i) => D.createElement("div", i), renderMark: (i) => D.createElement("span", i) };
|
|
820
820
|
var He = ze;
|
|
821
821
|
const X2 = "_container_4u41i_2", Q2 = "_unitLabel_4u41i_8", J2 = "_slider_4u41i_11", e0 = "_thumb_4u41i_17", t0 = "_track_4u41i_26", n0 = "_labels_4u41i_32", ce = {
|
|
822
822
|
container: X2,
|
|
@@ -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(), g = c ? new Date(i).getTime() : null,
|
|
840
|
-
h(
|
|
839
|
+
const { t: u } = L(), g = c ? new Date(i).getTime() : null, m = c ? new Date(d).getTime() : null, [b, h] = A(c ? [g, m] : [i, d]), _ = (v) => {
|
|
840
|
+
h(v), o == null || o({ min: v[0], max: v[1] });
|
|
841
841
|
};
|
|
842
|
-
return
|
|
843
|
-
a || h(c ? [g,
|
|
842
|
+
return F(() => {
|
|
843
|
+
a || h(c ? [g, m] : [i, d]);
|
|
844
844
|
}, [a, c]), /* @__PURE__ */ p(
|
|
845
845
|
"div",
|
|
846
846
|
{
|
|
@@ -855,10 +855,10 @@ const X2 = "_container_4u41i_2", Q2 = "_unitLabel_4u41i_8", J2 = "_slider_4u41i_
|
|
|
855
855
|
thumbClassName: ce.thumb,
|
|
856
856
|
trackClassName: ce.track,
|
|
857
857
|
min: c ? g : i,
|
|
858
|
-
max: c ?
|
|
859
|
-
step: c ? (
|
|
858
|
+
max: c ? m : d,
|
|
859
|
+
step: c ? (m - g) / 30 : s,
|
|
860
860
|
value: b,
|
|
861
|
-
onAfterChange:
|
|
861
|
+
onAfterChange: _,
|
|
862
862
|
withTracks: !0,
|
|
863
863
|
pearling: !c,
|
|
864
864
|
minDistance: c ? 0 : 0.1
|
|
@@ -902,7 +902,7 @@ const i0 = "_tematicalFiltersInputContainer_1vm1r_2", s0 = "_inputTypeContainer_
|
|
|
902
902
|
//onChangeBothType
|
|
903
903
|
activeColor: d
|
|
904
904
|
}) => {
|
|
905
|
-
const [s, o] =
|
|
905
|
+
const [s, o] = A(), {
|
|
906
906
|
type: t,
|
|
907
907
|
name: r,
|
|
908
908
|
values: l,
|
|
@@ -910,24 +910,24 @@ const i0 = "_tematicalFiltersInputContainer_1vm1r_2", s0 = "_inputTypeContainer_
|
|
|
910
910
|
maxValue: c,
|
|
911
911
|
unit: u,
|
|
912
912
|
step: g,
|
|
913
|
-
disabled:
|
|
913
|
+
disabled: m,
|
|
914
914
|
isDate: b
|
|
915
915
|
} = i || {}, h = he(
|
|
916
916
|
() => t == "cat" || s == "cat",
|
|
917
917
|
[s, t]
|
|
918
|
-
),
|
|
918
|
+
), _ = he(
|
|
919
919
|
() => t == "abs" || s == "abs",
|
|
920
920
|
[s, t]
|
|
921
921
|
), {
|
|
922
|
-
tematicalFiltersSelected:
|
|
923
|
-
selectedIndicator:
|
|
924
|
-
fontColor:
|
|
925
|
-
inputsColor:
|
|
926
|
-
} = M((
|
|
927
|
-
if (
|
|
928
|
-
const { min: S, max: $, valueClicked: k, allValues: B } =
|
|
929
|
-
let Z =
|
|
930
|
-
H == "both" && (Z = j == "cat" ?
|
|
922
|
+
tematicalFiltersSelected: v,
|
|
923
|
+
selectedIndicator: y,
|
|
924
|
+
fontColor: f,
|
|
925
|
+
inputsColor: C
|
|
926
|
+
} = M((x) => x), N = (x) => {
|
|
927
|
+
if (x) {
|
|
928
|
+
const { min: S, max: $, valueClicked: k, allValues: B } = x || {}, { code: V, type: H, source: T } = i || {}, j = _ ? "abs" : h ? "cat" : "both";
|
|
929
|
+
let Z = V[0];
|
|
930
|
+
H == "both" && (Z = j == "cat" ? V[1] : V[0]), j == "cat" ? M.setState((J) => {
|
|
931
931
|
let G = J.tematicalFiltersSelected.find(
|
|
932
932
|
(q) => q.code === Z
|
|
933
933
|
);
|
|
@@ -948,7 +948,7 @@ const i0 = "_tematicalFiltersInputContainer_1vm1r_2", s0 = "_inputTypeContainer_
|
|
|
948
948
|
let q = B.map((E, Pt) => Pt);
|
|
949
949
|
return {
|
|
950
950
|
tematicalFiltersSelected: [
|
|
951
|
-
...
|
|
951
|
+
...v,
|
|
952
952
|
{
|
|
953
953
|
type: "cat",
|
|
954
954
|
code: Z,
|
|
@@ -980,7 +980,7 @@ const i0 = "_tematicalFiltersInputContainer_1vm1r_2", s0 = "_inputTypeContainer_
|
|
|
980
980
|
} else
|
|
981
981
|
return {
|
|
982
982
|
tematicalFiltersSelected: [
|
|
983
|
-
...
|
|
983
|
+
...v,
|
|
984
984
|
{
|
|
985
985
|
type: j,
|
|
986
986
|
code: Z,
|
|
@@ -994,39 +994,39 @@ const i0 = "_tematicalFiltersInputContainer_1vm1r_2", s0 = "_inputTypeContainer_
|
|
|
994
994
|
});
|
|
995
995
|
}
|
|
996
996
|
}, w = he(() => {
|
|
997
|
-
const
|
|
998
|
-
if ((
|
|
999
|
-
for (const S of
|
|
1000
|
-
S.type === "cat" ?
|
|
1001
|
-
return
|
|
1002
|
-
}, [
|
|
997
|
+
const x = {};
|
|
998
|
+
if ((v == null ? void 0 : v.length) > 0)
|
|
999
|
+
for (const S of v)
|
|
1000
|
+
S.type === "cat" ? x[S.code] = new Set(S.values) : x[S.code] = [S.min, S.max];
|
|
1001
|
+
return x;
|
|
1002
|
+
}, [v]);
|
|
1003
1003
|
return /* @__PURE__ */ n("div", { className: Be.tematicalFiltersInputContainer, children: /* @__PURE__ */ p(
|
|
1004
1004
|
le,
|
|
1005
1005
|
{
|
|
1006
1006
|
titleFontStyles: {
|
|
1007
1007
|
fontSize: 16,
|
|
1008
1008
|
fontWeight: 400,
|
|
1009
|
-
opacity:
|
|
1009
|
+
opacity: m ? 0.5 : 1
|
|
1010
1010
|
},
|
|
1011
1011
|
title: r,
|
|
1012
|
-
isOpen:
|
|
1012
|
+
isOpen: y == `id${r}`,
|
|
1013
1013
|
onClick: () => {
|
|
1014
|
-
|
|
1015
|
-
selectedIndicator:
|
|
1014
|
+
m || M.setState(() => ({
|
|
1015
|
+
selectedIndicator: y == `id${r}` ? "" : `id${r}`
|
|
1016
1016
|
}));
|
|
1017
1017
|
},
|
|
1018
1018
|
showBottomBar: !1,
|
|
1019
1019
|
height: 42,
|
|
1020
1020
|
titleMarginChildren: 14,
|
|
1021
1021
|
className: "tematicalFiltersInputContainer",
|
|
1022
|
-
color:
|
|
1022
|
+
color: f,
|
|
1023
1023
|
activeColor: d,
|
|
1024
1024
|
children: [
|
|
1025
1025
|
t == "both" && /* @__PURE__ */ p(
|
|
1026
1026
|
"div",
|
|
1027
1027
|
{
|
|
1028
1028
|
className: Be.inputTypeContainer,
|
|
1029
|
-
style: { color:
|
|
1029
|
+
style: { color: f },
|
|
1030
1030
|
children: [
|
|
1031
1031
|
/* @__PURE__ */ p("label", { children: [
|
|
1032
1032
|
/* @__PURE__ */ n(
|
|
@@ -1040,8 +1040,8 @@ const i0 = "_tematicalFiltersInputContainer_1vm1r_2", s0 = "_inputTypeContainer_
|
|
|
1040
1040
|
},
|
|
1041
1041
|
style: {
|
|
1042
1042
|
marginRight: 4,
|
|
1043
|
-
backgroundColor: s == "abs" ?
|
|
1044
|
-
border: `1.5px solid ${s == "abs" ?
|
|
1043
|
+
backgroundColor: s == "abs" ? C : "white",
|
|
1044
|
+
border: `1.5px solid ${s == "abs" ? C : f}`
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
),
|
|
@@ -1059,8 +1059,8 @@ const i0 = "_tematicalFiltersInputContainer_1vm1r_2", s0 = "_inputTypeContainer_
|
|
|
1059
1059
|
},
|
|
1060
1060
|
style: {
|
|
1061
1061
|
marginRight: 4,
|
|
1062
|
-
backgroundColor: s == "cat" ?
|
|
1063
|
-
border: `1.5px solid ${s == "cat" ?
|
|
1062
|
+
backgroundColor: s == "cat" ? C : "white",
|
|
1063
|
+
border: `1.5px solid ${s == "cat" ? C : f}`
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
1066
|
),
|
|
@@ -1069,22 +1069,22 @@ const i0 = "_tematicalFiltersInputContainer_1vm1r_2", s0 = "_inputTypeContainer_
|
|
|
1069
1069
|
]
|
|
1070
1070
|
}
|
|
1071
1071
|
),
|
|
1072
|
-
h && /* @__PURE__ */ n("div", { className: Be.checkboxContainer, children: l.map((
|
|
1072
|
+
h && /* @__PURE__ */ n("div", { className: Be.checkboxContainer, children: l.map((x, S) => {
|
|
1073
1073
|
var $;
|
|
1074
1074
|
return /* @__PURE__ */ n(
|
|
1075
1075
|
vt,
|
|
1076
1076
|
{
|
|
1077
|
-
onClick: () =>
|
|
1078
|
-
indicator:
|
|
1077
|
+
onClick: () => N({ valueClicked: S, allValues: l }),
|
|
1078
|
+
indicator: x,
|
|
1079
1079
|
value: (($ = w[i.code[t == "both" ? 1 : 0]]) == null ? void 0 : $.has(S)) || !w[i.code[t == "both" ? 1 : 0]]
|
|
1080
1080
|
},
|
|
1081
1081
|
`checkbox-${S}`
|
|
1082
1082
|
);
|
|
1083
1083
|
}) }),
|
|
1084
|
-
(
|
|
1084
|
+
(_ || t == "glb") && /* @__PURE__ */ n("div", { className: Be.absoluteSliderContainer, children: /* @__PURE__ */ n(
|
|
1085
1085
|
wt,
|
|
1086
1086
|
{
|
|
1087
|
-
onChange:
|
|
1087
|
+
onChange: N,
|
|
1088
1088
|
min: a,
|
|
1089
1089
|
max: c,
|
|
1090
1090
|
unit: u,
|
|
@@ -1219,10 +1219,10 @@ const kt = ({
|
|
|
1219
1219
|
activeColor: r
|
|
1220
1220
|
}) => {
|
|
1221
1221
|
const { tematicalFiltersSelected: l, activeFiltersType: a } = M((g) => g), { t: c } = L();
|
|
1222
|
-
|
|
1223
|
-
}, [l]),
|
|
1222
|
+
F(() => {
|
|
1223
|
+
}, [l]), F(() => {
|
|
1224
1224
|
o && M.setState(() => ({ fontColor: o }));
|
|
1225
|
-
}, [o]),
|
|
1225
|
+
}, [o]), F(() => {
|
|
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((g,
|
|
1240
|
+
children: i == null ? void 0 : i.map((g, m) => /* @__PURE__ */ n(
|
|
1241
1241
|
Nt,
|
|
1242
1242
|
{
|
|
1243
1243
|
category: g,
|
|
1244
1244
|
fontColor: o,
|
|
1245
1245
|
activeColor: r
|
|
1246
1246
|
},
|
|
1247
|
-
`category-${
|
|
1247
|
+
`category-${m}`
|
|
1248
1248
|
))
|
|
1249
1249
|
}
|
|
1250
1250
|
);
|
|
@@ -1278,47 +1278,47 @@ const a0 = "_FiltersAmbitContainer_bp6cj_2", l0 = "_FiltersAmbitHeader_bp6cj_15"
|
|
|
1278
1278
|
saveAmbit: c,
|
|
1279
1279
|
namePlaceholder: u,
|
|
1280
1280
|
descPlaceholder: g,
|
|
1281
|
-
filtersTypes:
|
|
1281
|
+
filtersTypes: m = ["geographical", "tematical"],
|
|
1282
1282
|
nameRequiredText: b,
|
|
1283
1283
|
geoFilterLayers: h = [],
|
|
1284
|
-
onGeoLayersChange:
|
|
1285
|
-
onlyFilters:
|
|
1284
|
+
onGeoLayersChange: _,
|
|
1285
|
+
onlyFilters: v = !1,
|
|
1286
1286
|
//usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
|
|
1287
|
-
descriptionRequired:
|
|
1287
|
+
descriptionRequired: y = !1
|
|
1288
1288
|
//campo descripción required
|
|
1289
1289
|
}) => {
|
|
1290
|
-
const { t:
|
|
1291
|
-
|
|
1290
|
+
const { t: f } = L(), { tematicalFiltersSelected: C, activeFiltersType: N, geoLayers: w } = M((T) => T), [x, S] = A(i || null), [$, k] = A(d || null), [B, V] = A(!1);
|
|
1291
|
+
F(() => {
|
|
1292
1292
|
s && s.length > 0 && M.setState((T) => ({
|
|
1293
1293
|
tematicalFiltersSelected: s
|
|
1294
1294
|
}));
|
|
1295
|
-
}, [s]),
|
|
1296
|
-
|
|
1297
|
-
}, [h]),
|
|
1298
|
-
a(
|
|
1299
|
-
}, [
|
|
1295
|
+
}, [s]), F(() => {
|
|
1296
|
+
m.includes("geographical") && w != h && M.setState({ geoLayers: h });
|
|
1297
|
+
}, [h]), F(() => {
|
|
1298
|
+
a(C);
|
|
1299
|
+
}, [C]);
|
|
1300
1300
|
const H = () => {
|
|
1301
|
-
|
|
1301
|
+
y ? x && $ ? c({ name: x, description: $ }) : V(!0) : x ? c({ name: x, description: $ }) : V(!0);
|
|
1302
1302
|
};
|
|
1303
|
-
return
|
|
1304
|
-
|
|
1303
|
+
return F(() => {
|
|
1304
|
+
m.includes("geographical") && N != "geographical" && w.length > 0 && M.setState((T) => ({
|
|
1305
1305
|
geoLayers: T.geoLayers.map((j) => ({
|
|
1306
1306
|
...j,
|
|
1307
1307
|
active: !1
|
|
1308
1308
|
}))
|
|
1309
1309
|
}));
|
|
1310
|
-
}, [
|
|
1310
|
+
}, [N]), /* @__PURE__ */ p("div", { className: ne.FiltersAmbitContainer, children: [
|
|
1311
1311
|
/* @__PURE__ */ p("div", { children: [
|
|
1312
|
-
!
|
|
1312
|
+
!v && /* @__PURE__ */ p("div", { className: ne.FiltersAmbitHeader, children: [
|
|
1313
1313
|
/* @__PURE__ */ n("div", { className: ne.FiltersAmbitTitle, children: /* @__PURE__ */ n(
|
|
1314
1314
|
"input",
|
|
1315
1315
|
{
|
|
1316
1316
|
type: "text",
|
|
1317
1317
|
onChange: (T) => {
|
|
1318
|
-
|
|
1318
|
+
V(!1), S(T.target.value);
|
|
1319
1319
|
},
|
|
1320
|
-
value:
|
|
1321
|
-
placeholder:
|
|
1320
|
+
value: x,
|
|
1321
|
+
placeholder: f(u)
|
|
1322
1322
|
}
|
|
1323
1323
|
) }),
|
|
1324
1324
|
/* @__PURE__ */ n("div", { className: ne.FiltersAmbitDescription, children: /* @__PURE__ */ n("div", { className: ne.FiltersAmbitDescriptionTitle, children: /* @__PURE__ */ n(
|
|
@@ -1326,31 +1326,31 @@ const a0 = "_FiltersAmbitContainer_bp6cj_2", l0 = "_FiltersAmbitHeader_bp6cj_15"
|
|
|
1326
1326
|
{
|
|
1327
1327
|
value: $,
|
|
1328
1328
|
onChange: (T) => {
|
|
1329
|
-
|
|
1329
|
+
y && V(!1), k(T.target.value);
|
|
1330
1330
|
},
|
|
1331
|
-
placeholder:
|
|
1331
|
+
placeholder: f(g)
|
|
1332
1332
|
}
|
|
1333
1333
|
) }) })
|
|
1334
1334
|
] }),
|
|
1335
1335
|
/* @__PURE__ */ n(
|
|
1336
1336
|
yt,
|
|
1337
1337
|
{
|
|
1338
|
-
title:
|
|
1339
|
-
isOpen:
|
|
1338
|
+
title: f("applied_filters"),
|
|
1339
|
+
isOpen: N == "applied",
|
|
1340
1340
|
textColor: r || "#fff",
|
|
1341
1341
|
backgroundColor: l || "#605B5680",
|
|
1342
1342
|
activeColor: t
|
|
1343
1343
|
}
|
|
1344
1344
|
),
|
|
1345
|
-
|
|
1345
|
+
m.includes("geographical") && /* @__PURE__ */ n(
|
|
1346
1346
|
_t,
|
|
1347
1347
|
{
|
|
1348
1348
|
title: "geo_filters",
|
|
1349
1349
|
activeColor: t,
|
|
1350
|
-
onGeoLayersChange:
|
|
1350
|
+
onGeoLayersChange: _
|
|
1351
1351
|
}
|
|
1352
1352
|
),
|
|
1353
|
-
|
|
1353
|
+
m.includes("tematical") && /* @__PURE__ */ n(
|
|
1354
1354
|
kt,
|
|
1355
1355
|
{
|
|
1356
1356
|
indicators: o,
|
|
@@ -1361,9 +1361,9 @@ const a0 = "_FiltersAmbitContainer_bp6cj_2", l0 = "_FiltersAmbitHeader_bp6cj_15"
|
|
|
1361
1361
|
}
|
|
1362
1362
|
)
|
|
1363
1363
|
] }),
|
|
1364
|
-
!
|
|
1365
|
-
B && /* @__PURE__ */ n("div", { className: ne.warning, children:
|
|
1366
|
-
/* @__PURE__ */ n(Fe, { onClick: () => H(), children:
|
|
1364
|
+
!v && /* @__PURE__ */ p("div", { className: ne.buttonContainer, children: [
|
|
1365
|
+
B && /* @__PURE__ */ n("div", { className: ne.warning, children: f(b) }),
|
|
1366
|
+
/* @__PURE__ */ n(Fe, { onClick: () => H(), children: f("save_ambit") })
|
|
1367
1367
|
] })
|
|
1368
1368
|
] });
|
|
1369
1369
|
};
|
|
@@ -1396,31 +1396,33 @@ const St = ({
|
|
|
1396
1396
|
orientation: c = "horizontal",
|
|
1397
1397
|
// "horizontal" or "vertical"
|
|
1398
1398
|
horizontalPadding: u = c == "vertical" ? 50 : 20,
|
|
1399
|
-
verticalPadding: g = 10
|
|
1399
|
+
verticalPadding: g = 10,
|
|
1400
|
+
xLabelPadding: m = c == "vertical" ? 50 : 40
|
|
1400
1401
|
}) => {
|
|
1401
|
-
const { xScale:
|
|
1402
|
+
const { xScale: h, yScale: _, ticks: v, height: y, chartWidth: f } = he(() => {
|
|
1402
1403
|
if (i && i.length > 0) {
|
|
1403
|
-
|
|
1404
|
+
console.log("data");
|
|
1405
|
+
const C = Ae.max(i, (w) => w.value) || 1, N = a || C;
|
|
1404
1406
|
if (c === "vertical") {
|
|
1405
|
-
const
|
|
1407
|
+
const w = i.length * (s + o) + u * 2, x = d, $ = Ae.scaleLinear().domain([0, N]).range([x - 100, g]), k = Array.from(
|
|
1406
1408
|
{ length: l + 1 },
|
|
1407
|
-
(
|
|
1409
|
+
(B, V) => N / l * V
|
|
1408
1410
|
);
|
|
1409
1411
|
return {
|
|
1410
|
-
yScale:
|
|
1411
|
-
ticks:
|
|
1412
|
-
height:
|
|
1413
|
-
chartWidth:
|
|
1412
|
+
yScale: $,
|
|
1413
|
+
ticks: k,
|
|
1414
|
+
height: x,
|
|
1415
|
+
chartWidth: w
|
|
1414
1416
|
};
|
|
1415
1417
|
} else {
|
|
1416
|
-
const
|
|
1418
|
+
const w = i.length * (s + o) + g * 2 + 50, x = Ae.scaleLinear().domain([0, N]).range([0, d - r]), S = Array.from(
|
|
1417
1419
|
{ length: l + 1 },
|
|
1418
|
-
(
|
|
1420
|
+
($, k) => N / l * k
|
|
1419
1421
|
);
|
|
1420
1422
|
return {
|
|
1421
|
-
xScale:
|
|
1422
|
-
ticks:
|
|
1423
|
-
height:
|
|
1423
|
+
xScale: x,
|
|
1424
|
+
ticks: S,
|
|
1425
|
+
height: w,
|
|
1424
1426
|
chartWidth: d
|
|
1425
1427
|
};
|
|
1426
1428
|
}
|
|
@@ -1443,17 +1445,17 @@ const St = ({
|
|
|
1443
1445
|
a,
|
|
1444
1446
|
c
|
|
1445
1447
|
]);
|
|
1446
|
-
return c === "vertical" ? /* @__PURE__ */ n("div", { style: { overflow: "auto" }, children: /* @__PURE__ */ n("svg", { width:
|
|
1447
|
-
/* @__PURE__ */ n("g", { children: v.map((
|
|
1448
|
-
const
|
|
1448
|
+
return c === "vertical" ? /* @__PURE__ */ n("div", { style: { overflow: "auto" }, children: /* @__PURE__ */ n("svg", { width: f, height: y, children: /* @__PURE__ */ p("g", { transform: `translate(${u}, 0)`, children: [
|
|
1449
|
+
/* @__PURE__ */ n("g", { children: v.map((C, N) => {
|
|
1450
|
+
const w = _(C);
|
|
1449
1451
|
return /* @__PURE__ */ p("g", { children: [
|
|
1450
1452
|
/* @__PURE__ */ n(
|
|
1451
1453
|
"line",
|
|
1452
1454
|
{
|
|
1453
1455
|
x1: 0,
|
|
1454
|
-
x2:
|
|
1455
|
-
y1:
|
|
1456
|
-
y2:
|
|
1456
|
+
x2: f - u * 2,
|
|
1457
|
+
y1: w,
|
|
1458
|
+
y2: w,
|
|
1457
1459
|
stroke: "#ccc"
|
|
1458
1460
|
}
|
|
1459
1461
|
),
|
|
@@ -1461,47 +1463,47 @@ const St = ({
|
|
|
1461
1463
|
"text",
|
|
1462
1464
|
{
|
|
1463
1465
|
x: -10,
|
|
1464
|
-
y:
|
|
1466
|
+
y: w + 4,
|
|
1465
1467
|
textAnchor: "end",
|
|
1466
1468
|
fontSize: 10,
|
|
1467
1469
|
fill: t,
|
|
1468
|
-
children: parseInt(
|
|
1470
|
+
children: parseInt(C)
|
|
1469
1471
|
}
|
|
1470
1472
|
)
|
|
1471
|
-
] },
|
|
1473
|
+
] }, N);
|
|
1472
1474
|
}) }),
|
|
1473
|
-
i && i.length > 0 && i.map((
|
|
1474
|
-
const
|
|
1475
|
+
i && i.length > 0 && i.map((C, N) => {
|
|
1476
|
+
const w = _(0) - _(C.value), x = N * (s + o), S = _(C.value);
|
|
1475
1477
|
return /* @__PURE__ */ p("g", { children: [
|
|
1476
1478
|
/* @__PURE__ */ n(
|
|
1477
1479
|
"rect",
|
|
1478
1480
|
{
|
|
1479
|
-
x
|
|
1480
|
-
y:
|
|
1481
|
+
x,
|
|
1482
|
+
y: S,
|
|
1481
1483
|
width: s,
|
|
1482
|
-
height:
|
|
1483
|
-
fill:
|
|
1484
|
+
height: w,
|
|
1485
|
+
fill: C.color,
|
|
1484
1486
|
rx: 0
|
|
1485
1487
|
}
|
|
1486
1488
|
),
|
|
1487
1489
|
/* @__PURE__ */ n(
|
|
1488
1490
|
"text",
|
|
1489
1491
|
{
|
|
1490
|
-
x:
|
|
1491
|
-
y: y -
|
|
1492
|
+
x: x + s / 2,
|
|
1493
|
+
y: y - m,
|
|
1492
1494
|
textAnchor: "start",
|
|
1493
1495
|
fill: t,
|
|
1494
1496
|
fontSize: 12,
|
|
1495
|
-
transform: `rotate(-90, ${
|
|
1496
|
-
children:
|
|
1497
|
+
transform: `rotate(-90, ${x + s / 2}, ${y - m})`,
|
|
1498
|
+
children: C.title
|
|
1497
1499
|
}
|
|
1498
1500
|
)
|
|
1499
|
-
] },
|
|
1501
|
+
] }, N);
|
|
1500
1502
|
})
|
|
1501
|
-
] }) }) }) : /* @__PURE__ */ n("div", { style: { overflow: "auto" }, children: /* @__PURE__ */ n("svg", { width:
|
|
1502
|
-
/* @__PURE__ */ n("g", { transform: `translate(${r + u}, 0)`, children: v.map((
|
|
1503
|
-
const
|
|
1504
|
-
return /* @__PURE__ */ p("g", { transform: `translate(${
|
|
1503
|
+
] }) }) }) : /* @__PURE__ */ n("div", { style: { overflow: "auto" }, children: /* @__PURE__ */ n("svg", { width: f + u * 2, height: y, children: /* @__PURE__ */ p("g", { transform: `translate(0,${o})`, children: [
|
|
1504
|
+
/* @__PURE__ */ n("g", { transform: `translate(${r + u}, 0)`, children: v.map((C, N) => {
|
|
1505
|
+
const w = h(C);
|
|
1506
|
+
return /* @__PURE__ */ p("g", { transform: `translate(${w}, 0)`, children: [
|
|
1505
1507
|
/* @__PURE__ */ n(
|
|
1506
1508
|
"line",
|
|
1507
1509
|
{
|
|
@@ -1513,21 +1515,21 @@ const St = ({
|
|
|
1513
1515
|
/* @__PURE__ */ n(
|
|
1514
1516
|
"text",
|
|
1515
1517
|
{
|
|
1516
|
-
y: y -
|
|
1518
|
+
y: y - m - o,
|
|
1517
1519
|
textAnchor: "middle",
|
|
1518
1520
|
fontSize: 10,
|
|
1519
1521
|
fill: t,
|
|
1520
|
-
children: parseInt(
|
|
1522
|
+
children: parseInt(C)
|
|
1521
1523
|
}
|
|
1522
1524
|
)
|
|
1523
|
-
] },
|
|
1525
|
+
] }, N);
|
|
1524
1526
|
}) }),
|
|
1525
|
-
i && i.length > 0 && i.map((
|
|
1526
|
-
const
|
|
1527
|
+
i && i.length > 0 && i.map((C, N) => {
|
|
1528
|
+
const w = h(C.value), x = N * (s + o);
|
|
1527
1529
|
return /* @__PURE__ */ p(
|
|
1528
1530
|
"g",
|
|
1529
1531
|
{
|
|
1530
|
-
transform: `translate(${r + u}, ${
|
|
1532
|
+
transform: `translate(${r + u}, ${x})`,
|
|
1531
1533
|
children: [
|
|
1532
1534
|
/* @__PURE__ */ n(
|
|
1533
1535
|
"text",
|
|
@@ -1536,21 +1538,21 @@ const St = ({
|
|
|
1536
1538
|
y: s / 2 + 5,
|
|
1537
1539
|
textAnchor: "end",
|
|
1538
1540
|
fill: t,
|
|
1539
|
-
children:
|
|
1541
|
+
children: C.title
|
|
1540
1542
|
}
|
|
1541
1543
|
),
|
|
1542
1544
|
/* @__PURE__ */ n(
|
|
1543
1545
|
"rect",
|
|
1544
1546
|
{
|
|
1545
|
-
width:
|
|
1547
|
+
width: w,
|
|
1546
1548
|
height: s,
|
|
1547
|
-
fill:
|
|
1549
|
+
fill: C.color,
|
|
1548
1550
|
rx: 0
|
|
1549
1551
|
}
|
|
1550
1552
|
)
|
|
1551
1553
|
]
|
|
1552
1554
|
},
|
|
1553
|
-
|
|
1555
|
+
N
|
|
1554
1556
|
);
|
|
1555
1557
|
})
|
|
1556
1558
|
] }) }) });
|
|
@@ -1572,7 +1574,8 @@ St.propTypes = {
|
|
|
1572
1574
|
fontColor: e.string,
|
|
1573
1575
|
leftPadding: e.number,
|
|
1574
1576
|
maxValue: e.number,
|
|
1575
|
-
orientation: e.oneOf(["horizontal", "vertical"])
|
|
1577
|
+
orientation: e.oneOf(["horizontal", "vertical"]),
|
|
1578
|
+
xLabelPadding: e.number
|
|
1576
1579
|
};
|
|
1577
1580
|
const g0 = "_graphicContainer_c9zrg_2", C0 = "_titleContainer_c9zrg_14", nt = {
|
|
1578
1581
|
graphicContainer: g0,
|
|
@@ -1587,9 +1590,10 @@ const g0 = "_graphicContainer_c9zrg_2", C0 = "_titleContainer_c9zrg_14", nt = {
|
|
|
1587
1590
|
maxValue: l = null,
|
|
1588
1591
|
numberOfDivisions: a = 7,
|
|
1589
1592
|
leftPadding: c = -200,
|
|
1590
|
-
orientation: u = "horizontal"
|
|
1593
|
+
orientation: u = "horizontal",
|
|
1594
|
+
xLabelPadding: g = 0
|
|
1591
1595
|
}) => {
|
|
1592
|
-
const { t:
|
|
1596
|
+
const { t: m } = L();
|
|
1593
1597
|
return /* @__PURE__ */ p(
|
|
1594
1598
|
"div",
|
|
1595
1599
|
{
|
|
@@ -1600,7 +1604,7 @@ const g0 = "_graphicContainer_c9zrg_2", C0 = "_titleContainer_c9zrg_14", nt = {
|
|
|
1600
1604
|
paddingBottom: 40
|
|
1601
1605
|
},
|
|
1602
1606
|
children: [
|
|
1603
|
-
/* @__PURE__ */ n("div", { className: nt.titleContainer, children: /* @__PURE__ */ n("h2", { children:
|
|
1607
|
+
/* @__PURE__ */ n("div", { className: nt.titleContainer, children: /* @__PURE__ */ n("h2", { children: m(t) }) }),
|
|
1604
1608
|
/* @__PURE__ */ n(
|
|
1605
1609
|
St,
|
|
1606
1610
|
{
|
|
@@ -1610,7 +1614,8 @@ const g0 = "_graphicContainer_c9zrg_2", C0 = "_titleContainer_c9zrg_14", nt = {
|
|
|
1610
1614
|
maxValue: l,
|
|
1611
1615
|
numberOfDivisions: a,
|
|
1612
1616
|
leftPadding: c,
|
|
1613
|
-
orientation: u
|
|
1617
|
+
orientation: u,
|
|
1618
|
+
xLabelPadding: g
|
|
1614
1619
|
}
|
|
1615
1620
|
)
|
|
1616
1621
|
]
|
|
@@ -1632,7 +1637,8 @@ f0.propTypes = {
|
|
|
1632
1637
|
fontColor: e.string,
|
|
1633
1638
|
maxValue: e.number,
|
|
1634
1639
|
numberOfDivisions: e.number,
|
|
1635
|
-
leftPadding: e.number
|
|
1640
|
+
leftPadding: e.number,
|
|
1641
|
+
xLabelPadding: e.number
|
|
1636
1642
|
};
|
|
1637
1643
|
const b0 = "_indicatorsCategory_arwy3_2", y0 = "_title_arwy3_5", _0 = "_list_arwy3_13", Le = {
|
|
1638
1644
|
indicatorsCategory: b0,
|
|
@@ -1660,17 +1666,17 @@ const b0 = "_indicatorsCategory_arwy3_2", y0 = "_title_arwy3_5", _0 = "_list_arw
|
|
|
1660
1666
|
multiple: a = !1,
|
|
1661
1667
|
onChangeType: c
|
|
1662
1668
|
}) => {
|
|
1663
|
-
const { t: u } = L(), { name: g, type:
|
|
1669
|
+
const { t: u } = L(), { name: g, type: m, disabled: b } = i;
|
|
1664
1670
|
console.log(it);
|
|
1665
|
-
const [h,
|
|
1666
|
-
|
|
1667
|
-
t &&
|
|
1671
|
+
const [h, _] = A(!1);
|
|
1672
|
+
F(() => {
|
|
1673
|
+
t && _(
|
|
1668
1674
|
a ? t.some(
|
|
1669
|
-
(
|
|
1675
|
+
(f) => f.name == String(g)
|
|
1670
1676
|
) : t.name == g
|
|
1671
1677
|
);
|
|
1672
1678
|
}, [t]);
|
|
1673
|
-
const
|
|
1679
|
+
const v = () => /* @__PURE__ */ n("div", { className: R.switchExternalContainer, children: /* @__PURE__ */ n("div", { className: R.switchType, children: /* @__PURE__ */ p("div", { className: R.switchTypeOptions, children: [
|
|
1674
1680
|
/* @__PURE__ */ p(
|
|
1675
1681
|
"div",
|
|
1676
1682
|
{
|
|
@@ -1729,7 +1735,7 @@ const b0 = "_indicatorsCategory_arwy3_2", y0 = "_title_arwy3_5", _0 = "_list_arw
|
|
|
1729
1735
|
]
|
|
1730
1736
|
}
|
|
1731
1737
|
)
|
|
1732
|
-
] }) }) }),
|
|
1738
|
+
] }) }) }), y = () => /* @__PURE__ */ n("div", { className: R.switchExternalContainer, children: /* @__PURE__ */ n("div", { className: R.switchType, children: /* @__PURE__ */ n("div", { className: R.switchTypeOptions, children: d.map((f, C) => /* @__PURE__ */ p(
|
|
1733
1739
|
"div",
|
|
1734
1740
|
{
|
|
1735
1741
|
className: R.optionContainer,
|
|
@@ -1740,10 +1746,10 @@ const b0 = "_indicatorsCategory_arwy3_2", y0 = "_title_arwy3_5", _0 = "_list_arw
|
|
|
1740
1746
|
className: R.customRadious
|
|
1741
1747
|
}
|
|
1742
1748
|
),
|
|
1743
|
-
/* @__PURE__ */ n("h4", { children: u(
|
|
1749
|
+
/* @__PURE__ */ n("h4", { children: u(f.unit) })
|
|
1744
1750
|
]
|
|
1745
1751
|
},
|
|
1746
|
-
|
|
1752
|
+
C
|
|
1747
1753
|
)) }) }) });
|
|
1748
1754
|
return /* @__PURE__ */ p("div", { className: R.indicatorContainer, children: [
|
|
1749
1755
|
/* @__PURE__ */ p(
|
|
@@ -1785,8 +1791,8 @@ const b0 = "_indicatorsCategory_arwy3_2", y0 = "_title_arwy3_5", _0 = "_list_arw
|
|
|
1785
1791
|
]
|
|
1786
1792
|
}
|
|
1787
1793
|
),
|
|
1788
|
-
(t == null ? void 0 : t.name) === g &&
|
|
1789
|
-
(t == null ? void 0 : t.name) === g &&
|
|
1794
|
+
(t == null ? void 0 : t.name) === g && m === "both" && /* @__PURE__ */ n("div", { children: v() }),
|
|
1795
|
+
(t == null ? void 0 : t.name) === g && m === "twoUnits" && /* @__PURE__ */ n("div", { children: y() })
|
|
1790
1796
|
] });
|
|
1791
1797
|
};
|
|
1792
1798
|
Xe.propTypes = {
|
|
@@ -1816,11 +1822,11 @@ const V0 = "_indicatorsSubCategory_1nuug_2", D0 = "_list_1nuug_11", st = {
|
|
|
1816
1822
|
onClickIndicator: c,
|
|
1817
1823
|
multiple: u,
|
|
1818
1824
|
activeIndicatorType: g,
|
|
1819
|
-
onChangeType:
|
|
1825
|
+
onChangeType: m
|
|
1820
1826
|
}) => {
|
|
1821
|
-
const { t: b } = L(), [h,
|
|
1822
|
-
return
|
|
1823
|
-
|
|
1827
|
+
const { t: b } = L(), [h, _] = A(!1);
|
|
1828
|
+
return F(() => {
|
|
1829
|
+
_(t == l);
|
|
1824
1830
|
}, [t, l]), /* @__PURE__ */ p(
|
|
1825
1831
|
Ge.div,
|
|
1826
1832
|
{
|
|
@@ -1839,19 +1845,19 @@ const V0 = "_indicatorsSubCategory_1nuug_2", D0 = "_list_1nuug_11", st = {
|
|
|
1839
1845
|
}
|
|
1840
1846
|
)
|
|
1841
1847
|
] }) }),
|
|
1842
|
-
d && /* @__PURE__ */ n("div", { className: st.list, children: d == null ? void 0 : d.map((
|
|
1848
|
+
d && /* @__PURE__ */ n("div", { className: st.list, children: d == null ? void 0 : d.map((v, y) => /* @__PURE__ */ n(
|
|
1843
1849
|
Xe,
|
|
1844
1850
|
{
|
|
1845
|
-
indicator:
|
|
1851
|
+
indicator: v,
|
|
1846
1852
|
defaultColor: s,
|
|
1847
1853
|
activeColor: o,
|
|
1848
1854
|
activeIndicator: a,
|
|
1849
1855
|
onClickIndicator: c,
|
|
1850
1856
|
multiple: u,
|
|
1851
1857
|
activeIndicatorType: g,
|
|
1852
|
-
onChangeType:
|
|
1858
|
+
onChangeType: m
|
|
1853
1859
|
},
|
|
1854
|
-
"indicator" +
|
|
1860
|
+
"indicator" + y
|
|
1855
1861
|
)) })
|
|
1856
1862
|
]
|
|
1857
1863
|
}
|
|
@@ -1881,69 +1887,69 @@ const Bt = ({
|
|
|
1881
1887
|
activeIndicator: c,
|
|
1882
1888
|
onClickIndicator: u,
|
|
1883
1889
|
multiple: g,
|
|
1884
|
-
activeIndicatorType:
|
|
1890
|
+
activeIndicatorType: m,
|
|
1885
1891
|
onChangeType: b
|
|
1886
1892
|
}) => {
|
|
1887
|
-
var
|
|
1888
|
-
const { t: h } = L(), [
|
|
1889
|
-
return
|
|
1890
|
-
|
|
1893
|
+
var y;
|
|
1894
|
+
const { t: h } = L(), [_, v] = A(!1);
|
|
1895
|
+
return F(() => {
|
|
1896
|
+
v(r === d);
|
|
1891
1897
|
}, [r, d]), /* @__PURE__ */ p(
|
|
1892
1898
|
Ge.div,
|
|
1893
1899
|
{
|
|
1894
1900
|
className: Le.indicatorsCategory,
|
|
1895
1901
|
initial: { height: "53px" },
|
|
1896
|
-
animate: { height:
|
|
1902
|
+
animate: { height: _ ? "auto" : "53px" },
|
|
1897
1903
|
transition: { duration: 0.4 },
|
|
1898
1904
|
style: {
|
|
1899
1905
|
backgroundColor: "white",
|
|
1900
|
-
borderBottom:
|
|
1901
|
-
marginBottom:
|
|
1906
|
+
borderBottom: _ ? `1px solid ${s}` : "0px",
|
|
1907
|
+
marginBottom: _ ? "20px" : "0px"
|
|
1902
1908
|
},
|
|
1903
1909
|
children: [
|
|
1904
1910
|
/* @__PURE__ */ p("h2", { className: `${Le.title}`, onClick: () => t(d), children: [
|
|
1905
|
-
/* @__PURE__ */ n("span", { className: Le.plus, style: { color:
|
|
1911
|
+
/* @__PURE__ */ n("span", { className: Le.plus, style: { color: _ ? s : o }, children: _ ? "-" : "+" }),
|
|
1906
1912
|
/* @__PURE__ */ n(
|
|
1907
1913
|
"span",
|
|
1908
1914
|
{
|
|
1909
|
-
style: { color:
|
|
1915
|
+
style: { color: _ ? s : o },
|
|
1910
1916
|
children: h(i.name)
|
|
1911
1917
|
}
|
|
1912
1918
|
)
|
|
1913
1919
|
] }),
|
|
1914
1920
|
i.subcategories ? i.subcategories.map(
|
|
1915
|
-
({ name:
|
|
1921
|
+
({ name: f, subcategory: C, indicators: N }, w) => /* @__PURE__ */ n(
|
|
1916
1922
|
$t,
|
|
1917
1923
|
{
|
|
1918
|
-
id:
|
|
1924
|
+
id: C,
|
|
1919
1925
|
activeSubCategory: l,
|
|
1920
|
-
subcName:
|
|
1926
|
+
subcName: f,
|
|
1921
1927
|
onClickSubCategory: a,
|
|
1922
1928
|
activeIndicator: c,
|
|
1923
1929
|
onClickIndicator: u,
|
|
1924
1930
|
multiple: g,
|
|
1925
1931
|
activeColor: s,
|
|
1926
1932
|
defaultColor: o,
|
|
1927
|
-
indicators:
|
|
1928
|
-
activeIndicatorType:
|
|
1933
|
+
indicators: N,
|
|
1934
|
+
activeIndicatorType: m,
|
|
1929
1935
|
onChangeType: b
|
|
1930
1936
|
},
|
|
1931
1937
|
`subcKey ${w}`
|
|
1932
1938
|
)
|
|
1933
|
-
) : /* @__PURE__ */ n("div", { className: Le.list, children: (
|
|
1939
|
+
) : /* @__PURE__ */ n("div", { className: Le.list, children: (y = i.indicators) == null ? void 0 : y.map((f, C) => /* @__PURE__ */ n(
|
|
1934
1940
|
Xe,
|
|
1935
1941
|
{
|
|
1936
|
-
indicator:
|
|
1937
|
-
values:
|
|
1942
|
+
indicator: f,
|
|
1943
|
+
values: f.type == "twoUnits" && f.values,
|
|
1938
1944
|
activeColor: s,
|
|
1939
1945
|
defaultColor: o,
|
|
1940
1946
|
activeIndicator: c,
|
|
1941
1947
|
onClickIndicator: u,
|
|
1942
1948
|
multiple: g,
|
|
1943
|
-
activeIndicatorType:
|
|
1949
|
+
activeIndicatorType: m,
|
|
1944
1950
|
onChangeType: b
|
|
1945
1951
|
},
|
|
1946
|
-
`indicator${
|
|
1952
|
+
`indicator${C}`
|
|
1947
1953
|
)) })
|
|
1948
1954
|
]
|
|
1949
1955
|
}
|
|
@@ -1980,47 +1986,47 @@ const F0 = "_indicatorsList_13b3m_2", A0 = "_title_13b3m_6", ot = {
|
|
|
1980
1986
|
changeIndType: l,
|
|
1981
1987
|
activeIndicatorType: a
|
|
1982
1988
|
}) => {
|
|
1983
|
-
const { t: c } = L(), [u, g] =
|
|
1989
|
+
const { t: c } = L(), [u, g] = A(), [m, b] = A(), [h, _] = A(), v = (w) => {
|
|
1984
1990
|
g(u == w ? null : w);
|
|
1985
|
-
},
|
|
1986
|
-
b(
|
|
1987
|
-
},
|
|
1988
|
-
|
|
1989
|
-
},
|
|
1991
|
+
}, y = (w) => {
|
|
1992
|
+
b(m == w ? null : w);
|
|
1993
|
+
}, f = ({ indicator: w }) => {
|
|
1994
|
+
C(w);
|
|
1995
|
+
}, C = (w) => {
|
|
1990
1996
|
if (!t)
|
|
1991
|
-
|
|
1997
|
+
_(
|
|
1992
1998
|
(h == null ? void 0 : h.name) == w.name ? null : w
|
|
1993
1999
|
);
|
|
1994
2000
|
else {
|
|
1995
|
-
let
|
|
1996
|
-
|
|
1997
|
-
|
|
2001
|
+
let x = h && h.length > 0 ? [...h] : [];
|
|
2002
|
+
_(
|
|
2003
|
+
x != null && x.some(
|
|
1998
2004
|
(S) => S.name == w.name
|
|
1999
|
-
) ?
|
|
2005
|
+
) ? x.filter(
|
|
2000
2006
|
(S) => S.name != String(w.name)
|
|
2001
|
-
) : [...
|
|
2007
|
+
) : [...x, w]
|
|
2002
2008
|
), w.type == "both" && l("cat");
|
|
2003
2009
|
}
|
|
2004
2010
|
};
|
|
2005
|
-
|
|
2011
|
+
F(() => {
|
|
2006
2012
|
o && typeof o == "function" && h && o({ activeIndicator: h });
|
|
2007
2013
|
}, [h]), Et(() => {
|
|
2008
2014
|
if (r && !h)
|
|
2009
2015
|
if (t && r && Array.isArray(r)) {
|
|
2010
2016
|
let w = h && h.length > 0 ? [...h] : [];
|
|
2011
|
-
|
|
2017
|
+
_([...w, ...r]), N(r[0].name);
|
|
2012
2018
|
} else
|
|
2013
|
-
|
|
2014
|
-
}, []),
|
|
2019
|
+
C(r), N(r.name);
|
|
2020
|
+
}, []), F(() => {
|
|
2015
2021
|
if (r != h)
|
|
2016
2022
|
if (t && r && Array.isArray(r)) {
|
|
2017
2023
|
let w = h && h.length > 0 ? [...h] : [];
|
|
2018
|
-
|
|
2024
|
+
_([...w, ...r]), N(r[0].name);
|
|
2019
2025
|
} else
|
|
2020
|
-
|
|
2026
|
+
C(r), N(r.name);
|
|
2021
2027
|
}, [r]);
|
|
2022
|
-
const
|
|
2023
|
-
const
|
|
2028
|
+
const N = (w) => {
|
|
2029
|
+
const x = i.find((S) => {
|
|
2024
2030
|
if (S.subcategories) {
|
|
2025
2031
|
let $ = S.subcategories.find(
|
|
2026
2032
|
(k) => k.indicators.find((B) => B.name == w)
|
|
@@ -2030,20 +2036,20 @@ const F0 = "_indicatorsList_13b3m_2", A0 = "_title_13b3m_6", ot = {
|
|
|
2030
2036
|
} else
|
|
2031
2037
|
return S.indicators.some(($) => $.name == w);
|
|
2032
2038
|
});
|
|
2033
|
-
|
|
2039
|
+
x && g(x.category);
|
|
2034
2040
|
};
|
|
2035
2041
|
return /* @__PURE__ */ p("div", { className: ot.indicatorsList, children: [
|
|
2036
2042
|
/* @__PURE__ */ n("h2", { className: ot.title, style: { color: s }, children: c("indicators.indicators") }),
|
|
2037
|
-
i.map((w,
|
|
2043
|
+
i.map((w, x) => /* @__PURE__ */ n(
|
|
2038
2044
|
Bt,
|
|
2039
2045
|
{
|
|
2040
2046
|
id: w.category,
|
|
2041
2047
|
cat: w,
|
|
2042
|
-
onClickCategory:
|
|
2048
|
+
onClickCategory: v,
|
|
2043
2049
|
activeCategory: u,
|
|
2044
|
-
onClickSubCategory:
|
|
2045
|
-
activeSubCategory:
|
|
2046
|
-
onClickIndicator:
|
|
2050
|
+
onClickSubCategory: y,
|
|
2051
|
+
activeSubCategory: m,
|
|
2052
|
+
onClickIndicator: f,
|
|
2047
2053
|
activeIndicator: h,
|
|
2048
2054
|
activeColor: d,
|
|
2049
2055
|
defaultColor: s,
|
|
@@ -2052,7 +2058,7 @@ const F0 = "_indicatorsList_13b3m_2", A0 = "_title_13b3m_6", ot = {
|
|
|
2052
2058
|
onChangeType: l,
|
|
2053
2059
|
activeIndicatorType: a
|
|
2054
2060
|
},
|
|
2055
|
-
`categoryKey${
|
|
2061
|
+
`categoryKey${x}`
|
|
2056
2062
|
))
|
|
2057
2063
|
] });
|
|
2058
2064
|
};
|
|
@@ -2074,7 +2080,7 @@ const O0 = "_langSelector_o9enq_2", R0 = "_currentLang_o9enq_14", q0 = "_arrow_o
|
|
|
2074
2080
|
prevImg: P0,
|
|
2075
2081
|
langMenu: E0
|
|
2076
2082
|
}, j0 = ({ langs: i, arrow: d, imgPrev: s }) => {
|
|
2077
|
-
const [o, t] =
|
|
2083
|
+
const [o, t] = A(!1), { i18n: r } = L(), l = i.find((c) => c.code == r.language), a = (c) => {
|
|
2078
2084
|
r.changeLanguage(c), t(!1);
|
|
2079
2085
|
};
|
|
2080
2086
|
return /* @__PURE__ */ p("div", { className: de.langSelector, children: [
|
|
@@ -2165,11 +2171,11 @@ const Z0 = "_legendContainer_qs4x9_3", z0 = "_closeButton_qs4x9_31", H0 = "_titl
|
|
|
2165
2171
|
children: [
|
|
2166
2172
|
/* @__PURE__ */ n("button", { className: O.closeButton, onClick: c }),
|
|
2167
2173
|
d && /* @__PURE__ */ n("div", { className: O.titleContainer, style: { marginBottom: (!s || s.length == 0) && "15px" }, children: /* @__PURE__ */ n("h2", { children: d }) }),
|
|
2168
|
-
s && s.length > 0 && /* @__PURE__ */ n("div", { className: O.infoContainer, children: /* @__PURE__ */ n("ul", { children: s.map(({ title: g, value:
|
|
2174
|
+
s && s.length > 0 && /* @__PURE__ */ n("div", { className: O.infoContainer, children: /* @__PURE__ */ n("ul", { children: s.map(({ title: g, value: m }) => /* @__PURE__ */ p("li", { children: [
|
|
2169
2175
|
/* @__PURE__ */ n("h3", { className: O.title, children: `${g}:` }),
|
|
2170
2176
|
/* @__PURE__ */ p("span", { className: O.value, children: [
|
|
2171
2177
|
" ",
|
|
2172
|
-
|
|
2178
|
+
m
|
|
2173
2179
|
] })
|
|
2174
2180
|
] }, d)) }) }),
|
|
2175
2181
|
/* @__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 }) }),
|
|
@@ -2202,12 +2208,12 @@ const Z0 = "_legendContainer_qs4x9_3", z0 = "_closeButton_qs4x9_31", H0 = "_titl
|
|
|
2202
2208
|
] })
|
|
2203
2209
|
] })
|
|
2204
2210
|
] }) : o && o.length > 0 && /* @__PURE__ */ n("div", { className: O.gridContainer, children: o.map(
|
|
2205
|
-
({ title: g, color:
|
|
2211
|
+
({ title: g, color: m }) => /* @__PURE__ */ p("div", { className: O.elementLegendContainer, children: [
|
|
2206
2212
|
/* @__PURE__ */ n(
|
|
2207
2213
|
"div",
|
|
2208
2214
|
{
|
|
2209
2215
|
className: O.colorDot,
|
|
2210
|
-
style: { backgroundColor:
|
|
2216
|
+
style: { backgroundColor: m }
|
|
2211
2217
|
}
|
|
2212
2218
|
),
|
|
2213
2219
|
/* @__PURE__ */ p("div", { className: O.titleLegendElement, children: [
|
|
@@ -2290,19 +2296,19 @@ const dn = ({
|
|
|
2290
2296
|
sources: u = [],
|
|
2291
2297
|
layers: g = []
|
|
2292
2298
|
}) => {
|
|
2293
|
-
const
|
|
2294
|
-
return
|
|
2295
|
-
if (
|
|
2296
|
-
const
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
+
const m = ae(), [b, h] = A(null), _ = Zt((v) => v.mapState.showTexts);
|
|
2300
|
+
return F(() => {
|
|
2301
|
+
if (m.current) {
|
|
2302
|
+
const v = m.current.getMap();
|
|
2303
|
+
v.getStyle().layers.map((f) => {
|
|
2304
|
+
f.type == "symbol" && f.id != "professionals" && (_ ? v.setLayoutProperty(f.id, "visibility", "visible") : v.setLayoutProperty(f.id, "visibility", "none"));
|
|
2299
2305
|
});
|
|
2300
2306
|
}
|
|
2301
|
-
}, [
|
|
2307
|
+
}, [_]), /* @__PURE__ */ n("div", { className: `${cn.mapContainer}`, style: r, children: /* @__PURE__ */ p(
|
|
2302
2308
|
zt,
|
|
2303
2309
|
{
|
|
2304
2310
|
initialViewState: i,
|
|
2305
|
-
ref:
|
|
2311
|
+
ref: m,
|
|
2306
2312
|
hash: !1,
|
|
2307
2313
|
maxZoom: d,
|
|
2308
2314
|
minZoom: s,
|
|
@@ -2310,22 +2316,22 @@ const dn = ({
|
|
|
2310
2316
|
onClick: l,
|
|
2311
2317
|
interactiveLayerIds: a,
|
|
2312
2318
|
children: [
|
|
2313
|
-
u.length && u.map((
|
|
2319
|
+
u.length && u.map((v, y) => /* @__PURE__ */ n(
|
|
2314
2320
|
Ht,
|
|
2315
2321
|
{
|
|
2316
|
-
...
|
|
2317
|
-
children: g.length && g.map((
|
|
2318
|
-
if (
|
|
2322
|
+
...v,
|
|
2323
|
+
children: g.length && g.map((f, C) => {
|
|
2324
|
+
if (f.sourceId == v.id) return /* @__PURE__ */ n(
|
|
2319
2325
|
Kt,
|
|
2320
2326
|
{
|
|
2321
|
-
...
|
|
2327
|
+
...f.layer,
|
|
2322
2328
|
beforeId: t
|
|
2323
2329
|
},
|
|
2324
|
-
|
|
2330
|
+
C
|
|
2325
2331
|
);
|
|
2326
2332
|
})
|
|
2327
2333
|
},
|
|
2328
|
-
|
|
2334
|
+
y
|
|
2329
2335
|
)),
|
|
2330
2336
|
/* @__PURE__ */ n(Ut, { position: "bottom-right", visualizePitch: !0 }),
|
|
2331
2337
|
c && b && /* @__PURE__ */ n(
|
|
@@ -2417,21 +2423,21 @@ const un = "_mapContainer_b0pyr_3", pn = {
|
|
|
2417
2423
|
sources: c = [],
|
|
2418
2424
|
layers: u = [],
|
|
2419
2425
|
popUpParams: g,
|
|
2420
|
-
onClosePopUp:
|
|
2426
|
+
onClosePopUp: m,
|
|
2421
2427
|
showTexts: b,
|
|
2422
2428
|
hash: h = !1
|
|
2423
2429
|
}) => {
|
|
2424
|
-
const
|
|
2425
|
-
return
|
|
2426
|
-
if (
|
|
2427
|
-
const
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
+
const _ = ae();
|
|
2431
|
+
return F(() => {
|
|
2432
|
+
if (_.current) {
|
|
2433
|
+
const v = _.current.getMap();
|
|
2434
|
+
v.getStyle().layers.map((f) => {
|
|
2435
|
+
f.type == "symbol" && f.id != "professionals" && (b ? v.setLayoutProperty(f.id, "visibility", "visible") : v.setLayoutProperty(f.id, "visibility", "none"));
|
|
2430
2436
|
});
|
|
2431
2437
|
}
|
|
2432
|
-
}, [b]),
|
|
2433
|
-
let
|
|
2434
|
-
return Ie.addProtocol("pmtiles",
|
|
2438
|
+
}, [b]), F(() => {
|
|
2439
|
+
let v = new Gt();
|
|
2440
|
+
return Ie.addProtocol("pmtiles", v.tile), () => {
|
|
2435
2441
|
Ie.removeProtocol("pmtiles");
|
|
2436
2442
|
};
|
|
2437
2443
|
}, []), /* @__PURE__ */ n("div", { className: `${pn.mapContainer}`, style: r && r, children: /* @__PURE__ */ p(
|
|
@@ -2439,7 +2445,7 @@ const un = "_mapContainer_b0pyr_3", pn = {
|
|
|
2439
2445
|
{
|
|
2440
2446
|
mapLib: Ie,
|
|
2441
2447
|
initialViewState: i,
|
|
2442
|
-
ref:
|
|
2448
|
+
ref: _,
|
|
2443
2449
|
hash: h,
|
|
2444
2450
|
maxZoom: d,
|
|
2445
2451
|
minZoom: s,
|
|
@@ -2447,26 +2453,26 @@ const un = "_mapContainer_b0pyr_3", pn = {
|
|
|
2447
2453
|
onClick: l,
|
|
2448
2454
|
interactiveLayerIds: a,
|
|
2449
2455
|
children: [
|
|
2450
|
-
c.length && c.map((
|
|
2456
|
+
c.length && c.map((v, y) => /* @__PURE__ */ n(
|
|
2451
2457
|
Xt,
|
|
2452
2458
|
{
|
|
2453
|
-
...
|
|
2454
|
-
children: u.length && u.map((
|
|
2455
|
-
if (
|
|
2459
|
+
...v,
|
|
2460
|
+
children: u.length && u.map((f, C) => {
|
|
2461
|
+
if (f.sourceId == v.id) return /* @__PURE__ */ n(
|
|
2456
2462
|
Qt,
|
|
2457
2463
|
{
|
|
2458
|
-
...
|
|
2464
|
+
...f.layer,
|
|
2459
2465
|
beforeId: t,
|
|
2460
|
-
filter:
|
|
2466
|
+
filter: f.filters ? f.filters : ["all"],
|
|
2461
2467
|
layout: {
|
|
2462
|
-
visibility:
|
|
2468
|
+
visibility: f.layer.visibility || "visible"
|
|
2463
2469
|
}
|
|
2464
2470
|
},
|
|
2465
|
-
|
|
2471
|
+
C
|
|
2466
2472
|
);
|
|
2467
2473
|
})
|
|
2468
2474
|
},
|
|
2469
|
-
|
|
2475
|
+
y
|
|
2470
2476
|
)),
|
|
2471
2477
|
/* @__PURE__ */ n(Jt, { position: "bottom-right", visualizePitch: !0 }),
|
|
2472
2478
|
g && /* @__PURE__ */ n(
|
|
@@ -2474,7 +2480,7 @@ const un = "_mapContainer_b0pyr_3", pn = {
|
|
|
2474
2480
|
{
|
|
2475
2481
|
longitude: g.lng,
|
|
2476
2482
|
latitude: g.lat,
|
|
2477
|
-
onClose:
|
|
2483
|
+
onClose: m,
|
|
2478
2484
|
children: /* @__PURE__ */ n(gn, { props: g.props })
|
|
2479
2485
|
}
|
|
2480
2486
|
)
|
|
@@ -2611,30 +2617,30 @@ const Nn = t2({
|
|
|
2611
2617
|
console.log("year changed to ", a);
|
|
2612
2618
|
}
|
|
2613
2619
|
}) => {
|
|
2614
|
-
const [a, c] =
|
|
2615
|
-
c(
|
|
2616
|
-
}, [g,
|
|
2617
|
-
|
|
2620
|
+
const [a, c] = A(d), u = (f, C) => {
|
|
2621
|
+
c(C), l(C);
|
|
2622
|
+
}, [g, m] = A(!1), b = () => {
|
|
2623
|
+
m(!0);
|
|
2618
2624
|
}, h = () => {
|
|
2619
|
-
|
|
2625
|
+
m(!1);
|
|
2620
2626
|
};
|
|
2621
|
-
((
|
|
2622
|
-
const
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
}, [
|
|
2627
|
+
((f, C) => {
|
|
2628
|
+
const N = ae();
|
|
2629
|
+
F(() => {
|
|
2630
|
+
N.current = f;
|
|
2631
|
+
}, [f]), F(() => {
|
|
2626
2632
|
function w() {
|
|
2627
|
-
|
|
2633
|
+
N.current();
|
|
2628
2634
|
}
|
|
2629
2635
|
{
|
|
2630
|
-
let
|
|
2631
|
-
return () => clearInterval(
|
|
2636
|
+
let x = setInterval(w, C);
|
|
2637
|
+
return () => clearInterval(x);
|
|
2632
2638
|
}
|
|
2633
|
-
}, [
|
|
2639
|
+
}, [C]);
|
|
2634
2640
|
})(() => {
|
|
2635
2641
|
g && (a != 2050 ? (c(a + 1), l(a + 1)) : (c(2025), l(2025)));
|
|
2636
2642
|
}, 1e3);
|
|
2637
|
-
const
|
|
2643
|
+
const v = i2({
|
|
2638
2644
|
palette: {
|
|
2639
2645
|
primary: {
|
|
2640
2646
|
main: "#605b56"
|
|
@@ -2656,13 +2662,13 @@ const Nn = t2({
|
|
|
2656
2662
|
}
|
|
2657
2663
|
}
|
|
2658
2664
|
}
|
|
2659
|
-
}),
|
|
2665
|
+
}), y = [
|
|
2660
2666
|
{ label: "", value: 2025 },
|
|
2661
2667
|
{ label: "", value: 2032 },
|
|
2662
2668
|
{ label: "", value: 2041 },
|
|
2663
2669
|
{ label: "", value: 2050 }
|
|
2664
2670
|
];
|
|
2665
|
-
return /* @__PURE__ */ n(o2, { theme:
|
|
2671
|
+
return /* @__PURE__ */ n(o2, { theme: v, children: /* @__PURE__ */ p(
|
|
2666
2672
|
s2,
|
|
2667
2673
|
{
|
|
2668
2674
|
sx: { width: 400 },
|
|
@@ -2677,7 +2683,7 @@ const Nn = t2({
|
|
|
2677
2683
|
value: a,
|
|
2678
2684
|
valueLabelDisplay: "on",
|
|
2679
2685
|
step: 1,
|
|
2680
|
-
marks:
|
|
2686
|
+
marks: y,
|
|
2681
2687
|
min: s,
|
|
2682
2688
|
max: o,
|
|
2683
2689
|
onChange: u,
|
|
@@ -2832,14 +2838,14 @@ const ai = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2832
2838
|
defaultTooltip: u,
|
|
2833
2839
|
showEye: g = !0
|
|
2834
2840
|
}) => {
|
|
2835
|
-
const { name:
|
|
2841
|
+
const { name: m, created_at: b, id: h, isBeingProcessed: _ } = i, [v, y] = A(!1), { t: f } = L();
|
|
2836
2842
|
return /* @__PURE__ */ p(
|
|
2837
2843
|
"div",
|
|
2838
2844
|
{
|
|
2839
2845
|
className: K.listElement,
|
|
2840
2846
|
style: { borderBottom: `1px solid ${t}` },
|
|
2841
2847
|
children: [
|
|
2842
|
-
/* @__PURE__ */ n("div", { className: K.elementNameDate, onClick: () => d(h), children: Object.keys(l).map((
|
|
2848
|
+
/* @__PURE__ */ n("div", { className: K.elementNameDate, onClick: () => d(h), children: Object.keys(l).map((C) => C === "name" ? /* @__PURE__ */ n("div", { className: K.elementNameContainer, children: /* @__PURE__ */ p("div", { className: K.elementName, children: [
|
|
2843
2849
|
g && (s ? /* @__PURE__ */ n(ri, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ n(
|
|
2844
2850
|
"img",
|
|
2845
2851
|
{
|
|
@@ -2848,8 +2854,8 @@ const ai = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2848
2854
|
alt: "eye"
|
|
2849
2855
|
}
|
|
2850
2856
|
)),
|
|
2851
|
-
/* @__PURE__ */ n("span", { style: { color: s ? o : t }, children:
|
|
2852
|
-
] }) }) :
|
|
2857
|
+
/* @__PURE__ */ n("span", { style: { color: s ? o : t }, children: m })
|
|
2858
|
+
] }) }) : C == "data" ? /* @__PURE__ */ n("div", { className: K.elementDate, children: b ? new Date(b).toLocaleDateString() : "" }) : /* @__PURE__ */ n("div", { className: K.elementDate, children: i[C] })) }),
|
|
2853
2859
|
/* @__PURE__ */ p("div", { className: K.elementButtons, children: [
|
|
2854
2860
|
i.processing && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
2855
2861
|
/* @__PURE__ */ n("img", { src: si }),
|
|
@@ -2874,11 +2880,11 @@ const ai = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2874
2880
|
] }),
|
|
2875
2881
|
r && /* @__PURE__ */ n("div", { className: K.break }),
|
|
2876
2882
|
r && /* @__PURE__ */ p("div", { className: K.moreInfoContainer, children: [
|
|
2877
|
-
/* @__PURE__ */ p("div", { className: K.moreInfo, onClick: () =>
|
|
2878
|
-
/* @__PURE__ */ n("span", { children:
|
|
2879
|
-
|
|
2883
|
+
/* @__PURE__ */ p("div", { className: K.moreInfo, onClick: () => y(!v), children: [
|
|
2884
|
+
/* @__PURE__ */ n("span", { children: v ? "-" : "+" }),
|
|
2885
|
+
f(r.label)
|
|
2880
2886
|
] }),
|
|
2881
|
-
r &&
|
|
2887
|
+
r && v && /* @__PURE__ */ n("div", { className: K.moreInfoInfo, children: i[r.info] })
|
|
2882
2888
|
] })
|
|
2883
2889
|
]
|
|
2884
2890
|
}
|
|
@@ -2929,27 +2935,27 @@ const ct = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2929
2935
|
containerStyles: r = {},
|
|
2930
2936
|
newElementButton: l,
|
|
2931
2937
|
//{label: 'text', onClick: function(), disabled}/null
|
|
2932
|
-
onClickElement: a = (
|
|
2938
|
+
onClickElement: a = (_) => console.log(`OnCLickElement: ${_}`),
|
|
2933
2939
|
columns: c,
|
|
2934
2940
|
// {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
|
|
2935
2941
|
elementButtons: u,
|
|
2936
2942
|
//{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
|
|
2937
2943
|
moreInfo: g = !1,
|
|
2938
2944
|
//{label: 'x'}
|
|
2939
|
-
processTooltip:
|
|
2945
|
+
processTooltip: m,
|
|
2940
2946
|
//texto para el tooltip del simbolo "En proceso"
|
|
2941
2947
|
defaultTooltip: b,
|
|
2942
2948
|
//texto para el tooltip del símbolo de candado para los elementos default
|
|
2943
2949
|
showEye: h = !0
|
|
2944
2950
|
}) => {
|
|
2945
|
-
const { t:
|
|
2946
|
-
|
|
2947
|
-
i &&
|
|
2951
|
+
const { t: _ } = L(), [v, y] = A(i);
|
|
2952
|
+
F(() => {
|
|
2953
|
+
i && y(i);
|
|
2948
2954
|
}, [i]);
|
|
2949
|
-
const
|
|
2950
|
-
if (
|
|
2951
|
-
let
|
|
2952
|
-
|
|
2955
|
+
const f = (C) => {
|
|
2956
|
+
if (v && v.length > 0) {
|
|
2957
|
+
let N = [...v];
|
|
2958
|
+
N.sort((w, x) => w[C].localeCompare(x[C])), y(N);
|
|
2953
2959
|
}
|
|
2954
2960
|
};
|
|
2955
2961
|
return /* @__PURE__ */ p(
|
|
@@ -2964,33 +2970,33 @@ const ct = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2964
2970
|
className: U.header,
|
|
2965
2971
|
style: { borderBottom: `1px solid ${s}` },
|
|
2966
2972
|
children: [
|
|
2967
|
-
/* @__PURE__ */ n("div", { className: U.nameDateContainer, children: Object.keys(c).map((
|
|
2968
|
-
/* @__PURE__ */ n("span", { children:
|
|
2973
|
+
/* @__PURE__ */ n("div", { className: U.nameDateContainer, children: Object.keys(c).map((C) => C === "name" ? /* @__PURE__ */ n("div", { className: U.elementName, children: /* @__PURE__ */ p("button", { onClick: () => f("name"), children: [
|
|
2974
|
+
/* @__PURE__ */ n("span", { children: _(c.name) }),
|
|
2969
2975
|
/* @__PURE__ */ n("img", { src: ct, alt: "order arrow" })
|
|
2970
|
-
] }) },
|
|
2971
|
-
/* @__PURE__ */ n("span", { children:
|
|
2976
|
+
] }) }, C) : C === "data" ? /* @__PURE__ */ n("div", { className: U.elementDate, children: /* @__PURE__ */ p("button", { onClick: () => f("date"), children: [
|
|
2977
|
+
/* @__PURE__ */ n("span", { children: _(c.data) }),
|
|
2972
2978
|
/* @__PURE__ */ n("img", { src: ct, alt: "order arrow" })
|
|
2973
|
-
] }) },
|
|
2979
|
+
] }) }, C) : /* @__PURE__ */ n("div", { className: U.elementDate, children: /* @__PURE__ */ n("span", { children: _(c[C]) }) }, C)) }),
|
|
2974
2980
|
/* @__PURE__ */ n("div", { className: U.buttonsContainer })
|
|
2975
2981
|
]
|
|
2976
2982
|
}
|
|
2977
2983
|
),
|
|
2978
|
-
/* @__PURE__ */ n("div", { className: U.elementListContainer, children:
|
|
2984
|
+
/* @__PURE__ */ n("div", { className: U.elementListContainer, children: v && v.length > 0 && v.map((C) => /* @__PURE__ */ n(
|
|
2979
2985
|
Lt,
|
|
2980
2986
|
{
|
|
2981
|
-
isActive: d ==
|
|
2982
|
-
listelement:
|
|
2987
|
+
isActive: d == C.id,
|
|
2988
|
+
listelement: C,
|
|
2983
2989
|
fontColor: s,
|
|
2984
2990
|
activeColor: o,
|
|
2985
2991
|
onClickElement: a,
|
|
2986
2992
|
columns: c,
|
|
2987
2993
|
elementButtons: u,
|
|
2988
2994
|
moreInfo: g,
|
|
2989
|
-
processTooltip:
|
|
2995
|
+
processTooltip: m,
|
|
2990
2996
|
defaultTooltip: b,
|
|
2991
2997
|
showEye: h
|
|
2992
2998
|
},
|
|
2993
|
-
`elementKey${
|
|
2999
|
+
`elementKey${C.id}`
|
|
2994
3000
|
)) }),
|
|
2995
3001
|
l && /* @__PURE__ */ n("div", { className: U.newElementButtonContainer, children: /* @__PURE__ */ n(
|
|
2996
3002
|
Fe,
|
|
@@ -2999,7 +3005,7 @@ const ct = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2999
3005
|
onClick: l.onClick,
|
|
3000
3006
|
borderColor: "grey",
|
|
3001
3007
|
disabled: l.disabled || !1,
|
|
3002
|
-
children:
|
|
3008
|
+
children: _(l.label)
|
|
3003
3009
|
}
|
|
3004
3010
|
) })
|
|
3005
3011
|
]
|
|
@@ -3110,9 +3116,9 @@ const ut = {
|
|
|
3110
3116
|
CHANGE: "change"
|
|
3111
3117
|
}, pt = {
|
|
3112
3118
|
all: "all"
|
|
3113
|
-
}, Ft =
|
|
3119
|
+
}, Ft = D.createContext(null);
|
|
3114
3120
|
Ft.displayName = "HookFormContext";
|
|
3115
|
-
const Qe = () =>
|
|
3121
|
+
const Qe = () => D.useContext(Ft);
|
|
3116
3122
|
var wi = (i, d, s, o = !0) => {
|
|
3117
3123
|
const t = {
|
|
3118
3124
|
defaultValues: d._defaultValues
|
|
@@ -3128,7 +3134,7 @@ var wi = (i, d, s, o = !0) => {
|
|
|
3128
3134
|
};
|
|
3129
3135
|
const At = typeof window < "u" ? me.useLayoutEffect : me.useEffect;
|
|
3130
3136
|
function xi(i) {
|
|
3131
|
-
const d = Qe(), { control: s = d.control, disabled: o, name: t, exact: r } = i || {}, [l, a] =
|
|
3137
|
+
const d = Qe(), { control: s = d.control, disabled: o, name: t, exact: r } = i || {}, [l, a] = D.useState(s._formState), c = D.useRef({
|
|
3132
3138
|
isDirty: !1,
|
|
3133
3139
|
isLoading: !1,
|
|
3134
3140
|
dirtyFields: !1,
|
|
@@ -3148,13 +3154,13 @@ function xi(i) {
|
|
|
3148
3154
|
...u
|
|
3149
3155
|
});
|
|
3150
3156
|
}
|
|
3151
|
-
}), [t, o, r]),
|
|
3157
|
+
}), [t, o, r]), D.useEffect(() => {
|
|
3152
3158
|
c.current.isValid && s._setValid(!0);
|
|
3153
|
-
}, [s]),
|
|
3159
|
+
}, [s]), D.useMemo(() => wi(l, s, c.current, !1), [l, s]);
|
|
3154
3160
|
}
|
|
3155
3161
|
var Ni = (i) => typeof i == "string", ki = (i, d, s, o, t) => Ni(i) ? P(s, i, t) : Array.isArray(i) ? i.map((r) => P(s, r)) : s;
|
|
3156
3162
|
function Si(i) {
|
|
3157
|
-
const d = Qe(), { control: s = d.control, name: o, defaultValue: t, disabled: r, exact: l } = i || {}, a =
|
|
3163
|
+
const d = Qe(), { control: s = d.control, name: o, defaultValue: t, disabled: r, exact: l } = i || {}, a = D.useRef(t), [c, u] = D.useState(s._getWatch(o, a.current));
|
|
3158
3164
|
return At(() => s._subscribe({
|
|
3159
3165
|
name: o,
|
|
3160
3166
|
formState: {
|
|
@@ -3162,7 +3168,7 @@ function Si(i) {
|
|
|
3162
3168
|
},
|
|
3163
3169
|
exact: l,
|
|
3164
3170
|
callback: (g) => !r && u(ki(o, s._names, g.values || s._formValues, !1, a.current))
|
|
3165
|
-
}), [o, s, r, l]),
|
|
3171
|
+
}), [o, s, r, l]), D.useEffect(() => s._removeUnmounted()), c;
|
|
3166
3172
|
}
|
|
3167
3173
|
function $i(i) {
|
|
3168
3174
|
const d = Qe(), { name: s, disabled: o, control: t = d.control, shouldUnregister: r } = i, l = bi(t._names.array, s), a = Si({
|
|
@@ -3174,11 +3180,11 @@ function $i(i) {
|
|
|
3174
3180
|
control: t,
|
|
3175
3181
|
name: s,
|
|
3176
3182
|
exact: !0
|
|
3177
|
-
}), u =
|
|
3183
|
+
}), u = D.useRef(i), g = D.useRef(t.register(s, {
|
|
3178
3184
|
...i.rules,
|
|
3179
3185
|
value: a,
|
|
3180
3186
|
...Pe(i.disabled) ? { disabled: i.disabled } : {}
|
|
3181
|
-
})),
|
|
3187
|
+
})), m = D.useMemo(() => Object.defineProperties({}, {
|
|
3182
3188
|
invalid: {
|
|
3183
3189
|
enumerable: !0,
|
|
3184
3190
|
get: () => !!P(c.errors, s)
|
|
@@ -3199,61 +3205,61 @@ function $i(i) {
|
|
|
3199
3205
|
enumerable: !0,
|
|
3200
3206
|
get: () => P(c.errors, s)
|
|
3201
3207
|
}
|
|
3202
|
-
}), [c, s]), b =
|
|
3208
|
+
}), [c, s]), b = D.useCallback((y) => g.current.onChange({
|
|
3203
3209
|
target: {
|
|
3204
|
-
value: Ci(
|
|
3210
|
+
value: Ci(y),
|
|
3205
3211
|
name: s
|
|
3206
3212
|
},
|
|
3207
3213
|
type: ut.CHANGE
|
|
3208
|
-
}), [s]), h =
|
|
3214
|
+
}), [s]), h = D.useCallback(() => g.current.onBlur({
|
|
3209
3215
|
target: {
|
|
3210
3216
|
value: P(t._formValues, s),
|
|
3211
3217
|
name: s
|
|
3212
3218
|
},
|
|
3213
3219
|
type: ut.BLUR
|
|
3214
|
-
}), [s, t._formValues]),
|
|
3215
|
-
const
|
|
3216
|
-
|
|
3217
|
-
focus: () =>
|
|
3218
|
-
select: () =>
|
|
3219
|
-
setCustomValidity: (
|
|
3220
|
-
reportValidity: () =>
|
|
3220
|
+
}), [s, t._formValues]), _ = D.useCallback((y) => {
|
|
3221
|
+
const f = P(t._fields, s);
|
|
3222
|
+
f && y && (f._f.ref = {
|
|
3223
|
+
focus: () => y.focus && y.focus(),
|
|
3224
|
+
select: () => y.select && y.select(),
|
|
3225
|
+
setCustomValidity: (C) => y.setCustomValidity(C),
|
|
3226
|
+
reportValidity: () => y.reportValidity()
|
|
3221
3227
|
});
|
|
3222
|
-
}, [t._fields, s]),
|
|
3228
|
+
}, [t._fields, s]), v = D.useMemo(() => ({
|
|
3223
3229
|
name: s,
|
|
3224
3230
|
value: a,
|
|
3225
3231
|
...Pe(o) || c.disabled ? { disabled: c.disabled || o } : {},
|
|
3226
3232
|
onChange: b,
|
|
3227
3233
|
onBlur: h,
|
|
3228
|
-
ref:
|
|
3229
|
-
}), [s, o, c.disabled, b, h,
|
|
3230
|
-
return
|
|
3231
|
-
const
|
|
3234
|
+
ref: _
|
|
3235
|
+
}), [s, o, c.disabled, b, h, _, a]);
|
|
3236
|
+
return D.useEffect(() => {
|
|
3237
|
+
const y = t._options.shouldUnregister || r;
|
|
3232
3238
|
t.register(s, {
|
|
3233
3239
|
...u.current.rules,
|
|
3234
3240
|
...Pe(u.current.disabled) ? { disabled: u.current.disabled } : {}
|
|
3235
3241
|
});
|
|
3236
|
-
const
|
|
3237
|
-
const w = P(t._fields,
|
|
3238
|
-
w && w._f && (w._f.mount =
|
|
3242
|
+
const f = (C, N) => {
|
|
3243
|
+
const w = P(t._fields, C);
|
|
3244
|
+
w && w._f && (w._f.mount = N);
|
|
3239
3245
|
};
|
|
3240
|
-
if (
|
|
3241
|
-
const
|
|
3242
|
-
dt(t._defaultValues, s,
|
|
3246
|
+
if (f(s, !0), y) {
|
|
3247
|
+
const C = Mt(P(t._options.defaultValues, s));
|
|
3248
|
+
dt(t._defaultValues, s, C), Ue(P(t._formValues, s)) && dt(t._formValues, s, C);
|
|
3243
3249
|
}
|
|
3244
3250
|
return !l && t.register(s), () => {
|
|
3245
|
-
(l ?
|
|
3251
|
+
(l ? y && !t._state.action : y) ? t.unregister(s) : f(s, !1);
|
|
3246
3252
|
};
|
|
3247
|
-
}, [s, t, l, r]),
|
|
3253
|
+
}, [s, t, l, r]), D.useEffect(() => {
|
|
3248
3254
|
t._setDisabledField({
|
|
3249
3255
|
disabled: o,
|
|
3250
3256
|
name: s
|
|
3251
3257
|
});
|
|
3252
|
-
}, [o, s, t]),
|
|
3253
|
-
field:
|
|
3258
|
+
}, [o, s, t]), D.useMemo(() => ({
|
|
3259
|
+
field: v,
|
|
3254
3260
|
formState: c,
|
|
3255
|
-
fieldState:
|
|
3256
|
-
}), [
|
|
3261
|
+
fieldState: m
|
|
3262
|
+
}), [v, c, m]);
|
|
3257
3263
|
}
|
|
3258
3264
|
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 = {
|
|
3259
3265
|
textInputContainer: Bi,
|
|
@@ -3290,24 +3296,24 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3290
3296
|
placeholder: c,
|
|
3291
3297
|
errorColor: u = "red",
|
|
3292
3298
|
width: g = 325,
|
|
3293
|
-
onClickForgotPass:
|
|
3299
|
+
onClickForgotPass: m = () => {
|
|
3294
3300
|
console.log("Click on forgot password");
|
|
3295
3301
|
},
|
|
3296
3302
|
forgotPassLabel: b = "forgot-password"
|
|
3297
|
-
} = i, { t: h } = L(), { control:
|
|
3303
|
+
} = i, { t: h } = L(), { control: _, trigger: v, clearErrors: y } = d, { errorColor: f } = Ne((x) => x), [C, N] = A(!1);
|
|
3298
3304
|
ae(l);
|
|
3299
|
-
const w = () => o ? o === "password" &&
|
|
3305
|
+
const w = () => o ? o === "password" && C ? "text" : o : "text";
|
|
3300
3306
|
return /* @__PURE__ */ n(
|
|
3301
3307
|
we,
|
|
3302
3308
|
{
|
|
3303
3309
|
name: s,
|
|
3304
|
-
control:
|
|
3310
|
+
control: _,
|
|
3305
3311
|
rules: {
|
|
3306
3312
|
required: l ? `${h(t)} ${h("errorMessages.required")}` : !1,
|
|
3307
3313
|
maxLength: r || void 0,
|
|
3308
3314
|
validate: a || void 0
|
|
3309
3315
|
},
|
|
3310
|
-
render: ({ field:
|
|
3316
|
+
render: ({ field: x, fieldState: S }) => {
|
|
3311
3317
|
var $;
|
|
3312
3318
|
return /* @__PURE__ */ p("div", { className: ye.textInputContainer, children: [
|
|
3313
3319
|
/* @__PURE__ */ p("h3", { className: ye.labelContainer, children: [
|
|
@@ -3325,7 +3331,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3325
3331
|
"input",
|
|
3326
3332
|
{
|
|
3327
3333
|
type: w(),
|
|
3328
|
-
...
|
|
3334
|
+
...x,
|
|
3329
3335
|
placeholder: c ? h(c) : "",
|
|
3330
3336
|
maxLength: r || void 0
|
|
3331
3337
|
}
|
|
@@ -3333,13 +3339,13 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3333
3339
|
o == "password" && /* @__PURE__ */ n(
|
|
3334
3340
|
"button",
|
|
3335
3341
|
{
|
|
3336
|
-
onClick: () =>
|
|
3342
|
+
onClick: () => N(!C),
|
|
3337
3343
|
type: "button",
|
|
3338
3344
|
className: ye.showPasswordButton,
|
|
3339
3345
|
children: /* @__PURE__ */ n(
|
|
3340
3346
|
"img",
|
|
3341
3347
|
{
|
|
3342
|
-
src:
|
|
3348
|
+
src: C ? Ii : Ai,
|
|
3343
3349
|
alt: h("show-password")
|
|
3344
3350
|
}
|
|
3345
3351
|
)
|
|
@@ -3348,12 +3354,12 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3348
3354
|
]
|
|
3349
3355
|
}
|
|
3350
3356
|
),
|
|
3351
|
-
o == "password" && /* @__PURE__ */ n("div", { className: ye.forgotPassButton, children: /* @__PURE__ */ n("button", { onClick:
|
|
3357
|
+
o == "password" && /* @__PURE__ */ n("div", { className: ye.forgotPassButton, children: /* @__PURE__ */ n("button", { onClick: m, children: h(b) }) }),
|
|
3352
3358
|
/* @__PURE__ */ n(
|
|
3353
3359
|
xe,
|
|
3354
3360
|
{
|
|
3355
3361
|
errorMessage: ($ = S.error) == null ? void 0 : $.message,
|
|
3356
|
-
errorColor:
|
|
3362
|
+
errorColor: f || u
|
|
3357
3363
|
}
|
|
3358
3364
|
)
|
|
3359
3365
|
] });
|
|
@@ -3379,41 +3385,41 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3379
3385
|
validateFunction: c,
|
|
3380
3386
|
placeholder: u,
|
|
3381
3387
|
errorColor: g = "red",
|
|
3382
|
-
width:
|
|
3388
|
+
width: m = 325,
|
|
3383
3389
|
options: b = []
|
|
3384
3390
|
//Used if we dont use react hook form
|
|
3385
|
-
} = i, { t: h } = L(), { control:
|
|
3391
|
+
} = i, { t: h } = L(), { control: _, trigger: v, clearErrors: y } = d || {}, { errorColor: f } = Ne((w) => w);
|
|
3386
3392
|
ae(a);
|
|
3387
|
-
const [
|
|
3388
|
-
return
|
|
3389
|
-
|
|
3390
|
-
}, [
|
|
3393
|
+
const [C, N] = A(null);
|
|
3394
|
+
return F(() => {
|
|
3395
|
+
C && s && s(C);
|
|
3396
|
+
}, [C, s]), d ? /* @__PURE__ */ n(
|
|
3391
3397
|
we,
|
|
3392
3398
|
{
|
|
3393
3399
|
name: o,
|
|
3394
|
-
control:
|
|
3400
|
+
control: _,
|
|
3395
3401
|
rules: {
|
|
3396
3402
|
required: a ? `${h(r)} ${h("errorMessages.required")}` : !1,
|
|
3397
3403
|
validate: c ? (w) => {
|
|
3398
|
-
let
|
|
3399
|
-
return c(w,
|
|
3404
|
+
let x = d.getValues();
|
|
3405
|
+
return c(w, x);
|
|
3400
3406
|
} : void 0
|
|
3401
3407
|
},
|
|
3402
|
-
render: ({ field: w, fieldState:
|
|
3408
|
+
render: ({ field: w, fieldState: x }) => {
|
|
3403
3409
|
var S;
|
|
3404
3410
|
return /* @__PURE__ */ p("div", { className: z.selectInputContainer, children: [
|
|
3405
3411
|
r && /* @__PURE__ */ p("h3", { className: z.labelContainer, children: [
|
|
3406
3412
|
h(r),
|
|
3407
3413
|
" ",
|
|
3408
|
-
a && /* @__PURE__ */ n("label", { style: { color:
|
|
3414
|
+
a && /* @__PURE__ */ n("label", { style: { color: x.error ? g : "" }, children: "*" })
|
|
3409
3415
|
] }),
|
|
3410
|
-
/* @__PURE__ */ p("div", { className: z.inputContainer, style: { width:
|
|
3416
|
+
/* @__PURE__ */ p("div", { className: z.inputContainer, style: { width: m }, children: [
|
|
3411
3417
|
/* @__PURE__ */ p(
|
|
3412
3418
|
"select",
|
|
3413
3419
|
{
|
|
3414
3420
|
...w,
|
|
3415
3421
|
onChange: ($) => {
|
|
3416
|
-
const k = $.target.value, B = b.every((
|
|
3422
|
+
const k = $.target.value, B = b.every((V) => typeof V.value == "number") ? Number(k) : k;
|
|
3417
3423
|
w.onChange(B);
|
|
3418
3424
|
},
|
|
3419
3425
|
className: z.selectInput,
|
|
@@ -3443,8 +3449,8 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3443
3449
|
/* @__PURE__ */ n(
|
|
3444
3450
|
xe,
|
|
3445
3451
|
{
|
|
3446
|
-
errorMessage: (S =
|
|
3447
|
-
errorColor:
|
|
3452
|
+
errorMessage: (S = x.error) == null ? void 0 : S.message,
|
|
3453
|
+
errorColor: f || g
|
|
3448
3454
|
}
|
|
3449
3455
|
)
|
|
3450
3456
|
] });
|
|
@@ -3456,26 +3462,26 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3456
3462
|
" ",
|
|
3457
3463
|
a && /* @__PURE__ */ n("label", { children: "*" })
|
|
3458
3464
|
] }),
|
|
3459
|
-
/* @__PURE__ */ p("div", { className: z.inputContainer, style: { width:
|
|
3465
|
+
/* @__PURE__ */ p("div", { className: z.inputContainer, style: { width: m }, children: [
|
|
3460
3466
|
/* @__PURE__ */ p(
|
|
3461
3467
|
"select",
|
|
3462
3468
|
{
|
|
3463
|
-
value:
|
|
3469
|
+
value: C || "",
|
|
3464
3470
|
onChange: (w) => {
|
|
3465
|
-
const
|
|
3466
|
-
|
|
3471
|
+
const x = w.target.value, S = b.every(($) => typeof $.value == "number") ? Number(x) : x;
|
|
3472
|
+
N(S);
|
|
3467
3473
|
},
|
|
3468
3474
|
className: z.selectInput,
|
|
3469
3475
|
children: [
|
|
3470
3476
|
/* @__PURE__ */ n("option", { value: "", disabled: !0, hidden: !0, children: h(u || "selectOption") }),
|
|
3471
|
-
b.map((w,
|
|
3477
|
+
b.map((w, x) => /* @__PURE__ */ n(
|
|
3472
3478
|
"option",
|
|
3473
3479
|
{
|
|
3474
3480
|
value: w.value,
|
|
3475
3481
|
className: z.option,
|
|
3476
3482
|
children: h(w.label)
|
|
3477
3483
|
},
|
|
3478
|
-
|
|
3484
|
+
x
|
|
3479
3485
|
))
|
|
3480
3486
|
]
|
|
3481
3487
|
}
|
|
@@ -3499,13 +3505,13 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3499
3505
|
errorColor: l = "red",
|
|
3500
3506
|
options: a = [],
|
|
3501
3507
|
multi: c = !1
|
|
3502
|
-
} = i, { t: u } = L(), { control: g, trigger:
|
|
3503
|
-
if (c &&
|
|
3504
|
-
let
|
|
3505
|
-
|
|
3508
|
+
} = i, { t: u } = L(), { control: g, trigger: m, clearErrors: b } = d, { errorColor: h } = Ne((y) => y), _ = ({ options: y, onChange: f, actualValue: C }) => {
|
|
3509
|
+
if (c && C && C.length > 0) {
|
|
3510
|
+
let N = C.filter((w) => w !== y);
|
|
3511
|
+
f(N);
|
|
3506
3512
|
}
|
|
3507
|
-
},
|
|
3508
|
-
c ?
|
|
3513
|
+
}, v = ({ options: y, onChange: f, actualValue: C }) => {
|
|
3514
|
+
c ? C && C.length > 0 ? f([...C, y]) : f([y]) : f(y);
|
|
3509
3515
|
};
|
|
3510
3516
|
return ae(t), /* @__PURE__ */ n(
|
|
3511
3517
|
we,
|
|
@@ -3513,12 +3519,12 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3513
3519
|
control: g,
|
|
3514
3520
|
name: s,
|
|
3515
3521
|
rules: {
|
|
3516
|
-
validate: (
|
|
3522
|
+
validate: (y) => t && (y == null || y === "") ? `${u(o)} ${u("errorMessages.required")}` : null
|
|
3517
3523
|
},
|
|
3518
3524
|
render: ({
|
|
3519
|
-
formState: { errors:
|
|
3520
|
-
field: { onChange:
|
|
3521
|
-
fieldState:
|
|
3525
|
+
formState: { errors: y },
|
|
3526
|
+
field: { onChange: f, onBlur: C, value: N, ref: w },
|
|
3527
|
+
fieldState: x
|
|
3522
3528
|
}) => {
|
|
3523
3529
|
var S;
|
|
3524
3530
|
return /* @__PURE__ */ n("div", { id: s + "id", className: se.radioButtonContainer, children: /* @__PURE__ */ p("div", { className: se.wholeInputContainer, children: [
|
|
@@ -3533,7 +3539,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3533
3539
|
t && /* @__PURE__ */ n(
|
|
3534
3540
|
"label",
|
|
3535
3541
|
{
|
|
3536
|
-
style: { color:
|
|
3542
|
+
style: { color: x.error ? l : "" },
|
|
3537
3543
|
children: "*"
|
|
3538
3544
|
}
|
|
3539
3545
|
)
|
|
@@ -3546,9 +3552,9 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3546
3552
|
label: $,
|
|
3547
3553
|
value: k,
|
|
3548
3554
|
disabled: B = !1,
|
|
3549
|
-
italicLabel:
|
|
3555
|
+
italicLabel: V
|
|
3550
3556
|
}, H) => {
|
|
3551
|
-
const T =
|
|
3557
|
+
const T = N && c ? N.isArray && (N == null ? void 0 : N.length) > 0 && N.some((j) => j === k) : N === k;
|
|
3552
3558
|
return /* @__PURE__ */ p("label", { children: [
|
|
3553
3559
|
/* @__PURE__ */ n(
|
|
3554
3560
|
"input",
|
|
@@ -3556,15 +3562,15 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3556
3562
|
type: "radio",
|
|
3557
3563
|
checked: T,
|
|
3558
3564
|
onChange: () => {
|
|
3559
|
-
c ? T ?
|
|
3560
|
-
actualValue:
|
|
3565
|
+
c ? T ? _({
|
|
3566
|
+
actualValue: N,
|
|
3561
3567
|
options: a,
|
|
3562
|
-
onChange:
|
|
3563
|
-
}) :
|
|
3564
|
-
actualValue:
|
|
3568
|
+
onChange: f
|
|
3569
|
+
}) : v({
|
|
3570
|
+
actualValue: N,
|
|
3565
3571
|
options: a,
|
|
3566
|
-
onChange:
|
|
3567
|
-
}) :
|
|
3572
|
+
onChange: f
|
|
3573
|
+
}) : f(k);
|
|
3568
3574
|
},
|
|
3569
3575
|
className: se.radioInput
|
|
3570
3576
|
}
|
|
@@ -3577,7 +3583,7 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3577
3583
|
/* @__PURE__ */ n(
|
|
3578
3584
|
xe,
|
|
3579
3585
|
{
|
|
3580
|
-
errorMessage: (S =
|
|
3586
|
+
errorMessage: (S = x.error) == null ? void 0 : S.message,
|
|
3581
3587
|
errorColor: h || l
|
|
3582
3588
|
}
|
|
3583
3589
|
)
|
|
@@ -3606,41 +3612,41 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3606
3612
|
//trackColors = ["#B32F5D", "#EFEFEF"],
|
|
3607
3613
|
required: u,
|
|
3608
3614
|
errorColor: g = "red",
|
|
3609
|
-
labelWidth:
|
|
3615
|
+
labelWidth: m = "300px",
|
|
3610
3616
|
sliderWidth: b = "300px",
|
|
3611
3617
|
minText: h,
|
|
3612
|
-
maxText:
|
|
3613
|
-
disabled:
|
|
3614
|
-
marks:
|
|
3618
|
+
maxText: _,
|
|
3619
|
+
disabled: v = !1,
|
|
3620
|
+
marks: y = Array.from(
|
|
3615
3621
|
{ length: l - r + 1 },
|
|
3616
|
-
(B,
|
|
3622
|
+
(B, V) => r + V
|
|
3617
3623
|
),
|
|
3618
|
-
showMarksNumber:
|
|
3619
|
-
} = i, { t:
|
|
3624
|
+
showMarksNumber: f = !0
|
|
3625
|
+
} = i, { t: C } = L(), { control: N, trigger: w, clearErrors: x } = d || {};
|
|
3620
3626
|
ae(u);
|
|
3621
|
-
const { errorColorForm: S } = Ne((B) => B), [$, k] =
|
|
3627
|
+
const { errorColorForm: S } = Ne((B) => B), [$, k] = A(a);
|
|
3622
3628
|
return d ? /* @__PURE__ */ n(
|
|
3623
3629
|
we,
|
|
3624
3630
|
{
|
|
3625
3631
|
name: o,
|
|
3626
|
-
control:
|
|
3632
|
+
control: N,
|
|
3627
3633
|
defaultValue: a,
|
|
3628
3634
|
rules: {
|
|
3629
|
-
required: u ? `${
|
|
3635
|
+
required: u ? `${C(t)} ${C("errorMessages.required")}` : !1
|
|
3630
3636
|
},
|
|
3631
|
-
render: ({ field: B, fieldState:
|
|
3637
|
+
render: ({ field: B, fieldState: V }) => {
|
|
3632
3638
|
var H;
|
|
3633
3639
|
return /* @__PURE__ */ p(
|
|
3634
3640
|
"div",
|
|
3635
3641
|
{
|
|
3636
3642
|
className: I.rankingSliderContainer,
|
|
3637
3643
|
style: {
|
|
3638
|
-
gridTemplateColumns: `${t &&
|
|
3644
|
+
gridTemplateColumns: `${t && m} ${b}`
|
|
3639
3645
|
},
|
|
3640
3646
|
children: [
|
|
3641
|
-
t && /* @__PURE__ */ n("p", { className: I.labelContainer, children:
|
|
3647
|
+
t && /* @__PURE__ */ n("p", { className: I.labelContainer, children: C(t) }),
|
|
3642
3648
|
/* @__PURE__ */ p("div", { className: I.inputContainer, children: [
|
|
3643
|
-
h && /* @__PURE__ */ n("div", { className: I.minLabel, children:
|
|
3649
|
+
h && /* @__PURE__ */ n("div", { className: I.minLabel, children: C(h) }),
|
|
3644
3650
|
/* @__PURE__ */ p("div", { children: [
|
|
3645
3651
|
/* @__PURE__ */ n(
|
|
3646
3652
|
He,
|
|
@@ -3662,17 +3668,17 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3662
3668
|
),
|
|
3663
3669
|
trackClassName: I.track,
|
|
3664
3670
|
markClassName: I.mark,
|
|
3665
|
-
disabled:
|
|
3671
|
+
disabled: v
|
|
3666
3672
|
}
|
|
3667
3673
|
),
|
|
3668
|
-
|
|
3674
|
+
y && /* @__PURE__ */ n("div", { className: I.labels, children: y.map((T) => /* @__PURE__ */ n("span", { children: f && T }, T)) })
|
|
3669
3675
|
] }),
|
|
3670
|
-
|
|
3676
|
+
_ && /* @__PURE__ */ n("div", { className: I.maxLabel, children: C(_) })
|
|
3671
3677
|
] }),
|
|
3672
3678
|
/* @__PURE__ */ n(
|
|
3673
3679
|
xe,
|
|
3674
3680
|
{
|
|
3675
|
-
errorMessage: (H =
|
|
3681
|
+
errorMessage: (H = V.error) == null ? void 0 : H.message,
|
|
3676
3682
|
errorColor: S || g
|
|
3677
3683
|
}
|
|
3678
3684
|
)
|
|
@@ -3685,11 +3691,11 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3685
3691
|
"div",
|
|
3686
3692
|
{
|
|
3687
3693
|
className: I.rankingSliderContainer,
|
|
3688
|
-
style: { gridTemplateColumns: `${t &&
|
|
3694
|
+
style: { gridTemplateColumns: `${t && m} ${b}` },
|
|
3689
3695
|
children: [
|
|
3690
|
-
t && /* @__PURE__ */ n("p", { className: I.labelContainer, children:
|
|
3696
|
+
t && /* @__PURE__ */ n("p", { className: I.labelContainer, children: C(t) }),
|
|
3691
3697
|
/* @__PURE__ */ p("div", { className: I.inputContainer, children: [
|
|
3692
|
-
h && /* @__PURE__ */ n("div", { className: I.minLabel, children:
|
|
3698
|
+
h && /* @__PURE__ */ n("div", { className: I.minLabel, children: C(h) }),
|
|
3693
3699
|
/* @__PURE__ */ p("div", { children: [
|
|
3694
3700
|
/* @__PURE__ */ n(
|
|
3695
3701
|
He,
|
|
@@ -3713,12 +3719,12 @@ const we = (i) => i.render($i(i)), Bi = "_textInputContainer_1o3iy_2", Li = "_la
|
|
|
3713
3719
|
),
|
|
3714
3720
|
trackClassName: I.track,
|
|
3715
3721
|
markClassName: I.mark,
|
|
3716
|
-
disabled:
|
|
3722
|
+
disabled: v
|
|
3717
3723
|
}
|
|
3718
3724
|
),
|
|
3719
|
-
|
|
3725
|
+
y && /* @__PURE__ */ n("div", { className: I.labels, children: y.map((B) => /* @__PURE__ */ n("span", { children: f && B }, B)) })
|
|
3720
3726
|
] }),
|
|
3721
|
-
|
|
3727
|
+
_ && /* @__PURE__ */ n("div", { className: I.maxLabel, children: C(_) })
|
|
3722
3728
|
] })
|
|
3723
3729
|
]
|
|
3724
3730
|
}
|
|
@@ -3862,18 +3868,18 @@ const _e = ({
|
|
|
3862
3868
|
className: Te.categorySelector,
|
|
3863
3869
|
style: t ? { ...t } : {},
|
|
3864
3870
|
children: i.map((a, c) => {
|
|
3865
|
-
const { id: u, label: g } = a,
|
|
3871
|
+
const { id: u, label: g } = a, m = s == u;
|
|
3866
3872
|
return /* @__PURE__ */ n(
|
|
3867
3873
|
"button",
|
|
3868
3874
|
{
|
|
3869
|
-
className: `${Te.sectionItem} ${
|
|
3875
|
+
className: `${Te.sectionItem} ${m ? Te.sectionItemActive : ""}`,
|
|
3870
3876
|
type: "button",
|
|
3871
|
-
style: { backgroundColor:
|
|
3877
|
+
style: { backgroundColor: m ? o : "inherit" },
|
|
3872
3878
|
onClick: () => l(u),
|
|
3873
3879
|
children: /* @__PURE__ */ n(
|
|
3874
3880
|
"span",
|
|
3875
3881
|
{
|
|
3876
|
-
style: { color:
|
|
3882
|
+
style: { color: m ? "white" : "inherit" },
|
|
3877
3883
|
className: Te.sectionLabel,
|
|
3878
3884
|
children: r(g)
|
|
3879
3885
|
}
|
|
@@ -3896,36 +3902,36 @@ const _e = ({
|
|
|
3896
3902
|
showCategorySelector: c = !0,
|
|
3897
3903
|
defaultCategory: u = null,
|
|
3898
3904
|
categoryLabel: g = "Select Category",
|
|
3899
|
-
activeCategory:
|
|
3905
|
+
activeCategory: m = null,
|
|
3900
3906
|
activeCategoryColor: b = "#b32f5d",
|
|
3901
|
-
onSubmit: h = (
|
|
3907
|
+
onSubmit: h = (_) => console.log("Form submitted with: ", _)
|
|
3902
3908
|
}) => {
|
|
3903
|
-
const { t:
|
|
3904
|
-
|
|
3909
|
+
const { t: _ } = L(), { handleSubmit: v, control: y } = i;
|
|
3910
|
+
F(() => {
|
|
3905
3911
|
r && Ne.setState(() => ({ errorColor: r }));
|
|
3906
3912
|
}, [r]);
|
|
3907
|
-
const
|
|
3913
|
+
const f = he(() => d ? d.filter((k) => k.category).map((k) => {
|
|
3908
3914
|
var B;
|
|
3909
3915
|
return {
|
|
3910
3916
|
id: k.categoryId,
|
|
3911
3917
|
label: k.category,
|
|
3912
3918
|
hasSubcategories: ((B = k.subcategories) == null ? void 0 : B.length) > 0
|
|
3913
3919
|
};
|
|
3914
|
-
}) : [], [d]),
|
|
3915
|
-
const B = d == null ? void 0 : d.find((
|
|
3920
|
+
}) : [], [d]), C = (k) => {
|
|
3921
|
+
const B = d == null ? void 0 : d.find((V) => V.categoryId === k);
|
|
3916
3922
|
return (B == null ? void 0 : B.subcategories) || [];
|
|
3917
|
-
}, [
|
|
3918
|
-
|
|
3919
|
-
), [
|
|
3920
|
-
|
|
3921
|
-
!
|
|
3922
|
-
}, [
|
|
3923
|
-
const k =
|
|
3924
|
-
!
|
|
3925
|
-
}, [
|
|
3923
|
+
}, [N, w] = A(
|
|
3924
|
+
m || u || null
|
|
3925
|
+
), [x, S] = A(null);
|
|
3926
|
+
F(() => {
|
|
3927
|
+
!N && f.length > 0 && w(f[0].id);
|
|
3928
|
+
}, [f, N]), F(() => {
|
|
3929
|
+
const k = C(N);
|
|
3930
|
+
!x && (k == null ? void 0 : k.length) > 0 && S(k[0].id);
|
|
3931
|
+
}, [N, x, d]);
|
|
3926
3932
|
const $ = (k, B) => {
|
|
3927
|
-
var
|
|
3928
|
-
if (((
|
|
3933
|
+
var V;
|
|
3934
|
+
if (((V = k.subcategories) == null ? void 0 : V.length) > 0) {
|
|
3929
3935
|
const H = k.subcategories;
|
|
3930
3936
|
return /* @__PURE__ */ p("div", { children: [
|
|
3931
3937
|
/* @__PURE__ */ n(
|
|
@@ -3935,7 +3941,7 @@ const _e = ({
|
|
|
3935
3941
|
children: /* @__PURE__ */ n(
|
|
3936
3942
|
gt,
|
|
3937
3943
|
{
|
|
3938
|
-
activeCategory:
|
|
3944
|
+
activeCategory: x,
|
|
3939
3945
|
categories: H,
|
|
3940
3946
|
onChange: (T) => S(T),
|
|
3941
3947
|
activeColor: b
|
|
@@ -3945,7 +3951,7 @@ const _e = ({
|
|
|
3945
3951
|
k.categoryId
|
|
3946
3952
|
),
|
|
3947
3953
|
H.map((T, j) => {
|
|
3948
|
-
const Z = !
|
|
3954
|
+
const Z = !x || T.id === x;
|
|
3949
3955
|
return s ? /* @__PURE__ */ n(
|
|
3950
3956
|
"div",
|
|
3951
3957
|
{
|
|
@@ -3957,7 +3963,7 @@ const _e = ({
|
|
|
3957
3963
|
_e,
|
|
3958
3964
|
{
|
|
3959
3965
|
inputs: T.inputs,
|
|
3960
|
-
control:
|
|
3966
|
+
control: y,
|
|
3961
3967
|
inputContainerStyles: o,
|
|
3962
3968
|
errorColor: r,
|
|
3963
3969
|
reactHookFormInstance: i
|
|
@@ -3973,12 +3979,12 @@ const _e = ({
|
|
|
3973
3979
|
display: Z ? "block" : "none"
|
|
3974
3980
|
},
|
|
3975
3981
|
children: [
|
|
3976
|
-
/* @__PURE__ */ n("h3", { style: { marginBottom: 15 }, children:
|
|
3982
|
+
/* @__PURE__ */ n("h3", { style: { marginBottom: 15 }, children: _(T.label) }),
|
|
3977
3983
|
/* @__PURE__ */ n(
|
|
3978
3984
|
_e,
|
|
3979
3985
|
{
|
|
3980
3986
|
inputs: T.inputs,
|
|
3981
|
-
control:
|
|
3987
|
+
control: y,
|
|
3982
3988
|
inputContainerStyles: o,
|
|
3983
3989
|
errorColor: r,
|
|
3984
3990
|
reactHookFormInstance: i
|
|
@@ -3995,18 +4001,18 @@ const _e = ({
|
|
|
3995
4001
|
_e,
|
|
3996
4002
|
{
|
|
3997
4003
|
inputs: k.inputs,
|
|
3998
|
-
control:
|
|
4004
|
+
control: y,
|
|
3999
4005
|
inputContainerStyles: o,
|
|
4000
4006
|
errorColor: r,
|
|
4001
4007
|
reactHookFormInstance: i
|
|
4002
4008
|
}
|
|
4003
4009
|
) }, k.categoryId) : /* @__PURE__ */ p("div", { style: { width: "100%" }, children: [
|
|
4004
|
-
/* @__PURE__ */ n("h2", { children:
|
|
4010
|
+
/* @__PURE__ */ n("h2", { children: _(k.category) }),
|
|
4005
4011
|
/* @__PURE__ */ n(
|
|
4006
4012
|
_e,
|
|
4007
4013
|
{
|
|
4008
4014
|
inputs: k.inputs,
|
|
4009
|
-
control:
|
|
4015
|
+
control: y,
|
|
4010
4016
|
inputContainerStyles: o,
|
|
4011
4017
|
errorColor: r,
|
|
4012
4018
|
reactHookFormInstance: i
|
|
@@ -4014,12 +4020,12 @@ const _e = ({
|
|
|
4014
4020
|
)
|
|
4015
4021
|
] }, k.categoryId);
|
|
4016
4022
|
};
|
|
4017
|
-
return /* @__PURE__ */ p("form", { className: fe.formContainer, onSubmit:
|
|
4018
|
-
c &&
|
|
4023
|
+
return /* @__PURE__ */ p("form", { className: fe.formContainer, onSubmit: v(h), children: [
|
|
4024
|
+
c && f.length > 0 && /* @__PURE__ */ n("div", { className: fe.categorySelectorContainer, children: /* @__PURE__ */ n(
|
|
4019
4025
|
gt,
|
|
4020
4026
|
{
|
|
4021
|
-
activeCategory:
|
|
4022
|
-
categories:
|
|
4027
|
+
activeCategory: N,
|
|
4028
|
+
categories: f,
|
|
4023
4029
|
onChange: (k) => {
|
|
4024
4030
|
w(k), S(null);
|
|
4025
4031
|
},
|
|
@@ -4027,8 +4033,8 @@ const _e = ({
|
|
|
4027
4033
|
}
|
|
4028
4034
|
) }),
|
|
4029
4035
|
/* @__PURE__ */ n("div", { className: fe.formObjectContainer, children: d == null ? void 0 : d.map((k, B) => {
|
|
4030
|
-
const
|
|
4031
|
-
return k.category && !
|
|
4036
|
+
const V = k.categoryId === N;
|
|
4037
|
+
return k.category && !V ? null : k.category && V ? /* @__PURE__ */ n(
|
|
4032
4038
|
"div",
|
|
4033
4039
|
{
|
|
4034
4040
|
style: {
|
|
@@ -4042,7 +4048,7 @@ const _e = ({
|
|
|
4042
4048
|
_e,
|
|
4043
4049
|
{
|
|
4044
4050
|
inputs: k.inputs,
|
|
4045
|
-
control:
|
|
4051
|
+
control: y,
|
|
4046
4052
|
inputContainerStyles: o,
|
|
4047
4053
|
errorColor: r,
|
|
4048
4054
|
reactHookFormInstance: i
|
|
@@ -4050,7 +4056,7 @@ const _e = ({
|
|
|
4050
4056
|
);
|
|
4051
4057
|
}) }),
|
|
4052
4058
|
/* @__PURE__ */ p("div", { className: fe.buttonContainer, children: [
|
|
4053
|
-
/* @__PURE__ */ n(Fe, { containerStyles: a, type: "submit", children:
|
|
4059
|
+
/* @__PURE__ */ n(Fe, { containerStyles: a, type: "submit", children: _(l) }),
|
|
4054
4060
|
/* @__PURE__ */ n(xe, { errorMessage: t, errorColor: r })
|
|
4055
4061
|
] })
|
|
4056
4062
|
] });
|
|
@@ -4213,15 +4219,15 @@ const D1 = "_switchContainer_194wl_2", F1 = "_labelRight_194wl_9", A1 = "_labelL
|
|
|
4213
4219
|
colorOn: c = "#5A514D",
|
|
4214
4220
|
disabled: u = !1,
|
|
4215
4221
|
width: g = 240
|
|
4216
|
-
} = i, { t:
|
|
4217
|
-
|
|
4218
|
-
},
|
|
4222
|
+
} = i, { t: m } = L(), { control: b } = d || {}, [h, _] = A(a), v = (f) => {
|
|
4223
|
+
_(f), s && s(f);
|
|
4224
|
+
}, y = (f, C) => /* @__PURE__ */ p("div", { className: pe.switchContainer, style: { width: `${g}px` }, children: [
|
|
4219
4225
|
r && /* @__PURE__ */ n(
|
|
4220
4226
|
"span",
|
|
4221
4227
|
{
|
|
4222
4228
|
className: pe.labelLeft,
|
|
4223
4229
|
style: { width: `${(g - 74) / 2}px` },
|
|
4224
|
-
children:
|
|
4230
|
+
children: m(r)
|
|
4225
4231
|
}
|
|
4226
4232
|
),
|
|
4227
4233
|
/* @__PURE__ */ p("label", { className: `${pe.switch} ${u ? pe.disabled : ""}`, children: [
|
|
@@ -4229,8 +4235,8 @@ const D1 = "_switchContainer_194wl_2", F1 = "_labelRight_194wl_9", A1 = "_labelL
|
|
|
4229
4235
|
"input",
|
|
4230
4236
|
{
|
|
4231
4237
|
type: "checkbox",
|
|
4232
|
-
checked: !!
|
|
4233
|
-
onChange: () =>
|
|
4238
|
+
checked: !!f,
|
|
4239
|
+
onChange: () => C(!f),
|
|
4234
4240
|
disabled: u
|
|
4235
4241
|
}
|
|
4236
4242
|
),
|
|
@@ -4239,12 +4245,12 @@ const D1 = "_switchContainer_194wl_2", F1 = "_labelRight_194wl_9", A1 = "_labelL
|
|
|
4239
4245
|
{
|
|
4240
4246
|
className: pe.slider,
|
|
4241
4247
|
style: {
|
|
4242
|
-
"--switch-thumb-color": o ?
|
|
4248
|
+
"--switch-thumb-color": o ? f ? c : "#ccc" : c
|
|
4243
4249
|
}
|
|
4244
4250
|
}
|
|
4245
4251
|
)
|
|
4246
4252
|
] }),
|
|
4247
|
-
l && /* @__PURE__ */ n("span", { className: pe.labelRight, style: { width: `${(g - 74) / 2}px` }, children:
|
|
4253
|
+
l && /* @__PURE__ */ n("span", { className: pe.labelRight, style: { width: `${(g - 74) / 2}px` }, children: m(l) })
|
|
4248
4254
|
] });
|
|
4249
4255
|
return d ? /* @__PURE__ */ n(
|
|
4250
4256
|
we,
|
|
@@ -4252,9 +4258,9 @@ const D1 = "_switchContainer_194wl_2", F1 = "_labelRight_194wl_9", A1 = "_labelL
|
|
|
4252
4258
|
name: t,
|
|
4253
4259
|
control: b,
|
|
4254
4260
|
defaultValue: a,
|
|
4255
|
-
render: ({ field:
|
|
4261
|
+
render: ({ field: f }) => y(f.value, f.onChange)
|
|
4256
4262
|
}
|
|
4257
|
-
) :
|
|
4263
|
+
) : y(h, v);
|
|
4258
4264
|
};
|
|
4259
4265
|
R1.propTypes = {
|
|
4260
4266
|
input: e.shape({
|
|
@@ -4297,7 +4303,7 @@ const z1 = "_container_gnwec_2", H1 = "_burger_gnwec_6", K1 = "_menu_gnwec_41",
|
|
|
4297
4303
|
button: G1,
|
|
4298
4304
|
active: Y1
|
|
4299
4305
|
}, qt = ({ options: i, backgroundColor: d, textColor: s, iconColor: o }) => {
|
|
4300
|
-
const [t, r] =
|
|
4306
|
+
const [t, r] = A(!1), l = () => r(!t), a = () => r(!1), c = 7, u = t ? 11 : 0, g = t ? 13 : 0, m = t ? -11.51666 : 0, b = t ? -13 : 0;
|
|
4301
4307
|
return /* @__PURE__ */ p("div", { className: Q.container, children: [
|
|
4302
4308
|
/* @__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: [
|
|
4303
4309
|
/* @__PURE__ */ n(
|
|
@@ -4316,7 +4322,7 @@ const z1 = "_container_gnwec_2", H1 = "_burger_gnwec_6", K1 = "_menu_gnwec_41",
|
|
|
4316
4322
|
"g",
|
|
4317
4323
|
{
|
|
4318
4324
|
style: {
|
|
4319
|
-
transform: `translate(${g}px,${
|
|
4325
|
+
transform: `translate(${g}px,${m}px)`,
|
|
4320
4326
|
transition: "transform 0.8s cubic-bezier(0.42, 0, 0.58, 1)",
|
|
4321
4327
|
transformBox: "fill-box",
|
|
4322
4328
|
transformOrigin: "0 0"
|
|
@@ -4328,7 +4334,7 @@ const z1 = "_container_gnwec_2", H1 = "_burger_gnwec_6", K1 = "_menu_gnwec_41",
|
|
|
4328
4334
|
"g",
|
|
4329
4335
|
{
|
|
4330
4336
|
style: {
|
|
4331
|
-
transform: `translate(${b}px,${
|
|
4337
|
+
transform: `translate(${b}px,${m}px)`,
|
|
4332
4338
|
transition: "transform 0.8s cubic-bezier(0.42, 0, 0.58, 1)",
|
|
4333
4339
|
transformBox: "fill-box",
|
|
4334
4340
|
transformOrigin: "0 0"
|
|
@@ -4364,12 +4370,12 @@ const z1 = "_container_gnwec_2", H1 = "_burger_gnwec_6", K1 = "_menu_gnwec_41",
|
|
|
4364
4370
|
{
|
|
4365
4371
|
className: Q.menu,
|
|
4366
4372
|
style: { backgroundColor: d, color: s },
|
|
4367
|
-
children: /* @__PURE__ */ n("ul", { className: Q.list, children: i.map((h,
|
|
4373
|
+
children: /* @__PURE__ */ n("ul", { className: Q.list, children: i.map((h, _) => /* @__PURE__ */ p("li", { className: Q.item, children: [
|
|
4368
4374
|
h.url && /* @__PURE__ */ n(
|
|
4369
4375
|
ft,
|
|
4370
4376
|
{
|
|
4371
4377
|
to: h.url,
|
|
4372
|
-
className: ({ isActive:
|
|
4378
|
+
className: ({ isActive: v }) => `${Q.link} ${v ? Q.active : ""}`,
|
|
4373
4379
|
onClick: a,
|
|
4374
4380
|
style: { color: s },
|
|
4375
4381
|
children: h.name
|
|
@@ -4386,7 +4392,7 @@ const z1 = "_container_gnwec_2", H1 = "_burger_gnwec_6", K1 = "_menu_gnwec_41",
|
|
|
4386
4392
|
}
|
|
4387
4393
|
),
|
|
4388
4394
|
h.component && h.component
|
|
4389
|
-
] },
|
|
4395
|
+
] }, _)) })
|
|
4390
4396
|
}
|
|
4391
4397
|
)
|
|
4392
4398
|
] });
|