@tmf_ciclica/ciclicastorybook 1.1.186 → 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 +311 -309
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -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}`),
|
|
@@ -187,10 +187,10 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
187
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,8 +429,8 @@ 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) => ({
|
|
@@ -444,9 +444,9 @@ const j2 = "_layersList_cn837_25", z2 = "_layerName_cn837_34", Je = {
|
|
|
444
444
|
}, [c]), /* @__PURE__ */ i(
|
|
445
445
|
re,
|
|
446
446
|
{
|
|
447
|
-
isOpen:
|
|
447
|
+
isOpen: a == "geographical",
|
|
448
448
|
onClick: u,
|
|
449
|
-
title: n ?
|
|
449
|
+
title: n ? l(n) : "Geographical Filters",
|
|
450
450
|
activeColor: t,
|
|
451
451
|
color: s,
|
|
452
452
|
mainTitle: !0,
|
|
@@ -457,7 +457,7 @@ const j2 = "_layersList_cn837_25", z2 = "_layerName_cn837_34", Je = {
|
|
|
457
457
|
style: { color: h.active ? t : s, fontWeight: h.active ? "bold" : "normal" },
|
|
458
458
|
onClick: () => m(h),
|
|
459
459
|
children: [
|
|
460
|
-
|
|
460
|
+
l(h.name),
|
|
461
461
|
h.active
|
|
462
462
|
]
|
|
463
463
|
}
|
|
@@ -482,7 +482,7 @@ const Z2 = "_checkboxContainer_1nxra_2", H2 = {
|
|
|
482
482
|
indicator: o,
|
|
483
483
|
value: t
|
|
484
484
|
}) => {
|
|
485
|
-
const { t: r } = $(), { title:
|
|
485
|
+
const { t: r } = $(), { title: l } = o || {}, { fontColor: a, inputsColor: c } = T((u) => u);
|
|
486
486
|
return /* @__PURE__ */ p(
|
|
487
487
|
"div",
|
|
488
488
|
{
|
|
@@ -499,12 +499,12 @@ const Z2 = "_checkboxContainer_1nxra_2", H2 = {
|
|
|
499
499
|
value: t,
|
|
500
500
|
readOnly: !0,
|
|
501
501
|
style: {
|
|
502
|
-
border: `1.5px solid ${t ? c :
|
|
502
|
+
border: `1.5px solid ${t ? c : a}`,
|
|
503
503
|
backgroundColor: t ? c : "white"
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
),
|
|
507
|
-
/* @__PURE__ */ i("span", { className: "checkmark", children: r(
|
|
507
|
+
/* @__PURE__ */ i("span", { className: "checkmark", children: r(l) })
|
|
508
508
|
]
|
|
509
509
|
}
|
|
510
510
|
);
|
|
@@ -560,18 +560,18 @@ let Pe = function(n) {
|
|
|
560
560
|
t.onEnd();
|
|
561
561
|
}, t.onMouseUp = () => {
|
|
562
562
|
t.onEnd(t.getMouseEventMap());
|
|
563
|
-
}, t.onTouchEnd = (
|
|
564
|
-
|
|
563
|
+
}, t.onTouchEnd = (a) => {
|
|
564
|
+
a.preventDefault(), t.onEnd(t.getTouchEventMap());
|
|
565
565
|
}, t.onBlur = () => {
|
|
566
566
|
t.setState({ index: -1 }, t.onEnd(t.getKeyDownEventMap()));
|
|
567
|
-
}, t.onMouseMove = (
|
|
567
|
+
}, t.onMouseMove = (a) => {
|
|
568
568
|
t.setState({ pending: !0 });
|
|
569
|
-
const c = t.getMousePosition(
|
|
569
|
+
const c = t.getMousePosition(a), u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
|
|
570
570
|
t.move(m);
|
|
571
|
-
}, t.onTouchMove = (
|
|
572
|
-
if (
|
|
571
|
+
}, t.onTouchMove = (a) => {
|
|
572
|
+
if (a.touches.length > 1) return;
|
|
573
573
|
t.setState({ pending: !0 });
|
|
574
|
-
const c = t.getTouchPosition(
|
|
574
|
+
const c = t.getTouchPosition(a);
|
|
575
575
|
if (t.isScrolling === void 0) {
|
|
576
576
|
const h = c[0] - t.startPosition[0], f = c[1] - t.startPosition[1];
|
|
577
577
|
t.isScrolling = Math.abs(f) > Math.abs(h);
|
|
@@ -579,80 +579,80 @@ let Pe = function(n) {
|
|
|
579
579
|
if (t.isScrolling) return void t.setState({ index: -1 });
|
|
580
580
|
const u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
|
|
581
581
|
t.move(m);
|
|
582
|
-
}, t.onKeyDown = (
|
|
583
|
-
if (!(
|
|
582
|
+
}, t.onKeyDown = (a) => {
|
|
583
|
+
if (!(a.ctrlKey || a.shiftKey || a.altKey || a.metaKey)) switch (t.setState({ pending: !0 }), a.key) {
|
|
584
584
|
case "ArrowLeft":
|
|
585
585
|
case "ArrowDown":
|
|
586
586
|
case "Left":
|
|
587
587
|
case "Down":
|
|
588
|
-
|
|
588
|
+
a.preventDefault(), t.moveDownByStep();
|
|
589
589
|
break;
|
|
590
590
|
case "ArrowRight":
|
|
591
591
|
case "ArrowUp":
|
|
592
592
|
case "Right":
|
|
593
593
|
case "Up":
|
|
594
|
-
|
|
594
|
+
a.preventDefault(), t.moveUpByStep();
|
|
595
595
|
break;
|
|
596
596
|
case "Home":
|
|
597
|
-
|
|
597
|
+
a.preventDefault(), t.move(t.props.min);
|
|
598
598
|
break;
|
|
599
599
|
case "End":
|
|
600
|
-
|
|
600
|
+
a.preventDefault(), t.move(t.props.max);
|
|
601
601
|
break;
|
|
602
602
|
case "PageDown":
|
|
603
|
-
|
|
603
|
+
a.preventDefault(), t.moveDownByStep(t.props.pageFn(t.props.step));
|
|
604
604
|
break;
|
|
605
605
|
case "PageUp":
|
|
606
|
-
|
|
606
|
+
a.preventDefault(), t.moveUpByStep(t.props.pageFn(t.props.step));
|
|
607
607
|
}
|
|
608
|
-
}, t.onSliderMouseDown = (
|
|
609
|
-
if (!t.props.disabled &&
|
|
608
|
+
}, t.onSliderMouseDown = (a) => {
|
|
609
|
+
if (!t.props.disabled && a.button !== 2) {
|
|
610
610
|
if (t.setState({ pending: !0 }), !t.props.snapDragDisabled) {
|
|
611
|
-
const c = t.getMousePosition(
|
|
611
|
+
const c = t.getMousePosition(a);
|
|
612
612
|
t.forceValueFromPosition(c[0], (u) => {
|
|
613
613
|
t.start(u, c[0]), Se(t.getMouseEventMap());
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
|
-
Fe(
|
|
616
|
+
Fe(a);
|
|
617
617
|
}
|
|
618
|
-
}, t.onSliderClick = (
|
|
618
|
+
}, t.onSliderClick = (a) => {
|
|
619
619
|
if (!t.props.disabled && t.props.onSliderClick && !t.hasMoved) {
|
|
620
|
-
const c = t.getMousePosition(
|
|
620
|
+
const c = t.getMousePosition(a), u = J(t.calcValue(t.calcOffsetFromPosition(c[0])), t.props);
|
|
621
621
|
t.props.onSliderClick(u);
|
|
622
622
|
}
|
|
623
|
-
}, t.createOnKeyDown = (
|
|
624
|
-
t.props.disabled || (t.start(
|
|
625
|
-
}, t.createOnMouseDown = (
|
|
623
|
+
}, t.createOnKeyDown = (a) => (c) => {
|
|
624
|
+
t.props.disabled || (t.start(a), Se(t.getKeyDownEventMap()), Fe(c));
|
|
625
|
+
}, t.createOnMouseDown = (a) => (c) => {
|
|
626
626
|
if (t.props.disabled || c.button === 2) return;
|
|
627
627
|
t.setState({ pending: !0 });
|
|
628
628
|
const u = t.getMousePosition(c);
|
|
629
|
-
t.start(
|
|
630
|
-
}, t.createOnTouchStart = (
|
|
629
|
+
t.start(a, u[0]), Se(t.getMouseEventMap()), Fe(c);
|
|
630
|
+
}, t.createOnTouchStart = (a) => (c) => {
|
|
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(
|
|
634
|
+
t.startPosition = u, t.isScrolling = void 0, t.start(a, u[0]), Se(t.getTouchEventMap()), function(m) {
|
|
635
635
|
m.stopPropagation && m.stopPropagation();
|
|
636
636
|
}(c);
|
|
637
637
|
}, t.handleResize = () => {
|
|
638
|
-
const
|
|
638
|
+
const a = window.setTimeout(() => {
|
|
639
639
|
t.pendingResizeTimeouts.shift(), t.resize();
|
|
640
640
|
}, 0);
|
|
641
|
-
t.pendingResizeTimeouts.push(
|
|
642
|
-
}, t.renderThumb = (
|
|
641
|
+
t.pendingResizeTimeouts.push(a);
|
|
642
|
+
}, t.renderThumb = (a, c) => {
|
|
643
643
|
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), m = { ref: (f) => {
|
|
644
644
|
t["thumb" + c] = f;
|
|
645
|
-
}, 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] };
|
|
646
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);
|
|
647
|
-
}, t.renderTrack = (
|
|
648
|
-
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) };
|
|
649
649
|
return t.props.renderTrack(m, h);
|
|
650
650
|
};
|
|
651
651
|
let r = Ve(o.value);
|
|
652
652
|
r.length || (r = Ve(o.defaultValue)), t.pendingResizeTimeouts = [];
|
|
653
|
-
const
|
|
654
|
-
for (let
|
|
655
|
-
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;
|
|
656
656
|
}
|
|
657
657
|
K2(d, n);
|
|
658
658
|
var s = d.prototype;
|
|
@@ -660,7 +660,7 @@ let Pe = function(n) {
|
|
|
660
660
|
typeof window < "u" && (this.resizeObserver = new ResizeObserver(this.handleResize), this.resizeObserver.observe(this.resizeElementRef.current), this.resize());
|
|
661
661
|
}, d.getDerivedStateFromProps = function(o, t) {
|
|
662
662
|
const r = Ve(o.value);
|
|
663
|
-
return r.length ? t.pending ? null : { value: r.map((
|
|
663
|
+
return r.length ? t.pending ? null : { value: r.map((l) => J(l, o)) } : null;
|
|
664
664
|
}, s.componentDidUpdate = function() {
|
|
665
665
|
this.state.upperBound === 0 && this.resize();
|
|
666
666
|
}, s.componentWillUnmount = function() {
|
|
@@ -675,9 +675,9 @@ let Pe = function(n) {
|
|
|
675
675
|
return Ne(this.state.value);
|
|
676
676
|
}, s.getClosestIndex = function(o) {
|
|
677
677
|
let t = Number.MAX_VALUE, r = -1;
|
|
678
|
-
const { value:
|
|
679
|
-
for (let c = 0; c <
|
|
680
|
-
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);
|
|
681
681
|
m < t && (t = m, r = c);
|
|
682
682
|
}
|
|
683
683
|
return r;
|
|
@@ -701,7 +701,7 @@ 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(),
|
|
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);
|
|
705
705
|
this.state.upperBound === h && this.state.sliderLength === f && this.state.thumbSize === m || this.setState({ upperBound: h, sliderLength: f, thumbSize: m });
|
|
706
706
|
}, s.calcOffset = function(o) {
|
|
707
707
|
const t = this.props.max - this.props.min;
|
|
@@ -709,15 +709,15 @@ let Pe = function(n) {
|
|
|
709
709
|
}, s.calcValue = function(o) {
|
|
710
710
|
return o / this.state.upperBound * (this.props.max - this.props.min) + this.props.min;
|
|
711
711
|
}, s.calcOffsetFromPosition = function(o) {
|
|
712
|
-
const { slider: t } = this, r = t.getBoundingClientRect(),
|
|
713
|
-
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));
|
|
714
714
|
return this.props.invert && (c = this.state.sliderLength - c), c -= this.state.thumbSize / 2, c;
|
|
715
715
|
}, s.forceValueFromPosition = function(o, t) {
|
|
716
|
-
const r = this.calcOffsetFromPosition(o),
|
|
717
|
-
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;
|
|
718
718
|
for (let u = 0; u < c.length - 1; u += 1) if (c[u + 1] - c[u] < this.props.minDistance) return;
|
|
719
719
|
this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value: c }, () => {
|
|
720
|
-
t(
|
|
720
|
+
t(l), this.fireChangeEvent("onChange");
|
|
721
721
|
});
|
|
722
722
|
}, s.clearPendingResizeTimeouts = function() {
|
|
723
723
|
do {
|
|
@@ -727,8 +727,8 @@ let Pe = function(n) {
|
|
|
727
727
|
}, s.start = function(o, t) {
|
|
728
728
|
const r = this["thumb" + o];
|
|
729
729
|
r && r.focus();
|
|
730
|
-
const { zIndices:
|
|
731
|
-
|
|
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 }));
|
|
732
732
|
}, s.moveUpByStep = function(o) {
|
|
733
733
|
o === void 0 && (o = this.props.step);
|
|
734
734
|
const t = this.state.value[this.state.index], r = J(this.props.invert && this.props.orientation === "horizontal" ? t - o : t + o, this.props);
|
|
@@ -738,8 +738,8 @@ let Pe = function(n) {
|
|
|
738
738
|
const t = this.state.value[this.state.index], r = J(this.props.invert && this.props.orientation === "horizontal" ? t + o : t - o, this.props);
|
|
739
739
|
this.move(Math.max(r, this.props.min));
|
|
740
740
|
}, s.move = function(o) {
|
|
741
|
-
const t = this.state.value.slice(), { index: r } = this.state, { length:
|
|
742
|
-
if (o ===
|
|
741
|
+
const t = this.state.value.slice(), { index: r } = this.state, { length: l } = t, a = t[r];
|
|
742
|
+
if (o === a) return;
|
|
743
743
|
this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
|
|
744
744
|
const { pearling: c, max: u, min: m, minDistance: h } = this.props;
|
|
745
745
|
if (!c) {
|
|
@@ -747,27 +747,27 @@ let Pe = function(n) {
|
|
|
747
747
|
const f = t[r - 1];
|
|
748
748
|
o < f + h && (o = f + h);
|
|
749
749
|
}
|
|
750
|
-
if (r <
|
|
750
|
+
if (r < l - 1) {
|
|
751
751
|
const f = t[r + 1];
|
|
752
752
|
o > f - h && (o = f - h);
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
-
t[r] = o, c &&
|
|
755
|
+
t[r] = o, c && l > 1 && (o > a ? (this.pushSucceeding(t, h, r), function(f, b, v, _) {
|
|
756
756
|
for (let g = 0; g < f; g += 1) {
|
|
757
757
|
const C = _ - g * v;
|
|
758
758
|
b[f - 1 - g] > C && (b[f - 1 - g] = C);
|
|
759
759
|
}
|
|
760
|
-
}(
|
|
760
|
+
}(l, t, h, u)) : o < a && (this.pushPreceding(t, h, r), function(f, b, v, _) {
|
|
761
761
|
for (let g = 0; g < f; g += 1) {
|
|
762
762
|
const C = _ + g * v;
|
|
763
763
|
b[g] < C && (b[g] = C);
|
|
764
764
|
}
|
|
765
|
-
}(
|
|
765
|
+
}(l, t, h, m))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
|
|
766
766
|
}, s.pushSucceeding = function(o, t, r) {
|
|
767
|
-
let
|
|
768
|
-
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);
|
|
769
769
|
}, s.pushPreceding = function(o, t, r) {
|
|
770
|
-
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);
|
|
771
771
|
}, s.axisKey = function() {
|
|
772
772
|
return this.props.orientation === "vertical" ? "Y" : "X";
|
|
773
773
|
}, s.orthogonalAxisKey = function() {
|
|
@@ -791,29 +791,29 @@ let Pe = function(n) {
|
|
|
791
791
|
return (t = { position: "absolute" })[this.posMinKey()] = o, t;
|
|
792
792
|
}, s.renderThumbs = function(o) {
|
|
793
793
|
const { length: t } = o, r = [];
|
|
794
|
-
for (let
|
|
795
|
-
const
|
|
796
|
-
for (let
|
|
797
|
-
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;
|
|
798
798
|
}, s.renderTracks = function(o) {
|
|
799
799
|
const t = [], r = o.length - 1;
|
|
800
800
|
t.push(this.renderTrack(0, 0, o[0]));
|
|
801
|
-
for (let
|
|
801
|
+
for (let l = 0; l < r; l += 1) t.push(this.renderTrack(l + 1, o[l], o[l + 1]));
|
|
802
802
|
return t.push(this.renderTrack(r + 1, o[r], this.state.upperBound)), t;
|
|
803
803
|
}, s.renderMarks = function() {
|
|
804
804
|
let { marks: o } = this.props;
|
|
805
805
|
const t = this.props.max - this.props.min + 1;
|
|
806
|
-
return typeof o == "boolean" ? o = Array.from({ length: t }).map((r,
|
|
807
|
-
const
|
|
808
|
-
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);
|
|
809
809
|
});
|
|
810
810
|
}, s.render = function() {
|
|
811
811
|
const o = [], { value: t } = this.state, r = t.length;
|
|
812
812
|
for (let u = 0; u < r; u += 1) o[u] = this.calcOffset(t[u], u);
|
|
813
|
-
const
|
|
813
|
+
const l = this.props.withTracks ? this.renderTracks(o) : null, a = this.renderThumbs(o), c = this.props.marks ? this.renderMarks() : null;
|
|
814
814
|
return D.createElement("div", { ref: (u) => {
|
|
815
815
|
this.slider = u, this.resizeElementRef.current = u;
|
|
816
|
-
}, 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);
|
|
817
817
|
}, d;
|
|
818
818
|
}(D.Component);
|
|
819
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) };
|
|
@@ -832,20 +832,20 @@ const U2 = "_container_4u41i_2", W2 = "_unitLabel_4u41i_8", G2 = "_slider_4u41i_
|
|
|
832
832
|
onChange: o,
|
|
833
833
|
width: t = 300,
|
|
834
834
|
unit: r,
|
|
835
|
-
fontColor:
|
|
836
|
-
defaultValue:
|
|
835
|
+
fontColor: l = "#605B56",
|
|
836
|
+
defaultValue: a,
|
|
837
837
|
isDate: c
|
|
838
838
|
}) => {
|
|
839
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 = (_) => {
|
|
840
840
|
b(_), o == null || o({ min: _[0], max: _[1] });
|
|
841
841
|
};
|
|
842
842
|
return F(() => {
|
|
843
|
-
|
|
844
|
-
}, [
|
|
843
|
+
a || b(c ? [m, h] : [n, d]);
|
|
844
|
+
}, [a, c]), /* @__PURE__ */ p(
|
|
845
845
|
"div",
|
|
846
846
|
{
|
|
847
847
|
className: ae.container,
|
|
848
|
-
style: { width: `${t}px`, color: `${
|
|
848
|
+
style: { width: `${t}px`, color: `${l}` },
|
|
849
849
|
children: [
|
|
850
850
|
/* @__PURE__ */ i("div", { className: ae.unitLabel, children: /* @__PURE__ */ i("span", { children: u(r) }) }),
|
|
851
851
|
/* @__PURE__ */ i(
|
|
@@ -905,8 +905,8 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
905
905
|
const [s, o] = V(), {
|
|
906
906
|
type: t,
|
|
907
907
|
name: r,
|
|
908
|
-
values:
|
|
909
|
-
minValue:
|
|
908
|
+
values: l,
|
|
909
|
+
minValue: a,
|
|
910
910
|
maxValue: c,
|
|
911
911
|
unit: u,
|
|
912
912
|
step: m,
|
|
@@ -1069,12 +1069,12 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
1069
1069
|
]
|
|
1070
1070
|
}
|
|
1071
1071
|
),
|
|
1072
|
-
b && /* @__PURE__ */ i("div", { className: $e.checkboxContainer, children:
|
|
1072
|
+
b && /* @__PURE__ */ i("div", { className: $e.checkboxContainer, children: l.map((k, S) => {
|
|
1073
1073
|
var L;
|
|
1074
1074
|
return /* @__PURE__ */ i(
|
|
1075
1075
|
ft,
|
|
1076
1076
|
{
|
|
1077
|
-
onClick: () => x({ valueClicked: S, allValues:
|
|
1077
|
+
onClick: () => x({ valueClicked: S, allValues: l }),
|
|
1078
1078
|
indicator: k,
|
|
1079
1079
|
value: ((L = w[n.code[t == "both" ? 1 : 0]]) == null ? void 0 : L.has(S)) || !w[n.code[t == "both" ? 1 : 0]]
|
|
1080
1080
|
},
|
|
@@ -1085,7 +1085,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
|
|
|
1085
1085
|
bt,
|
|
1086
1086
|
{
|
|
1087
1087
|
onChange: x,
|
|
1088
|
-
min:
|
|
1088
|
+
min: a,
|
|
1089
1089
|
max: c,
|
|
1090
1090
|
unit: u,
|
|
1091
1091
|
defaultValue: w[n.code[0]] ? w[n.code[0]] : "",
|
|
@@ -1118,15 +1118,15 @@ const yt = ({
|
|
|
1118
1118
|
activeColor: s
|
|
1119
1119
|
//onChangeBothType,
|
|
1120
1120
|
}) => {
|
|
1121
|
-
const { activeSubcategory: o } = T((
|
|
1121
|
+
const { activeSubcategory: o } = T((l) => l), { name: t, indicators: r } = n || {};
|
|
1122
1122
|
return /* @__PURE__ */ i(
|
|
1123
1123
|
re,
|
|
1124
1124
|
{
|
|
1125
1125
|
title: t,
|
|
1126
1126
|
isOpen: o == `id${t}`,
|
|
1127
1127
|
onClick: () => {
|
|
1128
|
-
T.setState((
|
|
1129
|
-
activeSubcategory:
|
|
1128
|
+
T.setState((l) => ({
|
|
1129
|
+
activeSubcategory: l.activeSubcategory === `id${t}` ? "" : `id${t}`
|
|
1130
1130
|
}));
|
|
1131
1131
|
},
|
|
1132
1132
|
titleFontStyles: { fontSize: 16, fontWeight: 400 },
|
|
@@ -1135,14 +1135,14 @@ const yt = ({
|
|
|
1135
1135
|
height: 48,
|
|
1136
1136
|
color: d,
|
|
1137
1137
|
activeColor: s,
|
|
1138
|
-
children: r == null ? void 0 : r.map((
|
|
1138
|
+
children: r == null ? void 0 : r.map((l, a) => /* @__PURE__ */ i(
|
|
1139
1139
|
Ue,
|
|
1140
1140
|
{
|
|
1141
|
-
indicator:
|
|
1141
|
+
indicator: l,
|
|
1142
1142
|
fontColor: d,
|
|
1143
1143
|
activeColor: s
|
|
1144
1144
|
},
|
|
1145
|
-
`indicatorSub-${
|
|
1145
|
+
`indicatorSub-${a}`
|
|
1146
1146
|
))
|
|
1147
1147
|
}
|
|
1148
1148
|
);
|
|
@@ -1165,12 +1165,12 @@ const _t = ({
|
|
|
1165
1165
|
// onChangeBothType,
|
|
1166
1166
|
activeColor: d
|
|
1167
1167
|
}) => {
|
|
1168
|
-
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);
|
|
1169
1169
|
return n && /* @__PURE__ */ i(
|
|
1170
1170
|
re,
|
|
1171
1171
|
{
|
|
1172
1172
|
onClick: () => {
|
|
1173
|
-
T.setState((
|
|
1173
|
+
T.setState((a) => ({
|
|
1174
1174
|
activeCategory: r === `id${s}` ? "" : `id${s}`
|
|
1175
1175
|
}));
|
|
1176
1176
|
},
|
|
@@ -1178,21 +1178,21 @@ const _t = ({
|
|
|
1178
1178
|
isOpen: r === `id${s}`,
|
|
1179
1179
|
titleFontStyles: { fontSize: 18, fontWeight: "bold" },
|
|
1180
1180
|
showBottomBar: !1,
|
|
1181
|
-
color:
|
|
1181
|
+
color: l,
|
|
1182
1182
|
activeColor: d,
|
|
1183
|
-
children: o ? o.map((
|
|
1183
|
+
children: o ? o.map((a, c) => /* @__PURE__ */ i(
|
|
1184
1184
|
yt,
|
|
1185
1185
|
{
|
|
1186
|
-
subcategory:
|
|
1187
|
-
fontColor:
|
|
1186
|
+
subcategory: a,
|
|
1187
|
+
fontColor: l,
|
|
1188
1188
|
activeColor: d
|
|
1189
1189
|
},
|
|
1190
1190
|
`subcategory-${c}`
|
|
1191
|
-
)) : t && t.map((
|
|
1191
|
+
)) : t && t.map((a, c) => /* @__PURE__ */ i(
|
|
1192
1192
|
Ue,
|
|
1193
1193
|
{
|
|
1194
|
-
indicator:
|
|
1195
|
-
fontColor:
|
|
1194
|
+
indicator: a,
|
|
1195
|
+
fontColor: l,
|
|
1196
1196
|
activeColor: d
|
|
1197
1197
|
},
|
|
1198
1198
|
`indicator-${c}`
|
|
@@ -1218,20 +1218,20 @@ const vt = ({
|
|
|
1218
1218
|
inputsColor: t = "#605B56",
|
|
1219
1219
|
activeColor: r
|
|
1220
1220
|
}) => {
|
|
1221
|
-
const { tematicalFiltersSelected:
|
|
1221
|
+
const { tematicalFiltersSelected: l, activeFiltersType: a } = T((m) => m), { t: c } = $();
|
|
1222
1222
|
F(() => {
|
|
1223
|
-
}, [
|
|
1223
|
+
}, [l]), F(() => {
|
|
1224
1224
|
o && T.setState(() => ({ fontColor: o }));
|
|
1225
1225
|
}, [o]), F(() => {
|
|
1226
1226
|
t && T.setState(() => ({ inputsColor: t }));
|
|
1227
1227
|
}, [t]);
|
|
1228
1228
|
const u = () => {
|
|
1229
|
-
|
|
1229
|
+
a == "tematical" ? T.setState(() => ({ activeFiltersType: null })) : T.setState(() => ({ activeFiltersType: "tematical" }));
|
|
1230
1230
|
};
|
|
1231
1231
|
return /* @__PURE__ */ i(
|
|
1232
1232
|
re,
|
|
1233
1233
|
{
|
|
1234
|
-
isOpen:
|
|
1234
|
+
isOpen: a == "tematical",
|
|
1235
1235
|
title: s ? c(s) : "Tematical filters",
|
|
1236
1236
|
color: o,
|
|
1237
1237
|
activeColor: r,
|
|
@@ -1273,8 +1273,8 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1273
1273
|
indicators: o,
|
|
1274
1274
|
activeColor: t,
|
|
1275
1275
|
textColor: r,
|
|
1276
|
-
backgroundColor:
|
|
1277
|
-
onChangeAppliedFilters:
|
|
1276
|
+
backgroundColor: l,
|
|
1277
|
+
onChangeAppliedFilters: a,
|
|
1278
1278
|
saveAmbit: c,
|
|
1279
1279
|
namePlaceholder: u,
|
|
1280
1280
|
descPlaceholder: m,
|
|
@@ -1293,7 +1293,7 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1293
1293
|
}, [s]), F(() => {
|
|
1294
1294
|
h.includes("geographical") && x != b && T.setState({ geoLayers: b });
|
|
1295
1295
|
}, [b]), F(() => {
|
|
1296
|
-
|
|
1296
|
+
a(C);
|
|
1297
1297
|
}, [C]);
|
|
1298
1298
|
const O = () => {
|
|
1299
1299
|
w ? c({ name: w, description: S }) : B(!0);
|
|
@@ -1334,7 +1334,7 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1334
1334
|
title: g("applied_filters"),
|
|
1335
1335
|
isOpen: y == "applied",
|
|
1336
1336
|
textColor: r || "#fff",
|
|
1337
|
-
backgroundColor:
|
|
1337
|
+
backgroundColor: l || "#605B5680",
|
|
1338
1338
|
activeColor: t
|
|
1339
1339
|
}
|
|
1340
1340
|
),
|
|
@@ -1385,21 +1385,21 @@ const pn = "_barChartContainer_d2f1z_2", mn = {
|
|
|
1385
1385
|
gap: o = 23,
|
|
1386
1386
|
fontColor: t = "#605B56",
|
|
1387
1387
|
verticalPaddign: r = 10,
|
|
1388
|
-
horizontalPaddign:
|
|
1389
|
-
leftPadding:
|
|
1388
|
+
horizontalPaddign: l = 20,
|
|
1389
|
+
leftPadding: a = 200,
|
|
1390
1390
|
numberOfDivisions: c = 7,
|
|
1391
1391
|
maxValue: u = null
|
|
1392
1392
|
}) => {
|
|
1393
1393
|
const { t: m } = $(), { xScale: h, ticks: f, height: b } = me(() => {
|
|
1394
1394
|
if (n && n.length > 0) {
|
|
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 -
|
|
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);
|
|
1396
1396
|
return {
|
|
1397
1397
|
xScale: g,
|
|
1398
1398
|
ticks: C,
|
|
1399
1399
|
height: v,
|
|
1400
1400
|
width: d,
|
|
1401
1401
|
verticalPaddign: r,
|
|
1402
|
-
horizontalPaddign:
|
|
1402
|
+
horizontalPaddign: l
|
|
1403
1403
|
};
|
|
1404
1404
|
} else
|
|
1405
1405
|
return { xScale: null, ticks: [], height: 0 };
|
|
@@ -1409,12 +1409,12 @@ const pn = "_barChartContainer_d2f1z_2", mn = {
|
|
|
1409
1409
|
c,
|
|
1410
1410
|
s,
|
|
1411
1411
|
o,
|
|
1412
|
-
|
|
1412
|
+
l,
|
|
1413
1413
|
r,
|
|
1414
1414
|
u
|
|
1415
1415
|
]);
|
|
1416
|
-
return /* @__PURE__ */ i("div", { className: mn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d +
|
|
1417
|
-
/* @__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, _) => {
|
|
1418
1418
|
const g = h(v);
|
|
1419
1419
|
return /* @__PURE__ */ p("g", { transform: `translate(${g}, 0)`, children: [
|
|
1420
1420
|
/* @__PURE__ */ i(
|
|
@@ -1442,7 +1442,7 @@ const pn = "_barChartContainer_d2f1z_2", mn = {
|
|
|
1442
1442
|
return /* @__PURE__ */ p(
|
|
1443
1443
|
"g",
|
|
1444
1444
|
{
|
|
1445
|
-
transform: `translate(${
|
|
1445
|
+
transform: `translate(${a + l}, ${C})`,
|
|
1446
1446
|
children: [
|
|
1447
1447
|
/* @__PURE__ */ i(
|
|
1448
1448
|
"text",
|
|
@@ -1496,8 +1496,8 @@ const hn = "_graphicContainer_c9zrg_2", gn = "_titleContainer_c9zrg_14", et = {
|
|
|
1496
1496
|
borderColor: o = "#605B56",
|
|
1497
1497
|
title: t = "Graphic Title",
|
|
1498
1498
|
fontColor: r = "#605B56",
|
|
1499
|
-
maxValue:
|
|
1500
|
-
numberOfDivisions:
|
|
1499
|
+
maxValue: l = null,
|
|
1500
|
+
numberOfDivisions: a = 7,
|
|
1501
1501
|
leftPadding: c = 200
|
|
1502
1502
|
}) => {
|
|
1503
1503
|
const { t: u } = $();
|
|
@@ -1517,8 +1517,8 @@ const hn = "_graphicContainer_c9zrg_2", gn = "_titleContainer_c9zrg_14", et = {
|
|
|
1517
1517
|
data: n,
|
|
1518
1518
|
width: d,
|
|
1519
1519
|
fontColor: r,
|
|
1520
|
-
maxValue:
|
|
1521
|
-
numberOfDivisions:
|
|
1520
|
+
maxValue: l,
|
|
1521
|
+
numberOfDivisions: a,
|
|
1522
1522
|
leftPadding: c
|
|
1523
1523
|
}
|
|
1524
1524
|
)
|
|
@@ -1565,8 +1565,8 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1565
1565
|
defaultColor: o = "#92898A",
|
|
1566
1566
|
activeIndicator: t,
|
|
1567
1567
|
activeIndicatorType: r,
|
|
1568
|
-
onClickIndicator:
|
|
1569
|
-
multiple:
|
|
1568
|
+
onClickIndicator: l,
|
|
1569
|
+
multiple: a = !1,
|
|
1570
1570
|
onChangeType: c
|
|
1571
1571
|
}) => {
|
|
1572
1572
|
const { t: u } = $(), { name: m, type: h, disabled: f } = n;
|
|
@@ -1574,7 +1574,7 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1574
1574
|
const [b, v] = V(!1);
|
|
1575
1575
|
F(() => {
|
|
1576
1576
|
t && v(
|
|
1577
|
-
|
|
1577
|
+
a ? t.some(
|
|
1578
1578
|
(C) => C.name == String(m)
|
|
1579
1579
|
) : t.name == m
|
|
1580
1580
|
);
|
|
@@ -1659,7 +1659,7 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1659
1659
|
"div",
|
|
1660
1660
|
{
|
|
1661
1661
|
className: R.indicatorNameContainer,
|
|
1662
|
-
onClick: () => !f &&
|
|
1662
|
+
onClick: () => !f && l({ indicator: n }),
|
|
1663
1663
|
children: [
|
|
1664
1664
|
/* @__PURE__ */ i(
|
|
1665
1665
|
"div",
|
|
@@ -1670,7 +1670,7 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
|
|
|
1670
1670
|
backgroundColor: b ? s : "transparent"
|
|
1671
1671
|
},
|
|
1672
1672
|
className: R.dot,
|
|
1673
|
-
children:
|
|
1673
|
+
children: a && /* @__PURE__ */ i("img", { src: b ? _n : tt, alt: "" })
|
|
1674
1674
|
}
|
|
1675
1675
|
),
|
|
1676
1676
|
/* @__PURE__ */ i(
|
|
@@ -1720,8 +1720,8 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Dn = "_list_1dzsi_8", nt = {
|
|
|
1720
1720
|
activeColor: o,
|
|
1721
1721
|
activeSubCategory: t,
|
|
1722
1722
|
onClickSubCategory: r,
|
|
1723
|
-
id:
|
|
1724
|
-
activeIndicator:
|
|
1723
|
+
id: l,
|
|
1724
|
+
activeIndicator: a,
|
|
1725
1725
|
onClickIndicator: c,
|
|
1726
1726
|
multiple: u,
|
|
1727
1727
|
activeIndicatorType: m,
|
|
@@ -1729,8 +1729,8 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Dn = "_list_1dzsi_8", nt = {
|
|
|
1729
1729
|
}) => {
|
|
1730
1730
|
const { t: f } = $(), [b, v] = V(!1);
|
|
1731
1731
|
return F(() => {
|
|
1732
|
-
v(t ==
|
|
1733
|
-
}, [t,
|
|
1732
|
+
v(t == l);
|
|
1733
|
+
}, [t, l]), /* @__PURE__ */ p(
|
|
1734
1734
|
Ke.div,
|
|
1735
1735
|
{
|
|
1736
1736
|
className: nt.indicatorsSubCategory,
|
|
@@ -1738,7 +1738,7 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Dn = "_list_1dzsi_8", nt = {
|
|
|
1738
1738
|
animate: { height: b ? "auto" : "43px" },
|
|
1739
1739
|
transition: { duration: 0.4 },
|
|
1740
1740
|
children: [
|
|
1741
|
-
/* @__PURE__ */ i("button", { onClick: () => r(
|
|
1741
|
+
/* @__PURE__ */ i("button", { onClick: () => r(l), children: /* @__PURE__ */ p("h3", { style: { color: b ? o : s }, children: [
|
|
1742
1742
|
/* @__PURE__ */ i("span", { style: { color: b ? o : s }, children: b ? "-" : "+" }),
|
|
1743
1743
|
/* @__PURE__ */ i(
|
|
1744
1744
|
"span",
|
|
@@ -1754,7 +1754,7 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Dn = "_list_1dzsi_8", nt = {
|
|
|
1754
1754
|
indicator: _,
|
|
1755
1755
|
defaultColor: s,
|
|
1756
1756
|
activeColor: o,
|
|
1757
|
-
activeIndicator:
|
|
1757
|
+
activeIndicator: a,
|
|
1758
1758
|
onClickIndicator: c,
|
|
1759
1759
|
multiple: u,
|
|
1760
1760
|
activeIndicatorType: m,
|
|
@@ -1785,8 +1785,8 @@ const kt = ({
|
|
|
1785
1785
|
defaultColor: o,
|
|
1786
1786
|
onClickCategory: t,
|
|
1787
1787
|
activeCategory: r,
|
|
1788
|
-
activeSubCategory:
|
|
1789
|
-
onClickSubCategory:
|
|
1788
|
+
activeSubCategory: l,
|
|
1789
|
+
onClickSubCategory: a,
|
|
1790
1790
|
activeIndicator: c,
|
|
1791
1791
|
onClickIndicator: u,
|
|
1792
1792
|
multiple: m,
|
|
@@ -1825,9 +1825,9 @@ const kt = ({
|
|
|
1825
1825
|
xt,
|
|
1826
1826
|
{
|
|
1827
1827
|
id: y,
|
|
1828
|
-
activeSubCategory:
|
|
1828
|
+
activeSubCategory: l,
|
|
1829
1829
|
subcName: C,
|
|
1830
|
-
onClickSubCategory:
|
|
1830
|
+
onClickSubCategory: a,
|
|
1831
1831
|
activeIndicator: c,
|
|
1832
1832
|
onClickIndicator: u,
|
|
1833
1833
|
multiple: m,
|
|
@@ -1886,8 +1886,8 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
|
|
|
1886
1886
|
// Si multiple es true, debe ser un array de strings, sino un string
|
|
1887
1887
|
defaultValue: r = null,
|
|
1888
1888
|
//si el indicador es tipo "both" cuando se cambia el tipo
|
|
1889
|
-
changeIndType:
|
|
1890
|
-
activeIndicatorType:
|
|
1889
|
+
changeIndType: l,
|
|
1890
|
+
activeIndicatorType: a
|
|
1891
1891
|
}) => {
|
|
1892
1892
|
const { t: c } = $(), [u, m] = V(), [h, f] = V(), [b, v] = V(), _ = (w) => {
|
|
1893
1893
|
m(u == w ? null : w);
|
|
@@ -1908,7 +1908,7 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
|
|
|
1908
1908
|
) ? k.filter(
|
|
1909
1909
|
(S) => S.name != String(w.name)
|
|
1910
1910
|
) : [...k, w]
|
|
1911
|
-
), w.type == "both" &&
|
|
1911
|
+
), w.type == "both" && l("cat");
|
|
1912
1912
|
}
|
|
1913
1913
|
};
|
|
1914
1914
|
F(() => {
|
|
@@ -1951,8 +1951,8 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
|
|
|
1951
1951
|
defaultColor: s,
|
|
1952
1952
|
multiple: t,
|
|
1953
1953
|
onChange: o,
|
|
1954
|
-
onChangeType:
|
|
1955
|
-
activeIndicatorType:
|
|
1954
|
+
onChangeType: l,
|
|
1955
|
+
activeIndicatorType: a
|
|
1956
1956
|
},
|
|
1957
1957
|
`categoryKey${k}`
|
|
1958
1958
|
))
|
|
@@ -1976,7 +1976,7 @@ const In = "_langSelector_o9enq_2", On = "_currentLang_o9enq_14", qn = "_arrow_o
|
|
|
1976
1976
|
prevImg: Rn,
|
|
1977
1977
|
langMenu: En
|
|
1978
1978
|
}, Pn = ({ langs: n, arrow: d, imgPrev: s }) => {
|
|
1979
|
-
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) => {
|
|
1980
1980
|
r.changeLanguage(c), t(!1);
|
|
1981
1981
|
};
|
|
1982
1982
|
return /* @__PURE__ */ p("div", { className: le.langSelector, children: [
|
|
@@ -1989,7 +1989,7 @@ const In = "_langSelector_o9enq_2", On = "_currentLang_o9enq_14", qn = "_arrow_o
|
|
|
1989
1989
|
},
|
|
1990
1990
|
children: [
|
|
1991
1991
|
s && /* @__PURE__ */ i("img", { className: le.prevImg, src: s }),
|
|
1992
|
-
(
|
|
1992
|
+
(l == null ? void 0 : l.titleSelected) || (l == null ? void 0 : l.title),
|
|
1993
1993
|
/* @__PURE__ */ i("img", { src: d, className: le.arrow })
|
|
1994
1994
|
]
|
|
1995
1995
|
}
|
|
@@ -1997,8 +1997,8 @@ const In = "_langSelector_o9enq_2", On = "_currentLang_o9enq_14", qn = "_arrow_o
|
|
|
1997
1997
|
o && /* @__PURE__ */ i("div", { className: le.langMenu, children: n.map((c) => /* @__PURE__ */ i(
|
|
1998
1998
|
"button",
|
|
1999
1999
|
{
|
|
2000
|
-
className: (
|
|
2001
|
-
onClick: () =>
|
|
2000
|
+
className: (l == null ? void 0 : l.code) == c.code ? le.active : "",
|
|
2001
|
+
onClick: () => a(c.code),
|
|
2002
2002
|
children: c.title
|
|
2003
2003
|
},
|
|
2004
2004
|
c.code
|
|
@@ -2053,9 +2053,9 @@ const jn = "_legendContainer_qs4x9_3", zn = "_closeButton_qs4x9_31", Zn = "_titl
|
|
|
2053
2053
|
absoluteValue: r,
|
|
2054
2054
|
//Function to be called when the button is clicked (optional).
|
|
2055
2055
|
//If this is null or undefined the button wont be displayed.
|
|
2056
|
-
onClickMoreInfo:
|
|
2056
|
+
onClickMoreInfo: l,
|
|
2057
2057
|
//If not passed it will read t("moreInformation")
|
|
2058
|
-
buttonTitle:
|
|
2058
|
+
buttonTitle: a,
|
|
2059
2059
|
onClickClose: c
|
|
2060
2060
|
}) => {
|
|
2061
2061
|
const { t: u } = $();
|
|
@@ -2131,7 +2131,7 @@ const jn = "_legendContainer_qs4x9_3", zn = "_closeButton_qs4x9_31", Zn = "_titl
|
|
|
2131
2131
|
/* @__PURE__ */ i("div", { className: I.absoluteValueText, children: /* @__PURE__ */ i("span", { children: u(r.noDataText) }) })
|
|
2132
2132
|
] })
|
|
2133
2133
|
] }),
|
|
2134
|
-
|
|
2134
|
+
l && /* @__PURE__ */ i("button", { className: I.moreInfoContainer, onClick: l, children: a || u("moreInformation") })
|
|
2135
2135
|
]
|
|
2136
2136
|
}
|
|
2137
2137
|
);
|
|
@@ -2186,8 +2186,8 @@ const l0 = ({
|
|
|
2186
2186
|
mapStyle: o,
|
|
2187
2187
|
firstSymbolLayer: t,
|
|
2188
2188
|
cssProps: r = "",
|
|
2189
|
-
onClick:
|
|
2190
|
-
interactiveLayers:
|
|
2189
|
+
onClick: l = "",
|
|
2190
|
+
interactiveLayers: a = [],
|
|
2191
2191
|
popUp: c = !1,
|
|
2192
2192
|
sources: u = [],
|
|
2193
2193
|
layers: m = []
|
|
@@ -2209,8 +2209,8 @@ const l0 = ({
|
|
|
2209
2209
|
maxZoom: d,
|
|
2210
2210
|
minZoom: s,
|
|
2211
2211
|
mapStyle: o,
|
|
2212
|
-
onClick:
|
|
2213
|
-
interactiveLayerIds:
|
|
2212
|
+
onClick: l,
|
|
2213
|
+
interactiveLayerIds: a,
|
|
2214
2214
|
children: [
|
|
2215
2215
|
u.length && u.map((_, g) => /* @__PURE__ */ i(
|
|
2216
2216
|
Et,
|
|
@@ -2314,8 +2314,8 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
|
|
|
2314
2314
|
mapStyle: o,
|
|
2315
2315
|
firstSymbolLayer: t,
|
|
2316
2316
|
cssProps: r = {},
|
|
2317
|
-
onClick:
|
|
2318
|
-
interactiveLayers:
|
|
2317
|
+
onClick: l = "",
|
|
2318
|
+
interactiveLayers: a = [],
|
|
2319
2319
|
sources: c = [],
|
|
2320
2320
|
layers: u = [],
|
|
2321
2321
|
popUpParams: m,
|
|
@@ -2346,8 +2346,8 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
|
|
|
2346
2346
|
maxZoom: d,
|
|
2347
2347
|
minZoom: s,
|
|
2348
2348
|
mapStyle: o,
|
|
2349
|
-
onClick:
|
|
2350
|
-
interactiveLayerIds:
|
|
2349
|
+
onClick: l,
|
|
2350
|
+
interactiveLayerIds: a,
|
|
2351
2351
|
children: [
|
|
2352
2352
|
c.length && c.map((_, g) => /* @__PURE__ */ i(
|
|
2353
2353
|
Kt,
|
|
@@ -2441,10 +2441,11 @@ const g0 = "_sectionBar_1egwc_2", C0 = "_leftContent_1egwc_14", f0 = "_textConta
|
|
|
2441
2441
|
subtitle: s,
|
|
2442
2442
|
rightContent: o,
|
|
2443
2443
|
mainColor: t,
|
|
2444
|
-
width: r
|
|
2444
|
+
width: r,
|
|
2445
|
+
borderTop: l = !1
|
|
2445
2446
|
}) => {
|
|
2446
2447
|
const { t: a } = $();
|
|
2447
|
-
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: [
|
|
2448
2449
|
/* @__PURE__ */ p("div", { className: te.leftContent, children: [
|
|
2449
2450
|
n && /* @__PURE__ */ i("img", { src: n, alt: "Icono", className: te.icon }),
|
|
2450
2451
|
/* @__PURE__ */ p("div", { className: te.textContainer, children: [
|
|
@@ -2466,8 +2467,9 @@ v0.propTypes = {
|
|
|
2466
2467
|
// elementos React que se renderizan en la derecha
|
|
2467
2468
|
mainColor: e.string,
|
|
2468
2469
|
// color del título (hex, rgb, etc.)
|
|
2469
|
-
width: e.oneOfType([e.string, e.number])
|
|
2470
|
+
width: e.oneOfType([e.string, e.number]),
|
|
2470
2471
|
// ancho de la barra
|
|
2472
|
+
borderTop: e.bool
|
|
2471
2473
|
};
|
|
2472
2474
|
const w0 = Yt({
|
|
2473
2475
|
name: "mapSlice",
|
|
@@ -2507,12 +2509,12 @@ const w0 = Yt({
|
|
|
2507
2509
|
lastYear: o = 2050,
|
|
2508
2510
|
zIndex: t = 10,
|
|
2509
2511
|
rightBarOpen: r = !1,
|
|
2510
|
-
onChange:
|
|
2511
|
-
console.log("year changed to ",
|
|
2512
|
+
onChange: l = (a) => {
|
|
2513
|
+
console.log("year changed to ", a);
|
|
2512
2514
|
}
|
|
2513
2515
|
}) => {
|
|
2514
|
-
const [
|
|
2515
|
-
c(y),
|
|
2516
|
+
const [a, c] = V(d), u = (C, y) => {
|
|
2517
|
+
c(y), l(y);
|
|
2516
2518
|
}, [m, h] = V(!1), f = () => {
|
|
2517
2519
|
h(!0);
|
|
2518
2520
|
}, b = () => {
|
|
@@ -2532,7 +2534,7 @@ const w0 = Yt({
|
|
|
2532
2534
|
}
|
|
2533
2535
|
}, [y]);
|
|
2534
2536
|
})(() => {
|
|
2535
|
-
m && (
|
|
2537
|
+
m && (a != 2050 ? (c(a + 1), l(a + 1)) : (c(2025), l(2025)));
|
|
2536
2538
|
}, 1e3);
|
|
2537
2539
|
const _ = Xt({
|
|
2538
2540
|
palette: {
|
|
@@ -2574,7 +2576,7 @@ const w0 = Yt({
|
|
|
2574
2576
|
Qt,
|
|
2575
2577
|
{
|
|
2576
2578
|
"aria-label": "TimeSlider",
|
|
2577
|
-
value:
|
|
2579
|
+
value: a,
|
|
2578
2580
|
valueLabelDisplay: "on",
|
|
2579
2581
|
step: 1,
|
|
2580
2582
|
marks: g,
|
|
@@ -2615,19 +2617,19 @@ const L0 = "_TopNavMenuContainer_12mp4_2", M0 = "_topNavOptions_12mp4_13", D0 =
|
|
|
2615
2617
|
}
|
|
2616
2618
|
}) => {
|
|
2617
2619
|
const { t: r } = $();
|
|
2618
|
-
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(
|
|
2619
2621
|
t2,
|
|
2620
2622
|
{
|
|
2621
|
-
to:
|
|
2623
|
+
to: l.url,
|
|
2622
2624
|
className: ({ isActive: c }) => `${Ie.topNavOptions} ${c ? Ie.active : ""} `,
|
|
2623
|
-
onClick: () => t(
|
|
2625
|
+
onClick: () => t(l.url),
|
|
2624
2626
|
style: ({ isActive: c }) => ({
|
|
2625
2627
|
color: o,
|
|
2626
2628
|
borderBottom: c ? `5px solid ${s}` : "5px solid transparent"
|
|
2627
2629
|
}),
|
|
2628
|
-
children: r(
|
|
2630
|
+
children: r(l.name)
|
|
2629
2631
|
},
|
|
2630
|
-
|
|
2632
|
+
a
|
|
2631
2633
|
)) });
|
|
2632
2634
|
};
|
|
2633
2635
|
F0.propTypes = {
|
|
@@ -2649,10 +2651,10 @@ const V0 = "_LogInButton_1vxj5_2", A0 = {
|
|
|
2649
2651
|
containerStyles: o,
|
|
2650
2652
|
userName: t = "",
|
|
2651
2653
|
isLoggedIn: r = !1,
|
|
2652
|
-
onClickLogIn:
|
|
2654
|
+
onClickLogIn: l = () => {
|
|
2653
2655
|
console.log("Login clicked");
|
|
2654
2656
|
},
|
|
2655
|
-
onClickLogOut:
|
|
2657
|
+
onClickLogOut: a = () => {
|
|
2656
2658
|
console.log("Logout clicked");
|
|
2657
2659
|
}
|
|
2658
2660
|
}) => {
|
|
@@ -2662,7 +2664,7 @@ const V0 = "_LogInButton_1vxj5_2", A0 = {
|
|
|
2662
2664
|
{
|
|
2663
2665
|
style: { ...o },
|
|
2664
2666
|
className: `${A0.LogInButton} link ${n}`,
|
|
2665
|
-
onClick: r ?
|
|
2667
|
+
onClick: r ? a : l,
|
|
2666
2668
|
children: r ? t || c(s) : c(d)
|
|
2667
2669
|
}
|
|
2668
2670
|
);
|
|
@@ -2726,8 +2728,8 @@ const oi = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2726
2728
|
activeColor: o,
|
|
2727
2729
|
fontColor: t,
|
|
2728
2730
|
moreInfo: r,
|
|
2729
|
-
columns:
|
|
2730
|
-
elementButtons:
|
|
2731
|
+
columns: l,
|
|
2732
|
+
elementButtons: a,
|
|
2731
2733
|
processTooltip: c,
|
|
2732
2734
|
defaultTooltip: u,
|
|
2733
2735
|
showEye: m = !0
|
|
@@ -2739,7 +2741,7 @@ const oi = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2739
2741
|
className: Z.listElement,
|
|
2740
2742
|
style: { borderBottom: `1px solid ${t}` },
|
|
2741
2743
|
children: [
|
|
2742
|
-
/* @__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: [
|
|
2743
2745
|
m && (s ? /* @__PURE__ */ i(si, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ i(
|
|
2744
2746
|
"img",
|
|
2745
2747
|
{
|
|
@@ -2755,17 +2757,17 @@ const oi = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2755
2757
|
/* @__PURE__ */ i("img", { src: ni }),
|
|
2756
2758
|
/* @__PURE__ */ i(se, { text: c, position: "left" })
|
|
2757
2759
|
] }),
|
|
2758
|
-
|
|
2759
|
-
/* @__PURE__ */ i("button", { onClick: () =>
|
|
2760
|
-
/* @__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" })
|
|
2761
2763
|
] }),
|
|
2762
|
-
|
|
2763
|
-
/* @__PURE__ */ i("button", { onClick: () =>
|
|
2764
|
-
/* @__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" })
|
|
2765
2767
|
] }),
|
|
2766
|
-
|
|
2767
|
-
/* @__PURE__ */ i("button", { onClick: () =>
|
|
2768
|
-
/* @__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" })
|
|
2769
2771
|
] }),
|
|
2770
2772
|
n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
2771
2773
|
/* @__PURE__ */ i("img", { src: ii }),
|
|
@@ -2827,9 +2829,9 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2827
2829
|
activeColor: o,
|
|
2828
2830
|
buttonContainerStyles: t = {},
|
|
2829
2831
|
containerStyles: r = {},
|
|
2830
|
-
newElementButton:
|
|
2832
|
+
newElementButton: l,
|
|
2831
2833
|
//{label: 'text', onClick: function(), disabled}/null
|
|
2832
|
-
onClickElement:
|
|
2834
|
+
onClickElement: a = (v) => console.log(`OnCLickElement: ${v}`),
|
|
2833
2835
|
columns: c,
|
|
2834
2836
|
// {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
|
|
2835
2837
|
elementButtons: u,
|
|
@@ -2882,7 +2884,7 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2882
2884
|
listelement: y,
|
|
2883
2885
|
fontColor: s,
|
|
2884
2886
|
activeColor: o,
|
|
2885
|
-
onClickElement:
|
|
2887
|
+
onClickElement: a,
|
|
2886
2888
|
columns: c,
|
|
2887
2889
|
elementButtons: u,
|
|
2888
2890
|
moreInfo: m,
|
|
@@ -2892,14 +2894,14 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2892
2894
|
},
|
|
2893
2895
|
`elementKey${y.id}`
|
|
2894
2896
|
)) }),
|
|
2895
|
-
|
|
2897
|
+
l && /* @__PURE__ */ i("div", { className: K.newElementButtonContainer, children: /* @__PURE__ */ i(
|
|
2896
2898
|
Me,
|
|
2897
2899
|
{
|
|
2898
2900
|
style: { ...t },
|
|
2899
|
-
onClick:
|
|
2901
|
+
onClick: l.onClick,
|
|
2900
2902
|
borderColor: "grey",
|
|
2901
|
-
disabled:
|
|
2902
|
-
children: v(
|
|
2903
|
+
disabled: l.disabled || !1,
|
|
2904
|
+
children: v(l.label)
|
|
2903
2905
|
}
|
|
2904
2906
|
) })
|
|
2905
2907
|
]
|
|
@@ -2992,17 +2994,17 @@ var Bt = (n) => /^\w*$/.test(n), Ze = (n) => n === void 0, yi = (n) => Array.isA
|
|
|
2992
2994
|
return Ze(o) || o === n ? Ze(n[d]) ? s : n[d] : o;
|
|
2993
2995
|
}, Oe = (n) => typeof n == "boolean", lt = (n, d, s) => {
|
|
2994
2996
|
let o = -1;
|
|
2995
|
-
const t = Bt(d) ? [d] : Tt(d), r = t.length,
|
|
2997
|
+
const t = Bt(d) ? [d] : Tt(d), r = t.length, l = r - 1;
|
|
2996
2998
|
for (; ++o < r; ) {
|
|
2997
|
-
const
|
|
2999
|
+
const a = t[o];
|
|
2998
3000
|
let c = s;
|
|
2999
|
-
if (o !==
|
|
3000
|
-
const u = n[
|
|
3001
|
+
if (o !== l) {
|
|
3002
|
+
const u = n[a];
|
|
3001
3003
|
c = _e(u) || Array.isArray(u) ? u : isNaN(+t[o + 1]) ? {} : [];
|
|
3002
3004
|
}
|
|
3003
|
-
if (
|
|
3005
|
+
if (a === "__proto__" || a === "constructor" || a === "prototype")
|
|
3004
3006
|
return;
|
|
3005
|
-
n[
|
|
3007
|
+
n[a] = c, n = n[a];
|
|
3006
3008
|
}
|
|
3007
3009
|
};
|
|
3008
3010
|
const ct = {
|
|
@@ -3020,15 +3022,15 @@ var _i = (n, d, s, o = !0) => {
|
|
|
3020
3022
|
for (const r in n)
|
|
3021
3023
|
Object.defineProperty(t, r, {
|
|
3022
3024
|
get: () => {
|
|
3023
|
-
const
|
|
3024
|
-
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];
|
|
3025
3027
|
}
|
|
3026
3028
|
});
|
|
3027
3029
|
return t;
|
|
3028
3030
|
};
|
|
3029
3031
|
const Mt = typeof window < "u" ? pe.useLayoutEffect : pe.useEffect;
|
|
3030
3032
|
function vi(n) {
|
|
3031
|
-
const d = Ge(), { control: s = d.control, disabled: o, name: t, exact: r } = n || {}, [
|
|
3033
|
+
const d = Ge(), { control: s = d.control, disabled: o, name: t, exact: r } = n || {}, [l, a] = D.useState(s._formState), c = D.useRef({
|
|
3032
3034
|
isDirty: !1,
|
|
3033
3035
|
isLoading: !1,
|
|
3034
3036
|
dirtyFields: !1,
|
|
@@ -3043,29 +3045,29 @@ function vi(n) {
|
|
|
3043
3045
|
formState: c.current,
|
|
3044
3046
|
exact: r,
|
|
3045
3047
|
callback: (u) => {
|
|
3046
|
-
!o &&
|
|
3048
|
+
!o && a({
|
|
3047
3049
|
...s._formState,
|
|
3048
3050
|
...u
|
|
3049
3051
|
});
|
|
3050
3052
|
}
|
|
3051
3053
|
}), [t, o, r]), D.useEffect(() => {
|
|
3052
3054
|
c.current.isValid && s._setValid(!0);
|
|
3053
|
-
}, [s]), D.useMemo(() => _i(
|
|
3055
|
+
}, [s]), D.useMemo(() => _i(l, s, c.current, !1), [l, s]);
|
|
3054
3056
|
}
|
|
3055
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;
|
|
3056
3058
|
function ki(n) {
|
|
3057
|
-
const d = Ge(), { control: s = d.control, name: o, defaultValue: t, disabled: r, exact:
|
|
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));
|
|
3058
3060
|
return Mt(() => s._subscribe({
|
|
3059
3061
|
name: o,
|
|
3060
3062
|
formState: {
|
|
3061
3063
|
values: !0
|
|
3062
3064
|
},
|
|
3063
|
-
exact:
|
|
3064
|
-
callback: (m) => !r && u(xi(o, s._names, m.values || s._formValues, !1,
|
|
3065
|
-
}), [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;
|
|
3066
3068
|
}
|
|
3067
3069
|
function Ni(n) {
|
|
3068
|
-
const d = Ge(), { name: s, disabled: o, control: t = d.control, shouldUnregister: r } = n,
|
|
3070
|
+
const d = Ge(), { name: s, disabled: o, control: t = d.control, shouldUnregister: r } = n, l = Ci(t._names.array, s), a = ki({
|
|
3069
3071
|
control: t,
|
|
3070
3072
|
name: s,
|
|
3071
3073
|
defaultValue: P(t._formValues, s, P(t._defaultValues, s, n.defaultValue)),
|
|
@@ -3076,7 +3078,7 @@ function Ni(n) {
|
|
|
3076
3078
|
exact: !0
|
|
3077
3079
|
}), u = D.useRef(n), m = D.useRef(t.register(s, {
|
|
3078
3080
|
...n.rules,
|
|
3079
|
-
value:
|
|
3081
|
+
value: a,
|
|
3080
3082
|
...Oe(n.disabled) ? { disabled: n.disabled } : {}
|
|
3081
3083
|
})), h = D.useMemo(() => Object.defineProperties({}, {
|
|
3082
3084
|
invalid: {
|
|
@@ -3121,12 +3123,12 @@ function Ni(n) {
|
|
|
3121
3123
|
});
|
|
3122
3124
|
}, [t._fields, s]), _ = D.useMemo(() => ({
|
|
3123
3125
|
name: s,
|
|
3124
|
-
value:
|
|
3126
|
+
value: a,
|
|
3125
3127
|
...Oe(o) || c.disabled ? { disabled: c.disabled || o } : {},
|
|
3126
3128
|
onChange: f,
|
|
3127
3129
|
onBlur: b,
|
|
3128
3130
|
ref: v
|
|
3129
|
-
}), [s, o, c.disabled, f, b, v,
|
|
3131
|
+
}), [s, o, c.disabled, f, b, v, a]);
|
|
3130
3132
|
return D.useEffect(() => {
|
|
3131
3133
|
const g = t._options.shouldUnregister || r;
|
|
3132
3134
|
t.register(s, {
|
|
@@ -3141,10 +3143,10 @@ function Ni(n) {
|
|
|
3141
3143
|
const y = $t(P(t._options.defaultValues, s));
|
|
3142
3144
|
lt(t._defaultValues, s, y), Ze(P(t._formValues, s)) && lt(t._formValues, s, y);
|
|
3143
3145
|
}
|
|
3144
|
-
return !
|
|
3145
|
-
(
|
|
3146
|
+
return !l && t.register(s), () => {
|
|
3147
|
+
(l ? g && !t._state.action : g) ? t.unregister(s) : C(s, !1);
|
|
3146
3148
|
};
|
|
3147
|
-
}, [s, t,
|
|
3149
|
+
}, [s, t, l, r]), D.useEffect(() => {
|
|
3148
3150
|
t._setDisabledField({
|
|
3149
3151
|
disabled: o,
|
|
3150
3152
|
name: s
|
|
@@ -3185,8 +3187,8 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3185
3187
|
type: o,
|
|
3186
3188
|
label: t,
|
|
3187
3189
|
maxLength: r,
|
|
3188
|
-
required:
|
|
3189
|
-
validateFunction:
|
|
3190
|
+
required: l,
|
|
3191
|
+
validateFunction: a,
|
|
3190
3192
|
placeholder: c,
|
|
3191
3193
|
errorColor: u = "red",
|
|
3192
3194
|
width: m = 325,
|
|
@@ -3195,7 +3197,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3195
3197
|
},
|
|
3196
3198
|
forgotPassLabel: f = "forgot-password"
|
|
3197
3199
|
} = n, { t: b } = $(), { control: v, trigger: _, clearErrors: g } = d, { errorColor: C } = xe((k) => k), [y, x] = V(!1);
|
|
3198
|
-
oe(
|
|
3200
|
+
oe(l);
|
|
3199
3201
|
const w = () => o ? o === "password" && y ? "text" : o : "text";
|
|
3200
3202
|
return /* @__PURE__ */ i(
|
|
3201
3203
|
ve,
|
|
@@ -3203,9 +3205,9 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3203
3205
|
name: s,
|
|
3204
3206
|
control: v,
|
|
3205
3207
|
rules: {
|
|
3206
|
-
required:
|
|
3208
|
+
required: l ? `${b(t)} ${b("errorMessages.required")}` : !1,
|
|
3207
3209
|
maxLength: r || void 0,
|
|
3208
|
-
validate:
|
|
3210
|
+
validate: a || void 0
|
|
3209
3211
|
},
|
|
3210
3212
|
render: ({ field: k, fieldState: S }) => {
|
|
3211
3213
|
var L;
|
|
@@ -3213,7 +3215,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3213
3215
|
/* @__PURE__ */ p("h3", { className: be.labelContainer, children: [
|
|
3214
3216
|
b(t),
|
|
3215
3217
|
" ",
|
|
3216
|
-
|
|
3218
|
+
l && /* @__PURE__ */ i("label", { style: { color: S.error ? u : "" }, children: "*" })
|
|
3217
3219
|
] }),
|
|
3218
3220
|
/* @__PURE__ */ p(
|
|
3219
3221
|
"div",
|
|
@@ -3269,23 +3271,23 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3269
3271
|
type: o,
|
|
3270
3272
|
label: t,
|
|
3271
3273
|
maxLength: r,
|
|
3272
|
-
required:
|
|
3273
|
-
validateFunction:
|
|
3274
|
+
required: l,
|
|
3275
|
+
validateFunction: a,
|
|
3274
3276
|
placeholder: c,
|
|
3275
3277
|
errorColor: u = "red",
|
|
3276
3278
|
width: m = 325,
|
|
3277
3279
|
options: h = []
|
|
3278
3280
|
} = n, { t: f } = $(), { control: b, trigger: v, clearErrors: _ } = d, { errorColor: g } = xe((C) => C);
|
|
3279
|
-
return oe(
|
|
3281
|
+
return oe(l), /* @__PURE__ */ i(
|
|
3280
3282
|
ve,
|
|
3281
3283
|
{
|
|
3282
3284
|
name: s,
|
|
3283
3285
|
control: b,
|
|
3284
3286
|
rules: {
|
|
3285
|
-
required:
|
|
3286
|
-
validate:
|
|
3287
|
+
required: l ? `${f(t)} ${f("errorMessages.required")}` : !1,
|
|
3288
|
+
validate: a ? (C) => {
|
|
3287
3289
|
let y = d.getValues();
|
|
3288
|
-
return
|
|
3290
|
+
return a(C, y);
|
|
3289
3291
|
} : void 0
|
|
3290
3292
|
},
|
|
3291
3293
|
render: ({ field: C, fieldState: y }) => {
|
|
@@ -3294,7 +3296,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3294
3296
|
/* @__PURE__ */ p("h3", { className: de.labelContainer, children: [
|
|
3295
3297
|
f(t),
|
|
3296
3298
|
" ",
|
|
3297
|
-
|
|
3299
|
+
l && /* @__PURE__ */ i("label", { style: { color: y.error ? u : "" }, children: "*" })
|
|
3298
3300
|
] }),
|
|
3299
3301
|
/* @__PURE__ */ p("div", { className: de.inputContainer, style: { width: m }, children: [
|
|
3300
3302
|
/* @__PURE__ */ p(
|
|
@@ -3353,8 +3355,8 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3353
3355
|
label: o,
|
|
3354
3356
|
required: t,
|
|
3355
3357
|
validateFunction: r,
|
|
3356
|
-
errorColor:
|
|
3357
|
-
options:
|
|
3358
|
+
errorColor: l = "red",
|
|
3359
|
+
options: a = [],
|
|
3358
3360
|
multi: c = !1
|
|
3359
3361
|
} = n, { t: u } = $(), { control: m, trigger: h, clearErrors: f } = d, { errorColor: b } = xe((g) => g), v = ({ options: g, onChange: C, actualValue: y }) => {
|
|
3360
3362
|
if (c && y && y.length > 0) {
|
|
@@ -3390,7 +3392,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3390
3392
|
t && /* @__PURE__ */ i(
|
|
3391
3393
|
"label",
|
|
3392
3394
|
{
|
|
3393
|
-
style: { color: k.error ?
|
|
3395
|
+
style: { color: k.error ? l : "" },
|
|
3394
3396
|
children: "*"
|
|
3395
3397
|
}
|
|
3396
3398
|
)
|
|
@@ -3398,7 +3400,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3398
3400
|
}
|
|
3399
3401
|
) }),
|
|
3400
3402
|
/* @__PURE__ */ p("div", { className: ne.inputContainer, children: [
|
|
3401
|
-
|
|
3403
|
+
a.map(
|
|
3402
3404
|
({
|
|
3403
3405
|
label: L,
|
|
3404
3406
|
value: N,
|
|
@@ -3415,11 +3417,11 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3415
3417
|
onChange: () => {
|
|
3416
3418
|
c ? M ? v({
|
|
3417
3419
|
actualValue: x,
|
|
3418
|
-
options:
|
|
3420
|
+
options: a,
|
|
3419
3421
|
onChange: C
|
|
3420
3422
|
}) : _({
|
|
3421
3423
|
actualValue: x,
|
|
3422
|
-
options:
|
|
3424
|
+
options: a,
|
|
3423
3425
|
onChange: C
|
|
3424
3426
|
}) : C(N);
|
|
3425
3427
|
},
|
|
@@ -3435,7 +3437,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3435
3437
|
we,
|
|
3436
3438
|
{
|
|
3437
3439
|
errorMessage: (S = k.error) == null ? void 0 : S.message,
|
|
3438
|
-
errorColor: b ||
|
|
3440
|
+
errorColor: b || l
|
|
3439
3441
|
}
|
|
3440
3442
|
)
|
|
3441
3443
|
] })
|
|
@@ -3457,8 +3459,8 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3457
3459
|
code: o,
|
|
3458
3460
|
label: t,
|
|
3459
3461
|
minValue: r = 1,
|
|
3460
|
-
maxValue:
|
|
3461
|
-
defValue:
|
|
3462
|
+
maxValue: l = 5,
|
|
3463
|
+
defValue: a = 3,
|
|
3462
3464
|
thumbColor: c = "#B32F5D",
|
|
3463
3465
|
//trackColors = ["#B32F5D", "#EFEFEF"],
|
|
3464
3466
|
required: u,
|
|
@@ -3469,19 +3471,19 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3469
3471
|
maxText: v,
|
|
3470
3472
|
disabled: _ = !1,
|
|
3471
3473
|
marks: g = Array.from(
|
|
3472
|
-
{ length:
|
|
3474
|
+
{ length: l - r + 1 },
|
|
3473
3475
|
(B, O) => r + O
|
|
3474
3476
|
),
|
|
3475
3477
|
showMarksNumber: C = !0
|
|
3476
3478
|
} = n, { t: y } = $(), { control: x, trigger: w, clearErrors: k } = d || {};
|
|
3477
3479
|
oe(u);
|
|
3478
|
-
const { errorColorForm: S } = xe((B) => B), [L, N] = V(
|
|
3480
|
+
const { errorColorForm: S } = xe((B) => B), [L, N] = V(a);
|
|
3479
3481
|
return d ? /* @__PURE__ */ i(
|
|
3480
3482
|
ve,
|
|
3481
3483
|
{
|
|
3482
3484
|
name: o,
|
|
3483
3485
|
control: x,
|
|
3484
|
-
defaultValue:
|
|
3486
|
+
defaultValue: a,
|
|
3485
3487
|
rules: {
|
|
3486
3488
|
required: u ? `${y(t)} ${y("errorMessages.required")}` : !1
|
|
3487
3489
|
},
|
|
@@ -3503,9 +3505,9 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3503
3505
|
je,
|
|
3504
3506
|
{
|
|
3505
3507
|
min: r,
|
|
3506
|
-
max:
|
|
3508
|
+
max: l,
|
|
3507
3509
|
step: 1,
|
|
3508
|
-
value: B.value ??
|
|
3510
|
+
value: B.value ?? a,
|
|
3509
3511
|
onChange: (M) => B.onChange(M),
|
|
3510
3512
|
marks: !0,
|
|
3511
3513
|
className: A.slider,
|
|
@@ -3552,7 +3554,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
|
|
|
3552
3554
|
je,
|
|
3553
3555
|
{
|
|
3554
3556
|
min: r,
|
|
3555
|
-
max:
|
|
3557
|
+
max: l,
|
|
3556
3558
|
step: 1,
|
|
3557
3559
|
value: L,
|
|
3558
3560
|
onChange: (B) => {
|
|
@@ -3605,15 +3607,15 @@ const ye = ({
|
|
|
3605
3607
|
reactHookFormInstance: s
|
|
3606
3608
|
}) => {
|
|
3607
3609
|
console.log("inputs: ", n);
|
|
3608
|
-
const { watch: o } = s, t = o(), r = me(() => n == null ? void 0 : n.map((
|
|
3609
|
-
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;
|
|
3610
3612
|
return {
|
|
3611
|
-
...
|
|
3612
|
-
required:
|
|
3613
|
+
...l,
|
|
3614
|
+
required: a
|
|
3613
3615
|
};
|
|
3614
3616
|
}), [n, t]);
|
|
3615
|
-
return /* @__PURE__ */ i("div", { className: ce.inputsContainer, children: r == null ? void 0 : r.map((
|
|
3616
|
-
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;
|
|
3617
3619
|
switch (c) {
|
|
3618
3620
|
case fe.text:
|
|
3619
3621
|
return /* @__PURE__ */ i(
|
|
@@ -3624,12 +3626,12 @@ const ye = ({
|
|
|
3624
3626
|
children: /* @__PURE__ */ i(
|
|
3625
3627
|
ut,
|
|
3626
3628
|
{
|
|
3627
|
-
input:
|
|
3629
|
+
input: l,
|
|
3628
3630
|
reactHookFormInstance: s
|
|
3629
3631
|
}
|
|
3630
3632
|
)
|
|
3631
3633
|
},
|
|
3632
|
-
`${
|
|
3634
|
+
`${l.code}${a}`
|
|
3633
3635
|
);
|
|
3634
3636
|
case fe.password:
|
|
3635
3637
|
return /* @__PURE__ */ i(
|
|
@@ -3640,12 +3642,12 @@ const ye = ({
|
|
|
3640
3642
|
children: /* @__PURE__ */ i(
|
|
3641
3643
|
ut,
|
|
3642
3644
|
{
|
|
3643
|
-
input:
|
|
3645
|
+
input: l,
|
|
3644
3646
|
reactHookFormInstance: s
|
|
3645
3647
|
}
|
|
3646
3648
|
)
|
|
3647
3649
|
},
|
|
3648
|
-
`${
|
|
3650
|
+
`${l.code}${a}`
|
|
3649
3651
|
);
|
|
3650
3652
|
case fe.select:
|
|
3651
3653
|
return /* @__PURE__ */ i(
|
|
@@ -3656,12 +3658,12 @@ const ye = ({
|
|
|
3656
3658
|
children: /* @__PURE__ */ i(
|
|
3657
3659
|
Pi,
|
|
3658
3660
|
{
|
|
3659
|
-
input:
|
|
3661
|
+
input: l,
|
|
3660
3662
|
reactHookFormInstance: s
|
|
3661
3663
|
}
|
|
3662
3664
|
)
|
|
3663
3665
|
},
|
|
3664
|
-
`${
|
|
3666
|
+
`${l.code}${a}`
|
|
3665
3667
|
);
|
|
3666
3668
|
case fe.radioList:
|
|
3667
3669
|
return /* @__PURE__ */ i(
|
|
@@ -3672,12 +3674,12 @@ const ye = ({
|
|
|
3672
3674
|
children: /* @__PURE__ */ i(
|
|
3673
3675
|
Wi,
|
|
3674
3676
|
{
|
|
3675
|
-
input:
|
|
3677
|
+
input: l,
|
|
3676
3678
|
reactHookFormInstance: s
|
|
3677
3679
|
}
|
|
3678
3680
|
)
|
|
3679
3681
|
},
|
|
3680
|
-
`${
|
|
3682
|
+
`${l.code}${a}`
|
|
3681
3683
|
);
|
|
3682
3684
|
case fe.rankingSlider:
|
|
3683
3685
|
return /* @__PURE__ */ i(
|
|
@@ -3688,15 +3690,15 @@ const ye = ({
|
|
|
3688
3690
|
children: /* @__PURE__ */ i(
|
|
3689
3691
|
Dt,
|
|
3690
3692
|
{
|
|
3691
|
-
input:
|
|
3693
|
+
input: l,
|
|
3692
3694
|
reactHookFormInstance: s
|
|
3693
3695
|
}
|
|
3694
3696
|
)
|
|
3695
3697
|
},
|
|
3696
|
-
`${
|
|
3698
|
+
`${l.code}${a}`
|
|
3697
3699
|
);
|
|
3698
3700
|
default:
|
|
3699
|
-
return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("h4", { children: "Default" }) }, `${
|
|
3701
|
+
return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("h4", { children: "Default" }) }, `${l.code}${a}`);
|
|
3700
3702
|
}
|
|
3701
3703
|
}) });
|
|
3702
3704
|
}, is = "_categorySelector_9bdf4_2", ss = "_sectionItemActive_9bdf4_16", os = "_sectionItem_9bdf4_16", Be = {
|
|
@@ -3709,11 +3711,11 @@ const ye = ({
|
|
|
3709
3711
|
activeCategory: s,
|
|
3710
3712
|
activeColor: o
|
|
3711
3713
|
}) => {
|
|
3712
|
-
const { t } = $(), r = (
|
|
3713
|
-
d(
|
|
3714
|
+
const { t } = $(), r = (l) => {
|
|
3715
|
+
d(l);
|
|
3714
3716
|
};
|
|
3715
|
-
return /* @__PURE__ */ i("div", { className: Be.categorySelector, children: n.map((
|
|
3716
|
-
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;
|
|
3717
3719
|
return /* @__PURE__ */ i(
|
|
3718
3720
|
"button",
|
|
3719
3721
|
{
|
|
@@ -3730,7 +3732,7 @@ const ye = ({
|
|
|
3730
3732
|
}
|
|
3731
3733
|
)
|
|
3732
3734
|
},
|
|
3733
|
-
`keySection${
|
|
3735
|
+
`keySection${a}`
|
|
3734
3736
|
);
|
|
3735
3737
|
}) });
|
|
3736
3738
|
}, bo = ({
|
|
@@ -3740,8 +3742,8 @@ const ye = ({
|
|
|
3740
3742
|
inputContainerStyles: o,
|
|
3741
3743
|
generalError: t,
|
|
3742
3744
|
errorColor: r = "red",
|
|
3743
|
-
submitButtonLabel:
|
|
3744
|
-
submitButtonStyles:
|
|
3745
|
+
submitButtonLabel: l = "Submit",
|
|
3746
|
+
submitButtonStyles: a = { width: 325 },
|
|
3745
3747
|
showCategorySelector: c = !0,
|
|
3746
3748
|
defaultCategory: u = null,
|
|
3747
3749
|
categoryLabel: m = "Select Category",
|
|
@@ -3899,7 +3901,7 @@ const ye = ({
|
|
|
3899
3901
|
);
|
|
3900
3902
|
}) }),
|
|
3901
3903
|
/* @__PURE__ */ p("div", { className: Ce.buttonContainer, children: [
|
|
3902
|
-
/* @__PURE__ */ i(Me, { containerStyles:
|
|
3904
|
+
/* @__PURE__ */ i(Me, { containerStyles: a, type: "submit", children: v(l) }),
|
|
3903
3905
|
/* @__PURE__ */ i(we, { errorMessage: t, errorColor: r })
|
|
3904
3906
|
] })
|
|
3905
3907
|
] });
|
|
@@ -3919,18 +3921,18 @@ const ye = ({
|
|
|
3919
3921
|
submessage: o,
|
|
3920
3922
|
buttons: t,
|
|
3921
3923
|
maxHeight: r = "450px",
|
|
3922
|
-
maxWidth:
|
|
3924
|
+
maxWidth: l = "450px"
|
|
3923
3925
|
}) => /* @__PURE__ */ i("div", { className: Y.overlay, children: /* @__PURE__ */ p(
|
|
3924
3926
|
"div",
|
|
3925
3927
|
{
|
|
3926
3928
|
className: Y.modal,
|
|
3927
|
-
style: { maxHeight: r, maxWidth:
|
|
3929
|
+
style: { maxHeight: r, maxWidth: l },
|
|
3928
3930
|
children: [
|
|
3929
3931
|
/* @__PURE__ */ i("button", { className: Y.closeButton, onClick: n, "aria-label": "Close modal", children: "✕" }),
|
|
3930
3932
|
d && /* @__PURE__ */ i("img", { src: d, alt: "icon", className: Y.icon }),
|
|
3931
3933
|
/* @__PURE__ */ i("p", { className: Y.message, children: s }),
|
|
3932
3934
|
o && /* @__PURE__ */ i("p", { className: Y.submessage, children: o }),
|
|
3933
|
-
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)) })
|
|
3934
3936
|
]
|
|
3935
3937
|
}
|
|
3936
3938
|
) });
|
|
@@ -4023,12 +4025,12 @@ const Ss = "_buttonsContainer_1c7dw_2", $s = "_button_1c7dw_2", Bs = "_active_1c
|
|
|
4023
4025
|
const {
|
|
4024
4026
|
isActive: t,
|
|
4025
4027
|
name: r,
|
|
4026
|
-
onClick:
|
|
4028
|
+
onClick: l
|
|
4027
4029
|
} = s;
|
|
4028
4030
|
return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i(
|
|
4029
4031
|
"button",
|
|
4030
4032
|
{
|
|
4031
|
-
onClick:
|
|
4033
|
+
onClick: l,
|
|
4032
4034
|
className: `${Te.button}
|
|
4033
4035
|
${t && Te.active}`,
|
|
4034
4036
|
children: /* @__PURE__ */ i("span", { className: Te.buttonName, children: d(r) })
|
|
@@ -4058,11 +4060,11 @@ const Ls = "_switchContainer_194wl_2", Ms = "_labelRight_194wl_9", Ds = "_labelL
|
|
|
4058
4060
|
code: o,
|
|
4059
4061
|
labelLeft: t,
|
|
4060
4062
|
labelRight: r,
|
|
4061
|
-
defValue:
|
|
4062
|
-
colorOn:
|
|
4063
|
+
defValue: l = !1,
|
|
4064
|
+
colorOn: a = "#5A514D",
|
|
4063
4065
|
disabled: c = !1,
|
|
4064
4066
|
width: u = 240
|
|
4065
|
-
} = n, { t: m } = $(), { control: h } = d || {}, [f, b] = V(
|
|
4067
|
+
} = n, { t: m } = $(), { control: h } = d || {}, [f, b] = V(l), v = (g) => {
|
|
4066
4068
|
b(g), s && s(g);
|
|
4067
4069
|
}, _ = (g, C) => /* @__PURE__ */ p("div", { className: ue.switchContainer, style: { width: `${u}px` }, children: [
|
|
4068
4070
|
t && /* @__PURE__ */ i(
|
|
@@ -4088,7 +4090,7 @@ const Ls = "_switchContainer_194wl_2", Ms = "_labelRight_194wl_9", Ds = "_labelL
|
|
|
4088
4090
|
{
|
|
4089
4091
|
className: ue.slider,
|
|
4090
4092
|
style: {
|
|
4091
|
-
"--switch-thumb-color": g ?
|
|
4093
|
+
"--switch-thumb-color": g ? a : "#ccc"
|
|
4092
4094
|
}
|
|
4093
4095
|
}
|
|
4094
4096
|
)
|
|
@@ -4100,7 +4102,7 @@ const Ls = "_switchContainer_194wl_2", Ms = "_labelRight_194wl_9", Ds = "_labelL
|
|
|
4100
4102
|
{
|
|
4101
4103
|
name: o,
|
|
4102
4104
|
control: h,
|
|
4103
|
-
defaultValue:
|
|
4105
|
+
defaultValue: l,
|
|
4104
4106
|
render: ({ field: g }) => _(g.value, g.onChange)
|
|
4105
4107
|
}
|
|
4106
4108
|
) : _(f, v);
|
|
@@ -4130,8 +4132,8 @@ const Is = "_header_13kbt_2", Os = "_leftComponents_13kbt_13", qs = "_centerComp
|
|
|
4130
4132
|
rightComponents: o = [],
|
|
4131
4133
|
zIndex: t = 10,
|
|
4132
4134
|
height: r = 60,
|
|
4133
|
-
backgroundColor:
|
|
4134
|
-
isFooter:
|
|
4135
|
+
backgroundColor: l = "#605B56",
|
|
4136
|
+
isFooter: a = !1
|
|
4135
4137
|
// If true, it will apply footer styles
|
|
4136
4138
|
}) => /* @__PURE__ */ p(
|
|
4137
4139
|
"div",
|
|
@@ -4141,9 +4143,9 @@ const Is = "_header_13kbt_2", Os = "_leftComponents_13kbt_13", qs = "_centerComp
|
|
|
4141
4143
|
...n,
|
|
4142
4144
|
zIndex: t,
|
|
4143
4145
|
height: r,
|
|
4144
|
-
backgroundColor:
|
|
4145
|
-
top:
|
|
4146
|
-
bottom:
|
|
4146
|
+
backgroundColor: l,
|
|
4147
|
+
top: a ? "auto" : 0,
|
|
4148
|
+
bottom: a ? 0 : "auto"
|
|
4147
4149
|
},
|
|
4148
4150
|
children: [
|
|
4149
4151
|
/* @__PURE__ */ i("div", { className: ie.leftComponents, children: d.map((c, u) => /* @__PURE__ */ i("div", { className: ie.componentsContainer, children: c }, u)) }),
|