@tmf_ciclica/ciclicastorybook 1.1.194 → 1.1.195
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 +370 -366
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsxs as p, jsx as i, Fragment as qe } from "react/jsx-runtime";
|
|
|
3
3
|
import * as pe from "react";
|
|
4
4
|
import D, { useState as F, useEffect as V, useMemo as me, useLayoutEffect as Rt, useRef as re } from "react";
|
|
5
5
|
import e from "prop-types";
|
|
6
|
-
import { useTranslation as
|
|
6
|
+
import { useTranslation as $, Trans as Ke } from "react-i18next";
|
|
7
7
|
import { motion as Ue } from "framer-motion";
|
|
8
8
|
import { create as gt } from "zustand";
|
|
9
9
|
import * as Qe from "d3";
|
|
@@ -44,7 +44,7 @@ const s2 = "_ambitSelector_mcunf_2", o2 = "_header_mcunf_13", r2 = "_nameDateCon
|
|
|
44
44
|
fontColor: a,
|
|
45
45
|
moreInfo: c
|
|
46
46
|
}) => {
|
|
47
|
-
const { name: u, created_at: m, id: h, isBeingProcessed:
|
|
47
|
+
const { name: u, created_at: m, id: h, isBeingProcessed: f } = n;
|
|
48
48
|
return /* @__PURE__ */ p(
|
|
49
49
|
"div",
|
|
50
50
|
{
|
|
@@ -65,7 +65,7 @@ const s2 = "_ambitSelector_mcunf_2", o2 = "_header_mcunf_13", r2 = "_nameDateCon
|
|
|
65
65
|
/* @__PURE__ */ i("div", { className: he.ambitDate, children: m ? new Date(m).toLocaleDateString() : "" })
|
|
66
66
|
] }),
|
|
67
67
|
/* @__PURE__ */ p("div", { className: he.ambitButtons, children: [
|
|
68
|
-
|
|
68
|
+
f && /* @__PURE__ */ i("img", { src: _2 }),
|
|
69
69
|
/* @__PURE__ */ i("button", { onClick: () => o(h), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: y2 }) }),
|
|
70
70
|
/* @__PURE__ */ i("button", { onClick: () => d(h), children: /* @__PURE__ */ i("img", { src: b2 }) }),
|
|
71
71
|
/* @__PURE__ */ i("button", { onClick: () => s(h), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: f2 }) })
|
|
@@ -131,17 +131,17 @@ const Xe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
131
131
|
onCLickNewAmbit: u = () => console.log("New ambit clicked"),
|
|
132
132
|
onClickCopy: m = (_) => console.log(`Copy ambit: ${_}`),
|
|
133
133
|
onCLickDelete: h = (_) => console.log(`Delete ambit: ${_}`),
|
|
134
|
-
onClickFilters:
|
|
134
|
+
onClickFilters: f = (_) => console.log(`Filters clicked: ${_}`),
|
|
135
135
|
onClickAmbit: C = (_) => console.log(`OnCLickAmbit: ${_}`)
|
|
136
136
|
}) => {
|
|
137
|
-
const { t: _ } =
|
|
137
|
+
const { t: _ } = $(), [v, y] = F(n);
|
|
138
138
|
V(() => {
|
|
139
|
-
n &&
|
|
139
|
+
n && y(n);
|
|
140
140
|
}, [n]);
|
|
141
|
-
const g = (
|
|
141
|
+
const g = (b) => {
|
|
142
142
|
if (v && v.length > 0) {
|
|
143
143
|
let k = [...v];
|
|
144
|
-
k.sort((w, x) => w[
|
|
144
|
+
k.sort((w, x) => w[b].localeCompare(x[b])), y(k);
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
147
|
return /* @__PURE__ */ p(
|
|
@@ -170,19 +170,19 @@ const Xe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
170
170
|
]
|
|
171
171
|
}
|
|
172
172
|
),
|
|
173
|
-
/* @__PURE__ */ i("div", { className: Y.ambitListContainer, children: v && v.length > 0 && v.map((
|
|
173
|
+
/* @__PURE__ */ i("div", { className: Y.ambitListContainer, children: v && v.length > 0 && v.map((b) => /* @__PURE__ */ i(
|
|
174
174
|
Ct,
|
|
175
175
|
{
|
|
176
|
-
isActive: d ==
|
|
177
|
-
ambit:
|
|
176
|
+
isActive: d == b.id,
|
|
177
|
+
ambit: b,
|
|
178
178
|
fontColor: s,
|
|
179
179
|
activeColor: o,
|
|
180
180
|
onClickCopy: m,
|
|
181
181
|
onClickDelete: h,
|
|
182
|
-
onClickFilters:
|
|
182
|
+
onClickFilters: f,
|
|
183
183
|
onClickAmbit: C
|
|
184
184
|
},
|
|
185
|
-
`ambitKey${
|
|
185
|
+
`ambitKey${b.id}`
|
|
186
186
|
)) }),
|
|
187
187
|
/* @__PURE__ */ i("div", { className: Y.newAmbitButtonContainer, children: /* @__PURE__ */ i(
|
|
188
188
|
Ve,
|
|
@@ -232,7 +232,7 @@ const S2 = "_buttonsContainer_1ks7x_2", $2 = "_vertical_1ks7x_6", B2 = "_horizon
|
|
|
232
232
|
bottom: F2,
|
|
233
233
|
right: A2
|
|
234
234
|
}, oe = ({ text: n, position: d, styleCustom: s = null }) => {
|
|
235
|
-
const { t: o } =
|
|
235
|
+
const { t: o } = $();
|
|
236
236
|
return /* @__PURE__ */ i("div", { className: `tooltip ${I2[d]}`, style: s, children: o(n) });
|
|
237
237
|
};
|
|
238
238
|
oe.propTypes = {
|
|
@@ -248,7 +248,7 @@ const O2 = ({
|
|
|
248
248
|
useTooltip: t = !1,
|
|
249
249
|
tooltipPosition: r = "top"
|
|
250
250
|
}) => {
|
|
251
|
-
const { t: l } =
|
|
251
|
+
const { t: l } = $();
|
|
252
252
|
return /* @__PURE__ */ i(
|
|
253
253
|
"div",
|
|
254
254
|
{
|
|
@@ -259,13 +259,13 @@ const O2 = ({
|
|
|
259
259
|
icon: u,
|
|
260
260
|
activeIcon: m,
|
|
261
261
|
isActive: h,
|
|
262
|
-
name:
|
|
262
|
+
name: f,
|
|
263
263
|
onClick: C,
|
|
264
264
|
disabled: _
|
|
265
265
|
} = a, v = /* @__PURE__ */ p(qe, { children: [
|
|
266
|
-
s && o === "left" && /* @__PURE__ */ i("span", { className: J.buttonName, children: l(
|
|
267
|
-
/* @__PURE__ */ i("img", { src: h ? m : u, alt: l(
|
|
268
|
-
s && o === "right" && /* @__PURE__ */ i("span", { className: J.buttonName, children: l(
|
|
266
|
+
s && o === "left" && /* @__PURE__ */ i("span", { className: J.buttonName, children: l(f) }),
|
|
267
|
+
/* @__PURE__ */ i("img", { src: h ? m : u, alt: l(f) }),
|
|
268
|
+
s && o === "right" && /* @__PURE__ */ i("span", { className: J.buttonName, children: l(f) })
|
|
269
269
|
] });
|
|
270
270
|
return /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
271
271
|
/* @__PURE__ */ i(
|
|
@@ -278,7 +278,7 @@ const O2 = ({
|
|
|
278
278
|
children: v
|
|
279
279
|
}
|
|
280
280
|
),
|
|
281
|
-
t && /* @__PURE__ */ i(oe, { text:
|
|
281
|
+
t && /* @__PURE__ */ i(oe, { text: f, position: r })
|
|
282
282
|
] }, c);
|
|
283
283
|
})
|
|
284
284
|
}
|
|
@@ -321,7 +321,7 @@ const R2 = "_indicatorsCategory_11gdl_2", q2 = "_title_11gdl_6", E2 = "_mainTitl
|
|
|
321
321
|
titleMarginChildren: u = 15,
|
|
322
322
|
mainTitle: m = !1
|
|
323
323
|
}) => {
|
|
324
|
-
const { t: h } =
|
|
324
|
+
const { t: h } = $();
|
|
325
325
|
return /* @__PURE__ */ p(
|
|
326
326
|
Ue.div,
|
|
327
327
|
{
|
|
@@ -369,7 +369,7 @@ ae.propTypes = {
|
|
|
369
369
|
const bo = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), P2 = "data:image/svg+xml,%3csvg%20width='15'%20height='15'%20viewBox='0%200%2015%2015'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M1%201L13.9996%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3cpath%20d='M14%201L1.00044%2013.9996'%20stroke='%23FDFDFD'%20stroke-width='1.5'%20stroke-linecap='round'/%3e%3c/svg%3e", j2 = "_AppliedFiltersContainer_cokx9_2", Z2 = "_AppliedFilterContent_cokx9_11", Je = {
|
|
370
370
|
AppliedFiltersContainer: j2,
|
|
371
371
|
AppliedFilterContent: Z2
|
|
372
|
-
},
|
|
372
|
+
}, M = gt((n) => ({
|
|
373
373
|
activeCategory: "",
|
|
374
374
|
activeSubCategory: "",
|
|
375
375
|
selectedIndicator: "",
|
|
@@ -379,10 +379,10 @@ const bo = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), P2 = "data
|
|
|
379
379
|
activeFiltersType: null,
|
|
380
380
|
geoLayers: []
|
|
381
381
|
})), ft = ({ title: n, onClick: d, isOpen: s = !0, textColor: o = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r, fontColor: l = "#605B56" }) => {
|
|
382
|
-
const { t: a } =
|
|
383
|
-
|
|
382
|
+
const { t: a } = $(), { tematicalFiltersSelected: c, activeFiltersType: u } = M((f) => f), m = (f) => {
|
|
383
|
+
M.setState((C) => ({
|
|
384
384
|
tematicalFiltersSelected: C.tematicalFiltersSelected.filter(
|
|
385
|
-
(_) => _.code !==
|
|
385
|
+
(_) => _.code !== f
|
|
386
386
|
)
|
|
387
387
|
}));
|
|
388
388
|
};
|
|
@@ -391,15 +391,15 @@ const bo = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), P2 = "data
|
|
|
391
391
|
{
|
|
392
392
|
isOpen: s,
|
|
393
393
|
onClick: () => {
|
|
394
|
-
u == "applied" ?
|
|
394
|
+
u == "applied" ? M.setState(() => ({ activeFiltersType: null })) : M.setState(() => ({ activeFiltersType: "applied" }));
|
|
395
395
|
},
|
|
396
396
|
title: n ? a(n) : "Applied Filters",
|
|
397
397
|
activeColor: r,
|
|
398
398
|
mainTitle: !0,
|
|
399
399
|
color: l,
|
|
400
|
-
children: /* @__PURE__ */ i("div", { className: Je.AppliedFiltersContainer, children: c == null ? void 0 : c.map((
|
|
401
|
-
a(
|
|
402
|
-
/* @__PURE__ */ i("img", { src: P2, alt: "CloseIcon", onClick: () => m(
|
|
400
|
+
children: /* @__PURE__ */ i("div", { className: Je.AppliedFiltersContainer, children: c == null ? void 0 : c.map((f, C) => /* @__PURE__ */ p("div", { className: Je.AppliedFilterContent, style: { color: o, background: t }, children: [
|
|
401
|
+
a(f.name),
|
|
402
|
+
/* @__PURE__ */ i("img", { src: P2, alt: "CloseIcon", onClick: () => m(f.code), style: { cursor: "pointer" } })
|
|
403
403
|
] }, C)) })
|
|
404
404
|
}
|
|
405
405
|
);
|
|
@@ -429,11 +429,11 @@ const z2 = "_layersList_cn837_25", H2 = "_layerName_cn837_34", et = {
|
|
|
429
429
|
activeColor: t,
|
|
430
430
|
onGeoLayersChange: r
|
|
431
431
|
}) => {
|
|
432
|
-
const { t: l } =
|
|
433
|
-
a == "geographical" ?
|
|
432
|
+
const { t: l } = $(), { activeFiltersType: a, geoLayers: c } = M((h) => h), u = () => {
|
|
433
|
+
a == "geographical" ? M.setState(() => ({ activeFiltersType: null })) : M.setState(() => ({ activeFiltersType: "geographical" }));
|
|
434
434
|
}, m = (h) => {
|
|
435
|
-
|
|
436
|
-
geoLayers:
|
|
435
|
+
M.setState((f) => ({
|
|
436
|
+
geoLayers: f.geoLayers.map((C) => ({
|
|
437
437
|
...C,
|
|
438
438
|
active: C.name === h.name
|
|
439
439
|
}))
|
|
@@ -482,7 +482,7 @@ const K2 = "_checkboxContainer_1nxra_2", U2 = {
|
|
|
482
482
|
indicator: o,
|
|
483
483
|
value: t
|
|
484
484
|
}) => {
|
|
485
|
-
const { t: r } =
|
|
485
|
+
const { t: r } = $(), { title: l } = o || {}, { fontColor: a, inputsColor: c } = M((u) => u);
|
|
486
486
|
return /* @__PURE__ */ p(
|
|
487
487
|
"div",
|
|
488
488
|
{
|
|
@@ -573,8 +573,8 @@ let je = function(n) {
|
|
|
573
573
|
t.setState({ pending: !0 });
|
|
574
574
|
const c = t.getTouchPosition(a);
|
|
575
575
|
if (t.isScrolling === void 0) {
|
|
576
|
-
const h = c[0] - t.startPosition[0],
|
|
577
|
-
t.isScrolling = Math.abs(
|
|
576
|
+
const h = c[0] - t.startPosition[0], f = c[1] - t.startPosition[1];
|
|
577
|
+
t.isScrolling = Math.abs(f) > Math.abs(h);
|
|
578
578
|
}
|
|
579
579
|
if (t.isScrolling) return void t.setState({ index: -1 });
|
|
580
580
|
const u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
|
|
@@ -640,8 +640,8 @@ let je = function(n) {
|
|
|
640
640
|
}, 0);
|
|
641
641
|
t.pendingResizeTimeouts.push(a);
|
|
642
642
|
}, t.renderThumb = (a, c) => {
|
|
643
|
-
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), m = { ref: (
|
|
644
|
-
t["thumb" + c] =
|
|
643
|
+
const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), m = { ref: (f) => {
|
|
644
|
+
t["thumb" + c] = f;
|
|
645
645
|
}, key: t.props.thumbClassName + "-" + c, className: u, style: a, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, h = { index: c, value: ke(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
647
|
}, t.renderTrack = (a, c, u) => {
|
|
@@ -701,8 +701,8 @@ let je = function(n) {
|
|
|
701
701
|
}, s.resize = function() {
|
|
702
702
|
const { slider: o, thumb0: t } = this;
|
|
703
703
|
if (!o || !t) return;
|
|
704
|
-
const r = this.sizeKey(), l = o.getBoundingClientRect(), a = o[r], c = l[this.posMaxKey()], u = l[this.posMinKey()], m = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], h = a - m,
|
|
705
|
-
this.state.upperBound === h && this.state.sliderLength ===
|
|
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
|
+
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;
|
|
708
708
|
return t === 0 ? 0 : (o - this.props.min) / t * this.state.upperBound;
|
|
@@ -744,23 +744,23 @@ let je = function(n) {
|
|
|
744
744
|
const { pearling: c, max: u, min: m, minDistance: h } = this.props;
|
|
745
745
|
if (!c) {
|
|
746
746
|
if (r > 0) {
|
|
747
|
-
const
|
|
748
|
-
o <
|
|
747
|
+
const f = t[r - 1];
|
|
748
|
+
o < f + h && (o = f + h);
|
|
749
749
|
}
|
|
750
750
|
if (r < l - 1) {
|
|
751
|
-
const
|
|
752
|
-
o >
|
|
751
|
+
const f = t[r + 1];
|
|
752
|
+
o > f - h && (o = f - h);
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
-
t[r] = o, c && l > 1 && (o > a ? (this.pushSucceeding(t, h, r), function(
|
|
756
|
-
for (let
|
|
757
|
-
const g = v -
|
|
758
|
-
C[
|
|
755
|
+
t[r] = o, c && l > 1 && (o > a ? (this.pushSucceeding(t, h, r), function(f, C, _, v) {
|
|
756
|
+
for (let y = 0; y < f; y += 1) {
|
|
757
|
+
const g = v - y * _;
|
|
758
|
+
C[f - 1 - y] > g && (C[f - 1 - y] = g);
|
|
759
759
|
}
|
|
760
|
-
}(l, t, h, u)) : o < a && (this.pushPreceding(t, h, r), function(
|
|
761
|
-
for (let
|
|
762
|
-
const g = v +
|
|
763
|
-
C[
|
|
760
|
+
}(l, t, h, u)) : o < a && (this.pushPreceding(t, h, r), function(f, C, _, v) {
|
|
761
|
+
for (let y = 0; y < f; y += 1) {
|
|
762
|
+
const g = v + y * _;
|
|
763
|
+
C[y] < g && (C[y] = g);
|
|
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) {
|
|
@@ -836,7 +836,7 @@ const G2 = "_container_4u41i_2", Y2 = "_unitLabel_4u41i_8", Q2 = "_slider_4u41i_
|
|
|
836
836
|
defaultValue: a,
|
|
837
837
|
isDate: c
|
|
838
838
|
}) => {
|
|
839
|
-
const { t: u } =
|
|
839
|
+
const { t: u } = $(), m = c ? new Date(n).getTime() : null, h = c ? new Date(d).getTime() : null, [f, C] = F(c ? [m, h] : [n, d]), _ = (v) => {
|
|
840
840
|
C(v), o == null || o({ min: v[0], max: v[1] });
|
|
841
841
|
};
|
|
842
842
|
return V(() => {
|
|
@@ -857,7 +857,7 @@ const G2 = "_container_4u41i_2", Y2 = "_unitLabel_4u41i_8", Q2 = "_slider_4u41i_
|
|
|
857
857
|
min: c ? m : n,
|
|
858
858
|
max: c ? h : d,
|
|
859
859
|
step: c ? (h - m) / 30 : s,
|
|
860
|
-
value:
|
|
860
|
+
value: f,
|
|
861
861
|
onAfterChange: _,
|
|
862
862
|
withTracks: !0,
|
|
863
863
|
pearling: !c,
|
|
@@ -865,16 +865,16 @@ const G2 = "_container_4u41i_2", Y2 = "_unitLabel_4u41i_8", Q2 = "_slider_4u41i_
|
|
|
865
865
|
}
|
|
866
866
|
),
|
|
867
867
|
/* @__PURE__ */ p("div", { className: le.labels, children: [
|
|
868
|
-
/* @__PURE__ */ i("span", { children: c ? new Date(
|
|
868
|
+
/* @__PURE__ */ i("span", { children: c ? new Date(f[0]).toLocaleDateString("en-EN", {
|
|
869
869
|
day: "2-digit",
|
|
870
870
|
month: "short",
|
|
871
871
|
year: "numeric"
|
|
872
|
-
}) :
|
|
873
|
-
/* @__PURE__ */ i("span", { children: c ? new Date(
|
|
872
|
+
}) : f[0] }),
|
|
873
|
+
/* @__PURE__ */ i("span", { children: c ? new Date(f[1]).toLocaleDateString("en-EN", {
|
|
874
874
|
day: "2-digit",
|
|
875
875
|
month: "short",
|
|
876
876
|
year: "numeric"
|
|
877
|
-
}) :
|
|
877
|
+
}) : f[1] })
|
|
878
878
|
] })
|
|
879
879
|
]
|
|
880
880
|
}
|
|
@@ -911,7 +911,7 @@ const tn = "_tematicalFiltersInputContainer_1vm1r_2", nn = "_inputTypeContainer_
|
|
|
911
911
|
unit: u,
|
|
912
912
|
step: m,
|
|
913
913
|
disabled: h,
|
|
914
|
-
isDate:
|
|
914
|
+
isDate: f
|
|
915
915
|
} = n || {}, C = me(
|
|
916
916
|
() => t == "cat" || s == "cat",
|
|
917
917
|
[s, t]
|
|
@@ -920,61 +920,61 @@ const tn = "_tematicalFiltersInputContainer_1vm1r_2", nn = "_inputTypeContainer_
|
|
|
920
920
|
[s, t]
|
|
921
921
|
), {
|
|
922
922
|
tematicalFiltersSelected: v,
|
|
923
|
-
selectedIndicator:
|
|
923
|
+
selectedIndicator: y,
|
|
924
924
|
fontColor: g,
|
|
925
|
-
inputsColor:
|
|
926
|
-
} =
|
|
925
|
+
inputsColor: b
|
|
926
|
+
} = M((x) => x), k = (x) => {
|
|
927
927
|
if (x) {
|
|
928
|
-
const { min: S, max:
|
|
928
|
+
const { min: S, max: B, valueClicked: N, allValues: T } = x || {}, { code: A, type: H, source: L } = n || {}, j = _ ? "abs" : C ? "cat" : "both";
|
|
929
929
|
let Z = A[0];
|
|
930
|
-
|
|
930
|
+
H == "both" && (Z = j == "cat" ? A[1] : A[0]), j == "cat" ? M.setState((X) => {
|
|
931
931
|
let G = X.tematicalFiltersSelected.find(
|
|
932
|
-
(
|
|
932
|
+
(q) => q.code === Z
|
|
933
933
|
);
|
|
934
934
|
if (G) {
|
|
935
|
-
let
|
|
936
|
-
return G.values.includes(N) ?
|
|
937
|
-
(
|
|
938
|
-
) :
|
|
935
|
+
let q = [G.values];
|
|
936
|
+
return G.values.includes(N) ? q = G.values.filter(
|
|
937
|
+
(P) => P !== N
|
|
938
|
+
) : q = [...G.values, N], q.length == T.length ? {
|
|
939
939
|
tematicalFiltersSelected: X.tematicalFiltersSelected.filter(
|
|
940
|
-
(
|
|
940
|
+
(P) => P.code !== Z
|
|
941
941
|
)
|
|
942
942
|
} : {
|
|
943
943
|
tematicalFiltersSelected: X.tematicalFiltersSelected.map(
|
|
944
|
-
(
|
|
944
|
+
(P) => P.code === Z ? { ...P, values: q } : P
|
|
945
945
|
)
|
|
946
946
|
};
|
|
947
947
|
} else {
|
|
948
|
-
let
|
|
948
|
+
let q = T.map((P, Ot) => Ot);
|
|
949
949
|
return {
|
|
950
950
|
tematicalFiltersSelected: [
|
|
951
951
|
...v,
|
|
952
952
|
{
|
|
953
953
|
type: "cat",
|
|
954
954
|
code: Z,
|
|
955
|
-
values:
|
|
955
|
+
values: q.filter((P) => P !== N),
|
|
956
956
|
name: n.name,
|
|
957
|
-
source:
|
|
958
|
-
isDate:
|
|
957
|
+
source: L,
|
|
958
|
+
isDate: f
|
|
959
959
|
}
|
|
960
960
|
]
|
|
961
961
|
};
|
|
962
962
|
}
|
|
963
|
-
}) :
|
|
963
|
+
}) : j == "abs" && M.setState((X) => {
|
|
964
964
|
let G = X.tematicalFiltersSelected.find(
|
|
965
|
-
(
|
|
965
|
+
(q) => q.code === Z
|
|
966
966
|
);
|
|
967
|
-
if (S == n.minValue &&
|
|
967
|
+
if (S == n.minValue && B == n.maxValue)
|
|
968
968
|
return {
|
|
969
969
|
tematicalFiltersSelected: X.tematicalFiltersSelected.filter(
|
|
970
|
-
(
|
|
970
|
+
(q) => q.code !== Z
|
|
971
971
|
)
|
|
972
972
|
};
|
|
973
973
|
if (G) {
|
|
974
|
-
let
|
|
974
|
+
let q = { ...G, min: S, max: B, type: j, isDate: f };
|
|
975
975
|
return {
|
|
976
976
|
tematicalFiltersSelected: X.tematicalFiltersSelected.map(
|
|
977
|
-
(
|
|
977
|
+
(P) => P.code === Z ? q : P
|
|
978
978
|
)
|
|
979
979
|
};
|
|
980
980
|
} else
|
|
@@ -982,10 +982,10 @@ const tn = "_tematicalFiltersInputContainer_1vm1r_2", nn = "_inputTypeContainer_
|
|
|
982
982
|
tematicalFiltersSelected: [
|
|
983
983
|
...v,
|
|
984
984
|
{
|
|
985
|
-
type:
|
|
985
|
+
type: j,
|
|
986
986
|
code: Z,
|
|
987
987
|
min: S,
|
|
988
|
-
max:
|
|
988
|
+
max: B,
|
|
989
989
|
name: n.name,
|
|
990
990
|
source: n.source
|
|
991
991
|
}
|
|
@@ -1009,10 +1009,10 @@ const tn = "_tematicalFiltersInputContainer_1vm1r_2", nn = "_inputTypeContainer_
|
|
|
1009
1009
|
opacity: h ? 0.5 : 1
|
|
1010
1010
|
},
|
|
1011
1011
|
title: r,
|
|
1012
|
-
isOpen:
|
|
1012
|
+
isOpen: y == `id${r}`,
|
|
1013
1013
|
onClick: () => {
|
|
1014
|
-
h ||
|
|
1015
|
-
selectedIndicator:
|
|
1014
|
+
h || M.setState(() => ({
|
|
1015
|
+
selectedIndicator: y == `id${r}` ? "" : `id${r}`
|
|
1016
1016
|
}));
|
|
1017
1017
|
},
|
|
1018
1018
|
showBottomBar: !1,
|
|
@@ -1040,8 +1040,8 @@ const tn = "_tematicalFiltersInputContainer_1vm1r_2", nn = "_inputTypeContainer_
|
|
|
1040
1040
|
},
|
|
1041
1041
|
style: {
|
|
1042
1042
|
marginRight: 4,
|
|
1043
|
-
backgroundColor: s == "abs" ?
|
|
1044
|
-
border: `1.5px solid ${s == "abs" ?
|
|
1043
|
+
backgroundColor: s == "abs" ? b : "white",
|
|
1044
|
+
border: `1.5px solid ${s == "abs" ? b : g}`
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
1047
|
),
|
|
@@ -1059,8 +1059,8 @@ const tn = "_tematicalFiltersInputContainer_1vm1r_2", nn = "_inputTypeContainer_
|
|
|
1059
1059
|
},
|
|
1060
1060
|
style: {
|
|
1061
1061
|
marginRight: 4,
|
|
1062
|
-
backgroundColor: s == "cat" ?
|
|
1063
|
-
border: `1.5px solid ${s == "cat" ?
|
|
1062
|
+
backgroundColor: s == "cat" ? b : "white",
|
|
1063
|
+
border: `1.5px solid ${s == "cat" ? b : g}`
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
1066
|
),
|
|
@@ -1070,13 +1070,13 @@ const tn = "_tematicalFiltersInputContainer_1vm1r_2", nn = "_inputTypeContainer_
|
|
|
1070
1070
|
}
|
|
1071
1071
|
),
|
|
1072
1072
|
C && /* @__PURE__ */ i("div", { className: $e.checkboxContainer, children: l.map((x, S) => {
|
|
1073
|
-
var
|
|
1073
|
+
var B;
|
|
1074
1074
|
return /* @__PURE__ */ i(
|
|
1075
1075
|
yt,
|
|
1076
1076
|
{
|
|
1077
1077
|
onClick: () => k({ valueClicked: S, allValues: l }),
|
|
1078
1078
|
indicator: x,
|
|
1079
|
-
value: ((
|
|
1079
|
+
value: ((B = w[n.code[t == "both" ? 1 : 0]]) == null ? void 0 : B.has(S)) || !w[n.code[t == "both" ? 1 : 0]]
|
|
1080
1080
|
},
|
|
1081
1081
|
`checkbox-${S}`
|
|
1082
1082
|
);
|
|
@@ -1089,7 +1089,7 @@ const tn = "_tematicalFiltersInputContainer_1vm1r_2", nn = "_inputTypeContainer_
|
|
|
1089
1089
|
max: c,
|
|
1090
1090
|
unit: u,
|
|
1091
1091
|
defaultValue: w[n.code[0]] ? w[n.code[0]] : "",
|
|
1092
|
-
isDate:
|
|
1092
|
+
isDate: f,
|
|
1093
1093
|
step: m
|
|
1094
1094
|
}
|
|
1095
1095
|
) })
|
|
@@ -1118,14 +1118,14 @@ const vt = ({
|
|
|
1118
1118
|
activeColor: s
|
|
1119
1119
|
//onChangeBothType,
|
|
1120
1120
|
}) => {
|
|
1121
|
-
const { activeSubcategory: o } =
|
|
1121
|
+
const { activeSubcategory: o } = M((l) => l), { name: t, indicators: r } = n || {};
|
|
1122
1122
|
return /* @__PURE__ */ i(
|
|
1123
1123
|
ae,
|
|
1124
1124
|
{
|
|
1125
1125
|
title: t,
|
|
1126
1126
|
isOpen: o == `id${t}`,
|
|
1127
1127
|
onClick: () => {
|
|
1128
|
-
|
|
1128
|
+
M.setState((l) => ({
|
|
1129
1129
|
activeSubcategory: l.activeSubcategory === `id${t}` ? "" : `id${t}`
|
|
1130
1130
|
}));
|
|
1131
1131
|
},
|
|
@@ -1165,12 +1165,12 @@ const wt = ({
|
|
|
1165
1165
|
// onChangeBothType,
|
|
1166
1166
|
activeColor: d
|
|
1167
1167
|
}) => {
|
|
1168
|
-
const { name: s, subcategories: o, indicators: t } = n || {}, { activeCategory: r, fontColor: l } =
|
|
1168
|
+
const { name: s, subcategories: o, indicators: t } = n || {}, { activeCategory: r, fontColor: l } = M((a) => a);
|
|
1169
1169
|
return n && /* @__PURE__ */ i(
|
|
1170
1170
|
ae,
|
|
1171
1171
|
{
|
|
1172
1172
|
onClick: () => {
|
|
1173
|
-
|
|
1173
|
+
M.setState((a) => ({
|
|
1174
1174
|
activeCategory: r === `id${s}` ? "" : `id${s}`
|
|
1175
1175
|
}));
|
|
1176
1176
|
},
|
|
@@ -1218,15 +1218,15 @@ const xt = ({
|
|
|
1218
1218
|
inputsColor: t = "#605B56",
|
|
1219
1219
|
activeColor: r
|
|
1220
1220
|
}) => {
|
|
1221
|
-
const { tematicalFiltersSelected: l, activeFiltersType: a } =
|
|
1221
|
+
const { tematicalFiltersSelected: l, activeFiltersType: a } = M((m) => m), { t: c } = $();
|
|
1222
1222
|
V(() => {
|
|
1223
1223
|
}, [l]), V(() => {
|
|
1224
|
-
o &&
|
|
1224
|
+
o && M.setState(() => ({ fontColor: o }));
|
|
1225
1225
|
}, [o]), V(() => {
|
|
1226
|
-
t &&
|
|
1226
|
+
t && M.setState(() => ({ inputsColor: t }));
|
|
1227
1227
|
}, [t]);
|
|
1228
1228
|
const u = () => {
|
|
1229
|
-
a == "tematical" ?
|
|
1229
|
+
a == "tematical" ? M.setState(() => ({ activeFiltersType: null })) : M.setState(() => ({ activeFiltersType: "tematical" }));
|
|
1230
1230
|
};
|
|
1231
1231
|
return /* @__PURE__ */ i(
|
|
1232
1232
|
ae,
|
|
@@ -1279,60 +1279,64 @@ const rn = "_FiltersAmbitContainer_fj99t_2", an = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1279
1279
|
namePlaceholder: u,
|
|
1280
1280
|
descPlaceholder: m,
|
|
1281
1281
|
filtersTypes: h = ["geographical", "tematical"],
|
|
1282
|
-
nameRequiredText:
|
|
1282
|
+
nameRequiredText: f,
|
|
1283
1283
|
geoFilterLayers: C = [],
|
|
1284
1284
|
onGeoLayersChange: _,
|
|
1285
|
-
onlyFilters: v = !1
|
|
1285
|
+
onlyFilters: v = !1,
|
|
1286
1286
|
//usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
|
|
1287
|
+
descriptionRequired: y = !1
|
|
1288
|
+
//campo descripción required
|
|
1287
1289
|
}) => {
|
|
1288
|
-
const { t:
|
|
1290
|
+
const { t: g } = $(), { tematicalFiltersSelected: b, activeFiltersType: k, geoLayers: w } = M((L) => L), [x, S] = F(n || null), [B, N] = F(d || null), [T, A] = F(!1);
|
|
1289
1291
|
V(() => {
|
|
1290
|
-
s && s.length > 0 &&
|
|
1292
|
+
s && s.length > 0 && M.setState((L) => ({
|
|
1291
1293
|
tematicalFiltersSelected: s
|
|
1292
1294
|
}));
|
|
1293
1295
|
}, [s]), V(() => {
|
|
1294
|
-
h.includes("geographical") &&
|
|
1296
|
+
h.includes("geographical") && w != C && M.setState({ geoLayers: C });
|
|
1295
1297
|
}, [C]), V(() => {
|
|
1296
|
-
a(
|
|
1297
|
-
}, [
|
|
1298
|
-
const
|
|
1299
|
-
|
|
1298
|
+
a(b);
|
|
1299
|
+
}, [b]);
|
|
1300
|
+
const H = () => {
|
|
1301
|
+
y ? x && B ? c({ name: x, description: B }) : A(!0) : x ? c({ name: x, description: B }) : A(!0);
|
|
1300
1302
|
};
|
|
1301
1303
|
return V(() => {
|
|
1302
|
-
h.includes("geographical") &&
|
|
1303
|
-
geoLayers:
|
|
1304
|
-
...
|
|
1304
|
+
h.includes("geographical") && k != "geographical" && w.length > 0 && M.setState((L) => ({
|
|
1305
|
+
geoLayers: L.geoLayers.map((j) => ({
|
|
1306
|
+
...j,
|
|
1305
1307
|
active: !1
|
|
1306
1308
|
}))
|
|
1307
1309
|
}));
|
|
1308
|
-
}, [
|
|
1310
|
+
}, [k]), /* @__PURE__ */ p("div", { className: te.FiltersAmbitContainer, children: [
|
|
1309
1311
|
/* @__PURE__ */ p("div", { children: [
|
|
1310
1312
|
!v && /* @__PURE__ */ p("div", { className: te.FiltersAmbitHeader, children: [
|
|
1311
1313
|
/* @__PURE__ */ i("div", { className: te.FiltersAmbitTitle, children: /* @__PURE__ */ i(
|
|
1312
1314
|
"input",
|
|
1313
1315
|
{
|
|
1314
1316
|
type: "text",
|
|
1315
|
-
onChange: (
|
|
1316
|
-
|
|
1317
|
+
onChange: (L) => {
|
|
1318
|
+
A(!1), S(L.target.value);
|
|
1317
1319
|
},
|
|
1318
|
-
value:
|
|
1319
|
-
placeholder:
|
|
1320
|
+
value: x,
|
|
1321
|
+
placeholder: g(u)
|
|
1320
1322
|
}
|
|
1321
1323
|
) }),
|
|
1322
1324
|
/* @__PURE__ */ i("div", { className: te.FiltersAmbitDescription, children: /* @__PURE__ */ i("div", { className: te.FiltersAmbitDescriptionTitle, children: /* @__PURE__ */ i(
|
|
1323
1325
|
"textarea",
|
|
1324
1326
|
{
|
|
1325
|
-
value:
|
|
1326
|
-
onChange: (
|
|
1327
|
-
|
|
1327
|
+
value: B,
|
|
1328
|
+
onChange: (L) => {
|
|
1329
|
+
y && A(!1), N(L.target.value);
|
|
1330
|
+
},
|
|
1331
|
+
placeholder: g(m)
|
|
1328
1332
|
}
|
|
1329
1333
|
) }) })
|
|
1330
1334
|
] }),
|
|
1331
1335
|
/* @__PURE__ */ i(
|
|
1332
1336
|
ft,
|
|
1333
1337
|
{
|
|
1334
|
-
title:
|
|
1335
|
-
isOpen:
|
|
1338
|
+
title: g("applied_filters"),
|
|
1339
|
+
isOpen: k == "applied",
|
|
1336
1340
|
textColor: r || "#fff",
|
|
1337
1341
|
backgroundColor: l || "#605B5680",
|
|
1338
1342
|
activeColor: t
|
|
@@ -1356,9 +1360,9 @@ const rn = "_FiltersAmbitContainer_fj99t_2", an = "_FiltersAmbitHeader_fj99t_15"
|
|
|
1356
1360
|
activeColor: t
|
|
1357
1361
|
}
|
|
1358
1362
|
),
|
|
1359
|
-
|
|
1363
|
+
T && /* @__PURE__ */ i("div", { className: te.warning, children: g(f) })
|
|
1360
1364
|
] }),
|
|
1361
|
-
!v && /* @__PURE__ */ i("div", { className: te.buttonContainer, children: /* @__PURE__ */ i(Ve, { onClick: () =>
|
|
1365
|
+
!v && /* @__PURE__ */ i("div", { className: te.buttonContainer, children: /* @__PURE__ */ i(Ve, { onClick: () => H(), children: g("save_ambit") }) })
|
|
1362
1366
|
] });
|
|
1363
1367
|
};
|
|
1364
1368
|
mn.propTypes = {
|
|
@@ -1390,11 +1394,11 @@ const hn = "_barChartContainer_d2f1z_2", gn = {
|
|
|
1390
1394
|
numberOfDivisions: c = 7,
|
|
1391
1395
|
maxValue: u = null
|
|
1392
1396
|
}) => {
|
|
1393
|
-
const { t: m } =
|
|
1397
|
+
const { t: m } = $(), { xScale: h, ticks: f, height: C } = me(() => {
|
|
1394
1398
|
if (n && n.length > 0) {
|
|
1395
|
-
const _ = (n == null ? void 0 : n.length) * (s + o) + r * 2, v = Qe.max(n, (
|
|
1399
|
+
const _ = (n == null ? void 0 : n.length) * (s + o) + r * 2, v = Qe.max(n, (b) => b.value) || 1, y = Qe.scaleLinear().domain([0, u || v]).range([0, d - a]), g = Array.from({ length: c + 1 }, (b, k) => u ? u / c * k : v / c * k);
|
|
1396
1400
|
return {
|
|
1397
|
-
xScale:
|
|
1401
|
+
xScale: y,
|
|
1398
1402
|
ticks: g,
|
|
1399
1403
|
height: _,
|
|
1400
1404
|
width: d,
|
|
@@ -1414,9 +1418,9 @@ const hn = "_barChartContainer_d2f1z_2", gn = {
|
|
|
1414
1418
|
u
|
|
1415
1419
|
]);
|
|
1416
1420
|
return /* @__PURE__ */ i("div", { className: gn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + l * 2, height: C, children: /* @__PURE__ */ p("g", { transform: `translate(0,${o})`, children: [
|
|
1417
|
-
/* @__PURE__ */ i("g", { transform: `translate(${a + l}, 0)`, children:
|
|
1418
|
-
const
|
|
1419
|
-
return /* @__PURE__ */ p("g", { transform: `translate(${
|
|
1421
|
+
/* @__PURE__ */ i("g", { transform: `translate(${a + l}, 0)`, children: f.map((_, v) => {
|
|
1422
|
+
const y = h(_);
|
|
1423
|
+
return /* @__PURE__ */ p("g", { transform: `translate(${y}, 0)`, children: [
|
|
1420
1424
|
/* @__PURE__ */ i(
|
|
1421
1425
|
"line",
|
|
1422
1426
|
{
|
|
@@ -1438,7 +1442,7 @@ const hn = "_barChartContainer_d2f1z_2", gn = {
|
|
|
1438
1442
|
] }, v);
|
|
1439
1443
|
}) }),
|
|
1440
1444
|
n && n.length > 0 && (n == null ? void 0 : n.map((_, v) => {
|
|
1441
|
-
const
|
|
1445
|
+
const y = h(_.value), g = v * (s + o);
|
|
1442
1446
|
return /* @__PURE__ */ p(
|
|
1443
1447
|
"g",
|
|
1444
1448
|
{
|
|
@@ -1457,7 +1461,7 @@ const hn = "_barChartContainer_d2f1z_2", gn = {
|
|
|
1457
1461
|
/* @__PURE__ */ i(
|
|
1458
1462
|
"rect",
|
|
1459
1463
|
{
|
|
1460
|
-
width:
|
|
1464
|
+
width: y,
|
|
1461
1465
|
height: s,
|
|
1462
1466
|
fill: _.color,
|
|
1463
1467
|
rx: 0
|
|
@@ -1500,7 +1504,7 @@ const Cn = "_graphicContainer_c9zrg_2", fn = "_titleContainer_c9zrg_14", tt = {
|
|
|
1500
1504
|
numberOfDivisions: a = 7,
|
|
1501
1505
|
leftPadding: c = 200
|
|
1502
1506
|
}) => {
|
|
1503
|
-
const { t: u } =
|
|
1507
|
+
const { t: u } = $();
|
|
1504
1508
|
return /* @__PURE__ */ p(
|
|
1505
1509
|
"div",
|
|
1506
1510
|
{
|
|
@@ -1547,7 +1551,7 @@ const yn = "_indicatorsCategory_arwy3_2", _n = "_title_arwy3_5", vn = "_list_arw
|
|
|
1547
1551
|
indicatorsCategory: yn,
|
|
1548
1552
|
title: _n,
|
|
1549
1553
|
list: vn
|
|
1550
|
-
}, nt = "data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23605B56'/%3e%3c/svg%3e", wn = "data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23ffffff'/%3e%3c/svg%3e", xn = "_indicatorContainer_17b40_2", Nn = "_indicatorNameContainer_17b40_11", kn = "_dot_17b40_17", Sn = "_indicatorName_17b40_11", $n = "_switchExternalContainer_17b40_31", Bn = "_switchType_17b40_39", Tn = "_switchTypeOptions_17b40_43", Ln = "_optionContainer_17b40_54", Mn = "_customRadious_17b40_64", Dn = "_optionText_17b40_71",
|
|
1554
|
+
}, nt = "data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23605B56'/%3e%3c/svg%3e", wn = "data:image/svg+xml,%3csvg%20width='8'%20height='8'%20viewBox='0%200%208%208'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M3.32549%200H4.65882V3.40392H8V4.61176H4.65882V8H3.32549V4.61176H0V3.40392H3.32549V0Z'%20fill='%23ffffff'/%3e%3c/svg%3e", xn = "_indicatorContainer_17b40_2", Nn = "_indicatorNameContainer_17b40_11", kn = "_dot_17b40_17", Sn = "_indicatorName_17b40_11", $n = "_switchExternalContainer_17b40_31", Bn = "_switchType_17b40_39", Tn = "_switchTypeOptions_17b40_43", Ln = "_optionContainer_17b40_54", Mn = "_customRadious_17b40_64", Dn = "_optionText_17b40_71", R = {
|
|
1551
1555
|
indicatorContainer: xn,
|
|
1552
1556
|
indicatorNameContainer: Nn,
|
|
1553
1557
|
dot: kn,
|
|
@@ -1569,7 +1573,7 @@ const yn = "_indicatorsCategory_arwy3_2", _n = "_title_arwy3_5", vn = "_list_arw
|
|
|
1569
1573
|
multiple: a = !1,
|
|
1570
1574
|
onChangeType: c
|
|
1571
1575
|
}) => {
|
|
1572
|
-
const { t: u } =
|
|
1576
|
+
const { t: u } = $(), { name: m, type: h, disabled: f } = n;
|
|
1573
1577
|
console.log(nt);
|
|
1574
1578
|
const [C, _] = F(!1);
|
|
1575
1579
|
V(() => {
|
|
@@ -1579,17 +1583,17 @@ const yn = "_indicatorsCategory_arwy3_2", _n = "_title_arwy3_5", vn = "_list_arw
|
|
|
1579
1583
|
) : t.name == m
|
|
1580
1584
|
);
|
|
1581
1585
|
}, [t]);
|
|
1582
|
-
const v = () => /* @__PURE__ */ i("div", { className:
|
|
1586
|
+
const v = () => /* @__PURE__ */ i("div", { className: R.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: R.switchType, children: /* @__PURE__ */ p("div", { className: R.switchTypeOptions, children: [
|
|
1583
1587
|
/* @__PURE__ */ p(
|
|
1584
1588
|
"div",
|
|
1585
1589
|
{
|
|
1586
|
-
className:
|
|
1590
|
+
className: R.optionContainer,
|
|
1587
1591
|
onClick: () => c("cat"),
|
|
1588
1592
|
children: [
|
|
1589
1593
|
/* @__PURE__ */ i(
|
|
1590
1594
|
"span",
|
|
1591
1595
|
{
|
|
1592
|
-
className: `${
|
|
1596
|
+
className: `${R.customRadious}`,
|
|
1593
1597
|
style: {
|
|
1594
1598
|
backgroundColor: r === "cat" ? s : "transparent",
|
|
1595
1599
|
borderColor: r === "cat" ? s : o
|
|
@@ -1599,7 +1603,7 @@ const yn = "_indicatorsCategory_arwy3_2", _n = "_title_arwy3_5", vn = "_list_arw
|
|
|
1599
1603
|
/* @__PURE__ */ i(
|
|
1600
1604
|
"h4",
|
|
1601
1605
|
{
|
|
1602
|
-
className:
|
|
1606
|
+
className: R.optionText,
|
|
1603
1607
|
style: {
|
|
1604
1608
|
color: r === "cat" ? s : o
|
|
1605
1609
|
},
|
|
@@ -1612,13 +1616,13 @@ const yn = "_indicatorsCategory_arwy3_2", _n = "_title_arwy3_5", vn = "_list_arw
|
|
|
1612
1616
|
/* @__PURE__ */ p(
|
|
1613
1617
|
"div",
|
|
1614
1618
|
{
|
|
1615
|
-
className:
|
|
1619
|
+
className: R.optionContainer,
|
|
1616
1620
|
onClick: () => c("abs"),
|
|
1617
1621
|
children: [
|
|
1618
1622
|
/* @__PURE__ */ i(
|
|
1619
1623
|
"span",
|
|
1620
1624
|
{
|
|
1621
|
-
className: `${
|
|
1625
|
+
className: `${R.customRadious}`,
|
|
1622
1626
|
style: {
|
|
1623
1627
|
backgroundColor: r === "abs" ? s : "transparent",
|
|
1624
1628
|
borderColor: r === "abs" ? s : o
|
|
@@ -1628,7 +1632,7 @@ const yn = "_indicatorsCategory_arwy3_2", _n = "_title_arwy3_5", vn = "_list_arw
|
|
|
1628
1632
|
/* @__PURE__ */ i(
|
|
1629
1633
|
"h4",
|
|
1630
1634
|
{
|
|
1631
|
-
className:
|
|
1635
|
+
className: R.optionText,
|
|
1632
1636
|
style: {
|
|
1633
1637
|
color: r === "abs" ? s : o
|
|
1634
1638
|
},
|
|
@@ -1638,48 +1642,48 @@ const yn = "_indicatorsCategory_arwy3_2", _n = "_title_arwy3_5", vn = "_list_arw
|
|
|
1638
1642
|
]
|
|
1639
1643
|
}
|
|
1640
1644
|
)
|
|
1641
|
-
] }) }) }),
|
|
1645
|
+
] }) }) }), y = () => /* @__PURE__ */ i("div", { className: R.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: R.switchType, children: /* @__PURE__ */ i("div", { className: R.switchTypeOptions, children: d.map((g, b) => /* @__PURE__ */ p(
|
|
1642
1646
|
"div",
|
|
1643
1647
|
{
|
|
1644
|
-
className:
|
|
1648
|
+
className: R.optionContainer,
|
|
1645
1649
|
children: [
|
|
1646
1650
|
/* @__PURE__ */ i(
|
|
1647
1651
|
"span",
|
|
1648
1652
|
{
|
|
1649
|
-
className:
|
|
1653
|
+
className: R.customRadious
|
|
1650
1654
|
}
|
|
1651
1655
|
),
|
|
1652
1656
|
/* @__PURE__ */ i("h4", { children: u(g.unit) })
|
|
1653
1657
|
]
|
|
1654
1658
|
},
|
|
1655
|
-
|
|
1659
|
+
b
|
|
1656
1660
|
)) }) }) });
|
|
1657
|
-
return /* @__PURE__ */ p("div", { className:
|
|
1661
|
+
return /* @__PURE__ */ p("div", { className: R.indicatorContainer, children: [
|
|
1658
1662
|
/* @__PURE__ */ p(
|
|
1659
1663
|
"div",
|
|
1660
1664
|
{
|
|
1661
|
-
className:
|
|
1662
|
-
onClick: () => !
|
|
1665
|
+
className: R.indicatorNameContainer,
|
|
1666
|
+
onClick: () => !f && l({ indicator: n }),
|
|
1663
1667
|
children: [
|
|
1664
1668
|
/* @__PURE__ */ i(
|
|
1665
1669
|
"div",
|
|
1666
1670
|
{
|
|
1667
1671
|
style: {
|
|
1668
1672
|
border: C ? `1px solid ${s}` : `1px solid ${o}`,
|
|
1669
|
-
opacity:
|
|
1673
|
+
opacity: f ? 0.5 : 1,
|
|
1670
1674
|
backgroundColor: C ? s : "transparent"
|
|
1671
1675
|
},
|
|
1672
|
-
className:
|
|
1676
|
+
className: R.dot,
|
|
1673
1677
|
children: a && /* @__PURE__ */ i("img", { src: C ? wn : nt, alt: "" })
|
|
1674
1678
|
}
|
|
1675
1679
|
),
|
|
1676
1680
|
/* @__PURE__ */ i(
|
|
1677
1681
|
"h4",
|
|
1678
1682
|
{
|
|
1679
|
-
className:
|
|
1683
|
+
className: R.indicatorName,
|
|
1680
1684
|
style: {
|
|
1681
1685
|
color: C ? s : o,
|
|
1682
|
-
opacity:
|
|
1686
|
+
opacity: f ? 0.5 : 1
|
|
1683
1687
|
},
|
|
1684
1688
|
children: /* @__PURE__ */ i(
|
|
1685
1689
|
Ke,
|
|
@@ -1695,7 +1699,7 @@ const yn = "_indicatorsCategory_arwy3_2", _n = "_title_arwy3_5", vn = "_list_arw
|
|
|
1695
1699
|
}
|
|
1696
1700
|
),
|
|
1697
1701
|
(t == null ? void 0 : t.name) === m && h === "both" && /* @__PURE__ */ i("div", { children: v() }),
|
|
1698
|
-
(t == null ? void 0 : t.name) === m && h === "twoUnits" && /* @__PURE__ */ i("div", { children:
|
|
1702
|
+
(t == null ? void 0 : t.name) === m && h === "twoUnits" && /* @__PURE__ */ i("div", { children: y() })
|
|
1699
1703
|
] });
|
|
1700
1704
|
};
|
|
1701
1705
|
Ge.propTypes = {
|
|
@@ -1727,7 +1731,7 @@ const Vn = "_indicatorsSubCategory_1nuug_2", Fn = "_list_1nuug_11", it = {
|
|
|
1727
1731
|
activeIndicatorType: m,
|
|
1728
1732
|
onChangeType: h
|
|
1729
1733
|
}) => {
|
|
1730
|
-
const { t:
|
|
1734
|
+
const { t: f } = $(), [C, _] = F(!1);
|
|
1731
1735
|
return V(() => {
|
|
1732
1736
|
_(t == l);
|
|
1733
1737
|
}, [t, l]), /* @__PURE__ */ p(
|
|
@@ -1744,11 +1748,11 @@ const Vn = "_indicatorsSubCategory_1nuug_2", Fn = "_list_1nuug_11", it = {
|
|
|
1744
1748
|
"span",
|
|
1745
1749
|
{
|
|
1746
1750
|
style: { color: C ? o : s },
|
|
1747
|
-
children:
|
|
1751
|
+
children: f(n)
|
|
1748
1752
|
}
|
|
1749
1753
|
)
|
|
1750
1754
|
] }) }),
|
|
1751
|
-
d && /* @__PURE__ */ i("div", { className: it.list, children: d == null ? void 0 : d.map((v,
|
|
1755
|
+
d && /* @__PURE__ */ i("div", { className: it.list, children: d == null ? void 0 : d.map((v, y) => /* @__PURE__ */ i(
|
|
1752
1756
|
Ge,
|
|
1753
1757
|
{
|
|
1754
1758
|
indicator: v,
|
|
@@ -1760,7 +1764,7 @@ const Vn = "_indicatorsSubCategory_1nuug_2", Fn = "_list_1nuug_11", it = {
|
|
|
1760
1764
|
activeIndicatorType: m,
|
|
1761
1765
|
onChangeType: h
|
|
1762
1766
|
},
|
|
1763
|
-
"indicator" +
|
|
1767
|
+
"indicator" + y
|
|
1764
1768
|
)) })
|
|
1765
1769
|
]
|
|
1766
1770
|
}
|
|
@@ -1791,10 +1795,10 @@ const St = ({
|
|
|
1791
1795
|
onClickIndicator: u,
|
|
1792
1796
|
multiple: m,
|
|
1793
1797
|
activeIndicatorType: h,
|
|
1794
|
-
onChangeType:
|
|
1798
|
+
onChangeType: f
|
|
1795
1799
|
}) => {
|
|
1796
|
-
var
|
|
1797
|
-
const { t: C } =
|
|
1800
|
+
var y;
|
|
1801
|
+
const { t: C } = $(), [_, v] = F(!1);
|
|
1798
1802
|
return V(() => {
|
|
1799
1803
|
v(r === d);
|
|
1800
1804
|
}, [r, d]), /* @__PURE__ */ p(
|
|
@@ -1821,10 +1825,10 @@ const St = ({
|
|
|
1821
1825
|
)
|
|
1822
1826
|
] }),
|
|
1823
1827
|
n.subcategories ? n.subcategories.map(
|
|
1824
|
-
({ name: g, subcategory:
|
|
1828
|
+
({ name: g, subcategory: b, indicators: k }, w) => /* @__PURE__ */ i(
|
|
1825
1829
|
kt,
|
|
1826
1830
|
{
|
|
1827
|
-
id:
|
|
1831
|
+
id: b,
|
|
1828
1832
|
activeSubCategory: l,
|
|
1829
1833
|
subcName: g,
|
|
1830
1834
|
onClickSubCategory: a,
|
|
@@ -1835,11 +1839,11 @@ const St = ({
|
|
|
1835
1839
|
defaultColor: o,
|
|
1836
1840
|
indicators: k,
|
|
1837
1841
|
activeIndicatorType: h,
|
|
1838
|
-
onChangeType:
|
|
1842
|
+
onChangeType: f
|
|
1839
1843
|
},
|
|
1840
1844
|
`subcKey ${w}`
|
|
1841
1845
|
)
|
|
1842
|
-
) : /* @__PURE__ */ i("div", { className: Be.list, children: (
|
|
1846
|
+
) : /* @__PURE__ */ i("div", { className: Be.list, children: (y = n.indicators) == null ? void 0 : y.map((g, b) => /* @__PURE__ */ i(
|
|
1843
1847
|
Ge,
|
|
1844
1848
|
{
|
|
1845
1849
|
indicator: g,
|
|
@@ -1850,9 +1854,9 @@ const St = ({
|
|
|
1850
1854
|
onClickIndicator: u,
|
|
1851
1855
|
multiple: m,
|
|
1852
1856
|
activeIndicatorType: h,
|
|
1853
|
-
onChangeType:
|
|
1857
|
+
onChangeType: f
|
|
1854
1858
|
},
|
|
1855
|
-
`indicator${
|
|
1859
|
+
`indicator${b}`
|
|
1856
1860
|
)) })
|
|
1857
1861
|
]
|
|
1858
1862
|
}
|
|
@@ -1889,13 +1893,13 @@ const An = "_indicatorsList_13b3m_2", In = "_title_13b3m_6", st = {
|
|
|
1889
1893
|
changeIndType: l,
|
|
1890
1894
|
activeIndicatorType: a
|
|
1891
1895
|
}) => {
|
|
1892
|
-
const { t: c } =
|
|
1896
|
+
const { t: c } = $(), [u, m] = F(), [h, f] = F(), [C, _] = F(), v = (w) => {
|
|
1893
1897
|
m(u == w ? null : w);
|
|
1894
|
-
}, f = (w) => {
|
|
1895
|
-
b(h == w ? null : w);
|
|
1896
|
-
}, g = ({ indicator: w }) => {
|
|
1897
|
-
y(w);
|
|
1898
1898
|
}, y = (w) => {
|
|
1899
|
+
f(h == w ? null : w);
|
|
1900
|
+
}, g = ({ indicator: w }) => {
|
|
1901
|
+
b(w);
|
|
1902
|
+
}, b = (w) => {
|
|
1899
1903
|
if (!t)
|
|
1900
1904
|
_(
|
|
1901
1905
|
(C == null ? void 0 : C.name) == w.name ? null : w
|
|
@@ -1919,18 +1923,18 @@ const An = "_indicatorsList_13b3m_2", In = "_title_13b3m_6", st = {
|
|
|
1919
1923
|
let w = C && C.length > 0 ? [...C] : [];
|
|
1920
1924
|
_([...w, ...r]), k(r[0].name);
|
|
1921
1925
|
} else
|
|
1922
|
-
|
|
1926
|
+
b(r), k(r.name);
|
|
1923
1927
|
}, []);
|
|
1924
1928
|
const k = (w) => {
|
|
1925
1929
|
const x = n.find((S) => {
|
|
1926
1930
|
if (S.subcategories) {
|
|
1927
|
-
let
|
|
1928
|
-
(N) => N.indicators.find((
|
|
1931
|
+
let B = S.subcategories.find(
|
|
1932
|
+
(N) => N.indicators.find((T) => T.name == w)
|
|
1929
1933
|
);
|
|
1930
|
-
if (
|
|
1931
|
-
return
|
|
1934
|
+
if (B)
|
|
1935
|
+
return f(B.subcategory), B;
|
|
1932
1936
|
} else
|
|
1933
|
-
return S.indicators.some((
|
|
1937
|
+
return S.indicators.some((B) => B.name == w);
|
|
1934
1938
|
});
|
|
1935
1939
|
x && m(x.category);
|
|
1936
1940
|
};
|
|
@@ -1943,7 +1947,7 @@ const An = "_indicatorsList_13b3m_2", In = "_title_13b3m_6", st = {
|
|
|
1943
1947
|
cat: w,
|
|
1944
1948
|
onClickCategory: v,
|
|
1945
1949
|
activeCategory: u,
|
|
1946
|
-
onClickSubCategory:
|
|
1950
|
+
onClickSubCategory: y,
|
|
1947
1951
|
activeSubCategory: h,
|
|
1948
1952
|
onClickIndicator: g,
|
|
1949
1953
|
activeIndicator: C,
|
|
@@ -1976,7 +1980,7 @@ const Rn = "_langSelector_o9enq_2", qn = "_currentLang_o9enq_14", En = "_arrow_o
|
|
|
1976
1980
|
prevImg: Pn,
|
|
1977
1981
|
langMenu: jn
|
|
1978
1982
|
}, Zn = ({ langs: n, arrow: d, imgPrev: s }) => {
|
|
1979
|
-
const [o, t] = F(!1), { i18n: r } =
|
|
1983
|
+
const [o, t] = F(!1), { i18n: r } = $(), l = n.find((c) => c.code == r.language), a = (c) => {
|
|
1980
1984
|
r.changeLanguage(c), t(!1);
|
|
1981
1985
|
};
|
|
1982
1986
|
return /* @__PURE__ */ p("div", { className: ce.langSelector, children: [
|
|
@@ -2058,7 +2062,7 @@ const zn = "_legendContainer_qs4x9_3", Hn = "_closeButton_qs4x9_31", Kn = "_titl
|
|
|
2058
2062
|
buttonTitle: a,
|
|
2059
2063
|
onClickClose: c
|
|
2060
2064
|
}) => {
|
|
2061
|
-
const { t: u } =
|
|
2065
|
+
const { t: u } = $();
|
|
2062
2066
|
return /* @__PURE__ */ p(
|
|
2063
2067
|
"div",
|
|
2064
2068
|
{
|
|
@@ -2166,7 +2170,7 @@ o0.propTypes = {
|
|
|
2166
2170
|
const r0 = "_logo_1ewa6_2", ot = {
|
|
2167
2171
|
logo: r0
|
|
2168
2172
|
}, a0 = ({ src: n, alt: d, href: s }) => {
|
|
2169
|
-
const { t: o } =
|
|
2173
|
+
const { t: o } = $(), t = /* @__PURE__ */ i("img", { src: n, alt: o(d) });
|
|
2170
2174
|
return s ? /* @__PURE__ */ i("div", { className: ot.logo, children: /* @__PURE__ */ i("a", { href: s, children: t }) }) : /* @__PURE__ */ i("div", { className: ot.logo, children: t });
|
|
2171
2175
|
};
|
|
2172
2176
|
a0.propTypes = {
|
|
@@ -2192,7 +2196,7 @@ const d0 = ({
|
|
|
2192
2196
|
sources: u = [],
|
|
2193
2197
|
layers: m = []
|
|
2194
2198
|
}) => {
|
|
2195
|
-
const h = re(), [
|
|
2199
|
+
const h = re(), [f, C] = F(null), _ = Et((v) => v.mapState.showTexts);
|
|
2196
2200
|
return V(() => {
|
|
2197
2201
|
if (h.current) {
|
|
2198
2202
|
const v = h.current.getMap();
|
|
@@ -2212,25 +2216,25 @@ const d0 = ({
|
|
|
2212
2216
|
onClick: l,
|
|
2213
2217
|
interactiveLayerIds: a,
|
|
2214
2218
|
children: [
|
|
2215
|
-
u.length && u.map((v,
|
|
2219
|
+
u.length && u.map((v, y) => /* @__PURE__ */ i(
|
|
2216
2220
|
jt,
|
|
2217
2221
|
{
|
|
2218
2222
|
...v,
|
|
2219
|
-
children: m.length && m.map((g,
|
|
2223
|
+
children: m.length && m.map((g, b) => {
|
|
2220
2224
|
if (g.sourceId == v.id) return /* @__PURE__ */ i(
|
|
2221
2225
|
Zt,
|
|
2222
2226
|
{
|
|
2223
2227
|
...g.layer,
|
|
2224
2228
|
beforeId: t
|
|
2225
2229
|
},
|
|
2226
|
-
|
|
2230
|
+
b
|
|
2227
2231
|
);
|
|
2228
2232
|
})
|
|
2229
2233
|
},
|
|
2230
|
-
|
|
2234
|
+
y
|
|
2231
2235
|
)),
|
|
2232
2236
|
/* @__PURE__ */ i(zt, { position: "bottom-right", visualizePitch: !0 }),
|
|
2233
|
-
c &&
|
|
2237
|
+
c && f && /* @__PURE__ */ i(
|
|
2234
2238
|
Ht,
|
|
2235
2239
|
{
|
|
2236
2240
|
longitude: c.longitude,
|
|
@@ -2295,7 +2299,7 @@ const u0 = "_mapContainer_b0pyr_3", p0 = {
|
|
|
2295
2299
|
FeaturePopUp: m0,
|
|
2296
2300
|
title: h0
|
|
2297
2301
|
}, g0 = ({ props: n }) => {
|
|
2298
|
-
const { t: d } =
|
|
2302
|
+
const { t: d } = $();
|
|
2299
2303
|
return /* @__PURE__ */ i("div", { className: rt.FeaturePopUp, children: n.map((s) => /* @__PURE__ */ p("p", { children: [
|
|
2300
2304
|
/* @__PURE__ */ p("span", { className: rt.title, children: [
|
|
2301
2305
|
/* @__PURE__ */ i(Ke, { i18nKey: s.name, components: { sup: /* @__PURE__ */ i("sup", {}) }, shouldUnescape: !0 }),
|
|
@@ -2320,7 +2324,7 @@ const u0 = "_mapContainer_b0pyr_3", p0 = {
|
|
|
2320
2324
|
layers: u = [],
|
|
2321
2325
|
popUpParams: m,
|
|
2322
2326
|
onClosePopUp: h,
|
|
2323
|
-
showTexts:
|
|
2327
|
+
showTexts: f,
|
|
2324
2328
|
hash: C = !1
|
|
2325
2329
|
}) => {
|
|
2326
2330
|
const _ = re();
|
|
@@ -2328,10 +2332,10 @@ const u0 = "_mapContainer_b0pyr_3", p0 = {
|
|
|
2328
2332
|
if (_.current) {
|
|
2329
2333
|
const v = _.current.getMap();
|
|
2330
2334
|
v.getStyle().layers.map((g) => {
|
|
2331
|
-
g.type == "symbol" && g.id != "professionals" && (
|
|
2335
|
+
g.type == "symbol" && g.id != "professionals" && (f ? v.setLayoutProperty(g.id, "visibility", "visible") : v.setLayoutProperty(g.id, "visibility", "none"));
|
|
2332
2336
|
});
|
|
2333
2337
|
}
|
|
2334
|
-
}, [
|
|
2338
|
+
}, [f]), V(() => {
|
|
2335
2339
|
let v = new Kt();
|
|
2336
2340
|
return Fe.addProtocol("pmtiles", v.tile), () => {
|
|
2337
2341
|
Fe.removeProtocol("pmtiles");
|
|
@@ -2349,11 +2353,11 @@ const u0 = "_mapContainer_b0pyr_3", p0 = {
|
|
|
2349
2353
|
onClick: l,
|
|
2350
2354
|
interactiveLayerIds: a,
|
|
2351
2355
|
children: [
|
|
2352
|
-
c.length && c.map((v,
|
|
2356
|
+
c.length && c.map((v, y) => /* @__PURE__ */ i(
|
|
2353
2357
|
Wt,
|
|
2354
2358
|
{
|
|
2355
2359
|
...v,
|
|
2356
|
-
children: u.length && u.map((g,
|
|
2360
|
+
children: u.length && u.map((g, b) => {
|
|
2357
2361
|
if (g.sourceId == v.id) return /* @__PURE__ */ i(
|
|
2358
2362
|
Gt,
|
|
2359
2363
|
{
|
|
@@ -2364,11 +2368,11 @@ const u0 = "_mapContainer_b0pyr_3", p0 = {
|
|
|
2364
2368
|
visibility: g.layer.visibility || "visible"
|
|
2365
2369
|
}
|
|
2366
2370
|
},
|
|
2367
|
-
|
|
2371
|
+
b
|
|
2368
2372
|
);
|
|
2369
2373
|
})
|
|
2370
2374
|
},
|
|
2371
|
-
|
|
2375
|
+
y
|
|
2372
2376
|
)),
|
|
2373
2377
|
/* @__PURE__ */ i(Yt, { position: "bottom-right", visualizePitch: !0 }),
|
|
2374
2378
|
m && /* @__PURE__ */ i(
|
|
@@ -2444,7 +2448,7 @@ const f0 = "_sectionBar_1egwc_2", b0 = "_leftContent_1egwc_14", y0 = "_textConta
|
|
|
2444
2448
|
width: r,
|
|
2445
2449
|
borderTop: l = !1
|
|
2446
2450
|
}) => {
|
|
2447
|
-
const { t: a } =
|
|
2451
|
+
const { t: a } = $();
|
|
2448
2452
|
return /* @__PURE__ */ p("div", { className: ne.sectionBar, style: { width: r && r, borderTop: l ? "1px solid #000" : "0px" }, children: [
|
|
2449
2453
|
/* @__PURE__ */ p("div", { className: ne.leftContent, children: [
|
|
2450
2454
|
n && /* @__PURE__ */ i("img", { src: n, alt: "Icono", className: ne.icon }),
|
|
@@ -2513,14 +2517,14 @@ const N0 = Xt({
|
|
|
2513
2517
|
console.log("year changed to ", a);
|
|
2514
2518
|
}
|
|
2515
2519
|
}) => {
|
|
2516
|
-
const [a, c] = F(d), u = (g,
|
|
2517
|
-
c(
|
|
2518
|
-
}, [m, h] = F(!1),
|
|
2520
|
+
const [a, c] = F(d), u = (g, b) => {
|
|
2521
|
+
c(b), l(b);
|
|
2522
|
+
}, [m, h] = F(!1), f = () => {
|
|
2519
2523
|
h(!0);
|
|
2520
2524
|
}, C = () => {
|
|
2521
2525
|
h(!1);
|
|
2522
2526
|
};
|
|
2523
|
-
((g,
|
|
2527
|
+
((g, b) => {
|
|
2524
2528
|
const k = re();
|
|
2525
2529
|
V(() => {
|
|
2526
2530
|
k.current = g;
|
|
@@ -2529,10 +2533,10 @@ const N0 = Xt({
|
|
|
2529
2533
|
k.current();
|
|
2530
2534
|
}
|
|
2531
2535
|
{
|
|
2532
|
-
let x = setInterval(w,
|
|
2536
|
+
let x = setInterval(w, b);
|
|
2533
2537
|
return () => clearInterval(x);
|
|
2534
2538
|
}
|
|
2535
|
-
}, [
|
|
2539
|
+
}, [b]);
|
|
2536
2540
|
})(() => {
|
|
2537
2541
|
m && (a != 2050 ? (c(a + 1), l(a + 1)) : (c(2025), l(2025)));
|
|
2538
2542
|
}, 1e3);
|
|
@@ -2558,7 +2562,7 @@ const N0 = Xt({
|
|
|
2558
2562
|
}
|
|
2559
2563
|
}
|
|
2560
2564
|
}
|
|
2561
|
-
}),
|
|
2565
|
+
}), y = [
|
|
2562
2566
|
{ label: "", value: 2025 },
|
|
2563
2567
|
{ label: "", value: 2032 },
|
|
2564
2568
|
{ label: "", value: 2041 },
|
|
@@ -2579,7 +2583,7 @@ const N0 = Xt({
|
|
|
2579
2583
|
value: a,
|
|
2580
2584
|
valueLabelDisplay: "on",
|
|
2581
2585
|
step: 1,
|
|
2582
|
-
marks:
|
|
2586
|
+
marks: y,
|
|
2583
2587
|
min: s,
|
|
2584
2588
|
max: o,
|
|
2585
2589
|
onChange: u,
|
|
@@ -2588,7 +2592,7 @@ const N0 = Xt({
|
|
|
2588
2592
|
}
|
|
2589
2593
|
),
|
|
2590
2594
|
o,
|
|
2591
|
-
!m && /* @__PURE__ */ i("button", { className: ge.playButton, onClick:
|
|
2595
|
+
!m && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: f, children: /* @__PURE__ */ i("img", { src: k0, alt: "Play" }) }),
|
|
2592
2596
|
m && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: C, children: /* @__PURE__ */ i("img", { src: S0, alt: "Pause" }) })
|
|
2593
2597
|
]
|
|
2594
2598
|
}
|
|
@@ -2616,7 +2620,7 @@ const D0 = "_TopNavMenuContainer_12mp4_2", V0 = "_topNavOptions_12mp4_13", F0 =
|
|
|
2616
2620
|
console.log("Changed NavLink", r);
|
|
2617
2621
|
}
|
|
2618
2622
|
}) => {
|
|
2619
|
-
const { t: r } =
|
|
2623
|
+
const { t: r } = $();
|
|
2620
2624
|
return /* @__PURE__ */ i("div", { className: Oe.TopNavMenuContainer, style: { ...d }, children: n.map((l, a) => /* @__PURE__ */ i(
|
|
2621
2625
|
i2,
|
|
2622
2626
|
{
|
|
@@ -2658,7 +2662,7 @@ const I0 = "_LogInButton_1vxj5_2", O0 = {
|
|
|
2658
2662
|
console.log("Logout clicked");
|
|
2659
2663
|
}
|
|
2660
2664
|
}) => {
|
|
2661
|
-
const { t: c } =
|
|
2665
|
+
const { t: c } = $();
|
|
2662
2666
|
return /* @__PURE__ */ i(
|
|
2663
2667
|
"div",
|
|
2664
2668
|
{
|
|
@@ -2686,7 +2690,7 @@ const q0 = "_elementSelector_1ox68_2", E0 = "_header_1ox68_14", P0 = "_nameDateC
|
|
|
2686
2690
|
buttonsContainer: z0,
|
|
2687
2691
|
elementListContainer: H0,
|
|
2688
2692
|
newElementButtonContainer: K0
|
|
2689
|
-
}, U0 = "_listElement_1evjl_2", W0 = "_elementNameDate_1evjl_18", G0 = "_elementNameContainer_1evjl_28", Y0 = "_elementName_1evjl_18", Q0 = "_elementDate_1evjl_43", X0 = "_elementButtons_1evjl_46", J0 = "_moreInfoContainer_1evjl_69", ei = "_moreInfo_1evjl_69",
|
|
2693
|
+
}, U0 = "_listElement_1evjl_2", W0 = "_elementNameDate_1evjl_18", G0 = "_elementNameContainer_1evjl_28", Y0 = "_elementName_1evjl_18", Q0 = "_elementDate_1evjl_43", X0 = "_elementButtons_1evjl_46", J0 = "_moreInfoContainer_1evjl_69", ei = "_moreInfo_1evjl_69", K = {
|
|
2690
2694
|
listElement: U0,
|
|
2691
2695
|
elementNameDate: W0,
|
|
2692
2696
|
elementNameContainer: G0,
|
|
@@ -2734,14 +2738,14 @@ const ai = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2734
2738
|
defaultTooltip: u,
|
|
2735
2739
|
showEye: m = !0
|
|
2736
2740
|
}) => {
|
|
2737
|
-
const { name: h, created_at:
|
|
2741
|
+
const { name: h, created_at: f, id: C, isBeingProcessed: _ } = n, [v, y] = F(!1), { t: g } = $();
|
|
2738
2742
|
return /* @__PURE__ */ p(
|
|
2739
2743
|
"div",
|
|
2740
2744
|
{
|
|
2741
|
-
className:
|
|
2745
|
+
className: K.listElement,
|
|
2742
2746
|
style: { borderBottom: `1px solid ${t}` },
|
|
2743
2747
|
children: [
|
|
2744
|
-
/* @__PURE__ */ i("div", { className:
|
|
2748
|
+
/* @__PURE__ */ i("div", { className: K.elementNameDate, onClick: () => d(C), children: Object.keys(l).map((b) => b === "name" ? /* @__PURE__ */ i("div", { className: K.elementNameContainer, children: /* @__PURE__ */ p("div", { className: K.elementName, children: [
|
|
2745
2749
|
m && (s ? /* @__PURE__ */ i(ri, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ i(
|
|
2746
2750
|
"img",
|
|
2747
2751
|
{
|
|
@@ -2751,8 +2755,8 @@ const ai = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2751
2755
|
}
|
|
2752
2756
|
)),
|
|
2753
2757
|
/* @__PURE__ */ i("span", { style: { color: s ? o : t }, children: h })
|
|
2754
|
-
] }) }) :
|
|
2755
|
-
/* @__PURE__ */ p("div", { className:
|
|
2758
|
+
] }) }) : b == "data" ? /* @__PURE__ */ i("div", { className: K.elementDate, children: f ? new Date(f).toLocaleDateString() : "" }) : /* @__PURE__ */ i("div", { className: K.elementDate, children: n[b] })) }),
|
|
2759
|
+
/* @__PURE__ */ p("div", { className: K.elementButtons, children: [
|
|
2756
2760
|
n.processing && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
|
|
2757
2761
|
/* @__PURE__ */ i("img", { src: si }),
|
|
2758
2762
|
/* @__PURE__ */ i(oe, { text: c, position: "left" })
|
|
@@ -2774,13 +2778,13 @@ const ai = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
|
|
|
2774
2778
|
/* @__PURE__ */ i(oe, { text: u, position: "left" })
|
|
2775
2779
|
] })
|
|
2776
2780
|
] }),
|
|
2777
|
-
r && /* @__PURE__ */ i("div", { className:
|
|
2778
|
-
r && /* @__PURE__ */ p("div", { className:
|
|
2779
|
-
/* @__PURE__ */ p("div", { className:
|
|
2781
|
+
r && /* @__PURE__ */ i("div", { className: K.break }),
|
|
2782
|
+
r && /* @__PURE__ */ p("div", { className: K.moreInfoContainer, children: [
|
|
2783
|
+
/* @__PURE__ */ p("div", { className: K.moreInfo, onClick: () => y(!v), children: [
|
|
2780
2784
|
/* @__PURE__ */ i("span", { children: v ? "-" : "+" }),
|
|
2781
2785
|
g(r.label)
|
|
2782
2786
|
] }),
|
|
2783
|
-
r && v && /* @__PURE__ */ i("div", { className:
|
|
2787
|
+
r && v && /* @__PURE__ */ i("div", { className: K.moreInfoInfo, children: n[r.info] })
|
|
2784
2788
|
] })
|
|
2785
2789
|
]
|
|
2786
2790
|
}
|
|
@@ -2840,18 +2844,18 @@ const lt = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2840
2844
|
//{label: 'x'}
|
|
2841
2845
|
processTooltip: h,
|
|
2842
2846
|
//texto para el tooltip del simbolo "En proceso"
|
|
2843
|
-
defaultTooltip:
|
|
2847
|
+
defaultTooltip: f,
|
|
2844
2848
|
//texto para el tooltip del símbolo de candado para los elementos default
|
|
2845
2849
|
showEye: C = !0
|
|
2846
2850
|
}) => {
|
|
2847
|
-
const { t: _ } =
|
|
2851
|
+
const { t: _ } = $(), [v, y] = F(n);
|
|
2848
2852
|
V(() => {
|
|
2849
|
-
n &&
|
|
2853
|
+
n && y(n);
|
|
2850
2854
|
}, [n]);
|
|
2851
|
-
const g = (
|
|
2855
|
+
const g = (b) => {
|
|
2852
2856
|
if (v && v.length > 0) {
|
|
2853
2857
|
let k = [...v];
|
|
2854
|
-
k.sort((w, x) => w[
|
|
2858
|
+
k.sort((w, x) => w[b].localeCompare(x[b])), y(k);
|
|
2855
2859
|
}
|
|
2856
2860
|
};
|
|
2857
2861
|
return /* @__PURE__ */ p(
|
|
@@ -2866,22 +2870,22 @@ const lt = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2866
2870
|
className: U.header,
|
|
2867
2871
|
style: { borderBottom: `1px solid ${s}` },
|
|
2868
2872
|
children: [
|
|
2869
|
-
/* @__PURE__ */ i("div", { className: U.nameDateContainer, children: Object.keys(c).map((
|
|
2873
|
+
/* @__PURE__ */ i("div", { className: U.nameDateContainer, children: Object.keys(c).map((b) => b === "name" ? /* @__PURE__ */ i("div", { className: U.elementName, children: /* @__PURE__ */ p("button", { onClick: () => g("name"), children: [
|
|
2870
2874
|
/* @__PURE__ */ i("span", { children: _(c.name) }),
|
|
2871
2875
|
/* @__PURE__ */ i("img", { src: lt, alt: "order arrow" })
|
|
2872
|
-
] }) },
|
|
2876
|
+
] }) }, b) : b === "data" ? /* @__PURE__ */ i("div", { className: U.elementDate, children: /* @__PURE__ */ p("button", { onClick: () => g("date"), children: [
|
|
2873
2877
|
/* @__PURE__ */ i("span", { children: _(c.data) }),
|
|
2874
2878
|
/* @__PURE__ */ i("img", { src: lt, alt: "order arrow" })
|
|
2875
|
-
] }) },
|
|
2879
|
+
] }) }, b) : /* @__PURE__ */ i("div", { className: U.elementDate, children: /* @__PURE__ */ i("span", { children: _(c[b]) }) }, b)) }),
|
|
2876
2880
|
/* @__PURE__ */ i("div", { className: U.buttonsContainer })
|
|
2877
2881
|
]
|
|
2878
2882
|
}
|
|
2879
2883
|
),
|
|
2880
|
-
/* @__PURE__ */ i("div", { className: U.elementListContainer, children: v && v.length > 0 && v.map((
|
|
2884
|
+
/* @__PURE__ */ i("div", { className: U.elementListContainer, children: v && v.length > 0 && v.map((b) => /* @__PURE__ */ i(
|
|
2881
2885
|
$t,
|
|
2882
2886
|
{
|
|
2883
|
-
isActive: d ==
|
|
2884
|
-
listelement:
|
|
2887
|
+
isActive: d == b.id,
|
|
2888
|
+
listelement: b,
|
|
2885
2889
|
fontColor: s,
|
|
2886
2890
|
activeColor: o,
|
|
2887
2891
|
onClickElement: a,
|
|
@@ -2889,10 +2893,10 @@ const lt = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
|
|
|
2889
2893
|
elementButtons: u,
|
|
2890
2894
|
moreInfo: m,
|
|
2891
2895
|
processTooltip: h,
|
|
2892
|
-
defaultTooltip:
|
|
2896
|
+
defaultTooltip: f,
|
|
2893
2897
|
showEye: C
|
|
2894
2898
|
},
|
|
2895
|
-
`elementKey${
|
|
2899
|
+
`elementKey${b.id}`
|
|
2896
2900
|
)) }),
|
|
2897
2901
|
l && /* @__PURE__ */ i("div", { className: U.newElementButtonContainer, children: /* @__PURE__ */ i(
|
|
2898
2902
|
Ve,
|
|
@@ -2987,7 +2991,7 @@ function Tt(n) {
|
|
|
2987
2991
|
return n;
|
|
2988
2992
|
return d;
|
|
2989
2993
|
}
|
|
2990
|
-
var Lt = (n) => /^\w*$/.test(n), He = (n) => n === void 0, vi = (n) => Array.isArray(n) ? n.filter(Boolean) : [], Mt = (n) => vi(n.replace(/["|']|\]/g, "").split(/\.|\[/)),
|
|
2994
|
+
var Lt = (n) => /^\w*$/.test(n), He = (n) => n === void 0, vi = (n) => Array.isArray(n) ? n.filter(Boolean) : [], Mt = (n) => vi(n.replace(/["|']|\]/g, "").split(/\.|\[/)), E = (n, d, s) => {
|
|
2991
2995
|
if (!d || !_e(n))
|
|
2992
2996
|
return s;
|
|
2993
2997
|
const o = (Lt(d) ? [d] : Mt(d)).reduce((t, r) => Bt(t) ? t : t[r], n);
|
|
@@ -3054,7 +3058,7 @@ function xi(n) {
|
|
|
3054
3058
|
c.current.isValid && s._setValid(!0);
|
|
3055
3059
|
}, [s]), D.useMemo(() => wi(l, s, c.current, !1), [l, s]);
|
|
3056
3060
|
}
|
|
3057
|
-
var Ni = (n) => typeof n == "string", ki = (n, d, s, o, t) => Ni(n) ?
|
|
3061
|
+
var Ni = (n) => typeof n == "string", ki = (n, d, s, o, t) => Ni(n) ? E(s, n, t) : Array.isArray(n) ? n.map((r) => E(s, r)) : s;
|
|
3058
3062
|
function Si(n) {
|
|
3059
3063
|
const d = Ye(), { 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));
|
|
3060
3064
|
return Vt(() => s._subscribe({
|
|
@@ -3070,7 +3074,7 @@ function $i(n) {
|
|
|
3070
3074
|
const d = Ye(), { name: s, disabled: o, control: t = d.control, shouldUnregister: r } = n, l = bi(t._names.array, s), a = Si({
|
|
3071
3075
|
control: t,
|
|
3072
3076
|
name: s,
|
|
3073
|
-
defaultValue:
|
|
3077
|
+
defaultValue: E(t._formValues, s, E(t._defaultValues, s, n.defaultValue)),
|
|
3074
3078
|
exact: !0
|
|
3075
3079
|
}), c = xi({
|
|
3076
3080
|
control: t,
|
|
@@ -3083,68 +3087,68 @@ function $i(n) {
|
|
|
3083
3087
|
})), h = D.useMemo(() => Object.defineProperties({}, {
|
|
3084
3088
|
invalid: {
|
|
3085
3089
|
enumerable: !0,
|
|
3086
|
-
get: () => !!
|
|
3090
|
+
get: () => !!E(c.errors, s)
|
|
3087
3091
|
},
|
|
3088
3092
|
isDirty: {
|
|
3089
3093
|
enumerable: !0,
|
|
3090
|
-
get: () => !!
|
|
3094
|
+
get: () => !!E(c.dirtyFields, s)
|
|
3091
3095
|
},
|
|
3092
3096
|
isTouched: {
|
|
3093
3097
|
enumerable: !0,
|
|
3094
|
-
get: () => !!
|
|
3098
|
+
get: () => !!E(c.touchedFields, s)
|
|
3095
3099
|
},
|
|
3096
3100
|
isValidating: {
|
|
3097
3101
|
enumerable: !0,
|
|
3098
|
-
get: () => !!
|
|
3102
|
+
get: () => !!E(c.validatingFields, s)
|
|
3099
3103
|
},
|
|
3100
3104
|
error: {
|
|
3101
3105
|
enumerable: !0,
|
|
3102
|
-
get: () =>
|
|
3106
|
+
get: () => E(c.errors, s)
|
|
3103
3107
|
}
|
|
3104
|
-
}), [c, s]),
|
|
3108
|
+
}), [c, s]), f = D.useCallback((y) => m.current.onChange({
|
|
3105
3109
|
target: {
|
|
3106
|
-
value: Ci(
|
|
3110
|
+
value: Ci(y),
|
|
3107
3111
|
name: s
|
|
3108
3112
|
},
|
|
3109
3113
|
type: dt.CHANGE
|
|
3110
3114
|
}), [s]), C = D.useCallback(() => m.current.onBlur({
|
|
3111
3115
|
target: {
|
|
3112
|
-
value:
|
|
3116
|
+
value: E(t._formValues, s),
|
|
3113
3117
|
name: s
|
|
3114
3118
|
},
|
|
3115
3119
|
type: dt.BLUR
|
|
3116
|
-
}), [s, t._formValues]), _ = D.useCallback((
|
|
3117
|
-
const g =
|
|
3118
|
-
g &&
|
|
3119
|
-
focus: () =>
|
|
3120
|
-
select: () =>
|
|
3121
|
-
setCustomValidity: (
|
|
3122
|
-
reportValidity: () =>
|
|
3120
|
+
}), [s, t._formValues]), _ = D.useCallback((y) => {
|
|
3121
|
+
const g = E(t._fields, s);
|
|
3122
|
+
g && y && (g._f.ref = {
|
|
3123
|
+
focus: () => y.focus && y.focus(),
|
|
3124
|
+
select: () => y.select && y.select(),
|
|
3125
|
+
setCustomValidity: (b) => y.setCustomValidity(b),
|
|
3126
|
+
reportValidity: () => y.reportValidity()
|
|
3123
3127
|
});
|
|
3124
3128
|
}, [t._fields, s]), v = D.useMemo(() => ({
|
|
3125
3129
|
name: s,
|
|
3126
3130
|
value: a,
|
|
3127
3131
|
...Re(o) || c.disabled ? { disabled: c.disabled || o } : {},
|
|
3128
|
-
onChange:
|
|
3132
|
+
onChange: f,
|
|
3129
3133
|
onBlur: C,
|
|
3130
3134
|
ref: _
|
|
3131
|
-
}), [s, o, c.disabled,
|
|
3135
|
+
}), [s, o, c.disabled, f, C, _, a]);
|
|
3132
3136
|
return D.useEffect(() => {
|
|
3133
|
-
const
|
|
3137
|
+
const y = t._options.shouldUnregister || r;
|
|
3134
3138
|
t.register(s, {
|
|
3135
3139
|
...u.current.rules,
|
|
3136
3140
|
...Re(u.current.disabled) ? { disabled: u.current.disabled } : {}
|
|
3137
3141
|
});
|
|
3138
|
-
const g = (
|
|
3139
|
-
const w =
|
|
3142
|
+
const g = (b, k) => {
|
|
3143
|
+
const w = E(t._fields, b);
|
|
3140
3144
|
w && w._f && (w._f.mount = k);
|
|
3141
3145
|
};
|
|
3142
|
-
if (g(s, !0),
|
|
3143
|
-
const
|
|
3144
|
-
ct(t._defaultValues, s,
|
|
3146
|
+
if (g(s, !0), y) {
|
|
3147
|
+
const b = Tt(E(t._options.defaultValues, s));
|
|
3148
|
+
ct(t._defaultValues, s, b), He(E(t._formValues, s)) && ct(t._formValues, s, b);
|
|
3145
3149
|
}
|
|
3146
3150
|
return !l && t.register(s), () => {
|
|
3147
|
-
(l ?
|
|
3151
|
+
(l ? y && !t._state.action : y) ? t.unregister(s) : g(s, !1);
|
|
3148
3152
|
};
|
|
3149
3153
|
}, [s, t, l, r]), D.useEffect(() => {
|
|
3150
3154
|
t._setDisabledField({
|
|
@@ -3170,7 +3174,7 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3170
3174
|
errorColor: d = "red",
|
|
3171
3175
|
containerStyles: s
|
|
3172
3176
|
}) => {
|
|
3173
|
-
const { t: o } =
|
|
3177
|
+
const { t: o } = $();
|
|
3174
3178
|
return /* @__PURE__ */ i(
|
|
3175
3179
|
"div",
|
|
3176
3180
|
{
|
|
@@ -3195,10 +3199,10 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3195
3199
|
onClickForgotPass: h = () => {
|
|
3196
3200
|
console.log("Click on forgot password");
|
|
3197
3201
|
},
|
|
3198
|
-
forgotPassLabel:
|
|
3199
|
-
} = n, { t: C } =
|
|
3202
|
+
forgotPassLabel: f = "forgot-password"
|
|
3203
|
+
} = n, { t: C } = $(), { control: _, trigger: v, clearErrors: y } = d, { errorColor: g } = xe((x) => x), [b, k] = F(!1);
|
|
3200
3204
|
re(l);
|
|
3201
|
-
const w = () => o ? o === "password" &&
|
|
3205
|
+
const w = () => o ? o === "password" && b ? "text" : o : "text";
|
|
3202
3206
|
return /* @__PURE__ */ i(
|
|
3203
3207
|
ve,
|
|
3204
3208
|
{
|
|
@@ -3210,7 +3214,7 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3210
3214
|
validate: a || void 0
|
|
3211
3215
|
},
|
|
3212
3216
|
render: ({ field: x, fieldState: S }) => {
|
|
3213
|
-
var
|
|
3217
|
+
var B;
|
|
3214
3218
|
return /* @__PURE__ */ p("div", { className: be.textInputContainer, children: [
|
|
3215
3219
|
/* @__PURE__ */ p("h3", { className: be.labelContainer, children: [
|
|
3216
3220
|
C(t),
|
|
@@ -3235,20 +3239,20 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3235
3239
|
o == "password" && /* @__PURE__ */ i(
|
|
3236
3240
|
"button",
|
|
3237
3241
|
{
|
|
3238
|
-
onClick: () => k(!
|
|
3242
|
+
onClick: () => k(!b),
|
|
3239
3243
|
type: "button",
|
|
3240
3244
|
className: be.showPasswordButton,
|
|
3241
|
-
children:
|
|
3245
|
+
children: b ? "🙈" : "👁️"
|
|
3242
3246
|
}
|
|
3243
3247
|
)
|
|
3244
3248
|
]
|
|
3245
3249
|
}
|
|
3246
3250
|
),
|
|
3247
|
-
o == "password" && /* @__PURE__ */ i("div", { className: be.forgotPassButton, children: /* @__PURE__ */ i("button", { onClick: h, children: C(
|
|
3251
|
+
o == "password" && /* @__PURE__ */ i("div", { className: be.forgotPassButton, children: /* @__PURE__ */ i("button", { onClick: h, children: C(f) }) }),
|
|
3248
3252
|
/* @__PURE__ */ i(
|
|
3249
3253
|
we,
|
|
3250
3254
|
{
|
|
3251
|
-
errorMessage: (
|
|
3255
|
+
errorMessage: (B = S.error) == null ? void 0 : B.message,
|
|
3252
3256
|
errorColor: g || u
|
|
3253
3257
|
}
|
|
3254
3258
|
)
|
|
@@ -3276,14 +3280,14 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3276
3280
|
placeholder: u,
|
|
3277
3281
|
errorColor: m = "red",
|
|
3278
3282
|
width: h = 325,
|
|
3279
|
-
options:
|
|
3283
|
+
options: f = []
|
|
3280
3284
|
//Used if we dont use react hook form
|
|
3281
|
-
} = n, { t: C } =
|
|
3285
|
+
} = n, { t: C } = $(), { control: _, trigger: v, clearErrors: y } = d || {}, { errorColor: g } = xe((w) => w);
|
|
3282
3286
|
re(a);
|
|
3283
|
-
const [
|
|
3287
|
+
const [b, k] = F(null);
|
|
3284
3288
|
return V(() => {
|
|
3285
|
-
|
|
3286
|
-
}, [
|
|
3289
|
+
b && s && s(b);
|
|
3290
|
+
}, [b, s]), d ? /* @__PURE__ */ i(
|
|
3287
3291
|
ve,
|
|
3288
3292
|
{
|
|
3289
3293
|
name: o,
|
|
@@ -3308,19 +3312,19 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3308
3312
|
"select",
|
|
3309
3313
|
{
|
|
3310
3314
|
...w,
|
|
3311
|
-
onChange: (
|
|
3312
|
-
const N =
|
|
3313
|
-
w.onChange(
|
|
3315
|
+
onChange: (B) => {
|
|
3316
|
+
const N = B.target.value, T = f.every((A) => typeof A.value == "number") ? Number(N) : N;
|
|
3317
|
+
w.onChange(T);
|
|
3314
3318
|
},
|
|
3315
3319
|
className: z.selectInput,
|
|
3316
3320
|
children: [
|
|
3317
3321
|
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: C(u || "selectOption") }),
|
|
3318
|
-
|
|
3322
|
+
f.map((B, N) => /* @__PURE__ */ i(
|
|
3319
3323
|
"option",
|
|
3320
3324
|
{
|
|
3321
|
-
value:
|
|
3325
|
+
value: B.value,
|
|
3322
3326
|
className: z.option,
|
|
3323
|
-
children: C(
|
|
3327
|
+
children: C(B.label)
|
|
3324
3328
|
},
|
|
3325
3329
|
N
|
|
3326
3330
|
))
|
|
@@ -3356,15 +3360,15 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3356
3360
|
/* @__PURE__ */ p(
|
|
3357
3361
|
"select",
|
|
3358
3362
|
{
|
|
3359
|
-
value:
|
|
3363
|
+
value: b || "",
|
|
3360
3364
|
onChange: (w) => {
|
|
3361
|
-
const x = w.target.value, S =
|
|
3365
|
+
const x = w.target.value, S = f.every((B) => typeof B.value == "number") ? Number(x) : x;
|
|
3362
3366
|
k(S);
|
|
3363
3367
|
},
|
|
3364
3368
|
className: z.selectInput,
|
|
3365
3369
|
children: [
|
|
3366
3370
|
/* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: C(u || "selectOption") }),
|
|
3367
|
-
|
|
3371
|
+
f.map((w, x) => /* @__PURE__ */ i(
|
|
3368
3372
|
"option",
|
|
3369
3373
|
{
|
|
3370
3374
|
value: w.value,
|
|
@@ -3395,13 +3399,13 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3395
3399
|
errorColor: l = "red",
|
|
3396
3400
|
options: a = [],
|
|
3397
3401
|
multi: c = !1
|
|
3398
|
-
} = n, { t: u } =
|
|
3399
|
-
if (c &&
|
|
3400
|
-
let k =
|
|
3402
|
+
} = n, { t: u } = $(), { control: m, trigger: h, clearErrors: f } = d, { errorColor: C } = xe((y) => y), _ = ({ options: y, onChange: g, actualValue: b }) => {
|
|
3403
|
+
if (c && b && b.length > 0) {
|
|
3404
|
+
let k = b.filter((w) => w !== y);
|
|
3401
3405
|
g(k);
|
|
3402
3406
|
}
|
|
3403
|
-
}, v = ({ options:
|
|
3404
|
-
c ?
|
|
3407
|
+
}, v = ({ options: y, onChange: g, actualValue: b }) => {
|
|
3408
|
+
c ? b && b.length > 0 ? g([...b, y]) : g([y]) : g(y);
|
|
3405
3409
|
};
|
|
3406
3410
|
return re(t), /* @__PURE__ */ i(
|
|
3407
3411
|
ve,
|
|
@@ -3409,11 +3413,11 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3409
3413
|
control: m,
|
|
3410
3414
|
name: s,
|
|
3411
3415
|
rules: {
|
|
3412
|
-
validate: (
|
|
3416
|
+
validate: (y) => t && (y == null || y === "") ? `${u(o)} ${u("errorMessages.required")}` : null
|
|
3413
3417
|
},
|
|
3414
3418
|
render: ({
|
|
3415
|
-
formState: { errors:
|
|
3416
|
-
field: { onChange: g, onBlur:
|
|
3419
|
+
formState: { errors: y },
|
|
3420
|
+
field: { onChange: g, onBlur: b, value: k, ref: w },
|
|
3417
3421
|
fieldState: x
|
|
3418
3422
|
}) => {
|
|
3419
3423
|
var S;
|
|
@@ -3439,20 +3443,20 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3439
3443
|
/* @__PURE__ */ p("div", { className: ie.inputContainer, children: [
|
|
3440
3444
|
a.map(
|
|
3441
3445
|
({
|
|
3442
|
-
label:
|
|
3446
|
+
label: B,
|
|
3443
3447
|
value: N,
|
|
3444
|
-
disabled:
|
|
3448
|
+
disabled: T = !1,
|
|
3445
3449
|
italicLabel: A
|
|
3446
|
-
},
|
|
3447
|
-
const
|
|
3450
|
+
}, H) => {
|
|
3451
|
+
const L = k && c ? k.isArray && (k == null ? void 0 : k.length) > 0 && k.some((j) => j === N) : k === N;
|
|
3448
3452
|
return /* @__PURE__ */ p("label", { children: [
|
|
3449
3453
|
/* @__PURE__ */ i(
|
|
3450
3454
|
"input",
|
|
3451
3455
|
{
|
|
3452
3456
|
type: "radio",
|
|
3453
|
-
checked:
|
|
3457
|
+
checked: L,
|
|
3454
3458
|
onChange: () => {
|
|
3455
|
-
c ?
|
|
3459
|
+
c ? L ? _({
|
|
3456
3460
|
actualValue: k,
|
|
3457
3461
|
options: a,
|
|
3458
3462
|
onChange: g
|
|
@@ -3466,8 +3470,8 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3466
3470
|
}
|
|
3467
3471
|
),
|
|
3468
3472
|
/* @__PURE__ */ i("span", { className: "radio-custom" }),
|
|
3469
|
-
u(
|
|
3470
|
-
] }, `inputRadio ${
|
|
3473
|
+
u(B)
|
|
3474
|
+
] }, `inputRadio ${H}`);
|
|
3471
3475
|
}
|
|
3472
3476
|
),
|
|
3473
3477
|
/* @__PURE__ */ i(
|
|
@@ -3503,18 +3507,18 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3503
3507
|
required: u,
|
|
3504
3508
|
errorColor: m = "red",
|
|
3505
3509
|
labelWidth: h = "300px",
|
|
3506
|
-
sliderWidth:
|
|
3510
|
+
sliderWidth: f = "300px",
|
|
3507
3511
|
minText: C,
|
|
3508
3512
|
maxText: _,
|
|
3509
3513
|
disabled: v = !1,
|
|
3510
|
-
marks:
|
|
3514
|
+
marks: y = Array.from(
|
|
3511
3515
|
{ length: l - r + 1 },
|
|
3512
|
-
(
|
|
3516
|
+
(T, A) => r + A
|
|
3513
3517
|
),
|
|
3514
3518
|
showMarksNumber: g = !0
|
|
3515
|
-
} = n, { t:
|
|
3519
|
+
} = n, { t: b } = $(), { control: k, trigger: w, clearErrors: x } = d || {};
|
|
3516
3520
|
re(u);
|
|
3517
|
-
const { errorColorForm: S } = xe((
|
|
3521
|
+
const { errorColorForm: S } = xe((T) => T), [B, N] = F(a);
|
|
3518
3522
|
return d ? /* @__PURE__ */ i(
|
|
3519
3523
|
ve,
|
|
3520
3524
|
{
|
|
@@ -3522,21 +3526,21 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3522
3526
|
control: k,
|
|
3523
3527
|
defaultValue: a,
|
|
3524
3528
|
rules: {
|
|
3525
|
-
required: u ? `${
|
|
3529
|
+
required: u ? `${b(t)} ${b("errorMessages.required")}` : !1
|
|
3526
3530
|
},
|
|
3527
|
-
render: ({ field:
|
|
3528
|
-
var
|
|
3531
|
+
render: ({ field: T, fieldState: A }) => {
|
|
3532
|
+
var H;
|
|
3529
3533
|
return /* @__PURE__ */ p(
|
|
3530
3534
|
"div",
|
|
3531
3535
|
{
|
|
3532
3536
|
className: I.rankingSliderContainer,
|
|
3533
3537
|
style: {
|
|
3534
|
-
gridTemplateColumns: `${t && h} ${
|
|
3538
|
+
gridTemplateColumns: `${t && h} ${f}`
|
|
3535
3539
|
},
|
|
3536
3540
|
children: [
|
|
3537
|
-
t && /* @__PURE__ */ i("p", { className: I.labelContainer, children:
|
|
3541
|
+
t && /* @__PURE__ */ i("p", { className: I.labelContainer, children: b(t) }),
|
|
3538
3542
|
/* @__PURE__ */ p("div", { className: I.inputContainer, children: [
|
|
3539
|
-
C && /* @__PURE__ */ i("div", { className: I.minLabel, children:
|
|
3543
|
+
C && /* @__PURE__ */ i("div", { className: I.minLabel, children: b(C) }),
|
|
3540
3544
|
/* @__PURE__ */ p("div", { children: [
|
|
3541
3545
|
/* @__PURE__ */ i(
|
|
3542
3546
|
Ze,
|
|
@@ -3544,16 +3548,16 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3544
3548
|
min: r,
|
|
3545
3549
|
max: l,
|
|
3546
3550
|
step: 1,
|
|
3547
|
-
value:
|
|
3548
|
-
onChange: (
|
|
3551
|
+
value: T.value ?? a,
|
|
3552
|
+
onChange: (L) => T.onChange(L),
|
|
3549
3553
|
marks: !0,
|
|
3550
3554
|
className: I.slider,
|
|
3551
3555
|
thumbClassName: I.thumb,
|
|
3552
|
-
renderThumb: (
|
|
3556
|
+
renderThumb: (L) => /* @__PURE__ */ i(
|
|
3553
3557
|
"div",
|
|
3554
3558
|
{
|
|
3555
|
-
...
|
|
3556
|
-
style: { ...
|
|
3559
|
+
...L,
|
|
3560
|
+
style: { ...L.style, backgroundColor: c }
|
|
3557
3561
|
}
|
|
3558
3562
|
),
|
|
3559
3563
|
trackClassName: I.track,
|
|
@@ -3561,14 +3565,14 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3561
3565
|
disabled: v
|
|
3562
3566
|
}
|
|
3563
3567
|
),
|
|
3564
|
-
|
|
3568
|
+
y && /* @__PURE__ */ i("div", { className: I.labels, children: y.map((L) => /* @__PURE__ */ i("span", { children: g && L }, L)) })
|
|
3565
3569
|
] }),
|
|
3566
|
-
_ && /* @__PURE__ */ i("div", { className: I.maxLabel, children:
|
|
3570
|
+
_ && /* @__PURE__ */ i("div", { className: I.maxLabel, children: b(_) })
|
|
3567
3571
|
] }),
|
|
3568
3572
|
/* @__PURE__ */ i(
|
|
3569
3573
|
we,
|
|
3570
3574
|
{
|
|
3571
|
-
errorMessage: (
|
|
3575
|
+
errorMessage: (H = A.error) == null ? void 0 : H.message,
|
|
3572
3576
|
errorColor: S || m
|
|
3573
3577
|
}
|
|
3574
3578
|
)
|
|
@@ -3581,11 +3585,11 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3581
3585
|
"div",
|
|
3582
3586
|
{
|
|
3583
3587
|
className: I.rankingSliderContainer,
|
|
3584
|
-
style: { gridTemplateColumns: `${t && h} ${
|
|
3588
|
+
style: { gridTemplateColumns: `${t && h} ${f}` },
|
|
3585
3589
|
children: [
|
|
3586
|
-
t && /* @__PURE__ */ i("p", { className: I.labelContainer, children:
|
|
3590
|
+
t && /* @__PURE__ */ i("p", { className: I.labelContainer, children: b(t) }),
|
|
3587
3591
|
/* @__PURE__ */ p("div", { className: I.inputContainer, children: [
|
|
3588
|
-
C && /* @__PURE__ */ i("div", { className: I.minLabel, children:
|
|
3592
|
+
C && /* @__PURE__ */ i("div", { className: I.minLabel, children: b(C) }),
|
|
3589
3593
|
/* @__PURE__ */ p("div", { children: [
|
|
3590
3594
|
/* @__PURE__ */ i(
|
|
3591
3595
|
Ze,
|
|
@@ -3593,18 +3597,18 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3593
3597
|
min: r,
|
|
3594
3598
|
max: l,
|
|
3595
3599
|
step: 1,
|
|
3596
|
-
value:
|
|
3597
|
-
onChange: (
|
|
3598
|
-
N(
|
|
3600
|
+
value: B,
|
|
3601
|
+
onChange: (T) => {
|
|
3602
|
+
N(T), s && s(T);
|
|
3599
3603
|
},
|
|
3600
3604
|
marks: !0,
|
|
3601
3605
|
className: I.slider,
|
|
3602
3606
|
thumbClassName: I.thumb,
|
|
3603
|
-
renderThumb: (
|
|
3607
|
+
renderThumb: (T) => /* @__PURE__ */ i(
|
|
3604
3608
|
"div",
|
|
3605
3609
|
{
|
|
3606
|
-
|
|
3607
|
-
style: {
|
|
3610
|
+
...T,
|
|
3611
|
+
style: { ...T.style, backgroundColor: c }
|
|
3608
3612
|
}
|
|
3609
3613
|
),
|
|
3610
3614
|
trackClassName: I.track,
|
|
@@ -3612,9 +3616,9 @@ const ve = (n) => n.render($i(n)), Bi = "_textInputContainer_1o3iy_2", Ti = "_la
|
|
|
3612
3616
|
disabled: v
|
|
3613
3617
|
}
|
|
3614
3618
|
),
|
|
3615
|
-
|
|
3619
|
+
y && /* @__PURE__ */ i("div", { className: I.labels, children: y.map((T) => /* @__PURE__ */ i("span", { children: g && T }, T)) })
|
|
3616
3620
|
] }),
|
|
3617
|
-
_ && /* @__PURE__ */ i("div", { className: I.maxLabel, children:
|
|
3621
|
+
_ && /* @__PURE__ */ i("div", { className: I.maxLabel, children: b(_) })
|
|
3618
3622
|
] })
|
|
3619
3623
|
]
|
|
3620
3624
|
}
|
|
@@ -3748,7 +3752,7 @@ const ye = ({
|
|
|
3748
3752
|
activeCategory: s,
|
|
3749
3753
|
activeColor: o
|
|
3750
3754
|
}) => {
|
|
3751
|
-
const { t } =
|
|
3755
|
+
const { t } = $(), r = (l) => {
|
|
3752
3756
|
d(l);
|
|
3753
3757
|
};
|
|
3754
3758
|
return /* @__PURE__ */ i("div", { className: Te.categorySelector, children: n.map((l, a) => {
|
|
@@ -3785,36 +3789,36 @@ const ye = ({
|
|
|
3785
3789
|
defaultCategory: u = null,
|
|
3786
3790
|
categoryLabel: m = "Select Category",
|
|
3787
3791
|
activeCategory: h = null,
|
|
3788
|
-
activeCategoryColor:
|
|
3792
|
+
activeCategoryColor: f = "#b32f5d",
|
|
3789
3793
|
onSubmit: C = (_) => console.log("Form submitted with: ", _)
|
|
3790
3794
|
}) => {
|
|
3791
|
-
const { t: _ } =
|
|
3795
|
+
const { t: _ } = $(), { handleSubmit: v, control: y } = n;
|
|
3792
3796
|
V(() => {
|
|
3793
3797
|
r && xe.setState(() => ({ errorColor: r }));
|
|
3794
3798
|
}, [r]);
|
|
3795
3799
|
const g = me(() => d ? d.filter((N) => N.category).map((N) => {
|
|
3796
|
-
var
|
|
3800
|
+
var T;
|
|
3797
3801
|
return {
|
|
3798
3802
|
id: N.categoryId,
|
|
3799
3803
|
label: N.category,
|
|
3800
|
-
hasSubcategories: ((
|
|
3804
|
+
hasSubcategories: ((T = N.subcategories) == null ? void 0 : T.length) > 0
|
|
3801
3805
|
};
|
|
3802
|
-
}) : [], [d]),
|
|
3803
|
-
const
|
|
3804
|
-
return (
|
|
3806
|
+
}) : [], [d]), b = (N) => {
|
|
3807
|
+
const T = d == null ? void 0 : d.find((A) => A.categoryId === N);
|
|
3808
|
+
return (T == null ? void 0 : T.subcategories) || [];
|
|
3805
3809
|
}, [k, w] = F(
|
|
3806
3810
|
h || u || null
|
|
3807
3811
|
), [x, S] = F(null);
|
|
3808
3812
|
V(() => {
|
|
3809
3813
|
!k && g.length > 0 && w(g[0].id);
|
|
3810
3814
|
}, [g, k]), V(() => {
|
|
3811
|
-
const N =
|
|
3815
|
+
const N = b(k);
|
|
3812
3816
|
!x && (N == null ? void 0 : N.length) > 0 && S(N[0].id);
|
|
3813
3817
|
}, [k, x, d]);
|
|
3814
|
-
const
|
|
3818
|
+
const B = (N, T) => {
|
|
3815
3819
|
var A;
|
|
3816
3820
|
if (((A = N.subcategories) == null ? void 0 : A.length) > 0) {
|
|
3817
|
-
const
|
|
3821
|
+
const H = N.subcategories;
|
|
3818
3822
|
return /* @__PURE__ */ p("div", { children: [
|
|
3819
3823
|
/* @__PURE__ */ i(
|
|
3820
3824
|
"div",
|
|
@@ -3824,16 +3828,16 @@ const ye = ({
|
|
|
3824
3828
|
ht,
|
|
3825
3829
|
{
|
|
3826
3830
|
activeCategory: x,
|
|
3827
|
-
categories:
|
|
3828
|
-
onChange: (
|
|
3829
|
-
activeColor:
|
|
3831
|
+
categories: H,
|
|
3832
|
+
onChange: (L) => S(L),
|
|
3833
|
+
activeColor: f
|
|
3830
3834
|
}
|
|
3831
3835
|
)
|
|
3832
3836
|
},
|
|
3833
3837
|
N.categoryId
|
|
3834
3838
|
),
|
|
3835
|
-
|
|
3836
|
-
const Z = !x ||
|
|
3839
|
+
H.map((L, j) => {
|
|
3840
|
+
const Z = !x || L.id === x;
|
|
3837
3841
|
return s ? /* @__PURE__ */ i(
|
|
3838
3842
|
"div",
|
|
3839
3843
|
{
|
|
@@ -3841,18 +3845,18 @@ const ye = ({
|
|
|
3841
3845
|
display: Z ? "block" : "none",
|
|
3842
3846
|
width: "100%"
|
|
3843
3847
|
},
|
|
3844
|
-
children: /* @__PURE__ */ i(s, { title:
|
|
3848
|
+
children: /* @__PURE__ */ i(s, { title: L.label, children: /* @__PURE__ */ i(
|
|
3845
3849
|
ye,
|
|
3846
3850
|
{
|
|
3847
|
-
inputs:
|
|
3848
|
-
control:
|
|
3851
|
+
inputs: L.inputs,
|
|
3852
|
+
control: y,
|
|
3849
3853
|
inputContainerStyles: o,
|
|
3850
3854
|
errorColor: r,
|
|
3851
3855
|
reactHookFormInstance: n
|
|
3852
3856
|
}
|
|
3853
|
-
) },
|
|
3857
|
+
) }, L.id)
|
|
3854
3858
|
},
|
|
3855
|
-
`${
|
|
3859
|
+
`${L.id}${j}`
|
|
3856
3860
|
) : /* @__PURE__ */ p(
|
|
3857
3861
|
"div",
|
|
3858
3862
|
{
|
|
@@ -3861,12 +3865,12 @@ const ye = ({
|
|
|
3861
3865
|
display: Z ? "block" : "none"
|
|
3862
3866
|
},
|
|
3863
3867
|
children: [
|
|
3864
|
-
/* @__PURE__ */ i("h3", { style: { marginBottom: 15 }, children: _(
|
|
3868
|
+
/* @__PURE__ */ i("h3", { style: { marginBottom: 15 }, children: _(L.label) }),
|
|
3865
3869
|
/* @__PURE__ */ i(
|
|
3866
3870
|
ye,
|
|
3867
3871
|
{
|
|
3868
|
-
inputs:
|
|
3869
|
-
control:
|
|
3872
|
+
inputs: L.inputs,
|
|
3873
|
+
control: y,
|
|
3870
3874
|
inputContainerStyles: o,
|
|
3871
3875
|
errorColor: r,
|
|
3872
3876
|
reactHookFormInstance: n
|
|
@@ -3874,7 +3878,7 @@ const ye = ({
|
|
|
3874
3878
|
)
|
|
3875
3879
|
]
|
|
3876
3880
|
},
|
|
3877
|
-
`${
|
|
3881
|
+
`${L.id}${j}`
|
|
3878
3882
|
);
|
|
3879
3883
|
})
|
|
3880
3884
|
] });
|
|
@@ -3883,7 +3887,7 @@ const ye = ({
|
|
|
3883
3887
|
ye,
|
|
3884
3888
|
{
|
|
3885
3889
|
inputs: N.inputs,
|
|
3886
|
-
control:
|
|
3890
|
+
control: y,
|
|
3887
3891
|
inputContainerStyles: o,
|
|
3888
3892
|
errorColor: r,
|
|
3889
3893
|
reactHookFormInstance: n
|
|
@@ -3894,7 +3898,7 @@ const ye = ({
|
|
|
3894
3898
|
ye,
|
|
3895
3899
|
{
|
|
3896
3900
|
inputs: N.inputs,
|
|
3897
|
-
control:
|
|
3901
|
+
control: y,
|
|
3898
3902
|
inputContainerStyles: o,
|
|
3899
3903
|
errorColor: r,
|
|
3900
3904
|
reactHookFormInstance: n
|
|
@@ -3911,10 +3915,10 @@ const ye = ({
|
|
|
3911
3915
|
onChange: (N) => {
|
|
3912
3916
|
w(N), S(null);
|
|
3913
3917
|
},
|
|
3914
|
-
activeColor:
|
|
3918
|
+
activeColor: f
|
|
3915
3919
|
}
|
|
3916
3920
|
) }),
|
|
3917
|
-
/* @__PURE__ */ i("div", { className: Ce.formObjectContainer, children: d == null ? void 0 : d.map((N,
|
|
3921
|
+
/* @__PURE__ */ i("div", { className: Ce.formObjectContainer, children: d == null ? void 0 : d.map((N, T) => {
|
|
3918
3922
|
const A = N.categoryId === k;
|
|
3919
3923
|
return N.category && !A ? null : N.category && A ? /* @__PURE__ */ i(
|
|
3920
3924
|
"div",
|
|
@@ -3923,14 +3927,14 @@ const ye = ({
|
|
|
3923
3927
|
// visibility: section.categoryId ? "visible" : "hidden",
|
|
3924
3928
|
width: "100%"
|
|
3925
3929
|
},
|
|
3926
|
-
children:
|
|
3930
|
+
children: B(N)
|
|
3927
3931
|
},
|
|
3928
3932
|
N.categoryId
|
|
3929
3933
|
) : /* @__PURE__ */ i(
|
|
3930
3934
|
ye,
|
|
3931
3935
|
{
|
|
3932
3936
|
inputs: N.inputs,
|
|
3933
|
-
control:
|
|
3937
|
+
control: y,
|
|
3934
3938
|
inputContainerStyles: o,
|
|
3935
3939
|
errorColor: r,
|
|
3936
3940
|
reactHookFormInstance: n
|
|
@@ -4057,7 +4061,7 @@ const $s = "_buttonsContainer_1c7dw_2", Bs = "_button_1c7dw_2", Ts = "_active_1c
|
|
|
4057
4061
|
}, Ls = ({
|
|
4058
4062
|
buttons: n = []
|
|
4059
4063
|
}) => {
|
|
4060
|
-
const { t: d } =
|
|
4064
|
+
const { t: d } = $();
|
|
4061
4065
|
return /* @__PURE__ */ i("div", { className: `${Le.buttonsContainer}`, children: n.map((s, o) => {
|
|
4062
4066
|
const {
|
|
4063
4067
|
isActive: t,
|
|
@@ -4101,9 +4105,9 @@ const Ms = "_switchContainer_194wl_2", Ds = "_labelRight_194wl_9", Vs = "_labelL
|
|
|
4101
4105
|
colorOn: c = "#5A514D",
|
|
4102
4106
|
disabled: u = !1,
|
|
4103
4107
|
width: m = 240
|
|
4104
|
-
} = n, { t: h } =
|
|
4108
|
+
} = n, { t: h } = $(), { control: f } = d || {}, [C, _] = F(a), v = (g) => {
|
|
4105
4109
|
_(g), s && s(g);
|
|
4106
|
-
},
|
|
4110
|
+
}, y = (g, b) => /* @__PURE__ */ p("div", { className: ue.switchContainer, style: { width: `${m}px` }, children: [
|
|
4107
4111
|
r && /* @__PURE__ */ i(
|
|
4108
4112
|
"span",
|
|
4109
4113
|
{
|
|
@@ -4118,7 +4122,7 @@ const Ms = "_switchContainer_194wl_2", Ds = "_labelRight_194wl_9", Vs = "_labelL
|
|
|
4118
4122
|
{
|
|
4119
4123
|
type: "checkbox",
|
|
4120
4124
|
checked: !!g,
|
|
4121
|
-
onChange: () =>
|
|
4125
|
+
onChange: () => b(!g),
|
|
4122
4126
|
disabled: u
|
|
4123
4127
|
}
|
|
4124
4128
|
),
|
|
@@ -4138,11 +4142,11 @@ const Ms = "_switchContainer_194wl_2", Ds = "_labelRight_194wl_9", Vs = "_labelL
|
|
|
4138
4142
|
ve,
|
|
4139
4143
|
{
|
|
4140
4144
|
name: t,
|
|
4141
|
-
control:
|
|
4145
|
+
control: f,
|
|
4142
4146
|
defaultValue: a,
|
|
4143
|
-
render: ({ field: g }) =>
|
|
4147
|
+
render: ({ field: g }) => y(g.value, g.onChange)
|
|
4144
4148
|
}
|
|
4145
|
-
) :
|
|
4149
|
+
) : y(C, v);
|
|
4146
4150
|
};
|
|
4147
4151
|
Is.propTypes = {
|
|
4148
4152
|
input: e.shape({
|