@tmf_ciclica/ciclicastorybook 1.1.185 → 1.1.187
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 +5 -5
- package/dist/index.es.js +352 -349
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -12,13 +12,13 @@ import { useSelector as qt } from "react-redux";
|
|
|
12
12
|
import Rt, { Source as Et, Layer as Pt, NavigationControl as jt, Popup as zt } from "react-map-gl/mapbox";
|
|
13
13
|
import De from "maplibre-gl";
|
|
14
14
|
import { Protocol as Zt } from "pmtiles";
|
|
15
|
-
import Ht, { Source as Kt, Layer as Ut, NavigationControl as
|
|
15
|
+
import Ht, { Source as Kt, Layer as Ut, NavigationControl as Wt, Popup as Gt } from "react-map-gl/maplibre";
|
|
16
16
|
import { createSlice as Yt } from "@reduxjs/toolkit";
|
|
17
17
|
import Qt from "@mui/material/Slider";
|
|
18
18
|
import { createTheme as Xt, Box as Jt } from "@mui/material";
|
|
19
19
|
import { ThemeProvider as e2 } from "@emotion/react";
|
|
20
20
|
import { NavLink as t2 } from "react-router-dom";
|
|
21
|
-
const n2 = "_ambitSelector_mcunf_2", i2 = "_header_mcunf_13", s2 = "_nameDateContainer_mcunf_23", o2 = "_ambitName_mcunf_39", r2 = "_ambitDate_mcunf_53", a2 = "_buttonsContainer_mcunf_67", l2 = "_ambitListContainer_mcunf_76", c2 = "_newAmbitButtonContainer_mcunf_80",
|
|
21
|
+
const n2 = "_ambitSelector_mcunf_2", i2 = "_header_mcunf_13", s2 = "_nameDateContainer_mcunf_23", o2 = "_ambitName_mcunf_39", r2 = "_ambitDate_mcunf_53", a2 = "_buttonsContainer_mcunf_67", l2 = "_ambitListContainer_mcunf_76", c2 = "_newAmbitButtonContainer_mcunf_80", G = {
|
|
22
22
|
ambitSelector: n2,
|
|
23
23
|
header: i2,
|
|
24
24
|
nameDateContainer: s2,
|
|
@@ -40,8 +40,8 @@ const n2 = "_ambitSelector_mcunf_2", i2 = "_header_mcunf_13", s2 = "_nameDateCon
|
|
|
40
40
|
onClickFilters: o,
|
|
41
41
|
onClickAmbit: t,
|
|
42
42
|
isActive: r,
|
|
43
|
-
activeColor:
|
|
44
|
-
fontColor:
|
|
43
|
+
activeColor: l,
|
|
44
|
+
fontColor: a,
|
|
45
45
|
moreInfo: c
|
|
46
46
|
}) => {
|
|
47
47
|
const { name: u, created_at: m, id: h, isBeingProcessed: f } = n;
|
|
@@ -49,7 +49,7 @@ const n2 = "_ambitSelector_mcunf_2", i2 = "_header_mcunf_13", s2 = "_nameDateCon
|
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
51
51
|
className: he.ambitItem,
|
|
52
|
-
style: { borderBottom: `1px solid ${
|
|
52
|
+
style: { borderBottom: `1px solid ${a}` },
|
|
53
53
|
children: [
|
|
54
54
|
/* @__PURE__ */ p("div", { className: he.ambitNameDate, onClick: () => t(h), children: [
|
|
55
55
|
/* @__PURE__ */ p("div", { className: he.ambitName, children: [
|
|
@@ -60,7 +60,7 @@ const n2 = "_ambitSelector_mcunf_2", i2 = "_header_mcunf_13", s2 = "_nameDateCon
|
|
|
60
60
|
src: r ? y2 : _2
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
/* @__PURE__ */ i("span", { style: { color: r ?
|
|
63
|
+
/* @__PURE__ */ i("span", { style: { color: r ? l : a }, children: u })
|
|
64
64
|
] }),
|
|
65
65
|
/* @__PURE__ */ i("div", { className: he.ambitDate, children: m ? new Date(m).toLocaleDateString() : "" })
|
|
66
66
|
] }),
|
|
@@ -101,8 +101,8 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
101
101
|
borderColor: o = "#605B56",
|
|
102
102
|
backgroundColor: t = "#fff",
|
|
103
103
|
type: r = "button",
|
|
104
|
-
containerStyles:
|
|
105
|
-
disabled:
|
|
104
|
+
containerStyles: l = {},
|
|
105
|
+
disabled: a = !1
|
|
106
106
|
}) => /* @__PURE__ */ i(
|
|
107
107
|
"button",
|
|
108
108
|
{
|
|
@@ -111,11 +111,11 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
111
111
|
color: s,
|
|
112
112
|
border: `1.5px solid ${o}`,
|
|
113
113
|
background: t,
|
|
114
|
-
...
|
|
114
|
+
...l
|
|
115
115
|
},
|
|
116
116
|
onClick: d,
|
|
117
117
|
type: r,
|
|
118
|
-
disabled:
|
|
118
|
+
disabled: a,
|
|
119
119
|
children: n
|
|
120
120
|
}
|
|
121
121
|
), x2 = ({
|
|
@@ -125,8 +125,8 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
125
125
|
activeColor: o,
|
|
126
126
|
nameLabel: t,
|
|
127
127
|
dateLabel: r,
|
|
128
|
-
newAmbitLabel:
|
|
129
|
-
buttonContainerStyles:
|
|
128
|
+
newAmbitLabel: l = "New field",
|
|
129
|
+
buttonContainerStyles: a = {},
|
|
130
130
|
containerStyles: c = {},
|
|
131
131
|
onCLickNewAmbit: u = () => console.log("New ambit clicked"),
|
|
132
132
|
onClickCopy: m = (v) => console.log(`Copy ambit: ${v}`),
|
|
@@ -147,30 +147,30 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
147
147
|
return /* @__PURE__ */ p(
|
|
148
148
|
"div",
|
|
149
149
|
{
|
|
150
|
-
className:
|
|
150
|
+
className: G.ambitSelector,
|
|
151
151
|
style: { color: s, ...c },
|
|
152
152
|
children: [
|
|
153
153
|
/* @__PURE__ */ p(
|
|
154
154
|
"div",
|
|
155
155
|
{
|
|
156
|
-
className:
|
|
156
|
+
className: G.header,
|
|
157
157
|
style: { borderBottom: `1px solid ${s}` },
|
|
158
158
|
children: [
|
|
159
|
-
/* @__PURE__ */ p("div", { className:
|
|
160
|
-
/* @__PURE__ */ i("div", { className:
|
|
159
|
+
/* @__PURE__ */ p("div", { className: G.nameDateContainer, children: [
|
|
160
|
+
/* @__PURE__ */ i("div", { className: G.ambitName, children: /* @__PURE__ */ p("button", { onClick: () => C("name"), children: [
|
|
161
161
|
/* @__PURE__ */ i("span", { children: v(t) }),
|
|
162
162
|
/* @__PURE__ */ i("img", { src: Qe })
|
|
163
163
|
] }) }),
|
|
164
|
-
/* @__PURE__ */ i("div", { className:
|
|
164
|
+
/* @__PURE__ */ i("div", { className: G.ambitDate, children: /* @__PURE__ */ p("button", { onClick: () => C("date"), children: [
|
|
165
165
|
/* @__PURE__ */ i("span", { children: v(r) }),
|
|
166
166
|
/* @__PURE__ */ i("img", { src: Qe })
|
|
167
167
|
] }) })
|
|
168
168
|
] }),
|
|
169
|
-
/* @__PURE__ */ i("div", { className:
|
|
169
|
+
/* @__PURE__ */ i("div", { className: G.buttonsContainer })
|
|
170
170
|
]
|
|
171
171
|
}
|
|
172
172
|
),
|
|
173
|
-
/* @__PURE__ */ i("div", { className:
|
|
173
|
+
/* @__PURE__ */ i("div", { className: G.ambitListContainer, children: _ && _.length > 0 && _.map((y) => /* @__PURE__ */ i(
|
|
174
174
|
ht,
|
|
175
175
|
{
|
|
176
176
|
isActive: d == y.id,
|
|
@@ -184,13 +184,13 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
184
184
|
},
|
|
185
185
|
`ambitKey${y.id}`
|
|
186
186
|
)) }),
|
|
187
|
-
/* @__PURE__ */ i("div", { className:
|
|
187
|
+
/* @__PURE__ */ i("div", { className: G.newAmbitButtonContainer, children: /* @__PURE__ */ i(
|
|
188
188
|
Me,
|
|
189
189
|
{
|
|
190
|
-
style: { ...
|
|
190
|
+
style: { ...a },
|
|
191
191
|
onClick: u,
|
|
192
192
|
borderColor: "grey",
|
|
193
|
-
children: v(
|
|
193
|
+
children: v(l)
|
|
194
194
|
}
|
|
195
195
|
) })
|
|
196
196
|
]
|
|
@@ -248,13 +248,13 @@ const A2 = ({
|
|
|
248
248
|
useTooltip: t = !1,
|
|
249
249
|
tooltipPosition: r = "top"
|
|
250
250
|
}) => {
|
|
251
|
-
const { t:
|
|
251
|
+
const { t: l } = $();
|
|
252
252
|
return /* @__PURE__ */ i(
|
|
253
253
|
"div",
|
|
254
254
|
{
|
|
255
255
|
className: `${X.buttonsContainer} ${d === "vertical" && X.vertical}
|
|
256
256
|
${d === "horizontal" && X.horizontal}`,
|
|
257
|
-
children: n.map((
|
|
257
|
+
children: n.map((a, c) => {
|
|
258
258
|
const {
|
|
259
259
|
icon: u,
|
|
260
260
|
activeIcon: m,
|
|
@@ -262,10 +262,10 @@ const A2 = ({
|
|
|
262
262
|
name: f,
|
|
263
263
|
onClick: b,
|
|
264
264
|
disabled: v
|
|
265
|
-
} =
|
|
266
|
-
s && o === "left" && /* @__PURE__ */ i("span", { className: X.buttonName, children:
|
|
267
|
-
/* @__PURE__ */ i("img", { src: h ? m : u, alt:
|
|
268
|
-
s && o === "right" && /* @__PURE__ */ i("span", { className: X.buttonName, children:
|
|
265
|
+
} = a, _ = /* @__PURE__ */ p(qe, { children: [
|
|
266
|
+
s && o === "left" && /* @__PURE__ */ i("span", { className: X.buttonName, children: l(f) }),
|
|
267
|
+
/* @__PURE__ */ i("img", { src: h ? m : u, alt: l(f) }),
|
|
268
|
+
s && o === "right" && /* @__PURE__ */ i("span", { className: X.buttonName, children: l(f) })
|
|
269
269
|
] });
|
|
270
270
|
return /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
271
271
|
/* @__PURE__ */ i(
|
|
@@ -314,9 +314,9 @@ const I2 = "_indicatorsCategory_fj2r2_2", O2 = "_title_fj2r2_6", q2 = "_mainTitl
|
|
|
314
314
|
activeColor: t = "#F8A925",
|
|
315
315
|
title: r = "Title",
|
|
316
316
|
//Change the height only if the title is more than one line or you change title fontSize, otherwise should be 53px
|
|
317
|
-
height:
|
|
317
|
+
height: l = 53,
|
|
318
318
|
//Adjust height if you change fontSize
|
|
319
|
-
titleFontStyles:
|
|
319
|
+
titleFontStyles: a,
|
|
320
320
|
showBottomBar: c = !0,
|
|
321
321
|
titleMarginChildren: u = 15,
|
|
322
322
|
mainTitle: m = !1
|
|
@@ -326,8 +326,8 @@ const I2 = "_indicatorsCategory_fj2r2_2", O2 = "_title_fj2r2_6", q2 = "_mainTitl
|
|
|
326
326
|
Ke.div,
|
|
327
327
|
{
|
|
328
328
|
className: ke.indicatorsCategory,
|
|
329
|
-
initial: { height: `${
|
|
330
|
-
animate: { height: n ? "auto" : `${
|
|
329
|
+
initial: { height: `${l}px` },
|
|
330
|
+
animate: { height: n ? "auto" : `${l}px` },
|
|
331
331
|
transition: { duration: 0.4 },
|
|
332
332
|
style: {
|
|
333
333
|
backgroundColor: "white",
|
|
@@ -339,7 +339,7 @@ const I2 = "_indicatorsCategory_fj2r2_2", O2 = "_title_fj2r2_6", q2 = "_mainTitl
|
|
|
339
339
|
"h2",
|
|
340
340
|
{
|
|
341
341
|
style: {
|
|
342
|
-
...
|
|
342
|
+
...a
|
|
343
343
|
//marginBottom: titleMarginChildren ? titleMarginChildren : "auto",
|
|
344
344
|
},
|
|
345
345
|
className: `${ke.title} ${m && ke.mainTitle}`,
|
|
@@ -378,8 +378,8 @@ const po = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), R2 = "data
|
|
|
378
378
|
inputsColor: "#605B56",
|
|
379
379
|
activeFiltersType: null,
|
|
380
380
|
geoLayers: []
|
|
381
|
-
})), gt = ({ title: n, onClick: d, isOpen: s = !0, textColor: o = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r, fontColor:
|
|
382
|
-
const { t:
|
|
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), m = (f) => {
|
|
383
383
|
T.setState((b) => ({
|
|
384
384
|
tematicalFiltersSelected: b.tematicalFiltersSelected.filter(
|
|
385
385
|
(v) => v.code !== f
|
|
@@ -393,12 +393,12 @@ const po = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), R2 = "data
|
|
|
393
393
|
onClick: () => {
|
|
394
394
|
u == "applied" ? T.setState(() => ({ activeFiltersType: null })) : T.setState(() => ({ activeFiltersType: "applied" }));
|
|
395
395
|
},
|
|
396
|
-
title: n ?
|
|
396
|
+
title: n ? a(n) : "Applied Filters",
|
|
397
397
|
activeColor: r,
|
|
398
398
|
mainTitle: !0,
|
|
399
|
-
color:
|
|
399
|
+
color: l,
|
|
400
400
|
children: /* @__PURE__ */ i("div", { className: Xe.AppliedFiltersContainer, children: c == null ? void 0 : c.map((f, b) => /* @__PURE__ */ p("div", { className: Xe.AppliedFilterContent, style: { color: o, background: t }, children: [
|
|
401
|
-
|
|
401
|
+
a(f.name),
|
|
402
402
|
/* @__PURE__ */ i("img", { src: R2, alt: "CloseIcon", onClick: () => m(f.code), style: { cursor: "pointer" } })
|
|
403
403
|
] }, b)) })
|
|
404
404
|
}
|
|
@@ -429,23 +429,24 @@ const j2 = "_layersList_cn837_25", z2 = "_layerName_cn837_34", Je = {
|
|
|
429
429
|
activeColor: t,
|
|
430
430
|
onGeoLayersChange: r
|
|
431
431
|
}) => {
|
|
432
|
-
const { t:
|
|
433
|
-
|
|
432
|
+
const { t: l } = $(), { activeFiltersType: a, geoLayers: c } = T((h) => h), u = () => {
|
|
433
|
+
a == "geographical" ? T.setState(() => ({ activeFiltersType: null })) : T.setState(() => ({ activeFiltersType: "geographical" }));
|
|
434
434
|
}, m = (h) => {
|
|
435
435
|
T.setState((f) => ({
|
|
436
436
|
geoLayers: f.geoLayers.map((b) => ({
|
|
437
437
|
...b,
|
|
438
438
|
active: b.name === h.name
|
|
439
439
|
}))
|
|
440
|
-
})), r
|
|
440
|
+
})), r(c);
|
|
441
441
|
};
|
|
442
442
|
return F(() => {
|
|
443
|
+
r && r(c);
|
|
443
444
|
}, [c]), /* @__PURE__ */ i(
|
|
444
445
|
re,
|
|
445
446
|
{
|
|
446
|
-
isOpen:
|
|
447
|
+
isOpen: a == "geographical",
|
|
447
448
|
onClick: u,
|
|
448
|
-
title: n ?
|
|
449
|
+
title: n ? l(n) : "Geographical Filters",
|
|
449
450
|
activeColor: t,
|
|
450
451
|
color: s,
|
|
451
452
|
mainTitle: !0,
|
|
@@ -456,7 +457,7 @@ const j2 = "_layersList_cn837_25", z2 = "_layerName_cn837_34", Je = {
|
|
|
456
457
|
style: { color: h.active ? t : s, fontWeight: h.active ? "bold" : "normal" },
|
|
457
458
|
onClick: () => m(h),
|
|
458
459
|
children: [
|
|
459
|
-
|
|
460
|
+
l(h.name),
|
|
460
461
|
h.active
|
|
461
462
|
]
|
|
462
463
|
}
|
|
@@ -481,7 +482,7 @@ const Z2 = "_checkboxContainer_1nxra_2", H2 = {
|
|
|
481
482
|
indicator: o,
|
|
482
483
|
value: t
|
|
483
484
|
}) => {
|
|
484
|
-
const { t: r } = $(), { title:
|
|
485
|
+
const { t: r } = $(), { title: l } = o || {}, { fontColor: a, inputsColor: c } = T((u) => u);
|
|
485
486
|
return /* @__PURE__ */ p(
|
|
486
487
|
"div",
|
|
487
488
|
{
|
|
@@ -498,12 +499,12 @@ const Z2 = "_checkboxContainer_1nxra_2", H2 = {
|
|
|
498
499
|
value: t,
|
|
499
500
|
readOnly: !0,
|
|
500
501
|
style: {
|
|
501
|
-
border: `1.5px solid ${t ? c :
|
|
502
|
+
border: `1.5px solid ${t ? c : a}`,
|
|
502
503
|
backgroundColor: t ? c : "white"
|
|
503
504
|
}
|
|
504
505
|
}
|
|
505
506
|
),
|
|
506
|
-
/* @__PURE__ */ i("span", { className: "checkmark", children: r(
|
|
507
|
+
/* @__PURE__ */ i("span", { className: "checkmark", children: r(l) })
|
|
507
508
|
]
|
|
508
509
|
}
|
|
509
510
|
);
|
|
@@ -559,18 +560,18 @@ let Pe = function(n) {
|
|
|
559
560
|
t.onEnd();
|
|
560
561
|
}, t.onMouseUp = () => {
|
|
561
562
|
t.onEnd(t.getMouseEventMap());
|
|
562
|
-
}, t.onTouchEnd = (
|
|
563
|
-
|
|
563
|
+
}, t.onTouchEnd = (a) => {
|
|
564
|
+
a.preventDefault(), t.onEnd(t.getTouchEventMap());
|
|
564
565
|
}, t.onBlur = () => {
|
|
565
566
|
t.setState({ index: -1 }, t.onEnd(t.getKeyDownEventMap()));
|
|
566
|
-
}, t.onMouseMove = (
|
|
567
|
+
}, t.onMouseMove = (a) => {
|
|
567
568
|
t.setState({ pending: !0 });
|
|
568
|
-
const c = t.getMousePosition(
|
|
569
|
+
const c = t.getMousePosition(a), u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
|
|
569
570
|
t.move(m);
|
|
570
|
-
}, t.onTouchMove = (
|
|
571
|
-
if (
|
|
571
|
+
}, t.onTouchMove = (a) => {
|
|
572
|
+
if (a.touches.length > 1) return;
|
|
572
573
|
t.setState({ pending: !0 });
|
|
573
|
-
const c = t.getTouchPosition(
|
|
574
|
+
const c = t.getTouchPosition(a);
|
|
574
575
|
if (t.isScrolling === void 0) {
|
|
575
576
|
const h = c[0] - t.startPosition[0], f = c[1] - t.startPosition[1];
|
|
576
577
|
t.isScrolling = Math.abs(f) > Math.abs(h);
|
|
@@ -578,80 +579,80 @@ let Pe = function(n) {
|
|
|
578
579
|
if (t.isScrolling) return void t.setState({ index: -1 });
|
|
579
580
|
const u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
|
|
580
581
|
t.move(m);
|
|
581
|
-
}, t.onKeyDown = (
|
|
582
|
-
if (!(
|
|
582
|
+
}, t.onKeyDown = (a) => {
|
|
583
|
+
if (!(a.ctrlKey || a.shiftKey || a.altKey || a.metaKey)) switch (t.setState({ pending: !0 }), a.key) {
|
|
583
584
|
case "ArrowLeft":
|
|
584
585
|
case "ArrowDown":
|
|
585
586
|
case "Left":
|
|
586
587
|
case "Down":
|
|
587
|
-
|
|
588
|
+
a.preventDefault(), t.moveDownByStep();
|
|
588
589
|
break;
|
|
589
590
|
case "ArrowRight":
|
|
590
591
|
case "ArrowUp":
|
|
591
592
|
case "Right":
|
|
592
593
|
case "Up":
|
|
593
|
-
|
|
594
|
+
a.preventDefault(), t.moveUpByStep();
|
|
594
595
|
break;
|
|
595
596
|
case "Home":
|
|
596
|
-
|
|
597
|
+
a.preventDefault(), t.move(t.props.min);
|
|
597
598
|
break;
|
|
598
599
|
case "End":
|
|
599
|
-
|
|
600
|
+
a.preventDefault(), t.move(t.props.max);
|
|
600
601
|
break;
|
|
601
602
|
case "PageDown":
|
|
602
|
-
|
|
603
|
+
a.preventDefault(), t.moveDownByStep(t.props.pageFn(t.props.step));
|
|
603
604
|
break;
|
|
604
605
|
case "PageUp":
|
|
605
|
-
|
|
606
|
+
a.preventDefault(), t.moveUpByStep(t.props.pageFn(t.props.step));
|
|
606
607
|
}
|
|
607
|
-
}, t.onSliderMouseDown = (
|
|
608
|
-
if (!t.props.disabled &&
|
|
608
|
+
}, t.onSliderMouseDown = (a) => {
|
|
609
|
+
if (!t.props.disabled && a.button !== 2) {
|
|
609
610
|
if (t.setState({ pending: !0 }), !t.props.snapDragDisabled) {
|
|
610
|
-
const c = t.getMousePosition(
|
|
611
|
+
const c = t.getMousePosition(a);
|
|
611
612
|
t.forceValueFromPosition(c[0], (u) => {
|
|
612
613
|
t.start(u, c[0]), Se(t.getMouseEventMap());
|
|
613
614
|
});
|
|
614
615
|
}
|
|
615
|
-
Fe(
|
|
616
|
+
Fe(a);
|
|
616
617
|
}
|
|
617
|
-
}, t.onSliderClick = (
|
|
618
|
+
}, t.onSliderClick = (a) => {
|
|
618
619
|
if (!t.props.disabled && t.props.onSliderClick && !t.hasMoved) {
|
|
619
|
-
const c = t.getMousePosition(
|
|
620
|
+
const c = t.getMousePosition(a), u = J(t.calcValue(t.calcOffsetFromPosition(c[0])), t.props);
|
|
620
621
|
t.props.onSliderClick(u);
|
|
621
622
|
}
|
|
622
|
-
}, t.createOnKeyDown = (
|
|
623
|
-
t.props.disabled || (t.start(
|
|
624
|
-
}, t.createOnMouseDown = (
|
|
623
|
+
}, t.createOnKeyDown = (a) => (c) => {
|
|
624
|
+
t.props.disabled || (t.start(a), Se(t.getKeyDownEventMap()), Fe(c));
|
|
625
|
+
}, t.createOnMouseDown = (a) => (c) => {
|
|
625
626
|
if (t.props.disabled || c.button === 2) return;
|
|
626
627
|
t.setState({ pending: !0 });
|
|
627
628
|
const u = t.getMousePosition(c);
|
|
628
|
-
t.start(
|
|
629
|
-
}, t.createOnTouchStart = (
|
|
629
|
+
t.start(a, u[0]), Se(t.getMouseEventMap()), Fe(c);
|
|
630
|
+
}, t.createOnTouchStart = (a) => (c) => {
|
|
630
631
|
if (t.props.disabled || c.touches.length > 1) return;
|
|
631
632
|
t.setState({ pending: !0 });
|
|
632
633
|
const u = t.getTouchPosition(c);
|
|
633
|
-
t.startPosition = u, t.isScrolling = void 0, t.start(
|
|
634
|
+
t.startPosition = u, t.isScrolling = void 0, t.start(a, u[0]), Se(t.getTouchEventMap()), function(m) {
|
|
634
635
|
m.stopPropagation && m.stopPropagation();
|
|
635
636
|
}(c);
|
|
636
637
|
}, t.handleResize = () => {
|
|
637
|
-
const
|
|
638
|
+
const a = window.setTimeout(() => {
|
|
638
639
|
t.pendingResizeTimeouts.shift(), t.resize();
|
|
639
640
|
}, 0);
|
|
640
|
-
t.pendingResizeTimeouts.push(
|
|
641
|
-
}, t.renderThumb = (
|
|
641
|
+
t.pendingResizeTimeouts.push(a);
|
|
642
|
+
}, t.renderThumb = (a, c) => {
|
|
642
643
|
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), m = { ref: (f) => {
|
|
643
644
|
t["thumb" + c] = f;
|
|
644
|
-
}, key: t.props.thumbClassName + "-" + c, className: u, style:
|
|
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 }, h = { index: c, value: Ne(t.state.value), valueNow: t.state.value[c] };
|
|
645
646
|
return t.props.ariaValuetext && (m["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(h)), t.props.renderThumb(m, h);
|
|
646
|
-
}, t.renderTrack = (
|
|
647
|
-
const m = { key: t.props.trackClassName + "-" +
|
|
647
|
+
}, t.renderTrack = (a, c, u) => {
|
|
648
|
+
const m = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(c, t.state.upperBound - u) }, h = { index: a, value: Ne(t.state.value) };
|
|
648
649
|
return t.props.renderTrack(m, h);
|
|
649
650
|
};
|
|
650
651
|
let r = Ve(o.value);
|
|
651
652
|
r.length || (r = Ve(o.defaultValue)), t.pendingResizeTimeouts = [];
|
|
652
|
-
const
|
|
653
|
-
for (let
|
|
654
|
-
return t.resizeObserver = null, t.resizeElementRef = D.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: r, zIndices:
|
|
653
|
+
const l = [];
|
|
654
|
+
for (let a = 0; a < r.length; a += 1) r[a] = J(r[a], o), l.push(a);
|
|
655
|
+
return t.resizeObserver = null, t.resizeElementRef = D.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: r, zIndices: l }, t;
|
|
655
656
|
}
|
|
656
657
|
K2(d, n);
|
|
657
658
|
var s = d.prototype;
|
|
@@ -659,7 +660,7 @@ let Pe = function(n) {
|
|
|
659
660
|
typeof window < "u" && (this.resizeObserver = new ResizeObserver(this.handleResize), this.resizeObserver.observe(this.resizeElementRef.current), this.resize());
|
|
660
661
|
}, d.getDerivedStateFromProps = function(o, t) {
|
|
661
662
|
const r = Ve(o.value);
|
|
662
|
-
return r.length ? t.pending ? null : { value: r.map((
|
|
663
|
+
return r.length ? t.pending ? null : { value: r.map((l) => J(l, o)) } : null;
|
|
663
664
|
}, s.componentDidUpdate = function() {
|
|
664
665
|
this.state.upperBound === 0 && this.resize();
|
|
665
666
|
}, s.componentWillUnmount = function() {
|
|
@@ -674,9 +675,9 @@ let Pe = function(n) {
|
|
|
674
675
|
return Ne(this.state.value);
|
|
675
676
|
}, s.getClosestIndex = function(o) {
|
|
676
677
|
let t = Number.MAX_VALUE, r = -1;
|
|
677
|
-
const { value:
|
|
678
|
-
for (let c = 0; c <
|
|
679
|
-
const u = this.calcOffset(
|
|
678
|
+
const { value: l } = this.state, a = l.length;
|
|
679
|
+
for (let c = 0; c < a; c += 1) {
|
|
680
|
+
const u = this.calcOffset(l[c]), m = Math.abs(o - u);
|
|
680
681
|
m < t && (t = m, r = c);
|
|
681
682
|
}
|
|
682
683
|
return r;
|
|
@@ -700,7 +701,7 @@ let Pe = function(n) {
|
|
|
700
701
|
}, s.resize = function() {
|
|
701
702
|
const { slider: o, thumb0: t } = this;
|
|
702
703
|
if (!o || !t) return;
|
|
703
|
-
const r = this.sizeKey(),
|
|
704
|
+
const r = this.sizeKey(), l = o.getBoundingClientRect(), a = o[r], c = l[this.posMaxKey()], u = l[this.posMinKey()], m = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], h = a - m, f = Math.abs(c - u);
|
|
704
705
|
this.state.upperBound === h && this.state.sliderLength === f && this.state.thumbSize === m || this.setState({ upperBound: h, sliderLength: f, thumbSize: m });
|
|
705
706
|
}, s.calcOffset = function(o) {
|
|
706
707
|
const t = this.props.max - this.props.min;
|
|
@@ -708,15 +709,15 @@ let Pe = function(n) {
|
|
|
708
709
|
}, s.calcValue = function(o) {
|
|
709
710
|
return o / this.state.upperBound * (this.props.max - this.props.min) + this.props.min;
|
|
710
711
|
}, s.calcOffsetFromPosition = function(o) {
|
|
711
|
-
const { slider: t } = this, r = t.getBoundingClientRect(),
|
|
712
|
-
let c = o - (window["page" + this.axisKey() + "Offset"] + (this.props.invert ?
|
|
712
|
+
const { slider: t } = this, r = t.getBoundingClientRect(), l = r[this.posMaxKey()], a = r[this.posMinKey()];
|
|
713
|
+
let c = o - (window["page" + this.axisKey() + "Offset"] + (this.props.invert ? l : a));
|
|
713
714
|
return this.props.invert && (c = this.state.sliderLength - c), c -= this.state.thumbSize / 2, c;
|
|
714
715
|
}, s.forceValueFromPosition = function(o, t) {
|
|
715
|
-
const r = this.calcOffsetFromPosition(o),
|
|
716
|
-
c[
|
|
716
|
+
const r = this.calcOffsetFromPosition(o), l = this.getClosestIndex(r), a = J(this.calcValue(r), this.props), c = this.state.value.slice();
|
|
717
|
+
c[l] = a;
|
|
717
718
|
for (let u = 0; u < c.length - 1; u += 1) if (c[u + 1] - c[u] < this.props.minDistance) return;
|
|
718
719
|
this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value: c }, () => {
|
|
719
|
-
t(
|
|
720
|
+
t(l), this.fireChangeEvent("onChange");
|
|
720
721
|
});
|
|
721
722
|
}, s.clearPendingResizeTimeouts = function() {
|
|
722
723
|
do {
|
|
@@ -726,8 +727,8 @@ let Pe = function(n) {
|
|
|
726
727
|
}, s.start = function(o, t) {
|
|
727
728
|
const r = this["thumb" + o];
|
|
728
729
|
r && r.focus();
|
|
729
|
-
const { zIndices:
|
|
730
|
-
|
|
730
|
+
const { zIndices: l } = this.state;
|
|
731
|
+
l.splice(l.indexOf(o), 1), l.push(o), this.setState((a) => ({ startValue: a.value[o], startPosition: t !== void 0 ? t : a.startPosition, index: o, zIndices: l }));
|
|
731
732
|
}, s.moveUpByStep = function(o) {
|
|
732
733
|
o === void 0 && (o = this.props.step);
|
|
733
734
|
const t = this.state.value[this.state.index], r = J(this.props.invert && this.props.orientation === "horizontal" ? t - o : t + o, this.props);
|
|
@@ -737,8 +738,8 @@ let Pe = function(n) {
|
|
|
737
738
|
const t = this.state.value[this.state.index], r = J(this.props.invert && this.props.orientation === "horizontal" ? t + o : t - o, this.props);
|
|
738
739
|
this.move(Math.max(r, this.props.min));
|
|
739
740
|
}, s.move = function(o) {
|
|
740
|
-
const t = this.state.value.slice(), { index: r } = this.state, { length:
|
|
741
|
-
if (o ===
|
|
741
|
+
const t = this.state.value.slice(), { index: r } = this.state, { length: l } = t, a = t[r];
|
|
742
|
+
if (o === a) return;
|
|
742
743
|
this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
|
|
743
744
|
const { pearling: c, max: u, min: m, minDistance: h } = this.props;
|
|
744
745
|
if (!c) {
|
|
@@ -746,27 +747,27 @@ let Pe = function(n) {
|
|
|
746
747
|
const f = t[r - 1];
|
|
747
748
|
o < f + h && (o = f + h);
|
|
748
749
|
}
|
|
749
|
-
if (r <
|
|
750
|
+
if (r < l - 1) {
|
|
750
751
|
const f = t[r + 1];
|
|
751
752
|
o > f - h && (o = f - h);
|
|
752
753
|
}
|
|
753
754
|
}
|
|
754
|
-
t[r] = o, c &&
|
|
755
|
+
t[r] = o, c && l > 1 && (o > a ? (this.pushSucceeding(t, h, r), function(f, b, v, _) {
|
|
755
756
|
for (let g = 0; g < f; g += 1) {
|
|
756
757
|
const C = _ - g * v;
|
|
757
758
|
b[f - 1 - g] > C && (b[f - 1 - g] = C);
|
|
758
759
|
}
|
|
759
|
-
}(
|
|
760
|
+
}(l, t, h, u)) : o < a && (this.pushPreceding(t, h, r), function(f, b, v, _) {
|
|
760
761
|
for (let g = 0; g < f; g += 1) {
|
|
761
762
|
const C = _ + g * v;
|
|
762
763
|
b[g] < C && (b[g] = C);
|
|
763
764
|
}
|
|
764
|
-
}(
|
|
765
|
+
}(l, t, h, m))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
|
|
765
766
|
}, s.pushSucceeding = function(o, t, r) {
|
|
766
|
-
let
|
|
767
|
-
for (
|
|
767
|
+
let l, a;
|
|
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);
|
|
768
769
|
}, s.pushPreceding = function(o, t, r) {
|
|
769
|
-
for (let
|
|
770
|
+
for (let 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);
|
|
770
771
|
}, s.axisKey = function() {
|
|
771
772
|
return this.props.orientation === "vertical" ? "Y" : "X";
|
|
772
773
|
}, s.orthogonalAxisKey = function() {
|
|
@@ -790,37 +791,37 @@ let Pe = function(n) {
|
|
|
790
791
|
return (t = { position: "absolute" })[this.posMinKey()] = o, t;
|
|
791
792
|
}, s.renderThumbs = function(o) {
|
|
792
793
|
const { length: t } = o, r = [];
|
|
793
|
-
for (let
|
|
794
|
-
const
|
|
795
|
-
for (let
|
|
796
|
-
return
|
|
794
|
+
for (let a = 0; a < t; a += 1) r[a] = this.buildThumbStyle(o[a], a);
|
|
795
|
+
const l = [];
|
|
796
|
+
for (let a = 0; a < t; a += 1) l[a] = this.renderThumb(r[a], a);
|
|
797
|
+
return l;
|
|
797
798
|
}, s.renderTracks = function(o) {
|
|
798
799
|
const t = [], r = o.length - 1;
|
|
799
800
|
t.push(this.renderTrack(0, 0, o[0]));
|
|
800
|
-
for (let
|
|
801
|
+
for (let l = 0; l < r; l += 1) t.push(this.renderTrack(l + 1, o[l], o[l + 1]));
|
|
801
802
|
return t.push(this.renderTrack(r + 1, o[r], this.state.upperBound)), t;
|
|
802
803
|
}, s.renderMarks = function() {
|
|
803
804
|
let { marks: o } = this.props;
|
|
804
805
|
const t = this.props.max - this.props.min + 1;
|
|
805
|
-
return typeof o == "boolean" ? o = Array.from({ length: t }).map((r,
|
|
806
|
-
const
|
|
807
|
-
return this.props.renderMark(
|
|
806
|
+
return typeof o == "boolean" ? o = Array.from({ length: t }).map((r, l) => l) : typeof o == "number" && (o = Array.from({ length: t }).map((r, l) => l).filter((r) => r % o == 0)), o.map(parseFloat).sort((r, l) => r - l).map((r) => {
|
|
807
|
+
const l = this.calcOffset(r), a = { key: r, className: this.props.markClassName, style: this.buildMarkStyle(l) };
|
|
808
|
+
return this.props.renderMark(a);
|
|
808
809
|
});
|
|
809
810
|
}, s.render = function() {
|
|
810
811
|
const o = [], { value: t } = this.state, r = t.length;
|
|
811
812
|
for (let u = 0; u < r; u += 1) o[u] = this.calcOffset(t[u], u);
|
|
812
|
-
const
|
|
813
|
+
const l = this.props.withTracks ? this.renderTracks(o) : null, a = this.renderThumbs(o), c = this.props.marks ? this.renderMarks() : null;
|
|
813
814
|
return D.createElement("div", { ref: (u) => {
|
|
814
815
|
this.slider = u, this.resizeElementRef.current = u;
|
|
815
|
-
}, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick },
|
|
816
|
+
}, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, l, a, c);
|
|
816
817
|
}, d;
|
|
817
818
|
}(D.Component);
|
|
818
819
|
Pe.displayName = "ReactSlider", Pe.defaultProps = { min: 0, max: 100, step: 1, pageFn: (n) => 10 * n, minDistance: 0, defaultValue: 0, orientation: "horizontal", className: "slider", thumbClassName: "thumb", thumbActiveClassName: "active", trackClassName: "track", markClassName: "mark", withTracks: !0, pearling: !1, disabled: !1, snapDragDisabled: !1, invert: !1, marks: [], renderThumb: (n) => D.createElement("div", n), renderTrack: (n) => D.createElement("div", n), renderMark: (n) => D.createElement("span", n) };
|
|
819
820
|
var je = Pe;
|
|
820
|
-
const U2 = "_container_4u41i_2",
|
|
821
|
+
const U2 = "_container_4u41i_2", W2 = "_unitLabel_4u41i_8", G2 = "_slider_4u41i_11", Y2 = "_thumb_4u41i_17", Q2 = "_track_4u41i_26", X2 = "_labels_4u41i_32", ae = {
|
|
821
822
|
container: U2,
|
|
822
|
-
unitLabel:
|
|
823
|
-
slider:
|
|
823
|
+
unitLabel: W2,
|
|
824
|
+
slider: G2,
|
|
824
825
|
thumb: Y2,
|
|
825
826
|
track: Q2,
|
|
826
827
|
labels: X2
|
|
@@ -831,20 +832,20 @@ const U2 = "_container_4u41i_2", G2 = "_unitLabel_4u41i_8", W2 = "_slider_4u41i_
|
|
|
831
832
|
onChange: o,
|
|
832
833
|
width: t = 300,
|
|
833
834
|
unit: r,
|
|
834
|
-
fontColor:
|
|
835
|
-
defaultValue:
|
|
835
|
+
fontColor: l = "#605B56",
|
|
836
|
+
defaultValue: a,
|
|
836
837
|
isDate: c
|
|
837
838
|
}) => {
|
|
838
839
|
const { t: u } = $(), m = c ? new Date(n).getTime() : null, h = c ? new Date(d).getTime() : null, [f, b] = V(c ? [m, h] : [n, d]), v = (_) => {
|
|
839
840
|
b(_), o == null || o({ min: _[0], max: _[1] });
|
|
840
841
|
};
|
|
841
842
|
return F(() => {
|
|
842
|
-
|
|
843
|
-
}, [
|
|
843
|
+
a || b(c ? [m, h] : [n, d]);
|
|
844
|
+
}, [a, c]), /* @__PURE__ */ p(
|
|
844
845
|
"div",
|
|
845
846
|
{
|
|
846
847
|
className: ae.container,
|
|
847
|
-
style: { width: `${t}px`, color: `${
|
|
848
|
+
style: { width: `${t}px`, color: `${l}` },
|
|
848
849
|
children: [
|
|
849
850
|
/* @__PURE__ */ i("div", { className: ae.unitLabel, children: /* @__PURE__ */ i("span", { children: u(r) }) }),
|
|
850
851
|
/* @__PURE__ */ i(
|
|
@@ -904,8 +905,8 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
904
905
|
const [s, o] = V(), {
|
|
905
906
|
type: t,
|
|
906
907
|
name: r,
|
|
907
|
-
values:
|
|
908
|
-
minValue:
|
|
908
|
+
values: l,
|
|
909
|
+
minValue: a,
|
|
909
910
|
maxValue: c,
|
|
910
911
|
unit: u,
|
|
911
912
|
step: m,
|
|
@@ -927,14 +928,14 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
927
928
|
const { min: S, max: L, valueClicked: N, allValues: B } = k || {}, { code: O, type: q, source: M } = n || {}, H = v ? "abs" : b ? "cat" : "both";
|
|
928
929
|
let z = O[0];
|
|
929
930
|
q == "both" && (z = H == "cat" ? O[1] : O[0]), H == "cat" ? T.setState((Q) => {
|
|
930
|
-
let
|
|
931
|
+
let W = Q.tematicalFiltersSelected.find(
|
|
931
932
|
(E) => E.code === z
|
|
932
933
|
);
|
|
933
|
-
if (
|
|
934
|
-
let E = [
|
|
935
|
-
return
|
|
934
|
+
if (W) {
|
|
935
|
+
let E = [W.values];
|
|
936
|
+
return W.values.includes(N) ? E = W.values.filter(
|
|
936
937
|
(j) => j !== N
|
|
937
|
-
) : E = [...
|
|
938
|
+
) : E = [...W.values, N], E.length == B.length ? {
|
|
938
939
|
tematicalFiltersSelected: Q.tematicalFiltersSelected.filter(
|
|
939
940
|
(j) => j.code !== z
|
|
940
941
|
)
|
|
@@ -960,7 +961,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
960
961
|
};
|
|
961
962
|
}
|
|
962
963
|
}) : H == "abs" && T.setState((Q) => {
|
|
963
|
-
let
|
|
964
|
+
let W = Q.tematicalFiltersSelected.find(
|
|
964
965
|
(E) => E.code === z
|
|
965
966
|
);
|
|
966
967
|
if (S == n.minValue && L == n.maxValue)
|
|
@@ -969,8 +970,8 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
969
970
|
(E) => E.code !== z
|
|
970
971
|
)
|
|
971
972
|
};
|
|
972
|
-
if (
|
|
973
|
-
let E = { ...
|
|
973
|
+
if (W) {
|
|
974
|
+
let E = { ...W, min: S, max: L, type: H, isDate: f };
|
|
974
975
|
return {
|
|
975
976
|
tematicalFiltersSelected: Q.tematicalFiltersSelected.map(
|
|
976
977
|
(j) => j.code === z ? E : j
|
|
@@ -1068,12 +1069,12 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
1068
1069
|
]
|
|
1069
1070
|
}
|
|
1070
1071
|
),
|
|
1071
|
-
b && /* @__PURE__ */ i("div", { className: $e.checkboxContainer, children:
|
|
1072
|
+
b && /* @__PURE__ */ i("div", { className: $e.checkboxContainer, children: l.map((k, S) => {
|
|
1072
1073
|
var L;
|
|
1073
1074
|
return /* @__PURE__ */ i(
|
|
1074
1075
|
ft,
|
|
1075
1076
|
{
|
|
1076
|
-
onClick: () => x({ valueClicked: S, allValues:
|
|
1077
|
+
onClick: () => x({ valueClicked: S, allValues: l }),
|
|
1077
1078
|
indicator: k,
|
|
1078
1079
|
value: ((L = w[n.code[t == "both" ? 1 : 0]]) == null ? void 0 : L.has(S)) || !w[n.code[t == "both" ? 1 : 0]]
|
|
1079
1080
|
},
|
|
@@ -1084,7 +1085,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
1084
1085
|
bt,
|
|
1085
1086
|
{
|
|
1086
1087
|
onChange: x,
|
|
1087
|
-
min:
|
|
1088
|
+
min: a,
|
|
1088
1089
|
max: c,
|
|
1089
1090
|
unit: u,
|
|
1090
1091
|
defaultValue: w[n.code[0]] ? w[n.code[0]] : "",
|
|
@@ -1117,15 +1118,15 @@ const yt = ({
|
|
|
1117
1118
|
activeColor: s
|
|
1118
1119
|
//onChangeBothType,
|
|
1119
1120
|
}) => {
|
|
1120
|
-
const { activeSubcategory: o } = T((
|
|
1121
|
+
const { activeSubcategory: o } = T((l) => l), { name: t, indicators: r } = n || {};
|
|
1121
1122
|
return /* @__PURE__ */ i(
|
|
1122
1123
|
re,
|
|
1123
1124
|
{
|
|
1124
1125
|
title: t,
|
|
1125
1126
|
isOpen: o == `id${t}`,
|
|
1126
1127
|
onClick: () => {
|
|
1127
|
-
T.setState((
|
|
1128
|
-
activeSubcategory:
|
|
1128
|
+
T.setState((l) => ({
|
|
1129
|
+
activeSubcategory: l.activeSubcategory === `id${t}` ? "" : `id${t}`
|
|
1129
1130
|
}));
|
|
1130
1131
|
},
|
|
1131
1132
|
titleFontStyles: { fontSize: 16, fontWeight: 400 },
|
|
@@ -1134,14 +1135,14 @@ const yt = ({
|
|
|
1134
1135
|
height: 48,
|
|
1135
1136
|
color: d,
|
|
1136
1137
|
activeColor: s,
|
|
1137
|
-
children: r == null ? void 0 : r.map((
|
|
1138
|
+
children: r == null ? void 0 : r.map((l, a) => /* @__PURE__ */ i(
|
|
1138
1139
|
Ue,
|
|
1139
1140
|
{
|
|
1140
|
-
indicator:
|
|
1141
|
+
indicator: l,
|
|
1141
1142
|
fontColor: d,
|
|
1142
1143
|
activeColor: s
|
|
1143
1144
|
},
|
|
1144
|
-
`indicatorSub-${
|
|
1145
|
+
`indicatorSub-${a}`
|
|
1145
1146
|
))
|
|
1146
1147
|
}
|
|
1147
1148
|
);
|
|
@@ -1164,12 +1165,12 @@ const _t = ({
|
|
|
1164
1165
|
// onChangeBothType,
|
|
1165
1166
|
activeColor: d
|
|
1166
1167
|
}) => {
|
|
1167
|
-
const { name: s, subcategories: o, indicators: t } = n || {}, { activeCategory: r, fontColor:
|
|
1168
|
+
const { name: s, subcategories: o, indicators: t } = n || {}, { activeCategory: r, fontColor: l } = T((a) => a);
|
|
1168
1169
|
return n && /* @__PURE__ */ i(
|
|
1169
1170
|
re,
|
|
1170
1171
|
{
|
|
1171
1172
|
onClick: () => {
|
|
1172
|
-
T.setState((
|
|
1173
|
+
T.setState((a) => ({
|
|
1173
1174
|
activeCategory: r === `id${s}` ? "" : `id${s}`
|
|
1174
1175
|
}));
|
|
1175
1176
|
},
|
|
@@ -1177,21 +1178,21 @@ const _t = ({
|
|
|
1177
1178
|
isOpen: r === `id${s}`,
|
|
1178
1179
|
titleFontStyles: { fontSize: 18, fontWeight: "bold" },
|
|
1179
1180
|
showBottomBar: !1,
|
|
1180
|
-
color:
|
|
1181
|
+
color: l,
|
|
1181
1182
|
activeColor: d,
|
|
1182
|
-
children: o ? o.map((
|
|
1183
|
+
children: o ? o.map((a, c) => /* @__PURE__ */ i(
|
|
1183
1184
|
yt,
|
|
1184
1185
|
{
|
|
1185
|
-
subcategory:
|
|
1186
|
-
fontColor:
|
|
1186
|
+
subcategory: a,
|
|
1187
|
+
fontColor: l,
|
|
1187
1188
|
activeColor: d
|
|
1188
1189
|
},
|
|
1189
1190
|
`subcategory-${c}`
|
|
1190
|
-
)) : t && t.map((
|
|
1191
|
+
)) : t && t.map((a, c) => /* @__PURE__ */ i(
|
|
1191
1192
|
Ue,
|
|
1192
1193
|
{
|
|
1193
|
-
indicator:
|
|
1194
|
-
fontColor:
|
|
1194
|
+
indicator: a,
|
|
1195
|
+
fontColor: l,
|
|
1195
1196
|
activeColor: d
|
|
1196
1197
|
},
|
|
1197
1198
|
`indicator-${c}`
|
|
@@ -1217,20 +1218,20 @@ const vt = ({
|
|
|
1217
1218
|
inputsColor: t = "#605B56",
|
|
1218
1219
|
activeColor: r
|
|
1219
1220
|
}) => {
|
|
1220
|
-
const { tematicalFiltersSelected:
|
|
1221
|
+
const { tematicalFiltersSelected: l, activeFiltersType: a } = T((m) => m), { t: c } = $();
|
|
1221
1222
|
F(() => {
|
|
1222
|
-
}, [
|
|
1223
|
+
}, [l]), F(() => {
|
|
1223
1224
|
o && T.setState(() => ({ fontColor: o }));
|
|
1224
1225
|
}, [o]), F(() => {
|
|
1225
1226
|
t && T.setState(() => ({ inputsColor: t }));
|
|
1226
1227
|
}, [t]);
|
|
1227
1228
|
const u = () => {
|
|
1228
|
-
|
|
1229
|
+
a == "tematical" ? T.setState(() => ({ activeFiltersType: null })) : T.setState(() => ({ activeFiltersType: "tematical" }));
|
|
1229
1230
|
};
|
|
1230
1231
|
return /* @__PURE__ */ i(
|
|
1231
1232
|
re,
|
|
1232
1233
|
{
|
|
1233
|
-
isOpen:
|
|
1234
|
+
isOpen: a == "tematical",
|
|
1234
1235
|
title: s ? c(s) : "Tematical filters",
|
|
1235
1236
|
color: o,
|
|
1236
1237
|
activeColor: r,
|
|
@@ -1272,8 +1273,8 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1272
1273
|
indicators: o,
|
|
1273
1274
|
activeColor: t,
|
|
1274
1275
|
textColor: r,
|
|
1275
|
-
backgroundColor:
|
|
1276
|
-
onChangeAppliedFilters:
|
|
1276
|
+
backgroundColor: l,
|
|
1277
|
+
onChangeAppliedFilters: a,
|
|
1277
1278
|
saveAmbit: c,
|
|
1278
1279
|
namePlaceholder: u,
|
|
1279
1280
|
descPlaceholder: m,
|
|
@@ -1292,7 +1293,7 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1292
1293
|
}, [s]), F(() => {
|
|
1293
1294
|
h.includes("geographical") && x != b && T.setState({ geoLayers: b });
|
|
1294
1295
|
}, [b]), F(() => {
|
|
1295
|
-
|
|
1296
|
+
a(C);
|
|
1296
1297
|
}, [C]);
|
|
1297
1298
|
const O = () => {
|
|
1298
1299
|
w ? c({ name: w, description: S }) : B(!0);
|
|
@@ -1333,7 +1334,7 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1333
1334
|
title: g("applied_filters"),
|
|
1334
1335
|
isOpen: y == "applied",
|
|
1335
1336
|
textColor: r || "#fff",
|
|
1336
|
-
backgroundColor:
|
|
1337
|
+
backgroundColor: l || "#605B5680",
|
|
1337
1338
|
activeColor: t
|
|
1338
1339
|
}
|
|
1339
1340
|
),
|
|
@@ -1384,21 +1385,21 @@ const pn = "_barChartContainer_d2f1z_2", mn = {
|
|
|
1384
1385
|
gap: o = 23,
|
|
1385
1386
|
fontColor: t = "#605B56",
|
|
1386
1387
|
verticalPaddign: r = 10,
|
|
1387
|
-
horizontalPaddign:
|
|
1388
|
-
leftPadding:
|
|
1388
|
+
horizontalPaddign: l = 20,
|
|
1389
|
+
leftPadding: a = 200,
|
|
1389
1390
|
numberOfDivisions: c = 7,
|
|
1390
1391
|
maxValue: u = null
|
|
1391
1392
|
}) => {
|
|
1392
1393
|
const { t: m } = $(), { xScale: h, ticks: f, height: b } = me(() => {
|
|
1393
1394
|
if (n && n.length > 0) {
|
|
1394
|
-
const v = (n == null ? void 0 : n.length) * (s + o) + r * 2, _ = Ye.max(n, (y) => y.value) || 1, g = Ye.scaleLinear().domain([0, u || _]).range([0, d -
|
|
1395
|
+
const v = (n == null ? void 0 : n.length) * (s + o) + r * 2, _ = Ye.max(n, (y) => y.value) || 1, g = Ye.scaleLinear().domain([0, u || _]).range([0, d - a]), C = Array.from({ length: c + 1 }, (y, x) => u ? u / c * x : _ / c * x);
|
|
1395
1396
|
return {
|
|
1396
1397
|
xScale: g,
|
|
1397
1398
|
ticks: C,
|
|
1398
1399
|
height: v,
|
|
1399
1400
|
width: d,
|
|
1400
1401
|
verticalPaddign: r,
|
|
1401
|
-
horizontalPaddign:
|
|
1402
|
+
horizontalPaddign: l
|
|
1402
1403
|
};
|
|
1403
1404
|
} else
|
|
1404
1405
|
return { xScale: null, ticks: [], height: 0 };
|
|
@@ -1408,12 +1409,12 @@ const pn = "_barChartContainer_d2f1z_2", mn = {
|
|
|
1408
1409
|
c,
|
|
1409
1410
|
s,
|
|
1410
1411
|
o,
|
|
1411
|
-
|
|
1412
|
+
l,
|
|
1412
1413
|
r,
|
|
1413
1414
|
u
|
|
1414
1415
|
]);
|
|
1415
|
-
return /* @__PURE__ */ i("div", { className: mn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d +
|
|
1416
|
-
/* @__PURE__ */ i("g", { transform: `translate(${
|
|
1416
|
+
return /* @__PURE__ */ i("div", { className: mn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + l * 2, height: b, children: /* @__PURE__ */ p("g", { transform: `translate(0,${o})`, children: [
|
|
1417
|
+
/* @__PURE__ */ i("g", { transform: `translate(${a + l}, 0)`, children: f.map((v, _) => {
|
|
1417
1418
|
const g = h(v);
|
|
1418
1419
|
return /* @__PURE__ */ p("g", { transform: `translate(${g}, 0)`, children: [
|
|
1419
1420
|
/* @__PURE__ */ i(
|
|
@@ -1441,7 +1442,7 @@ const pn = "_barChartContainer_d2f1z_2", mn = {
|
|
|
1441
1442
|
return /* @__PURE__ */ p(
|
|
1442
1443
|
"g",
|
|
1443
1444
|
{
|
|
1444
|
-
transform: `translate(${
|
|
1445
|
+
transform: `translate(${a + l}, ${C})`,
|
|
1445
1446
|
children: [
|
|
1446
1447
|
/* @__PURE__ */ i(
|
|
1447
1448
|
"text",
|
|
@@ -1495,8 +1496,8 @@ const hn = "_graphicContainer_c9zrg_2", gn = "_titleContainer_c9zrg_14", et = {
|
|
|
1495
1496
|
borderColor: o = "#605B56",
|
|
1496
1497
|
title: t = "Graphic Title",
|
|
1497
1498
|
fontColor: r = "#605B56",
|
|
1498
|
-
maxValue:
|
|
1499
|
-
numberOfDivisions:
|
|
1499
|
+
maxValue: l = null,
|
|
1500
|
+
numberOfDivisions: a = 7,
|
|
1500
1501
|
leftPadding: c = 200
|
|
1501
1502
|
}) => {
|
|
1502
1503
|
const { t: u } = $();
|
|
@@ -1516,8 +1517,8 @@ const hn = "_graphicContainer_c9zrg_2", gn = "_titleContainer_c9zrg_14", et = {
|
|
|
1516
1517
|
data: n,
|
|
1517
1518
|
width: d,
|
|
1518
1519
|
fontColor: r,
|
|
1519
|
-
maxValue:
|
|
1520
|
-
numberOfDivisions:
|
|
1520
|
+
maxValue: l,
|
|
1521
|
+
numberOfDivisions: a,
|
|
1521
1522
|
leftPadding: c
|
|
1522
1523
|
}
|
|
1523
1524
|
)
|
|
@@ -1557,15 +1558,15 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1557
1558
|
optionContainer: Bn,
|
|
1558
1559
|
customRadious: Tn,
|
|
1559
1560
|
optionText: Ln
|
|
1560
|
-
},
|
|
1561
|
+
}, We = ({
|
|
1561
1562
|
indicator: n,
|
|
1562
1563
|
values: d = [],
|
|
1563
1564
|
activeColor: s,
|
|
1564
1565
|
defaultColor: o = "#92898A",
|
|
1565
1566
|
activeIndicator: t,
|
|
1566
1567
|
activeIndicatorType: r,
|
|
1567
|
-
onClickIndicator:
|
|
1568
|
-
multiple:
|
|
1568
|
+
onClickIndicator: l,
|
|
1569
|
+
multiple: a = !1,
|
|
1569
1570
|
onChangeType: c
|
|
1570
1571
|
}) => {
|
|
1571
1572
|
const { t: u } = $(), { name: m, type: h, disabled: f } = n;
|
|
@@ -1573,7 +1574,7 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1573
1574
|
const [b, v] = V(!1);
|
|
1574
1575
|
F(() => {
|
|
1575
1576
|
t && v(
|
|
1576
|
-
|
|
1577
|
+
a ? t.some(
|
|
1577
1578
|
(C) => C.name == String(m)
|
|
1578
1579
|
) : t.name == m
|
|
1579
1580
|
);
|
|
@@ -1658,7 +1659,7 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1658
1659
|
"div",
|
|
1659
1660
|
{
|
|
1660
1661
|
className: R.indicatorNameContainer,
|
|
1661
|
-
onClick: () => !f &&
|
|
1662
|
+
onClick: () => !f && l({ indicator: n }),
|
|
1662
1663
|
children: [
|
|
1663
1664
|
/* @__PURE__ */ i(
|
|
1664
1665
|
"div",
|
|
@@ -1669,7 +1670,7 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1669
1670
|
backgroundColor: b ? s : "transparent"
|
|
1670
1671
|
},
|
|
1671
1672
|
className: R.dot,
|
|
1672
|
-
children:
|
|
1673
|
+
children: a && /* @__PURE__ */ i("img", { src: b ? _n : tt, alt: "" })
|
|
1673
1674
|
}
|
|
1674
1675
|
),
|
|
1675
1676
|
/* @__PURE__ */ i(
|
|
@@ -1697,7 +1698,7 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1697
1698
|
(t == null ? void 0 : t.name) === m && h === "twoUnits" && /* @__PURE__ */ i("div", { children: g() })
|
|
1698
1699
|
] });
|
|
1699
1700
|
};
|
|
1700
|
-
|
|
1701
|
+
We.propTypes = {
|
|
1701
1702
|
indicator: e.shape({
|
|
1702
1703
|
name: e.string,
|
|
1703
1704
|
type: e.string
|
|
@@ -1719,8 +1720,8 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Dn = "_list_1dzsi_8", nt = {
|
|
|
1719
1720
|
activeColor: o,
|
|
1720
1721
|
activeSubCategory: t,
|
|
1721
1722
|
onClickSubCategory: r,
|
|
1722
|
-
id:
|
|
1723
|
-
activeIndicator:
|
|
1723
|
+
id: l,
|
|
1724
|
+
activeIndicator: a,
|
|
1724
1725
|
onClickIndicator: c,
|
|
1725
1726
|
multiple: u,
|
|
1726
1727
|
activeIndicatorType: m,
|
|
@@ -1728,8 +1729,8 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Dn = "_list_1dzsi_8", nt = {
|
|
|
1728
1729
|
}) => {
|
|
1729
1730
|
const { t: f } = $(), [b, v] = V(!1);
|
|
1730
1731
|
return F(() => {
|
|
1731
|
-
v(t ==
|
|
1732
|
-
}, [t,
|
|
1732
|
+
v(t == l);
|
|
1733
|
+
}, [t, l]), /* @__PURE__ */ p(
|
|
1733
1734
|
Ke.div,
|
|
1734
1735
|
{
|
|
1735
1736
|
className: nt.indicatorsSubCategory,
|
|
@@ -1737,7 +1738,7 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Dn = "_list_1dzsi_8", nt = {
|
|
|
1737
1738
|
animate: { height: b ? "auto" : "43px" },
|
|
1738
1739
|
transition: { duration: 0.4 },
|
|
1739
1740
|
children: [
|
|
1740
|
-
/* @__PURE__ */ i("button", { onClick: () => r(
|
|
1741
|
+
/* @__PURE__ */ i("button", { onClick: () => r(l), children: /* @__PURE__ */ p("h3", { style: { color: b ? o : s }, children: [
|
|
1741
1742
|
/* @__PURE__ */ i("span", { style: { color: b ? o : s }, children: b ? "-" : "+" }),
|
|
1742
1743
|
/* @__PURE__ */ i(
|
|
1743
1744
|
"span",
|
|
@@ -1748,12 +1749,12 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Dn = "_list_1dzsi_8", nt = {
|
|
|
1748
1749
|
)
|
|
1749
1750
|
] }) }),
|
|
1750
1751
|
d && /* @__PURE__ */ i("div", { className: nt.list, children: d == null ? void 0 : d.map((_, g) => /* @__PURE__ */ i(
|
|
1751
|
-
|
|
1752
|
+
We,
|
|
1752
1753
|
{
|
|
1753
1754
|
indicator: _,
|
|
1754
1755
|
defaultColor: s,
|
|
1755
1756
|
activeColor: o,
|
|
1756
|
-
activeIndicator:
|
|
1757
|
+
activeIndicator: a,
|
|
1757
1758
|
onClickIndicator: c,
|
|
1758
1759
|
multiple: u,
|
|
1759
1760
|
activeIndicatorType: m,
|
|
@@ -1784,8 +1785,8 @@ const kt = ({
|
|
|
1784
1785
|
defaultColor: o,
|
|
1785
1786
|
onClickCategory: t,
|
|
1786
1787
|
activeCategory: r,
|
|
1787
|
-
activeSubCategory:
|
|
1788
|
-
onClickSubCategory:
|
|
1788
|
+
activeSubCategory: l,
|
|
1789
|
+
onClickSubCategory: a,
|
|
1789
1790
|
activeIndicator: c,
|
|
1790
1791
|
onClickIndicator: u,
|
|
1791
1792
|
multiple: m,
|
|
@@ -1824,9 +1825,9 @@ const kt = ({
|
|
|
1824
1825
|
xt,
|
|
1825
1826
|
{
|
|
1826
1827
|
id: y,
|
|
1827
|
-
activeSubCategory:
|
|
1828
|
+
activeSubCategory: l,
|
|
1828
1829
|
subcName: C,
|
|
1829
|
-
onClickSubCategory:
|
|
1830
|
+
onClickSubCategory: a,
|
|
1830
1831
|
activeIndicator: c,
|
|
1831
1832
|
onClickIndicator: u,
|
|
1832
1833
|
multiple: m,
|
|
@@ -1839,7 +1840,7 @@ const kt = ({
|
|
|
1839
1840
|
`subcKey ${w}`
|
|
1840
1841
|
)
|
|
1841
1842
|
) : /* @__PURE__ */ i("div", { className: Ae.list, children: (g = n.indicators) == null ? void 0 : g.map((C, y) => /* @__PURE__ */ i(
|
|
1842
|
-
|
|
1843
|
+
We,
|
|
1843
1844
|
{
|
|
1844
1845
|
indicator: C,
|
|
1845
1846
|
values: C.type == "twoUnits" && C.values,
|
|
@@ -1885,8 +1886,8 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
|
|
|
1885
1886
|
// Si multiple es true, debe ser un array de strings, sino un string
|
|
1886
1887
|
defaultValue: r = null,
|
|
1887
1888
|
//si el indicador es tipo "both" cuando se cambia el tipo
|
|
1888
|
-
changeIndType:
|
|
1889
|
-
activeIndicatorType:
|
|
1889
|
+
changeIndType: l,
|
|
1890
|
+
activeIndicatorType: a
|
|
1890
1891
|
}) => {
|
|
1891
1892
|
const { t: c } = $(), [u, m] = V(), [h, f] = V(), [b, v] = V(), _ = (w) => {
|
|
1892
1893
|
m(u == w ? null : w);
|
|
@@ -1907,7 +1908,7 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
|
|
|
1907
1908
|
) ? k.filter(
|
|
1908
1909
|
(S) => S.name != String(w.name)
|
|
1909
1910
|
) : [...k, w]
|
|
1910
|
-
), w.type == "both" &&
|
|
1911
|
+
), w.type == "both" && l("cat");
|
|
1911
1912
|
}
|
|
1912
1913
|
};
|
|
1913
1914
|
F(() => {
|
|
@@ -1950,8 +1951,8 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
|
|
|
1950
1951
|
defaultColor: s,
|
|
1951
1952
|
multiple: t,
|
|
1952
1953
|
onChange: o,
|
|
1953
|
-
onChangeType:
|
|
1954
|
-
activeIndicatorType:
|
|
1954
|
+
onChangeType: l,
|
|
1955
|
+
activeIndicatorType: a
|
|
1955
1956
|
},
|
|
1956
1957
|
`categoryKey${k}`
|
|
1957
1958
|
))
|
|
@@ -1975,7 +1976,7 @@ const In = "_langSelector_o9enq_2", On = "_currentLang_o9enq_14", qn = "_arrow_o
|
|
|
1975
1976
|
prevImg: Rn,
|
|
1976
1977
|
langMenu: En
|
|
1977
1978
|
}, Pn = ({ langs: n, arrow: d, imgPrev: s }) => {
|
|
1978
|
-
const [o, t] = V(!1), { i18n: r } = $(),
|
|
1979
|
+
const [o, t] = V(!1), { i18n: r } = $(), l = n.find((c) => c.code == r.language), a = (c) => {
|
|
1979
1980
|
r.changeLanguage(c), t(!1);
|
|
1980
1981
|
};
|
|
1981
1982
|
return /* @__PURE__ */ p("div", { className: le.langSelector, children: [
|
|
@@ -1988,7 +1989,7 @@ const In = "_langSelector_o9enq_2", On = "_currentLang_o9enq_14", qn = "_arrow_o
|
|
|
1988
1989
|
},
|
|
1989
1990
|
children: [
|
|
1990
1991
|
s && /* @__PURE__ */ i("img", { className: le.prevImg, src: s }),
|
|
1991
|
-
(
|
|
1992
|
+
(l == null ? void 0 : l.titleSelected) || (l == null ? void 0 : l.title),
|
|
1992
1993
|
/* @__PURE__ */ i("img", { src: d, className: le.arrow })
|
|
1993
1994
|
]
|
|
1994
1995
|
}
|
|
@@ -1996,8 +1997,8 @@ const In = "_langSelector_o9enq_2", On = "_currentLang_o9enq_14", qn = "_arrow_o
|
|
|
1996
1997
|
o && /* @__PURE__ */ i("div", { className: le.langMenu, children: n.map((c) => /* @__PURE__ */ i(
|
|
1997
1998
|
"button",
|
|
1998
1999
|
{
|
|
1999
|
-
className: (
|
|
2000
|
-
onClick: () =>
|
|
2000
|
+
className: (l == null ? void 0 : l.code) == c.code ? le.active : "",
|
|
2001
|
+
onClick: () => a(c.code),
|
|
2001
2002
|
children: c.title
|
|
2002
2003
|
},
|
|
2003
2004
|
c.code
|
|
@@ -2018,15 +2019,15 @@ Pn.propTypes = {
|
|
|
2018
2019
|
arrow: e.object,
|
|
2019
2020
|
imgPrev: e.object
|
|
2020
2021
|
};
|
|
2021
|
-
const jn = "_legendContainer_qs4x9_3", zn = "_closeButton_qs4x9_31", Zn = "_titleContainer_qs4x9_59", Hn = "_infoContainer_qs4x9_65", Kn = "_titleLegendList_qs4x9_76", Un = "_legendListContainer_qs4x9_82",
|
|
2022
|
+
const jn = "_legendContainer_qs4x9_3", zn = "_closeButton_qs4x9_31", Zn = "_titleContainer_qs4x9_59", Hn = "_infoContainer_qs4x9_65", Kn = "_titleLegendList_qs4x9_76", Un = "_legendListContainer_qs4x9_82", Wn = "_gridContainer_qs4x9_82", Gn = "_elementLegendContainer_qs4x9_88", Yn = "_colorDot_qs4x9_94", Qn = "_absoluteValueContainer_qs4x9_100", Xn = "_absoluteValueColor_qs4x9_103", Jn = "_absoluteValueText_qs4x9_108", e0 = "_noDataContainer_qs4x9_120", t0 = "_noData_qs4x9_120", n0 = "_moreInfoContainer_qs4x9_141", I = {
|
|
2022
2023
|
legendContainer: jn,
|
|
2023
2024
|
closeButton: zn,
|
|
2024
2025
|
titleContainer: Zn,
|
|
2025
2026
|
infoContainer: Hn,
|
|
2026
2027
|
titleLegendList: Kn,
|
|
2027
2028
|
legendListContainer: Un,
|
|
2028
|
-
gridContainer:
|
|
2029
|
-
elementLegendContainer:
|
|
2029
|
+
gridContainer: Wn,
|
|
2030
|
+
elementLegendContainer: Gn,
|
|
2030
2031
|
colorDot: Yn,
|
|
2031
2032
|
absoluteValueContainer: Qn,
|
|
2032
2033
|
absoluteValueColor: Xn,
|
|
@@ -2052,9 +2053,9 @@ const jn = "_legendContainer_qs4x9_3", zn = "_closeButton_qs4x9_31", Zn = "_titl
|
|
|
2052
2053
|
absoluteValue: r,
|
|
2053
2054
|
//Function to be called when the button is clicked (optional).
|
|
2054
2055
|
//If this is null or undefined the button wont be displayed.
|
|
2055
|
-
onClickMoreInfo:
|
|
2056
|
+
onClickMoreInfo: l,
|
|
2056
2057
|
//If not passed it will read t("moreInformation")
|
|
2057
|
-
buttonTitle:
|
|
2058
|
+
buttonTitle: a,
|
|
2058
2059
|
onClickClose: c
|
|
2059
2060
|
}) => {
|
|
2060
2061
|
const { t: u } = $();
|
|
@@ -2130,7 +2131,7 @@ const jn = "_legendContainer_qs4x9_3", zn = "_closeButton_qs4x9_31", Zn = "_titl
|
|
|
2130
2131
|
/* @__PURE__ */ i("div", { className: I.absoluteValueText, children: /* @__PURE__ */ i("span", { children: u(r.noDataText) }) })
|
|
2131
2132
|
] })
|
|
2132
2133
|
] }),
|
|
2133
|
-
|
|
2134
|
+
l && /* @__PURE__ */ i("button", { className: I.moreInfoContainer, onClick: l, children: a || u("moreInformation") })
|
|
2134
2135
|
]
|
|
2135
2136
|
}
|
|
2136
2137
|
);
|
|
@@ -2185,8 +2186,8 @@ const l0 = ({
|
|
|
2185
2186
|
mapStyle: o,
|
|
2186
2187
|
firstSymbolLayer: t,
|
|
2187
2188
|
cssProps: r = "",
|
|
2188
|
-
onClick:
|
|
2189
|
-
interactiveLayers:
|
|
2189
|
+
onClick: l = "",
|
|
2190
|
+
interactiveLayers: a = [],
|
|
2190
2191
|
popUp: c = !1,
|
|
2191
2192
|
sources: u = [],
|
|
2192
2193
|
layers: m = []
|
|
@@ -2208,8 +2209,8 @@ const l0 = ({
|
|
|
2208
2209
|
maxZoom: d,
|
|
2209
2210
|
minZoom: s,
|
|
2210
2211
|
mapStyle: o,
|
|
2211
|
-
onClick:
|
|
2212
|
-
interactiveLayerIds:
|
|
2212
|
+
onClick: l,
|
|
2213
|
+
interactiveLayerIds: a,
|
|
2213
2214
|
children: [
|
|
2214
2215
|
u.length && u.map((_, g) => /* @__PURE__ */ i(
|
|
2215
2216
|
Et,
|
|
@@ -2313,8 +2314,8 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
|
|
|
2313
2314
|
mapStyle: o,
|
|
2314
2315
|
firstSymbolLayer: t,
|
|
2315
2316
|
cssProps: r = {},
|
|
2316
|
-
onClick:
|
|
2317
|
-
interactiveLayers:
|
|
2317
|
+
onClick: l = "",
|
|
2318
|
+
interactiveLayers: a = [],
|
|
2318
2319
|
sources: c = [],
|
|
2319
2320
|
layers: u = [],
|
|
2320
2321
|
popUpParams: m,
|
|
@@ -2345,8 +2346,8 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
|
|
|
2345
2346
|
maxZoom: d,
|
|
2346
2347
|
minZoom: s,
|
|
2347
2348
|
mapStyle: o,
|
|
2348
|
-
onClick:
|
|
2349
|
-
interactiveLayerIds:
|
|
2349
|
+
onClick: l,
|
|
2350
|
+
interactiveLayerIds: a,
|
|
2350
2351
|
children: [
|
|
2351
2352
|
c.length && c.map((_, g) => /* @__PURE__ */ i(
|
|
2352
2353
|
Kt,
|
|
@@ -2369,9 +2370,9 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
|
|
|
2369
2370
|
},
|
|
2370
2371
|
g
|
|
2371
2372
|
)),
|
|
2372
|
-
/* @__PURE__ */ i(
|
|
2373
|
+
/* @__PURE__ */ i(Wt, { position: "bottom-right", visualizePitch: !0 }),
|
|
2373
2374
|
m && /* @__PURE__ */ i(
|
|
2374
|
-
|
|
2375
|
+
Gt,
|
|
2375
2376
|
{
|
|
2376
2377
|
longitude: m.lng,
|
|
2377
2378
|
latitude: m.lat,
|
|
@@ -2440,10 +2441,11 @@ const g0 = "_sectionBar_1egwc_2", C0 = "_leftContent_1egwc_14", f0 = "_textConta
|
|
|
2440
2441
|
subtitle: s,
|
|
2441
2442
|
rightContent: o,
|
|
2442
2443
|
mainColor: t,
|
|
2443
|
-
width: r
|
|
2444
|
+
width: r,
|
|
2445
|
+
borderTop: l = !1
|
|
2444
2446
|
}) => {
|
|
2445
2447
|
const { t: a } = $();
|
|
2446
|
-
return /* @__PURE__ */ p("div", { className: te.sectionBar, style: { width: r && r }, children: [
|
|
2448
|
+
return /* @__PURE__ */ p("div", { className: te.sectionBar, style: { width: r && r, borderTop: l ? "1px solid #000" : "0px" }, children: [
|
|
2447
2449
|
/* @__PURE__ */ p("div", { className: te.leftContent, children: [
|
|
2448
2450
|
n && /* @__PURE__ */ i("img", { src: n, alt: "Icono", className: te.icon }),
|
|
2449
2451
|
/* @__PURE__ */ p("div", { className: te.textContainer, children: [
|
|
@@ -2465,8 +2467,9 @@ v0.propTypes = {
|
|
|
2465
2467
|
// elementos React que se renderizan en la derecha
|
|
2466
2468
|
mainColor: e.string,
|
|
2467
2469
|
// color del título (hex, rgb, etc.)
|
|
2468
|
-
width: e.oneOfType([e.string, e.number])
|
|
2470
|
+
width: e.oneOfType([e.string, e.number]),
|
|
2469
2471
|
// ancho de la barra
|
|
2472
|
+
borderTop: e.bool
|
|
2470
2473
|
};
|
|
2471
2474
|
const w0 = Yt({
|
|
2472
2475
|
name: "mapSlice",
|
|
@@ -2506,12 +2509,12 @@ const w0 = Yt({
|
|
|
2506
2509
|
lastYear: o = 2050,
|
|
2507
2510
|
zIndex: t = 10,
|
|
2508
2511
|
rightBarOpen: r = !1,
|
|
2509
|
-
onChange:
|
|
2510
|
-
console.log("year changed to ",
|
|
2512
|
+
onChange: l = (a) => {
|
|
2513
|
+
console.log("year changed to ", a);
|
|
2511
2514
|
}
|
|
2512
2515
|
}) => {
|
|
2513
|
-
const [
|
|
2514
|
-
c(y),
|
|
2516
|
+
const [a, c] = V(d), u = (C, y) => {
|
|
2517
|
+
c(y), l(y);
|
|
2515
2518
|
}, [m, h] = V(!1), f = () => {
|
|
2516
2519
|
h(!0);
|
|
2517
2520
|
}, b = () => {
|
|
@@ -2531,7 +2534,7 @@ const w0 = Yt({
|
|
|
2531
2534
|
}
|
|
2532
2535
|
}, [y]);
|
|
2533
2536
|
})(() => {
|
|
2534
|
-
m && (
|
|
2537
|
+
m && (a != 2050 ? (c(a + 1), l(a + 1)) : (c(2025), l(2025)));
|
|
2535
2538
|
}, 1e3);
|
|
2536
2539
|
const _ = Xt({
|
|
2537
2540
|
palette: {
|
|
@@ -2573,7 +2576,7 @@ const w0 = Yt({
|
|
|
2573
2576
|
Qt,
|
|
2574
2577
|
{
|
|
2575
2578
|
"aria-label": "TimeSlider",
|
|
2576
|
-
value:
|
|
2579
|
+
value: a,
|
|
2577
2580
|
valueLabelDisplay: "on",
|
|
2578
2581
|
step: 1,
|
|
2579
2582
|
marks: g,
|
|
@@ -2614,19 +2617,19 @@ const L0 = "_TopNavMenuContainer_12mp4_2", M0 = "_topNavOptions_12mp4_13", D0 =
|
|
|
2614
2617
|
}
|
|
2615
2618
|
}) => {
|
|
2616
2619
|
const { t: r } = $();
|
|
2617
|
-
return /* @__PURE__ */ i("div", { className: Ie.TopNavMenuContainer, style: { ...d }, children: n.map((
|
|
2620
|
+
return /* @__PURE__ */ i("div", { className: Ie.TopNavMenuContainer, style: { ...d }, children: n.map((l, a) => /* @__PURE__ */ i(
|
|
2618
2621
|
t2,
|
|
2619
2622
|
{
|
|
2620
|
-
to:
|
|
2623
|
+
to: l.url,
|
|
2621
2624
|
className: ({ isActive: c }) => `${Ie.topNavOptions} ${c ? Ie.active : ""} `,
|
|
2622
|
-
onClick: () => t(
|
|
2625
|
+
onClick: () => t(l.url),
|
|
2623
2626
|
style: ({ isActive: c }) => ({
|
|
2624
2627
|
color: o,
|
|
2625
2628
|
borderBottom: c ? `5px solid ${s}` : "5px solid transparent"
|
|
2626
2629
|
}),
|
|
2627
|
-
children: r(
|
|
2630
|
+
children: r(l.name)
|
|
2628
2631
|
},
|
|
2629
|
-
|
|
2632
|
+
a
|
|
2630
2633
|
)) });
|
|
2631
2634
|
};
|
|
2632
2635
|
F0.propTypes = {
|
|
@@ -2648,10 +2651,10 @@ const V0 = "_LogInButton_1vxj5_2", A0 = {
|
|
|
2648
2651
|
containerStyles: o,
|
|
2649
2652
|
userName: t = "",
|
|
2650
2653
|
isLoggedIn: r = !1,
|
|
2651
|
-
onClickLogIn:
|
|
2654
|
+
onClickLogIn: l = () => {
|
|
2652
2655
|
console.log("Login clicked");
|
|
2653
2656
|
},
|
|
2654
|
-
onClickLogOut:
|
|
2657
|
+
onClickLogOut: a = () => {
|
|
2655
2658
|
console.log("Logout clicked");
|
|
2656
2659
|
}
|
|
2657
2660
|
}) => {
|
|
@@ -2661,7 +2664,7 @@ const V0 = "_LogInButton_1vxj5_2", A0 = {
|
|
|
2661
2664
|
{
|
|
2662
2665
|
style: { ...o },
|
|
2663
2666
|
className: `${A0.LogInButton} link ${n}`,
|
|
2664
|
-
onClick: r ?
|
|
2667
|
+
onClick: r ? a : l,
|
|
2665
2668
|
children: r ? t || c(s) : c(d)
|
|
2666
2669
|
}
|
|
2667
2670
|
);
|
|
@@ -2683,12 +2686,12 @@ const O0 = "_elementSelector_1k3i4_2", q0 = "_header_1k3i4_14", R0 = "_nameDateC
|
|
|
2683
2686
|
buttonsContainer: j0,
|
|
2684
2687
|
elementListContainer: z0,
|
|
2685
2688
|
newElementButtonContainer: Z0
|
|
2686
|
-
}, H0 = "_listElement_1evjl_2", K0 = "_elementNameDate_1evjl_18", U0 = "_elementNameContainer_1evjl_28",
|
|
2689
|
+
}, H0 = "_listElement_1evjl_2", K0 = "_elementNameDate_1evjl_18", U0 = "_elementNameContainer_1evjl_28", W0 = "_elementName_1evjl_18", G0 = "_elementDate_1evjl_43", Y0 = "_elementButtons_1evjl_46", Q0 = "_moreInfoContainer_1evjl_69", X0 = "_moreInfo_1evjl_69", Z = {
|
|
2687
2690
|
listElement: H0,
|
|
2688
2691
|
elementNameDate: K0,
|
|
2689
2692
|
elementNameContainer: U0,
|
|
2690
|
-
elementName:
|
|
2691
|
-
elementDate:
|
|
2693
|
+
elementName: W0,
|
|
2694
|
+
elementDate: G0,
|
|
2692
2695
|
elementButtons: Y0,
|
|
2693
2696
|
break: "_break_1evjl_64",
|
|
2694
2697
|
moreInfoContainer: Q0,
|
|
@@ -2725,8 +2728,8 @@ const oi = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2725
2728
|
activeColor: o,
|
|
2726
2729
|
fontColor: t,
|
|
2727
2730
|
moreInfo: r,
|
|
2728
|
-
columns:
|
|
2729
|
-
elementButtons:
|
|
2731
|
+
columns: l,
|
|
2732
|
+
elementButtons: a,
|
|
2730
2733
|
processTooltip: c,
|
|
2731
2734
|
defaultTooltip: u,
|
|
2732
2735
|
showEye: m = !0
|
|
@@ -2738,7 +2741,7 @@ const oi = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2738
2741
|
className: Z.listElement,
|
|
2739
2742
|
style: { borderBottom: `1px solid ${t}` },
|
|
2740
2743
|
children: [
|
|
2741
|
-
/* @__PURE__ */ i("div", { className: Z.elementNameDate, onClick: () => d(b), children: Object.keys(
|
|
2744
|
+
/* @__PURE__ */ i("div", { className: Z.elementNameDate, onClick: () => d(b), children: Object.keys(l).map((y) => y === "name" ? /* @__PURE__ */ i("div", { className: Z.elementNameContainer, children: /* @__PURE__ */ p("div", { className: Z.elementName, children: [
|
|
2742
2745
|
m && (s ? /* @__PURE__ */ i(si, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ i(
|
|
2743
2746
|
"img",
|
|
2744
2747
|
{
|
|
@@ -2754,17 +2757,17 @@ const oi = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2754
2757
|
/* @__PURE__ */ i("img", { src: ni }),
|
|
2755
2758
|
/* @__PURE__ */ i(se, { text: c, position: "left" })
|
|
2756
2759
|
] }),
|
|
2757
|
-
|
|
2758
|
-
/* @__PURE__ */ i("button", { onClick: () =>
|
|
2759
|
-
/* @__PURE__ */ i(se, { text:
|
|
2760
|
+
a.filter && !n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
2761
|
+
/* @__PURE__ */ i("button", { onClick: () => a.filter.onclick(n), children: /* @__PURE__ */ i("img", { src: ti }) }),
|
|
2762
|
+
/* @__PURE__ */ i(se, { text: a.filter.tooltiptext, position: "left" })
|
|
2760
2763
|
] }),
|
|
2761
|
-
|
|
2762
|
-
/* @__PURE__ */ i("button", { onClick: () =>
|
|
2763
|
-
/* @__PURE__ */ i(se, { text:
|
|
2764
|
+
a.copy && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
2765
|
+
/* @__PURE__ */ i("button", { onClick: () => a.copy.onclick(n), children: /* @__PURE__ */ i("img", { src: ei }) }),
|
|
2766
|
+
/* @__PURE__ */ i(se, { text: a.copy.tooltiptext, position: "left" })
|
|
2764
2767
|
] }),
|
|
2765
|
-
|
|
2766
|
-
/* @__PURE__ */ i("button", { onClick: () =>
|
|
2767
|
-
/* @__PURE__ */ i(se, { text:
|
|
2768
|
+
a.trash && !n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
2769
|
+
/* @__PURE__ */ i("button", { onClick: () => a.trash.onclick(n), children: /* @__PURE__ */ i("img", { src: J0 }) }),
|
|
2770
|
+
/* @__PURE__ */ i(se, { text: a.trash.tooltiptext, position: "left" })
|
|
2768
2771
|
] }),
|
|
2769
2772
|
n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
2770
2773
|
/* @__PURE__ */ i("img", { src: ii }),
|
|
@@ -2826,9 +2829,9 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2826
2829
|
activeColor: o,
|
|
2827
2830
|
buttonContainerStyles: t = {},
|
|
2828
2831
|
containerStyles: r = {},
|
|
2829
|
-
newElementButton:
|
|
2832
|
+
newElementButton: l,
|
|
2830
2833
|
//{label: 'text', onClick: function(), disabled}/null
|
|
2831
|
-
onClickElement:
|
|
2834
|
+
onClickElement: a = (v) => console.log(`OnCLickElement: ${v}`),
|
|
2832
2835
|
columns: c,
|
|
2833
2836
|
// {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
|
|
2834
2837
|
elementButtons: u,
|
|
@@ -2881,7 +2884,7 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2881
2884
|
listelement: y,
|
|
2882
2885
|
fontColor: s,
|
|
2883
2886
|
activeColor: o,
|
|
2884
|
-
onClickElement:
|
|
2887
|
+
onClickElement: a,
|
|
2885
2888
|
columns: c,
|
|
2886
2889
|
elementButtons: u,
|
|
2887
2890
|
moreInfo: m,
|
|
@@ -2891,14 +2894,14 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2891
2894
|
},
|
|
2892
2895
|
`elementKey${y.id}`
|
|
2893
2896
|
)) }),
|
|
2894
|
-
|
|
2897
|
+
l && /* @__PURE__ */ i("div", { className: K.newElementButtonContainer, children: /* @__PURE__ */ i(
|
|
2895
2898
|
Me,
|
|
2896
2899
|
{
|
|
2897
2900
|
style: { ...t },
|
|
2898
|
-
onClick:
|
|
2901
|
+
onClick: l.onClick,
|
|
2899
2902
|
borderColor: "grey",
|
|
2900
|
-
disabled:
|
|
2901
|
-
children: v(
|
|
2903
|
+
disabled: l.disabled || !1,
|
|
2904
|
+
children: v(l.label)
|
|
2902
2905
|
}
|
|
2903
2906
|
) })
|
|
2904
2907
|
]
|
|
@@ -2991,17 +2994,17 @@ var Bt = (n) => /^\w*$/.test(n), Ze = (n) => n === void 0, yi = (n) => Array.isA
|
|
|
2991
2994
|
return Ze(o) || o === n ? Ze(n[d]) ? s : n[d] : o;
|
|
2992
2995
|
}, Oe = (n) => typeof n == "boolean", lt = (n, d, s) => {
|
|
2993
2996
|
let o = -1;
|
|
2994
|
-
const t = Bt(d) ? [d] : Tt(d), r = t.length,
|
|
2997
|
+
const t = Bt(d) ? [d] : Tt(d), r = t.length, l = r - 1;
|
|
2995
2998
|
for (; ++o < r; ) {
|
|
2996
|
-
const
|
|
2999
|
+
const a = t[o];
|
|
2997
3000
|
let c = s;
|
|
2998
|
-
if (o !==
|
|
2999
|
-
const u = n[
|
|
3001
|
+
if (o !== l) {
|
|
3002
|
+
const u = n[a];
|
|
3000
3003
|
c = _e(u) || Array.isArray(u) ? u : isNaN(+t[o + 1]) ? {} : [];
|
|
3001
3004
|
}
|
|
3002
|
-
if (
|
|
3005
|
+
if (a === "__proto__" || a === "constructor" || a === "prototype")
|
|
3003
3006
|
return;
|
|
3004
|
-
n[
|
|
3007
|
+
n[a] = c, n = n[a];
|
|
3005
3008
|
}
|
|
3006
3009
|
};
|
|
3007
3010
|
const ct = {
|
|
@@ -3011,7 +3014,7 @@ const ct = {
|
|
|
3011
3014
|
all: "all"
|
|
3012
3015
|
}, Lt = D.createContext(null);
|
|
3013
3016
|
Lt.displayName = "HookFormContext";
|
|
3014
|
-
const
|
|
3017
|
+
const Ge = () => D.useContext(Lt);
|
|
3015
3018
|
var _i = (n, d, s, o = !0) => {
|
|
3016
3019
|
const t = {
|
|
3017
3020
|
defaultValues: d._defaultValues
|
|
@@ -3019,15 +3022,15 @@ var _i = (n, d, s, o = !0) => {
|
|
|
3019
3022
|
for (const r in n)
|
|
3020
3023
|
Object.defineProperty(t, r, {
|
|
3021
3024
|
get: () => {
|
|
3022
|
-
const
|
|
3023
|
-
return d._proxyFormState[
|
|
3025
|
+
const l = r;
|
|
3026
|
+
return d._proxyFormState[l] !== dt.all && (d._proxyFormState[l] = !o || dt.all), s && (s[l] = !0), n[l];
|
|
3024
3027
|
}
|
|
3025
3028
|
});
|
|
3026
3029
|
return t;
|
|
3027
3030
|
};
|
|
3028
3031
|
const Mt = typeof window < "u" ? pe.useLayoutEffect : pe.useEffect;
|
|
3029
3032
|
function vi(n) {
|
|
3030
|
-
const d =
|
|
3033
|
+
const d = Ge(), { control: s = d.control, disabled: o, name: t, exact: r } = n || {}, [l, a] = D.useState(s._formState), c = D.useRef({
|
|
3031
3034
|
isDirty: !1,
|
|
3032
3035
|
isLoading: !1,
|
|
3033
3036
|
dirtyFields: !1,
|
|
@@ -3042,29 +3045,29 @@ function vi(n) {
|
|
|
3042
3045
|
formState: c.current,
|
|
3043
3046
|
exact: r,
|
|
3044
3047
|
callback: (u) => {
|
|
3045
|
-
!o &&
|
|
3048
|
+
!o && a({
|
|
3046
3049
|
...s._formState,
|
|
3047
3050
|
...u
|
|
3048
3051
|
});
|
|
3049
3052
|
}
|
|
3050
3053
|
}), [t, o, r]), D.useEffect(() => {
|
|
3051
3054
|
c.current.isValid && s._setValid(!0);
|
|
3052
|
-
}, [s]), D.useMemo(() => _i(
|
|
3055
|
+
}, [s]), D.useMemo(() => _i(l, s, c.current, !1), [l, s]);
|
|
3053
3056
|
}
|
|
3054
3057
|
var wi = (n) => typeof n == "string", xi = (n, d, s, o, t) => wi(n) ? P(s, n, t) : Array.isArray(n) ? n.map((r) => P(s, r)) : s;
|
|
3055
3058
|
function ki(n) {
|
|
3056
|
-
const d =
|
|
3059
|
+
const d = Ge(), { control: s = d.control, name: o, defaultValue: t, disabled: r, exact: l } = n || {}, a = D.useRef(t), [c, u] = D.useState(s._getWatch(o, a.current));
|
|
3057
3060
|
return Mt(() => s._subscribe({
|
|
3058
3061
|
name: o,
|
|
3059
3062
|
formState: {
|
|
3060
3063
|
values: !0
|
|
3061
3064
|
},
|
|
3062
|
-
exact:
|
|
3063
|
-
callback: (m) => !r && u(xi(o, s._names, m.values || s._formValues, !1,
|
|
3064
|
-
}), [o, s, r,
|
|
3065
|
+
exact: l,
|
|
3066
|
+
callback: (m) => !r && u(xi(o, s._names, m.values || s._formValues, !1, a.current))
|
|
3067
|
+
}), [o, s, r, l]), D.useEffect(() => s._removeUnmounted()), c;
|
|
3065
3068
|
}
|
|
3066
3069
|
function Ni(n) {
|
|
3067
|
-
const d =
|
|
3070
|
+
const d = Ge(), { name: s, disabled: o, control: t = d.control, shouldUnregister: r } = n, l = Ci(t._names.array, s), a = ki({
|
|
3068
3071
|
control: t,
|
|
3069
3072
|
name: s,
|
|
3070
3073
|
defaultValue: P(t._formValues, s, P(t._defaultValues, s, n.defaultValue)),
|
|
@@ -3075,7 +3078,7 @@ function Ni(n) {
|
|
|
3075
3078
|
exact: !0
|
|
3076
3079
|
}), u = D.useRef(n), m = D.useRef(t.register(s, {
|
|
3077
3080
|
...n.rules,
|
|
3078
|
-
value:
|
|
3081
|
+
value: a,
|
|
3079
3082
|
...Oe(n.disabled) ? { disabled: n.disabled } : {}
|
|
3080
3083
|
})), h = D.useMemo(() => Object.defineProperties({}, {
|
|
3081
3084
|
invalid: {
|
|
@@ -3120,12 +3123,12 @@ function Ni(n) {
|
|
|
3120
3123
|
});
|
|
3121
3124
|
}, [t._fields, s]), _ = D.useMemo(() => ({
|
|
3122
3125
|
name: s,
|
|
3123
|
-
value:
|
|
3126
|
+
value: a,
|
|
3124
3127
|
...Oe(o) || c.disabled ? { disabled: c.disabled || o } : {},
|
|
3125
3128
|
onChange: f,
|
|
3126
3129
|
onBlur: b,
|
|
3127
3130
|
ref: v
|
|
3128
|
-
}), [s, o, c.disabled, f, b, v,
|
|
3131
|
+
}), [s, o, c.disabled, f, b, v, a]);
|
|
3129
3132
|
return D.useEffect(() => {
|
|
3130
3133
|
const g = t._options.shouldUnregister || r;
|
|
3131
3134
|
t.register(s, {
|
|
@@ -3140,10 +3143,10 @@ function Ni(n) {
|
|
|
3140
3143
|
const y = $t(P(t._options.defaultValues, s));
|
|
3141
3144
|
lt(t._defaultValues, s, y), Ze(P(t._formValues, s)) && lt(t._formValues, s, y);
|
|
3142
3145
|
}
|
|
3143
|
-
return !
|
|
3144
|
-
(
|
|
3146
|
+
return !l && t.register(s), () => {
|
|
3147
|
+
(l ? g && !t._state.action : g) ? t.unregister(s) : C(s, !1);
|
|
3145
3148
|
};
|
|
3146
|
-
}, [s, t,
|
|
3149
|
+
}, [s, t, l, r]), D.useEffect(() => {
|
|
3147
3150
|
t._setDisabledField({
|
|
3148
3151
|
disabled: o,
|
|
3149
3152
|
name: s
|
|
@@ -3184,8 +3187,8 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3184
3187
|
type: o,
|
|
3185
3188
|
label: t,
|
|
3186
3189
|
maxLength: r,
|
|
3187
|
-
required:
|
|
3188
|
-
validateFunction:
|
|
3190
|
+
required: l,
|
|
3191
|
+
validateFunction: a,
|
|
3189
3192
|
placeholder: c,
|
|
3190
3193
|
errorColor: u = "red",
|
|
3191
3194
|
width: m = 325,
|
|
@@ -3194,7 +3197,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3194
3197
|
},
|
|
3195
3198
|
forgotPassLabel: f = "forgot-password"
|
|
3196
3199
|
} = n, { t: b } = $(), { control: v, trigger: _, clearErrors: g } = d, { errorColor: C } = xe((k) => k), [y, x] = V(!1);
|
|
3197
|
-
oe(
|
|
3200
|
+
oe(l);
|
|
3198
3201
|
const w = () => o ? o === "password" && y ? "text" : o : "text";
|
|
3199
3202
|
return /* @__PURE__ */ i(
|
|
3200
3203
|
ve,
|
|
@@ -3202,9 +3205,9 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3202
3205
|
name: s,
|
|
3203
3206
|
control: v,
|
|
3204
3207
|
rules: {
|
|
3205
|
-
required:
|
|
3208
|
+
required: l ? `${b(t)} ${b("errorMessages.required")}` : !1,
|
|
3206
3209
|
maxLength: r || void 0,
|
|
3207
|
-
validate:
|
|
3210
|
+
validate: a || void 0
|
|
3208
3211
|
},
|
|
3209
3212
|
render: ({ field: k, fieldState: S }) => {
|
|
3210
3213
|
var L;
|
|
@@ -3212,7 +3215,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3212
3215
|
/* @__PURE__ */ p("h3", { className: be.labelContainer, children: [
|
|
3213
3216
|
b(t),
|
|
3214
3217
|
" ",
|
|
3215
|
-
|
|
3218
|
+
l && /* @__PURE__ */ i("label", { style: { color: S.error ? u : "" }, children: "*" })
|
|
3216
3219
|
] }),
|
|
3217
3220
|
/* @__PURE__ */ p(
|
|
3218
3221
|
"div",
|
|
@@ -3268,23 +3271,23 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3268
3271
|
type: o,
|
|
3269
3272
|
label: t,
|
|
3270
3273
|
maxLength: r,
|
|
3271
|
-
required:
|
|
3272
|
-
validateFunction:
|
|
3274
|
+
required: l,
|
|
3275
|
+
validateFunction: a,
|
|
3273
3276
|
placeholder: c,
|
|
3274
3277
|
errorColor: u = "red",
|
|
3275
3278
|
width: m = 325,
|
|
3276
3279
|
options: h = []
|
|
3277
3280
|
} = n, { t: f } = $(), { control: b, trigger: v, clearErrors: _ } = d, { errorColor: g } = xe((C) => C);
|
|
3278
|
-
return oe(
|
|
3281
|
+
return oe(l), /* @__PURE__ */ i(
|
|
3279
3282
|
ve,
|
|
3280
3283
|
{
|
|
3281
3284
|
name: s,
|
|
3282
3285
|
control: b,
|
|
3283
3286
|
rules: {
|
|
3284
|
-
required:
|
|
3285
|
-
validate:
|
|
3287
|
+
required: l ? `${f(t)} ${f("errorMessages.required")}` : !1,
|
|
3288
|
+
validate: a ? (C) => {
|
|
3286
3289
|
let y = d.getValues();
|
|
3287
|
-
return
|
|
3290
|
+
return a(C, y);
|
|
3288
3291
|
} : void 0
|
|
3289
3292
|
},
|
|
3290
3293
|
render: ({ field: C, fieldState: y }) => {
|
|
@@ -3293,7 +3296,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3293
3296
|
/* @__PURE__ */ p("h3", { className: de.labelContainer, children: [
|
|
3294
3297
|
f(t),
|
|
3295
3298
|
" ",
|
|
3296
|
-
|
|
3299
|
+
l && /* @__PURE__ */ i("label", { style: { color: y.error ? u : "" }, children: "*" })
|
|
3297
3300
|
] }),
|
|
3298
3301
|
/* @__PURE__ */ p("div", { className: de.inputContainer, style: { width: m }, children: [
|
|
3299
3302
|
/* @__PURE__ */ p(
|
|
@@ -3346,14 +3349,14 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3346
3349
|
radioQuestion: Hi,
|
|
3347
3350
|
inputContainer: Ki,
|
|
3348
3351
|
radioInput: Ui
|
|
3349
|
-
},
|
|
3352
|
+
}, Wi = ({ input: n, reactHookFormInstance: d }) => {
|
|
3350
3353
|
const {
|
|
3351
3354
|
code: s,
|
|
3352
3355
|
label: o,
|
|
3353
3356
|
required: t,
|
|
3354
3357
|
validateFunction: r,
|
|
3355
|
-
errorColor:
|
|
3356
|
-
options:
|
|
3358
|
+
errorColor: l = "red",
|
|
3359
|
+
options: a = [],
|
|
3357
3360
|
multi: c = !1
|
|
3358
3361
|
} = n, { t: u } = $(), { control: m, trigger: h, clearErrors: f } = d, { errorColor: b } = xe((g) => g), v = ({ options: g, onChange: C, actualValue: y }) => {
|
|
3359
3362
|
if (c && y && y.length > 0) {
|
|
@@ -3389,7 +3392,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3389
3392
|
t && /* @__PURE__ */ i(
|
|
3390
3393
|
"label",
|
|
3391
3394
|
{
|
|
3392
|
-
style: { color: k.error ?
|
|
3395
|
+
style: { color: k.error ? l : "" },
|
|
3393
3396
|
children: "*"
|
|
3394
3397
|
}
|
|
3395
3398
|
)
|
|
@@ -3397,7 +3400,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3397
3400
|
}
|
|
3398
3401
|
) }),
|
|
3399
3402
|
/* @__PURE__ */ p("div", { className: ne.inputContainer, children: [
|
|
3400
|
-
|
|
3403
|
+
a.map(
|
|
3401
3404
|
({
|
|
3402
3405
|
label: L,
|
|
3403
3406
|
value: N,
|
|
@@ -3414,11 +3417,11 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3414
3417
|
onChange: () => {
|
|
3415
3418
|
c ? M ? v({
|
|
3416
3419
|
actualValue: x,
|
|
3417
|
-
options:
|
|
3420
|
+
options: a,
|
|
3418
3421
|
onChange: C
|
|
3419
3422
|
}) : _({
|
|
3420
3423
|
actualValue: x,
|
|
3421
|
-
options:
|
|
3424
|
+
options: a,
|
|
3422
3425
|
onChange: C
|
|
3423
3426
|
}) : C(N);
|
|
3424
3427
|
},
|
|
@@ -3434,7 +3437,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3434
3437
|
we,
|
|
3435
3438
|
{
|
|
3436
3439
|
errorMessage: (S = k.error) == null ? void 0 : S.message,
|
|
3437
|
-
errorColor: b ||
|
|
3440
|
+
errorColor: b || l
|
|
3438
3441
|
}
|
|
3439
3442
|
)
|
|
3440
3443
|
] })
|
|
@@ -3442,8 +3445,8 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3442
3445
|
}
|
|
3443
3446
|
}
|
|
3444
3447
|
);
|
|
3445
|
-
},
|
|
3446
|
-
rankingSliderContainer:
|
|
3448
|
+
}, Gi = "_rankingSliderContainer_1lekm_2", Yi = "_labelContainer_1lekm_6", Qi = "_inputContainer_1lekm_10", Xi = "_slider_1lekm_20", Ji = "_thumb_1lekm_27", es = "_labels_1lekm_37", ts = "_minLabel_1lekm_67", ns = "_maxLabel_1lekm_67", A = {
|
|
3449
|
+
rankingSliderContainer: Gi,
|
|
3447
3450
|
labelContainer: Yi,
|
|
3448
3451
|
inputContainer: Qi,
|
|
3449
3452
|
slider: Xi,
|
|
@@ -3456,8 +3459,8 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3456
3459
|
code: o,
|
|
3457
3460
|
label: t,
|
|
3458
3461
|
minValue: r = 1,
|
|
3459
|
-
maxValue:
|
|
3460
|
-
defValue:
|
|
3462
|
+
maxValue: l = 5,
|
|
3463
|
+
defValue: a = 3,
|
|
3461
3464
|
thumbColor: c = "#B32F5D",
|
|
3462
3465
|
//trackColors = ["#B32F5D", "#EFEFEF"],
|
|
3463
3466
|
required: u,
|
|
@@ -3468,19 +3471,19 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3468
3471
|
maxText: v,
|
|
3469
3472
|
disabled: _ = !1,
|
|
3470
3473
|
marks: g = Array.from(
|
|
3471
|
-
{ length:
|
|
3474
|
+
{ length: l - r + 1 },
|
|
3472
3475
|
(B, O) => r + O
|
|
3473
3476
|
),
|
|
3474
3477
|
showMarksNumber: C = !0
|
|
3475
3478
|
} = n, { t: y } = $(), { control: x, trigger: w, clearErrors: k } = d || {};
|
|
3476
3479
|
oe(u);
|
|
3477
|
-
const { errorColorForm: S } = xe((B) => B), [L, N] = V(
|
|
3480
|
+
const { errorColorForm: S } = xe((B) => B), [L, N] = V(a);
|
|
3478
3481
|
return d ? /* @__PURE__ */ i(
|
|
3479
3482
|
ve,
|
|
3480
3483
|
{
|
|
3481
3484
|
name: o,
|
|
3482
3485
|
control: x,
|
|
3483
|
-
defaultValue:
|
|
3486
|
+
defaultValue: a,
|
|
3484
3487
|
rules: {
|
|
3485
3488
|
required: u ? `${y(t)} ${y("errorMessages.required")}` : !1
|
|
3486
3489
|
},
|
|
@@ -3502,9 +3505,9 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3502
3505
|
je,
|
|
3503
3506
|
{
|
|
3504
3507
|
min: r,
|
|
3505
|
-
max:
|
|
3508
|
+
max: l,
|
|
3506
3509
|
step: 1,
|
|
3507
|
-
value: B.value ??
|
|
3510
|
+
value: B.value ?? a,
|
|
3508
3511
|
onChange: (M) => B.onChange(M),
|
|
3509
3512
|
marks: !0,
|
|
3510
3513
|
className: A.slider,
|
|
@@ -3551,7 +3554,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3551
3554
|
je,
|
|
3552
3555
|
{
|
|
3553
3556
|
min: r,
|
|
3554
|
-
max:
|
|
3557
|
+
max: l,
|
|
3555
3558
|
step: 1,
|
|
3556
3559
|
value: L,
|
|
3557
3560
|
onChange: (B) => {
|
|
@@ -3604,15 +3607,15 @@ const ye = ({
|
|
|
3604
3607
|
reactHookFormInstance: s
|
|
3605
3608
|
}) => {
|
|
3606
3609
|
console.log("inputs: ", n);
|
|
3607
|
-
const { watch: o } = s, t = o(), r = me(() => n == null ? void 0 : n.map((
|
|
3608
|
-
const
|
|
3610
|
+
const { watch: o } = s, t = o(), r = me(() => n == null ? void 0 : n.map((l) => {
|
|
3611
|
+
const a = typeof l.required == "function" ? l.required(t) : l.required;
|
|
3609
3612
|
return {
|
|
3610
|
-
...
|
|
3611
|
-
required:
|
|
3613
|
+
...l,
|
|
3614
|
+
required: a
|
|
3612
3615
|
};
|
|
3613
3616
|
}), [n, t]);
|
|
3614
|
-
return /* @__PURE__ */ i("div", { className: ce.inputsContainer, children: r == null ? void 0 : r.map((
|
|
3615
|
-
const { inputType: c } =
|
|
3617
|
+
return /* @__PURE__ */ i("div", { className: ce.inputsContainer, children: r == null ? void 0 : r.map((l, a) => {
|
|
3618
|
+
const { inputType: c } = l;
|
|
3616
3619
|
switch (c) {
|
|
3617
3620
|
case fe.text:
|
|
3618
3621
|
return /* @__PURE__ */ i(
|
|
@@ -3623,12 +3626,12 @@ const ye = ({
|
|
|
3623
3626
|
children: /* @__PURE__ */ i(
|
|
3624
3627
|
ut,
|
|
3625
3628
|
{
|
|
3626
|
-
input:
|
|
3629
|
+
input: l,
|
|
3627
3630
|
reactHookFormInstance: s
|
|
3628
3631
|
}
|
|
3629
3632
|
)
|
|
3630
3633
|
},
|
|
3631
|
-
`${
|
|
3634
|
+
`${l.code}${a}`
|
|
3632
3635
|
);
|
|
3633
3636
|
case fe.password:
|
|
3634
3637
|
return /* @__PURE__ */ i(
|
|
@@ -3639,12 +3642,12 @@ const ye = ({
|
|
|
3639
3642
|
children: /* @__PURE__ */ i(
|
|
3640
3643
|
ut,
|
|
3641
3644
|
{
|
|
3642
|
-
input:
|
|
3645
|
+
input: l,
|
|
3643
3646
|
reactHookFormInstance: s
|
|
3644
3647
|
}
|
|
3645
3648
|
)
|
|
3646
3649
|
},
|
|
3647
|
-
`${
|
|
3650
|
+
`${l.code}${a}`
|
|
3648
3651
|
);
|
|
3649
3652
|
case fe.select:
|
|
3650
3653
|
return /* @__PURE__ */ i(
|
|
@@ -3655,12 +3658,12 @@ const ye = ({
|
|
|
3655
3658
|
children: /* @__PURE__ */ i(
|
|
3656
3659
|
Pi,
|
|
3657
3660
|
{
|
|
3658
|
-
input:
|
|
3661
|
+
input: l,
|
|
3659
3662
|
reactHookFormInstance: s
|
|
3660
3663
|
}
|
|
3661
3664
|
)
|
|
3662
3665
|
},
|
|
3663
|
-
`${
|
|
3666
|
+
`${l.code}${a}`
|
|
3664
3667
|
);
|
|
3665
3668
|
case fe.radioList:
|
|
3666
3669
|
return /* @__PURE__ */ i(
|
|
@@ -3669,14 +3672,14 @@ const ye = ({
|
|
|
3669
3672
|
className: ce.inputContainer,
|
|
3670
3673
|
style: { ...d },
|
|
3671
3674
|
children: /* @__PURE__ */ i(
|
|
3672
|
-
|
|
3675
|
+
Wi,
|
|
3673
3676
|
{
|
|
3674
|
-
input:
|
|
3677
|
+
input: l,
|
|
3675
3678
|
reactHookFormInstance: s
|
|
3676
3679
|
}
|
|
3677
3680
|
)
|
|
3678
3681
|
},
|
|
3679
|
-
`${
|
|
3682
|
+
`${l.code}${a}`
|
|
3680
3683
|
);
|
|
3681
3684
|
case fe.rankingSlider:
|
|
3682
3685
|
return /* @__PURE__ */ i(
|
|
@@ -3687,15 +3690,15 @@ const ye = ({
|
|
|
3687
3690
|
children: /* @__PURE__ */ i(
|
|
3688
3691
|
Dt,
|
|
3689
3692
|
{
|
|
3690
|
-
input:
|
|
3693
|
+
input: l,
|
|
3691
3694
|
reactHookFormInstance: s
|
|
3692
3695
|
}
|
|
3693
3696
|
)
|
|
3694
3697
|
},
|
|
3695
|
-
`${
|
|
3698
|
+
`${l.code}${a}`
|
|
3696
3699
|
);
|
|
3697
3700
|
default:
|
|
3698
|
-
return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("h4", { children: "Default" }) }, `${
|
|
3701
|
+
return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("h4", { children: "Default" }) }, `${l.code}${a}`);
|
|
3699
3702
|
}
|
|
3700
3703
|
}) });
|
|
3701
3704
|
}, is = "_categorySelector_9bdf4_2", ss = "_sectionItemActive_9bdf4_16", os = "_sectionItem_9bdf4_16", Be = {
|
|
@@ -3708,11 +3711,11 @@ const ye = ({
|
|
|
3708
3711
|
activeCategory: s,
|
|
3709
3712
|
activeColor: o
|
|
3710
3713
|
}) => {
|
|
3711
|
-
const { t } = $(), r = (
|
|
3712
|
-
d(
|
|
3714
|
+
const { t } = $(), r = (l) => {
|
|
3715
|
+
d(l);
|
|
3713
3716
|
};
|
|
3714
|
-
return /* @__PURE__ */ i("div", { className: Be.categorySelector, children: n.map((
|
|
3715
|
-
const { id: c, label: u } =
|
|
3717
|
+
return /* @__PURE__ */ i("div", { className: Be.categorySelector, children: n.map((l, a) => {
|
|
3718
|
+
const { id: c, label: u } = l, m = s == c;
|
|
3716
3719
|
return /* @__PURE__ */ i(
|
|
3717
3720
|
"button",
|
|
3718
3721
|
{
|
|
@@ -3729,7 +3732,7 @@ const ye = ({
|
|
|
3729
3732
|
}
|
|
3730
3733
|
)
|
|
3731
3734
|
},
|
|
3732
|
-
`keySection${
|
|
3735
|
+
`keySection${a}`
|
|
3733
3736
|
);
|
|
3734
3737
|
}) });
|
|
3735
3738
|
}, bo = ({
|
|
@@ -3739,8 +3742,8 @@ const ye = ({
|
|
|
3739
3742
|
inputContainerStyles: o,
|
|
3740
3743
|
generalError: t,
|
|
3741
3744
|
errorColor: r = "red",
|
|
3742
|
-
submitButtonLabel:
|
|
3743
|
-
submitButtonStyles:
|
|
3745
|
+
submitButtonLabel: l = "Submit",
|
|
3746
|
+
submitButtonStyles: a = { width: 325 },
|
|
3744
3747
|
showCategorySelector: c = !0,
|
|
3745
3748
|
defaultCategory: u = null,
|
|
3746
3749
|
categoryLabel: m = "Select Category",
|
|
@@ -3898,7 +3901,7 @@ const ye = ({
|
|
|
3898
3901
|
);
|
|
3899
3902
|
}) }),
|
|
3900
3903
|
/* @__PURE__ */ p("div", { className: Ce.buttonContainer, children: [
|
|
3901
|
-
/* @__PURE__ */ i(Me, { containerStyles:
|
|
3904
|
+
/* @__PURE__ */ i(Me, { containerStyles: a, type: "submit", children: v(l) }),
|
|
3902
3905
|
/* @__PURE__ */ i(we, { errorMessage: t, errorColor: r })
|
|
3903
3906
|
] })
|
|
3904
3907
|
] });
|
|
@@ -3918,18 +3921,18 @@ const ye = ({
|
|
|
3918
3921
|
submessage: o,
|
|
3919
3922
|
buttons: t,
|
|
3920
3923
|
maxHeight: r = "450px",
|
|
3921
|
-
maxWidth:
|
|
3924
|
+
maxWidth: l = "450px"
|
|
3922
3925
|
}) => /* @__PURE__ */ i("div", { className: Y.overlay, children: /* @__PURE__ */ p(
|
|
3923
3926
|
"div",
|
|
3924
3927
|
{
|
|
3925
3928
|
className: Y.modal,
|
|
3926
|
-
style: { maxHeight: r, maxWidth:
|
|
3929
|
+
style: { maxHeight: r, maxWidth: l },
|
|
3927
3930
|
children: [
|
|
3928
3931
|
/* @__PURE__ */ i("button", { className: Y.closeButton, onClick: n, "aria-label": "Close modal", children: "✕" }),
|
|
3929
3932
|
d && /* @__PURE__ */ i("img", { src: d, alt: "icon", className: Y.icon }),
|
|
3930
3933
|
/* @__PURE__ */ i("p", { className: Y.message, children: s }),
|
|
3931
3934
|
o && /* @__PURE__ */ i("p", { className: Y.submessage, children: o }),
|
|
3932
|
-
t.length > 0 && /* @__PURE__ */ i("div", { className: Y.buttonsContainer, children: t.map((
|
|
3935
|
+
t.length > 0 && /* @__PURE__ */ i("div", { className: Y.buttonsContainer, children: t.map((a, c) => /* @__PURE__ */ i("div", { className: Y.buttonWrapper, children: a }, c)) })
|
|
3933
3936
|
]
|
|
3934
3937
|
}
|
|
3935
3938
|
) });
|
|
@@ -4022,12 +4025,12 @@ const Ss = "_buttonsContainer_1c7dw_2", $s = "_button_1c7dw_2", Bs = "_active_1c
|
|
|
4022
4025
|
const {
|
|
4023
4026
|
isActive: t,
|
|
4024
4027
|
name: r,
|
|
4025
|
-
onClick:
|
|
4028
|
+
onClick: l
|
|
4026
4029
|
} = s;
|
|
4027
4030
|
return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(
|
|
4028
4031
|
"button",
|
|
4029
4032
|
{
|
|
4030
|
-
onClick:
|
|
4033
|
+
onClick: l,
|
|
4031
4034
|
className: `${Te.button}
|
|
4032
4035
|
${t && Te.active}`,
|
|
4033
4036
|
children: /* @__PURE__ */ i("span", { className: Te.buttonName, children: d(r) })
|
|
@@ -4057,11 +4060,11 @@ const Ls = "_switchContainer_194wl_2", Ms = "_labelRight_194wl_9", Ds = "_labelL
|
|
|
4057
4060
|
code: o,
|
|
4058
4061
|
labelLeft: t,
|
|
4059
4062
|
labelRight: r,
|
|
4060
|
-
defValue:
|
|
4061
|
-
colorOn:
|
|
4063
|
+
defValue: l = !1,
|
|
4064
|
+
colorOn: a = "#5A514D",
|
|
4062
4065
|
disabled: c = !1,
|
|
4063
4066
|
width: u = 240
|
|
4064
|
-
} = n, { t: m } = $(), { control: h } = d || {}, [f, b] = V(
|
|
4067
|
+
} = n, { t: m } = $(), { control: h } = d || {}, [f, b] = V(l), v = (g) => {
|
|
4065
4068
|
b(g), s && s(g);
|
|
4066
4069
|
}, _ = (g, C) => /* @__PURE__ */ p("div", { className: ue.switchContainer, style: { width: `${u}px` }, children: [
|
|
4067
4070
|
t && /* @__PURE__ */ i(
|
|
@@ -4087,7 +4090,7 @@ const Ls = "_switchContainer_194wl_2", Ms = "_labelRight_194wl_9", Ds = "_labelL
|
|
|
4087
4090
|
{
|
|
4088
4091
|
className: ue.slider,
|
|
4089
4092
|
style: {
|
|
4090
|
-
"--switch-thumb-color": g ?
|
|
4093
|
+
"--switch-thumb-color": g ? a : "#ccc"
|
|
4091
4094
|
}
|
|
4092
4095
|
}
|
|
4093
4096
|
)
|
|
@@ -4099,7 +4102,7 @@ const Ls = "_switchContainer_194wl_2", Ms = "_labelRight_194wl_9", Ds = "_labelL
|
|
|
4099
4102
|
{
|
|
4100
4103
|
name: o,
|
|
4101
4104
|
control: h,
|
|
4102
|
-
defaultValue:
|
|
4105
|
+
defaultValue: l,
|
|
4103
4106
|
render: ({ field: g }) => _(g.value, g.onChange)
|
|
4104
4107
|
}
|
|
4105
4108
|
) : _(f, v);
|
|
@@ -4129,8 +4132,8 @@ const Is = "_header_13kbt_2", Os = "_leftComponents_13kbt_13", qs = "_centerComp
|
|
|
4129
4132
|
rightComponents: o = [],
|
|
4130
4133
|
zIndex: t = 10,
|
|
4131
4134
|
height: r = 60,
|
|
4132
|
-
backgroundColor:
|
|
4133
|
-
isFooter:
|
|
4135
|
+
backgroundColor: l = "#605B56",
|
|
4136
|
+
isFooter: a = !1
|
|
4134
4137
|
// If true, it will apply footer styles
|
|
4135
4138
|
}) => /* @__PURE__ */ p(
|
|
4136
4139
|
"div",
|
|
@@ -4140,9 +4143,9 @@ const Is = "_header_13kbt_2", Os = "_leftComponents_13kbt_13", qs = "_centerComp
|
|
|
4140
4143
|
...n,
|
|
4141
4144
|
zIndex: t,
|
|
4142
4145
|
height: r,
|
|
4143
|
-
backgroundColor:
|
|
4144
|
-
top:
|
|
4145
|
-
bottom:
|
|
4146
|
+
backgroundColor: l,
|
|
4147
|
+
top: a ? "auto" : 0,
|
|
4148
|
+
bottom: a ? 0 : "auto"
|
|
4146
4149
|
},
|
|
4147
4150
|
children: [
|
|
4148
4151
|
/* @__PURE__ */ i("div", { className: ie.leftComponents, children: d.map((c, u) => /* @__PURE__ */ i("div", { className: ie.componentsContainer, children: c }, u)) }),
|
|
@@ -4214,7 +4217,7 @@ export {
|
|
|
4214
4217
|
l0 as MapboxMap,
|
|
4215
4218
|
h0 as MaplibreMap,
|
|
4216
4219
|
hs as ModalAlert,
|
|
4217
|
-
|
|
4220
|
+
Wi as RadioButtonInput,
|
|
4218
4221
|
Dt as RankingSlider,
|
|
4219
4222
|
Us as RightSidebar,
|
|
4220
4223
|
v0 as SectionBar,
|