@tmf_ciclica/ciclicastorybook 1.1.188 → 1.1.189
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 +289 -290
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";@import"https://unpkg.com/maplibre-gl@^5.3.0/dist/maplibre-gl.css";@import"https://fonts.googleapis.com/css2?family=Poppins:wght@400;500&display=swap";._ambitSelector_mcunf_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;height:100%;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;padding-bottom:26px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23{justify-content:flex-start;width:100%;flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39{font-size:18px;font-weight:600;flex:1}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitName_mcunf_39 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53{font-size:18px;font-weight:600;flex:.5}._ambitSelector_mcunf_2 ._header_mcunf_13 ._nameDateContainer_mcunf_23 ._ambitDate_mcunf_53 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._ambitSelector_mcunf_2 ._header_mcunf_13 ._buttonsContainer_mcunf_67{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._ambitSelector_mcunf_2 ._ambitListContainer_mcunf_76{flex:1;width:100%}._ambitSelector_mcunf_2 ._newAmbitButtonContainer_mcunf_80{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:100%;padding-bottom:20px}._ambitItem_1qa6u_2{display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;gap:10px;width:100%;padding-bottom:30px;padding-top:30px}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16{flex:1;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;cursor:pointer}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitName_1qa6u_16{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;flex:1}._ambitItem_1qa6u_2 ._ambitNameDate_1qa6u_16 ._ambitDate_1qa6u_35{flex:.5}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center;gap:8px}._ambitItem_1qa6u_2 ._ambitButtons_1qa6u_38 button:disabled{opacity:.5;cursor:default}._generalButton_phq4n_2{padding:5px 95px;border-radius:100px}._generalButton_phq4n_2:disabled{opacity:.6}._buttonsContainer_1ks7x_2{display:flex;gap:8px}._buttonsContainer_1ks7x_2._vertical_1ks7x_6{flex-direction:column}._buttonsContainer_1ks7x_2._horizontal_1ks7x_9{flex-direction:row}._button_1ks7x_2{background:transparent;border:none;display:flex;align-items:center;cursor:pointer;padding:4px;position:relative}._button_1ks7x_2:hover{opacity:.8}._button_1ks7x_2._active_1ks7x_25{font-weight:700}._button_1ks7x_2 ._buttonName_1ks7x_28{margin:0 4px}._button_1ks7x_2:disabled{opacity:.5!important;cursor:auto}._left_1l4m4_2{position:absolute;width:auto;bottom:50%;right:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000}._left_1l4m4_2:before{content:"";position:absolute;top:50%;left:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent transparent #ccc;z-index:-2}._left_1l4m4_2:after{content:"";position:absolute;top:50%;left:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent transparent #fff;z-index:-1}._top_1l4m4_40{position:absolute;width:auto;bottom:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._top_1l4m4_40:before{content:"";position:absolute;top:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:#ccc transparent transparent transparent;z-index:-2}._top_1l4m4_40:after{content:"";position:absolute;top:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:#fff transparent transparent transparent;z-index:-1}._bottom_1l4m4_79{position:absolute;width:auto;top:calc(100% + 10px);right:50%;transform:translate(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:10px;margin:0;white-space:nowrap;color:#000;z-index:10}._bottom_1l4m4_79:before{content:"";position:absolute;bottom:100%;left:50%;transform:translate(-50%);border-width:.6em;border-style:solid;border-color:transparent transparent #ccc transparent;z-index:-2}._bottom_1l4m4_79:after{content:"";position:absolute;bottom:calc(100% - 1px);left:50%;transform:translate(-50%);border-width:.5em;border-style:solid;border-color:transparent transparent #fff transparent;z-index:-1}._right_1l4m4_118{position:absolute;width:auto;bottom:50%;left:calc(100% + 10px);transform:translateY(50%);font-size:16px;background-color:#fff;border:1px solid #ccc;border-radius:4px;padding:20px;margin:0;white-space:nowrap;color:#000;z-index:10}._right_1l4m4_118:before{content:"";position:absolute;top:50%;right:100%;transform:translateY(-50%);border-width:.6em;border-style:solid;border-color:transparent #ccc transparent transparent;z-index:-2}._right_1l4m4_118:after{content:"";position:absolute;top:50%;right:calc(100% - 1px);transform:translateY(-50%);border-width:.5em;border-style:solid;border-color:transparent #fff transparent transparent;z-index:-1}._indicatorsCategory_fj2r2_2{overflow:hidden;min-height:50px}._indicatorsCategory_fj2r2_2 ._title_fj2r2_6{align-items:center;gap:10px;cursor:pointer;display:flex;height:50px}._indicatorsCategory_fj2r2_2 ._title_fj2r2_6._mainTitle_fj2r2_13{border-bottom:1px solid;height:70px}._indicatorsCategory_fj2r2_2 ._list_fj2r2_17{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_fj99t_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_fj99t_2 ._FiltersAmbitHeader_fj99t_15{display:flex;flex-wrap:nowrap;justify-content:start;gap:30px;flex-direction:column;align-items:start}._FiltersAmbitContainer_fj99t_2 ._FiltersAmbitHeader_fj99t_15 ._FiltersAmbitTitle_fj99t_23{font-size:18px;font-weight:600;border-bottom:1.5px solid #605B56;width:100%;height:70px;display:flex;align-items:center}._FiltersAmbitContainer_fj99t_2 ._FiltersAmbitHeader_fj99t_15 ._FiltersAmbitDescription_fj99t_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_fj99t_2 ._FiltersAmbitHeader_fj99t_15 ._FiltersAmbitDescription_fj99t_32 ._FiltersAmbitDescriptionTitle_fj99t_43{font-size:18px;font-weight:600}._FiltersAmbitContainer_fj99t_2 ._warning_fj99t_47{color:red}._FiltersAmbitContainer_fj99t_2 ._buttonContainer_fj99t_50{width:100%;margin-left:-24px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;margin-bottom:20px}._barChartContainer_d2f1z_2{height:100%;width:100%;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center}._graphicContainer_c9zrg_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:center;width:100%;border:1.5px solid black;padding:33px 50px;border-radius:20px}._graphicContainer_c9zrg_2 ._titleContainer_c9zrg_14{display:flex;flex-wrap:nowrap;gap:0;flex-direction:row;align-items:center;justify-content:center;margin-bottom:83px}._indicatorsCategory_1cu33_2{overflow:hidden}._indicatorsCategory_1cu33_2 ._title_1cu33_5{align-items:center;gap:10px;cursor:pointer;margin-bottom:25px}._indicatorsCategory_1cu33_2 ._list_1cu33_11{display:flex;flex-wrap:nowrap;justify-content:start;flex-direction:column;align-items:start;width:100%;gap:20px;padding-bottom:20px}._indicatorContainer_oqrkc_2{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:center;gap:10px}._indicatorContainer_oqrkc_2 ._indicatorNameContainer_oqrkc_11{gap:10px;display:grid;grid-template-columns:15px auto;align-items:center}._indicatorContainer_oqrkc_2 ._dot_oqrkc_17{border-radius:100px;width:16px;height:16px;display:flex;align-items:center;justify-content:center}._indicatorContainer_oqrkc_2 ._indicatorName_oqrkc_11{cursor:pointer;font-weight:400;text-align:left}._switchExternalContainer_oqrkc_31{display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:20px 0 0}._switchExternalContainer_oqrkc_31 ._switchType_oqrkc_40{margin:0;width:100%}._switchExternalContainer_oqrkc_31 ._switchType_oqrkc_40 ._switchTypeOptions_oqrkc_44{gap:20px;display:flex;flex-wrap:nowrap;justify-content:start;gap:0;flex-direction:column;align-items:start;margin:0 0 20px 23px}._switchExternalContainer_oqrkc_31 ._switchType_oqrkc_40 ._switchTypeOptions_oqrkc_44 ._optionContainer_oqrkc_55{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;gap:10px;cursor:pointer}._switchExternalContainer_oqrkc_31 ._switchType_oqrkc_40 ._switchTypeOptions_oqrkc_44 ._optionContainer_oqrkc_55 ._customRadious_oqrkc_65{width:16px;height:16px;border-radius:100px;border:1px solid;padding:0}._switchExternalContainer_oqrkc_31 ._switchType_oqrkc_40 ._switchTypeOptions_oqrkc_44 ._optionContainer_oqrkc_55 ._optionText_oqrkc_72{font-weight:400}._indicatorsSubCategory_1dzsi_2{overflow:hidden}._indicatorsSubCategory_1dzsi_2 h3{text-align:left}._indicatorsSubCategory_1dzsi_2 ._list_1dzsi_8{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:start;margin:20px 0;gap:20px}._indicatorsList_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_1k3i4_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:column;align-items:flex-start;width:100%;padding-left:24px;height:100%;flex:1}._elementSelector_1k3i4_2 ._header_1k3i4_14{width:100%;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:0;flex-direction:row;align-items:center;height:70px}._elementSelector_1k3i4_2 ._header_1k3i4_14 ._nameDateContainer_1k3i4_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_1k3i4_2 ._header_1k3i4_14 ._nameDateContainer_1k3i4_24 ._elementName_1k3i4_40{font-size:18px;font-weight:600;flex:1}._elementSelector_1k3i4_2 ._header_1k3i4_14 ._nameDateContainer_1k3i4_24 ._elementName_1k3i4_40 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1k3i4_2 ._header_1k3i4_14 ._nameDateContainer_1k3i4_24 ._elementDate_1k3i4_54{font-size:18px;font-weight:600;flex:.5}._elementSelector_1k3i4_2 ._header_1k3i4_14 ._nameDateContainer_1k3i4_24 ._elementDate_1k3i4_54 button{display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:5px}._elementSelector_1k3i4_2 ._header_1k3i4_14 ._buttonsContainer_1k3i4_68{flex:.3;display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:0;flex-direction:row;align-items:center}._elementSelector_1k3i4_2 ._elementListContainer_1k3i4_77{flex:1;width:100%}._elementSelector_1k3i4_2 ._newElementButtonContainer_1k3i4_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_9bdf4_2{min-height:50px;width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;gap:0;flex-direction:row;align-items:center;gap:10px;background-color:#efefef;border-radius:10px;padding:5px}._categorySelector_9bdf4_2 ._sectionItemActive_9bdf4_16{color:#fff}._categorySelector_9bdf4_2 ._sectionItem_9bdf4_16{border-radius:10px;display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;padding:5px;width:120px;height:100%}._overlay_mnd4j_2{position:fixed;top:0;left:0;width:100vw;height:100vh;background:#0009;display:flex;align-items:center;justify-content:center;z-index:9999}._modal_mnd4j_15{background:#fff;border-radius:12px;position:relative;padding:24px 32px;display:flex;flex-direction:column;align-items:center;text-align:center;box-shadow:0 4px 20px #0003;overflow:hidden;min-width:300px}._closeButton_mnd4j_29{position:absolute;top:3px;right:8px;background:transparent;border:none;font-size:20px;cursor:pointer}._icon_mnd4j_39{width:60px;height:60px;margin-bottom:16px}._message_mnd4j_45{font-size:18px;font-weight:700;margin-bottom:8px}._submessage_mnd4j_51{font-size:14px;color:#666;margin-bottom:20px}._buttonsContainer_mnd4j_57{display:flex;gap:12px;justify-content:center;flex-wrap:nowrap}._buttonWrapper_mnd4j_64{display:inline-flex}._stepsContainer_1cyua_3{display:flex;flex-direction:column;position:relative}._stepWrapper_1cyua_9{display:flex;align-items:center;position:relative;margin-bottom:1.5rem}._stepWrapper_1cyua_9:last-child{margin-bottom:0}._circleContainer_1cyua_19{position:relative}._circle_1cyua_19{width:28px;height:28px;border-radius:50%;border:2px solid #ccc;background-color:#fff;color:#aaa;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;cursor:pointer;z-index:1}._active_1cyua_39{color:#fff;border:none}._completed_1cyua_44{background-color:#ccc;color:#fff;border:none}._label_1cyua_50{margin-left:10px;font-size:14px;color:#aaa}._labelActive_1cyua_56{font-weight:700;color:#333}._connector_1cyua_61{position:absolute;left:50%;transform:translate(-50%);top:32px;width:1px;height:calc(100% - 10px);background-color:#ccc;z-index:0}._statusTextContainer_ch14r_2{display:flex;flex-wrap:nowrap;justify-content:center;gap:0;flex-direction:row;align-items:center;width:128px;height:31px;border-radius:200px}._statusTextContainer_ch14r_2 span{font-size:16px;color:#605b56}._buttonsContainer_1c7dw_2{padding:5px 7px;background-color:#efefef;border-radius:10px;display:flex;gap:8px}._buttonsContainer_1c7dw_2 ._button_1c7dw_2{border-radius:10px;display:flex;align-items:center;cursor:pointer;padding:4px;color:#605b56}._buttonsContainer_1c7dw_2 ._button_1c7dw_2:hover{opacity:.8}._buttonsContainer_1c7dw_2 ._button_1c7dw_2._active_1c7dw_20{background:#b32f5d;color:#efefef}._switchContainer_194wl_2{display:flex;align-items:center;gap:10px;font-size:12px;justify-content:center}._switchContainer_194wl_2 ._labelRight_194wl_9,._switchContainer_194wl_2 ._labelLeft_194wl_9{white-space:nowrap;color:#605b56}._switchContainer_194wl_2 ._labelLeft_194wl_9{text-align:right}._switch_194wl_2{position:relative;display:inline-block;width:44px;height:24px}._switch_194wl_2 input{opacity:0;width:0;height:0}._switch_194wl_2 ._slider_194wl_28{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#fff;border-radius:24px;transition:background-color .3s;border:2px solid #605b56}._switch_194wl_2 ._slider_194wl_28:before{position:absolute;content:"";height:16px;width:16px;left:3px;bottom:2.5px;background-color:var(--switch-thumb-color, #ccc);border-radius:50%;transition:transform .3s,background-color .3s}._switch_194wl_2 input:checked+._slider_194wl_28:before{transform:translate(20px)}._switch_194wl_2._disabled_194wl_54{opacity:.5;pointer-events:none}._header_13kbt_2{width:100%;display:flex;align-items:center;position:absolute;top:0;left:0;padding:0 16px;background-color:#fff;border-bottom:1px solid black}._header_13kbt_2 ._leftComponents_13kbt_13,._header_13kbt_2 ._centerComponents_13kbt_14,._header_13kbt_2 ._rightComponents_13kbt_15{position:absolute;top:0;bottom:0;display:flex;align-items:center}._header_13kbt_2 ._leftComponents_13kbt_13{left:16px}._header_13kbt_2 ._centerComponents_13kbt_14{left:50%;transform:translate(-50%)}._header_13kbt_2 ._rightComponents_13kbt_15{right:16px}._header_13kbt_2 ._componentsContainer_13kbt_32{height:100%;width:100%}._sidebar_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
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as m, jsx as i, Fragment as qe } from "react/jsx-runtime";
|
|
3
3
|
import * as pe from "react";
|
|
4
4
|
import D, { useState as V, useEffect as F, useMemo as me, useLayoutEffect as It, useRef as oe } from "react";
|
|
5
5
|
import e from "prop-types";
|
|
@@ -44,15 +44,15 @@ const n2 = "_ambitSelector_mcunf_2", i2 = "_header_mcunf_13", s2 = "_nameDateCon
|
|
|
44
44
|
fontColor: a,
|
|
45
45
|
moreInfo: c
|
|
46
46
|
}) => {
|
|
47
|
-
const { name: u, created_at:
|
|
48
|
-
return /* @__PURE__ */
|
|
47
|
+
const { name: u, created_at: p, id: g, isBeingProcessed: f } = n;
|
|
48
|
+
return /* @__PURE__ */ m(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
className: he.ambitItem,
|
|
52
52
|
style: { borderBottom: `1px solid ${a}` },
|
|
53
53
|
children: [
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
-
/* @__PURE__ */
|
|
54
|
+
/* @__PURE__ */ m("div", { className: he.ambitNameDate, onClick: () => t(g), children: [
|
|
55
|
+
/* @__PURE__ */ m("div", { className: he.ambitName, children: [
|
|
56
56
|
/* @__PURE__ */ i(
|
|
57
57
|
"img",
|
|
58
58
|
{
|
|
@@ -62,9 +62,9 @@ const n2 = "_ambitSelector_mcunf_2", i2 = "_header_mcunf_13", s2 = "_nameDateCon
|
|
|
62
62
|
),
|
|
63
63
|
/* @__PURE__ */ i("span", { style: { color: r ? l : a }, children: u })
|
|
64
64
|
] }),
|
|
65
|
-
/* @__PURE__ */ i("div", { className: he.ambitDate, children:
|
|
65
|
+
/* @__PURE__ */ i("div", { className: he.ambitDate, children: p ? new Date(p).toLocaleDateString() : "" })
|
|
66
66
|
] }),
|
|
67
|
-
/* @__PURE__ */
|
|
67
|
+
/* @__PURE__ */ m("div", { className: he.ambitButtons, children: [
|
|
68
68
|
f && /* @__PURE__ */ i("img", { src: b2 }),
|
|
69
69
|
/* @__PURE__ */ i("button", { onClick: () => o(g), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: f2 }) }),
|
|
70
70
|
/* @__PURE__ */ i("button", { onClick: () => d(g), children: /* @__PURE__ */ i("img", { src: C2 }) }),
|
|
@@ -129,7 +129,7 @@ const Qe = "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:
|
|
132
|
+
onClickCopy: p = (_) => console.log(`Copy ambit: ${_}`),
|
|
133
133
|
onCLickDelete: g = (_) => console.log(`Delete ambit: ${_}`),
|
|
134
134
|
onClickFilters: f = (_) => console.log(`Filters clicked: ${_}`),
|
|
135
135
|
onClickAmbit: y = (_) => console.log(`OnCLickAmbit: ${_}`)
|
|
@@ -138,30 +138,30 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
138
138
|
F(() => {
|
|
139
139
|
n && C(n);
|
|
140
140
|
}, [n]);
|
|
141
|
-
const
|
|
141
|
+
const h = (b) => {
|
|
142
142
|
if (v && v.length > 0) {
|
|
143
143
|
let x = [...v];
|
|
144
144
|
x.sort((w, k) => w[b].localeCompare(k[b])), C(x);
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
|
-
return /* @__PURE__ */
|
|
147
|
+
return /* @__PURE__ */ m(
|
|
148
148
|
"div",
|
|
149
149
|
{
|
|
150
150
|
className: G.ambitSelector,
|
|
151
151
|
style: { color: s, ...c },
|
|
152
152
|
children: [
|
|
153
|
-
/* @__PURE__ */
|
|
153
|
+
/* @__PURE__ */ m(
|
|
154
154
|
"div",
|
|
155
155
|
{
|
|
156
156
|
className: G.header,
|
|
157
157
|
style: { borderBottom: `1px solid ${s}` },
|
|
158
158
|
children: [
|
|
159
|
-
/* @__PURE__ */
|
|
160
|
-
/* @__PURE__ */ i("div", { className: G.ambitName, children: /* @__PURE__ */
|
|
159
|
+
/* @__PURE__ */ m("div", { className: G.nameDateContainer, children: [
|
|
160
|
+
/* @__PURE__ */ i("div", { className: G.ambitName, children: /* @__PURE__ */ m("button", { onClick: () => h("name"), children: [
|
|
161
161
|
/* @__PURE__ */ i("span", { children: _(t) }),
|
|
162
162
|
/* @__PURE__ */ i("img", { src: Qe })
|
|
163
163
|
] }) }),
|
|
164
|
-
/* @__PURE__ */ i("div", { className: G.ambitDate, children: /* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ i("div", { className: G.ambitDate, children: /* @__PURE__ */ m("button", { onClick: () => h("date"), children: [
|
|
165
165
|
/* @__PURE__ */ i("span", { children: _(r) }),
|
|
166
166
|
/* @__PURE__ */ i("img", { src: Qe })
|
|
167
167
|
] }) })
|
|
@@ -177,7 +177,7 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
177
177
|
ambit: b,
|
|
178
178
|
fontColor: s,
|
|
179
179
|
activeColor: o,
|
|
180
|
-
onClickCopy:
|
|
180
|
+
onClickCopy: p,
|
|
181
181
|
onClickDelete: g,
|
|
182
182
|
onClickFilters: f,
|
|
183
183
|
onClickAmbit: y
|
|
@@ -257,17 +257,17 @@ const A2 = ({
|
|
|
257
257
|
children: n.map((a, c) => {
|
|
258
258
|
const {
|
|
259
259
|
icon: u,
|
|
260
|
-
activeIcon:
|
|
260
|
+
activeIcon: p,
|
|
261
261
|
isActive: g,
|
|
262
262
|
name: f,
|
|
263
263
|
onClick: y,
|
|
264
264
|
disabled: _
|
|
265
|
-
} = a, v = /* @__PURE__ */
|
|
265
|
+
} = a, v = /* @__PURE__ */ m(qe, { children: [
|
|
266
266
|
s && o === "left" && /* @__PURE__ */ i("span", { className: X.buttonName, children: l(f) }),
|
|
267
|
-
/* @__PURE__ */ i("img", { src: g ?
|
|
267
|
+
/* @__PURE__ */ i("img", { src: g ? p : u, alt: l(f) }),
|
|
268
268
|
s && o === "right" && /* @__PURE__ */ i("span", { className: X.buttonName, children: l(f) })
|
|
269
269
|
] });
|
|
270
|
-
return /* @__PURE__ */
|
|
270
|
+
return /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
271
271
|
/* @__PURE__ */ i(
|
|
272
272
|
"button",
|
|
273
273
|
{
|
|
@@ -319,10 +319,10 @@ const I2 = "_indicatorsCategory_fj2r2_2", O2 = "_title_fj2r2_6", q2 = "_mainTitl
|
|
|
319
319
|
titleFontStyles: a,
|
|
320
320
|
showBottomBar: c = !0,
|
|
321
321
|
titleMarginChildren: u = 15,
|
|
322
|
-
mainTitle:
|
|
322
|
+
mainTitle: p = !1
|
|
323
323
|
}) => {
|
|
324
324
|
const { t: g } = $();
|
|
325
|
-
return /* @__PURE__ */
|
|
325
|
+
return /* @__PURE__ */ m(
|
|
326
326
|
Ke.div,
|
|
327
327
|
{
|
|
328
328
|
className: ke.indicatorsCategory,
|
|
@@ -332,17 +332,17 @@ const I2 = "_indicatorsCategory_fj2r2_2", O2 = "_title_fj2r2_6", q2 = "_mainTitl
|
|
|
332
332
|
style: {
|
|
333
333
|
backgroundColor: "white",
|
|
334
334
|
borderBottom: n && c ? `1px solid ${t}` : "0px",
|
|
335
|
-
minHeight:
|
|
335
|
+
minHeight: p ? "70px" : "50px"
|
|
336
336
|
},
|
|
337
337
|
children: [
|
|
338
|
-
/* @__PURE__ */
|
|
338
|
+
/* @__PURE__ */ m(
|
|
339
339
|
"h2",
|
|
340
340
|
{
|
|
341
341
|
style: {
|
|
342
342
|
...a
|
|
343
343
|
//marginBottom: titleMarginChildren ? titleMarginChildren : "auto",
|
|
344
344
|
},
|
|
345
|
-
className: `${ke.title} ${
|
|
345
|
+
className: `${ke.title} ${p && ke.mainTitle}`,
|
|
346
346
|
onClick: d,
|
|
347
347
|
children: [
|
|
348
348
|
/* @__PURE__ */ i("span", { style: { color: n ? t : o }, children: n ? "-" : "+" }),
|
|
@@ -350,7 +350,7 @@ const I2 = "_indicatorsCategory_fj2r2_2", O2 = "_title_fj2r2_6", q2 = "_mainTitl
|
|
|
350
350
|
]
|
|
351
351
|
}
|
|
352
352
|
),
|
|
353
|
-
/* @__PURE__ */ i("div", { className: ke.content, style: { padding:
|
|
353
|
+
/* @__PURE__ */ i("div", { className: ke.content, style: { padding: p ? "20px 0px" : "0px" }, children: s })
|
|
354
354
|
]
|
|
355
355
|
}
|
|
356
356
|
);
|
|
@@ -379,7 +379,7 @@ const po = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), R2 = "data
|
|
|
379
379
|
activeFiltersType: null,
|
|
380
380
|
geoLayers: []
|
|
381
381
|
})), gt = ({ title: n, onClick: d, isOpen: s = !0, textColor: o = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r, fontColor: l = "#605B56" }) => {
|
|
382
|
-
const { t: a } = $(), { tematicalFiltersSelected: c, activeFiltersType: u } = T((f) => f),
|
|
382
|
+
const { t: a } = $(), { tematicalFiltersSelected: c, activeFiltersType: u } = T((f) => f), p = (f) => {
|
|
383
383
|
T.setState((y) => ({
|
|
384
384
|
tematicalFiltersSelected: y.tematicalFiltersSelected.filter(
|
|
385
385
|
(_) => _.code !== f
|
|
@@ -397,9 +397,9 @@ const po = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), R2 = "data
|
|
|
397
397
|
activeColor: r,
|
|
398
398
|
mainTitle: !0,
|
|
399
399
|
color: l,
|
|
400
|
-
children: /* @__PURE__ */ i("div", { className: Xe.AppliedFiltersContainer, children: c == null ? void 0 : c.map((f, y) => /* @__PURE__ */
|
|
400
|
+
children: /* @__PURE__ */ i("div", { className: Xe.AppliedFiltersContainer, children: c == null ? void 0 : c.map((f, y) => /* @__PURE__ */ m("div", { className: Xe.AppliedFilterContent, style: { color: o, background: t }, children: [
|
|
401
401
|
a(f.name),
|
|
402
|
-
/* @__PURE__ */ i("img", { src: R2, alt: "CloseIcon", onClick: () =>
|
|
402
|
+
/* @__PURE__ */ i("img", { src: R2, alt: "CloseIcon", onClick: () => p(f.code), style: { cursor: "pointer" } })
|
|
403
403
|
] }, y)) })
|
|
404
404
|
}
|
|
405
405
|
);
|
|
@@ -431,7 +431,7 @@ const j2 = "_layersList_cn837_25", z2 = "_layerName_cn837_34", Je = {
|
|
|
431
431
|
}) => {
|
|
432
432
|
const { t: l } = $(), { activeFiltersType: a, geoLayers: c } = T((g) => g), u = () => {
|
|
433
433
|
a == "geographical" ? T.setState(() => ({ activeFiltersType: null })) : T.setState(() => ({ activeFiltersType: "geographical" }));
|
|
434
|
-
},
|
|
434
|
+
}, p = (g) => {
|
|
435
435
|
T.setState((f) => ({
|
|
436
436
|
geoLayers: f.geoLayers.map((y) => ({
|
|
437
437
|
...y,
|
|
@@ -450,12 +450,12 @@ const j2 = "_layersList_cn837_25", z2 = "_layerName_cn837_34", Je = {
|
|
|
450
450
|
activeColor: t,
|
|
451
451
|
color: s,
|
|
452
452
|
mainTitle: !0,
|
|
453
|
-
children: /* @__PURE__ */ i("div", { className: `${Je.layersList}`, children: c.map((g) => /* @__PURE__ */
|
|
453
|
+
children: /* @__PURE__ */ i("div", { className: `${Je.layersList}`, children: c.map((g) => /* @__PURE__ */ m(
|
|
454
454
|
"div",
|
|
455
455
|
{
|
|
456
456
|
className: `${Je.layerName}`,
|
|
457
457
|
style: { color: g.active ? t : s, fontWeight: g.active ? "bold" : "normal" },
|
|
458
|
-
onClick: () =>
|
|
458
|
+
onClick: () => p(g),
|
|
459
459
|
children: [
|
|
460
460
|
l(g.name),
|
|
461
461
|
g.active
|
|
@@ -483,7 +483,7 @@ const Z2 = "_checkboxContainer_1nxra_2", H2 = {
|
|
|
483
483
|
value: t
|
|
484
484
|
}) => {
|
|
485
485
|
const { t: r } = $(), { title: l } = o || {}, { fontColor: a, inputsColor: c } = T((u) => u);
|
|
486
|
-
return /* @__PURE__ */
|
|
486
|
+
return /* @__PURE__ */ m(
|
|
487
487
|
"div",
|
|
488
488
|
{
|
|
489
489
|
style: { ...d, color: s },
|
|
@@ -566,8 +566,8 @@ let Pe = function(n) {
|
|
|
566
566
|
t.setState({ index: -1 }, t.onEnd(t.getKeyDownEventMap()));
|
|
567
567
|
}, t.onMouseMove = (a) => {
|
|
568
568
|
t.setState({ pending: !0 });
|
|
569
|
-
const c = t.getMousePosition(a), u = t.getDiffPosition(c[0]),
|
|
570
|
-
t.move(
|
|
569
|
+
const c = t.getMousePosition(a), u = t.getDiffPosition(c[0]), p = t.getValueFromPosition(u);
|
|
570
|
+
t.move(p);
|
|
571
571
|
}, t.onTouchMove = (a) => {
|
|
572
572
|
if (a.touches.length > 1) return;
|
|
573
573
|
t.setState({ pending: !0 });
|
|
@@ -577,8 +577,8 @@ let Pe = function(n) {
|
|
|
577
577
|
t.isScrolling = Math.abs(f) > Math.abs(g);
|
|
578
578
|
}
|
|
579
579
|
if (t.isScrolling) return void t.setState({ index: -1 });
|
|
580
|
-
const u = t.getDiffPosition(c[0]),
|
|
581
|
-
t.move(
|
|
580
|
+
const u = t.getDiffPosition(c[0]), p = t.getValueFromPosition(u);
|
|
581
|
+
t.move(p);
|
|
582
582
|
}, t.onKeyDown = (a) => {
|
|
583
583
|
if (!(a.ctrlKey || a.shiftKey || a.altKey || a.metaKey)) switch (t.setState({ pending: !0 }), a.key) {
|
|
584
584
|
case "ArrowLeft":
|
|
@@ -631,8 +631,8 @@ let Pe = function(n) {
|
|
|
631
631
|
if (t.props.disabled || c.touches.length > 1) return;
|
|
632
632
|
t.setState({ pending: !0 });
|
|
633
633
|
const u = t.getTouchPosition(c);
|
|
634
|
-
t.startPosition = u, t.isScrolling = void 0, t.start(a, u[0]), Se(t.getTouchEventMap()), function(
|
|
635
|
-
|
|
634
|
+
t.startPosition = u, t.isScrolling = void 0, t.start(a, u[0]), Se(t.getTouchEventMap()), function(p) {
|
|
635
|
+
p.stopPropagation && p.stopPropagation();
|
|
636
636
|
}(c);
|
|
637
637
|
}, t.handleResize = () => {
|
|
638
638
|
const a = window.setTimeout(() => {
|
|
@@ -640,13 +640,13 @@ let Pe = function(n) {
|
|
|
640
640
|
}, 0);
|
|
641
641
|
t.pendingResizeTimeouts.push(a);
|
|
642
642
|
}, t.renderThumb = (a, c) => {
|
|
643
|
-
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""),
|
|
643
|
+
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), p = { ref: (f) => {
|
|
644
644
|
t["thumb" + c] = f;
|
|
645
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 }, g = { index: c, value: Ne(t.state.value), valueNow: t.state.value[c] };
|
|
646
|
-
return t.props.ariaValuetext && (
|
|
646
|
+
return t.props.ariaValuetext && (p["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(g)), t.props.renderThumb(p, g);
|
|
647
647
|
}, t.renderTrack = (a, c, u) => {
|
|
648
|
-
const
|
|
649
|
-
return t.props.renderTrack(
|
|
648
|
+
const p = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(c, t.state.upperBound - u) }, g = { index: a, value: Ne(t.state.value) };
|
|
649
|
+
return t.props.renderTrack(p, g);
|
|
650
650
|
};
|
|
651
651
|
let r = Ve(o.value);
|
|
652
652
|
r.length || (r = Ve(o.defaultValue)), t.pendingResizeTimeouts = [];
|
|
@@ -677,8 +677,8 @@ let Pe = function(n) {
|
|
|
677
677
|
let t = Number.MAX_VALUE, r = -1;
|
|
678
678
|
const { value: l } = this.state, a = l.length;
|
|
679
679
|
for (let c = 0; c < a; c += 1) {
|
|
680
|
-
const u = this.calcOffset(l[c]),
|
|
681
|
-
|
|
680
|
+
const u = this.calcOffset(l[c]), p = Math.abs(o - u);
|
|
681
|
+
p < t && (t = p, r = c);
|
|
682
682
|
}
|
|
683
683
|
return r;
|
|
684
684
|
}, s.getMousePosition = function(o) {
|
|
@@ -701,8 +701,8 @@ let Pe = function(n) {
|
|
|
701
701
|
}, s.resize = function() {
|
|
702
702
|
const { slider: o, thumb0: t } = this;
|
|
703
703
|
if (!o || !t) return;
|
|
704
|
-
const r = this.sizeKey(), l = o.getBoundingClientRect(), a = o[r], c = l[this.posMaxKey()], u = l[this.posMinKey()],
|
|
705
|
-
this.state.upperBound === g && this.state.sliderLength === f && this.state.thumbSize ===
|
|
704
|
+
const r = this.sizeKey(), l = o.getBoundingClientRect(), a = o[r], c = l[this.posMaxKey()], u = l[this.posMinKey()], p = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], g = a - p, f = Math.abs(c - u);
|
|
705
|
+
this.state.upperBound === g && this.state.sliderLength === f && this.state.thumbSize === p || this.setState({ upperBound: g, sliderLength: f, thumbSize: p });
|
|
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,7 +741,7 @@ let Pe = function(n) {
|
|
|
741
741
|
const t = this.state.value.slice(), { index: r } = this.state, { length: l } = t, a = t[r];
|
|
742
742
|
if (o === a) return;
|
|
743
743
|
this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
|
|
744
|
-
const { pearling: c, max: u, min:
|
|
744
|
+
const { pearling: c, max: u, min: p, minDistance: g } = this.props;
|
|
745
745
|
if (!c) {
|
|
746
746
|
if (r > 0) {
|
|
747
747
|
const f = t[r - 1];
|
|
@@ -754,15 +754,15 @@ let Pe = function(n) {
|
|
|
754
754
|
}
|
|
755
755
|
t[r] = o, c && l > 1 && (o > a ? (this.pushSucceeding(t, g, r), function(f, y, _, v) {
|
|
756
756
|
for (let C = 0; C < f; C += 1) {
|
|
757
|
-
const
|
|
758
|
-
y[f - 1 - C] >
|
|
757
|
+
const h = v - C * _;
|
|
758
|
+
y[f - 1 - C] > h && (y[f - 1 - C] = h);
|
|
759
759
|
}
|
|
760
760
|
}(l, t, g, u)) : o < a && (this.pushPreceding(t, g, r), function(f, y, _, v) {
|
|
761
761
|
for (let C = 0; C < f; C += 1) {
|
|
762
|
-
const
|
|
763
|
-
y[C] <
|
|
762
|
+
const h = v + C * _;
|
|
763
|
+
y[C] < h && (y[C] = h);
|
|
764
764
|
}
|
|
765
|
-
}(l, t, g,
|
|
765
|
+
}(l, t, g, p))), 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] = Ee(a, this.props);
|
|
@@ -836,12 +836,12 @@ const U2 = "_container_4u41i_2", W2 = "_unitLabel_4u41i_8", G2 = "_slider_4u41i_
|
|
|
836
836
|
defaultValue: a,
|
|
837
837
|
isDate: c
|
|
838
838
|
}) => {
|
|
839
|
-
const { t: u } = $(),
|
|
839
|
+
const { t: u } = $(), p = c ? new Date(n).getTime() : null, g = c ? new Date(d).getTime() : null, [f, y] = V(c ? [p, g] : [n, d]), _ = (v) => {
|
|
840
840
|
y(v), o == null || o({ min: v[0], max: v[1] });
|
|
841
841
|
};
|
|
842
842
|
return F(() => {
|
|
843
|
-
a || y(c ? [
|
|
844
|
-
}, [a, c]), /* @__PURE__ */
|
|
843
|
+
a || y(c ? [p, g] : [n, d]);
|
|
844
|
+
}, [a, c]), /* @__PURE__ */ m(
|
|
845
845
|
"div",
|
|
846
846
|
{
|
|
847
847
|
className: ae.container,
|
|
@@ -854,9 +854,9 @@ const U2 = "_container_4u41i_2", W2 = "_unitLabel_4u41i_8", G2 = "_slider_4u41i_
|
|
|
854
854
|
className: ae.slider,
|
|
855
855
|
thumbClassName: ae.thumb,
|
|
856
856
|
trackClassName: ae.track,
|
|
857
|
-
min: c ?
|
|
857
|
+
min: c ? p : n,
|
|
858
858
|
max: c ? g : d,
|
|
859
|
-
step: c ? (g -
|
|
859
|
+
step: c ? (g - p) / 30 : s,
|
|
860
860
|
value: f,
|
|
861
861
|
onAfterChange: _,
|
|
862
862
|
withTracks: !0,
|
|
@@ -864,7 +864,7 @@ const U2 = "_container_4u41i_2", W2 = "_unitLabel_4u41i_8", G2 = "_slider_4u41i_
|
|
|
864
864
|
minDistance: c ? 0 : 0.1
|
|
865
865
|
}
|
|
866
866
|
),
|
|
867
|
-
/* @__PURE__ */
|
|
867
|
+
/* @__PURE__ */ m("div", { className: ae.labels, children: [
|
|
868
868
|
/* @__PURE__ */ i("span", { children: c ? new Date(f[0]).toLocaleDateString("en-EN", {
|
|
869
869
|
day: "2-digit",
|
|
870
870
|
month: "short",
|
|
@@ -909,7 +909,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
909
909
|
minValue: a,
|
|
910
910
|
maxValue: c,
|
|
911
911
|
unit: u,
|
|
912
|
-
step:
|
|
912
|
+
step: p,
|
|
913
913
|
disabled: g,
|
|
914
914
|
isDate: f
|
|
915
915
|
} = n || {}, y = me(
|
|
@@ -921,7 +921,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
921
921
|
), {
|
|
922
922
|
tematicalFiltersSelected: v,
|
|
923
923
|
selectedIndicator: C,
|
|
924
|
-
fontColor:
|
|
924
|
+
fontColor: h,
|
|
925
925
|
inputsColor: b
|
|
926
926
|
} = T((k) => k), x = (k) => {
|
|
927
927
|
if (k) {
|
|
@@ -1000,7 +1000,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
1000
1000
|
S.type === "cat" ? k[S.code] = new Set(S.values) : k[S.code] = [S.min, S.max];
|
|
1001
1001
|
return k;
|
|
1002
1002
|
}, [v]);
|
|
1003
|
-
return /* @__PURE__ */ i("div", { className: $e.tematicalFiltersInputContainer, children: /* @__PURE__ */
|
|
1003
|
+
return /* @__PURE__ */ i("div", { className: $e.tematicalFiltersInputContainer, children: /* @__PURE__ */ m(
|
|
1004
1004
|
re,
|
|
1005
1005
|
{
|
|
1006
1006
|
titleFontStyles: {
|
|
@@ -1019,16 +1019,16 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
1019
1019
|
height: 42,
|
|
1020
1020
|
titleMarginChildren: 14,
|
|
1021
1021
|
className: "tematicalFiltersInputContainer",
|
|
1022
|
-
color:
|
|
1022
|
+
color: h,
|
|
1023
1023
|
activeColor: d,
|
|
1024
1024
|
children: [
|
|
1025
|
-
t == "both" && /* @__PURE__ */
|
|
1025
|
+
t == "both" && /* @__PURE__ */ m(
|
|
1026
1026
|
"div",
|
|
1027
1027
|
{
|
|
1028
1028
|
className: $e.inputTypeContainer,
|
|
1029
|
-
style: { color:
|
|
1029
|
+
style: { color: h },
|
|
1030
1030
|
children: [
|
|
1031
|
-
/* @__PURE__ */
|
|
1031
|
+
/* @__PURE__ */ m("label", { children: [
|
|
1032
1032
|
/* @__PURE__ */ i(
|
|
1033
1033
|
"input",
|
|
1034
1034
|
{
|
|
@@ -1041,13 +1041,13 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
1041
1041
|
style: {
|
|
1042
1042
|
marginRight: 4,
|
|
1043
1043
|
backgroundColor: s == "abs" ? b : "white",
|
|
1044
|
-
border: `1.5px solid ${s == "abs" ? b :
|
|
1044
|
+
border: `1.5px solid ${s == "abs" ? b : h}`
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
),
|
|
1048
1048
|
"Absoluto"
|
|
1049
1049
|
] }),
|
|
1050
|
-
/* @__PURE__ */
|
|
1050
|
+
/* @__PURE__ */ m("label", { children: [
|
|
1051
1051
|
/* @__PURE__ */ i(
|
|
1052
1052
|
"input",
|
|
1053
1053
|
{
|
|
@@ -1060,7 +1060,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
1060
1060
|
style: {
|
|
1061
1061
|
marginRight: 4,
|
|
1062
1062
|
backgroundColor: s == "cat" ? b : "white",
|
|
1063
|
-
border: `1.5px solid ${s == "cat" ? b :
|
|
1063
|
+
border: `1.5px solid ${s == "cat" ? b : h}`
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
1066
|
),
|
|
@@ -1090,7 +1090,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
1090
1090
|
unit: u,
|
|
1091
1091
|
defaultValue: w[n.code[0]] ? w[n.code[0]] : "",
|
|
1092
1092
|
isDate: f,
|
|
1093
|
-
step:
|
|
1093
|
+
step: p
|
|
1094
1094
|
}
|
|
1095
1095
|
) })
|
|
1096
1096
|
]
|
|
@@ -1218,7 +1218,7 @@ const vt = ({
|
|
|
1218
1218
|
inputsColor: t = "#605B56",
|
|
1219
1219
|
activeColor: r
|
|
1220
1220
|
}) => {
|
|
1221
|
-
const { tematicalFiltersSelected: l, activeFiltersType: a } = T((
|
|
1221
|
+
const { tematicalFiltersSelected: l, activeFiltersType: a } = T((p) => p), { t: c } = $();
|
|
1222
1222
|
F(() => {
|
|
1223
1223
|
}, [l]), F(() => {
|
|
1224
1224
|
o && T.setState(() => ({ fontColor: o }));
|
|
@@ -1237,10 +1237,10 @@ const vt = ({
|
|
|
1237
1237
|
activeColor: r,
|
|
1238
1238
|
onClick: u,
|
|
1239
1239
|
mainTitle: !0,
|
|
1240
|
-
children: n == null ? void 0 : n.map((
|
|
1240
|
+
children: n == null ? void 0 : n.map((p, g) => /* @__PURE__ */ i(
|
|
1241
1241
|
_t,
|
|
1242
1242
|
{
|
|
1243
|
-
category:
|
|
1243
|
+
category: p,
|
|
1244
1244
|
fontColor: o,
|
|
1245
1245
|
activeColor: r
|
|
1246
1246
|
},
|
|
@@ -1277,7 +1277,7 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1277
1277
|
onChangeAppliedFilters: a,
|
|
1278
1278
|
saveAmbit: c,
|
|
1279
1279
|
namePlaceholder: u,
|
|
1280
|
-
descPlaceholder:
|
|
1280
|
+
descPlaceholder: p,
|
|
1281
1281
|
filtersTypes: g = ["geographical", "tematical"],
|
|
1282
1282
|
nameRequiredText: f,
|
|
1283
1283
|
geoFilterLayers: y = [],
|
|
@@ -1285,7 +1285,7 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1285
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
1287
|
}) => {
|
|
1288
|
-
const { t: C } = $(), { tematicalFiltersSelected:
|
|
1288
|
+
const { t: C } = $(), { tematicalFiltersSelected: h, activeFiltersType: b, geoLayers: x } = T((q) => q), [w, k] = V(n || null), [S, L] = V(d || null), [N, B] = V(!1);
|
|
1289
1289
|
F(() => {
|
|
1290
1290
|
s && s.length > 0 && T.setState((q) => ({
|
|
1291
1291
|
tematicalFiltersSelected: s
|
|
@@ -1293,8 +1293,8 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1293
1293
|
}, [s]), F(() => {
|
|
1294
1294
|
g.includes("geographical") && x != y && T.setState({ geoLayers: y });
|
|
1295
1295
|
}, [y]), F(() => {
|
|
1296
|
-
a(
|
|
1297
|
-
}, [
|
|
1296
|
+
a(h);
|
|
1297
|
+
}, [h]);
|
|
1298
1298
|
const O = () => {
|
|
1299
1299
|
w ? c({ name: w, description: S }) : B(!0);
|
|
1300
1300
|
};
|
|
@@ -1305,9 +1305,9 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1305
1305
|
active: !1
|
|
1306
1306
|
}))
|
|
1307
1307
|
}));
|
|
1308
|
-
}, [b]), /* @__PURE__ */
|
|
1309
|
-
/* @__PURE__ */
|
|
1310
|
-
!v && /* @__PURE__ */
|
|
1308
|
+
}, [b]), /* @__PURE__ */ m("div", { className: ee.FiltersAmbitContainer, children: [
|
|
1309
|
+
/* @__PURE__ */ m("div", { children: [
|
|
1310
|
+
!v && /* @__PURE__ */ m("div", { className: ee.FiltersAmbitHeader, children: [
|
|
1311
1311
|
/* @__PURE__ */ i("div", { className: ee.FiltersAmbitTitle, children: /* @__PURE__ */ i(
|
|
1312
1312
|
"input",
|
|
1313
1313
|
{
|
|
@@ -1324,7 +1324,7 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1324
1324
|
{
|
|
1325
1325
|
value: S,
|
|
1326
1326
|
onChange: (q) => L(q.target.value),
|
|
1327
|
-
placeholder: C(
|
|
1327
|
+
placeholder: C(p)
|
|
1328
1328
|
}
|
|
1329
1329
|
) }) })
|
|
1330
1330
|
] }),
|
|
@@ -1390,12 +1390,12 @@ const pn = "_barChartContainer_d2f1z_2", mn = {
|
|
|
1390
1390
|
numberOfDivisions: c = 7,
|
|
1391
1391
|
maxValue: u = null
|
|
1392
1392
|
}) => {
|
|
1393
|
-
const { t:
|
|
1393
|
+
const { t: p } = $(), { xScale: g, ticks: f, height: y } = me(() => {
|
|
1394
1394
|
if (n && n.length > 0) {
|
|
1395
|
-
const _ = (n == null ? void 0 : n.length) * (s + o) + r * 2, v = Ye.max(n, (b) => b.value) || 1, C = Ye.scaleLinear().domain([0, u || v]).range([0, d - a]),
|
|
1395
|
+
const _ = (n == null ? void 0 : n.length) * (s + o) + r * 2, v = Ye.max(n, (b) => b.value) || 1, C = Ye.scaleLinear().domain([0, u || v]).range([0, d - a]), h = Array.from({ length: c + 1 }, (b, x) => u ? u / c * x : v / c * x);
|
|
1396
1396
|
return {
|
|
1397
1397
|
xScale: C,
|
|
1398
|
-
ticks:
|
|
1398
|
+
ticks: h,
|
|
1399
1399
|
height: _,
|
|
1400
1400
|
width: d,
|
|
1401
1401
|
verticalPaddign: r,
|
|
@@ -1413,10 +1413,10 @@ const pn = "_barChartContainer_d2f1z_2", mn = {
|
|
|
1413
1413
|
r,
|
|
1414
1414
|
u
|
|
1415
1415
|
]);
|
|
1416
|
-
return /* @__PURE__ */ i("div", { className: mn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + l * 2, height: y, children: /* @__PURE__ */
|
|
1416
|
+
return /* @__PURE__ */ i("div", { className: mn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + l * 2, height: y, children: /* @__PURE__ */ m("g", { transform: `translate(0,${o})`, children: [
|
|
1417
1417
|
/* @__PURE__ */ i("g", { transform: `translate(${a + l}, 0)`, children: f.map((_, v) => {
|
|
1418
1418
|
const C = g(_);
|
|
1419
|
-
return /* @__PURE__ */
|
|
1419
|
+
return /* @__PURE__ */ m("g", { transform: `translate(${C}, 0)`, children: [
|
|
1420
1420
|
/* @__PURE__ */ i(
|
|
1421
1421
|
"line",
|
|
1422
1422
|
{
|
|
@@ -1438,11 +1438,11 @@ const pn = "_barChartContainer_d2f1z_2", mn = {
|
|
|
1438
1438
|
] }, v);
|
|
1439
1439
|
}) }),
|
|
1440
1440
|
n && n.length > 0 && (n == null ? void 0 : n.map((_, v) => {
|
|
1441
|
-
const C = g(_.value),
|
|
1442
|
-
return /* @__PURE__ */
|
|
1441
|
+
const C = g(_.value), h = v * (s + o);
|
|
1442
|
+
return /* @__PURE__ */ m(
|
|
1443
1443
|
"g",
|
|
1444
1444
|
{
|
|
1445
|
-
transform: `translate(${a + l}, ${
|
|
1445
|
+
transform: `translate(${a + l}, ${h})`,
|
|
1446
1446
|
children: [
|
|
1447
1447
|
/* @__PURE__ */ i(
|
|
1448
1448
|
"text",
|
|
@@ -1451,7 +1451,7 @@ const pn = "_barChartContainer_d2f1z_2", mn = {
|
|
|
1451
1451
|
y: s / 2 + 5,
|
|
1452
1452
|
textAnchor: "end",
|
|
1453
1453
|
fill: t,
|
|
1454
|
-
children:
|
|
1454
|
+
children: p(_.title)
|
|
1455
1455
|
}
|
|
1456
1456
|
),
|
|
1457
1457
|
/* @__PURE__ */ i(
|
|
@@ -1501,7 +1501,7 @@ const hn = "_graphicContainer_c9zrg_2", gn = "_titleContainer_c9zrg_14", et = {
|
|
|
1501
1501
|
leftPadding: c = 200
|
|
1502
1502
|
}) => {
|
|
1503
1503
|
const { t: u } = $();
|
|
1504
|
-
return /* @__PURE__ */
|
|
1504
|
+
return /* @__PURE__ */ m(
|
|
1505
1505
|
"div",
|
|
1506
1506
|
{
|
|
1507
1507
|
className: et.graphicContainer,
|
|
@@ -1569,18 +1569,18 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1569
1569
|
multiple: a = !1,
|
|
1570
1570
|
onChangeType: c
|
|
1571
1571
|
}) => {
|
|
1572
|
-
const { t: u } = $(), { name:
|
|
1572
|
+
const { t: u } = $(), { name: p, type: g, disabled: f } = n;
|
|
1573
1573
|
console.log(tt);
|
|
1574
1574
|
const [y, _] = V(!1);
|
|
1575
1575
|
F(() => {
|
|
1576
1576
|
t && _(
|
|
1577
1577
|
a ? t.some(
|
|
1578
|
-
(
|
|
1579
|
-
) : t.name ==
|
|
1578
|
+
(h) => h.name == String(p)
|
|
1579
|
+
) : t.name == p
|
|
1580
1580
|
);
|
|
1581
1581
|
}, [t]);
|
|
1582
|
-
const v = () => /* @__PURE__ */ i("div", { className: R.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: R.switchType, children: /* @__PURE__ */
|
|
1583
|
-
/* @__PURE__ */
|
|
1582
|
+
const v = () => /* @__PURE__ */ i("div", { className: R.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: R.switchType, children: /* @__PURE__ */ m("div", { className: R.switchTypeOptions, children: [
|
|
1583
|
+
/* @__PURE__ */ m(
|
|
1584
1584
|
"div",
|
|
1585
1585
|
{
|
|
1586
1586
|
className: R.optionContainer,
|
|
@@ -1609,7 +1609,7 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1609
1609
|
]
|
|
1610
1610
|
}
|
|
1611
1611
|
),
|
|
1612
|
-
/* @__PURE__ */
|
|
1612
|
+
/* @__PURE__ */ m(
|
|
1613
1613
|
"div",
|
|
1614
1614
|
{
|
|
1615
1615
|
className: R.optionContainer,
|
|
@@ -1638,7 +1638,7 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1638
1638
|
]
|
|
1639
1639
|
}
|
|
1640
1640
|
)
|
|
1641
|
-
] }) }) }), C = () => /* @__PURE__ */ i("div", { className: R.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: R.switchType, children: /* @__PURE__ */ i("div", { className: R.switchTypeOptions, children: d.map((
|
|
1641
|
+
] }) }) }), C = () => /* @__PURE__ */ i("div", { className: R.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: R.switchType, children: /* @__PURE__ */ i("div", { className: R.switchTypeOptions, children: d.map((h, b) => /* @__PURE__ */ m(
|
|
1642
1642
|
"div",
|
|
1643
1643
|
{
|
|
1644
1644
|
className: R.optionContainer,
|
|
@@ -1649,13 +1649,13 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1649
1649
|
className: R.customRadious
|
|
1650
1650
|
}
|
|
1651
1651
|
),
|
|
1652
|
-
/* @__PURE__ */ i("h4", { children: u(
|
|
1652
|
+
/* @__PURE__ */ i("h4", { children: u(h.unit) })
|
|
1653
1653
|
]
|
|
1654
1654
|
},
|
|
1655
1655
|
b
|
|
1656
1656
|
)) }) }) });
|
|
1657
|
-
return /* @__PURE__ */
|
|
1658
|
-
/* @__PURE__ */
|
|
1657
|
+
return /* @__PURE__ */ m("div", { className: R.indicatorContainer, children: [
|
|
1658
|
+
/* @__PURE__ */ m(
|
|
1659
1659
|
"div",
|
|
1660
1660
|
{
|
|
1661
1661
|
className: R.indicatorNameContainer,
|
|
@@ -1684,7 +1684,7 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1684
1684
|
children: /* @__PURE__ */ i(
|
|
1685
1685
|
He,
|
|
1686
1686
|
{
|
|
1687
|
-
i18nKey:
|
|
1687
|
+
i18nKey: p,
|
|
1688
1688
|
components: { sup: /* @__PURE__ */ i("sup", {}) },
|
|
1689
1689
|
shouldUnescape: !0
|
|
1690
1690
|
}
|
|
@@ -1694,8 +1694,8 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1694
1694
|
]
|
|
1695
1695
|
}
|
|
1696
1696
|
),
|
|
1697
|
-
(t == null ? void 0 : t.name) ===
|
|
1698
|
-
(t == null ? void 0 : t.name) ===
|
|
1697
|
+
(t == null ? void 0 : t.name) === p && g === "both" && /* @__PURE__ */ i("div", { children: v() }),
|
|
1698
|
+
(t == null ? void 0 : t.name) === p && g === "twoUnits" && /* @__PURE__ */ i("div", { children: C() })
|
|
1699
1699
|
] });
|
|
1700
1700
|
};
|
|
1701
1701
|
We.propTypes = {
|
|
@@ -1724,13 +1724,13 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Dn = "_list_1dzsi_8", nt = {
|
|
|
1724
1724
|
activeIndicator: a,
|
|
1725
1725
|
onClickIndicator: c,
|
|
1726
1726
|
multiple: u,
|
|
1727
|
-
activeIndicatorType:
|
|
1727
|
+
activeIndicatorType: p,
|
|
1728
1728
|
onChangeType: g
|
|
1729
1729
|
}) => {
|
|
1730
1730
|
const { t: f } = $(), [y, _] = V(!1);
|
|
1731
1731
|
return F(() => {
|
|
1732
1732
|
_(t == l);
|
|
1733
|
-
}, [t, l]), /* @__PURE__ */
|
|
1733
|
+
}, [t, l]), /* @__PURE__ */ m(
|
|
1734
1734
|
Ke.div,
|
|
1735
1735
|
{
|
|
1736
1736
|
className: nt.indicatorsSubCategory,
|
|
@@ -1738,7 +1738,7 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Dn = "_list_1dzsi_8", nt = {
|
|
|
1738
1738
|
animate: { height: y ? "auto" : "43px" },
|
|
1739
1739
|
transition: { duration: 0.4 },
|
|
1740
1740
|
children: [
|
|
1741
|
-
/* @__PURE__ */ i("button", { onClick: () => r(l), children: /* @__PURE__ */
|
|
1741
|
+
/* @__PURE__ */ i("button", { onClick: () => r(l), children: /* @__PURE__ */ m("h3", { style: { color: y ? o : s }, children: [
|
|
1742
1742
|
/* @__PURE__ */ i("span", { style: { color: y ? o : s }, children: y ? "-" : "+" }),
|
|
1743
1743
|
/* @__PURE__ */ i(
|
|
1744
1744
|
"span",
|
|
@@ -1757,7 +1757,7 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Dn = "_list_1dzsi_8", nt = {
|
|
|
1757
1757
|
activeIndicator: a,
|
|
1758
1758
|
onClickIndicator: c,
|
|
1759
1759
|
multiple: u,
|
|
1760
|
-
activeIndicatorType:
|
|
1760
|
+
activeIndicatorType: p,
|
|
1761
1761
|
onChangeType: g
|
|
1762
1762
|
},
|
|
1763
1763
|
"indicator" + C
|
|
@@ -1789,7 +1789,7 @@ const kt = ({
|
|
|
1789
1789
|
onClickSubCategory: a,
|
|
1790
1790
|
activeIndicator: c,
|
|
1791
1791
|
onClickIndicator: u,
|
|
1792
|
-
multiple:
|
|
1792
|
+
multiple: p,
|
|
1793
1793
|
activeIndicatorType: g,
|
|
1794
1794
|
onChangeType: f
|
|
1795
1795
|
}) => {
|
|
@@ -1797,7 +1797,7 @@ const kt = ({
|
|
|
1797
1797
|
const { t: y } = $(), [_, v] = V(!1);
|
|
1798
1798
|
return F(() => {
|
|
1799
1799
|
v(r === d);
|
|
1800
|
-
}, [r, d]), /* @__PURE__ */
|
|
1800
|
+
}, [r, d]), /* @__PURE__ */ m(
|
|
1801
1801
|
Ke.div,
|
|
1802
1802
|
{
|
|
1803
1803
|
className: Ae.indicatorsCategory,
|
|
@@ -1810,7 +1810,7 @@ const kt = ({
|
|
|
1810
1810
|
marginBottom: _ ? "20px" : "0px"
|
|
1811
1811
|
},
|
|
1812
1812
|
children: [
|
|
1813
|
-
/* @__PURE__ */
|
|
1813
|
+
/* @__PURE__ */ m("h2", { className: `${Ae.title}`, onClick: () => t(d), children: [
|
|
1814
1814
|
/* @__PURE__ */ i("span", { style: { color: _ ? s : o }, children: _ ? "-" : "+" }),
|
|
1815
1815
|
/* @__PURE__ */ i(
|
|
1816
1816
|
"span",
|
|
@@ -1821,16 +1821,16 @@ const kt = ({
|
|
|
1821
1821
|
)
|
|
1822
1822
|
] }),
|
|
1823
1823
|
n.subcategories ? n.subcategories.map(
|
|
1824
|
-
({ name:
|
|
1824
|
+
({ name: h, subcategory: b, indicators: x }, w) => /* @__PURE__ */ i(
|
|
1825
1825
|
xt,
|
|
1826
1826
|
{
|
|
1827
1827
|
id: b,
|
|
1828
1828
|
activeSubCategory: l,
|
|
1829
|
-
subcName:
|
|
1829
|
+
subcName: h,
|
|
1830
1830
|
onClickSubCategory: a,
|
|
1831
1831
|
activeIndicator: c,
|
|
1832
1832
|
onClickIndicator: u,
|
|
1833
|
-
multiple:
|
|
1833
|
+
multiple: p,
|
|
1834
1834
|
activeColor: s,
|
|
1835
1835
|
defaultColor: o,
|
|
1836
1836
|
indicators: x,
|
|
@@ -1839,16 +1839,16 @@ const kt = ({
|
|
|
1839
1839
|
},
|
|
1840
1840
|
`subcKey ${w}`
|
|
1841
1841
|
)
|
|
1842
|
-
) : /* @__PURE__ */ i("div", { className: Ae.list, children: (C = n.indicators) == null ? void 0 : C.map((
|
|
1842
|
+
) : /* @__PURE__ */ i("div", { className: Ae.list, children: (C = n.indicators) == null ? void 0 : C.map((h, b) => /* @__PURE__ */ i(
|
|
1843
1843
|
We,
|
|
1844
1844
|
{
|
|
1845
|
-
indicator:
|
|
1846
|
-
values:
|
|
1845
|
+
indicator: h,
|
|
1846
|
+
values: h.type == "twoUnits" && h.values,
|
|
1847
1847
|
activeColor: s,
|
|
1848
1848
|
defaultColor: o,
|
|
1849
1849
|
activeIndicator: c,
|
|
1850
1850
|
onClickIndicator: u,
|
|
1851
|
-
multiple:
|
|
1851
|
+
multiple: p,
|
|
1852
1852
|
activeIndicatorType: g,
|
|
1853
1853
|
onChangeType: f
|
|
1854
1854
|
},
|
|
@@ -1889,11 +1889,11 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
|
|
|
1889
1889
|
changeIndType: l,
|
|
1890
1890
|
activeIndicatorType: a
|
|
1891
1891
|
}) => {
|
|
1892
|
-
const { t: c } = $(), [u,
|
|
1893
|
-
|
|
1892
|
+
const { t: c } = $(), [u, p] = V(), [g, f] = V(), [y, _] = V(), v = (w) => {
|
|
1893
|
+
p(u == w ? null : w);
|
|
1894
1894
|
}, C = (w) => {
|
|
1895
1895
|
f(g == w ? null : w);
|
|
1896
|
-
},
|
|
1896
|
+
}, h = ({ indicator: w }) => {
|
|
1897
1897
|
b(w);
|
|
1898
1898
|
}, b = (w) => {
|
|
1899
1899
|
if (!t)
|
|
@@ -1932,9 +1932,9 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
|
|
|
1932
1932
|
} else
|
|
1933
1933
|
return S.indicators.some((L) => L.name == w);
|
|
1934
1934
|
});
|
|
1935
|
-
k &&
|
|
1935
|
+
k && p(k.category);
|
|
1936
1936
|
};
|
|
1937
|
-
return /* @__PURE__ */
|
|
1937
|
+
return /* @__PURE__ */ m("div", { className: it.indicatorsList, children: [
|
|
1938
1938
|
/* @__PURE__ */ i("h2", { className: it.title, style: { color: s }, children: c("indicators.indicators") }),
|
|
1939
1939
|
n.map((w, k) => /* @__PURE__ */ i(
|
|
1940
1940
|
kt,
|
|
@@ -1945,7 +1945,7 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
|
|
|
1945
1945
|
activeCategory: u,
|
|
1946
1946
|
onClickSubCategory: C,
|
|
1947
1947
|
activeSubCategory: g,
|
|
1948
|
-
onClickIndicator:
|
|
1948
|
+
onClickIndicator: h,
|
|
1949
1949
|
activeIndicator: y,
|
|
1950
1950
|
activeColor: d,
|
|
1951
1951
|
defaultColor: s,
|
|
@@ -1979,8 +1979,8 @@ const In = "_langSelector_o9enq_2", On = "_currentLang_o9enq_14", qn = "_arrow_o
|
|
|
1979
1979
|
const [o, t] = V(!1), { i18n: r } = $(), l = n.find((c) => c.code == r.language), a = (c) => {
|
|
1980
1980
|
r.changeLanguage(c), t(!1);
|
|
1981
1981
|
};
|
|
1982
|
-
return /* @__PURE__ */
|
|
1983
|
-
/* @__PURE__ */
|
|
1982
|
+
return /* @__PURE__ */ m("div", { className: le.langSelector, children: [
|
|
1983
|
+
/* @__PURE__ */ m(
|
|
1984
1984
|
"div",
|
|
1985
1985
|
{
|
|
1986
1986
|
className: le.currentLang,
|
|
@@ -2059,7 +2059,7 @@ const jn = "_legendContainer_qs4x9_3", zn = "_closeButton_qs4x9_31", Zn = "_titl
|
|
|
2059
2059
|
onClickClose: c
|
|
2060
2060
|
}) => {
|
|
2061
2061
|
const { t: u } = $();
|
|
2062
|
-
return /* @__PURE__ */
|
|
2062
|
+
return /* @__PURE__ */ m(
|
|
2063
2063
|
"div",
|
|
2064
2064
|
{
|
|
2065
2065
|
style: n ? { ...n } : {},
|
|
@@ -2067,16 +2067,16 @@ const jn = "_legendContainer_qs4x9_3", zn = "_closeButton_qs4x9_31", Zn = "_titl
|
|
|
2067
2067
|
children: [
|
|
2068
2068
|
/* @__PURE__ */ i("button", { className: I.closeButton, onClick: c }),
|
|
2069
2069
|
d && /* @__PURE__ */ i("div", { className: I.titleContainer, style: { marginBottom: (!s || s.length == 0) && "15px" }, children: /* @__PURE__ */ i("h2", { children: d }) }),
|
|
2070
|
-
s && s.length > 0 && /* @__PURE__ */ i("div", { className: I.infoContainer, children: /* @__PURE__ */ i("ul", { children: s.map(({ title:
|
|
2071
|
-
/* @__PURE__ */ i("h3", { className: I.title, children: `${
|
|
2072
|
-
/* @__PURE__ */
|
|
2070
|
+
s && s.length > 0 && /* @__PURE__ */ i("div", { className: I.infoContainer, children: /* @__PURE__ */ i("ul", { children: s.map(({ title: p, value: g }) => /* @__PURE__ */ m("li", { children: [
|
|
2071
|
+
/* @__PURE__ */ i("h3", { className: I.title, children: `${p}:` }),
|
|
2072
|
+
/* @__PURE__ */ m("span", { className: I.value, children: [
|
|
2073
2073
|
" ",
|
|
2074
2074
|
g
|
|
2075
2075
|
] })
|
|
2076
2076
|
] }, d)) }) }),
|
|
2077
2077
|
/* @__PURE__ */ i("h3", { className: I.titleLegendList, style: { marginTop: s && s.length > 0 && "30px" }, children: t && /* @__PURE__ */ i(He, { i18nKey: t, components: { sup: /* @__PURE__ */ i("sup", {}) }, shouldUnescape: !0 }) }),
|
|
2078
|
-
/* @__PURE__ */
|
|
2079
|
-
r ? /* @__PURE__ */
|
|
2078
|
+
/* @__PURE__ */ m("div", { className: I.legendListContainer, children: [
|
|
2079
|
+
r ? /* @__PURE__ */ m("div", { className: I.absoluteValueContainer, children: [
|
|
2080
2080
|
/* @__PURE__ */ i(
|
|
2081
2081
|
"div",
|
|
2082
2082
|
{
|
|
@@ -2086,25 +2086,25 @@ const jn = "_legendContainer_qs4x9_3", zn = "_closeButton_qs4x9_31", Zn = "_titl
|
|
|
2086
2086
|
}
|
|
2087
2087
|
}
|
|
2088
2088
|
),
|
|
2089
|
-
/* @__PURE__ */
|
|
2090
|
-
/* @__PURE__ */
|
|
2089
|
+
/* @__PURE__ */ m("div", { className: I.absoluteValueText, children: [
|
|
2090
|
+
/* @__PURE__ */ m("span", { children: [
|
|
2091
2091
|
r.maxValue,
|
|
2092
2092
|
" ",
|
|
2093
2093
|
u(r.unit)
|
|
2094
2094
|
] }),
|
|
2095
|
-
r.midValue && /* @__PURE__ */
|
|
2095
|
+
r.midValue && /* @__PURE__ */ m("span", { children: [
|
|
2096
2096
|
r.midValue,
|
|
2097
2097
|
" ",
|
|
2098
2098
|
u(r.unit)
|
|
2099
2099
|
] }),
|
|
2100
|
-
/* @__PURE__ */
|
|
2100
|
+
/* @__PURE__ */ m("span", { children: [
|
|
2101
2101
|
r.minValue,
|
|
2102
2102
|
" ",
|
|
2103
2103
|
u(r.unit)
|
|
2104
2104
|
] })
|
|
2105
2105
|
] })
|
|
2106
2106
|
] }) : o && o.length > 0 && /* @__PURE__ */ i("div", { className: I.gridContainer, children: o.map(
|
|
2107
|
-
({ title:
|
|
2107
|
+
({ title: p, color: g }) => /* @__PURE__ */ m("div", { className: I.elementLegendContainer, children: [
|
|
2108
2108
|
/* @__PURE__ */ i(
|
|
2109
2109
|
"div",
|
|
2110
2110
|
{
|
|
@@ -2112,13 +2112,13 @@ const jn = "_legendContainer_qs4x9_3", zn = "_closeButton_qs4x9_31", Zn = "_titl
|
|
|
2112
2112
|
style: { backgroundColor: g }
|
|
2113
2113
|
}
|
|
2114
2114
|
),
|
|
2115
|
-
/* @__PURE__ */
|
|
2116
|
-
u(
|
|
2115
|
+
/* @__PURE__ */ m("div", { className: I.titleLegendElement, children: [
|
|
2116
|
+
u(p),
|
|
2117
2117
|
" "
|
|
2118
2118
|
] })
|
|
2119
2119
|
] }, d)
|
|
2120
2120
|
) }),
|
|
2121
|
-
r.noDataColor && /* @__PURE__ */
|
|
2121
|
+
r.noDataColor && /* @__PURE__ */ m("div", { className: I.noDataContainer, children: [
|
|
2122
2122
|
/* @__PURE__ */ i(
|
|
2123
2123
|
"div",
|
|
2124
2124
|
{
|
|
@@ -2190,17 +2190,17 @@ const l0 = ({
|
|
|
2190
2190
|
interactiveLayers: a = [],
|
|
2191
2191
|
popUp: c = !1,
|
|
2192
2192
|
sources: u = [],
|
|
2193
|
-
layers:
|
|
2193
|
+
layers: p = []
|
|
2194
2194
|
}) => {
|
|
2195
2195
|
const g = oe(), [f, y] = V(null), _ = qt((v) => v.mapState.showTexts);
|
|
2196
2196
|
return F(() => {
|
|
2197
2197
|
if (g.current) {
|
|
2198
2198
|
const v = g.current.getMap();
|
|
2199
|
-
v.getStyle().layers.map((
|
|
2200
|
-
|
|
2199
|
+
v.getStyle().layers.map((h) => {
|
|
2200
|
+
h.type == "symbol" && h.id != "professionals" && (_ ? v.setLayoutProperty(h.id, "visibility", "visible") : v.setLayoutProperty(h.id, "visibility", "none"));
|
|
2201
2201
|
});
|
|
2202
2202
|
}
|
|
2203
|
-
}, [_]), /* @__PURE__ */ i("div", { className: `${a0.mapContainer}`, style: r, children: /* @__PURE__ */
|
|
2203
|
+
}, [_]), /* @__PURE__ */ i("div", { className: `${a0.mapContainer}`, style: r, children: /* @__PURE__ */ m(
|
|
2204
2204
|
Rt,
|
|
2205
2205
|
{
|
|
2206
2206
|
initialViewState: n,
|
|
@@ -2216,11 +2216,11 @@ const l0 = ({
|
|
|
2216
2216
|
Et,
|
|
2217
2217
|
{
|
|
2218
2218
|
...v,
|
|
2219
|
-
children:
|
|
2220
|
-
if (
|
|
2219
|
+
children: p.length && p.map((h, b) => {
|
|
2220
|
+
if (h.sourceId == v.id) return /* @__PURE__ */ i(
|
|
2221
2221
|
Pt,
|
|
2222
2222
|
{
|
|
2223
|
-
...
|
|
2223
|
+
...h.layer,
|
|
2224
2224
|
beforeId: t
|
|
2225
2225
|
},
|
|
2226
2226
|
b
|
|
@@ -2296,12 +2296,12 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
|
|
|
2296
2296
|
title: p0
|
|
2297
2297
|
}, m0 = ({ props: n }) => {
|
|
2298
2298
|
const { t: d } = $();
|
|
2299
|
-
return /* @__PURE__ */ i("div", { className: ot.FeaturePopUp, children: n.map((s) => /* @__PURE__ */
|
|
2300
|
-
/* @__PURE__ */
|
|
2299
|
+
return /* @__PURE__ */ i("div", { className: ot.FeaturePopUp, children: n.map((s) => /* @__PURE__ */ m("p", { children: [
|
|
2300
|
+
/* @__PURE__ */ m("span", { className: ot.title, children: [
|
|
2301
2301
|
/* @__PURE__ */ i(He, { i18nKey: s.name, components: { sup: /* @__PURE__ */ i("sup", {}) }, shouldUnescape: !0 }),
|
|
2302
2302
|
":"
|
|
2303
2303
|
] }),
|
|
2304
|
-
isNaN(s.value) ? /* @__PURE__ */ i(qe, { children: d(s.value) }) : /* @__PURE__ */
|
|
2304
|
+
isNaN(s.value) ? /* @__PURE__ */ i(qe, { children: d(s.value) }) : /* @__PURE__ */ m(qe, { children: [
|
|
2305
2305
|
s.value.toLocaleString("de", { maximumFractionDigits: 2 }),
|
|
2306
2306
|
" ",
|
|
2307
2307
|
d(s.unit)
|
|
@@ -2318,7 +2318,7 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
|
|
|
2318
2318
|
interactiveLayers: a = [],
|
|
2319
2319
|
sources: c = [],
|
|
2320
2320
|
layers: u = [],
|
|
2321
|
-
popUpParams:
|
|
2321
|
+
popUpParams: p,
|
|
2322
2322
|
onClosePopUp: g,
|
|
2323
2323
|
showTexts: f,
|
|
2324
2324
|
hash: y = !1
|
|
@@ -2327,8 +2327,8 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
|
|
|
2327
2327
|
return F(() => {
|
|
2328
2328
|
if (_.current) {
|
|
2329
2329
|
const v = _.current.getMap();
|
|
2330
|
-
v.getStyle().layers.map((
|
|
2331
|
-
|
|
2330
|
+
v.getStyle().layers.map((h) => {
|
|
2331
|
+
h.type == "symbol" && h.id != "professionals" && (f ? v.setLayoutProperty(h.id, "visibility", "visible") : v.setLayoutProperty(h.id, "visibility", "none"));
|
|
2332
2332
|
});
|
|
2333
2333
|
}
|
|
2334
2334
|
}, [f]), F(() => {
|
|
@@ -2336,7 +2336,7 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
|
|
|
2336
2336
|
return De.addProtocol("pmtiles", v.tile), () => {
|
|
2337
2337
|
De.removeProtocol("pmtiles");
|
|
2338
2338
|
};
|
|
2339
|
-
}, []), /* @__PURE__ */ i("div", { className: `${d0.mapContainer}`, style: r && r, children: /* @__PURE__ */
|
|
2339
|
+
}, []), /* @__PURE__ */ i("div", { className: `${d0.mapContainer}`, style: r && r, children: /* @__PURE__ */ m(
|
|
2340
2340
|
Ht,
|
|
2341
2341
|
{
|
|
2342
2342
|
mapLib: De,
|
|
@@ -2353,15 +2353,15 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
|
|
|
2353
2353
|
Kt,
|
|
2354
2354
|
{
|
|
2355
2355
|
...v,
|
|
2356
|
-
children: u.length && u.map((
|
|
2357
|
-
if (
|
|
2356
|
+
children: u.length && u.map((h, b) => {
|
|
2357
|
+
if (h.sourceId == v.id) return /* @__PURE__ */ i(
|
|
2358
2358
|
Ut,
|
|
2359
2359
|
{
|
|
2360
|
-
...
|
|
2360
|
+
...h.layer,
|
|
2361
2361
|
beforeId: t,
|
|
2362
|
-
filter:
|
|
2362
|
+
filter: h.filters ? h.filters : ["all"],
|
|
2363
2363
|
layout: {
|
|
2364
|
-
visibility:
|
|
2364
|
+
visibility: h.layer.visibility || "visible"
|
|
2365
2365
|
}
|
|
2366
2366
|
},
|
|
2367
2367
|
b
|
|
@@ -2371,13 +2371,13 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
|
|
|
2371
2371
|
C
|
|
2372
2372
|
)),
|
|
2373
2373
|
/* @__PURE__ */ i(Wt, { position: "bottom-right", visualizePitch: !0 }),
|
|
2374
|
-
|
|
2374
|
+
p && /* @__PURE__ */ i(
|
|
2375
2375
|
Gt,
|
|
2376
2376
|
{
|
|
2377
|
-
longitude:
|
|
2378
|
-
latitude:
|
|
2377
|
+
longitude: p.lng,
|
|
2378
|
+
latitude: p.lat,
|
|
2379
2379
|
onClose: g,
|
|
2380
|
-
children: /* @__PURE__ */ i(m0, { props:
|
|
2380
|
+
children: /* @__PURE__ */ i(m0, { props: p.props })
|
|
2381
2381
|
}
|
|
2382
2382
|
)
|
|
2383
2383
|
]
|
|
@@ -2445,10 +2445,10 @@ const g0 = "_sectionBar_1egwc_2", C0 = "_leftContent_1egwc_14", f0 = "_textConta
|
|
|
2445
2445
|
borderTop: l = !1
|
|
2446
2446
|
}) => {
|
|
2447
2447
|
const { t: a } = $();
|
|
2448
|
-
return /* @__PURE__ */
|
|
2449
|
-
/* @__PURE__ */
|
|
2448
|
+
return /* @__PURE__ */ m("div", { className: te.sectionBar, style: { width: r && r, borderTop: l ? "1px solid #000" : "0px" }, children: [
|
|
2449
|
+
/* @__PURE__ */ m("div", { className: te.leftContent, children: [
|
|
2450
2450
|
n && /* @__PURE__ */ i("img", { src: n, alt: "Icono", className: te.icon }),
|
|
2451
|
-
/* @__PURE__ */
|
|
2451
|
+
/* @__PURE__ */ m("div", { className: te.textContainer, children: [
|
|
2452
2452
|
/* @__PURE__ */ i("div", { className: te.title, children: a(d) }),
|
|
2453
2453
|
s && /* @__PURE__ */ i("div", { className: te.subtitle, children: s })
|
|
2454
2454
|
] })
|
|
@@ -2513,18 +2513,18 @@ const w0 = Yt({
|
|
|
2513
2513
|
console.log("year changed to ", a);
|
|
2514
2514
|
}
|
|
2515
2515
|
}) => {
|
|
2516
|
-
const [a, c] = V(d), u = (
|
|
2516
|
+
const [a, c] = V(d), u = (h, b) => {
|
|
2517
2517
|
c(b), l(b);
|
|
2518
|
-
}, [
|
|
2518
|
+
}, [p, g] = V(!1), f = () => {
|
|
2519
2519
|
g(!0);
|
|
2520
2520
|
}, y = () => {
|
|
2521
2521
|
g(!1);
|
|
2522
2522
|
};
|
|
2523
|
-
((
|
|
2523
|
+
((h, b) => {
|
|
2524
2524
|
const x = oe();
|
|
2525
2525
|
F(() => {
|
|
2526
|
-
x.current =
|
|
2527
|
-
}, [
|
|
2526
|
+
x.current = h;
|
|
2527
|
+
}, [h]), F(() => {
|
|
2528
2528
|
function w() {
|
|
2529
2529
|
x.current();
|
|
2530
2530
|
}
|
|
@@ -2534,7 +2534,7 @@ const w0 = Yt({
|
|
|
2534
2534
|
}
|
|
2535
2535
|
}, [b]);
|
|
2536
2536
|
})(() => {
|
|
2537
|
-
|
|
2537
|
+
p && (a != 2050 ? (c(a + 1), l(a + 1)) : (c(2025), l(2025)));
|
|
2538
2538
|
}, 1e3);
|
|
2539
2539
|
const v = Xt({
|
|
2540
2540
|
palette: {
|
|
@@ -2564,7 +2564,7 @@ const w0 = Yt({
|
|
|
2564
2564
|
{ label: "", value: 2041 },
|
|
2565
2565
|
{ label: "", value: 2050 }
|
|
2566
2566
|
];
|
|
2567
|
-
return /* @__PURE__ */ i(e2, { theme: v, children: /* @__PURE__ */
|
|
2567
|
+
return /* @__PURE__ */ i(e2, { theme: v, children: /* @__PURE__ */ m(
|
|
2568
2568
|
Jt,
|
|
2569
2569
|
{
|
|
2570
2570
|
sx: { width: 400 },
|
|
@@ -2588,8 +2588,8 @@ const w0 = Yt({
|
|
|
2588
2588
|
}
|
|
2589
2589
|
),
|
|
2590
2590
|
o,
|
|
2591
|
-
!
|
|
2592
|
-
|
|
2591
|
+
!p && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: f, children: /* @__PURE__ */ i("img", { src: x0, alt: "Play" }) }),
|
|
2592
|
+
p && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: y, children: /* @__PURE__ */ i("img", { src: k0, alt: "Pause" }) })
|
|
2593
2593
|
]
|
|
2594
2594
|
}
|
|
2595
2595
|
) });
|
|
@@ -2732,17 +2732,17 @@ const oi = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2732
2732
|
elementButtons: a,
|
|
2733
2733
|
processTooltip: c,
|
|
2734
2734
|
defaultTooltip: u,
|
|
2735
|
-
showEye:
|
|
2735
|
+
showEye: p = !0
|
|
2736
2736
|
}) => {
|
|
2737
|
-
const { name: g, created_at: f, id: y, isBeingProcessed: _ } = n, [v, C] = V(!1), { t:
|
|
2738
|
-
return /* @__PURE__ */
|
|
2737
|
+
const { name: g, created_at: f, id: y, isBeingProcessed: _ } = n, [v, C] = V(!1), { t: h } = $();
|
|
2738
|
+
return /* @__PURE__ */ m(
|
|
2739
2739
|
"div",
|
|
2740
2740
|
{
|
|
2741
2741
|
className: Z.listElement,
|
|
2742
2742
|
style: { borderBottom: `1px solid ${t}` },
|
|
2743
2743
|
children: [
|
|
2744
|
-
/* @__PURE__ */ i("div", { className: Z.elementNameDate, onClick: () => d(y), children: Object.keys(l).map((b) => b === "name" ? /* @__PURE__ */ i("div", { className: Z.elementNameContainer, children: /* @__PURE__ */
|
|
2745
|
-
|
|
2744
|
+
/* @__PURE__ */ i("div", { className: Z.elementNameDate, onClick: () => d(y), children: Object.keys(l).map((b) => b === "name" ? /* @__PURE__ */ i("div", { className: Z.elementNameContainer, children: /* @__PURE__ */ m("div", { className: Z.elementName, children: [
|
|
2745
|
+
p && (s ? /* @__PURE__ */ i(si, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ i(
|
|
2746
2746
|
"img",
|
|
2747
2747
|
{
|
|
2748
2748
|
style: { marginRight: 9 },
|
|
@@ -2752,33 +2752,33 @@ const oi = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2752
2752
|
)),
|
|
2753
2753
|
/* @__PURE__ */ i("span", { style: { color: s ? o : t }, children: g })
|
|
2754
2754
|
] }) }) : b == "data" ? /* @__PURE__ */ i("div", { className: Z.elementDate, children: f ? new Date(f).toLocaleDateString() : "" }) : /* @__PURE__ */ i("div", { className: Z.elementDate, children: n[b] })) }),
|
|
2755
|
-
/* @__PURE__ */
|
|
2756
|
-
n.processing && /* @__PURE__ */
|
|
2755
|
+
/* @__PURE__ */ m("div", { className: Z.elementButtons, children: [
|
|
2756
|
+
n.processing && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
2757
2757
|
/* @__PURE__ */ i("img", { src: ni }),
|
|
2758
2758
|
/* @__PURE__ */ i(se, { text: c, position: "left" })
|
|
2759
2759
|
] }),
|
|
2760
|
-
a.filter && !n.is_default && /* @__PURE__ */
|
|
2760
|
+
a.filter && !n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
2761
2761
|
/* @__PURE__ */ i("button", { onClick: () => a.filter.onclick(n), children: /* @__PURE__ */ i("img", { src: ti }) }),
|
|
2762
2762
|
/* @__PURE__ */ i(se, { text: a.filter.tooltiptext, position: "left" })
|
|
2763
2763
|
] }),
|
|
2764
|
-
a.copy && /* @__PURE__ */
|
|
2764
|
+
a.copy && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
2765
2765
|
/* @__PURE__ */ i("button", { onClick: () => a.copy.onclick(n), children: /* @__PURE__ */ i("img", { src: ei }) }),
|
|
2766
2766
|
/* @__PURE__ */ i(se, { text: a.copy.tooltiptext, position: "left" })
|
|
2767
2767
|
] }),
|
|
2768
|
-
a.trash && !n.is_default && /* @__PURE__ */
|
|
2768
|
+
a.trash && !n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
2769
2769
|
/* @__PURE__ */ i("button", { onClick: () => a.trash.onclick(n), children: /* @__PURE__ */ i("img", { src: J0 }) }),
|
|
2770
2770
|
/* @__PURE__ */ i(se, { text: a.trash.tooltiptext, position: "left" })
|
|
2771
2771
|
] }),
|
|
2772
|
-
n.is_default && /* @__PURE__ */
|
|
2772
|
+
n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
2773
2773
|
/* @__PURE__ */ i("img", { src: ii }),
|
|
2774
2774
|
/* @__PURE__ */ i(se, { text: u, position: "left" })
|
|
2775
2775
|
] })
|
|
2776
2776
|
] }),
|
|
2777
2777
|
r && /* @__PURE__ */ i("div", { className: Z.break }),
|
|
2778
|
-
r && /* @__PURE__ */
|
|
2779
|
-
/* @__PURE__ */
|
|
2778
|
+
r && /* @__PURE__ */ m("div", { className: Z.moreInfoContainer, children: [
|
|
2779
|
+
/* @__PURE__ */ m("div", { className: Z.moreInfo, onClick: () => C(!v), children: [
|
|
2780
2780
|
/* @__PURE__ */ i("span", { children: v ? "-" : "+" }),
|
|
2781
|
-
|
|
2781
|
+
h(r.label)
|
|
2782
2782
|
] }),
|
|
2783
2783
|
r && v && /* @__PURE__ */ i("div", { className: Z.moreInfoInfo, children: n[r.info] })
|
|
2784
2784
|
] })
|
|
@@ -2836,7 +2836,7 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2836
2836
|
// {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
|
|
2837
2837
|
elementButtons: u,
|
|
2838
2838
|
//{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
|
|
2839
|
-
moreInfo:
|
|
2839
|
+
moreInfo: p = !1,
|
|
2840
2840
|
//{label: 'x'}
|
|
2841
2841
|
processTooltip: g,
|
|
2842
2842
|
//texto para el tooltip del simbolo "En proceso"
|
|
@@ -2848,28 +2848,28 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2848
2848
|
F(() => {
|
|
2849
2849
|
n && C(n);
|
|
2850
2850
|
}, [n]);
|
|
2851
|
-
const
|
|
2851
|
+
const h = (b) => {
|
|
2852
2852
|
if (v && v.length > 0) {
|
|
2853
2853
|
let x = [...v];
|
|
2854
2854
|
x.sort((w, k) => w[b].localeCompare(k[b])), C(x);
|
|
2855
2855
|
}
|
|
2856
2856
|
};
|
|
2857
|
-
return /* @__PURE__ */
|
|
2857
|
+
return /* @__PURE__ */ m(
|
|
2858
2858
|
"div",
|
|
2859
2859
|
{
|
|
2860
2860
|
className: K.elementSelector,
|
|
2861
2861
|
style: { color: s, ...r },
|
|
2862
2862
|
children: [
|
|
2863
|
-
/* @__PURE__ */
|
|
2863
|
+
/* @__PURE__ */ m(
|
|
2864
2864
|
"div",
|
|
2865
2865
|
{
|
|
2866
2866
|
className: K.header,
|
|
2867
2867
|
style: { borderBottom: `1px solid ${s}` },
|
|
2868
2868
|
children: [
|
|
2869
|
-
/* @__PURE__ */ i("div", { className: K.nameDateContainer, children: Object.keys(c).map((b) => b === "name" ? /* @__PURE__ */ i("div", { className: K.elementName, children: /* @__PURE__ */
|
|
2869
|
+
/* @__PURE__ */ i("div", { className: K.nameDateContainer, children: Object.keys(c).map((b) => b === "name" ? /* @__PURE__ */ i("div", { className: K.elementName, children: /* @__PURE__ */ m("button", { onClick: () => h("name"), children: [
|
|
2870
2870
|
/* @__PURE__ */ i("span", { children: _(c.name) }),
|
|
2871
2871
|
/* @__PURE__ */ i("img", { src: at, alt: "order arrow" })
|
|
2872
|
-
] }) }, b) : b === "data" ? /* @__PURE__ */ i("div", { className: K.elementDate, children: /* @__PURE__ */
|
|
2872
|
+
] }) }, b) : b === "data" ? /* @__PURE__ */ i("div", { className: K.elementDate, children: /* @__PURE__ */ m("button", { onClick: () => h("date"), children: [
|
|
2873
2873
|
/* @__PURE__ */ i("span", { children: _(c.data) }),
|
|
2874
2874
|
/* @__PURE__ */ i("img", { src: at, alt: "order arrow" })
|
|
2875
2875
|
] }) }, b) : /* @__PURE__ */ i("div", { className: K.elementDate, children: /* @__PURE__ */ i("span", { children: _(c[b]) }) }, b)) }),
|
|
@@ -2887,7 +2887,7 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2887
2887
|
onClickElement: a,
|
|
2888
2888
|
columns: c,
|
|
2889
2889
|
elementButtons: u,
|
|
2890
|
-
moreInfo:
|
|
2890
|
+
moreInfo: p,
|
|
2891
2891
|
processTooltip: g,
|
|
2892
2892
|
defaultTooltip: f,
|
|
2893
2893
|
showEye: y
|
|
@@ -3063,7 +3063,7 @@ function ki(n) {
|
|
|
3063
3063
|
values: !0
|
|
3064
3064
|
},
|
|
3065
3065
|
exact: l,
|
|
3066
|
-
callback: (
|
|
3066
|
+
callback: (p) => !r && u(xi(o, s._names, p.values || s._formValues, !1, a.current))
|
|
3067
3067
|
}), [o, s, r, l]), D.useEffect(() => s._removeUnmounted()), c;
|
|
3068
3068
|
}
|
|
3069
3069
|
function Ni(n) {
|
|
@@ -3076,7 +3076,7 @@ function Ni(n) {
|
|
|
3076
3076
|
control: t,
|
|
3077
3077
|
name: s,
|
|
3078
3078
|
exact: !0
|
|
3079
|
-
}), u = D.useRef(n),
|
|
3079
|
+
}), u = D.useRef(n), p = D.useRef(t.register(s, {
|
|
3080
3080
|
...n.rules,
|
|
3081
3081
|
value: a,
|
|
3082
3082
|
...Oe(n.disabled) ? { disabled: n.disabled } : {}
|
|
@@ -3101,21 +3101,21 @@ function Ni(n) {
|
|
|
3101
3101
|
enumerable: !0,
|
|
3102
3102
|
get: () => P(c.errors, s)
|
|
3103
3103
|
}
|
|
3104
|
-
}), [c, s]), f = D.useCallback((C) =>
|
|
3104
|
+
}), [c, s]), f = D.useCallback((C) => p.current.onChange({
|
|
3105
3105
|
target: {
|
|
3106
3106
|
value: hi(C),
|
|
3107
3107
|
name: s
|
|
3108
3108
|
},
|
|
3109
3109
|
type: ct.CHANGE
|
|
3110
|
-
}), [s]), y = D.useCallback(() =>
|
|
3110
|
+
}), [s]), y = D.useCallback(() => p.current.onBlur({
|
|
3111
3111
|
target: {
|
|
3112
3112
|
value: P(t._formValues, s),
|
|
3113
3113
|
name: s
|
|
3114
3114
|
},
|
|
3115
3115
|
type: ct.BLUR
|
|
3116
3116
|
}), [s, t._formValues]), _ = D.useCallback((C) => {
|
|
3117
|
-
const
|
|
3118
|
-
|
|
3117
|
+
const h = P(t._fields, s);
|
|
3118
|
+
h && C && (h._f.ref = {
|
|
3119
3119
|
focus: () => C.focus && C.focus(),
|
|
3120
3120
|
select: () => C.select && C.select(),
|
|
3121
3121
|
setCustomValidity: (b) => C.setCustomValidity(b),
|
|
@@ -3135,16 +3135,16 @@ function Ni(n) {
|
|
|
3135
3135
|
...u.current.rules,
|
|
3136
3136
|
...Oe(u.current.disabled) ? { disabled: u.current.disabled } : {}
|
|
3137
3137
|
});
|
|
3138
|
-
const
|
|
3138
|
+
const h = (b, x) => {
|
|
3139
3139
|
const w = P(t._fields, b);
|
|
3140
3140
|
w && w._f && (w._f.mount = x);
|
|
3141
3141
|
};
|
|
3142
|
-
if (
|
|
3142
|
+
if (h(s, !0), C) {
|
|
3143
3143
|
const b = $t(P(t._options.defaultValues, s));
|
|
3144
3144
|
lt(t._defaultValues, s, b), Ze(P(t._formValues, s)) && lt(t._formValues, s, b);
|
|
3145
3145
|
}
|
|
3146
3146
|
return !l && t.register(s), () => {
|
|
3147
|
-
(l ? C && !t._state.action : C) ? t.unregister(s) :
|
|
3147
|
+
(l ? C && !t._state.action : C) ? t.unregister(s) : h(s, !1);
|
|
3148
3148
|
};
|
|
3149
3149
|
}, [s, t, l, r]), D.useEffect(() => {
|
|
3150
3150
|
t._setDisabledField({
|
|
@@ -3191,12 +3191,12 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3191
3191
|
validateFunction: a,
|
|
3192
3192
|
placeholder: c,
|
|
3193
3193
|
errorColor: u = "red",
|
|
3194
|
-
width:
|
|
3194
|
+
width: p = 325,
|
|
3195
3195
|
onClickForgotPass: g = () => {
|
|
3196
3196
|
console.log("Click on forgot password");
|
|
3197
3197
|
},
|
|
3198
3198
|
forgotPassLabel: f = "forgot-password"
|
|
3199
|
-
} = n, { t: y } = $(), { control: _, trigger: v, clearErrors: C } = d, { errorColor:
|
|
3199
|
+
} = n, { t: y } = $(), { control: _, trigger: v, clearErrors: C } = d, { errorColor: h } = xe((k) => k), [b, x] = V(!1);
|
|
3200
3200
|
oe(l);
|
|
3201
3201
|
const w = () => o ? o === "password" && b ? "text" : o : "text";
|
|
3202
3202
|
return /* @__PURE__ */ i(
|
|
@@ -3211,16 +3211,16 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3211
3211
|
},
|
|
3212
3212
|
render: ({ field: k, fieldState: S }) => {
|
|
3213
3213
|
var L;
|
|
3214
|
-
return /* @__PURE__ */
|
|
3215
|
-
/* @__PURE__ */
|
|
3214
|
+
return /* @__PURE__ */ m("div", { className: be.textInputContainer, children: [
|
|
3215
|
+
/* @__PURE__ */ m("h3", { className: be.labelContainer, children: [
|
|
3216
3216
|
y(t),
|
|
3217
3217
|
" ",
|
|
3218
3218
|
l && /* @__PURE__ */ i("label", { style: { color: S.error ? u : "" }, children: "*" })
|
|
3219
3219
|
] }),
|
|
3220
|
-
/* @__PURE__ */
|
|
3220
|
+
/* @__PURE__ */ m(
|
|
3221
3221
|
"div",
|
|
3222
3222
|
{
|
|
3223
|
-
style: { position: "relative", width:
|
|
3223
|
+
style: { position: "relative", width: p },
|
|
3224
3224
|
className: be.inputContainer,
|
|
3225
3225
|
children: [
|
|
3226
3226
|
/* @__PURE__ */ i(
|
|
@@ -3249,7 +3249,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3249
3249
|
we,
|
|
3250
3250
|
{
|
|
3251
3251
|
errorMessage: (L = S.error) == null ? void 0 : L.message,
|
|
3252
|
-
errorColor:
|
|
3252
|
+
errorColor: h || u
|
|
3253
3253
|
}
|
|
3254
3254
|
)
|
|
3255
3255
|
] });
|
|
@@ -3275,9 +3275,9 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3275
3275
|
validateFunction: a,
|
|
3276
3276
|
placeholder: c,
|
|
3277
3277
|
errorColor: u = "red",
|
|
3278
|
-
width:
|
|
3278
|
+
width: p = 325,
|
|
3279
3279
|
options: g = []
|
|
3280
|
-
} = n, { t: f } = $(), { control: y, trigger: _, clearErrors: v } = d, { errorColor: C } = xe((
|
|
3280
|
+
} = n, { t: f } = $(), { control: y, trigger: _, clearErrors: v } = d, { errorColor: C } = xe((h) => h);
|
|
3281
3281
|
return oe(l), /* @__PURE__ */ i(
|
|
3282
3282
|
ve,
|
|
3283
3283
|
{
|
|
@@ -3285,27 +3285,27 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3285
3285
|
control: y,
|
|
3286
3286
|
rules: {
|
|
3287
3287
|
required: l ? `${f(t)} ${f("errorMessages.required")}` : !1,
|
|
3288
|
-
validate: a ? (
|
|
3288
|
+
validate: a ? (h) => {
|
|
3289
3289
|
let b = d.getValues();
|
|
3290
|
-
return a(
|
|
3290
|
+
return a(h, b);
|
|
3291
3291
|
} : void 0
|
|
3292
3292
|
},
|
|
3293
|
-
render: ({ field:
|
|
3293
|
+
render: ({ field: h, fieldState: b }) => {
|
|
3294
3294
|
var x;
|
|
3295
|
-
return /* @__PURE__ */
|
|
3296
|
-
/* @__PURE__ */
|
|
3295
|
+
return /* @__PURE__ */ m("div", { className: de.selectInputContainer, children: [
|
|
3296
|
+
/* @__PURE__ */ m("h3", { className: de.labelContainer, children: [
|
|
3297
3297
|
f(t),
|
|
3298
3298
|
" ",
|
|
3299
3299
|
l && /* @__PURE__ */ i("label", { style: { color: b.error ? u : "" }, children: "*" })
|
|
3300
3300
|
] }),
|
|
3301
|
-
/* @__PURE__ */
|
|
3302
|
-
/* @__PURE__ */
|
|
3301
|
+
/* @__PURE__ */ m("div", { className: de.inputContainer, style: { width: p }, children: [
|
|
3302
|
+
/* @__PURE__ */ m(
|
|
3303
3303
|
"select",
|
|
3304
3304
|
{
|
|
3305
|
-
...
|
|
3305
|
+
...h,
|
|
3306
3306
|
onChange: (w) => {
|
|
3307
3307
|
const k = w.target.value, S = g.every((L) => typeof L.value == "number") ? Number(k) : k;
|
|
3308
|
-
|
|
3308
|
+
h.onChange(S);
|
|
3309
3309
|
},
|
|
3310
3310
|
className: de.selectInput,
|
|
3311
3311
|
children: [
|
|
@@ -3358,30 +3358,30 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3358
3358
|
errorColor: l = "red",
|
|
3359
3359
|
options: a = [],
|
|
3360
3360
|
multi: c = !1
|
|
3361
|
-
} = n, { t: u } = $(), { control:
|
|
3361
|
+
} = n, { t: u } = $(), { control: p, trigger: g, clearErrors: f } = d, { errorColor: y } = xe((C) => C), _ = ({ options: C, onChange: h, actualValue: b }) => {
|
|
3362
3362
|
if (c && b && b.length > 0) {
|
|
3363
3363
|
let x = b.filter((w) => w !== C);
|
|
3364
|
-
|
|
3364
|
+
h(x);
|
|
3365
3365
|
}
|
|
3366
|
-
}, v = ({ options: C, onChange:
|
|
3367
|
-
c ? b && b.length > 0 ?
|
|
3366
|
+
}, v = ({ options: C, onChange: h, actualValue: b }) => {
|
|
3367
|
+
c ? b && b.length > 0 ? h([...b, C]) : h([C]) : h(C);
|
|
3368
3368
|
};
|
|
3369
3369
|
return oe(t), /* @__PURE__ */ i(
|
|
3370
3370
|
ve,
|
|
3371
3371
|
{
|
|
3372
|
-
control:
|
|
3372
|
+
control: p,
|
|
3373
3373
|
name: s,
|
|
3374
3374
|
rules: {
|
|
3375
3375
|
validate: (C) => t && (C == null || C === "") ? `${u(o)} ${u("errorMessages.required")}` : null
|
|
3376
3376
|
},
|
|
3377
3377
|
render: ({
|
|
3378
3378
|
formState: { errors: C },
|
|
3379
|
-
field: { onChange:
|
|
3379
|
+
field: { onChange: h, onBlur: b, value: x, ref: w },
|
|
3380
3380
|
fieldState: k
|
|
3381
3381
|
}) => {
|
|
3382
3382
|
var S;
|
|
3383
|
-
return /* @__PURE__ */ i("div", { id: s + "id", className: ne.radioButtonContainer, children: /* @__PURE__ */
|
|
3384
|
-
o && /* @__PURE__ */ i("div", { className: ne.questionContainer, children: /* @__PURE__ */
|
|
3383
|
+
return /* @__PURE__ */ i("div", { id: s + "id", className: ne.radioButtonContainer, children: /* @__PURE__ */ m("div", { className: ne.wholeInputContainer, children: [
|
|
3384
|
+
o && /* @__PURE__ */ i("div", { className: ne.questionContainer, children: /* @__PURE__ */ m(
|
|
3385
3385
|
"h3",
|
|
3386
3386
|
{
|
|
3387
3387
|
htmlFor: s + "id",
|
|
@@ -3399,7 +3399,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3399
3399
|
]
|
|
3400
3400
|
}
|
|
3401
3401
|
) }),
|
|
3402
|
-
/* @__PURE__ */
|
|
3402
|
+
/* @__PURE__ */ m("div", { className: ne.inputContainer, children: [
|
|
3403
3403
|
a.map(
|
|
3404
3404
|
({
|
|
3405
3405
|
label: L,
|
|
@@ -3408,7 +3408,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3408
3408
|
italicLabel: O
|
|
3409
3409
|
}, q) => {
|
|
3410
3410
|
const M = x && c ? x.isArray && (x == null ? void 0 : x.length) > 0 && x.some((H) => H === N) : x === N;
|
|
3411
|
-
return /* @__PURE__ */
|
|
3411
|
+
return /* @__PURE__ */ m("label", { children: [
|
|
3412
3412
|
/* @__PURE__ */ i(
|
|
3413
3413
|
"input",
|
|
3414
3414
|
{
|
|
@@ -3418,12 +3418,12 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3418
3418
|
c ? M ? _({
|
|
3419
3419
|
actualValue: x,
|
|
3420
3420
|
options: a,
|
|
3421
|
-
onChange:
|
|
3421
|
+
onChange: h
|
|
3422
3422
|
}) : v({
|
|
3423
3423
|
actualValue: x,
|
|
3424
3424
|
options: a,
|
|
3425
|
-
onChange:
|
|
3426
|
-
}) :
|
|
3425
|
+
onChange: h
|
|
3426
|
+
}) : h(N);
|
|
3427
3427
|
},
|
|
3428
3428
|
className: ne.radioInput
|
|
3429
3429
|
}
|
|
@@ -3464,7 +3464,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3464
3464
|
thumbColor: c = "#B32F5D",
|
|
3465
3465
|
//trackColors = ["#B32F5D", "#EFEFEF"],
|
|
3466
3466
|
required: u,
|
|
3467
|
-
errorColor:
|
|
3467
|
+
errorColor: p = "red",
|
|
3468
3468
|
labelWidth: g = "300px",
|
|
3469
3469
|
sliderWidth: f = "300px",
|
|
3470
3470
|
minText: y,
|
|
@@ -3474,7 +3474,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3474
3474
|
{ length: l - r + 1 },
|
|
3475
3475
|
(B, O) => r + O
|
|
3476
3476
|
),
|
|
3477
|
-
showMarksNumber:
|
|
3477
|
+
showMarksNumber: h = !0
|
|
3478
3478
|
} = n, { t: b } = $(), { control: x, trigger: w, clearErrors: k } = d || {};
|
|
3479
3479
|
oe(u);
|
|
3480
3480
|
const { errorColorForm: S } = xe((B) => B), [L, N] = V(a);
|
|
@@ -3489,7 +3489,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3489
3489
|
},
|
|
3490
3490
|
render: ({ field: B, fieldState: O }) => {
|
|
3491
3491
|
var q;
|
|
3492
|
-
return /* @__PURE__ */
|
|
3492
|
+
return /* @__PURE__ */ m(
|
|
3493
3493
|
"div",
|
|
3494
3494
|
{
|
|
3495
3495
|
className: A.rankingSliderContainer,
|
|
@@ -3498,9 +3498,9 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3498
3498
|
},
|
|
3499
3499
|
children: [
|
|
3500
3500
|
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: b(t) }),
|
|
3501
|
-
/* @__PURE__ */
|
|
3501
|
+
/* @__PURE__ */ m("div", { className: A.inputContainer, children: [
|
|
3502
3502
|
y && /* @__PURE__ */ i("div", { className: A.minLabel, children: b(y) }),
|
|
3503
|
-
/* @__PURE__ */
|
|
3503
|
+
/* @__PURE__ */ m("div", { children: [
|
|
3504
3504
|
/* @__PURE__ */ i(
|
|
3505
3505
|
je,
|
|
3506
3506
|
{
|
|
@@ -3524,7 +3524,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3524
3524
|
disabled: v
|
|
3525
3525
|
}
|
|
3526
3526
|
),
|
|
3527
|
-
C && /* @__PURE__ */ i("div", { className: A.labels, children: C.map((M) => /* @__PURE__ */ i("span", { children:
|
|
3527
|
+
C && /* @__PURE__ */ i("div", { className: A.labels, children: C.map((M) => /* @__PURE__ */ i("span", { children: h && M }, M)) })
|
|
3528
3528
|
] }),
|
|
3529
3529
|
_ && /* @__PURE__ */ i("div", { className: A.maxLabel, children: b(_) })
|
|
3530
3530
|
] }),
|
|
@@ -3532,7 +3532,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3532
3532
|
we,
|
|
3533
3533
|
{
|
|
3534
3534
|
errorMessage: (q = O.error) == null ? void 0 : q.message,
|
|
3535
|
-
errorColor: S ||
|
|
3535
|
+
errorColor: S || p
|
|
3536
3536
|
}
|
|
3537
3537
|
)
|
|
3538
3538
|
]
|
|
@@ -3540,16 +3540,16 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3540
3540
|
);
|
|
3541
3541
|
}
|
|
3542
3542
|
}
|
|
3543
|
-
) : /* @__PURE__ */
|
|
3543
|
+
) : /* @__PURE__ */ m(
|
|
3544
3544
|
"div",
|
|
3545
3545
|
{
|
|
3546
3546
|
className: A.rankingSliderContainer,
|
|
3547
3547
|
style: { gridTemplateColumns: `${t && g} ${f}` },
|
|
3548
3548
|
children: [
|
|
3549
3549
|
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: b(t) }),
|
|
3550
|
-
/* @__PURE__ */
|
|
3550
|
+
/* @__PURE__ */ m("div", { className: A.inputContainer, children: [
|
|
3551
3551
|
y && /* @__PURE__ */ i("div", { className: A.minLabel, children: b(y) }),
|
|
3552
|
-
/* @__PURE__ */
|
|
3552
|
+
/* @__PURE__ */ m("div", { children: [
|
|
3553
3553
|
/* @__PURE__ */ i(
|
|
3554
3554
|
je,
|
|
3555
3555
|
{
|
|
@@ -3575,7 +3575,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3575
3575
|
disabled: v
|
|
3576
3576
|
}
|
|
3577
3577
|
),
|
|
3578
|
-
C && /* @__PURE__ */ i("div", { className: A.labels, children: C.map((B) => /* @__PURE__ */ i("span", { children:
|
|
3578
|
+
C && /* @__PURE__ */ i("div", { className: A.labels, children: C.map((B) => /* @__PURE__ */ i("span", { children: h && B }, B)) })
|
|
3579
3579
|
] }),
|
|
3580
3580
|
_ && /* @__PURE__ */ i("div", { className: A.maxLabel, children: b(_) })
|
|
3581
3581
|
] })
|
|
@@ -3715,18 +3715,18 @@ const ye = ({
|
|
|
3715
3715
|
d(l);
|
|
3716
3716
|
};
|
|
3717
3717
|
return /* @__PURE__ */ i("div", { className: Be.categorySelector, children: n.map((l, a) => {
|
|
3718
|
-
const { id: c, label: u } = l,
|
|
3718
|
+
const { id: c, label: u } = l, p = s == c;
|
|
3719
3719
|
return /* @__PURE__ */ i(
|
|
3720
3720
|
"button",
|
|
3721
3721
|
{
|
|
3722
|
-
className: `${Be.sectionItem} ${
|
|
3722
|
+
className: `${Be.sectionItem} ${p ? Be.sectionItemActive : ""}`,
|
|
3723
3723
|
type: "button",
|
|
3724
|
-
style: { backgroundColor:
|
|
3724
|
+
style: { backgroundColor: p ? o : "inherit" },
|
|
3725
3725
|
onClick: () => r(c),
|
|
3726
3726
|
children: /* @__PURE__ */ i(
|
|
3727
3727
|
"span",
|
|
3728
3728
|
{
|
|
3729
|
-
style: { color:
|
|
3729
|
+
style: { color: p ? "white" : "inherit" },
|
|
3730
3730
|
className: Be.sectionLabel,
|
|
3731
3731
|
children: t(u)
|
|
3732
3732
|
}
|
|
@@ -3746,7 +3746,7 @@ const ye = ({
|
|
|
3746
3746
|
submitButtonStyles: a = { width: 325 },
|
|
3747
3747
|
showCategorySelector: c = !0,
|
|
3748
3748
|
defaultCategory: u = null,
|
|
3749
|
-
categoryLabel:
|
|
3749
|
+
categoryLabel: p = "Select Category",
|
|
3750
3750
|
activeCategory: g = null,
|
|
3751
3751
|
activeCategoryColor: f = "#b32f5d",
|
|
3752
3752
|
onSubmit: y = (_) => console.log("Form submitted with: ", _)
|
|
@@ -3755,7 +3755,7 @@ const ye = ({
|
|
|
3755
3755
|
F(() => {
|
|
3756
3756
|
r && xe.setState(() => ({ errorColor: r }));
|
|
3757
3757
|
}, [r]);
|
|
3758
|
-
const
|
|
3758
|
+
const h = me(() => d ? d.filter((N) => N.category).map((N) => {
|
|
3759
3759
|
var B;
|
|
3760
3760
|
return {
|
|
3761
3761
|
id: N.categoryId,
|
|
@@ -3769,8 +3769,8 @@ const ye = ({
|
|
|
3769
3769
|
g || u || null
|
|
3770
3770
|
), [k, S] = V(null);
|
|
3771
3771
|
F(() => {
|
|
3772
|
-
!x &&
|
|
3773
|
-
}, [
|
|
3772
|
+
!x && h.length > 0 && w(h[0].id);
|
|
3773
|
+
}, [h, x]), F(() => {
|
|
3774
3774
|
const N = b(x);
|
|
3775
3775
|
!k && (N == null ? void 0 : N.length) > 0 && S(N[0].id);
|
|
3776
3776
|
}, [x, k, d]);
|
|
@@ -3778,7 +3778,7 @@ const ye = ({
|
|
|
3778
3778
|
var O;
|
|
3779
3779
|
if (((O = N.subcategories) == null ? void 0 : O.length) > 0) {
|
|
3780
3780
|
const q = N.subcategories;
|
|
3781
|
-
return /* @__PURE__ */
|
|
3781
|
+
return /* @__PURE__ */ m("div", { children: [
|
|
3782
3782
|
/* @__PURE__ */ i(
|
|
3783
3783
|
"div",
|
|
3784
3784
|
{
|
|
@@ -3816,7 +3816,7 @@ const ye = ({
|
|
|
3816
3816
|
) }, M.id)
|
|
3817
3817
|
},
|
|
3818
3818
|
`${M.id}${H}`
|
|
3819
|
-
) : /* @__PURE__ */
|
|
3819
|
+
) : /* @__PURE__ */ m(
|
|
3820
3820
|
"div",
|
|
3821
3821
|
{
|
|
3822
3822
|
style: {
|
|
@@ -3851,7 +3851,7 @@ const ye = ({
|
|
|
3851
3851
|
errorColor: r,
|
|
3852
3852
|
reactHookFormInstance: n
|
|
3853
3853
|
}
|
|
3854
|
-
) }, N.categoryId) : /* @__PURE__ */
|
|
3854
|
+
) }, N.categoryId) : /* @__PURE__ */ m("div", { style: { width: "100%" }, children: [
|
|
3855
3855
|
/* @__PURE__ */ i("h2", { children: _(N.category) }),
|
|
3856
3856
|
/* @__PURE__ */ i(
|
|
3857
3857
|
ye,
|
|
@@ -3865,12 +3865,12 @@ const ye = ({
|
|
|
3865
3865
|
)
|
|
3866
3866
|
] }, N.categoryId);
|
|
3867
3867
|
};
|
|
3868
|
-
return /* @__PURE__ */
|
|
3869
|
-
c &&
|
|
3868
|
+
return /* @__PURE__ */ m("form", { className: Ce.formContainer, onSubmit: v(y), children: [
|
|
3869
|
+
c && h.length > 0 && /* @__PURE__ */ i("div", { className: Ce.categorySelectorContainer, children: /* @__PURE__ */ i(
|
|
3870
3870
|
pt,
|
|
3871
3871
|
{
|
|
3872
3872
|
activeCategory: x,
|
|
3873
|
-
categories:
|
|
3873
|
+
categories: h,
|
|
3874
3874
|
onChange: (N) => {
|
|
3875
3875
|
w(N), S(null);
|
|
3876
3876
|
},
|
|
@@ -3900,7 +3900,7 @@ const ye = ({
|
|
|
3900
3900
|
}
|
|
3901
3901
|
);
|
|
3902
3902
|
}) }),
|
|
3903
|
-
/* @__PURE__ */
|
|
3903
|
+
/* @__PURE__ */ m("div", { className: Ce.buttonContainer, children: [
|
|
3904
3904
|
/* @__PURE__ */ i(Me, { containerStyles: a, type: "submit", children: _(l) }),
|
|
3905
3905
|
/* @__PURE__ */ i(we, { errorMessage: t, errorColor: r })
|
|
3906
3906
|
] })
|
|
@@ -3922,7 +3922,7 @@ const ye = ({
|
|
|
3922
3922
|
buttons: t,
|
|
3923
3923
|
maxHeight: r = "450px",
|
|
3924
3924
|
maxWidth: l = "450px"
|
|
3925
|
-
}) => /* @__PURE__ */ i("div", { className: Y.overlay, children: /* @__PURE__ */
|
|
3925
|
+
}) => /* @__PURE__ */ i("div", { className: Y.overlay, children: /* @__PURE__ */ m(
|
|
3926
3926
|
"div",
|
|
3927
3927
|
{
|
|
3928
3928
|
className: Y.modal,
|
|
@@ -3964,8 +3964,8 @@ const gs = "_stepsContainer_1cyua_3", Cs = "_stepWrapper_1cyua_9", fs = "_circle
|
|
|
3964
3964
|
connector: xs
|
|
3965
3965
|
}, Ft = ({ steps: n, activeColor: d }) => /* @__PURE__ */ i("div", { className: U.stepsContainer, children: n.map((s, o) => {
|
|
3966
3966
|
const t = s.status === "active", r = s.status === "completed";
|
|
3967
|
-
return /* @__PURE__ */
|
|
3968
|
-
/* @__PURE__ */
|
|
3967
|
+
return /* @__PURE__ */ m("div", { className: U.stepWrapper, children: [
|
|
3968
|
+
/* @__PURE__ */ m("div", { className: U.circleContainer, children: [
|
|
3969
3969
|
/* @__PURE__ */ i(
|
|
3970
3970
|
"div",
|
|
3971
3971
|
{
|
|
@@ -4055,35 +4055,34 @@ const Ls = "_switchContainer_194wl_2", Ms = "_labelRight_194wl_9", Ds = "_labelL
|
|
|
4055
4055
|
switch: "_switch_194wl_2",
|
|
4056
4056
|
slider: Fs,
|
|
4057
4057
|
disabled: Vs
|
|
4058
|
-
}, As = ({ input: n, reactHookFormInstance: d, onChange: s }) => {
|
|
4058
|
+
}, As = ({ input: n, reactHookFormInstance: d, onChange: s, onoff: o = !0 }) => {
|
|
4059
4059
|
const {
|
|
4060
|
-
code:
|
|
4061
|
-
labelLeft:
|
|
4062
|
-
labelRight:
|
|
4063
|
-
defValue:
|
|
4064
|
-
colorOn:
|
|
4065
|
-
disabled:
|
|
4066
|
-
width:
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
t && /* @__PURE__ */ i(
|
|
4060
|
+
code: t,
|
|
4061
|
+
labelLeft: r,
|
|
4062
|
+
labelRight: l,
|
|
4063
|
+
defValue: a = !1,
|
|
4064
|
+
colorOn: c = "#5A514D",
|
|
4065
|
+
disabled: u = !1,
|
|
4066
|
+
width: p = 240
|
|
4067
|
+
} = n, { t: g } = $(), { control: f } = d || {}, [y, _] = V(a), v = (h) => {
|
|
4068
|
+
_(h), s && s(h);
|
|
4069
|
+
}, C = (h, b) => /* @__PURE__ */ m("div", { className: ue.switchContainer, style: { width: `${p}px` }, children: [
|
|
4070
|
+
r && /* @__PURE__ */ i(
|
|
4072
4071
|
"span",
|
|
4073
4072
|
{
|
|
4074
4073
|
className: ue.labelLeft,
|
|
4075
|
-
style: { width: `${(
|
|
4076
|
-
children: g(
|
|
4074
|
+
style: { width: `${(p - 74) / 2}px` },
|
|
4075
|
+
children: g(r)
|
|
4077
4076
|
}
|
|
4078
4077
|
),
|
|
4079
|
-
/* @__PURE__ */
|
|
4078
|
+
/* @__PURE__ */ m("label", { className: `${ue.switch} ${u ? ue.disabled : ""}`, children: [
|
|
4080
4079
|
/* @__PURE__ */ i(
|
|
4081
4080
|
"input",
|
|
4082
4081
|
{
|
|
4083
4082
|
type: "checkbox",
|
|
4084
|
-
checked: !!
|
|
4085
|
-
onChange: () => b(!
|
|
4086
|
-
disabled:
|
|
4083
|
+
checked: !!h,
|
|
4084
|
+
onChange: () => b(!h),
|
|
4085
|
+
disabled: u
|
|
4087
4086
|
}
|
|
4088
4087
|
),
|
|
4089
4088
|
/* @__PURE__ */ i(
|
|
@@ -4091,20 +4090,20 @@ const Ls = "_switchContainer_194wl_2", Ms = "_labelRight_194wl_9", Ds = "_labelL
|
|
|
4091
4090
|
{
|
|
4092
4091
|
className: ue.slider,
|
|
4093
4092
|
style: {
|
|
4094
|
-
"--switch-thumb-color":
|
|
4093
|
+
"--switch-thumb-color": o ? h ? c : "#ccc" : c
|
|
4095
4094
|
}
|
|
4096
4095
|
}
|
|
4097
4096
|
)
|
|
4098
4097
|
] }),
|
|
4099
|
-
|
|
4098
|
+
l && /* @__PURE__ */ i("span", { className: ue.labelRight, style: { width: `${(p - 74) / 2}px` }, children: g(l) })
|
|
4100
4099
|
] });
|
|
4101
4100
|
return d ? /* @__PURE__ */ i(
|
|
4102
4101
|
ve,
|
|
4103
4102
|
{
|
|
4104
|
-
name:
|
|
4103
|
+
name: t,
|
|
4105
4104
|
control: f,
|
|
4106
|
-
defaultValue:
|
|
4107
|
-
render: ({ field:
|
|
4105
|
+
defaultValue: a,
|
|
4106
|
+
render: ({ field: h }) => C(h.value, h.onChange)
|
|
4108
4107
|
}
|
|
4109
4108
|
) : C(y, v);
|
|
4110
4109
|
};
|
|
@@ -4136,7 +4135,7 @@ const Is = "_header_13kbt_2", Os = "_leftComponents_13kbt_13", qs = "_centerComp
|
|
|
4136
4135
|
backgroundColor: l = "#605B56",
|
|
4137
4136
|
isFooter: a = !1
|
|
4138
4137
|
// If true, it will apply footer styles
|
|
4139
|
-
}) => /* @__PURE__ */
|
|
4138
|
+
}) => /* @__PURE__ */ m(
|
|
4140
4139
|
"div",
|
|
4141
4140
|
{
|
|
4142
4141
|
className: ie.header,
|
|
@@ -4184,7 +4183,7 @@ const js = "_sidebar_1kaqu_2", zs = "_open_1kaqu_16", Zs = "_content_1kaqu_20",
|
|
|
4184
4183
|
{
|
|
4185
4184
|
className: `${Le.sidebar} ${s ? Le.open : ""}`,
|
|
4186
4185
|
style: { width: s ? n : 0 },
|
|
4187
|
-
children: s && /* @__PURE__ */
|
|
4186
|
+
children: s && /* @__PURE__ */ m("div", { className: Le.content, children: [
|
|
4188
4187
|
/* @__PURE__ */ i("button", { className: Le.closeButton, onClick: t, children: /* @__PURE__ */ i("img", { src: Ks, alt: "Close Sidebar" }) }),
|
|
4189
4188
|
d
|
|
4190
4189
|
] })
|