@tmf_ciclica/ciclicastorybook 1.1.98 → 1.1.100

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.es.js CHANGED
@@ -7,8 +7,8 @@ import { useTranslation as k, Trans as Ae } from "react-i18next";
7
7
  import { motion as Ie } from "framer-motion";
8
8
  import { create as vt } from "zustand";
9
9
  import * as Pe from "d3";
10
- import xt from "mapbox-gl";
11
- import { useSelector as wt, useDispatch as Nt } from "react-redux";
10
+ import wt from "mapbox-gl";
11
+ import { useSelector as xt, useDispatch as Nt } from "react-redux";
12
12
  import kt, { Source as Bt, Layer as St, NavigationControl as Dt, Popup as Mt } from "react-map-gl/mapbox";
13
13
  import ye from "maplibre-gl";
14
14
  import { Protocol as $t } from "pmtiles";
@@ -44,14 +44,14 @@ const jt = "_ambitSelector_mcunf_2", zt = "_header_mcunf_13", Zt = "_nameDateCon
44
44
  fontColor: l,
45
45
  moreInfo: c
46
46
  }) => {
47
- const { nom: u, created_at: m, id: h, isBeingProcessed: _ } = n;
47
+ const { nom: u, created_at: m, id: g, isBeingProcessed: y } = n;
48
48
  return /* @__PURE__ */ p(
49
49
  "div",
50
50
  {
51
51
  className: oe.ambitItem,
52
52
  style: { borderBottom: `1px solid ${l}` },
53
53
  children: [
54
- /* @__PURE__ */ p("div", { className: oe.ambitNameDate, onClick: () => t(h), children: [
54
+ /* @__PURE__ */ p("div", { className: oe.ambitNameDate, onClick: () => t(g), children: [
55
55
  /* @__PURE__ */ p("div", { className: oe.ambitName, children: [
56
56
  /* @__PURE__ */ s(
57
57
  "img",
@@ -65,10 +65,10 @@ const jt = "_ambitSelector_mcunf_2", zt = "_header_mcunf_13", Zt = "_nameDateCon
65
65
  /* @__PURE__ */ s("div", { className: oe.ambitDate, children: m ? new Date(m).toLocaleDateString() : "" })
66
66
  ] }),
67
67
  /* @__PURE__ */ p("div", { className: oe.ambitButtons, children: [
68
- _ && /* @__PURE__ */ s("img", { src: o2 }),
69
- /* @__PURE__ */ s("button", { onClick: () => o(h), disabled: n.is_default, children: /* @__PURE__ */ s("img", { src: i2 }) }),
70
- /* @__PURE__ */ s("button", { onClick: () => d(h), children: /* @__PURE__ */ s("img", { src: n2 }) }),
71
- /* @__PURE__ */ s("button", { onClick: () => i(h), disabled: n.is_default, children: /* @__PURE__ */ s("img", { src: t2 }) })
68
+ y && /* @__PURE__ */ s("img", { src: o2 }),
69
+ /* @__PURE__ */ s("button", { onClick: () => o(g), disabled: n.is_default, children: /* @__PURE__ */ s("img", { src: i2 }) }),
70
+ /* @__PURE__ */ s("button", { onClick: () => d(g), children: /* @__PURE__ */ s("img", { src: n2 }) }),
71
+ /* @__PURE__ */ s("button", { onClick: () => i(g), disabled: n.is_default, children: /* @__PURE__ */ s("img", { src: t2 }) })
72
72
  ] })
73
73
  ]
74
74
  }
@@ -127,19 +127,19 @@ const je = "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: m = (g) => console.log(`Copy ambit: ${g}`),
131
- onCLickDelete: h = (g) => console.log(`Delete ambit: ${g}`),
132
- onClickFilters: _ = (g) => console.log(`Filters clicked: ${g}`),
133
- onClickAmbit: f = (g) => console.log(`OnCLickAmbit: ${g}`)
130
+ onClickCopy: m = (C) => console.log(`Copy ambit: ${C}`),
131
+ onCLickDelete: g = (C) => console.log(`Delete ambit: ${C}`),
132
+ onClickFilters: y = (C) => console.log(`Filters clicked: ${C}`),
133
+ onClickAmbit: b = (C) => console.log(`OnCLickAmbit: ${C}`)
134
134
  }) => {
135
- const { t: g } = k(), [y, C] = $(n);
135
+ const { t: C } = k(), [f, h] = $(n);
136
136
  L(() => {
137
- n && C(n);
137
+ n && h(n);
138
138
  }, [n]);
139
- const b = (x) => {
140
- if (y && y.length > 0) {
141
- let w = [...y];
142
- w.sort((v, N) => v[x].localeCompare(N[x])), C(w);
139
+ const _ = (v) => {
140
+ if (f && f.length > 0) {
141
+ let x = [...f];
142
+ x.sort((w, N) => w[v].localeCompare(N[v])), h(x);
143
143
  }
144
144
  };
145
145
  return /* @__PURE__ */ p(
@@ -155,12 +155,12 @@ const je = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
155
155
  style: { borderBottom: `1px solid ${i}` },
156
156
  children: [
157
157
  /* @__PURE__ */ p("div", { className: z.nameDateContainer, children: [
158
- /* @__PURE__ */ s("div", { className: z.ambitName, children: /* @__PURE__ */ p("button", { onClick: () => b("name"), children: [
159
- /* @__PURE__ */ s("span", { children: g(t) }),
158
+ /* @__PURE__ */ s("div", { className: z.ambitName, children: /* @__PURE__ */ p("button", { onClick: () => _("name"), children: [
159
+ /* @__PURE__ */ s("span", { children: C(t) }),
160
160
  /* @__PURE__ */ s("img", { src: je })
161
161
  ] }) }),
162
- /* @__PURE__ */ s("div", { className: z.ambitDate, children: /* @__PURE__ */ p("button", { onClick: () => b("date"), children: [
163
- /* @__PURE__ */ s("span", { children: g(a) }),
162
+ /* @__PURE__ */ s("div", { className: z.ambitDate, children: /* @__PURE__ */ p("button", { onClick: () => _("date"), children: [
163
+ /* @__PURE__ */ s("span", { children: C(a) }),
164
164
  /* @__PURE__ */ s("img", { src: je })
165
165
  ] }) })
166
166
  ] }),
@@ -168,19 +168,19 @@ const je = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
168
168
  ]
169
169
  }
170
170
  ),
171
- /* @__PURE__ */ s("div", { className: z.ambitListContainer, children: y && y.length > 0 && y.map((x) => /* @__PURE__ */ s(
171
+ /* @__PURE__ */ s("div", { className: z.ambitListContainer, children: f && f.length > 0 && f.map((v) => /* @__PURE__ */ s(
172
172
  tt,
173
173
  {
174
- isActive: d == x.id,
175
- ambit: x,
174
+ isActive: d == v.id,
175
+ ambit: v,
176
176
  fontColor: i,
177
177
  activeColor: o,
178
178
  onClickCopy: m,
179
- onClickDelete: h,
180
- onClickFilters: _,
181
- onClickAmbit: f
179
+ onClickDelete: g,
180
+ onClickFilters: y,
181
+ onClickAmbit: b
182
182
  },
183
- `ambitKey${x.id}`
183
+ `ambitKey${v.id}`
184
184
  )) }),
185
185
  /* @__PURE__ */ s("div", { className: z.newAmbitButtonContainer, children: /* @__PURE__ */ s(
186
186
  fe,
@@ -188,7 +188,7 @@ const je = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
188
188
  style: { ...l },
189
189
  onClick: u,
190
190
  borderColor: "grey",
191
- children: g(r)
191
+ children: C(r)
192
192
  }
193
193
  ) })
194
194
  ]
@@ -256,25 +256,25 @@ const v2 = ({
256
256
  const {
257
257
  icon: u,
258
258
  activeIcon: m,
259
- isActive: h,
260
- name: _,
261
- onClick: f
262
- } = l, g = /* @__PURE__ */ p(Me, { children: [
263
- i && o === "left" && /* @__PURE__ */ s("span", { className: K.buttonName, children: r(_) }),
264
- /* @__PURE__ */ s("img", { src: h ? m : u, alt: r(_) }),
265
- i && o === "right" && /* @__PURE__ */ s("span", { className: K.buttonName, children: r(_) })
259
+ isActive: g,
260
+ name: y,
261
+ onClick: b
262
+ } = l, C = /* @__PURE__ */ p(Me, { children: [
263
+ i && o === "left" && /* @__PURE__ */ s("span", { className: K.buttonName, children: r(y) }),
264
+ /* @__PURE__ */ s("img", { src: g ? m : u, alt: r(y) }),
265
+ i && o === "right" && /* @__PURE__ */ s("span", { className: K.buttonName, children: r(y) })
266
266
  ] });
267
267
  return /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
268
268
  /* @__PURE__ */ s(
269
269
  "button",
270
270
  {
271
- onClick: f,
271
+ onClick: b,
272
272
  className: `${K.button}
273
- ${h && K.active}`,
274
- children: g
273
+ ${g && K.active}`,
274
+ children: C
275
275
  }
276
276
  ),
277
- t && /* @__PURE__ */ s(Y, { text: _, position: a })
277
+ t && /* @__PURE__ */ s(Y, { text: y, position: a })
278
278
  ] }, c);
279
279
  })
280
280
  }
@@ -297,9 +297,9 @@ v2.propTypes = {
297
297
  useTooltip: e.bool,
298
298
  tooltipPosition: e.oneOf(["top", "bottom", "left", "right"])
299
299
  };
300
- const x2 = "_indicatorsCategory_1cu33_2", w2 = "_title_1cu33_5", _e = {
301
- indicatorsCategory: x2,
302
- title: w2
300
+ const w2 = "_indicatorsCategory_1cu33_2", x2 = "_title_1cu33_5", _e = {
301
+ indicatorsCategory: w2,
302
+ title: x2
303
303
  }, Q = ({
304
304
  isOpen: n,
305
305
  onClick: d,
@@ -373,7 +373,7 @@ const mi = () => /* @__PURE__ */ s("div", { children: "EditAmbit" }), N2 = "data
373
373
  const { t: r } = k(), { tematicalFiltersSelected: l } = T((u) => u), c = (u) => {
374
374
  T.setState((m) => ({
375
375
  tematicalFiltersSelected: m.tematicalFiltersSelected.filter(
376
- (h) => h.code !== u
376
+ (g) => g.code !== u
377
377
  )
378
378
  }));
379
379
  };
@@ -484,7 +484,7 @@ function M2(n, d) {
484
484
  function ve(n) {
485
485
  return n && n.stopPropagation && n.stopPropagation(), n && n.preventDefault && n.preventDefault(), !1;
486
486
  }
487
- function xe(n) {
487
+ function we(n) {
488
488
  return n == null ? [] : Array.isArray(n) ? n.slice() : [n];
489
489
  }
490
490
  function pe(n) {
@@ -526,8 +526,8 @@ let Fe = function(n) {
526
526
  t.setState({ pending: !0 });
527
527
  const c = t.getTouchPosition(l);
528
528
  if (t.isScrolling === void 0) {
529
- const h = c[0] - t.startPosition[0], _ = c[1] - t.startPosition[1];
530
- t.isScrolling = Math.abs(_) > Math.abs(h);
529
+ const g = c[0] - t.startPosition[0], y = c[1] - t.startPosition[1];
530
+ t.isScrolling = Math.abs(y) > Math.abs(g);
531
531
  }
532
532
  if (t.isScrolling) return void t.setState({ index: -1 });
533
533
  const u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
@@ -593,16 +593,16 @@ let Fe = function(n) {
593
593
  }, 0);
594
594
  t.pendingResizeTimeouts.push(l);
595
595
  }, t.renderThumb = (l, c) => {
596
- const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), m = { ref: (_) => {
597
- t["thumb" + c] = _;
598
- }, 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 }, h = { index: c, value: pe(t.state.value), valueNow: t.state.value[c] };
599
- return t.props.ariaValuetext && (m["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(h)), t.props.renderThumb(m, h);
596
+ const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), m = { ref: (y) => {
597
+ t["thumb" + c] = y;
598
+ }, 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: pe(t.state.value), valueNow: t.state.value[c] };
599
+ return t.props.ariaValuetext && (m["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(g)), t.props.renderThumb(m, g);
600
600
  }, t.renderTrack = (l, c, u) => {
601
- const m = { key: t.props.trackClassName + "-" + l, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + l, style: t.buildTrackStyle(c, t.state.upperBound - u) }, h = { index: l, value: pe(t.state.value) };
602
- return t.props.renderTrack(m, h);
601
+ const m = { 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: pe(t.state.value) };
602
+ return t.props.renderTrack(m, g);
603
603
  };
604
- let a = xe(o.value);
605
- a.length || (a = xe(o.defaultValue)), t.pendingResizeTimeouts = [];
604
+ let a = we(o.value);
605
+ a.length || (a = we(o.defaultValue)), t.pendingResizeTimeouts = [];
606
606
  const r = [];
607
607
  for (let l = 0; l < a.length; l += 1) a[l] = H(a[l], o), r.push(l);
608
608
  return t.resizeObserver = null, t.resizeElementRef = B.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: a, zIndices: r }, t;
@@ -612,7 +612,7 @@ let Fe = function(n) {
612
612
  return i.componentDidMount = function() {
613
613
  typeof window < "u" && (this.resizeObserver = new ResizeObserver(this.handleResize), this.resizeObserver.observe(this.resizeElementRef.current), this.resize());
614
614
  }, d.getDerivedStateFromProps = function(o, t) {
615
- const a = xe(o.value);
615
+ const a = we(o.value);
616
616
  return a.length ? t.pending ? null : { value: a.map((r) => H(r, o)) } : null;
617
617
  }, i.componentDidUpdate = function() {
618
618
  this.state.upperBound === 0 && this.resize();
@@ -654,8 +654,8 @@ let Fe = function(n) {
654
654
  }, i.resize = function() {
655
655
  const { slider: o, thumb0: t } = this;
656
656
  if (!o || !t) return;
657
- const a = this.sizeKey(), r = o.getBoundingClientRect(), l = o[a], c = r[this.posMaxKey()], u = r[this.posMinKey()], m = t.getBoundingClientRect()[a.replace("client", "").toLowerCase()], h = l - m, _ = Math.abs(c - u);
658
- this.state.upperBound === h && this.state.sliderLength === _ && this.state.thumbSize === m || this.setState({ upperBound: h, sliderLength: _, thumbSize: m });
657
+ const a = this.sizeKey(), r = o.getBoundingClientRect(), l = o[a], c = r[this.posMaxKey()], u = r[this.posMinKey()], m = t.getBoundingClientRect()[a.replace("client", "").toLowerCase()], g = l - m, y = Math.abs(c - u);
658
+ this.state.upperBound === g && this.state.sliderLength === y && this.state.thumbSize === m || this.setState({ upperBound: g, sliderLength: y, thumbSize: m });
659
659
  }, i.calcOffset = function(o) {
660
660
  const t = this.props.max - this.props.min;
661
661
  return t === 0 ? 0 : (o - this.props.min) / t * this.state.upperBound;
@@ -694,28 +694,28 @@ let Fe = function(n) {
694
694
  const t = this.state.value.slice(), { index: a } = this.state, { length: r } = t, l = t[a];
695
695
  if (o === l) return;
696
696
  this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
697
- const { pearling: c, max: u, min: m, minDistance: h } = this.props;
697
+ const { pearling: c, max: u, min: m, minDistance: g } = this.props;
698
698
  if (!c) {
699
699
  if (a > 0) {
700
- const _ = t[a - 1];
701
- o < _ + h && (o = _ + h);
700
+ const y = t[a - 1];
701
+ o < y + g && (o = y + g);
702
702
  }
703
703
  if (a < r - 1) {
704
- const _ = t[a + 1];
705
- o > _ - h && (o = _ - h);
704
+ const y = t[a + 1];
705
+ o > y - g && (o = y - g);
706
706
  }
707
707
  }
708
- t[a] = o, c && r > 1 && (o > l ? (this.pushSucceeding(t, h, a), function(_, f, g, y) {
709
- for (let C = 0; C < _; C += 1) {
710
- const b = y - C * g;
711
- f[_ - 1 - C] > b && (f[_ - 1 - C] = b);
708
+ t[a] = o, c && r > 1 && (o > l ? (this.pushSucceeding(t, g, a), function(y, b, C, f) {
709
+ for (let h = 0; h < y; h += 1) {
710
+ const _ = f - h * C;
711
+ b[y - 1 - h] > _ && (b[y - 1 - h] = _);
712
712
  }
713
- }(r, t, h, u)) : o < l && (this.pushPreceding(t, h, a), function(_, f, g, y) {
714
- for (let C = 0; C < _; C += 1) {
715
- const b = y + C * g;
716
- f[C] < b && (f[C] = b);
713
+ }(r, t, g, u)) : o < l && (this.pushPreceding(t, g, a), function(y, b, C, f) {
714
+ for (let h = 0; h < y; h += 1) {
715
+ const _ = f + h * C;
716
+ b[h] < _ && (b[h] = _);
717
717
  }
718
- }(r, t, h, m))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
718
+ }(r, t, g, m))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
719
719
  }, i.pushSucceeding = function(o, t, a) {
720
720
  let r, l;
721
721
  for (r = a, l = o[r] + t; o[r + 1] !== null && l > o[r + 1]; r += 1, l = o[r] + t) o[r + 1] = Le(l, this.props);
@@ -788,8 +788,8 @@ const L2 = "_container_15vgv_2", F2 = "_unitLabel_15vgv_9", T2 = "_slider_15vgv_
788
788
  fontColor: r = "#605B56",
789
789
  defaultValue: l
790
790
  }) => {
791
- const { t: c } = k(), [u, m] = $([n, d]), h = (_) => {
792
- m(_), o == null || o({ min: _[0], max: _[1] });
791
+ const { t: c } = k(), [u, m] = $([n, d]), g = (y) => {
792
+ m(y), o == null || o({ min: y[0], max: y[1] });
793
793
  };
794
794
  return L(() => {
795
795
  l || m([n, d]);
@@ -810,7 +810,7 @@ const L2 = "_container_15vgv_2", F2 = "_unitLabel_15vgv_9", T2 = "_slider_15vgv_
810
810
  max: d,
811
811
  step: i,
812
812
  value: u,
813
- onAfterChange: h,
813
+ onAfterChange: g,
814
814
  withTracks: !0,
815
815
  pearling: !0,
816
816
  minDistance: 0.1
@@ -854,20 +854,20 @@ const O2 = "_tematicalFiltersInputContainer_1vm1r_2", R2 = "_inputTypeContainer_
854
854
  maxValue: c,
855
855
  unit: u,
856
856
  step: m
857
- } = n || {}, h = le(
857
+ } = n || {}, g = le(
858
858
  () => t == "cat" || i == "cat",
859
859
  [i, t]
860
- ), _ = le(
860
+ ), y = le(
861
861
  () => t == "abs" || i == "abs",
862
862
  [i, t]
863
863
  ), {
864
- tematicalFiltersSelected: f,
865
- selectedIndicator: g,
866
- fontColor: y,
867
- inputsColor: C
868
- } = T((w) => w), b = (w) => {
869
- if (w) {
870
- const { min: v, max: N, valueClicked: S, allValues: D } = w || {}, { code: j, type: de } = n || {}, ue = _ ? "abs" : h ? "cat" : "both";
864
+ tematicalFiltersSelected: b,
865
+ selectedIndicator: C,
866
+ fontColor: f,
867
+ inputsColor: h
868
+ } = T((x) => x), _ = (x) => {
869
+ if (x) {
870
+ const { min: w, max: N, valueClicked: S, allValues: D } = x || {}, { code: j, type: de } = n || {}, ue = y ? "abs" : g ? "cat" : "both";
871
871
  let R = j[0];
872
872
  de == "both" && (R = ue == "cat" ? j[1] : j[0]), ue == "cat" ? T.setState((q) => {
873
873
  let E = q.tematicalFiltersSelected.find(
@@ -890,7 +890,7 @@ const O2 = "_tematicalFiltersInputContainer_1vm1r_2", R2 = "_inputTypeContainer_
890
890
  let V = D.map((I, yt) => yt);
891
891
  return {
892
892
  tematicalFiltersSelected: [
893
- ...f,
893
+ ...b,
894
894
  {
895
895
  type: "cat",
896
896
  code: R,
@@ -904,7 +904,7 @@ const O2 = "_tematicalFiltersInputContainer_1vm1r_2", R2 = "_inputTypeContainer_
904
904
  let E = q.tematicalFiltersSelected.find(
905
905
  (V) => V.code === R
906
906
  );
907
- if (v == n.minValue && N == n.maxValue)
907
+ if (w == n.minValue && N == n.maxValue)
908
908
  return {
909
909
  tematicalFiltersSelected: q.tematicalFiltersSelected.filter(
910
910
  (V) => V.code !== R
@@ -912,7 +912,7 @@ const O2 = "_tematicalFiltersInputContainer_1vm1r_2", R2 = "_inputTypeContainer_
912
912
  };
913
913
  if (E) {
914
914
  let V = { ...E };
915
- return V.min = v, V.max = N, {
915
+ return V.min = w, V.max = N, {
916
916
  tematicalFiltersSelected: q.tematicalFiltersSelected.map(
917
917
  (I) => I.code === R ? V : I
918
918
  )
@@ -920,40 +920,40 @@ const O2 = "_tematicalFiltersInputContainer_1vm1r_2", R2 = "_inputTypeContainer_
920
920
  } else
921
921
  return {
922
922
  tematicalFiltersSelected: [
923
- ...f,
924
- { type: "abs", code: R, min: v, max: N, name: n.name }
923
+ ...b,
924
+ { type: "abs", code: R, min: w, max: N, name: n.name }
925
925
  ]
926
926
  };
927
927
  });
928
928
  }
929
- }, x = le(() => {
930
- const w = {};
931
- if ((f == null ? void 0 : f.length) > 0)
932
- for (const v of f)
933
- v.type === "cat" ? w[v.code] = new Set(v.values) : w[v.code] = [v.min, v.max];
934
- return console.log("mapfilterSelected", w), w;
935
- }, [f]);
929
+ }, v = le(() => {
930
+ const x = {};
931
+ if ((b == null ? void 0 : b.length) > 0)
932
+ for (const w of b)
933
+ w.type === "cat" ? x[w.code] = new Set(w.values) : x[w.code] = [w.min, w.max];
934
+ return console.log("mapfilterSelected", x), x;
935
+ }, [b]);
936
936
  return /* @__PURE__ */ s("div", { className: he.tematicalFiltersInputContainer, children: /* @__PURE__ */ p(
937
937
  Q,
938
938
  {
939
939
  titleFontStyles: { fontSize: 16, fontWeight: 400 },
940
940
  title: a,
941
- isOpen: g == `id${a}`,
941
+ isOpen: C == `id${a}`,
942
942
  onClick: () => T.setState(() => ({
943
- selectedIndicator: g == `id${a}` ? "" : `id${a}`
943
+ selectedIndicator: C == `id${a}` ? "" : `id${a}`
944
944
  })),
945
945
  showBottomBar: !1,
946
946
  height: 42,
947
947
  titleMarginChildren: 14,
948
948
  className: "tematicalFiltersInputContainer",
949
- color: y,
949
+ color: f,
950
950
  activeColor: d,
951
951
  children: [
952
952
  t == "both" && /* @__PURE__ */ p(
953
953
  "div",
954
954
  {
955
955
  className: he.inputTypeContainer,
956
- style: { color: y },
956
+ style: { color: f },
957
957
  children: [
958
958
  /* @__PURE__ */ p("label", { children: [
959
959
  /* @__PURE__ */ s(
@@ -967,8 +967,8 @@ const O2 = "_tematicalFiltersInputContainer_1vm1r_2", R2 = "_inputTypeContainer_
967
967
  },
968
968
  style: {
969
969
  marginRight: 4,
970
- backgroundColor: i == "abs" ? C : "white",
971
- border: `1.5px solid ${i == "abs" ? C : y}`
970
+ backgroundColor: i == "abs" ? h : "white",
971
+ border: `1.5px solid ${i == "abs" ? h : f}`
972
972
  }
973
973
  }
974
974
  ),
@@ -986,8 +986,8 @@ const O2 = "_tematicalFiltersInputContainer_1vm1r_2", R2 = "_inputTypeContainer_
986
986
  },
987
987
  style: {
988
988
  marginRight: 4,
989
- backgroundColor: i == "cat" ? C : "white",
990
- border: `1.5px solid ${i == "cat" ? C : y}`
989
+ backgroundColor: i == "cat" ? h : "white",
990
+ border: `1.5px solid ${i == "cat" ? h : f}`
991
991
  }
992
992
  }
993
993
  ),
@@ -996,26 +996,26 @@ const O2 = "_tematicalFiltersInputContainer_1vm1r_2", R2 = "_inputTypeContainer_
996
996
  ]
997
997
  }
998
998
  ),
999
- h && /* @__PURE__ */ s("div", { className: he.checkboxContainer, children: r.map((w, v) => {
999
+ g && /* @__PURE__ */ s("div", { className: he.checkboxContainer, children: r.map((x, w) => {
1000
1000
  var N;
1001
1001
  return /* @__PURE__ */ s(
1002
1002
  ot,
1003
1003
  {
1004
- onClick: () => b({ valueClicked: v, allValues: r }),
1005
- indicator: w,
1006
- value: ((N = x[n.code[t == "both" ? 1 : 0]]) == null ? void 0 : N.has(v)) || !x[n.code[t == "both" ? 1 : 0]]
1004
+ onClick: () => _({ valueClicked: w, allValues: r }),
1005
+ indicator: x,
1006
+ value: ((N = v[n.code[t == "both" ? 1 : 0]]) == null ? void 0 : N.has(w)) || !v[n.code[t == "both" ? 1 : 0]]
1007
1007
  },
1008
- `checkbox-${v}`
1008
+ `checkbox-${w}`
1009
1009
  );
1010
1010
  }) }),
1011
- _ && /* @__PURE__ */ s("div", { className: he.absoluteSliderContainer, children: /* @__PURE__ */ s(
1011
+ y && /* @__PURE__ */ s("div", { className: he.absoluteSliderContainer, children: /* @__PURE__ */ s(
1012
1012
  st,
1013
1013
  {
1014
- onChange: b,
1014
+ onChange: _,
1015
1015
  min: l,
1016
1016
  max: c,
1017
1017
  unit: u,
1018
- defaultValue: x[n.code[0]] ? x[n.code[0]] : "",
1018
+ defaultValue: v[n.code[0]] ? v[n.code[0]] : "",
1019
1019
  step: m
1020
1020
  }
1021
1021
  ) })
@@ -1196,56 +1196,56 @@ const P2 = "_FiltersAmbitContainer_1g9xx_2", j2 = "_FiltersAmbitHeader_1g9xx_7",
1196
1196
  saveAmbit: c,
1197
1197
  namePlaceholder: u,
1198
1198
  descPlaceholder: m,
1199
- filtersTypes: h = ["geographical", "tematical"],
1200
- nameRequiredText: _,
1201
- onlyFilters: f = !1
1199
+ filtersTypes: g = ["geographical", "tematical"],
1200
+ nameRequiredText: y,
1201
+ onlyFilters: b = !1
1202
1202
  //usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
1203
1203
  }) => {
1204
- const { t: g } = k(), { tematicalFiltersSelected: y } = T((D) => D), [C, b] = $(n || null), [x, w] = $(d || null), [v, N] = $(!1);
1204
+ const { t: C } = k(), { tematicalFiltersSelected: f } = T((D) => D), [h, _] = $(n || null), [v, x] = $(d || null), [w, N] = $(!1);
1205
1205
  L(() => {
1206
1206
  i && i.length > 0 && T.setState((D) => ({
1207
1207
  tematicalFiltersSelected: i
1208
1208
  }));
1209
1209
  }, [i]), L(() => {
1210
- console.log("filtersSelected changed: ", y), l(y);
1211
- }, [y]);
1210
+ console.log("filtersSelected changed: ", f), l(f);
1211
+ }, [f]);
1212
1212
  const S = () => {
1213
- C ? c({ name: C, description: x }) : N(!0);
1213
+ h ? c({ name: h, description: v }) : N(!0);
1214
1214
  };
1215
1215
  return /* @__PURE__ */ p("div", { className: J.FiltersAmbitContainer, children: [
1216
- !f && /* @__PURE__ */ p("div", { className: J.FiltersAmbitHeader, children: [
1216
+ !b && /* @__PURE__ */ p("div", { className: J.FiltersAmbitHeader, children: [
1217
1217
  /* @__PURE__ */ s("div", { className: J.FiltersAmbitTitle, children: /* @__PURE__ */ s(
1218
1218
  "input",
1219
1219
  {
1220
1220
  type: "text",
1221
1221
  onChange: (D) => {
1222
- N(!1), b(D.target.value);
1222
+ N(!1), _(D.target.value);
1223
1223
  },
1224
- value: C,
1225
- placeholder: g(u)
1224
+ value: h,
1225
+ placeholder: C(u)
1226
1226
  }
1227
1227
  ) }),
1228
1228
  /* @__PURE__ */ s("div", { className: J.FiltersAmbitDescription, children: /* @__PURE__ */ s("div", { className: J.FiltersAmbitDescriptionTitle, children: /* @__PURE__ */ s(
1229
1229
  "textarea",
1230
1230
  {
1231
- value: x,
1232
- onChange: (D) => w(D.target.value),
1233
- placeholder: g(m)
1231
+ value: v,
1232
+ onChange: (D) => x(D.target.value),
1233
+ placeholder: C(m)
1234
1234
  }
1235
1235
  ) }) })
1236
1236
  ] }),
1237
1237
  /* @__PURE__ */ s(
1238
1238
  nt,
1239
1239
  {
1240
- title: g("applied_filters"),
1240
+ title: C("applied_filters"),
1241
1241
  isOpen: !0,
1242
1242
  textColor: a || "#fff",
1243
1243
  backgroundColor: r || "#605B5680",
1244
1244
  activeColor: t
1245
1245
  }
1246
1246
  ),
1247
- h.includes("geographical") && /* @__PURE__ */ s(it, { activeColor: t }),
1248
- h.includes("tematical") && /* @__PURE__ */ s(
1247
+ g.includes("geographical") && /* @__PURE__ */ s(it, { activeColor: t }),
1248
+ g.includes("tematical") && /* @__PURE__ */ s(
1249
1249
  lt,
1250
1250
  {
1251
1251
  indicators: o,
@@ -1255,8 +1255,8 @@ const P2 = "_FiltersAmbitContainer_1g9xx_2", j2 = "_FiltersAmbitHeader_1g9xx_7",
1255
1255
  activeColor: t
1256
1256
  }
1257
1257
  ),
1258
- v && /* @__PURE__ */ s("div", { className: J.warning, children: g(_) }),
1259
- !f && /* @__PURE__ */ s("div", { className: "buttonContainer", children: /* @__PURE__ */ s(fe, { onClick: () => S(), children: g("save_ambit") }) })
1258
+ w && /* @__PURE__ */ s("div", { className: J.warning, children: C(y) }),
1259
+ !b && /* @__PURE__ */ s("div", { className: "buttonContainer", children: /* @__PURE__ */ s(fe, { onClick: () => S(), children: C("save_ambit") }) })
1260
1260
  ] });
1261
1261
  };
1262
1262
  U2.propTypes = {
@@ -1288,13 +1288,13 @@ const G2 = "_barChartContainer_d2f1z_2", W2 = {
1288
1288
  numberOfDivisions: c = 7,
1289
1289
  maxValue: u = null
1290
1290
  }) => {
1291
- const { t: m } = k(), { xScale: h, ticks: _, height: f } = le(() => {
1291
+ const { t: m } = k(), { xScale: g, ticks: y, height: b } = le(() => {
1292
1292
  if (n && n.length > 0) {
1293
- const g = (n == null ? void 0 : n.length) * (i + o) + a * 2, y = Pe.max(n, (x) => x.value) || 1, C = Pe.scaleLinear().domain([0, u || y]).range([0, d - l]), b = Array.from({ length: c + 1 }, (x, w) => u ? u / c * w : y / c * w);
1293
+ const C = (n == null ? void 0 : n.length) * (i + o) + a * 2, f = Pe.max(n, (v) => v.value) || 1, h = Pe.scaleLinear().domain([0, u || f]).range([0, d - l]), _ = Array.from({ length: c + 1 }, (v, x) => u ? u / c * x : f / c * x);
1294
1294
  return {
1295
- xScale: C,
1296
- ticks: b,
1297
- height: g,
1295
+ xScale: h,
1296
+ ticks: _,
1297
+ height: C,
1298
1298
  width: d,
1299
1299
  verticalPaddign: a,
1300
1300
  horizontalPaddign: r
@@ -1311,36 +1311,36 @@ const G2 = "_barChartContainer_d2f1z_2", W2 = {
1311
1311
  a,
1312
1312
  u
1313
1313
  ]);
1314
- return /* @__PURE__ */ s("div", { className: W2.barChartContainer, children: /* @__PURE__ */ s("svg", { width: d + r * 2, height: f, children: /* @__PURE__ */ p("g", { transform: `translate(0,${o})`, children: [
1315
- /* @__PURE__ */ s("g", { transform: `translate(${l + r}, 0)`, children: _.map((g, y) => {
1316
- const C = h(g);
1317
- return /* @__PURE__ */ p("g", { transform: `translate(${C}, 0)`, children: [
1314
+ return /* @__PURE__ */ s("div", { className: W2.barChartContainer, children: /* @__PURE__ */ s("svg", { width: d + r * 2, height: b, children: /* @__PURE__ */ p("g", { transform: `translate(0,${o})`, children: [
1315
+ /* @__PURE__ */ s("g", { transform: `translate(${l + r}, 0)`, children: y.map((C, f) => {
1316
+ const h = g(C);
1317
+ return /* @__PURE__ */ p("g", { transform: `translate(${h}, 0)`, children: [
1318
1318
  /* @__PURE__ */ s(
1319
1319
  "line",
1320
1320
  {
1321
1321
  y1: 0,
1322
- y2: f - o * 2,
1322
+ y2: b - o * 2,
1323
1323
  stroke: "#ccc"
1324
1324
  }
1325
1325
  ),
1326
1326
  /* @__PURE__ */ s(
1327
1327
  "text",
1328
1328
  {
1329
- y: f - o,
1329
+ y: b - o,
1330
1330
  textAnchor: "middle",
1331
1331
  fontSize: 10,
1332
1332
  fill: t,
1333
- children: parseInt(g)
1333
+ children: parseInt(C)
1334
1334
  }
1335
1335
  )
1336
- ] }, y);
1336
+ ] }, f);
1337
1337
  }) }),
1338
- n && n.length > 0 && (n == null ? void 0 : n.map((g, y) => {
1339
- const C = h(g.value), b = y * (i + o);
1338
+ n && n.length > 0 && (n == null ? void 0 : n.map((C, f) => {
1339
+ const h = g(C.value), _ = f * (i + o);
1340
1340
  return /* @__PURE__ */ p(
1341
1341
  "g",
1342
1342
  {
1343
- transform: `translate(${l + r}, ${b})`,
1343
+ transform: `translate(${l + r}, ${_})`,
1344
1344
  children: [
1345
1345
  /* @__PURE__ */ s(
1346
1346
  "text",
@@ -1349,21 +1349,21 @@ const G2 = "_barChartContainer_d2f1z_2", W2 = {
1349
1349
  y: i / 2 + 5,
1350
1350
  textAnchor: "end",
1351
1351
  fill: t,
1352
- children: m(g.title)
1352
+ children: m(C.title)
1353
1353
  }
1354
1354
  ),
1355
1355
  /* @__PURE__ */ s(
1356
1356
  "rect",
1357
1357
  {
1358
- width: C,
1358
+ width: h,
1359
1359
  height: i,
1360
- fill: g.color,
1360
+ fill: C.color,
1361
1361
  rx: 0
1362
1362
  }
1363
1363
  )
1364
1364
  ]
1365
1365
  },
1366
- y
1366
+ f
1367
1367
  );
1368
1368
  }))
1369
1369
  ] }) }) });
@@ -1441,7 +1441,7 @@ X2.propTypes = {
1441
1441
  numberOfDivisions: e.number,
1442
1442
  leftPadding: e.number
1443
1443
  };
1444
- const J2 = "_indicatorsCategory_1cu33_2", e0 = "_title_1cu33_5", t0 = "_list_1cu33_11", we = {
1444
+ const J2 = "_indicatorsCategory_1cu33_2", e0 = "_title_1cu33_5", t0 = "_list_1cu33_11", xe = {
1445
1445
  indicatorsCategory: J2,
1446
1446
  title: e0,
1447
1447
  list: t0
@@ -1467,15 +1467,15 @@ const J2 = "_indicatorsCategory_1cu33_2", e0 = "_title_1cu33_5", t0 = "_list_1cu
1467
1467
  multiple: l = !1,
1468
1468
  onChangeType: c
1469
1469
  }) => {
1470
- const { t: u } = k(), { name: m, type: h } = n, [_, f] = $(!1);
1470
+ const { t: u } = k(), { name: m, type: g } = n, [y, b] = $(!1);
1471
1471
  L(() => {
1472
- t && f(
1472
+ t && b(
1473
1473
  l ? t.some(
1474
- (C) => C.name == String(m)
1474
+ (h) => h.name == String(m)
1475
1475
  ) : t.name == m
1476
1476
  );
1477
1477
  }, [t]);
1478
- const g = () => /* @__PURE__ */ s("div", { className: F.switchExternalContainer, children: /* @__PURE__ */ s("div", { className: F.switchType, children: /* @__PURE__ */ p("div", { className: F.switchTypeOptions, children: [
1478
+ const C = () => /* @__PURE__ */ s("div", { className: F.switchExternalContainer, children: /* @__PURE__ */ s("div", { className: F.switchType, children: /* @__PURE__ */ p("div", { className: F.switchTypeOptions, children: [
1479
1479
  /* @__PURE__ */ p(
1480
1480
  "div",
1481
1481
  {
@@ -1534,7 +1534,7 @@ const J2 = "_indicatorsCategory_1cu33_2", e0 = "_title_1cu33_5", t0 = "_list_1cu
1534
1534
  ]
1535
1535
  }
1536
1536
  )
1537
- ] }) }) }), y = () => /* @__PURE__ */ s("div", { className: F.switchExternalContainer, children: /* @__PURE__ */ s("div", { className: F.switchType, children: /* @__PURE__ */ s("div", { className: F.switchTypeOptions, children: d.map((C, b) => /* @__PURE__ */ p(
1537
+ ] }) }) }), f = () => /* @__PURE__ */ s("div", { className: F.switchExternalContainer, children: /* @__PURE__ */ s("div", { className: F.switchType, children: /* @__PURE__ */ s("div", { className: F.switchTypeOptions, children: d.map((h, _) => /* @__PURE__ */ p(
1538
1538
  "div",
1539
1539
  {
1540
1540
  className: F.optionContainer,
@@ -1545,10 +1545,10 @@ const J2 = "_indicatorsCategory_1cu33_2", e0 = "_title_1cu33_5", t0 = "_list_1cu
1545
1545
  className: F.customRadious
1546
1546
  }
1547
1547
  ),
1548
- /* @__PURE__ */ s("h4", { children: u(C.unit) })
1548
+ /* @__PURE__ */ s("h4", { children: u(h.unit) })
1549
1549
  ]
1550
1550
  },
1551
- b
1551
+ _
1552
1552
  )) }) }) });
1553
1553
  return /* @__PURE__ */ p("div", { className: F.indicatorContainer, children: [
1554
1554
  /* @__PURE__ */ p(
@@ -1561,7 +1561,7 @@ const J2 = "_indicatorsCategory_1cu33_2", e0 = "_title_1cu33_5", t0 = "_list_1cu
1561
1561
  "div",
1562
1562
  {
1563
1563
  style: {
1564
- border: _ ? `1px solid ${i}` : `1px solid ${o}`
1564
+ border: y ? `1px solid ${i}` : `1px solid ${o}`
1565
1565
  },
1566
1566
  className: F.dot
1567
1567
  }
@@ -1570,15 +1570,15 @@ const J2 = "_indicatorsCategory_1cu33_2", e0 = "_title_1cu33_5", t0 = "_list_1cu
1570
1570
  "h4",
1571
1571
  {
1572
1572
  className: F.indicatorName,
1573
- style: { color: _ ? i : o },
1573
+ style: { color: y ? i : o },
1574
1574
  children: /* @__PURE__ */ s(Ae, { i18nKey: m, components: { sup: /* @__PURE__ */ s("sup", {}) }, shouldUnescape: !0 })
1575
1575
  }
1576
1576
  )
1577
1577
  ]
1578
1578
  }
1579
1579
  ),
1580
- (t == null ? void 0 : t.name) === m && h === "both" && /* @__PURE__ */ s("div", { children: g() }),
1581
- (t == null ? void 0 : t.name) === m && h === "twoUnits" && /* @__PURE__ */ s("div", { children: y() })
1580
+ (t == null ? void 0 : t.name) === m && g === "both" && /* @__PURE__ */ s("div", { children: C() }),
1581
+ (t == null ? void 0 : t.name) === m && g === "twoUnits" && /* @__PURE__ */ s("div", { children: f() })
1582
1582
  ] });
1583
1583
  };
1584
1584
  Re.propTypes = {
@@ -1608,42 +1608,42 @@ const p0 = "_indicatorsSubCategory_1dzsi_2", m0 = "_list_1dzsi_8", Ke = {
1608
1608
  onClickIndicator: c,
1609
1609
  multiple: u,
1610
1610
  activeIndicatorType: m,
1611
- onChangeType: h
1611
+ onChangeType: g
1612
1612
  }) => {
1613
- const { t: _ } = k(), [f, g] = $(!1);
1613
+ const { t: y } = k(), [b, C] = $(!1);
1614
1614
  return L(() => {
1615
- g(t == r);
1615
+ C(t == r);
1616
1616
  }, [t, r]), /* @__PURE__ */ p(
1617
1617
  Ie.div,
1618
1618
  {
1619
1619
  className: Ke.indicatorsSubCategory,
1620
1620
  initial: { height: "43px" },
1621
- animate: { height: f ? "auto" : "43px" },
1621
+ animate: { height: b ? "auto" : "43px" },
1622
1622
  transition: { duration: 0.4 },
1623
1623
  children: [
1624
- /* @__PURE__ */ s("button", { onClick: () => a(r), children: /* @__PURE__ */ p("h3", { style: { color: f ? o : i }, children: [
1625
- /* @__PURE__ */ s("span", { style: { color: f ? o : i }, children: f ? "-" : "+" }),
1624
+ /* @__PURE__ */ s("button", { onClick: () => a(r), children: /* @__PURE__ */ p("h3", { style: { color: b ? o : i }, children: [
1625
+ /* @__PURE__ */ s("span", { style: { color: b ? o : i }, children: b ? "-" : "+" }),
1626
1626
  /* @__PURE__ */ s(
1627
1627
  "span",
1628
1628
  {
1629
- style: { marginLeft: 12, color: f ? o : i },
1630
- children: _(n)
1629
+ style: { marginLeft: 12, color: b ? o : i },
1630
+ children: y(n)
1631
1631
  }
1632
1632
  )
1633
1633
  ] }) }),
1634
- d && /* @__PURE__ */ s("div", { className: Ke.list, children: d == null ? void 0 : d.map((y, C) => /* @__PURE__ */ s(
1634
+ d && /* @__PURE__ */ s("div", { className: Ke.list, children: d == null ? void 0 : d.map((f, h) => /* @__PURE__ */ s(
1635
1635
  Re,
1636
1636
  {
1637
- indicator: y,
1637
+ indicator: f,
1638
1638
  defaultColor: i,
1639
1639
  activeColor: o,
1640
1640
  activeIndicator: l,
1641
1641
  onClickIndicator: c,
1642
1642
  multiple: u,
1643
1643
  activeIndicatorType: m,
1644
- onChangeType: h
1644
+ onChangeType: g
1645
1645
  },
1646
- "indicator" + C
1646
+ "indicator" + h
1647
1647
  )) })
1648
1648
  ]
1649
1649
  }
@@ -1673,69 +1673,69 @@ const ut = ({
1673
1673
  activeIndicator: c,
1674
1674
  onClickIndicator: u,
1675
1675
  multiple: m,
1676
- activeIndicatorType: h,
1677
- onChangeType: _
1676
+ activeIndicatorType: g,
1677
+ onChangeType: y
1678
1678
  }) => {
1679
- var C;
1680
- const { t: f } = k(), [g, y] = $(!1);
1679
+ var h;
1680
+ const { t: b } = k(), [C, f] = $(!1);
1681
1681
  return L(() => {
1682
- y(a === d);
1682
+ f(a === d);
1683
1683
  }, [a, d]), /* @__PURE__ */ p(
1684
1684
  Ie.div,
1685
1685
  {
1686
- className: we.indicatorsCategory,
1686
+ className: xe.indicatorsCategory,
1687
1687
  initial: { height: "53px" },
1688
- animate: { height: g ? "auto" : "53px" },
1688
+ animate: { height: C ? "auto" : "53px" },
1689
1689
  transition: { duration: 0.4 },
1690
1690
  style: {
1691
1691
  backgroundColor: "white",
1692
- borderBottom: g ? `1px solid ${i}` : "0px",
1693
- marginBottom: g ? "20px" : "0px"
1692
+ borderBottom: C ? `1px solid ${i}` : "0px",
1693
+ marginBottom: C ? "20px" : "0px"
1694
1694
  },
1695
1695
  children: [
1696
- /* @__PURE__ */ p("h2", { className: `${we.title}`, onClick: () => t(d), children: [
1697
- /* @__PURE__ */ s("span", { style: { color: g ? i : o }, children: g ? "-" : "+" }),
1696
+ /* @__PURE__ */ p("h2", { className: `${xe.title}`, onClick: () => t(d), children: [
1697
+ /* @__PURE__ */ s("span", { style: { color: C ? i : o }, children: C ? "-" : "+" }),
1698
1698
  /* @__PURE__ */ s(
1699
1699
  "span",
1700
1700
  {
1701
- style: { marginLeft: 12, color: g ? i : o },
1702
- children: f(n.name)
1701
+ style: { marginLeft: 12, color: C ? i : o },
1702
+ children: b(n.name)
1703
1703
  }
1704
1704
  )
1705
1705
  ] }),
1706
1706
  n.subcategories ? n.subcategories.map(
1707
- ({ name: b, subcategory: x, indicators: w }, v) => /* @__PURE__ */ s(
1707
+ ({ name: _, subcategory: v, indicators: x }, w) => /* @__PURE__ */ s(
1708
1708
  dt,
1709
1709
  {
1710
- id: x,
1710
+ id: v,
1711
1711
  activeSubCategory: r,
1712
- subcName: b,
1712
+ subcName: _,
1713
1713
  onClickSubCategory: l,
1714
1714
  activeIndicator: c,
1715
1715
  onClickIndicator: u,
1716
1716
  multiple: m,
1717
1717
  activeColor: i,
1718
1718
  defaultColor: o,
1719
- indicators: w,
1720
- activeIndicatorType: h,
1721
- onChangeType: _
1719
+ indicators: x,
1720
+ activeIndicatorType: g,
1721
+ onChangeType: y
1722
1722
  },
1723
- `subcKey ${v}`
1723
+ `subcKey ${w}`
1724
1724
  )
1725
- ) : /* @__PURE__ */ s("div", { className: we.list, children: (C = n.indicators) == null ? void 0 : C.map((b, x) => /* @__PURE__ */ s(
1725
+ ) : /* @__PURE__ */ s("div", { className: xe.list, children: (h = n.indicators) == null ? void 0 : h.map((_, v) => /* @__PURE__ */ s(
1726
1726
  Re,
1727
1727
  {
1728
- indicator: b,
1729
- values: b.type == "twoUnits" && b.values,
1728
+ indicator: _,
1729
+ values: _.type == "twoUnits" && _.values,
1730
1730
  activeColor: i,
1731
1731
  defaultColor: o,
1732
1732
  activeIndicator: c,
1733
1733
  onClickIndicator: u,
1734
1734
  multiple: m,
1735
- activeIndicatorType: h,
1736
- onChangeType: _
1735
+ activeIndicatorType: g,
1736
+ onChangeType: y
1737
1737
  },
1738
- `indicator${x}`
1738
+ `indicator${v}`
1739
1739
  )) })
1740
1740
  ]
1741
1741
  }
@@ -1772,64 +1772,64 @@ const h0 = "_indicatorsList_fklyu_2", g0 = "_title_fklyu_6", He = {
1772
1772
  changeIndType: r,
1773
1773
  activeIndicatorType: l
1774
1774
  }) => {
1775
- const { t: c } = k(), [u, m] = $(), [h, _] = $(), [f, g] = $(), y = (v) => {
1776
- m(u == v ? null : v);
1777
- }, C = (v) => {
1778
- _(h == v ? null : v);
1779
- }, b = ({ indicator: v }) => {
1780
- console.log("onClickIndicator: ", v), x(v);
1781
- }, x = (v) => {
1775
+ const { t: c } = k(), [u, m] = $(), [g, y] = $(), [b, C] = $(), f = (w) => {
1776
+ m(u == w ? null : w);
1777
+ }, h = (w) => {
1778
+ y(g == w ? null : w);
1779
+ }, _ = ({ indicator: w }) => {
1780
+ console.log("onClickIndicator: ", w), v(w);
1781
+ }, v = (w) => {
1782
1782
  if (!t)
1783
- g(
1784
- (f == null ? void 0 : f.name) == v.name ? null : v
1783
+ C(
1784
+ (b == null ? void 0 : b.name) == w.name ? null : w
1785
1785
  );
1786
1786
  else {
1787
- let N = f && f.length > 0 ? [...f] : [];
1788
- g(
1787
+ let N = b && b.length > 0 ? [...b] : [];
1788
+ C(
1789
1789
  N != null && N.some(
1790
- (S) => S.name == v.name
1790
+ (S) => S.name == w.name
1791
1791
  ) ? N.filter(
1792
- (S) => S.name != String(v.name)
1793
- ) : [...N, v]
1794
- ), v.type == "both" && r("cat");
1792
+ (S) => S.name != String(w.name)
1793
+ ) : [...N, w]
1794
+ ), w.type == "both" && r("cat");
1795
1795
  }
1796
1796
  };
1797
1797
  L(() => {
1798
- console.log("activeindicator changed to: ", f), o && typeof o == "function" && f && o({ activeIndicator: f });
1799
- }, [f]), _t(() => {
1800
- if (a && !f)
1798
+ console.log("activeindicator changed to: ", b), o && typeof o == "function" && b && o({ activeIndicator: b });
1799
+ }, [b]), _t(() => {
1800
+ if (a && !b)
1801
1801
  if (t && a && Array.isArray(a)) {
1802
- let v = f && f.length > 0 ? [...f] : [];
1803
- g([...v, ...a]), w(a[0].name);
1802
+ let w = b && b.length > 0 ? [...b] : [];
1803
+ C([...w, ...a]), x(a[0].name);
1804
1804
  } else
1805
- x(a), w(a.name);
1805
+ v(a), x(a.name);
1806
1806
  }, []);
1807
- const w = (v) => {
1807
+ const x = (w) => {
1808
1808
  const N = n.find((S) => {
1809
1809
  if (S.subcategories) {
1810
1810
  let D = S.subcategories.find(
1811
- (j) => j.indicators.find((de) => de.name == v)
1811
+ (j) => j.indicators.find((de) => de.name == w)
1812
1812
  );
1813
1813
  if (D)
1814
- return _(D.subcategory), D;
1814
+ return y(D.subcategory), D;
1815
1815
  } else
1816
- return S.indicators.some((D) => D.name == v);
1816
+ return S.indicators.some((D) => D.name == w);
1817
1817
  });
1818
1818
  N && m(N.category);
1819
1819
  };
1820
1820
  return /* @__PURE__ */ p("div", { className: He.indicatorsList, children: [
1821
1821
  /* @__PURE__ */ s("h2", { className: He.title, style: { color: i }, children: c("indicators.indicators") }),
1822
- n.map((v, N) => /* @__PURE__ */ s(
1822
+ n.map((w, N) => /* @__PURE__ */ s(
1823
1823
  ut,
1824
1824
  {
1825
- id: v.category,
1826
- cat: v,
1827
- onClickCategory: y,
1825
+ id: w.category,
1826
+ cat: w,
1827
+ onClickCategory: f,
1828
1828
  activeCategory: u,
1829
- onClickSubCategory: C,
1830
- activeSubCategory: h,
1831
- onClickIndicator: b,
1832
- activeIndicator: f,
1829
+ onClickSubCategory: h,
1830
+ activeSubCategory: g,
1831
+ onClickIndicator: _,
1832
+ activeIndicator: b,
1833
1833
  activeColor: d,
1834
1834
  defaultColor: i,
1835
1835
  multiple: t,
@@ -1858,7 +1858,7 @@ const f0 = "_langSelector_o9enq_2", b0 = "_currentLang_o9enq_14", y0 = "_arrow_o
1858
1858
  arrow: y0,
1859
1859
  prevImg: _0,
1860
1860
  langMenu: v0
1861
- }, x0 = ({ langs: n, arrow: d, imgPrev: i }) => {
1861
+ }, w0 = ({ langs: n, arrow: d, imgPrev: i }) => {
1862
1862
  const [o, t] = $(!1), { i18n: a } = k(), r = n.find((c) => c.code == a.language), l = (c) => {
1863
1863
  a.changeLanguage(c), t(!1);
1864
1864
  };
@@ -1888,7 +1888,7 @@ const f0 = "_langSelector_o9enq_2", b0 = "_currentLang_o9enq_14", y0 = "_arrow_o
1888
1888
  )) })
1889
1889
  ] });
1890
1890
  };
1891
- x0.propTypes = {
1891
+ w0.propTypes = {
1892
1892
  langs: e.arrayOf(
1893
1893
  e.shape({
1894
1894
  code: e.string,
@@ -1902,8 +1902,8 @@ x0.propTypes = {
1902
1902
  arrow: e.object,
1903
1903
  imgPrev: e.object
1904
1904
  };
1905
- const w0 = "_legendContainer_qs4x9_3", N0 = "_closeButton_qs4x9_31", k0 = "_titleContainer_qs4x9_59", B0 = "_infoContainer_qs4x9_65", S0 = "_titleLegendList_qs4x9_76", D0 = "_legendListContainer_qs4x9_82", M0 = "_gridContainer_qs4x9_82", $0 = "_elementLegendContainer_qs4x9_88", L0 = "_colorDot_qs4x9_94", F0 = "_absoluteValueContainer_qs4x9_100", T0 = "_absoluteValueColor_qs4x9_103", V0 = "_absoluteValueText_qs4x9_108", A0 = "_noDataContainer_qs4x9_120", I0 = "_noData_qs4x9_120", O0 = "_moreInfoContainer_qs4x9_141", M = {
1906
- legendContainer: w0,
1905
+ const x0 = "_legendContainer_qs4x9_3", N0 = "_closeButton_qs4x9_31", k0 = "_titleContainer_qs4x9_59", B0 = "_infoContainer_qs4x9_65", S0 = "_titleLegendList_qs4x9_76", D0 = "_legendListContainer_qs4x9_82", M0 = "_gridContainer_qs4x9_82", $0 = "_elementLegendContainer_qs4x9_88", L0 = "_colorDot_qs4x9_94", F0 = "_absoluteValueContainer_qs4x9_100", T0 = "_absoluteValueColor_qs4x9_103", V0 = "_absoluteValueText_qs4x9_108", A0 = "_noDataContainer_qs4x9_120", I0 = "_noData_qs4x9_120", O0 = "_moreInfoContainer_qs4x9_141", M = {
1906
+ legendContainer: x0,
1907
1907
  closeButton: N0,
1908
1908
  titleContainer: k0,
1909
1909
  infoContainer: B0,
@@ -1950,11 +1950,11 @@ const w0 = "_legendContainer_qs4x9_3", N0 = "_closeButton_qs4x9_31", k0 = "_titl
1950
1950
  children: [
1951
1951
  /* @__PURE__ */ s("button", { className: M.closeButton, onClick: c }),
1952
1952
  d && /* @__PURE__ */ s("div", { className: M.titleContainer, style: { marginBottom: (!i || i.length == 0) && "15px" }, children: /* @__PURE__ */ s("h2", { children: d }) }),
1953
- i && i.length > 0 && /* @__PURE__ */ s("div", { className: M.infoContainer, children: /* @__PURE__ */ s("ul", { children: i.map(({ title: m, value: h }) => /* @__PURE__ */ p("li", { children: [
1953
+ i && i.length > 0 && /* @__PURE__ */ s("div", { className: M.infoContainer, children: /* @__PURE__ */ s("ul", { children: i.map(({ title: m, value: g }) => /* @__PURE__ */ p("li", { children: [
1954
1954
  /* @__PURE__ */ s("h3", { className: M.title, children: `${m}:` }),
1955
1955
  /* @__PURE__ */ p("span", { className: M.value, children: [
1956
1956
  "  ",
1957
- h
1957
+ g
1958
1958
  ] })
1959
1959
  ] }, d)) }) }),
1960
1960
  /* @__PURE__ */ s("h3", { className: M.titleLegendList, style: { marginTop: i && i.length > 0 && "30px" }, children: t && /* @__PURE__ */ s(Ae, { i18nKey: t, components: { sup: /* @__PURE__ */ s("sup", {}) }, shouldUnescape: !0 }) }),
@@ -1987,12 +1987,12 @@ const w0 = "_legendContainer_qs4x9_3", N0 = "_closeButton_qs4x9_31", k0 = "_titl
1987
1987
  ] })
1988
1988
  ] })
1989
1989
  ] }) : o && o.length > 0 && /* @__PURE__ */ s("div", { className: M.gridContainer, children: o.map(
1990
- ({ title: m, color: h }) => /* @__PURE__ */ p("div", { className: M.elementLegendContainer, children: [
1990
+ ({ title: m, color: g }) => /* @__PURE__ */ p("div", { className: M.elementLegendContainer, children: [
1991
1991
  /* @__PURE__ */ s(
1992
1992
  "div",
1993
1993
  {
1994
1994
  className: M.colorDot,
1995
- style: { backgroundColor: h }
1995
+ style: { backgroundColor: g }
1996
1996
  }
1997
1997
  ),
1998
1998
  /* @__PURE__ */ p("div", { className: M.titleLegendElement, children: [
@@ -2061,7 +2061,7 @@ E0.propTypes = {
2061
2061
  const P0 = "_mapContainer_84pkf_2", j0 = {
2062
2062
  mapContainer: P0
2063
2063
  };
2064
- xt.accessToken = "pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";
2064
+ wt.accessToken = "pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";
2065
2065
  const z0 = ({
2066
2066
  initialView: n = { latitude: 39.4699, longitude: -0.3763, zoom: 12 },
2067
2067
  maxZoom: d = 17,
@@ -2075,19 +2075,19 @@ const z0 = ({
2075
2075
  sources: u = [],
2076
2076
  layers: m = []
2077
2077
  }) => {
2078
- const h = ie(), [_, f] = $(null), g = wt((y) => y.mapState.showTexts);
2078
+ const g = ie(), [y, b] = $(null), C = xt((f) => f.mapState.showTexts);
2079
2079
  return L(() => {
2080
- if (h.current) {
2081
- const y = h.current.getMap();
2082
- y.getStyle().layers.map((b) => {
2083
- b.type == "symbol" && b.id != "professionals" && (g ? y.setLayoutProperty(b.id, "visibility", "visible") : y.setLayoutProperty(b.id, "visibility", "none"));
2080
+ if (g.current) {
2081
+ const f = g.current.getMap();
2082
+ f.getStyle().layers.map((_) => {
2083
+ _.type == "symbol" && _.id != "professionals" && (C ? f.setLayoutProperty(_.id, "visibility", "visible") : f.setLayoutProperty(_.id, "visibility", "none"));
2084
2084
  });
2085
2085
  }
2086
- }, [g]), /* @__PURE__ */ s("div", { className: `${j0.mapContainer}`, style: a, children: /* @__PURE__ */ p(
2086
+ }, [C]), /* @__PURE__ */ s("div", { className: `${j0.mapContainer}`, style: a, children: /* @__PURE__ */ p(
2087
2087
  kt,
2088
2088
  {
2089
2089
  initialViewState: n,
2090
- ref: h,
2090
+ ref: g,
2091
2091
  hash: !1,
2092
2092
  maxZoom: d,
2093
2093
  minZoom: i,
@@ -2095,31 +2095,31 @@ const z0 = ({
2095
2095
  onClick: r,
2096
2096
  interactiveLayerIds: l,
2097
2097
  children: [
2098
- u.length && u.map((y, C) => /* @__PURE__ */ s(
2098
+ u.length && u.map((f, h) => /* @__PURE__ */ s(
2099
2099
  Bt,
2100
2100
  {
2101
- ...y,
2102
- children: m.length && m.map((b, x) => {
2103
- if (b.sourceId == y.id) return /* @__PURE__ */ s(
2101
+ ...f,
2102
+ children: m.length && m.map((_, v) => {
2103
+ if (_.sourceId == f.id) return /* @__PURE__ */ s(
2104
2104
  St,
2105
2105
  {
2106
- ...b.layer,
2106
+ ..._.layer,
2107
2107
  beforeId: t
2108
2108
  },
2109
- x
2109
+ v
2110
2110
  );
2111
2111
  })
2112
2112
  },
2113
- C
2113
+ h
2114
2114
  )),
2115
2115
  /* @__PURE__ */ s(Dt, { position: "bottom-right", visualizePitch: !0 }),
2116
- c && _ && /* @__PURE__ */ s(
2116
+ c && y && /* @__PURE__ */ s(
2117
2117
  Mt,
2118
2118
  {
2119
2119
  longitude: c.longitude,
2120
2120
  latitude: c.latitude,
2121
2121
  anchor: c.anchor,
2122
- onClose: () => f(null),
2122
+ onClose: () => b(null),
2123
2123
  children: c.content
2124
2124
  }
2125
2125
  )
@@ -2202,22 +2202,22 @@ const Z0 = "_mapContainer_b0pyr_3", K0 = {
2202
2202
  sources: c = [],
2203
2203
  layers: u = [],
2204
2204
  filters: m,
2205
- popUpParams: h,
2206
- onClosePopUp: _,
2207
- showTexts: f
2205
+ popUpParams: g,
2206
+ onClosePopUp: y,
2207
+ showTexts: b
2208
2208
  }) => {
2209
2209
  console.log(m);
2210
- const g = ie();
2210
+ const C = ie();
2211
2211
  return L(() => {
2212
- if (g.current) {
2213
- const y = g.current.getMap();
2214
- y.getStyle().layers.map((b) => {
2215
- b.type == "symbol" && b.id != "professionals" && (f ? y.setLayoutProperty(b.id, "visibility", "visible") : y.setLayoutProperty(b.id, "visibility", "none"));
2212
+ if (C.current) {
2213
+ const f = C.current.getMap();
2214
+ f.getStyle().layers.map((_) => {
2215
+ _.type == "symbol" && _.id != "professionals" && (b ? f.setLayoutProperty(_.id, "visibility", "visible") : f.setLayoutProperty(_.id, "visibility", "none"));
2216
2216
  });
2217
2217
  }
2218
- }, [f]), L(() => {
2219
- let y = new $t();
2220
- return ye.addProtocol("pmtiles", y.tile), () => {
2218
+ }, [b]), L(() => {
2219
+ let f = new $t();
2220
+ return ye.addProtocol("pmtiles", f.tile), () => {
2221
2221
  ye.removeProtocol("pmtiles");
2222
2222
  };
2223
2223
  }, []), /* @__PURE__ */ s("div", { className: `${K0.mapContainer}`, style: a && a, children: /* @__PURE__ */ p(
@@ -2225,7 +2225,7 @@ const Z0 = "_mapContainer_b0pyr_3", K0 = {
2225
2225
  {
2226
2226
  mapLib: ye,
2227
2227
  initialViewState: n,
2228
- ref: g,
2228
+ ref: C,
2229
2229
  hash: !1,
2230
2230
  maxZoom: d,
2231
2231
  minZoom: i,
@@ -2233,32 +2233,32 @@ const Z0 = "_mapContainer_b0pyr_3", K0 = {
2233
2233
  onClick: r,
2234
2234
  interactiveLayerIds: l,
2235
2235
  children: [
2236
- c.length && c.map((y, C) => /* @__PURE__ */ s(
2236
+ c.length && c.map((f, h) => /* @__PURE__ */ s(
2237
2237
  Ft,
2238
2238
  {
2239
- ...y,
2240
- children: u.length && u.map((b, x) => {
2241
- if (b.sourceId == y.id) return /* @__PURE__ */ s(
2239
+ ...f,
2240
+ children: u.length && u.map((_, v) => {
2241
+ if (_.sourceId == f.id) return /* @__PURE__ */ s(
2242
2242
  Tt,
2243
2243
  {
2244
- ...b.layer,
2244
+ ..._.layer,
2245
2245
  beforeId: t,
2246
2246
  filter: m && m
2247
2247
  },
2248
- x
2248
+ v
2249
2249
  );
2250
2250
  })
2251
2251
  },
2252
- C
2252
+ h
2253
2253
  )),
2254
2254
  /* @__PURE__ */ s(Vt, { position: "bottom-right", visualizePitch: !0 }),
2255
- h && /* @__PURE__ */ s(
2255
+ g && /* @__PURE__ */ s(
2256
2256
  At,
2257
2257
  {
2258
- longitude: h.lng,
2259
- latitude: h.lat,
2260
- onClose: _,
2261
- children: /* @__PURE__ */ s(G0, { props: h.props })
2258
+ longitude: g.lng,
2259
+ latitude: g.lat,
2260
+ onClose: y,
2261
+ children: /* @__PURE__ */ s(G0, { props: g.props })
2262
2262
  }
2263
2263
  )
2264
2264
  ]
@@ -2366,30 +2366,30 @@ const Y0 = "_sectionBar_1egwc_2", Q0 = "_leftContent_1egwc_14", X0 = "_textConta
2366
2366
  sliderOpen: ln,
2367
2367
  sliderResults: cn
2368
2368
  }, dn = ({ onResults: n = !1, defaultYear: d = 2025, firstYear: i = 2025, lastYear: o = 2050, zIndex: t = 10, rightBarOpen: a = !1 }) => {
2369
- const [r, l] = $(d), c = Nt(), u = (b, x) => {
2370
- l(x), c(Ne(x - 2e3));
2371
- }, [m, h] = $(!1), _ = () => {
2372
- h(!0);
2373
- }, f = () => {
2374
- h(!1);
2369
+ const [r, l] = $(d), c = Nt(), u = (_, v) => {
2370
+ l(v), c(Ne(v - 2e3));
2371
+ }, [m, g] = $(!1), y = () => {
2372
+ g(!0);
2373
+ }, b = () => {
2374
+ g(!1);
2375
2375
  };
2376
- ((b, x) => {
2377
- const w = ie();
2376
+ ((_, v) => {
2377
+ const x = ie();
2378
2378
  L(() => {
2379
- w.current = b;
2380
- }, [b]), L(() => {
2381
- function v() {
2382
- w.current();
2379
+ x.current = _;
2380
+ }, [_]), L(() => {
2381
+ function w() {
2382
+ x.current();
2383
2383
  }
2384
2384
  {
2385
- let N = setInterval(v, x);
2385
+ let N = setInterval(w, v);
2386
2386
  return () => clearInterval(N);
2387
2387
  }
2388
- }, [x]);
2388
+ }, [v]);
2389
2389
  })(() => {
2390
2390
  m && (r != 2050 ? (l(r + 1), c(Ne(r - 2e3 + 1))) : (l(2025), c(Ne(25))));
2391
2391
  }, 1e3);
2392
- const y = Rt({
2392
+ const f = Rt({
2393
2393
  palette: {
2394
2394
  primary: {
2395
2395
  main: "#605b56"
@@ -2411,13 +2411,13 @@ const Y0 = "_sectionBar_1egwc_2", Q0 = "_leftContent_1egwc_14", X0 = "_textConta
2411
2411
  }
2412
2412
  }
2413
2413
  }
2414
- }), C = [
2414
+ }), h = [
2415
2415
  { label: "", value: 2025 },
2416
2416
  { label: "", value: 2032 },
2417
2417
  { label: "", value: 2041 },
2418
2418
  { label: "", value: 2050 }
2419
2419
  ];
2420
- return /* @__PURE__ */ s(Et, { theme: y, children: /* @__PURE__ */ p(
2420
+ return /* @__PURE__ */ s(Et, { theme: f, children: /* @__PURE__ */ p(
2421
2421
  qt,
2422
2422
  {
2423
2423
  sx: { width: 400 },
@@ -2432,7 +2432,7 @@ const Y0 = "_sectionBar_1egwc_2", Q0 = "_leftContent_1egwc_14", X0 = "_textConta
2432
2432
  value: r,
2433
2433
  valueLabelDisplay: "on",
2434
2434
  step: 1,
2435
- marks: C,
2435
+ marks: h,
2436
2436
  min: i,
2437
2437
  max: o,
2438
2438
  onChange: u,
@@ -2441,8 +2441,8 @@ const Y0 = "_sectionBar_1egwc_2", Q0 = "_leftContent_1egwc_14", X0 = "_textConta
2441
2441
  }
2442
2442
  ),
2443
2443
  o,
2444
- !m && /* @__PURE__ */ s("button", { className: se.playButton, onClick: _, children: /* @__PURE__ */ s("img", { src: on, alt: "Play" }) }),
2445
- m && /* @__PURE__ */ s("button", { className: se.playButton, onClick: f, children: /* @__PURE__ */ s("img", { src: sn, alt: "Pause" }) })
2444
+ !m && /* @__PURE__ */ s("button", { className: se.playButton, onClick: y, children: /* @__PURE__ */ s("img", { src: on, alt: "Play" }) }),
2445
+ m && /* @__PURE__ */ s("button", { className: se.playButton, onClick: b, children: /* @__PURE__ */ s("img", { src: sn, alt: "Pause" }) })
2446
2446
  ]
2447
2447
  }
2448
2448
  ) });
@@ -2529,13 +2529,13 @@ fn.propTypes = {
2529
2529
  userName: e.string,
2530
2530
  isLoggedIn: e.bool
2531
2531
  };
2532
- const bn = "_elementSelector_fd7az_2", yn = "_header_fd7az_13", _n = "_nameDateContainer_fd7az_23", vn = "_elementName_fd7az_39", xn = "_elementDate_fd7az_53", wn = "_buttonsContainer_fd7az_67", Nn = "_elementListContainer_fd7az_76", kn = "_newElementButtonContainer_fd7az_80", P = {
2532
+ const bn = "_elementSelector_fd7az_2", yn = "_header_fd7az_13", _n = "_nameDateContainer_fd7az_23", vn = "_elementName_fd7az_39", wn = "_elementDate_fd7az_53", xn = "_buttonsContainer_fd7az_67", Nn = "_elementListContainer_fd7az_76", kn = "_newElementButtonContainer_fd7az_80", P = {
2533
2533
  elementSelector: bn,
2534
2534
  header: yn,
2535
2535
  nameDateContainer: _n,
2536
2536
  elementName: vn,
2537
- elementDate: xn,
2538
- buttonsContainer: wn,
2537
+ elementDate: wn,
2538
+ buttonsContainer: xn,
2539
2539
  elementListContainer: Nn,
2540
2540
  newElementButtonContainer: kn
2541
2541
  }, Bn = "_listElement_1s506_2", Sn = "_elementNameDate_1s506_17", Dn = "_elementNameContainer_1s506_27", Mn = "_elementName_1s506_17", $n = "_elementDate_1s506_42", Ln = "_elementButtons_1s506_45", Fn = "_moreInfoContainer_1s506_68", Tn = "_moreInfo_1s506_68", O = {
@@ -2583,27 +2583,29 @@ const En = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2583
2583
  columns: r,
2584
2584
  elementButtons: l,
2585
2585
  processTooltip: c,
2586
- defaultTooltip: u
2586
+ defaultTooltip: u,
2587
+ showEye: m = !0
2587
2588
  }) => {
2588
- const { nom: m, created_at: h, id: _, isBeingProcessed: f } = n, [g, y] = $(!1), { t: C } = k();
2589
+ const { nom: g, created_at: y, id: b, isBeingProcessed: C } = n, [f, h] = $(!1), { t: _ } = k();
2589
2590
  return /* @__PURE__ */ p(
2590
2591
  "div",
2591
2592
  {
2592
2593
  className: O.listElement,
2593
2594
  style: { borderBottom: `1px solid ${t}` },
2594
2595
  children: [
2595
- /* @__PURE__ */ p("div", { className: O.elementNameDate, onClick: () => d(_), children: [
2596
+ /* @__PURE__ */ p("div", { className: O.elementNameDate, onClick: () => d(b), children: [
2596
2597
  r.nom && /* @__PURE__ */ s("div", { className: O.elementNameContainer, children: /* @__PURE__ */ p("div", { className: O.elementName, children: [
2597
- i ? /* @__PURE__ */ s(qn, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ s(
2598
+ m && (i ? /* @__PURE__ */ s(qn, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ s(
2598
2599
  "img",
2599
2600
  {
2600
2601
  style: { marginRight: 9 },
2601
- src: En
2602
+ src: En,
2603
+ alt: "eye"
2602
2604
  }
2603
- ),
2604
- /* @__PURE__ */ s("span", { style: { color: i ? o : t }, children: m })
2605
+ )),
2606
+ /* @__PURE__ */ s("span", { style: { color: i ? o : t }, children: g })
2605
2607
  ] }) }),
2606
- r.data && /* @__PURE__ */ s("div", { className: O.elementDate, children: h ? new Date(h).toLocaleDateString() : "" }),
2608
+ r.data && /* @__PURE__ */ s("div", { className: O.elementDate, children: y ? new Date(y).toLocaleDateString() : "" }),
2607
2609
  r.ambit && /* @__PURE__ */ s("div", { className: O.elementDate, children: n.ambit }),
2608
2610
  r.escenari && /* @__PURE__ */ s("div", { className: O.elementDate, children: n.escenari })
2609
2611
  ] }),
@@ -2631,11 +2633,11 @@ const En = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2631
2633
  ] }),
2632
2634
  a && /* @__PURE__ */ s("div", { className: O.break }),
2633
2635
  a && /* @__PURE__ */ p("div", { className: O.moreInfoContainer, children: [
2634
- /* @__PURE__ */ p("div", { className: O.moreInfo, onClick: () => y(!g), children: [
2635
- /* @__PURE__ */ s("span", { children: g ? "-" : "+" }),
2636
- C(a.label)
2636
+ /* @__PURE__ */ p("div", { className: O.moreInfo, onClick: () => h(!f), children: [
2637
+ /* @__PURE__ */ s("span", { children: f ? "-" : "+" }),
2638
+ _(a.label)
2637
2639
  ] }),
2638
- a && g && /* @__PURE__ */ s("div", { className: O.moreInfoInfo, children: n[a.info] })
2640
+ a && f && /* @__PURE__ */ s("div", { className: O.moreInfoInfo, children: n[a.info] })
2639
2641
  ] })
2640
2642
  ]
2641
2643
  }
@@ -2674,7 +2676,8 @@ pt.propTypes = {
2674
2676
  })
2675
2677
  }),
2676
2678
  processTooltip: e.string,
2677
- defaultTooltip: e.string
2679
+ defaultTooltip: e.string,
2680
+ showEye: e.bool
2678
2681
  };
2679
2682
  const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%200%2014%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20id='Vector'%20d='M7%2015L7%201M7%2015L1%209M7%2015L13%209'%20stroke='%23605B56'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", Pn = ({
2680
2683
  elementsList: n,
@@ -2685,26 +2688,27 @@ const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2685
2688
  containerStyles: a = {},
2686
2689
  newElementButton: r,
2687
2690
  //{label: 'text', onClick: function(), disabled}/null
2688
- onClickElement: l = (f) => console.log(`OnCLickElement: ${f}`),
2691
+ onClickElement: l = (C) => console.log(`OnCLickElement: ${C}`),
2689
2692
  columns: c,
2690
2693
  // {'nom': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
2691
2694
  elementButtons: u,
2692
2695
  //{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
2693
2696
  moreInfo: m = !1,
2694
2697
  //{label: 'x'}
2695
- processTooltip: h,
2698
+ processTooltip: g,
2696
2699
  //texto para el tooltip del simbolo "En proceso"
2697
- defaultTooltip: _
2700
+ defaultTooltip: y,
2698
2701
  //texto para el tooltip del símbolo de candado para los elementos default
2702
+ showEye: b = !0
2699
2703
  }) => {
2700
- const { t: f } = k(), [g, y] = $(n);
2704
+ const { t: C } = k(), [f, h] = $(n);
2701
2705
  L(() => {
2702
- n && y(n);
2706
+ n && h(n);
2703
2707
  }, [n]);
2704
- const C = (b) => {
2705
- if (g && g.length > 0) {
2706
- let x = [...g];
2707
- x.sort((w, v) => w[b].localeCompare(v[b])), y(x);
2708
+ const _ = (v) => {
2709
+ if (f && f.length > 0) {
2710
+ let x = [...f];
2711
+ x.sort((w, N) => w[v].localeCompare(N[v])), h(x);
2708
2712
  }
2709
2713
  };
2710
2714
  return /* @__PURE__ */ p(
@@ -2720,36 +2724,37 @@ const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2720
2724
  style: { borderBottom: `1px solid ${i}` },
2721
2725
  children: [
2722
2726
  /* @__PURE__ */ p("div", { className: P.nameDateContainer, children: [
2723
- c.nom && /* @__PURE__ */ s("div", { className: P.elementName, children: /* @__PURE__ */ p("button", { onClick: () => C("name"), children: [
2724
- /* @__PURE__ */ s("span", { children: f(c.nom) }),
2727
+ c.nom && /* @__PURE__ */ s("div", { className: P.elementName, children: /* @__PURE__ */ p("button", { onClick: () => _("name"), children: [
2728
+ /* @__PURE__ */ s("span", { children: C(c.nom) }),
2725
2729
  /* @__PURE__ */ s("img", { src: Ye })
2726
2730
  ] }) }),
2727
- c.data && /* @__PURE__ */ s("div", { className: P.elementDate, children: /* @__PURE__ */ p("button", { onClick: () => C("date"), children: [
2728
- /* @__PURE__ */ s("span", { children: f(c.data) }),
2731
+ c.data && /* @__PURE__ */ s("div", { className: P.elementDate, children: /* @__PURE__ */ p("button", { onClick: () => _("date"), children: [
2732
+ /* @__PURE__ */ s("span", { children: C(c.data) }),
2729
2733
  /* @__PURE__ */ s("img", { src: Ye })
2730
2734
  ] }) }),
2731
- c.ambit && /* @__PURE__ */ s("div", { className: P.elementDate, children: /* @__PURE__ */ s("span", { children: f(c.ambit) }) }),
2732
- c.escenari && /* @__PURE__ */ s("div", { className: P.elementDate, children: /* @__PURE__ */ s("span", { children: f(c.escenari) }) })
2735
+ c.ambit && /* @__PURE__ */ s("div", { className: P.elementDate, children: /* @__PURE__ */ s("span", { children: C(c.ambit) }) }),
2736
+ c.escenari && /* @__PURE__ */ s("div", { className: P.elementDate, children: /* @__PURE__ */ s("span", { children: C(c.escenari) }) })
2733
2737
  ] }),
2734
2738
  /* @__PURE__ */ s("div", { className: P.buttonsContainer })
2735
2739
  ]
2736
2740
  }
2737
2741
  ),
2738
- /* @__PURE__ */ s("div", { className: P.elementListContainer, children: g && g.length > 0 && g.map((b) => /* @__PURE__ */ s(
2742
+ /* @__PURE__ */ s("div", { className: P.elementListContainer, children: f && f.length > 0 && f.map((v) => /* @__PURE__ */ s(
2739
2743
  pt,
2740
2744
  {
2741
- isActive: d == b.id,
2742
- listelement: b,
2745
+ isActive: d == v.id,
2746
+ listelement: v,
2743
2747
  fontColor: i,
2744
2748
  activeColor: o,
2745
2749
  onClickElement: l,
2746
2750
  columns: c,
2747
2751
  elementButtons: u,
2748
2752
  moreInfo: m,
2749
- processTooltip: h,
2750
- defaultTooltip: _
2753
+ processTooltip: g,
2754
+ defaultTooltip: y,
2755
+ showEye: b
2751
2756
  },
2752
- `elementKey${b.id}`
2757
+ `elementKey${v.id}`
2753
2758
  )) }),
2754
2759
  r && /* @__PURE__ */ s("div", { className: P.newElementButtonContainer, children: /* @__PURE__ */ s(
2755
2760
  fe,
@@ -2758,7 +2763,7 @@ const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2758
2763
  onClick: r.onClick,
2759
2764
  borderColor: "grey",
2760
2765
  disabled: r.disabled || !1,
2761
- children: f(r.label)
2766
+ children: C(r.label)
2762
2767
  }
2763
2768
  ) })
2764
2769
  ]
@@ -2809,7 +2814,8 @@ Pn.propTypes = {
2809
2814
  info: e.any
2810
2815
  }),
2811
2816
  processTooltip: e.string,
2812
- defaultTooltip: e.string
2817
+ defaultTooltip: e.string,
2818
+ showEye: e.bool
2813
2819
  };
2814
2820
  const ge = {
2815
2821
  text: "text",
@@ -2937,7 +2943,7 @@ function a1(n) {
2937
2943
  ...n.rules,
2938
2944
  value: l,
2939
2945
  ...Be(n.disabled) ? { disabled: n.disabled } : {}
2940
- })), h = B.useMemo(() => Object.defineProperties({}, {
2946
+ })), g = B.useMemo(() => Object.defineProperties({}, {
2941
2947
  invalid: {
2942
2948
  enumerable: !0,
2943
2949
  get: () => !!A(c.errors, i)
@@ -2958,50 +2964,50 @@ function a1(n) {
2958
2964
  enumerable: !0,
2959
2965
  get: () => A(c.errors, i)
2960
2966
  }
2961
- }), [c, i]), _ = B.useCallback((C) => m.current.onChange({
2967
+ }), [c, i]), y = B.useCallback((h) => m.current.onChange({
2962
2968
  target: {
2963
- value: Yn(C),
2969
+ value: Yn(h),
2964
2970
  name: i
2965
2971
  },
2966
2972
  type: Xe.CHANGE
2967
- }), [i]), f = B.useCallback(() => m.current.onBlur({
2973
+ }), [i]), b = B.useCallback(() => m.current.onBlur({
2968
2974
  target: {
2969
2975
  value: A(t._formValues, i),
2970
2976
  name: i
2971
2977
  },
2972
2978
  type: Xe.BLUR
2973
- }), [i, t._formValues]), g = B.useCallback((C) => {
2974
- const b = A(t._fields, i);
2975
- b && C && (b._f.ref = {
2976
- focus: () => C.focus && C.focus(),
2977
- select: () => C.select && C.select(),
2978
- setCustomValidity: (x) => C.setCustomValidity(x),
2979
- reportValidity: () => C.reportValidity()
2979
+ }), [i, t._formValues]), C = B.useCallback((h) => {
2980
+ const _ = A(t._fields, i);
2981
+ _ && h && (_._f.ref = {
2982
+ focus: () => h.focus && h.focus(),
2983
+ select: () => h.select && h.select(),
2984
+ setCustomValidity: (v) => h.setCustomValidity(v),
2985
+ reportValidity: () => h.reportValidity()
2980
2986
  });
2981
- }, [t._fields, i]), y = B.useMemo(() => ({
2987
+ }, [t._fields, i]), f = B.useMemo(() => ({
2982
2988
  name: i,
2983
2989
  value: l,
2984
2990
  ...Be(o) || c.disabled ? { disabled: c.disabled || o } : {},
2985
- onChange: _,
2986
- onBlur: f,
2987
- ref: g
2988
- }), [i, o, c.disabled, _, f, g, l]);
2991
+ onChange: y,
2992
+ onBlur: b,
2993
+ ref: C
2994
+ }), [i, o, c.disabled, y, b, C, l]);
2989
2995
  return B.useEffect(() => {
2990
- const C = t._options.shouldUnregister || a;
2996
+ const h = t._options.shouldUnregister || a;
2991
2997
  t.register(i, {
2992
2998
  ...u.current.rules,
2993
2999
  ...Be(u.current.disabled) ? { disabled: u.current.disabled } : {}
2994
3000
  });
2995
- const b = (x, w) => {
2996
- const v = A(t._fields, x);
2997
- v && v._f && (v._f.mount = w);
3001
+ const _ = (v, x) => {
3002
+ const w = A(t._fields, v);
3003
+ w && w._f && (w._f.mount = x);
2998
3004
  };
2999
- if (b(i, !0), C) {
3000
- const x = ht(A(t._options.defaultValues, i));
3001
- Qe(t._defaultValues, i, x), Ve(A(t._formValues, i)) && Qe(t._formValues, i, x);
3005
+ if (_(i, !0), h) {
3006
+ const v = ht(A(t._options.defaultValues, i));
3007
+ Qe(t._defaultValues, i, v), Ve(A(t._formValues, i)) && Qe(t._formValues, i, v);
3002
3008
  }
3003
3009
  return !r && t.register(i), () => {
3004
- (r ? C && !t._state.action : C) ? t.unregister(i) : b(i, !1);
3010
+ (r ? h && !t._state.action : h) ? t.unregister(i) : _(i, !1);
3005
3011
  };
3006
3012
  }, [i, t, r, a]), B.useEffect(() => {
3007
3013
  t._setDisabledField({
@@ -3009,10 +3015,10 @@ function a1(n) {
3009
3015
  name: i
3010
3016
  });
3011
3017
  }, [o, i, t]), B.useMemo(() => ({
3012
- field: y,
3018
+ field: f,
3013
3019
  formState: c,
3014
- fieldState: h
3015
- }), [y, c, h]);
3020
+ fieldState: g
3021
+ }), [f, c, g]);
3016
3022
  }
3017
3023
  const Ee = (n) => n.render(a1(n)), l1 = "_errorMessage_1xiyb_2", c1 = {
3018
3024
  errorMessage: l1
@@ -3041,22 +3047,22 @@ const Ee = (n) => n.render(a1(n)), l1 = "_errorMessage_1xiyb_2", c1 = {
3041
3047
  placeholder: c,
3042
3048
  errorColor: u = "red",
3043
3049
  width: m = 325,
3044
- onClickForgotPass: h = () => {
3050
+ onClickForgotPass: g = () => {
3045
3051
  console.log("Click on forgot password");
3046
3052
  },
3047
- forgotPassLabel: _ = "forgot-password"
3048
- } = n, { t: f } = k(), { control: g, trigger: y, clearErrors: C } = d, [b, x] = $(!1), w = ie(r);
3053
+ forgotPassLabel: y = "forgot-password"
3054
+ } = n, { t: b } = k(), { control: C, trigger: f, clearErrors: h } = d, [_, v] = $(!1), x = ie(r);
3049
3055
  L(() => {
3050
- w.current !== r && (r ? y(i) : C(i), w.current = r);
3051
- }, [r, i, y, C]);
3052
- const v = () => o ? o === "password" && b ? "text" : o : "text";
3056
+ x.current !== r && (r ? f(i) : h(i), x.current = r);
3057
+ }, [r, i, f, h]);
3058
+ const w = () => o ? o === "password" && _ ? "text" : o : "text";
3053
3059
  return /* @__PURE__ */ s(
3054
3060
  Ee,
3055
3061
  {
3056
3062
  name: i,
3057
- control: g,
3063
+ control: C,
3058
3064
  rules: {
3059
- required: r ? `${f(t)} ${f("errorMessages.required")}` : !1,
3065
+ required: r ? `${b(t)} ${b("errorMessages.required")}` : !1,
3060
3066
  maxLength: a || void 0,
3061
3067
  validate: l || void 0
3062
3068
  },
@@ -3064,7 +3070,7 @@ const Ee = (n) => n.render(a1(n)), l1 = "_errorMessage_1xiyb_2", c1 = {
3064
3070
  var D;
3065
3071
  return /* @__PURE__ */ p("div", { className: re.textInputContainer, children: [
3066
3072
  /* @__PURE__ */ p("h3", { className: re.labelContainer, children: [
3067
- f(t),
3073
+ b(t),
3068
3074
  " ",
3069
3075
  r && /* @__PURE__ */ s("label", { style: { color: S.error ? u : "" }, children: "*" })
3070
3076
  ] }),
@@ -3077,25 +3083,25 @@ const Ee = (n) => n.render(a1(n)), l1 = "_errorMessage_1xiyb_2", c1 = {
3077
3083
  /* @__PURE__ */ s(
3078
3084
  "input",
3079
3085
  {
3080
- type: v(),
3086
+ type: w(),
3081
3087
  ...N,
3082
- placeholder: c ? f(c) : "",
3088
+ placeholder: c ? b(c) : "",
3083
3089
  maxLength: a || void 0
3084
3090
  }
3085
3091
  ),
3086
3092
  o == "password" && /* @__PURE__ */ s(
3087
3093
  "button",
3088
3094
  {
3089
- onClick: () => x(!b),
3095
+ onClick: () => v(!_),
3090
3096
  type: "button",
3091
3097
  className: re.showPasswordButton,
3092
- children: b ? "🙈" : "👁️"
3098
+ children: _ ? "🙈" : "👁️"
3093
3099
  }
3094
3100
  )
3095
3101
  ]
3096
3102
  }
3097
3103
  ),
3098
- o == "password" && /* @__PURE__ */ s("div", { className: re.forgotPassButton, children: /* @__PURE__ */ s("button", { onClick: h, children: f(_) }) }),
3104
+ o == "password" && /* @__PURE__ */ s("div", { className: re.forgotPassButton, children: /* @__PURE__ */ s("button", { onClick: g, children: b(y) }) }),
3099
3105
  /* @__PURE__ */ s(
3100
3106
  be,
3101
3107
  {
@@ -3131,45 +3137,45 @@ const Ee = (n) => n.render(a1(n)), l1 = "_errorMessage_1xiyb_2", c1 = {
3131
3137
  placeholder: c,
3132
3138
  errorColor: u = "red",
3133
3139
  width: m = 325,
3134
- options: h = []
3135
- } = n, { t: _ } = k(), { control: f, trigger: g, clearErrors: y } = d, C = ie(r);
3140
+ options: g = []
3141
+ } = n, { t: y } = k(), { control: b, trigger: C, clearErrors: f } = d, h = ie(r);
3136
3142
  return L(() => {
3137
- C.current !== r && (r ? g(i) : y(i), C.current = r);
3138
- }, [r, i, g, y]), /* @__PURE__ */ s(
3143
+ h.current !== r && (r ? C(i) : f(i), h.current = r);
3144
+ }, [r, i, C, f]), /* @__PURE__ */ s(
3139
3145
  Ee,
3140
3146
  {
3141
3147
  name: i,
3142
- control: f,
3148
+ control: b,
3143
3149
  rules: {
3144
- required: r ? `${_(t)} ${_("errorMessages.required")}` : !1,
3150
+ required: r ? `${y(t)} ${y("errorMessages.required")}` : !1,
3145
3151
  validate: l || void 0
3146
3152
  },
3147
- render: ({ field: b, fieldState: x }) => {
3148
- var w;
3153
+ render: ({ field: _, fieldState: v }) => {
3154
+ var x;
3149
3155
  return /* @__PURE__ */ p("div", { className: te.selectInputContainer, children: [
3150
3156
  /* @__PURE__ */ p("h3", { className: te.labelContainer, children: [
3151
- _(t),
3157
+ y(t),
3152
3158
  " ",
3153
- r && /* @__PURE__ */ s("label", { style: { color: x.error ? u : "" }, children: "*" })
3159
+ r && /* @__PURE__ */ s("label", { style: { color: v.error ? u : "" }, children: "*" })
3154
3160
  ] }),
3155
3161
  /* @__PURE__ */ p("div", { className: te.inputContainer, style: { width: m }, children: [
3156
3162
  /* @__PURE__ */ p(
3157
3163
  "select",
3158
3164
  {
3159
- ...b,
3160
- onChange: (v) => {
3161
- const N = v.target.value, S = h.every((D) => typeof D.value == "number") ? Number(N) : N;
3162
- b.onChange(S);
3165
+ ..._,
3166
+ onChange: (w) => {
3167
+ const N = w.target.value, S = g.every((D) => typeof D.value == "number") ? Number(N) : N;
3168
+ _.onChange(S);
3163
3169
  },
3164
3170
  className: te.selectInput,
3165
3171
  children: [
3166
- /* @__PURE__ */ s("option", { value: "", disabled: !0, hidden: !0, children: _(c || "selectOption") }),
3167
- h.map((v, N) => /* @__PURE__ */ s(
3172
+ /* @__PURE__ */ s("option", { value: "", disabled: !0, hidden: !0, children: y(c || "selectOption") }),
3173
+ g.map((w, N) => /* @__PURE__ */ s(
3168
3174
  "option",
3169
3175
  {
3170
- value: v.value,
3176
+ value: w.value,
3171
3177
  className: te.option,
3172
- children: _(v.label)
3178
+ children: y(w.label)
3173
3179
  },
3174
3180
  N
3175
3181
  ))
@@ -3188,7 +3194,7 @@ const Ee = (n) => n.render(a1(n)), l1 = "_errorMessage_1xiyb_2", c1 = {
3188
3194
  /* @__PURE__ */ s(
3189
3195
  be,
3190
3196
  {
3191
- errorMessage: (w = x.error) == null ? void 0 : w.message,
3197
+ errorMessage: (x = v.error) == null ? void 0 : x.message,
3192
3198
  errorColor: u
3193
3199
  }
3194
3200
  )
@@ -3196,9 +3202,9 @@ const Ee = (n) => n.render(a1(n)), l1 = "_errorMessage_1xiyb_2", c1 = {
3196
3202
  }
3197
3203
  }
3198
3204
  );
3199
- }, x1 = "_radioButtonContainer_1e994_2", w1 = "_wholeInputContainer_1e994_5", N1 = "_questionContainer_1e994_27", k1 = "_radioQuestion_1e994_59", B1 = "_inputContainer_1e994_63", S1 = "_radioInput_1e994_93", G = {
3200
- radioButtonContainer: x1,
3201
- wholeInputContainer: w1,
3205
+ }, w1 = "_radioButtonContainer_1e994_2", x1 = "_wholeInputContainer_1e994_5", N1 = "_questionContainer_1e994_27", k1 = "_radioQuestion_1e994_59", B1 = "_inputContainer_1e994_63", S1 = "_radioInput_1e994_93", G = {
3206
+ radioButtonContainer: w1,
3207
+ wholeInputContainer: x1,
3202
3208
  questionContainer: N1,
3203
3209
  radioQuestion: k1,
3204
3210
  inputContainer: B1,
@@ -3212,27 +3218,27 @@ const Ee = (n) => n.render(a1(n)), l1 = "_errorMessage_1xiyb_2", c1 = {
3212
3218
  errorColor: r = "red",
3213
3219
  options: l = [],
3214
3220
  multi: c = !1
3215
- } = n, { t: u } = k(), { control: m, trigger: h, clearErrors: _ } = d, f = ({ options: C, onChange: b, actualValue: x }) => {
3216
- if (c && x && x.length > 0) {
3217
- let w = x.filter((v) => v !== C);
3218
- b(w);
3221
+ } = n, { t: u } = k(), { control: m, trigger: g, clearErrors: y } = d, b = ({ options: h, onChange: _, actualValue: v }) => {
3222
+ if (c && v && v.length > 0) {
3223
+ let x = v.filter((w) => w !== h);
3224
+ _(x);
3219
3225
  }
3220
- }, g = ({ options: C, onChange: b, actualValue: x }) => {
3221
- c ? x && x.length > 0 ? b([...x, C]) : b([C]) : b(C);
3222
- }, y = ie(t);
3226
+ }, C = ({ options: h, onChange: _, actualValue: v }) => {
3227
+ c ? v && v.length > 0 ? _([...v, h]) : _([h]) : _(h);
3228
+ }, f = ie(t);
3223
3229
  return L(() => {
3224
- y.current !== t && (t ? h(i) : _(i), y.current = t);
3225
- }, [t, i, h, _]), /* @__PURE__ */ s(
3230
+ f.current !== t && (t ? g(i) : y(i), f.current = t);
3231
+ }, [t, i, g, y]), /* @__PURE__ */ s(
3226
3232
  Ee,
3227
3233
  {
3228
3234
  control: m,
3229
3235
  name: i,
3230
3236
  rules: {
3231
- validate: (C) => t && (C == null || C === "") ? `${u(o)} ${u("errorMessages.required")}` : null
3237
+ validate: (h) => t && (h == null || h === "") ? `${u(o)} ${u("errorMessages.required")}` : null
3232
3238
  },
3233
3239
  render: ({
3234
- formState: { errors: C },
3235
- field: { onChange: b, onBlur: x, value: w, ref: v },
3240
+ formState: { errors: h },
3241
+ field: { onChange: _, onBlur: v, value: x, ref: w },
3236
3242
  fieldState: N
3237
3243
  }) => {
3238
3244
  var S;
@@ -3263,7 +3269,7 @@ const Ee = (n) => n.render(a1(n)), l1 = "_errorMessage_1xiyb_2", c1 = {
3263
3269
  disabled: de = !1,
3264
3270
  italicLabel: ue
3265
3271
  }, R) => {
3266
- const q = w && c ? w.isArray && (w == null ? void 0 : w.length) > 0 && w.some((E) => E === j) : w === j;
3272
+ const q = x && c ? x.isArray && (x == null ? void 0 : x.length) > 0 && x.some((E) => E === j) : x === j;
3267
3273
  return /* @__PURE__ */ p("label", { children: [
3268
3274
  /* @__PURE__ */ s(
3269
3275
  "input",
@@ -3271,15 +3277,15 @@ const Ee = (n) => n.render(a1(n)), l1 = "_errorMessage_1xiyb_2", c1 = {
3271
3277
  type: "radio",
3272
3278
  checked: q,
3273
3279
  onChange: () => {
3274
- c ? q ? f({
3275
- actualValue: w,
3280
+ c ? q ? b({
3281
+ actualValue: x,
3276
3282
  options: l,
3277
- onChange: b
3278
- }) : g({
3279
- actualValue: w,
3283
+ onChange: _
3284
+ }) : C({
3285
+ actualValue: x,
3280
3286
  options: l,
3281
- onChange: b
3282
- }) : b(j);
3287
+ onChange: _
3288
+ }) : _(j);
3283
3289
  },
3284
3290
  className: G.radioInput
3285
3291
  }
@@ -3402,37 +3408,37 @@ const Ee = (n) => n.render(a1(n)), l1 = "_errorMessage_1xiyb_2", c1 = {
3402
3408
  }) => {
3403
3409
  const {
3404
3410
  handleSubmit: m,
3405
- control: h,
3406
- formState: { errors: _ }
3407
- } = n, { t: f } = k();
3411
+ control: g,
3412
+ formState: { errors: y }
3413
+ } = n, { t: b } = k();
3408
3414
  return (
3409
3415
  /* "handleSubmit" will validate your inputs before invoking "onSubmit" */
3410
3416
  /* @__PURE__ */ p("form", { className: Se.formContainer, onSubmit: m(u), children: [
3411
- /* @__PURE__ */ s("div", { className: Se.formObjectContainer, children: d && d.map((g, y) => {
3412
- const { inputs: C } = g;
3413
- return g.category ? i ? /* @__PURE__ */ s(
3417
+ /* @__PURE__ */ s("div", { className: Se.formObjectContainer, children: d && d.map((C, f) => {
3418
+ const { inputs: h } = C;
3419
+ return C.category ? i ? /* @__PURE__ */ s(
3414
3420
  "div",
3415
3421
  {
3416
3422
  style: {
3417
- display: c && g.categoryId !== c ? "none" : "inherit",
3423
+ display: c && C.categoryId !== c ? "none" : "inherit",
3418
3424
  width: "100%"
3419
3425
  },
3420
3426
  children: /* @__PURE__ */ s(
3421
3427
  i,
3422
3428
  {
3423
- title: g.category,
3429
+ title: C.category,
3424
3430
  children: /* @__PURE__ */ s(
3425
3431
  De,
3426
3432
  {
3427
- inputs: C,
3428
- control: h,
3433
+ inputs: h,
3434
+ control: g,
3429
3435
  inputContainerStyles: o,
3430
3436
  errorColor: a,
3431
3437
  formInstance: n
3432
3438
  }
3433
3439
  )
3434
3440
  },
3435
- `${g.category}${y}`
3441
+ `${C.category}${f}`
3436
3442
  )
3437
3443
  }
3438
3444
  ) : /* @__PURE__ */ p(
@@ -3440,16 +3446,16 @@ const Ee = (n) => n.render(a1(n)), l1 = "_errorMessage_1xiyb_2", c1 = {
3440
3446
  {
3441
3447
  style: {
3442
3448
  width: "100%",
3443
- display: c && g.categoryId !== c ? "none" : "flex",
3449
+ display: c && C.categoryId !== c ? "none" : "flex",
3444
3450
  flexDirection: "column"
3445
3451
  },
3446
3452
  children: [
3447
- /* @__PURE__ */ s("h2", { style: { marginBottom: 20 }, children: f(g.category) }),
3453
+ /* @__PURE__ */ s("h2", { style: { marginBottom: 20 }, children: b(C.category) }),
3448
3454
  /* @__PURE__ */ s("div", { style: { paddingTop: 50, width: "100%" }, children: /* @__PURE__ */ s(
3449
3455
  De,
3450
3456
  {
3451
- inputs: C,
3452
- control: h,
3457
+ inputs: h,
3458
+ control: g,
3453
3459
  inputContainerStyles: o,
3454
3460
  errorColor: a,
3455
3461
  reactHookFormInstance: n
@@ -3457,20 +3463,20 @@ const Ee = (n) => n.render(a1(n)), l1 = "_errorMessage_1xiyb_2", c1 = {
3457
3463
  ) })
3458
3464
  ]
3459
3465
  },
3460
- `${g.category}${y}`
3466
+ `${C.category}${f}`
3461
3467
  ) : /* @__PURE__ */ s("div", { style: { width: "100%" }, children: /* @__PURE__ */ s(
3462
3468
  De,
3463
3469
  {
3464
3470
  inputContainerStyles: o,
3465
- inputs: C,
3466
- control: h,
3471
+ inputs: h,
3472
+ control: g,
3467
3473
  errorColor: a,
3468
3474
  reactHookFormInstance: n
3469
3475
  }
3470
- ) }, `inputKey${y}`);
3476
+ ) }, `inputKey${f}`);
3471
3477
  }) }),
3472
3478
  /* @__PURE__ */ p("div", { className: Se.buttonContainer, children: [
3473
- /* @__PURE__ */ s(fe, { containerStyles: l, type: "submit", children: f(r) }),
3479
+ /* @__PURE__ */ s(fe, { containerStyles: l, type: "submit", children: b(r) }),
3474
3480
  /* @__PURE__ */ s(be, { errorMessage: t, errorColor: a })
3475
3481
  ] })
3476
3482
  ] })
@@ -3611,7 +3617,7 @@ export {
3611
3617
  X2 as Graphic,
3612
3618
  z1 as HeaderSection,
3613
3619
  C0 as IndicatorsList,
3614
- x0 as LangSelector,
3620
+ w0 as LangSelector,
3615
3621
  R0 as Legend,
3616
3622
  Pn as ListSelector,
3617
3623
  fn as LogInButton,