@tmf_ciclica/ciclicastorybook 1.1.187 → 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 +569 -569
- 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,13 +62,13 @@ 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
|
-
/* @__PURE__ */ i("button", { onClick: () => o(
|
|
70
|
-
/* @__PURE__ */ i("button", { onClick: () => d(
|
|
71
|
-
/* @__PURE__ */ i("button", { onClick: () => s(
|
|
69
|
+
/* @__PURE__ */ i("button", { onClick: () => o(g), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: f2 }) }),
|
|
70
|
+
/* @__PURE__ */ i("button", { onClick: () => d(g), children: /* @__PURE__ */ i("img", { src: C2 }) }),
|
|
71
|
+
/* @__PURE__ */ i("button", { onClick: () => s(g), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: g2 }) })
|
|
72
72
|
] })
|
|
73
73
|
]
|
|
74
74
|
}
|
|
@@ -129,40 +129,40 @@ 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:
|
|
133
|
-
onCLickDelete:
|
|
134
|
-
onClickFilters: f = (
|
|
135
|
-
onClickAmbit:
|
|
132
|
+
onClickCopy: p = (_) => console.log(`Copy ambit: ${_}`),
|
|
133
|
+
onCLickDelete: g = (_) => console.log(`Delete ambit: ${_}`),
|
|
134
|
+
onClickFilters: f = (_) => console.log(`Filters clicked: ${_}`),
|
|
135
|
+
onClickAmbit: y = (_) => console.log(`OnCLickAmbit: ${_}`)
|
|
136
136
|
}) => {
|
|
137
|
-
const { t:
|
|
137
|
+
const { t: _ } = $(), [v, C] = V(n);
|
|
138
138
|
F(() => {
|
|
139
|
-
n &&
|
|
139
|
+
n && C(n);
|
|
140
140
|
}, [n]);
|
|
141
|
-
const
|
|
142
|
-
if (
|
|
143
|
-
let x = [...
|
|
144
|
-
x.sort((w, k) => w[
|
|
141
|
+
const h = (b) => {
|
|
142
|
+
if (v && v.length > 0) {
|
|
143
|
+
let x = [...v];
|
|
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__ */
|
|
161
|
-
/* @__PURE__ */ i("span", { children:
|
|
159
|
+
/* @__PURE__ */ m("div", { className: G.nameDateContainer, children: [
|
|
160
|
+
/* @__PURE__ */ i("div", { className: G.ambitName, children: /* @__PURE__ */ m("button", { onClick: () => h("name"), children: [
|
|
161
|
+
/* @__PURE__ */ i("span", { children: _(t) }),
|
|
162
162
|
/* @__PURE__ */ i("img", { src: Qe })
|
|
163
163
|
] }) }),
|
|
164
|
-
/* @__PURE__ */ i("div", { className: G.ambitDate, children: /* @__PURE__ */
|
|
165
|
-
/* @__PURE__ */ i("span", { children:
|
|
164
|
+
/* @__PURE__ */ i("div", { className: G.ambitDate, children: /* @__PURE__ */ m("button", { onClick: () => h("date"), children: [
|
|
165
|
+
/* @__PURE__ */ i("span", { children: _(r) }),
|
|
166
166
|
/* @__PURE__ */ i("img", { src: Qe })
|
|
167
167
|
] }) })
|
|
168
168
|
] }),
|
|
@@ -170,19 +170,19 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
170
170
|
]
|
|
171
171
|
}
|
|
172
172
|
),
|
|
173
|
-
/* @__PURE__ */ i("div", { className: G.ambitListContainer, children:
|
|
173
|
+
/* @__PURE__ */ i("div", { className: G.ambitListContainer, children: v && v.length > 0 && v.map((b) => /* @__PURE__ */ i(
|
|
174
174
|
ht,
|
|
175
175
|
{
|
|
176
|
-
isActive: d ==
|
|
177
|
-
ambit:
|
|
176
|
+
isActive: d == b.id,
|
|
177
|
+
ambit: b,
|
|
178
178
|
fontColor: s,
|
|
179
179
|
activeColor: o,
|
|
180
|
-
onClickCopy:
|
|
181
|
-
onClickDelete:
|
|
180
|
+
onClickCopy: p,
|
|
181
|
+
onClickDelete: g,
|
|
182
182
|
onClickFilters: f,
|
|
183
|
-
onClickAmbit:
|
|
183
|
+
onClickAmbit: y
|
|
184
184
|
},
|
|
185
|
-
`ambitKey${
|
|
185
|
+
`ambitKey${b.id}`
|
|
186
186
|
)) }),
|
|
187
187
|
/* @__PURE__ */ i("div", { className: G.newAmbitButtonContainer, children: /* @__PURE__ */ i(
|
|
188
188
|
Me,
|
|
@@ -190,7 +190,7 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
190
190
|
style: { ...a },
|
|
191
191
|
onClick: u,
|
|
192
192
|
borderColor: "grey",
|
|
193
|
-
children:
|
|
193
|
+
children: _(l)
|
|
194
194
|
}
|
|
195
195
|
) })
|
|
196
196
|
]
|
|
@@ -257,25 +257,25 @@ const A2 = ({
|
|
|
257
257
|
children: n.map((a, c) => {
|
|
258
258
|
const {
|
|
259
259
|
icon: u,
|
|
260
|
-
activeIcon:
|
|
261
|
-
isActive:
|
|
260
|
+
activeIcon: p,
|
|
261
|
+
isActive: g,
|
|
262
262
|
name: f,
|
|
263
|
-
onClick:
|
|
264
|
-
disabled:
|
|
265
|
-
} = a,
|
|
263
|
+
onClick: y,
|
|
264
|
+
disabled: _
|
|
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:
|
|
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
|
{
|
|
274
|
-
onClick:
|
|
274
|
+
onClick: y,
|
|
275
275
|
className: `${X.button}
|
|
276
|
-
${
|
|
277
|
-
disabled:
|
|
278
|
-
children:
|
|
276
|
+
${g && X.active}`,
|
|
277
|
+
disabled: _,
|
|
278
|
+
children: v
|
|
279
279
|
}
|
|
280
280
|
),
|
|
281
281
|
t && /* @__PURE__ */ i(se, { text: f, position: r })
|
|
@@ -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
|
-
const { t:
|
|
325
|
-
return /* @__PURE__ */
|
|
324
|
+
const { t: g } = $();
|
|
325
|
+
return /* @__PURE__ */ m(
|
|
326
326
|
Ke.div,
|
|
327
327
|
{
|
|
328
328
|
className: ke.indicatorsCategory,
|
|
@@ -332,25 +332,25 @@ 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 ? "-" : "+" }),
|
|
349
|
-
/* @__PURE__ */ i("span", { style: { color: n ? t : o }, children:
|
|
349
|
+
/* @__PURE__ */ i("span", { style: { color: n ? t : o }, children: g(r) })
|
|
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,10 +379,10 @@ 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),
|
|
383
|
-
T.setState((
|
|
384
|
-
tematicalFiltersSelected:
|
|
385
|
-
(
|
|
382
|
+
const { t: a } = $(), { tematicalFiltersSelected: c, activeFiltersType: u } = T((f) => f), p = (f) => {
|
|
383
|
+
T.setState((y) => ({
|
|
384
|
+
tematicalFiltersSelected: y.tematicalFiltersSelected.filter(
|
|
385
|
+
(_) => _.code !== f
|
|
386
386
|
)
|
|
387
387
|
}));
|
|
388
388
|
};
|
|
@@ -397,10 +397,10 @@ 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,
|
|
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: () =>
|
|
403
|
-
] },
|
|
402
|
+
/* @__PURE__ */ i("img", { src: R2, alt: "CloseIcon", onClick: () => p(f.code), style: { cursor: "pointer" } })
|
|
403
|
+
] }, y)) })
|
|
404
404
|
}
|
|
405
405
|
);
|
|
406
406
|
};
|
|
@@ -429,13 +429,13 @@ const j2 = "_layersList_cn837_25", z2 = "_layerName_cn837_34", Je = {
|
|
|
429
429
|
activeColor: t,
|
|
430
430
|
onGeoLayersChange: r
|
|
431
431
|
}) => {
|
|
432
|
-
const { t: l } = $(), { activeFiltersType: a, geoLayers: c } = T((
|
|
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
|
-
geoLayers: f.geoLayers.map((
|
|
437
|
-
...
|
|
438
|
-
active:
|
|
436
|
+
geoLayers: f.geoLayers.map((y) => ({
|
|
437
|
+
...y,
|
|
438
|
+
active: y.name === g.name
|
|
439
439
|
}))
|
|
440
440
|
})), r(c);
|
|
441
441
|
};
|
|
@@ -450,15 +450,15 @@ 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((
|
|
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
|
-
style: { color:
|
|
458
|
-
onClick: () =>
|
|
457
|
+
style: { color: g.active ? t : s, fontWeight: g.active ? "bold" : "normal" },
|
|
458
|
+
onClick: () => p(g),
|
|
459
459
|
children: [
|
|
460
|
-
l(
|
|
461
|
-
|
|
460
|
+
l(g.name),
|
|
461
|
+
g.active
|
|
462
462
|
]
|
|
463
463
|
}
|
|
464
464
|
)) })
|
|
@@ -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,19 +566,19 @@ 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 });
|
|
574
574
|
const c = t.getTouchPosition(a);
|
|
575
575
|
if (t.isScrolling === void 0) {
|
|
576
|
-
const
|
|
577
|
-
t.isScrolling = Math.abs(f) > Math.abs(
|
|
576
|
+
const g = c[0] - t.startPosition[0], f = c[1] - t.startPosition[1];
|
|
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
|
-
}, key: t.props.thumbClassName + "-" + c, className: u, style: a, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled },
|
|
646
|
-
return t.props.ariaValuetext && (
|
|
645
|
+
}, key: t.props.thumbClassName + "-" + c, className: u, style: a, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, g = { index: c, value: Ne(t.state.value), valueNow: t.state.value[c] };
|
|
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 ===
|
|
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,28 +741,28 @@ 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];
|
|
748
|
-
o < f +
|
|
748
|
+
o < f + g && (o = f + g);
|
|
749
749
|
}
|
|
750
750
|
if (r < l - 1) {
|
|
751
751
|
const f = t[r + 1];
|
|
752
|
-
o > f -
|
|
752
|
+
o > f - g && (o = f - g);
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
-
t[r] = o, c && l > 1 && (o > a ? (this.pushSucceeding(t,
|
|
756
|
-
for (let
|
|
757
|
-
const
|
|
758
|
-
|
|
755
|
+
t[r] = o, c && l > 1 && (o > a ? (this.pushSucceeding(t, g, r), function(f, y, _, v) {
|
|
756
|
+
for (let C = 0; C < f; C += 1) {
|
|
757
|
+
const h = v - C * _;
|
|
758
|
+
y[f - 1 - C] > h && (y[f - 1 - C] = h);
|
|
759
759
|
}
|
|
760
|
-
}(l, t,
|
|
761
|
-
for (let
|
|
762
|
-
const
|
|
763
|
-
|
|
760
|
+
}(l, t, g, u)) : o < a && (this.pushPreceding(t, g, r), function(f, y, _, v) {
|
|
761
|
+
for (let C = 0; C < f; C += 1) {
|
|
762
|
+
const h = v + C * _;
|
|
763
|
+
y[C] < h && (y[C] = h);
|
|
764
764
|
}
|
|
765
|
-
}(l, t,
|
|
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 } = $(),
|
|
840
|
-
|
|
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
|
+
y(v), o == null || o({ min: v[0], max: v[1] });
|
|
841
841
|
};
|
|
842
842
|
return F(() => {
|
|
843
|
-
a ||
|
|
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,17 +854,17 @@ 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 ?
|
|
858
|
-
max: c ?
|
|
859
|
-
step: c ? (
|
|
857
|
+
min: c ? p : n,
|
|
858
|
+
max: c ? g : d,
|
|
859
|
+
step: c ? (g - p) / 30 : s,
|
|
860
860
|
value: f,
|
|
861
|
-
onAfterChange:
|
|
861
|
+
onAfterChange: _,
|
|
862
862
|
withTracks: !0,
|
|
863
863
|
pearling: !c,
|
|
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,23 +909,23 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
909
909
|
minValue: a,
|
|
910
910
|
maxValue: c,
|
|
911
911
|
unit: u,
|
|
912
|
-
step:
|
|
913
|
-
disabled:
|
|
912
|
+
step: p,
|
|
913
|
+
disabled: g,
|
|
914
914
|
isDate: f
|
|
915
|
-
} = n || {},
|
|
915
|
+
} = n || {}, y = me(
|
|
916
916
|
() => t == "cat" || s == "cat",
|
|
917
917
|
[s, t]
|
|
918
|
-
),
|
|
918
|
+
), _ = me(
|
|
919
919
|
() => t == "abs" || s == "abs",
|
|
920
920
|
[s, t]
|
|
921
921
|
), {
|
|
922
|
-
tematicalFiltersSelected:
|
|
923
|
-
selectedIndicator:
|
|
924
|
-
fontColor:
|
|
925
|
-
inputsColor:
|
|
922
|
+
tematicalFiltersSelected: v,
|
|
923
|
+
selectedIndicator: C,
|
|
924
|
+
fontColor: h,
|
|
925
|
+
inputsColor: b
|
|
926
926
|
} = T((k) => k), x = (k) => {
|
|
927
927
|
if (k) {
|
|
928
|
-
const { min: S, max: L, valueClicked: N, allValues: B } = k || {}, { code: O, type: q, source: M } = n || {}, H =
|
|
928
|
+
const { min: S, max: L, valueClicked: N, allValues: B } = k || {}, { code: O, type: q, source: M } = n || {}, H = _ ? "abs" : y ? "cat" : "both";
|
|
929
929
|
let z = O[0];
|
|
930
930
|
q == "both" && (z = H == "cat" ? O[1] : O[0]), H == "cat" ? T.setState((Q) => {
|
|
931
931
|
let W = Q.tematicalFiltersSelected.find(
|
|
@@ -948,7 +948,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
948
948
|
let E = B.map((j, At) => At);
|
|
949
949
|
return {
|
|
950
950
|
tematicalFiltersSelected: [
|
|
951
|
-
...
|
|
951
|
+
...v,
|
|
952
952
|
{
|
|
953
953
|
type: "cat",
|
|
954
954
|
code: z,
|
|
@@ -980,7 +980,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
980
980
|
} else
|
|
981
981
|
return {
|
|
982
982
|
tematicalFiltersSelected: [
|
|
983
|
-
...
|
|
983
|
+
...v,
|
|
984
984
|
{
|
|
985
985
|
type: H,
|
|
986
986
|
code: z,
|
|
@@ -995,40 +995,40 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
995
995
|
}
|
|
996
996
|
}, w = me(() => {
|
|
997
997
|
const k = {};
|
|
998
|
-
if ((
|
|
999
|
-
for (const S of
|
|
998
|
+
if ((v == null ? void 0 : v.length) > 0)
|
|
999
|
+
for (const S of v)
|
|
1000
1000
|
S.type === "cat" ? k[S.code] = new Set(S.values) : k[S.code] = [S.min, S.max];
|
|
1001
1001
|
return k;
|
|
1002
|
-
}, [
|
|
1003
|
-
return /* @__PURE__ */ i("div", { className: $e.tematicalFiltersInputContainer, children: /* @__PURE__ */
|
|
1002
|
+
}, [v]);
|
|
1003
|
+
return /* @__PURE__ */ i("div", { className: $e.tematicalFiltersInputContainer, children: /* @__PURE__ */ m(
|
|
1004
1004
|
re,
|
|
1005
1005
|
{
|
|
1006
1006
|
titleFontStyles: {
|
|
1007
1007
|
fontSize: 16,
|
|
1008
1008
|
fontWeight: 400,
|
|
1009
|
-
opacity:
|
|
1009
|
+
opacity: g ? 0.5 : 1
|
|
1010
1010
|
},
|
|
1011
1011
|
title: r,
|
|
1012
|
-
isOpen:
|
|
1012
|
+
isOpen: C == `id${r}`,
|
|
1013
1013
|
onClick: () => {
|
|
1014
|
-
|
|
1015
|
-
selectedIndicator:
|
|
1014
|
+
g || T.setState(() => ({
|
|
1015
|
+
selectedIndicator: C == `id${r}` ? "" : `id${r}`
|
|
1016
1016
|
}));
|
|
1017
1017
|
},
|
|
1018
1018
|
showBottomBar: !1,
|
|
1019
1019
|
height: 42,
|
|
1020
1020
|
titleMarginChildren: 14,
|
|
1021
1021
|
className: "tematicalFiltersInputContainer",
|
|
1022
|
-
color:
|
|
1022
|
+
color: 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
|
{
|
|
@@ -1040,14 +1040,14 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
1040
1040
|
},
|
|
1041
1041
|
style: {
|
|
1042
1042
|
marginRight: 4,
|
|
1043
|
-
backgroundColor: s == "abs" ?
|
|
1044
|
-
border: `1.5px solid ${s == "abs" ?
|
|
1043
|
+
backgroundColor: s == "abs" ? b : "white",
|
|
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
|
{
|
|
@@ -1059,8 +1059,8 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
1059
1059
|
},
|
|
1060
1060
|
style: {
|
|
1061
1061
|
marginRight: 4,
|
|
1062
|
-
backgroundColor: s == "cat" ?
|
|
1063
|
-
border: `1.5px solid ${s == "cat" ?
|
|
1062
|
+
backgroundColor: s == "cat" ? b : "white",
|
|
1063
|
+
border: `1.5px solid ${s == "cat" ? b : h}`
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
1066
|
),
|
|
@@ -1069,7 +1069,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
1069
1069
|
]
|
|
1070
1070
|
}
|
|
1071
1071
|
),
|
|
1072
|
-
|
|
1072
|
+
y && /* @__PURE__ */ i("div", { className: $e.checkboxContainer, children: l.map((k, S) => {
|
|
1073
1073
|
var L;
|
|
1074
1074
|
return /* @__PURE__ */ i(
|
|
1075
1075
|
ft,
|
|
@@ -1081,7 +1081,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
1081
1081
|
`checkbox-${S}`
|
|
1082
1082
|
);
|
|
1083
1083
|
}) }),
|
|
1084
|
-
(
|
|
1084
|
+
(_ || t == "glb") && /* @__PURE__ */ i("div", { className: $e.absoluteSliderContainer, children: /* @__PURE__ */ i(
|
|
1085
1085
|
bt,
|
|
1086
1086
|
{
|
|
1087
1087
|
onChange: x,
|
|
@@ -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,14 +1237,14 @@ 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
|
},
|
|
1247
|
-
`category-${
|
|
1247
|
+
`category-${g}`
|
|
1248
1248
|
))
|
|
1249
1249
|
}
|
|
1250
1250
|
);
|
|
@@ -1277,37 +1277,37 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1277
1277
|
onChangeAppliedFilters: a,
|
|
1278
1278
|
saveAmbit: c,
|
|
1279
1279
|
namePlaceholder: u,
|
|
1280
|
-
descPlaceholder:
|
|
1281
|
-
filtersTypes:
|
|
1280
|
+
descPlaceholder: p,
|
|
1281
|
+
filtersTypes: g = ["geographical", "tematical"],
|
|
1282
1282
|
nameRequiredText: f,
|
|
1283
|
-
geoFilterLayers:
|
|
1284
|
-
onGeoLayersChange:
|
|
1285
|
-
onlyFilters:
|
|
1283
|
+
geoFilterLayers: y = [],
|
|
1284
|
+
onGeoLayersChange: _,
|
|
1285
|
+
onlyFilters: v = !1
|
|
1286
1286
|
//usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
|
|
1287
1287
|
}) => {
|
|
1288
|
-
const { t:
|
|
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
|
|
1292
1292
|
}));
|
|
1293
1293
|
}, [s]), F(() => {
|
|
1294
|
-
|
|
1295
|
-
}, [
|
|
1296
|
-
a(
|
|
1297
|
-
}, [
|
|
1294
|
+
g.includes("geographical") && x != y && T.setState({ geoLayers: y });
|
|
1295
|
+
}, [y]), F(() => {
|
|
1296
|
+
a(h);
|
|
1297
|
+
}, [h]);
|
|
1298
1298
|
const O = () => {
|
|
1299
1299
|
w ? c({ name: w, description: S }) : B(!0);
|
|
1300
1300
|
};
|
|
1301
1301
|
return F(() => {
|
|
1302
|
-
|
|
1302
|
+
g.includes("geographical") && b != "geographical" && x.length > 0 && T.setState((q) => ({
|
|
1303
1303
|
geoLayers: q.geoLayers.map((M) => ({
|
|
1304
1304
|
...M,
|
|
1305
1305
|
active: !1
|
|
1306
1306
|
}))
|
|
1307
1307
|
}));
|
|
1308
|
-
}, [
|
|
1309
|
-
/* @__PURE__ */
|
|
1310
|
-
!
|
|
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
|
{
|
|
@@ -1316,7 +1316,7 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1316
1316
|
B(!1), k(q.target.value);
|
|
1317
1317
|
},
|
|
1318
1318
|
value: w,
|
|
1319
|
-
placeholder:
|
|
1319
|
+
placeholder: C(u)
|
|
1320
1320
|
}
|
|
1321
1321
|
) }),
|
|
1322
1322
|
/* @__PURE__ */ i("div", { className: ee.FiltersAmbitDescription, children: /* @__PURE__ */ i("div", { className: ee.FiltersAmbitDescriptionTitle, children: /* @__PURE__ */ i(
|
|
@@ -1324,29 +1324,29 @@ 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:
|
|
1327
|
+
placeholder: C(p)
|
|
1328
1328
|
}
|
|
1329
1329
|
) }) })
|
|
1330
1330
|
] }),
|
|
1331
1331
|
/* @__PURE__ */ i(
|
|
1332
1332
|
gt,
|
|
1333
1333
|
{
|
|
1334
|
-
title:
|
|
1335
|
-
isOpen:
|
|
1334
|
+
title: C("applied_filters"),
|
|
1335
|
+
isOpen: b == "applied",
|
|
1336
1336
|
textColor: r || "#fff",
|
|
1337
1337
|
backgroundColor: l || "#605B5680",
|
|
1338
1338
|
activeColor: t
|
|
1339
1339
|
}
|
|
1340
1340
|
),
|
|
1341
|
-
|
|
1341
|
+
g.includes("geographical") && /* @__PURE__ */ i(
|
|
1342
1342
|
Ct,
|
|
1343
1343
|
{
|
|
1344
1344
|
title: "geo_filters",
|
|
1345
1345
|
activeColor: t,
|
|
1346
|
-
onGeoLayersChange:
|
|
1346
|
+
onGeoLayersChange: _
|
|
1347
1347
|
}
|
|
1348
1348
|
),
|
|
1349
|
-
|
|
1349
|
+
g.includes("tematical") && /* @__PURE__ */ i(
|
|
1350
1350
|
vt,
|
|
1351
1351
|
{
|
|
1352
1352
|
indicators: o,
|
|
@@ -1356,9 +1356,9 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1356
1356
|
activeColor: t
|
|
1357
1357
|
}
|
|
1358
1358
|
),
|
|
1359
|
-
N && /* @__PURE__ */ i("div", { className: ee.warning, children:
|
|
1359
|
+
N && /* @__PURE__ */ i("div", { className: ee.warning, children: C(f) })
|
|
1360
1360
|
] }),
|
|
1361
|
-
!
|
|
1361
|
+
!v && /* @__PURE__ */ i("div", { className: ee.buttonContainer, children: /* @__PURE__ */ i(Me, { onClick: () => O(), children: C("save_ambit") }) })
|
|
1362
1362
|
] });
|
|
1363
1363
|
};
|
|
1364
1364
|
un.propTypes = {
|
|
@@ -1390,13 +1390,13 @@ 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
|
|
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
|
-
xScale:
|
|
1398
|
-
ticks:
|
|
1399
|
-
height:
|
|
1397
|
+
xScale: C,
|
|
1398
|
+
ticks: h,
|
|
1399
|
+
height: _,
|
|
1400
1400
|
width: d,
|
|
1401
1401
|
verticalPaddign: r,
|
|
1402
1402
|
horizontalPaddign: l
|
|
@@ -1413,36 +1413,36 @@ 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:
|
|
1417
|
-
/* @__PURE__ */ i("g", { transform: `translate(${a + l}, 0)`, children: f.map((
|
|
1418
|
-
const
|
|
1419
|
-
return /* @__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
|
+
/* @__PURE__ */ i("g", { transform: `translate(${a + l}, 0)`, children: f.map((_, v) => {
|
|
1418
|
+
const C = g(_);
|
|
1419
|
+
return /* @__PURE__ */ m("g", { transform: `translate(${C}, 0)`, children: [
|
|
1420
1420
|
/* @__PURE__ */ i(
|
|
1421
1421
|
"line",
|
|
1422
1422
|
{
|
|
1423
1423
|
y1: 0,
|
|
1424
|
-
y2:
|
|
1424
|
+
y2: y - o * 2,
|
|
1425
1425
|
stroke: "#ccc"
|
|
1426
1426
|
}
|
|
1427
1427
|
),
|
|
1428
1428
|
/* @__PURE__ */ i(
|
|
1429
1429
|
"text",
|
|
1430
1430
|
{
|
|
1431
|
-
y:
|
|
1431
|
+
y: y - o,
|
|
1432
1432
|
textAnchor: "middle",
|
|
1433
1433
|
fontSize: 10,
|
|
1434
1434
|
fill: t,
|
|
1435
|
-
children: parseInt(
|
|
1435
|
+
children: parseInt(_)
|
|
1436
1436
|
}
|
|
1437
1437
|
)
|
|
1438
|
-
] },
|
|
1438
|
+
] }, v);
|
|
1439
1439
|
}) }),
|
|
1440
|
-
n && n.length > 0 && (n == null ? void 0 : n.map((
|
|
1441
|
-
const
|
|
1442
|
-
return /* @__PURE__ */
|
|
1440
|
+
n && n.length > 0 && (n == null ? void 0 : n.map((_, v) => {
|
|
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,21 +1451,21 @@ 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(
|
|
1458
1458
|
"rect",
|
|
1459
1459
|
{
|
|
1460
|
-
width:
|
|
1460
|
+
width: C,
|
|
1461
1461
|
height: s,
|
|
1462
|
-
fill:
|
|
1462
|
+
fill: _.color,
|
|
1463
1463
|
rx: 0
|
|
1464
1464
|
}
|
|
1465
1465
|
)
|
|
1466
1466
|
]
|
|
1467
1467
|
},
|
|
1468
|
-
|
|
1468
|
+
v
|
|
1469
1469
|
);
|
|
1470
1470
|
}))
|
|
1471
1471
|
] }) }) });
|
|
@@ -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
|
-
const [
|
|
1574
|
+
const [y, _] = V(!1);
|
|
1575
1575
|
F(() => {
|
|
1576
|
-
t &&
|
|
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
|
|
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
|
-
] }) }) }),
|
|
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,
|
|
@@ -1665,12 +1665,12 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1665
1665
|
"div",
|
|
1666
1666
|
{
|
|
1667
1667
|
style: {
|
|
1668
|
-
border:
|
|
1668
|
+
border: y ? `1px solid ${s}` : `1px solid ${o}`,
|
|
1669
1669
|
opacity: f ? 0.5 : 1,
|
|
1670
|
-
backgroundColor:
|
|
1670
|
+
backgroundColor: y ? s : "transparent"
|
|
1671
1671
|
},
|
|
1672
1672
|
className: R.dot,
|
|
1673
|
-
children: a && /* @__PURE__ */ i("img", { src:
|
|
1673
|
+
children: a && /* @__PURE__ */ i("img", { src: y ? _n : tt, alt: "" })
|
|
1674
1674
|
}
|
|
1675
1675
|
),
|
|
1676
1676
|
/* @__PURE__ */ i(
|
|
@@ -1678,13 +1678,13 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1678
1678
|
{
|
|
1679
1679
|
className: R.indicatorName,
|
|
1680
1680
|
style: {
|
|
1681
|
-
color:
|
|
1681
|
+
color: y ? s : o,
|
|
1682
1682
|
opacity: f ? 0.5 : 1
|
|
1683
1683
|
},
|
|
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,43 +1724,43 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Dn = "_list_1dzsi_8", nt = {
|
|
|
1724
1724
|
activeIndicator: a,
|
|
1725
1725
|
onClickIndicator: c,
|
|
1726
1726
|
multiple: u,
|
|
1727
|
-
activeIndicatorType:
|
|
1728
|
-
onChangeType:
|
|
1727
|
+
activeIndicatorType: p,
|
|
1728
|
+
onChangeType: g
|
|
1729
1729
|
}) => {
|
|
1730
|
-
const { t: f } = $(), [
|
|
1730
|
+
const { t: f } = $(), [y, _] = V(!1);
|
|
1731
1731
|
return F(() => {
|
|
1732
|
-
|
|
1733
|
-
}, [t, l]), /* @__PURE__ */
|
|
1732
|
+
_(t == l);
|
|
1733
|
+
}, [t, l]), /* @__PURE__ */ m(
|
|
1734
1734
|
Ke.div,
|
|
1735
1735
|
{
|
|
1736
1736
|
className: nt.indicatorsSubCategory,
|
|
1737
1737
|
initial: { height: "43px" },
|
|
1738
|
-
animate: { height:
|
|
1738
|
+
animate: { height: y ? "auto" : "43px" },
|
|
1739
1739
|
transition: { duration: 0.4 },
|
|
1740
1740
|
children: [
|
|
1741
|
-
/* @__PURE__ */ i("button", { onClick: () => r(l), children: /* @__PURE__ */
|
|
1742
|
-
/* @__PURE__ */ i("span", { style: { color:
|
|
1741
|
+
/* @__PURE__ */ i("button", { onClick: () => r(l), children: /* @__PURE__ */ m("h3", { style: { color: y ? o : s }, children: [
|
|
1742
|
+
/* @__PURE__ */ i("span", { style: { color: y ? o : s }, children: y ? "-" : "+" }),
|
|
1743
1743
|
/* @__PURE__ */ i(
|
|
1744
1744
|
"span",
|
|
1745
1745
|
{
|
|
1746
|
-
style: { marginLeft: 12, color:
|
|
1746
|
+
style: { marginLeft: 12, color: y ? o : s },
|
|
1747
1747
|
children: f(n)
|
|
1748
1748
|
}
|
|
1749
1749
|
)
|
|
1750
1750
|
] }) }),
|
|
1751
|
-
d && /* @__PURE__ */ i("div", { className: nt.list, children: d == null ? void 0 : d.map((
|
|
1751
|
+
d && /* @__PURE__ */ i("div", { className: nt.list, children: d == null ? void 0 : d.map((v, C) => /* @__PURE__ */ i(
|
|
1752
1752
|
We,
|
|
1753
1753
|
{
|
|
1754
|
-
indicator:
|
|
1754
|
+
indicator: v,
|
|
1755
1755
|
defaultColor: s,
|
|
1756
1756
|
activeColor: o,
|
|
1757
1757
|
activeIndicator: a,
|
|
1758
1758
|
onClickIndicator: c,
|
|
1759
1759
|
multiple: u,
|
|
1760
|
-
activeIndicatorType:
|
|
1761
|
-
onChangeType:
|
|
1760
|
+
activeIndicatorType: p,
|
|
1761
|
+
onChangeType: g
|
|
1762
1762
|
},
|
|
1763
|
-
"indicator" +
|
|
1763
|
+
"indicator" + C
|
|
1764
1764
|
)) })
|
|
1765
1765
|
]
|
|
1766
1766
|
}
|
|
@@ -1789,70 +1789,70 @@ const kt = ({
|
|
|
1789
1789
|
onClickSubCategory: a,
|
|
1790
1790
|
activeIndicator: c,
|
|
1791
1791
|
onClickIndicator: u,
|
|
1792
|
-
multiple:
|
|
1793
|
-
activeIndicatorType:
|
|
1792
|
+
multiple: p,
|
|
1793
|
+
activeIndicatorType: g,
|
|
1794
1794
|
onChangeType: f
|
|
1795
1795
|
}) => {
|
|
1796
|
-
var
|
|
1797
|
-
const { t:
|
|
1796
|
+
var C;
|
|
1797
|
+
const { t: y } = $(), [_, v] = V(!1);
|
|
1798
1798
|
return F(() => {
|
|
1799
|
-
|
|
1800
|
-
}, [r, d]), /* @__PURE__ */
|
|
1799
|
+
v(r === d);
|
|
1800
|
+
}, [r, d]), /* @__PURE__ */ m(
|
|
1801
1801
|
Ke.div,
|
|
1802
1802
|
{
|
|
1803
1803
|
className: Ae.indicatorsCategory,
|
|
1804
1804
|
initial: { height: "53px" },
|
|
1805
|
-
animate: { height:
|
|
1805
|
+
animate: { height: _ ? "auto" : "53px" },
|
|
1806
1806
|
transition: { duration: 0.4 },
|
|
1807
1807
|
style: {
|
|
1808
1808
|
backgroundColor: "white",
|
|
1809
|
-
borderBottom:
|
|
1810
|
-
marginBottom:
|
|
1809
|
+
borderBottom: _ ? `1px solid ${s}` : "0px",
|
|
1810
|
+
marginBottom: _ ? "20px" : "0px"
|
|
1811
1811
|
},
|
|
1812
1812
|
children: [
|
|
1813
|
-
/* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */ i("span", { style: { color:
|
|
1813
|
+
/* @__PURE__ */ m("h2", { className: `${Ae.title}`, onClick: () => t(d), children: [
|
|
1814
|
+
/* @__PURE__ */ i("span", { style: { color: _ ? s : o }, children: _ ? "-" : "+" }),
|
|
1815
1815
|
/* @__PURE__ */ i(
|
|
1816
1816
|
"span",
|
|
1817
1817
|
{
|
|
1818
|
-
style: { marginLeft: 12, color:
|
|
1819
|
-
children:
|
|
1818
|
+
style: { marginLeft: 12, color: _ ? s : o },
|
|
1819
|
+
children: y(n.name)
|
|
1820
1820
|
}
|
|
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
|
-
id:
|
|
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,
|
|
1837
|
-
activeIndicatorType:
|
|
1837
|
+
activeIndicatorType: g,
|
|
1838
1838
|
onChangeType: f
|
|
1839
1839
|
},
|
|
1840
1840
|
`subcKey ${w}`
|
|
1841
1841
|
)
|
|
1842
|
-
) : /* @__PURE__ */ i("div", { className: Ae.list, children: (
|
|
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:
|
|
1852
|
-
activeIndicatorType:
|
|
1851
|
+
multiple: p,
|
|
1852
|
+
activeIndicatorType: g,
|
|
1853
1853
|
onChangeType: f
|
|
1854
1854
|
},
|
|
1855
|
-
`indicator${
|
|
1855
|
+
`indicator${b}`
|
|
1856
1856
|
)) })
|
|
1857
1857
|
]
|
|
1858
1858
|
}
|
|
@@ -1889,20 +1889,20 @@ 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
|
-
|
|
1894
|
-
},
|
|
1895
|
-
f(
|
|
1896
|
-
},
|
|
1897
|
-
|
|
1898
|
-
},
|
|
1892
|
+
const { t: c } = $(), [u, p] = V(), [g, f] = V(), [y, _] = V(), v = (w) => {
|
|
1893
|
+
p(u == w ? null : w);
|
|
1894
|
+
}, C = (w) => {
|
|
1895
|
+
f(g == w ? null : w);
|
|
1896
|
+
}, h = ({ indicator: w }) => {
|
|
1897
|
+
b(w);
|
|
1898
|
+
}, b = (w) => {
|
|
1899
1899
|
if (!t)
|
|
1900
|
-
|
|
1901
|
-
(
|
|
1900
|
+
_(
|
|
1901
|
+
(y == null ? void 0 : y.name) == w.name ? null : w
|
|
1902
1902
|
);
|
|
1903
1903
|
else {
|
|
1904
|
-
let k =
|
|
1905
|
-
|
|
1904
|
+
let k = y && y.length > 0 ? [...y] : [];
|
|
1905
|
+
_(
|
|
1906
1906
|
k != null && k.some(
|
|
1907
1907
|
(S) => S.name == w.name
|
|
1908
1908
|
) ? k.filter(
|
|
@@ -1912,14 +1912,14 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
|
|
|
1912
1912
|
}
|
|
1913
1913
|
};
|
|
1914
1914
|
F(() => {
|
|
1915
|
-
o && typeof o == "function" &&
|
|
1916
|
-
}, [
|
|
1917
|
-
if (r && !
|
|
1915
|
+
o && typeof o == "function" && y && o({ activeIndicator: y });
|
|
1916
|
+
}, [y]), It(() => {
|
|
1917
|
+
if (r && !y)
|
|
1918
1918
|
if (t && r && Array.isArray(r)) {
|
|
1919
|
-
let w =
|
|
1920
|
-
|
|
1919
|
+
let w = y && y.length > 0 ? [...y] : [];
|
|
1920
|
+
_([...w, ...r]), x(r[0].name);
|
|
1921
1921
|
} else
|
|
1922
|
-
|
|
1922
|
+
b(r), x(r.name);
|
|
1923
1923
|
}, []);
|
|
1924
1924
|
const x = (w) => {
|
|
1925
1925
|
const k = n.find((S) => {
|
|
@@ -1932,21 +1932,21 @@ 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,
|
|
1941
1941
|
{
|
|
1942
1942
|
id: w.category,
|
|
1943
1943
|
cat: w,
|
|
1944
|
-
onClickCategory:
|
|
1944
|
+
onClickCategory: v,
|
|
1945
1945
|
activeCategory: u,
|
|
1946
|
-
onClickSubCategory:
|
|
1947
|
-
activeSubCategory:
|
|
1948
|
-
onClickIndicator:
|
|
1949
|
-
activeIndicator:
|
|
1946
|
+
onClickSubCategory: C,
|
|
1947
|
+
activeSubCategory: g,
|
|
1948
|
+
onClickIndicator: h,
|
|
1949
|
+
activeIndicator: y,
|
|
1950
1950
|
activeColor: d,
|
|
1951
1951
|
defaultColor: s,
|
|
1952
1952
|
multiple: t,
|
|
@@ -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,39 +2086,39 @@ 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
|
{
|
|
2111
2111
|
className: I.colorDot,
|
|
2112
|
-
style: { backgroundColor:
|
|
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,21 +2190,21 @@ const l0 = ({
|
|
|
2190
2190
|
interactiveLayers: a = [],
|
|
2191
2191
|
popUp: c = !1,
|
|
2192
2192
|
sources: u = [],
|
|
2193
|
-
layers:
|
|
2193
|
+
layers: p = []
|
|
2194
2194
|
}) => {
|
|
2195
|
-
const
|
|
2195
|
+
const g = oe(), [f, y] = V(null), _ = qt((v) => v.mapState.showTexts);
|
|
2196
2196
|
return F(() => {
|
|
2197
|
-
if (
|
|
2198
|
-
const
|
|
2199
|
-
|
|
2200
|
-
|
|
2197
|
+
if (g.current) {
|
|
2198
|
+
const v = g.current.getMap();
|
|
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
|
-
}, [
|
|
2203
|
+
}, [_]), /* @__PURE__ */ i("div", { className: `${a0.mapContainer}`, style: r, children: /* @__PURE__ */ m(
|
|
2204
2204
|
Rt,
|
|
2205
2205
|
{
|
|
2206
2206
|
initialViewState: n,
|
|
2207
|
-
ref:
|
|
2207
|
+
ref: g,
|
|
2208
2208
|
hash: !1,
|
|
2209
2209
|
maxZoom: d,
|
|
2210
2210
|
minZoom: s,
|
|
@@ -2212,22 +2212,22 @@ const l0 = ({
|
|
|
2212
2212
|
onClick: l,
|
|
2213
2213
|
interactiveLayerIds: a,
|
|
2214
2214
|
children: [
|
|
2215
|
-
u.length && u.map((
|
|
2215
|
+
u.length && u.map((v, C) => /* @__PURE__ */ i(
|
|
2216
2216
|
Et,
|
|
2217
2217
|
{
|
|
2218
|
-
...
|
|
2219
|
-
children:
|
|
2220
|
-
if (
|
|
2218
|
+
...v,
|
|
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
|
|
2227
2227
|
);
|
|
2228
2228
|
})
|
|
2229
2229
|
},
|
|
2230
|
-
|
|
2230
|
+
C
|
|
2231
2231
|
)),
|
|
2232
2232
|
/* @__PURE__ */ i(jt, { position: "bottom-right", visualizePitch: !0 }),
|
|
2233
2233
|
c && f && /* @__PURE__ */ i(
|
|
@@ -2236,7 +2236,7 @@ const l0 = ({
|
|
|
2236
2236
|
longitude: c.longitude,
|
|
2237
2237
|
latitude: c.latitude,
|
|
2238
2238
|
anchor: c.anchor,
|
|
2239
|
-
onClose: () =>
|
|
2239
|
+
onClose: () => y(null),
|
|
2240
2240
|
children: c.content
|
|
2241
2241
|
}
|
|
2242
2242
|
)
|
|
@@ -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,66 +2318,66 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
|
|
|
2318
2318
|
interactiveLayers: a = [],
|
|
2319
2319
|
sources: c = [],
|
|
2320
2320
|
layers: u = [],
|
|
2321
|
-
popUpParams:
|
|
2322
|
-
onClosePopUp:
|
|
2321
|
+
popUpParams: p,
|
|
2322
|
+
onClosePopUp: g,
|
|
2323
2323
|
showTexts: f,
|
|
2324
|
-
hash:
|
|
2324
|
+
hash: y = !1
|
|
2325
2325
|
}) => {
|
|
2326
|
-
const
|
|
2326
|
+
const _ = oe();
|
|
2327
2327
|
return F(() => {
|
|
2328
|
-
if (
|
|
2329
|
-
const
|
|
2330
|
-
|
|
2331
|
-
|
|
2328
|
+
if (_.current) {
|
|
2329
|
+
const v = _.current.getMap();
|
|
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(() => {
|
|
2335
|
-
let
|
|
2336
|
-
return De.addProtocol("pmtiles",
|
|
2335
|
+
let v = new Zt();
|
|
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,
|
|
2343
2343
|
initialViewState: n,
|
|
2344
|
-
ref:
|
|
2345
|
-
hash:
|
|
2344
|
+
ref: _,
|
|
2345
|
+
hash: y,
|
|
2346
2346
|
maxZoom: d,
|
|
2347
2347
|
minZoom: s,
|
|
2348
2348
|
mapStyle: o,
|
|
2349
2349
|
onClick: l,
|
|
2350
2350
|
interactiveLayerIds: a,
|
|
2351
2351
|
children: [
|
|
2352
|
-
c.length && c.map((
|
|
2352
|
+
c.length && c.map((v, C) => /* @__PURE__ */ i(
|
|
2353
2353
|
Kt,
|
|
2354
2354
|
{
|
|
2355
|
-
...
|
|
2356
|
-
children: u.length && u.map((
|
|
2357
|
-
if (
|
|
2355
|
+
...v,
|
|
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
|
|
2368
2368
|
);
|
|
2369
2369
|
})
|
|
2370
2370
|
},
|
|
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:
|
|
2379
|
-
onClose:
|
|
2380
|
-
children: /* @__PURE__ */ i(m0, { props:
|
|
2377
|
+
longitude: p.lng,
|
|
2378
|
+
latitude: p.lat,
|
|
2379
|
+
onClose: g,
|
|
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,30 +2513,30 @@ const w0 = Yt({
|
|
|
2513
2513
|
console.log("year changed to ", a);
|
|
2514
2514
|
}
|
|
2515
2515
|
}) => {
|
|
2516
|
-
const [a, c] = V(d), u = (
|
|
2517
|
-
c(
|
|
2518
|
-
}, [
|
|
2519
|
-
|
|
2520
|
-
},
|
|
2521
|
-
|
|
2516
|
+
const [a, c] = V(d), u = (h, b) => {
|
|
2517
|
+
c(b), l(b);
|
|
2518
|
+
}, [p, g] = V(!1), f = () => {
|
|
2519
|
+
g(!0);
|
|
2520
|
+
}, y = () => {
|
|
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
|
}
|
|
2531
2531
|
{
|
|
2532
|
-
let k = setInterval(w,
|
|
2532
|
+
let k = setInterval(w, b);
|
|
2533
2533
|
return () => clearInterval(k);
|
|
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
|
-
const
|
|
2539
|
+
const v = Xt({
|
|
2540
2540
|
palette: {
|
|
2541
2541
|
primary: {
|
|
2542
2542
|
main: "#605b56"
|
|
@@ -2558,13 +2558,13 @@ const w0 = Yt({
|
|
|
2558
2558
|
}
|
|
2559
2559
|
}
|
|
2560
2560
|
}
|
|
2561
|
-
}),
|
|
2561
|
+
}), C = [
|
|
2562
2562
|
{ label: "", value: 2025 },
|
|
2563
2563
|
{ label: "", value: 2032 },
|
|
2564
2564
|
{ label: "", value: 2041 },
|
|
2565
2565
|
{ label: "", value: 2050 }
|
|
2566
2566
|
];
|
|
2567
|
-
return /* @__PURE__ */ i(e2, { theme:
|
|
2567
|
+
return /* @__PURE__ */ i(e2, { theme: v, children: /* @__PURE__ */ m(
|
|
2568
2568
|
Jt,
|
|
2569
2569
|
{
|
|
2570
2570
|
sx: { width: 400 },
|
|
@@ -2579,7 +2579,7 @@ const w0 = Yt({
|
|
|
2579
2579
|
value: a,
|
|
2580
2580
|
valueLabelDisplay: "on",
|
|
2581
2581
|
step: 1,
|
|
2582
|
-
marks:
|
|
2582
|
+
marks: C,
|
|
2583
2583
|
min: s,
|
|
2584
2584
|
max: o,
|
|
2585
2585
|
onChange: u,
|
|
@@ -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:
|
|
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(
|
|
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 },
|
|
@@ -2750,37 +2750,37 @@ const oi = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2750
2750
|
alt: "eye"
|
|
2751
2751
|
}
|
|
2752
2752
|
)),
|
|
2753
|
-
/* @__PURE__ */ i("span", { style: { color: s ? o : t }, children:
|
|
2754
|
-
] }) }) :
|
|
2755
|
-
/* @__PURE__ */
|
|
2756
|
-
n.processing && /* @__PURE__ */
|
|
2753
|
+
/* @__PURE__ */ i("span", { style: { color: s ? o : t }, children: g })
|
|
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__ */ 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__ */
|
|
2780
|
-
/* @__PURE__ */ i("span", { children:
|
|
2781
|
-
|
|
2778
|
+
r && /* @__PURE__ */ m("div", { className: Z.moreInfoContainer, children: [
|
|
2779
|
+
/* @__PURE__ */ m("div", { className: Z.moreInfo, onClick: () => C(!v), children: [
|
|
2780
|
+
/* @__PURE__ */ i("span", { children: v ? "-" : "+" }),
|
|
2781
|
+
h(r.label)
|
|
2782
2782
|
] }),
|
|
2783
|
-
r &&
|
|
2783
|
+
r && v && /* @__PURE__ */ i("div", { className: Z.moreInfoInfo, children: n[r.info] })
|
|
2784
2784
|
] })
|
|
2785
2785
|
]
|
|
2786
2786
|
}
|
|
@@ -2831,68 +2831,68 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2831
2831
|
containerStyles: r = {},
|
|
2832
2832
|
newElementButton: l,
|
|
2833
2833
|
//{label: 'text', onClick: function(), disabled}/null
|
|
2834
|
-
onClickElement: a = (
|
|
2834
|
+
onClickElement: a = (_) => console.log(`OnCLickElement: ${_}`),
|
|
2835
2835
|
columns: c,
|
|
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
|
-
processTooltip:
|
|
2841
|
+
processTooltip: g,
|
|
2842
2842
|
//texto para el tooltip del simbolo "En proceso"
|
|
2843
2843
|
defaultTooltip: f,
|
|
2844
2844
|
//texto para el tooltip del símbolo de candado para los elementos default
|
|
2845
|
-
showEye:
|
|
2845
|
+
showEye: y = !0
|
|
2846
2846
|
}) => {
|
|
2847
|
-
const { t:
|
|
2847
|
+
const { t: _ } = $(), [v, C] = V(n);
|
|
2848
2848
|
F(() => {
|
|
2849
|
-
n &&
|
|
2849
|
+
n && C(n);
|
|
2850
2850
|
}, [n]);
|
|
2851
|
-
const
|
|
2852
|
-
if (
|
|
2853
|
-
let x = [...
|
|
2854
|
-
x.sort((w, k) => w[
|
|
2851
|
+
const h = (b) => {
|
|
2852
|
+
if (v && v.length > 0) {
|
|
2853
|
+
let x = [...v];
|
|
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((
|
|
2870
|
-
/* @__PURE__ */ i("span", { children:
|
|
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
|
+
/* @__PURE__ */ i("span", { children: _(c.name) }),
|
|
2871
2871
|
/* @__PURE__ */ i("img", { src: at, alt: "order arrow" })
|
|
2872
|
-
] }) },
|
|
2873
|
-
/* @__PURE__ */ i("span", { children:
|
|
2872
|
+
] }) }, b) : b === "data" ? /* @__PURE__ */ i("div", { className: K.elementDate, children: /* @__PURE__ */ m("button", { onClick: () => h("date"), children: [
|
|
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)) }),
|
|
2876
2876
|
/* @__PURE__ */ i("div", { className: K.buttonsContainer })
|
|
2877
2877
|
]
|
|
2878
2878
|
}
|
|
2879
2879
|
),
|
|
2880
|
-
/* @__PURE__ */ i("div", { className: K.elementListContainer, children:
|
|
2880
|
+
/* @__PURE__ */ i("div", { className: K.elementListContainer, children: v && v.length > 0 && v.map((b) => /* @__PURE__ */ i(
|
|
2881
2881
|
Nt,
|
|
2882
2882
|
{
|
|
2883
|
-
isActive: d ==
|
|
2884
|
-
listelement:
|
|
2883
|
+
isActive: d == b.id,
|
|
2884
|
+
listelement: b,
|
|
2885
2885
|
fontColor: s,
|
|
2886
2886
|
activeColor: o,
|
|
2887
2887
|
onClickElement: a,
|
|
2888
2888
|
columns: c,
|
|
2889
2889
|
elementButtons: u,
|
|
2890
|
-
moreInfo:
|
|
2891
|
-
processTooltip:
|
|
2890
|
+
moreInfo: p,
|
|
2891
|
+
processTooltip: g,
|
|
2892
2892
|
defaultTooltip: f,
|
|
2893
|
-
showEye:
|
|
2893
|
+
showEye: y
|
|
2894
2894
|
},
|
|
2895
|
-
`elementKey${
|
|
2895
|
+
`elementKey${b.id}`
|
|
2896
2896
|
)) }),
|
|
2897
2897
|
l && /* @__PURE__ */ i("div", { className: K.newElementButtonContainer, children: /* @__PURE__ */ i(
|
|
2898
2898
|
Me,
|
|
@@ -2901,7 +2901,7 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2901
2901
|
onClick: l.onClick,
|
|
2902
2902
|
borderColor: "grey",
|
|
2903
2903
|
disabled: l.disabled || !1,
|
|
2904
|
-
children:
|
|
2904
|
+
children: _(l.label)
|
|
2905
2905
|
}
|
|
2906
2906
|
) })
|
|
2907
2907
|
]
|
|
@@ -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,11 +3076,11 @@ 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 } : {}
|
|
3083
|
-
})),
|
|
3083
|
+
})), g = D.useMemo(() => Object.defineProperties({}, {
|
|
3084
3084
|
invalid: {
|
|
3085
3085
|
enumerable: !0,
|
|
3086
3086
|
get: () => !!P(c.errors, s)
|
|
@@ -3101,50 +3101,50 @@ function Ni(n) {
|
|
|
3101
3101
|
enumerable: !0,
|
|
3102
3102
|
get: () => P(c.errors, s)
|
|
3103
3103
|
}
|
|
3104
|
-
}), [c, s]), f = D.useCallback((
|
|
3104
|
+
}), [c, s]), f = D.useCallback((C) => p.current.onChange({
|
|
3105
3105
|
target: {
|
|
3106
|
-
value: hi(
|
|
3106
|
+
value: hi(C),
|
|
3107
3107
|
name: s
|
|
3108
3108
|
},
|
|
3109
3109
|
type: ct.CHANGE
|
|
3110
|
-
}), [s]),
|
|
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
|
-
}), [s, t._formValues]),
|
|
3117
|
-
const
|
|
3118
|
-
|
|
3119
|
-
focus: () =>
|
|
3120
|
-
select: () =>
|
|
3121
|
-
setCustomValidity: (
|
|
3122
|
-
reportValidity: () =>
|
|
3116
|
+
}), [s, t._formValues]), _ = D.useCallback((C) => {
|
|
3117
|
+
const h = P(t._fields, s);
|
|
3118
|
+
h && C && (h._f.ref = {
|
|
3119
|
+
focus: () => C.focus && C.focus(),
|
|
3120
|
+
select: () => C.select && C.select(),
|
|
3121
|
+
setCustomValidity: (b) => C.setCustomValidity(b),
|
|
3122
|
+
reportValidity: () => C.reportValidity()
|
|
3123
3123
|
});
|
|
3124
|
-
}, [t._fields, s]),
|
|
3124
|
+
}, [t._fields, s]), v = D.useMemo(() => ({
|
|
3125
3125
|
name: s,
|
|
3126
3126
|
value: a,
|
|
3127
3127
|
...Oe(o) || c.disabled ? { disabled: c.disabled || o } : {},
|
|
3128
3128
|
onChange: f,
|
|
3129
|
-
onBlur:
|
|
3130
|
-
ref:
|
|
3131
|
-
}), [s, o, c.disabled, f,
|
|
3129
|
+
onBlur: y,
|
|
3130
|
+
ref: _
|
|
3131
|
+
}), [s, o, c.disabled, f, y, _, a]);
|
|
3132
3132
|
return D.useEffect(() => {
|
|
3133
|
-
const
|
|
3133
|
+
const C = t._options.shouldUnregister || r;
|
|
3134
3134
|
t.register(s, {
|
|
3135
3135
|
...u.current.rules,
|
|
3136
3136
|
...Oe(u.current.disabled) ? { disabled: u.current.disabled } : {}
|
|
3137
3137
|
});
|
|
3138
|
-
const
|
|
3139
|
-
const w = P(t._fields,
|
|
3138
|
+
const h = (b, x) => {
|
|
3139
|
+
const w = P(t._fields, b);
|
|
3140
3140
|
w && w._f && (w._f.mount = x);
|
|
3141
3141
|
};
|
|
3142
|
-
if (
|
|
3143
|
-
const
|
|
3144
|
-
lt(t._defaultValues, s,
|
|
3142
|
+
if (h(s, !0), C) {
|
|
3143
|
+
const b = $t(P(t._options.defaultValues, s));
|
|
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 ?
|
|
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({
|
|
@@ -3152,10 +3152,10 @@ function Ni(n) {
|
|
|
3152
3152
|
name: s
|
|
3153
3153
|
});
|
|
3154
3154
|
}, [o, s, t]), D.useMemo(() => ({
|
|
3155
|
-
field:
|
|
3155
|
+
field: v,
|
|
3156
3156
|
formState: c,
|
|
3157
|
-
fieldState:
|
|
3158
|
-
}), [
|
|
3157
|
+
fieldState: g
|
|
3158
|
+
}), [v, c, g]);
|
|
3159
3159
|
}
|
|
3160
3160
|
const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_labelContainer_1o3iy_5", Bi = "_inputContainer_1o3iy_8", Ti = "_showPasswordButton_1o3iy_14", Li = "_forgotPassButton_1o3iy_26", be = {
|
|
3161
3161
|
textInputContainer: Si,
|
|
@@ -3191,36 +3191,36 @@ 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:
|
|
3195
|
-
onClickForgotPass:
|
|
3194
|
+
width: p = 325,
|
|
3195
|
+
onClickForgotPass: g = () => {
|
|
3196
3196
|
console.log("Click on forgot password");
|
|
3197
3197
|
},
|
|
3198
3198
|
forgotPassLabel: f = "forgot-password"
|
|
3199
|
-
} = n, { t:
|
|
3199
|
+
} = n, { t: y } = $(), { control: _, trigger: v, clearErrors: C } = d, { errorColor: h } = xe((k) => k), [b, x] = V(!1);
|
|
3200
3200
|
oe(l);
|
|
3201
|
-
const w = () => o ? o === "password" &&
|
|
3201
|
+
const w = () => o ? o === "password" && b ? "text" : o : "text";
|
|
3202
3202
|
return /* @__PURE__ */ i(
|
|
3203
3203
|
ve,
|
|
3204
3204
|
{
|
|
3205
3205
|
name: s,
|
|
3206
|
-
control:
|
|
3206
|
+
control: _,
|
|
3207
3207
|
rules: {
|
|
3208
|
-
required: l ? `${
|
|
3208
|
+
required: l ? `${y(t)} ${y("errorMessages.required")}` : !1,
|
|
3209
3209
|
maxLength: r || void 0,
|
|
3210
3210
|
validate: a || void 0
|
|
3211
3211
|
},
|
|
3212
3212
|
render: ({ field: k, fieldState: S }) => {
|
|
3213
3213
|
var L;
|
|
3214
|
-
return /* @__PURE__ */
|
|
3215
|
-
/* @__PURE__ */
|
|
3216
|
-
|
|
3214
|
+
return /* @__PURE__ */ m("div", { className: be.textInputContainer, children: [
|
|
3215
|
+
/* @__PURE__ */ m("h3", { className: be.labelContainer, children: [
|
|
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(
|
|
@@ -3228,28 +3228,28 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3228
3228
|
{
|
|
3229
3229
|
type: w(),
|
|
3230
3230
|
...k,
|
|
3231
|
-
placeholder: c ?
|
|
3231
|
+
placeholder: c ? y(c) : "",
|
|
3232
3232
|
maxLength: r || void 0
|
|
3233
3233
|
}
|
|
3234
3234
|
),
|
|
3235
3235
|
o == "password" && /* @__PURE__ */ i(
|
|
3236
3236
|
"button",
|
|
3237
3237
|
{
|
|
3238
|
-
onClick: () => x(!
|
|
3238
|
+
onClick: () => x(!b),
|
|
3239
3239
|
type: "button",
|
|
3240
3240
|
className: be.showPasswordButton,
|
|
3241
|
-
children:
|
|
3241
|
+
children: b ? "🙈" : "👁️"
|
|
3242
3242
|
}
|
|
3243
3243
|
)
|
|
3244
3244
|
]
|
|
3245
3245
|
}
|
|
3246
3246
|
),
|
|
3247
|
-
o == "password" && /* @__PURE__ */ i("div", { className: be.forgotPassButton, children: /* @__PURE__ */ i("button", { onClick:
|
|
3247
|
+
o == "password" && /* @__PURE__ */ i("div", { className: be.forgotPassButton, children: /* @__PURE__ */ i("button", { onClick: g, children: y(f) }) }),
|
|
3248
3248
|
/* @__PURE__ */ i(
|
|
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,42 +3275,42 @@ 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:
|
|
3279
|
-
options:
|
|
3280
|
-
} = n, { t: f } = $(), { control:
|
|
3278
|
+
width: p = 325,
|
|
3279
|
+
options: g = []
|
|
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
|
{
|
|
3284
3284
|
name: s,
|
|
3285
|
-
control:
|
|
3285
|
+
control: y,
|
|
3286
3286
|
rules: {
|
|
3287
3287
|
required: l ? `${f(t)} ${f("errorMessages.required")}` : !1,
|
|
3288
|
-
validate: a ? (
|
|
3289
|
-
let
|
|
3290
|
-
return a(
|
|
3288
|
+
validate: a ? (h) => {
|
|
3289
|
+
let b = d.getValues();
|
|
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
|
-
l && /* @__PURE__ */ i("label", { style: { color:
|
|
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
|
-
const k = w.target.value, S =
|
|
3308
|
-
|
|
3307
|
+
const k = w.target.value, S = g.every((L) => typeof L.value == "number") ? Number(k) : k;
|
|
3308
|
+
h.onChange(S);
|
|
3309
3309
|
},
|
|
3310
3310
|
className: de.selectInput,
|
|
3311
3311
|
children: [
|
|
3312
3312
|
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: f(c || "selectOption") }),
|
|
3313
|
-
|
|
3313
|
+
g.map((w, k) => /* @__PURE__ */ i(
|
|
3314
3314
|
"option",
|
|
3315
3315
|
{
|
|
3316
3316
|
value: w.value,
|
|
@@ -3334,8 +3334,8 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3334
3334
|
/* @__PURE__ */ i(
|
|
3335
3335
|
we,
|
|
3336
3336
|
{
|
|
3337
|
-
errorMessage: (x =
|
|
3338
|
-
errorColor:
|
|
3337
|
+
errorMessage: (x = b.error) == null ? void 0 : x.message,
|
|
3338
|
+
errorColor: C || u
|
|
3339
3339
|
}
|
|
3340
3340
|
)
|
|
3341
3341
|
] });
|
|
@@ -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:
|
|
3362
|
-
if (c &&
|
|
3363
|
-
let x =
|
|
3364
|
-
|
|
3361
|
+
} = n, { t: u } = $(), { control: p, trigger: g, clearErrors: f } = d, { errorColor: y } = xe((C) => C), _ = ({ options: C, onChange: h, actualValue: b }) => {
|
|
3362
|
+
if (c && b && b.length > 0) {
|
|
3363
|
+
let x = b.filter((w) => w !== C);
|
|
3364
|
+
h(x);
|
|
3365
3365
|
}
|
|
3366
|
-
},
|
|
3367
|
-
c ?
|
|
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
|
-
validate: (
|
|
3375
|
+
validate: (C) => t && (C == null || C === "") ? `${u(o)} ${u("errorMessages.required")}` : null
|
|
3376
3376
|
},
|
|
3377
3377
|
render: ({
|
|
3378
|
-
formState: { errors:
|
|
3379
|
-
field: { onChange:
|
|
3378
|
+
formState: { errors: C },
|
|
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,22 +3408,22 @@ 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
|
{
|
|
3415
3415
|
type: "radio",
|
|
3416
3416
|
checked: M,
|
|
3417
3417
|
onChange: () => {
|
|
3418
|
-
c ? M ?
|
|
3418
|
+
c ? M ? _({
|
|
3419
3419
|
actualValue: x,
|
|
3420
3420
|
options: a,
|
|
3421
|
-
onChange:
|
|
3422
|
-
}) :
|
|
3421
|
+
onChange: h
|
|
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
|
}
|
|
@@ -3437,7 +3437,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3437
3437
|
we,
|
|
3438
3438
|
{
|
|
3439
3439
|
errorMessage: (S = k.error) == null ? void 0 : S.message,
|
|
3440
|
-
errorColor:
|
|
3440
|
+
errorColor: y || l
|
|
3441
3441
|
}
|
|
3442
3442
|
)
|
|
3443
3443
|
] })
|
|
@@ -3464,18 +3464,18 @@ 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:
|
|
3468
|
-
labelWidth:
|
|
3467
|
+
errorColor: p = "red",
|
|
3468
|
+
labelWidth: g = "300px",
|
|
3469
3469
|
sliderWidth: f = "300px",
|
|
3470
|
-
minText:
|
|
3471
|
-
maxText:
|
|
3472
|
-
disabled:
|
|
3473
|
-
marks:
|
|
3470
|
+
minText: y,
|
|
3471
|
+
maxText: _,
|
|
3472
|
+
disabled: v = !1,
|
|
3473
|
+
marks: C = Array.from(
|
|
3474
3474
|
{ length: l - r + 1 },
|
|
3475
3475
|
(B, O) => r + O
|
|
3476
3476
|
),
|
|
3477
|
-
showMarksNumber:
|
|
3478
|
-
} = n, { t:
|
|
3477
|
+
showMarksNumber: h = !0
|
|
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);
|
|
3481
3481
|
return d ? /* @__PURE__ */ i(
|
|
@@ -3485,22 +3485,22 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3485
3485
|
control: x,
|
|
3486
3486
|
defaultValue: a,
|
|
3487
3487
|
rules: {
|
|
3488
|
-
required: u ? `${
|
|
3488
|
+
required: u ? `${b(t)} ${b("errorMessages.required")}` : !1
|
|
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,
|
|
3496
3496
|
style: {
|
|
3497
|
-
gridTemplateColumns: `${t &&
|
|
3497
|
+
gridTemplateColumns: `${t && g} ${f}`
|
|
3498
3498
|
},
|
|
3499
3499
|
children: [
|
|
3500
|
-
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children:
|
|
3501
|
-
/* @__PURE__ */
|
|
3502
|
-
|
|
3503
|
-
/* @__PURE__ */
|
|
3500
|
+
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: b(t) }),
|
|
3501
|
+
/* @__PURE__ */ m("div", { className: A.inputContainer, children: [
|
|
3502
|
+
y && /* @__PURE__ */ i("div", { className: A.minLabel, children: b(y) }),
|
|
3503
|
+
/* @__PURE__ */ m("div", { children: [
|
|
3504
3504
|
/* @__PURE__ */ i(
|
|
3505
3505
|
je,
|
|
3506
3506
|
{
|
|
@@ -3521,18 +3521,18 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3521
3521
|
),
|
|
3522
3522
|
trackClassName: A.track,
|
|
3523
3523
|
markClassName: A.mark,
|
|
3524
|
-
disabled:
|
|
3524
|
+
disabled: v
|
|
3525
3525
|
}
|
|
3526
3526
|
),
|
|
3527
|
-
|
|
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
|
] }),
|
|
3531
3531
|
/* @__PURE__ */ i(
|
|
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
|
-
style: { gridTemplateColumns: `${t &&
|
|
3547
|
+
style: { gridTemplateColumns: `${t && g} ${f}` },
|
|
3548
3548
|
children: [
|
|
3549
|
-
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children:
|
|
3550
|
-
/* @__PURE__ */
|
|
3551
|
-
|
|
3552
|
-
/* @__PURE__ */
|
|
3549
|
+
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: b(t) }),
|
|
3550
|
+
/* @__PURE__ */ m("div", { className: A.inputContainer, children: [
|
|
3551
|
+
y && /* @__PURE__ */ i("div", { className: A.minLabel, children: b(y) }),
|
|
3552
|
+
/* @__PURE__ */ m("div", { children: [
|
|
3553
3553
|
/* @__PURE__ */ i(
|
|
3554
3554
|
je,
|
|
3555
3555
|
{
|
|
@@ -3572,12 +3572,12 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3572
3572
|
),
|
|
3573
3573
|
trackClassName: A.track,
|
|
3574
3574
|
markClassName: A.mark,
|
|
3575
|
-
disabled:
|
|
3575
|
+
disabled: v
|
|
3576
3576
|
}
|
|
3577
3577
|
),
|
|
3578
|
-
|
|
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
|
] })
|
|
3582
3582
|
]
|
|
3583
3583
|
}
|
|
@@ -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,39 +3746,39 @@ const ye = ({
|
|
|
3746
3746
|
submitButtonStyles: a = { width: 325 },
|
|
3747
3747
|
showCategorySelector: c = !0,
|
|
3748
3748
|
defaultCategory: u = null,
|
|
3749
|
-
categoryLabel:
|
|
3750
|
-
activeCategory:
|
|
3749
|
+
categoryLabel: p = "Select Category",
|
|
3750
|
+
activeCategory: g = null,
|
|
3751
3751
|
activeCategoryColor: f = "#b32f5d",
|
|
3752
|
-
onSubmit:
|
|
3752
|
+
onSubmit: y = (_) => console.log("Form submitted with: ", _)
|
|
3753
3753
|
}) => {
|
|
3754
|
-
const { t:
|
|
3754
|
+
const { t: _ } = $(), { handleSubmit: v, control: C } = n;
|
|
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,
|
|
3762
3762
|
label: N.category,
|
|
3763
3763
|
hasSubcategories: ((B = N.subcategories) == null ? void 0 : B.length) > 0
|
|
3764
3764
|
};
|
|
3765
|
-
}) : [], [d]),
|
|
3765
|
+
}) : [], [d]), b = (N) => {
|
|
3766
3766
|
const B = d == null ? void 0 : d.find((O) => O.categoryId === N);
|
|
3767
3767
|
return (B == null ? void 0 : B.subcategories) || [];
|
|
3768
3768
|
}, [x, w] = V(
|
|
3769
|
-
|
|
3769
|
+
g || u || null
|
|
3770
3770
|
), [k, S] = V(null);
|
|
3771
3771
|
F(() => {
|
|
3772
|
-
!x &&
|
|
3773
|
-
}, [
|
|
3774
|
-
const N =
|
|
3772
|
+
!x && h.length > 0 && w(h[0].id);
|
|
3773
|
+
}, [h, x]), F(() => {
|
|
3774
|
+
const N = b(x);
|
|
3775
3775
|
!k && (N == null ? void 0 : N.length) > 0 && S(N[0].id);
|
|
3776
3776
|
}, [x, k, d]);
|
|
3777
3777
|
const L = (N, B) => {
|
|
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
|
{
|
|
@@ -3808,7 +3808,7 @@ const ye = ({
|
|
|
3808
3808
|
ye,
|
|
3809
3809
|
{
|
|
3810
3810
|
inputs: M.inputs,
|
|
3811
|
-
control:
|
|
3811
|
+
control: C,
|
|
3812
3812
|
inputContainerStyles: o,
|
|
3813
3813
|
errorColor: r,
|
|
3814
3814
|
reactHookFormInstance: n
|
|
@@ -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: {
|
|
@@ -3824,12 +3824,12 @@ const ye = ({
|
|
|
3824
3824
|
display: z ? "block" : "none"
|
|
3825
3825
|
},
|
|
3826
3826
|
children: [
|
|
3827
|
-
/* @__PURE__ */ i("h3", { style: { marginBottom: 15 }, children:
|
|
3827
|
+
/* @__PURE__ */ i("h3", { style: { marginBottom: 15 }, children: _(M.label) }),
|
|
3828
3828
|
/* @__PURE__ */ i(
|
|
3829
3829
|
ye,
|
|
3830
3830
|
{
|
|
3831
3831
|
inputs: M.inputs,
|
|
3832
|
-
control:
|
|
3832
|
+
control: C,
|
|
3833
3833
|
inputContainerStyles: o,
|
|
3834
3834
|
errorColor: r,
|
|
3835
3835
|
reactHookFormInstance: n
|
|
@@ -3846,18 +3846,18 @@ const ye = ({
|
|
|
3846
3846
|
ye,
|
|
3847
3847
|
{
|
|
3848
3848
|
inputs: N.inputs,
|
|
3849
|
-
control:
|
|
3849
|
+
control: C,
|
|
3850
3850
|
inputContainerStyles: o,
|
|
3851
3851
|
errorColor: r,
|
|
3852
3852
|
reactHookFormInstance: n
|
|
3853
3853
|
}
|
|
3854
|
-
) }, N.categoryId) : /* @__PURE__ */
|
|
3855
|
-
/* @__PURE__ */ i("h2", { children:
|
|
3854
|
+
) }, N.categoryId) : /* @__PURE__ */ m("div", { style: { width: "100%" }, children: [
|
|
3855
|
+
/* @__PURE__ */ i("h2", { children: _(N.category) }),
|
|
3856
3856
|
/* @__PURE__ */ i(
|
|
3857
3857
|
ye,
|
|
3858
3858
|
{
|
|
3859
3859
|
inputs: N.inputs,
|
|
3860
|
-
control:
|
|
3860
|
+
control: C,
|
|
3861
3861
|
inputContainerStyles: o,
|
|
3862
3862
|
errorColor: r,
|
|
3863
3863
|
reactHookFormInstance: n
|
|
@@ -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
|
},
|
|
@@ -3893,15 +3893,15 @@ const ye = ({
|
|
|
3893
3893
|
ye,
|
|
3894
3894
|
{
|
|
3895
3895
|
inputs: N.inputs,
|
|
3896
|
-
control:
|
|
3896
|
+
control: C,
|
|
3897
3897
|
inputContainerStyles: o,
|
|
3898
3898
|
errorColor: r,
|
|
3899
3899
|
reactHookFormInstance: n
|
|
3900
3900
|
}
|
|
3901
3901
|
);
|
|
3902
3902
|
}) }),
|
|
3903
|
-
/* @__PURE__ */
|
|
3904
|
-
/* @__PURE__ */ i(Me, { containerStyles: a, type: "submit", children:
|
|
3903
|
+
/* @__PURE__ */ m("div", { className: Ce.buttonContainer, children: [
|
|
3904
|
+
/* @__PURE__ */ i(Me, { containerStyles: a, type: "submit", children: _(l) }),
|
|
3905
3905
|
/* @__PURE__ */ i(we, { errorMessage: t, errorColor: r })
|
|
3906
3906
|
] })
|
|
3907
3907
|
] });
|
|
@@ -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,34 +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
|
-
} = n, { t:
|
|
4068
|
-
|
|
4069
|
-
},
|
|
4070
|
-
|
|
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(
|
|
4071
4071
|
"span",
|
|
4072
4072
|
{
|
|
4073
4073
|
className: ue.labelLeft,
|
|
4074
|
-
style: { width: `${(
|
|
4075
|
-
children:
|
|
4074
|
+
style: { width: `${(p - 74) / 2}px` },
|
|
4075
|
+
children: g(r)
|
|
4076
4076
|
}
|
|
4077
4077
|
),
|
|
4078
|
-
/* @__PURE__ */
|
|
4078
|
+
/* @__PURE__ */ m("label", { className: `${ue.switch} ${u ? ue.disabled : ""}`, children: [
|
|
4079
4079
|
/* @__PURE__ */ i(
|
|
4080
4080
|
"input",
|
|
4081
4081
|
{
|
|
4082
4082
|
type: "checkbox",
|
|
4083
|
-
checked: !!
|
|
4084
|
-
onChange: () =>
|
|
4085
|
-
disabled:
|
|
4083
|
+
checked: !!h,
|
|
4084
|
+
onChange: () => b(!h),
|
|
4085
|
+
disabled: u
|
|
4086
4086
|
}
|
|
4087
4087
|
),
|
|
4088
4088
|
/* @__PURE__ */ i(
|
|
@@ -4090,22 +4090,22 @@ const Ls = "_switchContainer_194wl_2", Ms = "_labelRight_194wl_9", Ds = "_labelL
|
|
|
4090
4090
|
{
|
|
4091
4091
|
className: ue.slider,
|
|
4092
4092
|
style: {
|
|
4093
|
-
"--switch-thumb-color":
|
|
4093
|
+
"--switch-thumb-color": o ? h ? c : "#ccc" : c
|
|
4094
4094
|
}
|
|
4095
4095
|
}
|
|
4096
4096
|
)
|
|
4097
4097
|
] }),
|
|
4098
|
-
|
|
4098
|
+
l && /* @__PURE__ */ i("span", { className: ue.labelRight, style: { width: `${(p - 74) / 2}px` }, children: g(l) })
|
|
4099
4099
|
] });
|
|
4100
4100
|
return d ? /* @__PURE__ */ i(
|
|
4101
4101
|
ve,
|
|
4102
4102
|
{
|
|
4103
|
-
name:
|
|
4104
|
-
control:
|
|
4105
|
-
defaultValue:
|
|
4106
|
-
render: ({ field:
|
|
4103
|
+
name: t,
|
|
4104
|
+
control: f,
|
|
4105
|
+
defaultValue: a,
|
|
4106
|
+
render: ({ field: h }) => C(h.value, h.onChange)
|
|
4107
4107
|
}
|
|
4108
|
-
) :
|
|
4108
|
+
) : C(y, v);
|
|
4109
4109
|
};
|
|
4110
4110
|
As.propTypes = {
|
|
4111
4111
|
input: e.shape({
|
|
@@ -4135,7 +4135,7 @@ const Is = "_header_13kbt_2", Os = "_leftComponents_13kbt_13", qs = "_centerComp
|
|
|
4135
4135
|
backgroundColor: l = "#605B56",
|
|
4136
4136
|
isFooter: a = !1
|
|
4137
4137
|
// If true, it will apply footer styles
|
|
4138
|
-
}) => /* @__PURE__ */
|
|
4138
|
+
}) => /* @__PURE__ */ m(
|
|
4139
4139
|
"div",
|
|
4140
4140
|
{
|
|
4141
4141
|
className: ie.header,
|
|
@@ -4183,7 +4183,7 @@ const js = "_sidebar_1kaqu_2", zs = "_open_1kaqu_16", Zs = "_content_1kaqu_20",
|
|
|
4183
4183
|
{
|
|
4184
4184
|
className: `${Le.sidebar} ${s ? Le.open : ""}`,
|
|
4185
4185
|
style: { width: s ? n : 0 },
|
|
4186
|
-
children: s && /* @__PURE__ */
|
|
4186
|
+
children: s && /* @__PURE__ */ m("div", { className: Le.content, children: [
|
|
4187
4187
|
/* @__PURE__ */ i("button", { className: Le.closeButton, onClick: t, children: /* @__PURE__ */ i("img", { src: Ks, alt: "Close Sidebar" }) }),
|
|
4188
4188
|
d
|
|
4189
4189
|
] })
|