@tmf_ciclica/ciclicastorybook 1.1.170 → 1.1.171
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.es.js +422 -423
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -44,7 +44,7 @@ const t2 = "_ambitSelector_mcunf_2", n2 = "_header_mcunf_13", i2 = "_nameDateCon
|
|
|
44
44
|
fontColor: l,
|
|
45
45
|
moreInfo: c
|
|
46
46
|
}) => {
|
|
47
|
-
const { name: u, created_at:
|
|
47
|
+
const { name: u, created_at: p, id: g, isBeingProcessed: y } = n;
|
|
48
48
|
return /* @__PURE__ */ m(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
@@ -62,10 +62,10 @@ const t2 = "_ambitSelector_mcunf_2", n2 = "_header_mcunf_13", i2 = "_nameDateCon
|
|
|
62
62
|
),
|
|
63
63
|
/* @__PURE__ */ i("span", { style: { color: r ? a : l }, children: u })
|
|
64
64
|
] }),
|
|
65
|
-
/* @__PURE__ */ i("div", { className: he.ambitDate, children:
|
|
65
|
+
/* @__PURE__ */ i("div", { className: he.ambitDate, children: p ? new Date(p).toLocaleDateString() : "" })
|
|
66
66
|
] }),
|
|
67
67
|
/* @__PURE__ */ m("div", { className: he.ambitButtons, children: [
|
|
68
|
-
|
|
68
|
+
y && /* @__PURE__ */ i("img", { src: f2 }),
|
|
69
69
|
/* @__PURE__ */ i("button", { onClick: () => o(g), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: C2 }) }),
|
|
70
70
|
/* @__PURE__ */ i("button", { onClick: () => d(g), children: /* @__PURE__ */ i("img", { src: g2 }) }),
|
|
71
71
|
/* @__PURE__ */ i("button", { onClick: () => s(g), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: h2 }) })
|
|
@@ -127,19 +127,19 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
127
127
|
buttonContainerStyles: l = {},
|
|
128
128
|
containerStyles: c = {},
|
|
129
129
|
onCLickNewAmbit: u = () => console.log("New ambit clicked"),
|
|
130
|
-
onClickCopy:
|
|
130
|
+
onClickCopy: p = (_) => console.log(`Copy ambit: ${_}`),
|
|
131
131
|
onCLickDelete: g = (_) => console.log(`Delete ambit: ${_}`),
|
|
132
|
-
onClickFilters:
|
|
133
|
-
onClickAmbit:
|
|
132
|
+
onClickFilters: y = (_) => console.log(`Filters clicked: ${_}`),
|
|
133
|
+
onClickAmbit: v = (_) => console.log(`OnCLickAmbit: ${_}`)
|
|
134
134
|
}) => {
|
|
135
|
-
const { t: _ } = $(), [
|
|
135
|
+
const { t: _ } = $(), [b, h] = V(n);
|
|
136
136
|
F(() => {
|
|
137
|
-
n &&
|
|
137
|
+
n && h(n);
|
|
138
138
|
}, [n]);
|
|
139
|
-
const
|
|
140
|
-
if (
|
|
141
|
-
let x = [...
|
|
142
|
-
x.sort((w, N) => w[
|
|
139
|
+
const C = (f) => {
|
|
140
|
+
if (b && b.length > 0) {
|
|
141
|
+
let x = [...b];
|
|
142
|
+
x.sort((w, N) => w[f].localeCompare(N[f])), h(x);
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
return /* @__PURE__ */ m(
|
|
@@ -155,11 +155,11 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
155
155
|
style: { borderBottom: `1px solid ${s}` },
|
|
156
156
|
children: [
|
|
157
157
|
/* @__PURE__ */ m("div", { className: W.nameDateContainer, children: [
|
|
158
|
-
/* @__PURE__ */ i("div", { className: W.ambitName, children: /* @__PURE__ */ m("button", { onClick: () =>
|
|
158
|
+
/* @__PURE__ */ i("div", { className: W.ambitName, children: /* @__PURE__ */ m("button", { onClick: () => C("name"), children: [
|
|
159
159
|
/* @__PURE__ */ i("span", { children: _(t) }),
|
|
160
160
|
/* @__PURE__ */ i("img", { src: Qe })
|
|
161
161
|
] }) }),
|
|
162
|
-
/* @__PURE__ */ i("div", { className: W.ambitDate, children: /* @__PURE__ */ m("button", { onClick: () =>
|
|
162
|
+
/* @__PURE__ */ i("div", { className: W.ambitDate, children: /* @__PURE__ */ m("button", { onClick: () => C("date"), children: [
|
|
163
163
|
/* @__PURE__ */ i("span", { children: _(r) }),
|
|
164
164
|
/* @__PURE__ */ i("img", { src: Qe })
|
|
165
165
|
] }) })
|
|
@@ -168,19 +168,19 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
168
168
|
]
|
|
169
169
|
}
|
|
170
170
|
),
|
|
171
|
-
/* @__PURE__ */ i("div", { className: W.ambitListContainer, children:
|
|
171
|
+
/* @__PURE__ */ i("div", { className: W.ambitListContainer, children: b && b.length > 0 && b.map((f) => /* @__PURE__ */ i(
|
|
172
172
|
mt,
|
|
173
173
|
{
|
|
174
|
-
isActive: d ==
|
|
175
|
-
ambit:
|
|
174
|
+
isActive: d == f.id,
|
|
175
|
+
ambit: f,
|
|
176
176
|
fontColor: s,
|
|
177
177
|
activeColor: o,
|
|
178
|
-
onClickCopy:
|
|
178
|
+
onClickCopy: p,
|
|
179
179
|
onClickDelete: g,
|
|
180
|
-
onClickFilters:
|
|
181
|
-
onClickAmbit:
|
|
180
|
+
onClickFilters: y,
|
|
181
|
+
onClickAmbit: v
|
|
182
182
|
},
|
|
183
|
-
`ambitKey${
|
|
183
|
+
`ambitKey${f.id}`
|
|
184
184
|
)) }),
|
|
185
185
|
/* @__PURE__ */ i("div", { className: W.newAmbitButtonContainer, children: /* @__PURE__ */ i(
|
|
186
186
|
Te,
|
|
@@ -255,28 +255,28 @@ const V2 = ({
|
|
|
255
255
|
children: n.map((l, c) => {
|
|
256
256
|
const {
|
|
257
257
|
icon: u,
|
|
258
|
-
activeIcon:
|
|
258
|
+
activeIcon: p,
|
|
259
259
|
isActive: g,
|
|
260
|
-
name:
|
|
261
|
-
onClick:
|
|
260
|
+
name: y,
|
|
261
|
+
onClick: v,
|
|
262
262
|
disabled: _
|
|
263
|
-
} = l,
|
|
264
|
-
s && o === "left" && /* @__PURE__ */ i("span", { className: X.buttonName, children: a(
|
|
265
|
-
/* @__PURE__ */ i("img", { src: g ?
|
|
266
|
-
s && o === "right" && /* @__PURE__ */ i("span", { className: X.buttonName, children: a(
|
|
263
|
+
} = l, b = /* @__PURE__ */ m(Re, { children: [
|
|
264
|
+
s && o === "left" && /* @__PURE__ */ i("span", { className: X.buttonName, children: a(y) }),
|
|
265
|
+
/* @__PURE__ */ i("img", { src: g ? p : u, alt: a(y) }),
|
|
266
|
+
s && o === "right" && /* @__PURE__ */ i("span", { className: X.buttonName, children: a(y) })
|
|
267
267
|
] });
|
|
268
268
|
return /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
269
269
|
/* @__PURE__ */ i(
|
|
270
270
|
"button",
|
|
271
271
|
{
|
|
272
|
-
onClick:
|
|
272
|
+
onClick: v,
|
|
273
273
|
className: `${X.button}
|
|
274
274
|
${g && X.active}`,
|
|
275
275
|
disabled: _,
|
|
276
|
-
children:
|
|
276
|
+
children: b
|
|
277
277
|
}
|
|
278
278
|
),
|
|
279
|
-
t && /* @__PURE__ */ i(ie, { text:
|
|
279
|
+
t && /* @__PURE__ */ i(ie, { text: y, position: r })
|
|
280
280
|
] }, c);
|
|
281
281
|
})
|
|
282
282
|
}
|
|
@@ -317,7 +317,7 @@ const A2 = "_indicatorsCategory_1cu33_2", I2 = "_title_1cu33_5", De = {
|
|
|
317
317
|
showBottomBar: c = !0,
|
|
318
318
|
titleMarginChildren: u = 25
|
|
319
319
|
}) => {
|
|
320
|
-
const { t:
|
|
320
|
+
const { t: p } = $();
|
|
321
321
|
return /* @__PURE__ */ m(
|
|
322
322
|
He.div,
|
|
323
323
|
{
|
|
@@ -342,7 +342,7 @@ const A2 = "_indicatorsCategory_1cu33_2", I2 = "_title_1cu33_5", De = {
|
|
|
342
342
|
onClick: d,
|
|
343
343
|
children: [
|
|
344
344
|
/* @__PURE__ */ i("span", { style: { color: n ? t : o }, children: n ? "-" : "+" }),
|
|
345
|
-
/* @__PURE__ */ i("span", { style: { marginLeft: 12, color: n ? t : o }, children:
|
|
345
|
+
/* @__PURE__ */ i("span", { style: { marginLeft: 12, color: n ? t : o }, children: p(r) })
|
|
346
346
|
]
|
|
347
347
|
}
|
|
348
348
|
),
|
|
@@ -376,8 +376,8 @@ const ao = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), O2 = "data
|
|
|
376
376
|
geoLayers: []
|
|
377
377
|
})), ht = ({ title: n, onClick: d, isOpen: s = !0, textColor: o = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
|
|
378
378
|
const { t: a } = $(), { tematicalFiltersSelected: l } = D((u) => u), c = (u) => {
|
|
379
|
-
D.setState((
|
|
380
|
-
tematicalFiltersSelected:
|
|
379
|
+
D.setState((p) => ({
|
|
380
|
+
tematicalFiltersSelected: p.tematicalFiltersSelected.filter(
|
|
381
381
|
(g) => g.code !== u
|
|
382
382
|
)
|
|
383
383
|
}));
|
|
@@ -389,10 +389,10 @@ const ao = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), O2 = "data
|
|
|
389
389
|
onClick: d,
|
|
390
390
|
title: n ? a(n) : "Applied Filters",
|
|
391
391
|
activeColor: r,
|
|
392
|
-
children: /* @__PURE__ */ i("div", { className: Xe.AppliedFiltersContainer, children: l == null ? void 0 : l.map((u,
|
|
392
|
+
children: /* @__PURE__ */ i("div", { className: Xe.AppliedFiltersContainer, children: l == null ? void 0 : l.map((u, p) => /* @__PURE__ */ m("div", { className: Xe.AppliedFilterContent, style: { color: o, background: t }, children: [
|
|
393
393
|
a(u.name),
|
|
394
394
|
/* @__PURE__ */ i("img", { src: O2, alt: "CloseIcon", onClick: () => c(u.code), style: { cursor: "pointer" } })
|
|
395
|
-
] },
|
|
395
|
+
] }, p)) })
|
|
396
396
|
}
|
|
397
397
|
);
|
|
398
398
|
};
|
|
@@ -423,11 +423,11 @@ const E2 = "_layerName_1ikqs_25", P2 = "_layerActive_1ikqs_28", Je = {
|
|
|
423
423
|
}) => {
|
|
424
424
|
const { t: a } = $(), { activeFiltersType: l, geoLayers: c } = D((g) => g), u = () => {
|
|
425
425
|
l == "geographical" ? D.setState(() => ({ activeFiltersType: null })) : D.setState(() => ({ activeFiltersType: "geographical" }));
|
|
426
|
-
},
|
|
427
|
-
D.setState((
|
|
428
|
-
geoLayers:
|
|
429
|
-
...
|
|
430
|
-
active:
|
|
426
|
+
}, p = (g) => {
|
|
427
|
+
D.setState((y) => ({
|
|
428
|
+
geoLayers: y.geoLayers.map((v) => ({
|
|
429
|
+
...v,
|
|
430
|
+
active: v.name === g.name
|
|
431
431
|
}))
|
|
432
432
|
}));
|
|
433
433
|
};
|
|
@@ -444,7 +444,7 @@ const E2 = "_layerName_1ikqs_25", P2 = "_layerActive_1ikqs_28", Je = {
|
|
|
444
444
|
"div",
|
|
445
445
|
{
|
|
446
446
|
className: `${Je.layerName} ${g.active ? Je.layerActive : ""}`,
|
|
447
|
-
onClick: () =>
|
|
447
|
+
onClick: () => p(g),
|
|
448
448
|
children: a(g.name)
|
|
449
449
|
}
|
|
450
450
|
))
|
|
@@ -552,19 +552,19 @@ let Pe = function(n) {
|
|
|
552
552
|
t.setState({ index: -1 }, t.onEnd(t.getKeyDownEventMap()));
|
|
553
553
|
}, t.onMouseMove = (l) => {
|
|
554
554
|
t.setState({ pending: !0 });
|
|
555
|
-
const c = t.getMousePosition(l), u = t.getDiffPosition(c[0]),
|
|
556
|
-
t.move(
|
|
555
|
+
const c = t.getMousePosition(l), u = t.getDiffPosition(c[0]), p = t.getValueFromPosition(u);
|
|
556
|
+
t.move(p);
|
|
557
557
|
}, t.onTouchMove = (l) => {
|
|
558
558
|
if (l.touches.length > 1) return;
|
|
559
559
|
t.setState({ pending: !0 });
|
|
560
560
|
const c = t.getTouchPosition(l);
|
|
561
561
|
if (t.isScrolling === void 0) {
|
|
562
|
-
const g = c[0] - t.startPosition[0],
|
|
563
|
-
t.isScrolling = Math.abs(
|
|
562
|
+
const g = c[0] - t.startPosition[0], y = c[1] - t.startPosition[1];
|
|
563
|
+
t.isScrolling = Math.abs(y) > Math.abs(g);
|
|
564
564
|
}
|
|
565
565
|
if (t.isScrolling) return void t.setState({ index: -1 });
|
|
566
|
-
const u = t.getDiffPosition(c[0]),
|
|
567
|
-
t.move(
|
|
566
|
+
const u = t.getDiffPosition(c[0]), p = t.getValueFromPosition(u);
|
|
567
|
+
t.move(p);
|
|
568
568
|
}, t.onKeyDown = (l) => {
|
|
569
569
|
if (!(l.ctrlKey || l.shiftKey || l.altKey || l.metaKey)) switch (t.setState({ pending: !0 }), l.key) {
|
|
570
570
|
case "ArrowLeft":
|
|
@@ -617,8 +617,8 @@ let Pe = function(n) {
|
|
|
617
617
|
if (t.props.disabled || c.touches.length > 1) return;
|
|
618
618
|
t.setState({ pending: !0 });
|
|
619
619
|
const u = t.getTouchPosition(c);
|
|
620
|
-
t.startPosition = u, t.isScrolling = void 0, t.start(l, u[0]), ke(t.getTouchEventMap()), function(
|
|
621
|
-
|
|
620
|
+
t.startPosition = u, t.isScrolling = void 0, t.start(l, u[0]), ke(t.getTouchEventMap()), function(p) {
|
|
621
|
+
p.stopPropagation && p.stopPropagation();
|
|
622
622
|
}(c);
|
|
623
623
|
}, t.handleResize = () => {
|
|
624
624
|
const l = window.setTimeout(() => {
|
|
@@ -626,13 +626,13 @@ let Pe = function(n) {
|
|
|
626
626
|
}, 0);
|
|
627
627
|
t.pendingResizeTimeouts.push(l);
|
|
628
628
|
}, t.renderThumb = (l, c) => {
|
|
629
|
-
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""),
|
|
630
|
-
t["thumb" + c] =
|
|
629
|
+
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), p = { ref: (y) => {
|
|
630
|
+
t["thumb" + c] = y;
|
|
631
631
|
}, key: t.props.thumbClassName + "-" + c, className: u, style: l, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, g = { index: c, value: Ne(t.state.value), valueNow: t.state.value[c] };
|
|
632
|
-
return t.props.ariaValuetext && (
|
|
632
|
+
return t.props.ariaValuetext && (p["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(g)), t.props.renderThumb(p, g);
|
|
633
633
|
}, t.renderTrack = (l, c, u) => {
|
|
634
|
-
const
|
|
635
|
-
return t.props.renderTrack(
|
|
634
|
+
const p = { key: t.props.trackClassName + "-" + l, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + l, style: t.buildTrackStyle(c, t.state.upperBound - u) }, g = { index: l, value: Ne(t.state.value) };
|
|
635
|
+
return t.props.renderTrack(p, g);
|
|
636
636
|
};
|
|
637
637
|
let r = Ve(o.value);
|
|
638
638
|
r.length || (r = Ve(o.defaultValue)), t.pendingResizeTimeouts = [];
|
|
@@ -663,8 +663,8 @@ let Pe = function(n) {
|
|
|
663
663
|
let t = Number.MAX_VALUE, r = -1;
|
|
664
664
|
const { value: a } = this.state, l = a.length;
|
|
665
665
|
for (let c = 0; c < l; c += 1) {
|
|
666
|
-
const u = this.calcOffset(a[c]),
|
|
667
|
-
|
|
666
|
+
const u = this.calcOffset(a[c]), p = Math.abs(o - u);
|
|
667
|
+
p < t && (t = p, r = c);
|
|
668
668
|
}
|
|
669
669
|
return r;
|
|
670
670
|
}, s.getMousePosition = function(o) {
|
|
@@ -687,8 +687,8 @@ let Pe = function(n) {
|
|
|
687
687
|
}, s.resize = function() {
|
|
688
688
|
const { slider: o, thumb0: t } = this;
|
|
689
689
|
if (!o || !t) return;
|
|
690
|
-
const r = this.sizeKey(), a = o.getBoundingClientRect(), l = o[r], c = a[this.posMaxKey()], u = a[this.posMinKey()],
|
|
691
|
-
this.state.upperBound === g && this.state.sliderLength ===
|
|
690
|
+
const r = this.sizeKey(), a = o.getBoundingClientRect(), l = o[r], c = a[this.posMaxKey()], u = a[this.posMinKey()], p = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], g = l - p, y = Math.abs(c - u);
|
|
691
|
+
this.state.upperBound === g && this.state.sliderLength === y && this.state.thumbSize === p || this.setState({ upperBound: g, sliderLength: y, thumbSize: p });
|
|
692
692
|
}, s.calcOffset = function(o) {
|
|
693
693
|
const t = this.props.max - this.props.min;
|
|
694
694
|
return t === 0 ? 0 : (o - this.props.min) / t * this.state.upperBound;
|
|
@@ -727,28 +727,28 @@ let Pe = function(n) {
|
|
|
727
727
|
const t = this.state.value.slice(), { index: r } = this.state, { length: a } = t, l = t[r];
|
|
728
728
|
if (o === l) return;
|
|
729
729
|
this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
|
|
730
|
-
const { pearling: c, max: u, min:
|
|
730
|
+
const { pearling: c, max: u, min: p, minDistance: g } = this.props;
|
|
731
731
|
if (!c) {
|
|
732
732
|
if (r > 0) {
|
|
733
|
-
const
|
|
734
|
-
o <
|
|
733
|
+
const y = t[r - 1];
|
|
734
|
+
o < y + g && (o = y + g);
|
|
735
735
|
}
|
|
736
736
|
if (r < a - 1) {
|
|
737
|
-
const
|
|
738
|
-
o >
|
|
737
|
+
const y = t[r + 1];
|
|
738
|
+
o > y - g && (o = y - g);
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
|
-
t[r] = o, c && a > 1 && (o > l ? (this.pushSucceeding(t, g, r), function(
|
|
742
|
-
for (let
|
|
743
|
-
const
|
|
744
|
-
y
|
|
741
|
+
t[r] = o, c && a > 1 && (o > l ? (this.pushSucceeding(t, g, r), function(y, v, _, b) {
|
|
742
|
+
for (let h = 0; h < y; h += 1) {
|
|
743
|
+
const C = b - h * _;
|
|
744
|
+
v[y - 1 - h] > C && (v[y - 1 - h] = C);
|
|
745
745
|
}
|
|
746
|
-
}(a, t, g, u)) : o < l && (this.pushPreceding(t, g, r), function(
|
|
747
|
-
for (let
|
|
748
|
-
const
|
|
749
|
-
|
|
746
|
+
}(a, t, g, u)) : o < l && (this.pushPreceding(t, g, r), function(y, v, _, b) {
|
|
747
|
+
for (let h = 0; h < y; h += 1) {
|
|
748
|
+
const C = b + h * _;
|
|
749
|
+
v[h] < C && (v[h] = C);
|
|
750
750
|
}
|
|
751
|
-
}(a, t, g,
|
|
751
|
+
}(a, t, g, p))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
|
|
752
752
|
}, s.pushSucceeding = function(o, t, r) {
|
|
753
753
|
let a, l;
|
|
754
754
|
for (a = r, l = o[a] + t; o[a + 1] !== null && l > o[a + 1]; a += 1, l = o[a] + t) o[a + 1] = Ee(l, this.props);
|
|
@@ -822,11 +822,11 @@ const K2 = "_container_4u41i_2", H2 = "_unitLabel_4u41i_8", U2 = "_slider_4u41i_
|
|
|
822
822
|
defaultValue: l,
|
|
823
823
|
isDate: c
|
|
824
824
|
}) => {
|
|
825
|
-
const { t: u } = $(),
|
|
826
|
-
|
|
825
|
+
const { t: u } = $(), p = c ? new Date(n).getTime() : null, g = c ? new Date(d).getTime() : null, [y, v] = V(c ? [p, g] : [n, d]), _ = (b) => {
|
|
826
|
+
v(b), o == null || o({ min: b[0], max: b[1] });
|
|
827
827
|
};
|
|
828
828
|
return F(() => {
|
|
829
|
-
l ||
|
|
829
|
+
l || v(c ? [p, g] : [n, d]);
|
|
830
830
|
}, [l, c]), /* @__PURE__ */ m(
|
|
831
831
|
"div",
|
|
832
832
|
{
|
|
@@ -840,10 +840,10 @@ const K2 = "_container_4u41i_2", H2 = "_unitLabel_4u41i_8", U2 = "_slider_4u41i_
|
|
|
840
840
|
className: re.slider,
|
|
841
841
|
thumbClassName: re.thumb,
|
|
842
842
|
trackClassName: re.track,
|
|
843
|
-
min: c ?
|
|
843
|
+
min: c ? p : n,
|
|
844
844
|
max: c ? g : d,
|
|
845
|
-
step: c ? (g -
|
|
846
|
-
value:
|
|
845
|
+
step: c ? (g - p) / 30 : s,
|
|
846
|
+
value: y,
|
|
847
847
|
onAfterChange: _,
|
|
848
848
|
withTracks: !0,
|
|
849
849
|
pearling: !c,
|
|
@@ -851,16 +851,16 @@ const K2 = "_container_4u41i_2", H2 = "_unitLabel_4u41i_8", U2 = "_slider_4u41i_
|
|
|
851
851
|
}
|
|
852
852
|
),
|
|
853
853
|
/* @__PURE__ */ m("div", { className: re.labels, children: [
|
|
854
|
-
/* @__PURE__ */ i("span", { children: c ? new Date(
|
|
854
|
+
/* @__PURE__ */ i("span", { children: c ? new Date(y[0]).toLocaleDateString("en-EN", {
|
|
855
855
|
day: "2-digit",
|
|
856
856
|
month: "short",
|
|
857
857
|
year: "numeric"
|
|
858
|
-
}) :
|
|
859
|
-
/* @__PURE__ */ i("span", { children: c ? new Date(
|
|
858
|
+
}) : y[0] }),
|
|
859
|
+
/* @__PURE__ */ i("span", { children: c ? new Date(y[1]).toLocaleDateString("en-EN", {
|
|
860
860
|
day: "2-digit",
|
|
861
861
|
month: "short",
|
|
862
862
|
year: "numeric"
|
|
863
|
-
}) :
|
|
863
|
+
}) : y[1] })
|
|
864
864
|
] })
|
|
865
865
|
]
|
|
866
866
|
}
|
|
@@ -895,23 +895,23 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
895
895
|
minValue: l,
|
|
896
896
|
maxValue: c,
|
|
897
897
|
unit: u,
|
|
898
|
-
step:
|
|
898
|
+
step: p,
|
|
899
899
|
disabled: g,
|
|
900
|
-
isDate:
|
|
901
|
-
} = n || {},
|
|
900
|
+
isDate: y
|
|
901
|
+
} = n || {}, v = me(
|
|
902
902
|
() => t == "cat" || s == "cat",
|
|
903
903
|
[s, t]
|
|
904
904
|
), _ = me(
|
|
905
905
|
() => t == "abs" || s == "abs",
|
|
906
906
|
[s, t]
|
|
907
907
|
), {
|
|
908
|
-
tematicalFiltersSelected:
|
|
909
|
-
selectedIndicator:
|
|
910
|
-
fontColor:
|
|
911
|
-
inputsColor:
|
|
908
|
+
tematicalFiltersSelected: b,
|
|
909
|
+
selectedIndicator: h,
|
|
910
|
+
fontColor: C,
|
|
911
|
+
inputsColor: f
|
|
912
912
|
} = D((N) => N), x = (N) => {
|
|
913
913
|
if (N) {
|
|
914
|
-
const { min: S, max: L, valueClicked: k, allValues: B } = N || {}, { code: O, type: R, source: T } = n || {}, K = _ ? "abs" :
|
|
914
|
+
const { min: S, max: L, valueClicked: k, allValues: B } = N || {}, { code: O, type: R, source: T } = n || {}, K = _ ? "abs" : v ? "cat" : "both";
|
|
915
915
|
let z = O[0];
|
|
916
916
|
R == "both" && (z = K == "cat" ? O[1] : O[0]), K == "cat" ? D.setState((Q) => {
|
|
917
917
|
let G = Q.tematicalFiltersSelected.find(
|
|
@@ -934,14 +934,14 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
934
934
|
let E = B.map((j, Vt) => Vt);
|
|
935
935
|
return {
|
|
936
936
|
tematicalFiltersSelected: [
|
|
937
|
-
...
|
|
937
|
+
...b,
|
|
938
938
|
{
|
|
939
939
|
type: "cat",
|
|
940
940
|
code: z,
|
|
941
941
|
values: E.filter((j) => j !== k),
|
|
942
942
|
name: n.name,
|
|
943
943
|
source: T,
|
|
944
|
-
isDate:
|
|
944
|
+
isDate: y
|
|
945
945
|
}
|
|
946
946
|
]
|
|
947
947
|
};
|
|
@@ -957,7 +957,7 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
957
957
|
)
|
|
958
958
|
};
|
|
959
959
|
if (G) {
|
|
960
|
-
let E = { ...G, min: S, max: L, type: K, isDate:
|
|
960
|
+
let E = { ...G, min: S, max: L, type: K, isDate: y };
|
|
961
961
|
return {
|
|
962
962
|
tematicalFiltersSelected: Q.tematicalFiltersSelected.map(
|
|
963
963
|
(j) => j.code === z ? E : j
|
|
@@ -966,7 +966,7 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
966
966
|
} else
|
|
967
967
|
return {
|
|
968
968
|
tematicalFiltersSelected: [
|
|
969
|
-
...
|
|
969
|
+
...b,
|
|
970
970
|
{
|
|
971
971
|
type: K,
|
|
972
972
|
code: z,
|
|
@@ -981,11 +981,11 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
981
981
|
}
|
|
982
982
|
}, w = me(() => {
|
|
983
983
|
const N = {};
|
|
984
|
-
if ((
|
|
985
|
-
for (const S of
|
|
984
|
+
if ((b == null ? void 0 : b.length) > 0)
|
|
985
|
+
for (const S of b)
|
|
986
986
|
S.type === "cat" ? N[S.code] = new Set(S.values) : N[S.code] = [S.min, S.max];
|
|
987
987
|
return N;
|
|
988
|
-
}, [
|
|
988
|
+
}, [b]);
|
|
989
989
|
return /* @__PURE__ */ i("div", { className: Se.tematicalFiltersInputContainer, children: /* @__PURE__ */ m(
|
|
990
990
|
oe,
|
|
991
991
|
{
|
|
@@ -995,24 +995,24 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
995
995
|
opacity: g ? 0.5 : 1
|
|
996
996
|
},
|
|
997
997
|
title: r,
|
|
998
|
-
isOpen:
|
|
998
|
+
isOpen: h == `id${r}`,
|
|
999
999
|
onClick: () => {
|
|
1000
1000
|
g || D.setState(() => ({
|
|
1001
|
-
selectedIndicator:
|
|
1001
|
+
selectedIndicator: h == `id${r}` ? "" : `id${r}`
|
|
1002
1002
|
}));
|
|
1003
1003
|
},
|
|
1004
1004
|
showBottomBar: !1,
|
|
1005
1005
|
height: 42,
|
|
1006
1006
|
titleMarginChildren: 14,
|
|
1007
1007
|
className: "tematicalFiltersInputContainer",
|
|
1008
|
-
color:
|
|
1008
|
+
color: C,
|
|
1009
1009
|
activeColor: d,
|
|
1010
1010
|
children: [
|
|
1011
1011
|
t == "both" && /* @__PURE__ */ m(
|
|
1012
1012
|
"div",
|
|
1013
1013
|
{
|
|
1014
1014
|
className: Se.inputTypeContainer,
|
|
1015
|
-
style: { color:
|
|
1015
|
+
style: { color: C },
|
|
1016
1016
|
children: [
|
|
1017
1017
|
/* @__PURE__ */ m("label", { children: [
|
|
1018
1018
|
/* @__PURE__ */ i(
|
|
@@ -1026,8 +1026,8 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
1026
1026
|
},
|
|
1027
1027
|
style: {
|
|
1028
1028
|
marginRight: 4,
|
|
1029
|
-
backgroundColor: s == "abs" ?
|
|
1030
|
-
border: `1.5px solid ${s == "abs" ?
|
|
1029
|
+
backgroundColor: s == "abs" ? f : "white",
|
|
1030
|
+
border: `1.5px solid ${s == "abs" ? f : C}`
|
|
1031
1031
|
}
|
|
1032
1032
|
}
|
|
1033
1033
|
),
|
|
@@ -1045,8 +1045,8 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
1045
1045
|
},
|
|
1046
1046
|
style: {
|
|
1047
1047
|
marginRight: 4,
|
|
1048
|
-
backgroundColor: s == "cat" ?
|
|
1049
|
-
border: `1.5px solid ${s == "cat" ?
|
|
1048
|
+
backgroundColor: s == "cat" ? f : "white",
|
|
1049
|
+
border: `1.5px solid ${s == "cat" ? f : C}`
|
|
1050
1050
|
}
|
|
1051
1051
|
}
|
|
1052
1052
|
),
|
|
@@ -1055,7 +1055,7 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
1055
1055
|
]
|
|
1056
1056
|
}
|
|
1057
1057
|
),
|
|
1058
|
-
|
|
1058
|
+
v && /* @__PURE__ */ i("div", { className: Se.checkboxContainer, children: a.map((N, S) => {
|
|
1059
1059
|
var L;
|
|
1060
1060
|
return /* @__PURE__ */ i(
|
|
1061
1061
|
Ct,
|
|
@@ -1075,8 +1075,8 @@ const Q2 = "_tematicalFiltersInputContainer_1vm1r_2", X2 = "_inputTypeContainer_
|
|
|
1075
1075
|
max: c,
|
|
1076
1076
|
unit: u,
|
|
1077
1077
|
defaultValue: w[n.code[0]] ? w[n.code[0]] : "",
|
|
1078
|
-
isDate:
|
|
1079
|
-
step:
|
|
1078
|
+
isDate: y,
|
|
1079
|
+
step: p
|
|
1080
1080
|
}
|
|
1081
1081
|
) })
|
|
1082
1082
|
]
|
|
@@ -1204,7 +1204,7 @@ const _t = ({
|
|
|
1204
1204
|
inputsColor: t = "#605B56",
|
|
1205
1205
|
activeColor: r
|
|
1206
1206
|
}) => {
|
|
1207
|
-
const { tematicalFiltersSelected: a, activeFiltersType: l } = D((
|
|
1207
|
+
const { tematicalFiltersSelected: a, activeFiltersType: l } = D((p) => p), { t: c } = $();
|
|
1208
1208
|
F(() => {
|
|
1209
1209
|
}, [a]), F(() => {
|
|
1210
1210
|
o && D.setState(() => ({ fontColor: o }));
|
|
@@ -1222,10 +1222,10 @@ const _t = ({
|
|
|
1222
1222
|
color: o,
|
|
1223
1223
|
activeColor: r,
|
|
1224
1224
|
onClick: u,
|
|
1225
|
-
children: n == null ? void 0 : n.map((
|
|
1225
|
+
children: n == null ? void 0 : n.map((p, g) => /* @__PURE__ */ i(
|
|
1226
1226
|
yt,
|
|
1227
1227
|
{
|
|
1228
|
-
category:
|
|
1228
|
+
category: p,
|
|
1229
1229
|
fontColor: o,
|
|
1230
1230
|
activeColor: r
|
|
1231
1231
|
},
|
|
@@ -1261,36 +1261,36 @@ const tn = "_FiltersAmbitContainer_1g9xx_2", nn = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1261
1261
|
onChangeAppliedFilters: l,
|
|
1262
1262
|
saveAmbit: c,
|
|
1263
1263
|
namePlaceholder: u,
|
|
1264
|
-
descPlaceholder:
|
|
1264
|
+
descPlaceholder: p,
|
|
1265
1265
|
filtersTypes: g = ["geographical", "tematical"],
|
|
1266
|
-
nameRequiredText:
|
|
1267
|
-
geoFilterLayers:
|
|
1266
|
+
nameRequiredText: y,
|
|
1267
|
+
geoFilterLayers: v = [],
|
|
1268
1268
|
onGeoLayersChange: _,
|
|
1269
|
-
onlyFilters:
|
|
1269
|
+
onlyFilters: b = !1
|
|
1270
1270
|
//usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
|
|
1271
1271
|
}) => {
|
|
1272
|
-
const { t:
|
|
1272
|
+
const { t: h } = $(), { tematicalFiltersSelected: C, activeFiltersType: f, geoLayers: x } = D((R) => R), [w, N] = V(n || null), [S, L] = V(d || null), [k, B] = V(!1);
|
|
1273
1273
|
F(() => {
|
|
1274
1274
|
s && s.length > 0 && D.setState((R) => ({
|
|
1275
1275
|
tematicalFiltersSelected: s
|
|
1276
1276
|
}));
|
|
1277
1277
|
}, [s]), F(() => {
|
|
1278
|
-
g.includes("geographical") && D.setState({ geoLayers:
|
|
1279
|
-
}, [
|
|
1280
|
-
l(
|
|
1281
|
-
}, [
|
|
1278
|
+
g.includes("geographical") && D.setState({ geoLayers: v });
|
|
1279
|
+
}, [v]), F(() => {
|
|
1280
|
+
l(C);
|
|
1281
|
+
}, [C]);
|
|
1282
1282
|
const O = () => {
|
|
1283
1283
|
w ? c({ name: w, description: S }) : B(!0);
|
|
1284
1284
|
};
|
|
1285
1285
|
return F(() => {
|
|
1286
|
-
g.includes("geographical") &&
|
|
1286
|
+
g.includes("geographical") && f != "geographical" && x.length > 0 && D.setState((R) => ({
|
|
1287
1287
|
geoLayers: R.geoLayers.map((T) => ({
|
|
1288
1288
|
...T,
|
|
1289
1289
|
active: !1
|
|
1290
1290
|
}))
|
|
1291
1291
|
}));
|
|
1292
|
-
}, [
|
|
1293
|
-
!
|
|
1292
|
+
}, [f]), /* @__PURE__ */ m("div", { className: ae.FiltersAmbitContainer, children: [
|
|
1293
|
+
!b && /* @__PURE__ */ m("div", { className: ae.FiltersAmbitHeader, children: [
|
|
1294
1294
|
/* @__PURE__ */ i("div", { className: ae.FiltersAmbitTitle, children: /* @__PURE__ */ i(
|
|
1295
1295
|
"input",
|
|
1296
1296
|
{
|
|
@@ -1299,7 +1299,7 @@ const tn = "_FiltersAmbitContainer_1g9xx_2", nn = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1299
1299
|
B(!1), N(R.target.value);
|
|
1300
1300
|
},
|
|
1301
1301
|
value: w,
|
|
1302
|
-
placeholder:
|
|
1302
|
+
placeholder: h(u)
|
|
1303
1303
|
}
|
|
1304
1304
|
) }),
|
|
1305
1305
|
/* @__PURE__ */ i("div", { className: ae.FiltersAmbitDescription, children: /* @__PURE__ */ i("div", { className: ae.FiltersAmbitDescriptionTitle, children: /* @__PURE__ */ i(
|
|
@@ -1307,21 +1307,21 @@ const tn = "_FiltersAmbitContainer_1g9xx_2", nn = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1307
1307
|
{
|
|
1308
1308
|
value: S,
|
|
1309
1309
|
onChange: (R) => L(R.target.value),
|
|
1310
|
-
placeholder: p
|
|
1310
|
+
placeholder: h(p)
|
|
1311
1311
|
}
|
|
1312
1312
|
) }) })
|
|
1313
1313
|
] }),
|
|
1314
1314
|
/* @__PURE__ */ i(
|
|
1315
1315
|
ht,
|
|
1316
1316
|
{
|
|
1317
|
-
title:
|
|
1317
|
+
title: h("applied_filters"),
|
|
1318
1318
|
isOpen: !0,
|
|
1319
1319
|
textColor: r || "#fff",
|
|
1320
1320
|
backgroundColor: a || "#605B5680",
|
|
1321
1321
|
activeColor: t
|
|
1322
1322
|
}
|
|
1323
1323
|
),
|
|
1324
|
-
g.includes("geographical") && /* @__PURE__ */ i(gt, { activeColor: t, geoFilterLayers:
|
|
1324
|
+
g.includes("geographical") && /* @__PURE__ */ i(gt, { activeColor: t, geoFilterLayers: v, onGeoLayersChange: _ }),
|
|
1325
1325
|
g.includes("tematical") && /* @__PURE__ */ i(
|
|
1326
1326
|
_t,
|
|
1327
1327
|
{
|
|
@@ -1332,8 +1332,8 @@ const tn = "_FiltersAmbitContainer_1g9xx_2", nn = "_FiltersAmbitHeader_1g9xx_7",
|
|
|
1332
1332
|
activeColor: t
|
|
1333
1333
|
}
|
|
1334
1334
|
),
|
|
1335
|
-
k && /* @__PURE__ */ i("div", { className: ae.warning, children:
|
|
1336
|
-
!
|
|
1335
|
+
k && /* @__PURE__ */ i("div", { className: ae.warning, children: h(y) }),
|
|
1336
|
+
!b && /* @__PURE__ */ i("div", { className: "buttonContainer", children: /* @__PURE__ */ i(Te, { onClick: () => O(), children: h("save_ambit") }) })
|
|
1337
1337
|
] });
|
|
1338
1338
|
};
|
|
1339
1339
|
ln.propTypes = {
|
|
@@ -1365,12 +1365,12 @@ const cn = "_barChartContainer_d2f1z_2", dn = {
|
|
|
1365
1365
|
numberOfDivisions: c = 7,
|
|
1366
1366
|
maxValue: u = null
|
|
1367
1367
|
}) => {
|
|
1368
|
-
const { t:
|
|
1368
|
+
const { t: p } = $(), { xScale: g, ticks: y, height: v } = me(() => {
|
|
1369
1369
|
if (n && n.length > 0) {
|
|
1370
|
-
const _ = (n == null ? void 0 : n.length) * (s + o) + r * 2,
|
|
1370
|
+
const _ = (n == null ? void 0 : n.length) * (s + o) + r * 2, b = Ye.max(n, (f) => f.value) || 1, h = Ye.scaleLinear().domain([0, u || b]).range([0, d - l]), C = Array.from({ length: c + 1 }, (f, x) => u ? u / c * x : b / c * x);
|
|
1371
1371
|
return {
|
|
1372
|
-
xScale:
|
|
1373
|
-
ticks:
|
|
1372
|
+
xScale: h,
|
|
1373
|
+
ticks: C,
|
|
1374
1374
|
height: _,
|
|
1375
1375
|
width: d,
|
|
1376
1376
|
verticalPaddign: r,
|
|
@@ -1388,36 +1388,36 @@ const cn = "_barChartContainer_d2f1z_2", dn = {
|
|
|
1388
1388
|
r,
|
|
1389
1389
|
u
|
|
1390
1390
|
]);
|
|
1391
|
-
return /* @__PURE__ */ i("div", { className: dn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + a * 2, height:
|
|
1392
|
-
/* @__PURE__ */ i("g", { transform: `translate(${l + a}, 0)`, children:
|
|
1393
|
-
const
|
|
1394
|
-
return /* @__PURE__ */ m("g", { transform: `translate(${
|
|
1391
|
+
return /* @__PURE__ */ i("div", { className: dn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + a * 2, height: v, children: /* @__PURE__ */ m("g", { transform: `translate(0,${o})`, children: [
|
|
1392
|
+
/* @__PURE__ */ i("g", { transform: `translate(${l + a}, 0)`, children: y.map((_, b) => {
|
|
1393
|
+
const h = g(_);
|
|
1394
|
+
return /* @__PURE__ */ m("g", { transform: `translate(${h}, 0)`, children: [
|
|
1395
1395
|
/* @__PURE__ */ i(
|
|
1396
1396
|
"line",
|
|
1397
1397
|
{
|
|
1398
1398
|
y1: 0,
|
|
1399
|
-
y2:
|
|
1399
|
+
y2: v - o * 2,
|
|
1400
1400
|
stroke: "#ccc"
|
|
1401
1401
|
}
|
|
1402
1402
|
),
|
|
1403
1403
|
/* @__PURE__ */ i(
|
|
1404
1404
|
"text",
|
|
1405
1405
|
{
|
|
1406
|
-
y:
|
|
1406
|
+
y: v - o,
|
|
1407
1407
|
textAnchor: "middle",
|
|
1408
1408
|
fontSize: 10,
|
|
1409
1409
|
fill: t,
|
|
1410
1410
|
children: parseInt(_)
|
|
1411
1411
|
}
|
|
1412
1412
|
)
|
|
1413
|
-
] },
|
|
1413
|
+
] }, b);
|
|
1414
1414
|
}) }),
|
|
1415
|
-
n && n.length > 0 && (n == null ? void 0 : n.map((_,
|
|
1416
|
-
const
|
|
1415
|
+
n && n.length > 0 && (n == null ? void 0 : n.map((_, b) => {
|
|
1416
|
+
const h = g(_.value), C = b * (s + o);
|
|
1417
1417
|
return /* @__PURE__ */ m(
|
|
1418
1418
|
"g",
|
|
1419
1419
|
{
|
|
1420
|
-
transform: `translate(${l + a}, ${
|
|
1420
|
+
transform: `translate(${l + a}, ${C})`,
|
|
1421
1421
|
children: [
|
|
1422
1422
|
/* @__PURE__ */ i(
|
|
1423
1423
|
"text",
|
|
@@ -1426,13 +1426,13 @@ const cn = "_barChartContainer_d2f1z_2", dn = {
|
|
|
1426
1426
|
y: s / 2 + 5,
|
|
1427
1427
|
textAnchor: "end",
|
|
1428
1428
|
fill: t,
|
|
1429
|
-
children:
|
|
1429
|
+
children: p(_.title)
|
|
1430
1430
|
}
|
|
1431
1431
|
),
|
|
1432
1432
|
/* @__PURE__ */ i(
|
|
1433
1433
|
"rect",
|
|
1434
1434
|
{
|
|
1435
|
-
width:
|
|
1435
|
+
width: h,
|
|
1436
1436
|
height: s,
|
|
1437
1437
|
fill: _.color,
|
|
1438
1438
|
rx: 0
|
|
@@ -1440,7 +1440,7 @@ const cn = "_barChartContainer_d2f1z_2", dn = {
|
|
|
1440
1440
|
)
|
|
1441
1441
|
]
|
|
1442
1442
|
},
|
|
1443
|
-
|
|
1443
|
+
b
|
|
1444
1444
|
);
|
|
1445
1445
|
}))
|
|
1446
1446
|
] }) }) });
|
|
@@ -1544,15 +1544,15 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1544
1544
|
multiple: l = !1,
|
|
1545
1545
|
onChangeType: c
|
|
1546
1546
|
}) => {
|
|
1547
|
-
const { t: u } = $(), { name:
|
|
1547
|
+
const { t: u } = $(), { name: p, type: g, disabled: y } = n, [v, _] = V(!1);
|
|
1548
1548
|
F(() => {
|
|
1549
1549
|
t && _(
|
|
1550
1550
|
l ? t.some(
|
|
1551
|
-
(
|
|
1552
|
-
) : t.name ==
|
|
1551
|
+
(C) => C.name == String(p)
|
|
1552
|
+
) : t.name == p
|
|
1553
1553
|
);
|
|
1554
1554
|
}, [t]);
|
|
1555
|
-
const
|
|
1555
|
+
const b = () => /* @__PURE__ */ i("div", { className: q.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: q.switchType, children: /* @__PURE__ */ m("div", { className: q.switchTypeOptions, children: [
|
|
1556
1556
|
/* @__PURE__ */ m(
|
|
1557
1557
|
"div",
|
|
1558
1558
|
{
|
|
@@ -1611,7 +1611,7 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1611
1611
|
]
|
|
1612
1612
|
}
|
|
1613
1613
|
)
|
|
1614
|
-
] }) }) }),
|
|
1614
|
+
] }) }) }), h = () => /* @__PURE__ */ i("div", { className: q.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: q.switchType, children: /* @__PURE__ */ i("div", { className: q.switchTypeOptions, children: d.map((C, f) => /* @__PURE__ */ m(
|
|
1615
1615
|
"div",
|
|
1616
1616
|
{
|
|
1617
1617
|
className: q.optionContainer,
|
|
@@ -1622,24 +1622,24 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1622
1622
|
className: q.customRadious
|
|
1623
1623
|
}
|
|
1624
1624
|
),
|
|
1625
|
-
/* @__PURE__ */ i("h4", { children: u(
|
|
1625
|
+
/* @__PURE__ */ i("h4", { children: u(C.unit) })
|
|
1626
1626
|
]
|
|
1627
1627
|
},
|
|
1628
|
-
|
|
1628
|
+
f
|
|
1629
1629
|
)) }) }) });
|
|
1630
1630
|
return /* @__PURE__ */ m("div", { className: q.indicatorContainer, children: [
|
|
1631
1631
|
/* @__PURE__ */ m(
|
|
1632
1632
|
"div",
|
|
1633
1633
|
{
|
|
1634
1634
|
className: q.indicatorNameContainer,
|
|
1635
|
-
onClick: () => !
|
|
1635
|
+
onClick: () => !y && a({ indicator: n }),
|
|
1636
1636
|
children: [
|
|
1637
1637
|
/* @__PURE__ */ i(
|
|
1638
1638
|
"div",
|
|
1639
1639
|
{
|
|
1640
1640
|
style: {
|
|
1641
|
-
border:
|
|
1642
|
-
opacity:
|
|
1641
|
+
border: v ? `1px solid ${s}` : `1px solid ${o}`,
|
|
1642
|
+
opacity: y ? 0.5 : 1
|
|
1643
1643
|
},
|
|
1644
1644
|
className: q.dot
|
|
1645
1645
|
}
|
|
@@ -1649,13 +1649,13 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1649
1649
|
{
|
|
1650
1650
|
className: q.indicatorName,
|
|
1651
1651
|
style: {
|
|
1652
|
-
color:
|
|
1653
|
-
opacity:
|
|
1652
|
+
color: v ? s : o,
|
|
1653
|
+
opacity: y ? 0.5 : 1
|
|
1654
1654
|
},
|
|
1655
1655
|
children: /* @__PURE__ */ i(
|
|
1656
1656
|
Ke,
|
|
1657
1657
|
{
|
|
1658
|
-
i18nKey:
|
|
1658
|
+
i18nKey: p,
|
|
1659
1659
|
components: { sup: /* @__PURE__ */ i("sup", {}) },
|
|
1660
1660
|
shouldUnescape: !0
|
|
1661
1661
|
}
|
|
@@ -1665,8 +1665,8 @@ const hn = "_indicatorsCategory_1cu33_2", gn = "_title_1cu33_5", Cn = "_list_1cu
|
|
|
1665
1665
|
]
|
|
1666
1666
|
}
|
|
1667
1667
|
),
|
|
1668
|
-
(t == null ? void 0 : t.name) ===
|
|
1669
|
-
(t == null ? void 0 : t.name) ===
|
|
1668
|
+
(t == null ? void 0 : t.name) === p && g === "both" && /* @__PURE__ */ i("div", { children: b() }),
|
|
1669
|
+
(t == null ? void 0 : t.name) === p && g === "twoUnits" && /* @__PURE__ */ i("div", { children: h() })
|
|
1670
1670
|
] });
|
|
1671
1671
|
};
|
|
1672
1672
|
Ge.propTypes = {
|
|
@@ -1695,10 +1695,10 @@ const $n = "_indicatorsSubCategory_1dzsi_2", Bn = "_list_1dzsi_8", tt = {
|
|
|
1695
1695
|
activeIndicator: l,
|
|
1696
1696
|
onClickIndicator: c,
|
|
1697
1697
|
multiple: u,
|
|
1698
|
-
activeIndicatorType:
|
|
1698
|
+
activeIndicatorType: p,
|
|
1699
1699
|
onChangeType: g
|
|
1700
1700
|
}) => {
|
|
1701
|
-
const { t:
|
|
1701
|
+
const { t: y } = $(), [v, _] = V(!1);
|
|
1702
1702
|
return F(() => {
|
|
1703
1703
|
_(t == a);
|
|
1704
1704
|
}, [t, a]), /* @__PURE__ */ m(
|
|
@@ -1706,32 +1706,32 @@ const $n = "_indicatorsSubCategory_1dzsi_2", Bn = "_list_1dzsi_8", tt = {
|
|
|
1706
1706
|
{
|
|
1707
1707
|
className: tt.indicatorsSubCategory,
|
|
1708
1708
|
initial: { height: "43px" },
|
|
1709
|
-
animate: { height:
|
|
1709
|
+
animate: { height: v ? "auto" : "43px" },
|
|
1710
1710
|
transition: { duration: 0.4 },
|
|
1711
1711
|
children: [
|
|
1712
|
-
/* @__PURE__ */ i("button", { onClick: () => r(a), children: /* @__PURE__ */ m("h3", { style: { color:
|
|
1713
|
-
/* @__PURE__ */ i("span", { style: { color:
|
|
1712
|
+
/* @__PURE__ */ i("button", { onClick: () => r(a), children: /* @__PURE__ */ m("h3", { style: { color: v ? o : s }, children: [
|
|
1713
|
+
/* @__PURE__ */ i("span", { style: { color: v ? o : s }, children: v ? "-" : "+" }),
|
|
1714
1714
|
/* @__PURE__ */ i(
|
|
1715
1715
|
"span",
|
|
1716
1716
|
{
|
|
1717
|
-
style: { marginLeft: 12, color:
|
|
1718
|
-
children:
|
|
1717
|
+
style: { marginLeft: 12, color: v ? o : s },
|
|
1718
|
+
children: y(n)
|
|
1719
1719
|
}
|
|
1720
1720
|
)
|
|
1721
1721
|
] }) }),
|
|
1722
|
-
d && /* @__PURE__ */ i("div", { className: tt.list, children: d == null ? void 0 : d.map((
|
|
1722
|
+
d && /* @__PURE__ */ i("div", { className: tt.list, children: d == null ? void 0 : d.map((b, h) => /* @__PURE__ */ i(
|
|
1723
1723
|
Ge,
|
|
1724
1724
|
{
|
|
1725
|
-
indicator:
|
|
1725
|
+
indicator: b,
|
|
1726
1726
|
defaultColor: s,
|
|
1727
1727
|
activeColor: o,
|
|
1728
1728
|
activeIndicator: l,
|
|
1729
1729
|
onClickIndicator: c,
|
|
1730
1730
|
multiple: u,
|
|
1731
|
-
activeIndicatorType:
|
|
1731
|
+
activeIndicatorType: p,
|
|
1732
1732
|
onChangeType: g
|
|
1733
1733
|
},
|
|
1734
|
-
"indicator" +
|
|
1734
|
+
"indicator" + h
|
|
1735
1735
|
)) })
|
|
1736
1736
|
]
|
|
1737
1737
|
}
|
|
@@ -1760,14 +1760,14 @@ const xt = ({
|
|
|
1760
1760
|
onClickSubCategory: l,
|
|
1761
1761
|
activeIndicator: c,
|
|
1762
1762
|
onClickIndicator: u,
|
|
1763
|
-
multiple:
|
|
1763
|
+
multiple: p,
|
|
1764
1764
|
activeIndicatorType: g,
|
|
1765
|
-
onChangeType:
|
|
1765
|
+
onChangeType: y
|
|
1766
1766
|
}) => {
|
|
1767
|
-
var
|
|
1768
|
-
const { t:
|
|
1767
|
+
var h;
|
|
1768
|
+
const { t: v } = $(), [_, b] = V(!1);
|
|
1769
1769
|
return F(() => {
|
|
1770
|
-
|
|
1770
|
+
b(r === d);
|
|
1771
1771
|
}, [r, d]), /* @__PURE__ */ m(
|
|
1772
1772
|
He.div,
|
|
1773
1773
|
{
|
|
@@ -1787,43 +1787,43 @@ const xt = ({
|
|
|
1787
1787
|
"span",
|
|
1788
1788
|
{
|
|
1789
1789
|
style: { marginLeft: 12, color: _ ? s : o },
|
|
1790
|
-
children:
|
|
1790
|
+
children: v(n.name)
|
|
1791
1791
|
}
|
|
1792
1792
|
)
|
|
1793
1793
|
] }),
|
|
1794
1794
|
n.subcategories ? n.subcategories.map(
|
|
1795
|
-
({ name:
|
|
1795
|
+
({ name: C, subcategory: f, indicators: x }, w) => /* @__PURE__ */ i(
|
|
1796
1796
|
wt,
|
|
1797
1797
|
{
|
|
1798
|
-
id:
|
|
1798
|
+
id: f,
|
|
1799
1799
|
activeSubCategory: a,
|
|
1800
|
-
subcName:
|
|
1800
|
+
subcName: C,
|
|
1801
1801
|
onClickSubCategory: l,
|
|
1802
1802
|
activeIndicator: c,
|
|
1803
1803
|
onClickIndicator: u,
|
|
1804
|
-
multiple:
|
|
1804
|
+
multiple: p,
|
|
1805
1805
|
activeColor: s,
|
|
1806
1806
|
defaultColor: o,
|
|
1807
1807
|
indicators: x,
|
|
1808
1808
|
activeIndicatorType: g,
|
|
1809
|
-
onChangeType:
|
|
1809
|
+
onChangeType: y
|
|
1810
1810
|
},
|
|
1811
1811
|
`subcKey ${w}`
|
|
1812
1812
|
)
|
|
1813
|
-
) : /* @__PURE__ */ i("div", { className: Ae.list, children: (
|
|
1813
|
+
) : /* @__PURE__ */ i("div", { className: Ae.list, children: (h = n.indicators) == null ? void 0 : h.map((C, f) => /* @__PURE__ */ i(
|
|
1814
1814
|
Ge,
|
|
1815
1815
|
{
|
|
1816
|
-
indicator:
|
|
1817
|
-
values:
|
|
1816
|
+
indicator: C,
|
|
1817
|
+
values: C.type == "twoUnits" && C.values,
|
|
1818
1818
|
activeColor: s,
|
|
1819
1819
|
defaultColor: o,
|
|
1820
1820
|
activeIndicator: c,
|
|
1821
1821
|
onClickIndicator: u,
|
|
1822
|
-
multiple:
|
|
1822
|
+
multiple: p,
|
|
1823
1823
|
activeIndicatorType: g,
|
|
1824
|
-
onChangeType:
|
|
1824
|
+
onChangeType: y
|
|
1825
1825
|
},
|
|
1826
|
-
`indicator${
|
|
1826
|
+
`indicator${f}`
|
|
1827
1827
|
)) })
|
|
1828
1828
|
]
|
|
1829
1829
|
}
|
|
@@ -1860,19 +1860,19 @@ const Ln = "_indicatorsList_fklyu_2", Tn = "_title_fklyu_6", nt = {
|
|
|
1860
1860
|
changeIndType: a,
|
|
1861
1861
|
activeIndicatorType: l
|
|
1862
1862
|
}) => {
|
|
1863
|
-
const { t: c } = $(), [u,
|
|
1864
|
-
|
|
1865
|
-
},
|
|
1866
|
-
|
|
1867
|
-
},
|
|
1868
|
-
|
|
1869
|
-
},
|
|
1863
|
+
const { t: c } = $(), [u, p] = V(), [g, y] = V(), [v, _] = V(), b = (w) => {
|
|
1864
|
+
p(u == w ? null : w);
|
|
1865
|
+
}, h = (w) => {
|
|
1866
|
+
y(g == w ? null : w);
|
|
1867
|
+
}, C = ({ indicator: w }) => {
|
|
1868
|
+
f(w);
|
|
1869
|
+
}, f = (w) => {
|
|
1870
1870
|
if (!t)
|
|
1871
1871
|
_(
|
|
1872
|
-
(
|
|
1872
|
+
(v == null ? void 0 : v.name) == w.name ? null : w
|
|
1873
1873
|
);
|
|
1874
1874
|
else {
|
|
1875
|
-
let N =
|
|
1875
|
+
let N = v && v.length > 0 ? [...v] : [];
|
|
1876
1876
|
_(
|
|
1877
1877
|
N != null && N.some(
|
|
1878
1878
|
(S) => S.name == w.name
|
|
@@ -1883,14 +1883,14 @@ const Ln = "_indicatorsList_fklyu_2", Tn = "_title_fklyu_6", nt = {
|
|
|
1883
1883
|
}
|
|
1884
1884
|
};
|
|
1885
1885
|
F(() => {
|
|
1886
|
-
o && typeof o == "function" &&
|
|
1887
|
-
}, [
|
|
1888
|
-
if (r && !
|
|
1886
|
+
o && typeof o == "function" && v && o({ activeIndicator: v });
|
|
1887
|
+
}, [v]), At(() => {
|
|
1888
|
+
if (r && !v)
|
|
1889
1889
|
if (t && r && Array.isArray(r)) {
|
|
1890
|
-
let w =
|
|
1890
|
+
let w = v && v.length > 0 ? [...v] : [];
|
|
1891
1891
|
_([...w, ...r]), x(r[0].name);
|
|
1892
1892
|
} else
|
|
1893
|
-
|
|
1893
|
+
f(r), x(r.name);
|
|
1894
1894
|
}, []);
|
|
1895
1895
|
const x = (w) => {
|
|
1896
1896
|
const N = n.find((S) => {
|
|
@@ -1899,11 +1899,11 @@ const Ln = "_indicatorsList_fklyu_2", Tn = "_title_fklyu_6", nt = {
|
|
|
1899
1899
|
(k) => k.indicators.find((B) => B.name == w)
|
|
1900
1900
|
);
|
|
1901
1901
|
if (L)
|
|
1902
|
-
return
|
|
1902
|
+
return y(L.subcategory), L;
|
|
1903
1903
|
} else
|
|
1904
1904
|
return S.indicators.some((L) => L.name == w);
|
|
1905
1905
|
});
|
|
1906
|
-
N &&
|
|
1906
|
+
N && p(N.category);
|
|
1907
1907
|
};
|
|
1908
1908
|
return /* @__PURE__ */ m("div", { className: nt.indicatorsList, children: [
|
|
1909
1909
|
/* @__PURE__ */ i("h2", { className: nt.title, style: { color: s }, children: c("indicators.indicators") }),
|
|
@@ -1912,12 +1912,12 @@ const Ln = "_indicatorsList_fklyu_2", Tn = "_title_fklyu_6", nt = {
|
|
|
1912
1912
|
{
|
|
1913
1913
|
id: w.category,
|
|
1914
1914
|
cat: w,
|
|
1915
|
-
onClickCategory:
|
|
1915
|
+
onClickCategory: b,
|
|
1916
1916
|
activeCategory: u,
|
|
1917
|
-
onClickSubCategory:
|
|
1917
|
+
onClickSubCategory: h,
|
|
1918
1918
|
activeSubCategory: g,
|
|
1919
|
-
onClickIndicator:
|
|
1920
|
-
activeIndicator:
|
|
1919
|
+
onClickIndicator: C,
|
|
1920
|
+
activeIndicator: v,
|
|
1921
1921
|
activeColor: d,
|
|
1922
1922
|
defaultColor: s,
|
|
1923
1923
|
multiple: t,
|
|
@@ -2038,8 +2038,8 @@ const Rn = "_legendContainer_qs4x9_3", qn = "_closeButton_qs4x9_31", En = "_titl
|
|
|
2038
2038
|
children: [
|
|
2039
2039
|
/* @__PURE__ */ i("button", { className: I.closeButton, onClick: c }),
|
|
2040
2040
|
d && /* @__PURE__ */ i("div", { className: I.titleContainer, style: { marginBottom: (!s || s.length == 0) && "15px" }, children: /* @__PURE__ */ i("h2", { children: d }) }),
|
|
2041
|
-
s && s.length > 0 && /* @__PURE__ */ i("div", { className: I.infoContainer, children: /* @__PURE__ */ i("ul", { children: s.map(({ title:
|
|
2042
|
-
/* @__PURE__ */ i("h3", { className: I.title, children: `${
|
|
2041
|
+
s && s.length > 0 && /* @__PURE__ */ i("div", { className: I.infoContainer, children: /* @__PURE__ */ i("ul", { children: s.map(({ title: p, value: g }) => /* @__PURE__ */ m("li", { children: [
|
|
2042
|
+
/* @__PURE__ */ i("h3", { className: I.title, children: `${p}:` }),
|
|
2043
2043
|
/* @__PURE__ */ m("span", { className: I.value, children: [
|
|
2044
2044
|
" ",
|
|
2045
2045
|
g
|
|
@@ -2075,7 +2075,7 @@ const Rn = "_legendContainer_qs4x9_3", qn = "_closeButton_qs4x9_31", En = "_titl
|
|
|
2075
2075
|
] })
|
|
2076
2076
|
] })
|
|
2077
2077
|
] }) : o && o.length > 0 && /* @__PURE__ */ i("div", { className: I.gridContainer, children: o.map(
|
|
2078
|
-
({ title:
|
|
2078
|
+
({ title: p, color: g }) => /* @__PURE__ */ m("div", { className: I.elementLegendContainer, children: [
|
|
2079
2079
|
/* @__PURE__ */ i(
|
|
2080
2080
|
"div",
|
|
2081
2081
|
{
|
|
@@ -2084,7 +2084,7 @@ const Rn = "_legendContainer_qs4x9_3", qn = "_closeButton_qs4x9_31", En = "_titl
|
|
|
2084
2084
|
}
|
|
2085
2085
|
),
|
|
2086
2086
|
/* @__PURE__ */ m("div", { className: I.titleLegendElement, children: [
|
|
2087
|
-
u(
|
|
2087
|
+
u(p),
|
|
2088
2088
|
" "
|
|
2089
2089
|
] })
|
|
2090
2090
|
] }, d)
|
|
@@ -2161,14 +2161,14 @@ const s0 = ({
|
|
|
2161
2161
|
interactiveLayers: l = [],
|
|
2162
2162
|
popUp: c = !1,
|
|
2163
2163
|
sources: u = [],
|
|
2164
|
-
layers:
|
|
2164
|
+
layers: p = []
|
|
2165
2165
|
}) => {
|
|
2166
|
-
const g = se(), [
|
|
2166
|
+
const g = se(), [y, v] = V(null), _ = Ot((b) => b.mapState.showTexts);
|
|
2167
2167
|
return F(() => {
|
|
2168
2168
|
if (g.current) {
|
|
2169
|
-
const
|
|
2170
|
-
|
|
2171
|
-
|
|
2169
|
+
const b = g.current.getMap();
|
|
2170
|
+
b.getStyle().layers.map((C) => {
|
|
2171
|
+
C.type == "symbol" && C.id != "professionals" && (_ ? b.setLayoutProperty(C.id, "visibility", "visible") : b.setLayoutProperty(C.id, "visibility", "none"));
|
|
2172
2172
|
});
|
|
2173
2173
|
}
|
|
2174
2174
|
}, [_]), /* @__PURE__ */ i("div", { className: `${i0.mapContainer}`, style: r, children: /* @__PURE__ */ m(
|
|
@@ -2183,31 +2183,31 @@ const s0 = ({
|
|
|
2183
2183
|
onClick: a,
|
|
2184
2184
|
interactiveLayerIds: l,
|
|
2185
2185
|
children: [
|
|
2186
|
-
u.length && u.map((
|
|
2186
|
+
u.length && u.map((b, h) => /* @__PURE__ */ i(
|
|
2187
2187
|
qt,
|
|
2188
2188
|
{
|
|
2189
|
-
...
|
|
2190
|
-
children:
|
|
2191
|
-
if (
|
|
2189
|
+
...b,
|
|
2190
|
+
children: p.length && p.map((C, f) => {
|
|
2191
|
+
if (C.sourceId == b.id) return /* @__PURE__ */ i(
|
|
2192
2192
|
Et,
|
|
2193
2193
|
{
|
|
2194
|
-
...
|
|
2194
|
+
...C.layer,
|
|
2195
2195
|
beforeId: t
|
|
2196
2196
|
},
|
|
2197
|
-
|
|
2197
|
+
f
|
|
2198
2198
|
);
|
|
2199
2199
|
})
|
|
2200
2200
|
},
|
|
2201
|
-
|
|
2201
|
+
h
|
|
2202
2202
|
)),
|
|
2203
2203
|
/* @__PURE__ */ i(Pt, { position: "bottom-right", visualizePitch: !0 }),
|
|
2204
|
-
c &&
|
|
2204
|
+
c && y && /* @__PURE__ */ i(
|
|
2205
2205
|
jt,
|
|
2206
2206
|
{
|
|
2207
2207
|
longitude: c.longitude,
|
|
2208
2208
|
latitude: c.latitude,
|
|
2209
2209
|
anchor: c.anchor,
|
|
2210
|
-
onClose: () =>
|
|
2210
|
+
onClose: () => v(null),
|
|
2211
2211
|
children: c.content
|
|
2212
2212
|
}
|
|
2213
2213
|
)
|
|
@@ -2289,23 +2289,22 @@ const o0 = "_mapContainer_b0pyr_3", r0 = {
|
|
|
2289
2289
|
interactiveLayers: l = [],
|
|
2290
2290
|
sources: c = [],
|
|
2291
2291
|
layers: u = [],
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
onClosePopUp: b,
|
|
2292
|
+
popUpParams: p,
|
|
2293
|
+
onClosePopUp: g,
|
|
2295
2294
|
showTexts: y,
|
|
2296
|
-
hash:
|
|
2295
|
+
hash: v = !1
|
|
2297
2296
|
}) => {
|
|
2298
|
-
const
|
|
2297
|
+
const _ = se();
|
|
2299
2298
|
return F(() => {
|
|
2300
|
-
if (
|
|
2301
|
-
const
|
|
2302
|
-
|
|
2303
|
-
C.type == "symbol" && C.id != "professionals" && (y ?
|
|
2299
|
+
if (_.current) {
|
|
2300
|
+
const b = _.current.getMap();
|
|
2301
|
+
b.getStyle().layers.map((C) => {
|
|
2302
|
+
C.type == "symbol" && C.id != "professionals" && (y ? b.setLayoutProperty(C.id, "visibility", "visible") : b.setLayoutProperty(C.id, "visibility", "none"));
|
|
2304
2303
|
});
|
|
2305
2304
|
}
|
|
2306
2305
|
}, [y]), F(() => {
|
|
2307
|
-
let
|
|
2308
|
-
return Me.addProtocol("pmtiles",
|
|
2306
|
+
let b = new zt();
|
|
2307
|
+
return Me.addProtocol("pmtiles", b.tile), () => {
|
|
2309
2308
|
Me.removeProtocol("pmtiles");
|
|
2310
2309
|
};
|
|
2311
2310
|
}, []), /* @__PURE__ */ i("div", { className: `${r0.mapContainer}`, style: r && r, children: /* @__PURE__ */ m(
|
|
@@ -2313,43 +2312,43 @@ const o0 = "_mapContainer_b0pyr_3", r0 = {
|
|
|
2313
2312
|
{
|
|
2314
2313
|
mapLib: Me,
|
|
2315
2314
|
initialViewState: n,
|
|
2316
|
-
ref:
|
|
2317
|
-
hash:
|
|
2315
|
+
ref: _,
|
|
2316
|
+
hash: v,
|
|
2318
2317
|
maxZoom: d,
|
|
2319
2318
|
minZoom: s,
|
|
2320
2319
|
mapStyle: o,
|
|
2321
2320
|
onClick: a,
|
|
2322
2321
|
interactiveLayerIds: l,
|
|
2323
2322
|
children: [
|
|
2324
|
-
c.length && c.map((
|
|
2323
|
+
c.length && c.map((b, h) => /* @__PURE__ */ i(
|
|
2325
2324
|
Kt,
|
|
2326
2325
|
{
|
|
2327
|
-
...
|
|
2328
|
-
children: u.length && u.map((C,
|
|
2329
|
-
if (C.sourceId ==
|
|
2326
|
+
...b,
|
|
2327
|
+
children: u.length && u.map((C, f) => {
|
|
2328
|
+
if (console.log(C), C.sourceId == b.id) return /* @__PURE__ */ i(
|
|
2330
2329
|
Ht,
|
|
2331
2330
|
{
|
|
2332
2331
|
...C.layer,
|
|
2333
2332
|
beforeId: t,
|
|
2334
|
-
filter:
|
|
2333
|
+
filter: C.filters ? C.filters : ["all"],
|
|
2335
2334
|
layout: {
|
|
2336
2335
|
visibility: C.layer.visibility || "visible"
|
|
2337
2336
|
}
|
|
2338
2337
|
},
|
|
2339
|
-
|
|
2338
|
+
f
|
|
2340
2339
|
);
|
|
2341
2340
|
})
|
|
2342
2341
|
},
|
|
2343
|
-
|
|
2342
|
+
h
|
|
2344
2343
|
)),
|
|
2345
2344
|
/* @__PURE__ */ i(Ut, { position: "bottom-right", visualizePitch: !0 }),
|
|
2346
|
-
|
|
2345
|
+
p && /* @__PURE__ */ i(
|
|
2347
2346
|
Gt,
|
|
2348
2347
|
{
|
|
2349
|
-
longitude:
|
|
2350
|
-
latitude:
|
|
2351
|
-
onClose:
|
|
2352
|
-
children: /* @__PURE__ */ i(c0, { props:
|
|
2348
|
+
longitude: p.lng,
|
|
2349
|
+
latitude: p.lat,
|
|
2350
|
+
onClose: g,
|
|
2351
|
+
children: /* @__PURE__ */ i(c0, { props: p.props })
|
|
2353
2352
|
}
|
|
2354
2353
|
)
|
|
2355
2354
|
]
|
|
@@ -2392,11 +2391,11 @@ d0.propTypes = {
|
|
|
2392
2391
|
maxzoom: e.number,
|
|
2393
2392
|
paint: e.object,
|
|
2394
2393
|
visibility: e.string
|
|
2395
|
-
})
|
|
2394
|
+
}),
|
|
2395
|
+
filters: e.array
|
|
2396
2396
|
})
|
|
2397
2397
|
),
|
|
2398
2398
|
showTexts: e.bool,
|
|
2399
|
-
filters: e.array,
|
|
2400
2399
|
popUpParams: e.object,
|
|
2401
2400
|
onClosePopUp: e.func
|
|
2402
2401
|
};
|
|
@@ -2483,30 +2482,30 @@ const b0 = Wt({
|
|
|
2483
2482
|
console.log("year changed to ", l);
|
|
2484
2483
|
}
|
|
2485
2484
|
}) => {
|
|
2486
|
-
const [l, c] = V(d), u = (
|
|
2487
|
-
c(
|
|
2488
|
-
}, [
|
|
2485
|
+
const [l, c] = V(d), u = (C, f) => {
|
|
2486
|
+
c(f), a(f);
|
|
2487
|
+
}, [p, g] = V(!1), y = () => {
|
|
2489
2488
|
g(!0);
|
|
2490
|
-
},
|
|
2489
|
+
}, v = () => {
|
|
2491
2490
|
g(!1);
|
|
2492
2491
|
};
|
|
2493
|
-
((
|
|
2492
|
+
((C, f) => {
|
|
2494
2493
|
const x = se();
|
|
2495
2494
|
F(() => {
|
|
2496
|
-
x.current =
|
|
2497
|
-
}, [
|
|
2495
|
+
x.current = C;
|
|
2496
|
+
}, [C]), F(() => {
|
|
2498
2497
|
function w() {
|
|
2499
2498
|
x.current();
|
|
2500
2499
|
}
|
|
2501
2500
|
{
|
|
2502
|
-
let N = setInterval(w,
|
|
2501
|
+
let N = setInterval(w, f);
|
|
2503
2502
|
return () => clearInterval(N);
|
|
2504
2503
|
}
|
|
2505
|
-
}, [
|
|
2504
|
+
}, [f]);
|
|
2506
2505
|
})(() => {
|
|
2507
|
-
|
|
2506
|
+
p && (l != 2050 ? (c(l + 1), a(l + 1)) : (c(2025), a(2025)));
|
|
2508
2507
|
}, 1e3);
|
|
2509
|
-
const
|
|
2508
|
+
const b = Qt({
|
|
2510
2509
|
palette: {
|
|
2511
2510
|
primary: {
|
|
2512
2511
|
main: "#605b56"
|
|
@@ -2528,13 +2527,13 @@ const b0 = Wt({
|
|
|
2528
2527
|
}
|
|
2529
2528
|
}
|
|
2530
2529
|
}
|
|
2531
|
-
}),
|
|
2530
|
+
}), h = [
|
|
2532
2531
|
{ label: "", value: 2025 },
|
|
2533
2532
|
{ label: "", value: 2032 },
|
|
2534
2533
|
{ label: "", value: 2041 },
|
|
2535
2534
|
{ label: "", value: 2050 }
|
|
2536
2535
|
];
|
|
2537
|
-
return /* @__PURE__ */ i(Jt, { theme:
|
|
2536
|
+
return /* @__PURE__ */ i(Jt, { theme: b, children: /* @__PURE__ */ m(
|
|
2538
2537
|
Xt,
|
|
2539
2538
|
{
|
|
2540
2539
|
sx: { width: 400 },
|
|
@@ -2549,7 +2548,7 @@ const b0 = Wt({
|
|
|
2549
2548
|
value: l,
|
|
2550
2549
|
valueLabelDisplay: "on",
|
|
2551
2550
|
step: 1,
|
|
2552
|
-
marks:
|
|
2551
|
+
marks: h,
|
|
2553
2552
|
min: s,
|
|
2554
2553
|
max: o,
|
|
2555
2554
|
onChange: u,
|
|
@@ -2558,8 +2557,8 @@ const b0 = Wt({
|
|
|
2558
2557
|
}
|
|
2559
2558
|
),
|
|
2560
2559
|
o,
|
|
2561
|
-
!
|
|
2562
|
-
|
|
2560
|
+
!p && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: y, children: /* @__PURE__ */ i("img", { src: y0, alt: "Play" }) }),
|
|
2561
|
+
p && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: v, children: /* @__PURE__ */ i("img", { src: _0, alt: "Pause" }) })
|
|
2563
2562
|
]
|
|
2564
2563
|
}
|
|
2565
2564
|
) });
|
|
@@ -2702,17 +2701,17 @@ const ti = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2702
2701
|
elementButtons: l,
|
|
2703
2702
|
processTooltip: c,
|
|
2704
2703
|
defaultTooltip: u,
|
|
2705
|
-
showEye:
|
|
2704
|
+
showEye: p = !0
|
|
2706
2705
|
}) => {
|
|
2707
|
-
const { name: g, created_at:
|
|
2706
|
+
const { name: g, created_at: y, id: v, isBeingProcessed: _ } = n, [b, h] = V(!1), { t: C } = $();
|
|
2708
2707
|
return /* @__PURE__ */ m(
|
|
2709
2708
|
"div",
|
|
2710
2709
|
{
|
|
2711
2710
|
className: Z.listElement,
|
|
2712
2711
|
style: { borderBottom: `1px solid ${t}` },
|
|
2713
2712
|
children: [
|
|
2714
|
-
/* @__PURE__ */ i("div", { className: Z.elementNameDate, onClick: () => d(
|
|
2715
|
-
|
|
2713
|
+
/* @__PURE__ */ i("div", { className: Z.elementNameDate, onClick: () => d(v), children: Object.keys(a).map((f) => f === "name" ? /* @__PURE__ */ i("div", { className: Z.elementNameContainer, children: /* @__PURE__ */ m("div", { className: Z.elementName, children: [
|
|
2714
|
+
p && (s ? /* @__PURE__ */ i(ei, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ i(
|
|
2716
2715
|
"img",
|
|
2717
2716
|
{
|
|
2718
2717
|
style: { marginRight: 9 },
|
|
@@ -2721,7 +2720,7 @@ const ti = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2721
2720
|
}
|
|
2722
2721
|
)),
|
|
2723
2722
|
/* @__PURE__ */ i("span", { style: { color: s ? o : t }, children: g })
|
|
2724
|
-
] }) }) :
|
|
2723
|
+
] }) }) : f == "data" ? /* @__PURE__ */ i("div", { className: Z.elementDate, children: y ? new Date(y).toLocaleDateString() : "" }) : /* @__PURE__ */ i("div", { className: Z.elementDate, children: n[f] })) }),
|
|
2725
2724
|
/* @__PURE__ */ m("div", { className: Z.elementButtons, children: [
|
|
2726
2725
|
n.processing && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
|
|
2727
2726
|
/* @__PURE__ */ i("img", { src: X0 }),
|
|
@@ -2746,11 +2745,11 @@ const ti = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2746
2745
|
] }),
|
|
2747
2746
|
r && /* @__PURE__ */ i("div", { className: Z.break }),
|
|
2748
2747
|
r && /* @__PURE__ */ m("div", { className: Z.moreInfoContainer, children: [
|
|
2749
|
-
/* @__PURE__ */ m("div", { className: Z.moreInfo, onClick: () =>
|
|
2750
|
-
/* @__PURE__ */ i("span", { children:
|
|
2751
|
-
|
|
2748
|
+
/* @__PURE__ */ m("div", { className: Z.moreInfo, onClick: () => h(!b), children: [
|
|
2749
|
+
/* @__PURE__ */ i("span", { children: b ? "-" : "+" }),
|
|
2750
|
+
C(r.label)
|
|
2752
2751
|
] }),
|
|
2753
|
-
r &&
|
|
2752
|
+
r && b && /* @__PURE__ */ i("div", { className: Z.moreInfoInfo, children: n[r.info] })
|
|
2754
2753
|
] })
|
|
2755
2754
|
]
|
|
2756
2755
|
}
|
|
@@ -2806,22 +2805,22 @@ const rt = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2806
2805
|
// {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
|
|
2807
2806
|
elementButtons: u,
|
|
2808
2807
|
//{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
|
|
2809
|
-
moreInfo:
|
|
2808
|
+
moreInfo: p = !1,
|
|
2810
2809
|
//{label: 'x'}
|
|
2811
2810
|
processTooltip: g,
|
|
2812
2811
|
//texto para el tooltip del simbolo "En proceso"
|
|
2813
|
-
defaultTooltip:
|
|
2812
|
+
defaultTooltip: y,
|
|
2814
2813
|
//texto para el tooltip del símbolo de candado para los elementos default
|
|
2815
|
-
showEye:
|
|
2814
|
+
showEye: v = !0
|
|
2816
2815
|
}) => {
|
|
2817
|
-
const { t: _ } = $(), [
|
|
2816
|
+
const { t: _ } = $(), [b, h] = V(n);
|
|
2818
2817
|
F(() => {
|
|
2819
|
-
n &&
|
|
2818
|
+
n && h(n);
|
|
2820
2819
|
}, [n]);
|
|
2821
|
-
const
|
|
2822
|
-
if (
|
|
2823
|
-
let x = [...
|
|
2824
|
-
x.sort((w, N) => w[
|
|
2820
|
+
const C = (f) => {
|
|
2821
|
+
if (b && b.length > 0) {
|
|
2822
|
+
let x = [...b];
|
|
2823
|
+
x.sort((w, N) => w[f].localeCompare(N[f])), h(x);
|
|
2825
2824
|
}
|
|
2826
2825
|
};
|
|
2827
2826
|
return /* @__PURE__ */ m(
|
|
@@ -2836,33 +2835,33 @@ const rt = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2836
2835
|
className: H.header,
|
|
2837
2836
|
style: { borderBottom: `1px solid ${s}` },
|
|
2838
2837
|
children: [
|
|
2839
|
-
/* @__PURE__ */ i("div", { className: H.nameDateContainer, children: Object.keys(c).map((
|
|
2838
|
+
/* @__PURE__ */ i("div", { className: H.nameDateContainer, children: Object.keys(c).map((f) => f === "name" ? /* @__PURE__ */ i("div", { className: H.elementName, children: /* @__PURE__ */ m("button", { onClick: () => C("name"), children: [
|
|
2840
2839
|
/* @__PURE__ */ i("span", { children: _(c.name) }),
|
|
2841
2840
|
/* @__PURE__ */ i("img", { src: rt, alt: "order arrow" })
|
|
2842
|
-
] }) },
|
|
2841
|
+
] }) }, f) : f === "data" ? /* @__PURE__ */ i("div", { className: H.elementDate, children: /* @__PURE__ */ m("button", { onClick: () => C("date"), children: [
|
|
2843
2842
|
/* @__PURE__ */ i("span", { children: _(c.data) }),
|
|
2844
2843
|
/* @__PURE__ */ i("img", { src: rt, alt: "order arrow" })
|
|
2845
|
-
] }) },
|
|
2844
|
+
] }) }, f) : /* @__PURE__ */ i("div", { className: H.elementDate, children: /* @__PURE__ */ i("span", { children: _(c[f]) }) }, f)) }),
|
|
2846
2845
|
/* @__PURE__ */ i("div", { className: H.buttonsContainer })
|
|
2847
2846
|
]
|
|
2848
2847
|
}
|
|
2849
2848
|
),
|
|
2850
|
-
/* @__PURE__ */ i("div", { className: H.elementListContainer, children:
|
|
2849
|
+
/* @__PURE__ */ i("div", { className: H.elementListContainer, children: b && b.length > 0 && b.map((f) => /* @__PURE__ */ i(
|
|
2851
2850
|
Nt,
|
|
2852
2851
|
{
|
|
2853
|
-
isActive: d ==
|
|
2854
|
-
listelement:
|
|
2852
|
+
isActive: d == f.id,
|
|
2853
|
+
listelement: f,
|
|
2855
2854
|
fontColor: s,
|
|
2856
2855
|
activeColor: o,
|
|
2857
2856
|
onClickElement: l,
|
|
2858
2857
|
columns: c,
|
|
2859
2858
|
elementButtons: u,
|
|
2860
|
-
moreInfo:
|
|
2859
|
+
moreInfo: p,
|
|
2861
2860
|
processTooltip: g,
|
|
2862
|
-
defaultTooltip:
|
|
2863
|
-
showEye:
|
|
2861
|
+
defaultTooltip: y,
|
|
2862
|
+
showEye: v
|
|
2864
2863
|
},
|
|
2865
|
-
`elementKey${
|
|
2864
|
+
`elementKey${f.id}`
|
|
2866
2865
|
)) }),
|
|
2867
2866
|
a && /* @__PURE__ */ i("div", { className: H.newElementButtonContainer, children: /* @__PURE__ */ i(
|
|
2868
2867
|
Te,
|
|
@@ -3033,7 +3032,7 @@ function _i(n) {
|
|
|
3033
3032
|
values: !0
|
|
3034
3033
|
},
|
|
3035
3034
|
exact: a,
|
|
3036
|
-
callback: (
|
|
3035
|
+
callback: (p) => !r && u(yi(o, s._names, p.values || s._formValues, !1, l.current))
|
|
3037
3036
|
}), [o, s, r, a]), M.useEffect(() => s._removeUnmounted()), c;
|
|
3038
3037
|
}
|
|
3039
3038
|
function vi(n) {
|
|
@@ -3046,7 +3045,7 @@ function vi(n) {
|
|
|
3046
3045
|
control: t,
|
|
3047
3046
|
name: s,
|
|
3048
3047
|
exact: !0
|
|
3049
|
-
}), u = M.useRef(n),
|
|
3048
|
+
}), u = M.useRef(n), p = M.useRef(t.register(s, {
|
|
3050
3049
|
...n.rules,
|
|
3051
3050
|
value: l,
|
|
3052
3051
|
...Oe(n.disabled) ? { disabled: n.disabled } : {}
|
|
@@ -3071,50 +3070,50 @@ function vi(n) {
|
|
|
3071
3070
|
enumerable: !0,
|
|
3072
3071
|
get: () => P(c.errors, s)
|
|
3073
3072
|
}
|
|
3074
|
-
}), [c, s]),
|
|
3073
|
+
}), [c, s]), y = M.useCallback((h) => p.current.onChange({
|
|
3075
3074
|
target: {
|
|
3076
|
-
value: di(
|
|
3075
|
+
value: di(h),
|
|
3077
3076
|
name: s
|
|
3078
3077
|
},
|
|
3079
3078
|
type: lt.CHANGE
|
|
3080
|
-
}), [s]),
|
|
3079
|
+
}), [s]), v = M.useCallback(() => p.current.onBlur({
|
|
3081
3080
|
target: {
|
|
3082
3081
|
value: P(t._formValues, s),
|
|
3083
3082
|
name: s
|
|
3084
3083
|
},
|
|
3085
3084
|
type: lt.BLUR
|
|
3086
|
-
}), [s, t._formValues]), _ = M.useCallback((
|
|
3087
|
-
const
|
|
3088
|
-
|
|
3089
|
-
focus: () =>
|
|
3090
|
-
select: () =>
|
|
3091
|
-
setCustomValidity: (
|
|
3092
|
-
reportValidity: () =>
|
|
3085
|
+
}), [s, t._formValues]), _ = M.useCallback((h) => {
|
|
3086
|
+
const C = P(t._fields, s);
|
|
3087
|
+
C && h && (C._f.ref = {
|
|
3088
|
+
focus: () => h.focus && h.focus(),
|
|
3089
|
+
select: () => h.select && h.select(),
|
|
3090
|
+
setCustomValidity: (f) => h.setCustomValidity(f),
|
|
3091
|
+
reportValidity: () => h.reportValidity()
|
|
3093
3092
|
});
|
|
3094
|
-
}, [t._fields, s]),
|
|
3093
|
+
}, [t._fields, s]), b = M.useMemo(() => ({
|
|
3095
3094
|
name: s,
|
|
3096
3095
|
value: l,
|
|
3097
3096
|
...Oe(o) || c.disabled ? { disabled: c.disabled || o } : {},
|
|
3098
|
-
onChange:
|
|
3099
|
-
onBlur:
|
|
3097
|
+
onChange: y,
|
|
3098
|
+
onBlur: v,
|
|
3100
3099
|
ref: _
|
|
3101
|
-
}), [s, o, c.disabled,
|
|
3100
|
+
}), [s, o, c.disabled, y, v, _, l]);
|
|
3102
3101
|
return M.useEffect(() => {
|
|
3103
|
-
const
|
|
3102
|
+
const h = t._options.shouldUnregister || r;
|
|
3104
3103
|
t.register(s, {
|
|
3105
3104
|
...u.current.rules,
|
|
3106
3105
|
...Oe(u.current.disabled) ? { disabled: u.current.disabled } : {}
|
|
3107
3106
|
});
|
|
3108
|
-
const
|
|
3109
|
-
const w = P(t._fields,
|
|
3107
|
+
const C = (f, x) => {
|
|
3108
|
+
const w = P(t._fields, f);
|
|
3110
3109
|
w && w._f && (w._f.mount = x);
|
|
3111
3110
|
};
|
|
3112
|
-
if (
|
|
3113
|
-
const
|
|
3114
|
-
at(t._defaultValues, s,
|
|
3111
|
+
if (C(s, !0), h) {
|
|
3112
|
+
const f = St(P(t._options.defaultValues, s));
|
|
3113
|
+
at(t._defaultValues, s, f), Ze(P(t._formValues, s)) && at(t._formValues, s, f);
|
|
3115
3114
|
}
|
|
3116
3115
|
return !a && t.register(s), () => {
|
|
3117
|
-
(a ?
|
|
3116
|
+
(a ? h && !t._state.action : h) ? t.unregister(s) : C(s, !1);
|
|
3118
3117
|
};
|
|
3119
3118
|
}, [s, t, a, r]), M.useEffect(() => {
|
|
3120
3119
|
t._setDisabledField({
|
|
@@ -3122,10 +3121,10 @@ function vi(n) {
|
|
|
3122
3121
|
name: s
|
|
3123
3122
|
});
|
|
3124
3123
|
}, [o, s, t]), M.useMemo(() => ({
|
|
3125
|
-
field:
|
|
3124
|
+
field: b,
|
|
3126
3125
|
formState: c,
|
|
3127
3126
|
fieldState: g
|
|
3128
|
-
}), [
|
|
3127
|
+
}), [b, c, g]);
|
|
3129
3128
|
}
|
|
3130
3129
|
const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_labelContainer_1o3iy_5", Ni = "_inputContainer_1o3iy_8", ki = "_showPasswordButton_1o3iy_14", Si = "_forgotPassButton_1o3iy_26", be = {
|
|
3131
3130
|
textInputContainer: wi,
|
|
@@ -3161,21 +3160,21 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3161
3160
|
validateFunction: l,
|
|
3162
3161
|
placeholder: c,
|
|
3163
3162
|
errorColor: u = "red",
|
|
3164
|
-
width:
|
|
3163
|
+
width: p = 325,
|
|
3165
3164
|
onClickForgotPass: g = () => {
|
|
3166
3165
|
console.log("Click on forgot password");
|
|
3167
3166
|
},
|
|
3168
|
-
forgotPassLabel:
|
|
3169
|
-
} = n, { t:
|
|
3167
|
+
forgotPassLabel: y = "forgot-password"
|
|
3168
|
+
} = n, { t: v } = $(), { control: _, trigger: b, clearErrors: h } = d, { errorColor: C } = xe((N) => N), [f, x] = V(!1);
|
|
3170
3169
|
se(a);
|
|
3171
|
-
const w = () => o ? o === "password" &&
|
|
3170
|
+
const w = () => o ? o === "password" && f ? "text" : o : "text";
|
|
3172
3171
|
return /* @__PURE__ */ i(
|
|
3173
3172
|
ve,
|
|
3174
3173
|
{
|
|
3175
3174
|
name: s,
|
|
3176
3175
|
control: _,
|
|
3177
3176
|
rules: {
|
|
3178
|
-
required: a ? `${
|
|
3177
|
+
required: a ? `${v(t)} ${v("errorMessages.required")}` : !1,
|
|
3179
3178
|
maxLength: r || void 0,
|
|
3180
3179
|
validate: l || void 0
|
|
3181
3180
|
},
|
|
@@ -3183,14 +3182,14 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3183
3182
|
var L;
|
|
3184
3183
|
return /* @__PURE__ */ m("div", { className: be.textInputContainer, children: [
|
|
3185
3184
|
/* @__PURE__ */ m("h3", { className: be.labelContainer, children: [
|
|
3186
|
-
|
|
3185
|
+
v(t),
|
|
3187
3186
|
" ",
|
|
3188
3187
|
a && /* @__PURE__ */ i("label", { style: { color: S.error ? u : "" }, children: "*" })
|
|
3189
3188
|
] }),
|
|
3190
3189
|
/* @__PURE__ */ m(
|
|
3191
3190
|
"div",
|
|
3192
3191
|
{
|
|
3193
|
-
style: { position: "relative", width:
|
|
3192
|
+
style: { position: "relative", width: p },
|
|
3194
3193
|
className: be.inputContainer,
|
|
3195
3194
|
children: [
|
|
3196
3195
|
/* @__PURE__ */ i(
|
|
@@ -3198,28 +3197,28 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3198
3197
|
{
|
|
3199
3198
|
type: w(),
|
|
3200
3199
|
...N,
|
|
3201
|
-
placeholder: c ?
|
|
3200
|
+
placeholder: c ? v(c) : "",
|
|
3202
3201
|
maxLength: r || void 0
|
|
3203
3202
|
}
|
|
3204
3203
|
),
|
|
3205
3204
|
o == "password" && /* @__PURE__ */ i(
|
|
3206
3205
|
"button",
|
|
3207
3206
|
{
|
|
3208
|
-
onClick: () => x(!
|
|
3207
|
+
onClick: () => x(!f),
|
|
3209
3208
|
type: "button",
|
|
3210
3209
|
className: be.showPasswordButton,
|
|
3211
|
-
children:
|
|
3210
|
+
children: f ? "🙈" : "👁️"
|
|
3212
3211
|
}
|
|
3213
3212
|
)
|
|
3214
3213
|
]
|
|
3215
3214
|
}
|
|
3216
3215
|
),
|
|
3217
|
-
o == "password" && /* @__PURE__ */ i("div", { className: be.forgotPassButton, children: /* @__PURE__ */ i("button", { onClick: g, children: y
|
|
3216
|
+
o == "password" && /* @__PURE__ */ i("div", { className: be.forgotPassButton, children: /* @__PURE__ */ i("button", { onClick: g, children: v(y) }) }),
|
|
3218
3217
|
/* @__PURE__ */ i(
|
|
3219
3218
|
we,
|
|
3220
3219
|
{
|
|
3221
3220
|
errorMessage: (L = S.error) == null ? void 0 : L.message,
|
|
3222
|
-
errorColor:
|
|
3221
|
+
errorColor: C || u
|
|
3223
3222
|
}
|
|
3224
3223
|
)
|
|
3225
3224
|
] });
|
|
@@ -3245,47 +3244,47 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3245
3244
|
validateFunction: l,
|
|
3246
3245
|
placeholder: c,
|
|
3247
3246
|
errorColor: u = "red",
|
|
3248
|
-
width:
|
|
3247
|
+
width: p = 325,
|
|
3249
3248
|
options: g = []
|
|
3250
|
-
} = n, { t:
|
|
3249
|
+
} = n, { t: y } = $(), { control: v, trigger: _, clearErrors: b } = d, { errorColor: h } = xe((C) => C);
|
|
3251
3250
|
return se(a), /* @__PURE__ */ i(
|
|
3252
3251
|
ve,
|
|
3253
3252
|
{
|
|
3254
3253
|
name: s,
|
|
3255
|
-
control:
|
|
3254
|
+
control: v,
|
|
3256
3255
|
rules: {
|
|
3257
|
-
required: a ? `${
|
|
3258
|
-
validate: l ? (
|
|
3259
|
-
let
|
|
3260
|
-
return l(
|
|
3256
|
+
required: a ? `${y(t)} ${y("errorMessages.required")}` : !1,
|
|
3257
|
+
validate: l ? (C) => {
|
|
3258
|
+
let f = d.getValues();
|
|
3259
|
+
return l(C, f);
|
|
3261
3260
|
} : void 0
|
|
3262
3261
|
},
|
|
3263
|
-
render: ({ field:
|
|
3262
|
+
render: ({ field: C, fieldState: f }) => {
|
|
3264
3263
|
var x;
|
|
3265
3264
|
return /* @__PURE__ */ m("div", { className: de.selectInputContainer, children: [
|
|
3266
3265
|
/* @__PURE__ */ m("h3", { className: de.labelContainer, children: [
|
|
3267
|
-
|
|
3266
|
+
y(t),
|
|
3268
3267
|
" ",
|
|
3269
|
-
a && /* @__PURE__ */ i("label", { style: { color:
|
|
3268
|
+
a && /* @__PURE__ */ i("label", { style: { color: f.error ? u : "" }, children: "*" })
|
|
3270
3269
|
] }),
|
|
3271
|
-
/* @__PURE__ */ m("div", { className: de.inputContainer, style: { width:
|
|
3270
|
+
/* @__PURE__ */ m("div", { className: de.inputContainer, style: { width: p }, children: [
|
|
3272
3271
|
/* @__PURE__ */ m(
|
|
3273
3272
|
"select",
|
|
3274
3273
|
{
|
|
3275
|
-
...
|
|
3274
|
+
...C,
|
|
3276
3275
|
onChange: (w) => {
|
|
3277
3276
|
const N = w.target.value, S = g.every((L) => typeof L.value == "number") ? Number(N) : N;
|
|
3278
|
-
|
|
3277
|
+
C.onChange(S);
|
|
3279
3278
|
},
|
|
3280
3279
|
className: de.selectInput,
|
|
3281
3280
|
children: [
|
|
3282
|
-
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children:
|
|
3281
|
+
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: y(c || "selectOption") }),
|
|
3283
3282
|
g.map((w, N) => /* @__PURE__ */ i(
|
|
3284
3283
|
"option",
|
|
3285
3284
|
{
|
|
3286
3285
|
value: w.value,
|
|
3287
3286
|
className: de.option,
|
|
3288
|
-
children:
|
|
3287
|
+
children: y(w.label)
|
|
3289
3288
|
},
|
|
3290
3289
|
N
|
|
3291
3290
|
))
|
|
@@ -3304,8 +3303,8 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3304
3303
|
/* @__PURE__ */ i(
|
|
3305
3304
|
we,
|
|
3306
3305
|
{
|
|
3307
|
-
errorMessage: (x =
|
|
3308
|
-
errorColor:
|
|
3306
|
+
errorMessage: (x = f.error) == null ? void 0 : x.message,
|
|
3307
|
+
errorColor: h || u
|
|
3309
3308
|
}
|
|
3310
3309
|
)
|
|
3311
3310
|
] });
|
|
@@ -3328,25 +3327,25 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3328
3327
|
errorColor: a = "red",
|
|
3329
3328
|
options: l = [],
|
|
3330
3329
|
multi: c = !1
|
|
3331
|
-
} = n, { t: u } = $(), { control:
|
|
3332
|
-
if (c &&
|
|
3333
|
-
let x =
|
|
3334
|
-
|
|
3330
|
+
} = n, { t: u } = $(), { control: p, trigger: g, clearErrors: y } = d, { errorColor: v } = xe((h) => h), _ = ({ options: h, onChange: C, actualValue: f }) => {
|
|
3331
|
+
if (c && f && f.length > 0) {
|
|
3332
|
+
let x = f.filter((w) => w !== h);
|
|
3333
|
+
C(x);
|
|
3335
3334
|
}
|
|
3336
|
-
},
|
|
3337
|
-
c ?
|
|
3335
|
+
}, b = ({ options: h, onChange: C, actualValue: f }) => {
|
|
3336
|
+
c ? f && f.length > 0 ? C([...f, h]) : C([h]) : C(h);
|
|
3338
3337
|
};
|
|
3339
3338
|
return se(t), /* @__PURE__ */ i(
|
|
3340
3339
|
ve,
|
|
3341
3340
|
{
|
|
3342
|
-
control:
|
|
3341
|
+
control: p,
|
|
3343
3342
|
name: s,
|
|
3344
3343
|
rules: {
|
|
3345
|
-
validate: (
|
|
3344
|
+
validate: (h) => t && (h == null || h === "") ? `${u(o)} ${u("errorMessages.required")}` : null
|
|
3346
3345
|
},
|
|
3347
3346
|
render: ({
|
|
3348
|
-
formState: { errors:
|
|
3349
|
-
field: { onChange:
|
|
3347
|
+
formState: { errors: h },
|
|
3348
|
+
field: { onChange: C, onBlur: f, value: x, ref: w },
|
|
3350
3349
|
fieldState: N
|
|
3351
3350
|
}) => {
|
|
3352
3351
|
var S;
|
|
@@ -3388,12 +3387,12 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3388
3387
|
c ? T ? _({
|
|
3389
3388
|
actualValue: x,
|
|
3390
3389
|
options: l,
|
|
3391
|
-
onChange:
|
|
3392
|
-
}) :
|
|
3390
|
+
onChange: C
|
|
3391
|
+
}) : b({
|
|
3393
3392
|
actualValue: x,
|
|
3394
3393
|
options: l,
|
|
3395
|
-
onChange:
|
|
3396
|
-
}) :
|
|
3394
|
+
onChange: C
|
|
3395
|
+
}) : C(k);
|
|
3397
3396
|
},
|
|
3398
3397
|
className: te.radioInput
|
|
3399
3398
|
}
|
|
@@ -3407,7 +3406,7 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3407
3406
|
we,
|
|
3408
3407
|
{
|
|
3409
3408
|
errorMessage: (S = N.error) == null ? void 0 : S.message,
|
|
3410
|
-
errorColor:
|
|
3409
|
+
errorColor: v || a
|
|
3411
3410
|
}
|
|
3412
3411
|
)
|
|
3413
3412
|
] })
|
|
@@ -3434,18 +3433,18 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3434
3433
|
thumbColor: c = "#B32F5D",
|
|
3435
3434
|
//trackColors = ["#B32F5D", "#EFEFEF"],
|
|
3436
3435
|
required: u,
|
|
3437
|
-
errorColor:
|
|
3436
|
+
errorColor: p = "red",
|
|
3438
3437
|
labelWidth: g = "300px",
|
|
3439
|
-
sliderWidth:
|
|
3440
|
-
minText:
|
|
3438
|
+
sliderWidth: y = "300px",
|
|
3439
|
+
minText: v,
|
|
3441
3440
|
maxText: _,
|
|
3442
|
-
disabled:
|
|
3443
|
-
marks:
|
|
3441
|
+
disabled: b = !1,
|
|
3442
|
+
marks: h = Array.from(
|
|
3444
3443
|
{ length: a - r + 1 },
|
|
3445
3444
|
(B, O) => r + O
|
|
3446
3445
|
),
|
|
3447
|
-
showMarksNumber:
|
|
3448
|
-
} = n, { t:
|
|
3446
|
+
showMarksNumber: C = !0
|
|
3447
|
+
} = n, { t: f } = $(), { control: x, trigger: w, clearErrors: N } = d || {};
|
|
3449
3448
|
se(u);
|
|
3450
3449
|
const { errorColorForm: S } = xe((B) => B), [L, k] = V(l);
|
|
3451
3450
|
return d ? /* @__PURE__ */ i(
|
|
@@ -3455,7 +3454,7 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3455
3454
|
control: x,
|
|
3456
3455
|
defaultValue: l,
|
|
3457
3456
|
rules: {
|
|
3458
|
-
required: u ? `${
|
|
3457
|
+
required: u ? `${f(t)} ${f("errorMessages.required")}` : !1
|
|
3459
3458
|
},
|
|
3460
3459
|
render: ({ field: B, fieldState: O }) => {
|
|
3461
3460
|
var R;
|
|
@@ -3464,12 +3463,12 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3464
3463
|
{
|
|
3465
3464
|
className: A.rankingSliderContainer,
|
|
3466
3465
|
style: {
|
|
3467
|
-
gridTemplateColumns: `${t && g} ${
|
|
3466
|
+
gridTemplateColumns: `${t && g} ${y}`
|
|
3468
3467
|
},
|
|
3469
3468
|
children: [
|
|
3470
|
-
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children:
|
|
3469
|
+
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: f(t) }),
|
|
3471
3470
|
/* @__PURE__ */ m("div", { className: A.inputContainer, children: [
|
|
3472
|
-
|
|
3471
|
+
v && /* @__PURE__ */ i("div", { className: A.minLabel, children: f(v) }),
|
|
3473
3472
|
/* @__PURE__ */ m("div", { children: [
|
|
3474
3473
|
/* @__PURE__ */ i(
|
|
3475
3474
|
je,
|
|
@@ -3491,18 +3490,18 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3491
3490
|
),
|
|
3492
3491
|
trackClassName: A.track,
|
|
3493
3492
|
markClassName: A.mark,
|
|
3494
|
-
disabled:
|
|
3493
|
+
disabled: b
|
|
3495
3494
|
}
|
|
3496
3495
|
),
|
|
3497
|
-
|
|
3496
|
+
h && /* @__PURE__ */ i("div", { className: A.labels, children: h.map((T) => /* @__PURE__ */ i("span", { children: C && T }, T)) })
|
|
3498
3497
|
] }),
|
|
3499
|
-
_ && /* @__PURE__ */ i("div", { className: A.maxLabel, children:
|
|
3498
|
+
_ && /* @__PURE__ */ i("div", { className: A.maxLabel, children: f(_) })
|
|
3500
3499
|
] }),
|
|
3501
3500
|
/* @__PURE__ */ i(
|
|
3502
3501
|
we,
|
|
3503
3502
|
{
|
|
3504
3503
|
errorMessage: (R = O.error) == null ? void 0 : R.message,
|
|
3505
|
-
errorColor: S ||
|
|
3504
|
+
errorColor: S || p
|
|
3506
3505
|
}
|
|
3507
3506
|
)
|
|
3508
3507
|
]
|
|
@@ -3514,11 +3513,11 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3514
3513
|
"div",
|
|
3515
3514
|
{
|
|
3516
3515
|
className: A.rankingSliderContainer,
|
|
3517
|
-
style: { gridTemplateColumns: `${t && g} ${
|
|
3516
|
+
style: { gridTemplateColumns: `${t && g} ${y}` },
|
|
3518
3517
|
children: [
|
|
3519
|
-
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children:
|
|
3518
|
+
t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: f(t) }),
|
|
3520
3519
|
/* @__PURE__ */ m("div", { className: A.inputContainer, children: [
|
|
3521
|
-
|
|
3520
|
+
v && /* @__PURE__ */ i("div", { className: A.minLabel, children: f(v) }),
|
|
3522
3521
|
/* @__PURE__ */ m("div", { children: [
|
|
3523
3522
|
/* @__PURE__ */ i(
|
|
3524
3523
|
je,
|
|
@@ -3542,12 +3541,12 @@ const ve = (n) => n.render(vi(n)), wi = "_textInputContainer_1o3iy_2", xi = "_la
|
|
|
3542
3541
|
),
|
|
3543
3542
|
trackClassName: A.track,
|
|
3544
3543
|
markClassName: A.mark,
|
|
3545
|
-
disabled:
|
|
3544
|
+
disabled: b
|
|
3546
3545
|
}
|
|
3547
3546
|
),
|
|
3548
|
-
|
|
3547
|
+
h && /* @__PURE__ */ i("div", { className: A.labels, children: h.map((B) => /* @__PURE__ */ i("span", { children: C && B }, B)) })
|
|
3549
3548
|
] }),
|
|
3550
|
-
_ && /* @__PURE__ */ i("div", { className: A.maxLabel, children:
|
|
3549
|
+
_ && /* @__PURE__ */ i("div", { className: A.maxLabel, children: f(_) })
|
|
3551
3550
|
] })
|
|
3552
3551
|
]
|
|
3553
3552
|
}
|
|
@@ -3685,18 +3684,18 @@ const ye = ({
|
|
|
3685
3684
|
d(a);
|
|
3686
3685
|
};
|
|
3687
3686
|
return /* @__PURE__ */ i("div", { className: $e.categorySelector, children: n.map((a, l) => {
|
|
3688
|
-
const { id: c, label: u } = a,
|
|
3687
|
+
const { id: c, label: u } = a, p = s == c;
|
|
3689
3688
|
return /* @__PURE__ */ i(
|
|
3690
3689
|
"button",
|
|
3691
3690
|
{
|
|
3692
|
-
className: `${$e.sectionItem} ${
|
|
3691
|
+
className: `${$e.sectionItem} ${p ? $e.sectionItemActive : ""}`,
|
|
3693
3692
|
type: "button",
|
|
3694
|
-
style: { backgroundColor:
|
|
3693
|
+
style: { backgroundColor: p ? o : "inherit" },
|
|
3695
3694
|
onClick: () => r(c),
|
|
3696
3695
|
children: /* @__PURE__ */ i(
|
|
3697
3696
|
"span",
|
|
3698
3697
|
{
|
|
3699
|
-
style: { color:
|
|
3698
|
+
style: { color: p ? "white" : "inherit" },
|
|
3700
3699
|
className: $e.sectionLabel,
|
|
3701
3700
|
children: t(u)
|
|
3702
3701
|
}
|
|
@@ -3716,32 +3715,32 @@ const ye = ({
|
|
|
3716
3715
|
submitButtonStyles: l = { width: 325 },
|
|
3717
3716
|
showCategorySelector: c = !0,
|
|
3718
3717
|
defaultCategory: u = null,
|
|
3719
|
-
categoryLabel:
|
|
3718
|
+
categoryLabel: p = "Select Category",
|
|
3720
3719
|
activeCategory: g = null,
|
|
3721
|
-
activeCategoryColor:
|
|
3722
|
-
onSubmit:
|
|
3720
|
+
activeCategoryColor: y = "#b32f5d",
|
|
3721
|
+
onSubmit: v = (_) => console.log("Form submitted with: ", _)
|
|
3723
3722
|
}) => {
|
|
3724
|
-
const { t: _ } = $(), { handleSubmit:
|
|
3723
|
+
const { t: _ } = $(), { handleSubmit: b, control: h } = n;
|
|
3725
3724
|
F(() => {
|
|
3726
3725
|
r && xe.setState(() => ({ errorColor: r }));
|
|
3727
3726
|
}, [r]);
|
|
3728
|
-
const
|
|
3727
|
+
const C = me(() => d ? d.filter((k) => k.category).map((k) => {
|
|
3729
3728
|
var B;
|
|
3730
3729
|
return {
|
|
3731
3730
|
id: k.categoryId,
|
|
3732
3731
|
label: k.category,
|
|
3733
3732
|
hasSubcategories: ((B = k.subcategories) == null ? void 0 : B.length) > 0
|
|
3734
3733
|
};
|
|
3735
|
-
}) : [], [d]),
|
|
3734
|
+
}) : [], [d]), f = (k) => {
|
|
3736
3735
|
const B = d == null ? void 0 : d.find((O) => O.categoryId === k);
|
|
3737
3736
|
return (B == null ? void 0 : B.subcategories) || [];
|
|
3738
3737
|
}, [x, w] = V(
|
|
3739
3738
|
g || u || null
|
|
3740
3739
|
), [N, S] = V(null);
|
|
3741
3740
|
F(() => {
|
|
3742
|
-
!x &&
|
|
3743
|
-
}, [
|
|
3744
|
-
const k =
|
|
3741
|
+
!x && C.length > 0 && w(C[0].id);
|
|
3742
|
+
}, [C, x]), F(() => {
|
|
3743
|
+
const k = f(x);
|
|
3745
3744
|
!N && (k == null ? void 0 : k.length) > 0 && S(k[0].id);
|
|
3746
3745
|
}, [x, N, d]);
|
|
3747
3746
|
const L = (k, B) => {
|
|
@@ -3759,7 +3758,7 @@ const ye = ({
|
|
|
3759
3758
|
activeCategory: N,
|
|
3760
3759
|
categories: R,
|
|
3761
3760
|
onChange: (T) => S(T),
|
|
3762
|
-
activeColor:
|
|
3761
|
+
activeColor: y
|
|
3763
3762
|
}
|
|
3764
3763
|
)
|
|
3765
3764
|
},
|
|
@@ -3778,7 +3777,7 @@ const ye = ({
|
|
|
3778
3777
|
ye,
|
|
3779
3778
|
{
|
|
3780
3779
|
inputs: T.inputs,
|
|
3781
|
-
control:
|
|
3780
|
+
control: h,
|
|
3782
3781
|
inputContainerStyles: o,
|
|
3783
3782
|
errorColor: r,
|
|
3784
3783
|
reactHookFormInstance: n
|
|
@@ -3799,7 +3798,7 @@ const ye = ({
|
|
|
3799
3798
|
ye,
|
|
3800
3799
|
{
|
|
3801
3800
|
inputs: T.inputs,
|
|
3802
|
-
control:
|
|
3801
|
+
control: h,
|
|
3803
3802
|
inputContainerStyles: o,
|
|
3804
3803
|
errorColor: r,
|
|
3805
3804
|
reactHookFormInstance: n
|
|
@@ -3816,7 +3815,7 @@ const ye = ({
|
|
|
3816
3815
|
ye,
|
|
3817
3816
|
{
|
|
3818
3817
|
inputs: k.inputs,
|
|
3819
|
-
control:
|
|
3818
|
+
control: h,
|
|
3820
3819
|
inputContainerStyles: o,
|
|
3821
3820
|
errorColor: r,
|
|
3822
3821
|
reactHookFormInstance: n
|
|
@@ -3827,7 +3826,7 @@ const ye = ({
|
|
|
3827
3826
|
ye,
|
|
3828
3827
|
{
|
|
3829
3828
|
inputs: k.inputs,
|
|
3830
|
-
control:
|
|
3829
|
+
control: h,
|
|
3831
3830
|
inputContainerStyles: o,
|
|
3832
3831
|
errorColor: r,
|
|
3833
3832
|
reactHookFormInstance: n
|
|
@@ -3835,16 +3834,16 @@ const ye = ({
|
|
|
3835
3834
|
)
|
|
3836
3835
|
] }, k.categoryId);
|
|
3837
3836
|
};
|
|
3838
|
-
return /* @__PURE__ */ m("form", { className: Ce.formContainer, onSubmit: v
|
|
3839
|
-
c &&
|
|
3837
|
+
return /* @__PURE__ */ m("form", { className: Ce.formContainer, onSubmit: b(v), children: [
|
|
3838
|
+
c && C.length > 0 && /* @__PURE__ */ i("div", { className: Ce.categorySelectorContainer, children: /* @__PURE__ */ i(
|
|
3840
3839
|
ut,
|
|
3841
3840
|
{
|
|
3842
3841
|
activeCategory: x,
|
|
3843
|
-
categories:
|
|
3842
|
+
categories: C,
|
|
3844
3843
|
onChange: (k) => {
|
|
3845
3844
|
w(k), S(null);
|
|
3846
3845
|
},
|
|
3847
|
-
activeColor:
|
|
3846
|
+
activeColor: y
|
|
3848
3847
|
}
|
|
3849
3848
|
) }),
|
|
3850
3849
|
/* @__PURE__ */ i("div", { className: Ce.formObjectContainer, children: d == null ? void 0 : d.map((k, B) => {
|
|
@@ -3863,7 +3862,7 @@ const ye = ({
|
|
|
3863
3862
|
ye,
|
|
3864
3863
|
{
|
|
3865
3864
|
inputs: k.inputs,
|
|
3866
|
-
control:
|
|
3865
|
+
control: h,
|
|
3867
3866
|
inputContainerStyles: o,
|
|
3868
3867
|
errorColor: r,
|
|
3869
3868
|
reactHookFormInstance: n
|
|
@@ -4034,15 +4033,15 @@ const Ss = "_switchContainer_194wl_2", $s = "_labelRight_194wl_9", Bs = "_labelL
|
|
|
4034
4033
|
colorOn: l = "#5A514D",
|
|
4035
4034
|
disabled: c = !1,
|
|
4036
4035
|
width: u = 240
|
|
4037
|
-
} = n, { t:
|
|
4038
|
-
|
|
4039
|
-
},
|
|
4036
|
+
} = n, { t: p } = $(), { control: g } = d || {}, [y, v] = V(a), _ = (h) => {
|
|
4037
|
+
v(h), s && s(h);
|
|
4038
|
+
}, b = (h, C) => /* @__PURE__ */ m("div", { className: ue.switchContainer, style: { width: `${u}px` }, children: [
|
|
4040
4039
|
t && /* @__PURE__ */ i(
|
|
4041
4040
|
"span",
|
|
4042
4041
|
{
|
|
4043
4042
|
className: ue.labelLeft,
|
|
4044
4043
|
style: { width: `${(u - 74) / 2}px` },
|
|
4045
|
-
children:
|
|
4044
|
+
children: p(t)
|
|
4046
4045
|
}
|
|
4047
4046
|
),
|
|
4048
4047
|
/* @__PURE__ */ m("label", { className: `${ue.switch} ${c ? ue.disabled : ""}`, children: [
|
|
@@ -4050,8 +4049,8 @@ const Ss = "_switchContainer_194wl_2", $s = "_labelRight_194wl_9", Bs = "_labelL
|
|
|
4050
4049
|
"input",
|
|
4051
4050
|
{
|
|
4052
4051
|
type: "checkbox",
|
|
4053
|
-
checked: !!
|
|
4054
|
-
onChange: () =>
|
|
4052
|
+
checked: !!h,
|
|
4053
|
+
onChange: () => C(!h),
|
|
4055
4054
|
disabled: c
|
|
4056
4055
|
}
|
|
4057
4056
|
),
|
|
@@ -4060,12 +4059,12 @@ const Ss = "_switchContainer_194wl_2", $s = "_labelRight_194wl_9", Bs = "_labelL
|
|
|
4060
4059
|
{
|
|
4061
4060
|
className: ue.slider,
|
|
4062
4061
|
style: {
|
|
4063
|
-
"--switch-thumb-color":
|
|
4062
|
+
"--switch-thumb-color": h ? l : "#ccc"
|
|
4064
4063
|
}
|
|
4065
4064
|
}
|
|
4066
4065
|
)
|
|
4067
4066
|
] }),
|
|
4068
|
-
r && /* @__PURE__ */ i("span", { className: ue.labelRight, style: { width: `${(u - 74) / 2}px` }, children:
|
|
4067
|
+
r && /* @__PURE__ */ i("span", { className: ue.labelRight, style: { width: `${(u - 74) / 2}px` }, children: p(r) })
|
|
4069
4068
|
] });
|
|
4070
4069
|
return d ? /* @__PURE__ */ i(
|
|
4071
4070
|
ve,
|
|
@@ -4073,9 +4072,9 @@ const Ss = "_switchContainer_194wl_2", $s = "_labelRight_194wl_9", Bs = "_labelL
|
|
|
4073
4072
|
name: o,
|
|
4074
4073
|
control: g,
|
|
4075
4074
|
defaultValue: a,
|
|
4076
|
-
render: ({ field:
|
|
4075
|
+
render: ({ field: h }) => b(h.value, h.onChange)
|
|
4077
4076
|
}
|
|
4078
|
-
) :
|
|
4077
|
+
) : b(y, _);
|
|
4079
4078
|
};
|
|
4080
4079
|
Ms.propTypes = {
|
|
4081
4080
|
input: e.shape({
|