@tmf_ciclica/ciclicastorybook 1.1.84 → 1.1.86

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
@@ -3,13 +3,13 @@ import { jsxs as m, jsx as s, Fragment as Se } from "react/jsx-runtime";
3
3
  import * as te from "react";
4
4
  import B, { useState as D, useEffect as V, useMemo as he, useLayoutEffect as yt, useRef as $e } from "react";
5
5
  import e from "prop-types";
6
- import { useTranslation as N, Trans as Ve } from "react-i18next";
6
+ import { useTranslation as k, Trans as Ve } from "react-i18next";
7
7
  import { motion as Ae } from "framer-motion";
8
8
  import { create as _t } from "zustand";
9
9
  import * as Ee from "d3";
10
10
  import vt from "mapbox-gl";
11
11
  import { useSelector as wt, useDispatch as xt } from "react-redux";
12
- import Nt, { Source as kt, Layer as Bt, NavigationControl as St, Popup as Dt } from "react-map-gl/mapbox";
12
+ import kt, { Source as Nt, Layer as Bt, NavigationControl as St, Popup as Dt } from "react-map-gl/mapbox";
13
13
  import fe from "maplibre-gl";
14
14
  import { Protocol as Mt } from "pmtiles";
15
15
  import Lt, { Source as Ft, Layer as Tt, NavigationControl as $t, Popup as Vt } from "react-map-gl/maplibre";
@@ -40,9 +40,9 @@ const jt = "_ambitSelector_mcunf_2", qt = "_header_mcunf_13", zt = "_nameDateCon
40
40
  onClickFilters: i,
41
41
  onClickAmbit: t,
42
42
  isActive: r,
43
- activeColor: l,
43
+ activeColor: c,
44
44
  fontColor: a,
45
- moreInfo: c
45
+ moreInfo: l
46
46
  }) => {
47
47
  const { nom: u, created_at: h, id: g, isBeingProcessed: y } = n;
48
48
  return /* @__PURE__ */ m(
@@ -60,7 +60,7 @@ const jt = "_ambitSelector_mcunf_2", qt = "_header_mcunf_13", zt = "_nameDateCon
60
60
  src: r ? o2 : s2
61
61
  }
62
62
  ),
63
- /* @__PURE__ */ s("span", { style: { color: r ? l : a }, children: u })
63
+ /* @__PURE__ */ s("span", { style: { color: r ? c : a }, children: u })
64
64
  ] }),
65
65
  /* @__PURE__ */ s("div", { className: ne.ambitDate, children: h ? new Date(h).toLocaleDateString() : "" })
66
66
  ] }),
@@ -121,30 +121,30 @@ const je = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
121
121
  activeColor: i,
122
122
  nameLabel: t,
123
123
  dateLabel: r,
124
- newAmbitLabel: l = "New field",
124
+ newAmbitLabel: c = "New field",
125
125
  buttonContainerStyles: a = {},
126
- containerStyles: c = {},
126
+ containerStyles: l = {},
127
127
  onCLickNewAmbit: u = () => console.log("New ambit clicked"),
128
128
  onClickCopy: h = (f) => console.log(`Copy ambit: ${f}`),
129
129
  onCLickDelete: g = (f) => console.log(`Delete ambit: ${f}`),
130
130
  onClickFilters: y = (f) => console.log(`Filters clicked: ${f}`),
131
131
  onClickAmbit: C = (f) => console.log(`OnCLickAmbit: ${f}`)
132
132
  }) => {
133
- const { t: f } = N(), [_, p] = D(n);
133
+ const { t: f } = k(), [_, p] = D(n);
134
134
  V(() => {
135
135
  n && p(n);
136
136
  }, [n]);
137
137
  const b = (v) => {
138
138
  if (_ && _.length > 0) {
139
139
  let x = [..._];
140
- x.sort((w, k) => w[v].localeCompare(k[v])), p(x);
140
+ x.sort((w, N) => w[v].localeCompare(N[v])), p(x);
141
141
  }
142
142
  };
143
143
  return /* @__PURE__ */ m(
144
144
  "div",
145
145
  {
146
146
  className: z.ambitSelector,
147
- style: { color: o, ...c },
147
+ style: { color: o, ...l },
148
148
  children: [
149
149
  /* @__PURE__ */ m(
150
150
  "div",
@@ -186,7 +186,7 @@ const je = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
186
186
  style: { ...a },
187
187
  onClick: u,
188
188
  borderColor: "grey",
189
- children: f(l)
189
+ children: f(c)
190
190
  }
191
191
  ) })
192
192
  ]
@@ -228,7 +228,7 @@ const c2 = "_buttonsContainer_1audx_2", d2 = "_vertical_1audx_6", u2 = "_horizon
228
228
  bottom: f2,
229
229
  right: b2
230
230
  }, Y = ({ text: n, position: d, styleCustom: o = null }) => {
231
- const { t: i } = N();
231
+ const { t: i } = k();
232
232
  return /* @__PURE__ */ s("div", { className: `tooltip ${y2[d]}`, style: o, children: i(n) });
233
233
  };
234
234
  Y.propTypes = {
@@ -244,13 +244,13 @@ const _2 = ({
244
244
  useTooltip: t = !1,
245
245
  tooltipPosition: r = "top"
246
246
  }) => {
247
- const { t: l } = N();
247
+ const { t: c } = k();
248
248
  return /* @__PURE__ */ s(
249
249
  "div",
250
250
  {
251
251
  className: `${Z.buttonsContainer} ${d === "vertical" && Z.vertical}
252
252
  ${d === "horizontal" && Z.horizontal}`,
253
- children: n.map((a, c) => {
253
+ children: n.map((a, l) => {
254
254
  const {
255
255
  icon: u,
256
256
  activeIcon: h,
@@ -258,9 +258,9 @@ const _2 = ({
258
258
  name: y,
259
259
  onClick: C
260
260
  } = a, f = /* @__PURE__ */ m(Se, { children: [
261
- o && i === "left" && /* @__PURE__ */ s("span", { className: Z.buttonName, children: l(y) }),
262
- /* @__PURE__ */ s("img", { src: g ? h : u, alt: l(y) }),
263
- o && i === "right" && /* @__PURE__ */ s("span", { className: Z.buttonName, children: l(y) })
261
+ o && i === "left" && /* @__PURE__ */ s("span", { className: Z.buttonName, children: c(y) }),
262
+ /* @__PURE__ */ s("img", { src: g ? h : u, alt: c(y) }),
263
+ o && i === "right" && /* @__PURE__ */ s("span", { className: Z.buttonName, children: c(y) })
264
264
  ] });
265
265
  return /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
266
266
  /* @__PURE__ */ s(
@@ -273,7 +273,7 @@ const _2 = ({
273
273
  }
274
274
  ),
275
275
  t && /* @__PURE__ */ s(Y, { text: y, position: r })
276
- ] }, c);
276
+ ] }, l);
277
277
  })
278
278
  }
279
279
  );
@@ -306,23 +306,23 @@ const v2 = "_indicatorsCategory_1cu33_2", w2 = "_title_1cu33_5", be = {
306
306
  activeColor: t = "#F8A925",
307
307
  title: r = "Title",
308
308
  //Change the height only if the title is more than one line or you change title fontSize, otherwise should be 53px
309
- height: l = 53,
309
+ height: c = 53,
310
310
  //Adjust height if you change fontSize
311
311
  titleFontStyles: a,
312
- showBottomBar: c = !0,
312
+ showBottomBar: l = !0,
313
313
  titleMarginChildren: u = 25
314
314
  }) => {
315
- const { t: h } = N();
315
+ const { t: h } = k();
316
316
  return /* @__PURE__ */ m(
317
317
  Ae.div,
318
318
  {
319
319
  className: be.indicatorsCategory,
320
- initial: { height: `${l}px` },
321
- animate: { height: n ? "auto" : `${l}px` },
320
+ initial: { height: `${c}px` },
321
+ animate: { height: n ? "auto" : `${c}px` },
322
322
  transition: { duration: 0.4 },
323
323
  style: {
324
324
  backgroundColor: "white",
325
- borderBottom: n && c ? `1px solid ${t}` : "0px",
325
+ borderBottom: n && l ? `1px solid ${t}` : "0px",
326
326
  marginBottom: n ? "20px" : "0px"
327
327
  },
328
328
  children: [
@@ -357,9 +357,9 @@ W.propTypes = {
357
357
  showBottomBar: e.bool,
358
358
  titleFontStyles: e.object
359
359
  };
360
- const oi = () => /* @__PURE__ */ s("div", { children: "EditAmbit" }), x2 = "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", N2 = "_AppliedFiltersContainer_cokx9_2", k2 = "_AppliedFilterContent_cokx9_11", qe = {
361
- AppliedFiltersContainer: N2,
362
- AppliedFilterContent: k2
360
+ const oi = () => /* @__PURE__ */ s("div", { children: "EditAmbit" }), x2 = "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", k2 = "_AppliedFiltersContainer_cokx9_2", N2 = "_AppliedFilterContent_cokx9_11", qe = {
361
+ AppliedFiltersContainer: k2,
362
+ AppliedFilterContent: N2
363
363
  }, T = _t((n) => ({
364
364
  activeCategory: "",
365
365
  activeSubCategory: "",
@@ -368,7 +368,7 @@ const oi = () => /* @__PURE__ */ s("div", { children: "EditAmbit" }), x2 = "data
368
368
  fontColor: "#605B56",
369
369
  inputsColor: "#605B56"
370
370
  })), tt = ({ title: n, onClick: d, isOpen: o = !0, textColor: i = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
371
- const { t: l } = N(), { tematicalFiltersSelected: a } = T((u) => u), c = (u) => {
371
+ const { t: c } = k(), { tematicalFiltersSelected: a } = T((u) => u), l = (u) => {
372
372
  T.setState((h) => ({
373
373
  tematicalFiltersSelected: h.tematicalFiltersSelected.filter(
374
374
  (g) => g.code !== u
@@ -380,11 +380,11 @@ const oi = () => /* @__PURE__ */ s("div", { children: "EditAmbit" }), x2 = "data
380
380
  {
381
381
  isOpen: o,
382
382
  onClick: d,
383
- title: n ? l(n) : "Applied Filters",
383
+ title: n ? c(n) : "Applied Filters",
384
384
  activeColor: r,
385
385
  children: /* @__PURE__ */ s("div", { className: qe.AppliedFiltersContainer, children: a == null ? void 0 : a.map((u, h) => /* @__PURE__ */ m("div", { className: qe.AppliedFilterContent, style: { color: i, background: t }, children: [
386
- l(u.name),
387
- /* @__PURE__ */ s("img", { src: x2, alt: "CloseIcon", onClick: () => c(u.code), style: { cursor: "pointer" } })
386
+ c(u.name),
387
+ /* @__PURE__ */ s("img", { src: x2, alt: "CloseIcon", onClick: () => l(u.code), style: { cursor: "pointer" } })
388
388
  ] }, h)) })
389
389
  }
390
390
  );
@@ -404,13 +404,13 @@ tt.propTypes = {
404
404
  activeColor: e.string
405
405
  };
406
406
  const nt = ({ title: n, onClick: d, isOpen: o = !0, textColor: i = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
407
- const { t: l } = N(), { tematicalFiltersSelected: a } = T((c) => c);
407
+ const { t: c } = k(), { tematicalFiltersSelected: a } = T((l) => l);
408
408
  return /* @__PURE__ */ s(
409
409
  W,
410
410
  {
411
411
  isOpen: o,
412
412
  onClick: d,
413
- title: n ? l(n) : "Geographical Filters",
413
+ title: n ? c(n) : "Geographical Filters",
414
414
  activeColor: r,
415
415
  children: "A"
416
416
  }
@@ -433,7 +433,7 @@ const B2 = "_checkboxContainer_zld97_2", S2 = {
433
433
  indicator: i,
434
434
  value: t
435
435
  }) => {
436
- const { t: r } = N(), { title: l } = i || {}, { fontColor: a, inputsColor: c } = T((u) => u);
436
+ const { t: r } = k(), { title: c } = i || {}, { fontColor: a, inputsColor: l } = T((u) => u);
437
437
  return /* @__PURE__ */ m(
438
438
  "div",
439
439
  {
@@ -450,12 +450,12 @@ const B2 = "_checkboxContainer_zld97_2", S2 = {
450
450
  value: t,
451
451
  readOnly: !0,
452
452
  style: {
453
- border: `1.5px solid ${t ? c : a}`,
454
- backgroundColor: t ? c : "white"
453
+ border: `1.5px solid ${t ? l : a}`,
454
+ backgroundColor: t ? l : "white"
455
455
  }
456
456
  }
457
457
  ),
458
- /* @__PURE__ */ s("span", { className: "checkmark", children: r(l) })
458
+ /* @__PURE__ */ s("span", { className: "checkmark", children: r(c) })
459
459
  ]
460
460
  }
461
461
  );
@@ -517,18 +517,18 @@ let Le = function(n) {
517
517
  t.setState({ index: -1 }, t.onEnd(t.getKeyDownEventMap()));
518
518
  }, t.onMouseMove = (a) => {
519
519
  t.setState({ pending: !0 });
520
- const c = t.getMousePosition(a), u = t.getDiffPosition(c[0]), h = t.getValueFromPosition(u);
520
+ const l = t.getMousePosition(a), u = t.getDiffPosition(l[0]), h = t.getValueFromPosition(u);
521
521
  t.move(h);
522
522
  }, t.onTouchMove = (a) => {
523
523
  if (a.touches.length > 1) return;
524
524
  t.setState({ pending: !0 });
525
- const c = t.getTouchPosition(a);
525
+ const l = t.getTouchPosition(a);
526
526
  if (t.isScrolling === void 0) {
527
- const g = c[0] - t.startPosition[0], y = c[1] - t.startPosition[1];
527
+ const g = l[0] - t.startPosition[0], y = l[1] - t.startPosition[1];
528
528
  t.isScrolling = Math.abs(y) > Math.abs(g);
529
529
  }
530
530
  if (t.isScrolling) return void t.setState({ index: -1 });
531
- const u = t.getDiffPosition(c[0]), h = t.getValueFromPosition(u);
531
+ const u = t.getDiffPosition(l[0]), h = t.getValueFromPosition(u);
532
532
  t.move(h);
533
533
  }, t.onKeyDown = (a) => {
534
534
  if (!(a.ctrlKey || a.shiftKey || a.altKey || a.metaKey)) switch (t.setState({ pending: !0 }), a.key) {
@@ -559,51 +559,51 @@ let Le = function(n) {
559
559
  }, t.onSliderMouseDown = (a) => {
560
560
  if (!t.props.disabled && a.button !== 2) {
561
561
  if (t.setState({ pending: !0 }), !t.props.snapDragDisabled) {
562
- const c = t.getMousePosition(a);
563
- t.forceValueFromPosition(c[0], (u) => {
564
- t.start(u, c[0]), de(t.getMouseEventMap());
562
+ const l = t.getMousePosition(a);
563
+ t.forceValueFromPosition(l[0], (u) => {
564
+ t.start(u, l[0]), de(t.getMouseEventMap());
565
565
  });
566
566
  }
567
567
  ye(a);
568
568
  }
569
569
  }, t.onSliderClick = (a) => {
570
570
  if (!t.props.disabled && t.props.onSliderClick && !t.hasMoved) {
571
- const c = t.getMousePosition(a), u = H(t.calcValue(t.calcOffsetFromPosition(c[0])), t.props);
571
+ const l = t.getMousePosition(a), u = H(t.calcValue(t.calcOffsetFromPosition(l[0])), t.props);
572
572
  t.props.onSliderClick(u);
573
573
  }
574
- }, t.createOnKeyDown = (a) => (c) => {
575
- t.props.disabled || (t.start(a), de(t.getKeyDownEventMap()), ye(c));
576
- }, t.createOnMouseDown = (a) => (c) => {
577
- if (t.props.disabled || c.button === 2) return;
574
+ }, t.createOnKeyDown = (a) => (l) => {
575
+ t.props.disabled || (t.start(a), de(t.getKeyDownEventMap()), ye(l));
576
+ }, t.createOnMouseDown = (a) => (l) => {
577
+ if (t.props.disabled || l.button === 2) return;
578
578
  t.setState({ pending: !0 });
579
- const u = t.getMousePosition(c);
580
- t.start(a, u[0]), de(t.getMouseEventMap()), ye(c);
581
- }, t.createOnTouchStart = (a) => (c) => {
582
- if (t.props.disabled || c.touches.length > 1) return;
579
+ const u = t.getMousePosition(l);
580
+ t.start(a, u[0]), de(t.getMouseEventMap()), ye(l);
581
+ }, t.createOnTouchStart = (a) => (l) => {
582
+ if (t.props.disabled || l.touches.length > 1) return;
583
583
  t.setState({ pending: !0 });
584
- const u = t.getTouchPosition(c);
584
+ const u = t.getTouchPosition(l);
585
585
  t.startPosition = u, t.isScrolling = void 0, t.start(a, u[0]), de(t.getTouchEventMap()), function(h) {
586
586
  h.stopPropagation && h.stopPropagation();
587
- }(c);
587
+ }(l);
588
588
  }, t.handleResize = () => {
589
589
  const a = window.setTimeout(() => {
590
590
  t.pendingResizeTimeouts.shift(), t.resize();
591
591
  }, 0);
592
592
  t.pendingResizeTimeouts.push(a);
593
- }, t.renderThumb = (a, c) => {
594
- const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), h = { ref: (y) => {
595
- t["thumb" + c] = y;
596
- }, 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 }, g = { index: c, value: ce(t.state.value), valueNow: t.state.value[c] };
593
+ }, t.renderThumb = (a, l) => {
594
+ const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + l + " " + (t.state.index === l ? t.props.thumbActiveClassName : ""), h = { ref: (y) => {
595
+ t["thumb" + l] = y;
596
+ }, key: t.props.thumbClassName + "-" + l, className: u, style: a, onMouseDown: t.createOnMouseDown(l), onTouchStart: t.createOnTouchStart(l), onFocus: t.createOnKeyDown(l), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[l], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[l] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[l] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, g = { index: l, value: ce(t.state.value), valueNow: t.state.value[l] };
597
597
  return t.props.ariaValuetext && (h["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(g)), t.props.renderThumb(h, g);
598
- }, t.renderTrack = (a, c, u) => {
599
- const h = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(c, t.state.upperBound - u) }, g = { index: a, value: ce(t.state.value) };
598
+ }, t.renderTrack = (a, l, u) => {
599
+ const h = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(l, t.state.upperBound - u) }, g = { index: a, value: ce(t.state.value) };
600
600
  return t.props.renderTrack(h, g);
601
601
  };
602
602
  let r = _e(i.value);
603
603
  r.length || (r = _e(i.defaultValue)), t.pendingResizeTimeouts = [];
604
- const l = [];
605
- for (let a = 0; a < r.length; a += 1) r[a] = H(r[a], i), l.push(a);
606
- return t.resizeObserver = null, t.resizeElementRef = B.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: r, zIndices: l }, t;
604
+ const c = [];
605
+ for (let a = 0; a < r.length; a += 1) r[a] = H(r[a], i), c.push(a);
606
+ return t.resizeObserver = null, t.resizeElementRef = B.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: r, zIndices: c }, t;
607
607
  }
608
608
  D2(d, n);
609
609
  var o = d.prototype;
@@ -611,7 +611,7 @@ let Le = function(n) {
611
611
  typeof window < "u" && (this.resizeObserver = new ResizeObserver(this.handleResize), this.resizeObserver.observe(this.resizeElementRef.current), this.resize());
612
612
  }, d.getDerivedStateFromProps = function(i, t) {
613
613
  const r = _e(i.value);
614
- return r.length ? t.pending ? null : { value: r.map((l) => H(l, i)) } : null;
614
+ return r.length ? t.pending ? null : { value: r.map((c) => H(c, i)) } : null;
615
615
  }, o.componentDidUpdate = function() {
616
616
  this.state.upperBound === 0 && this.resize();
617
617
  }, o.componentWillUnmount = function() {
@@ -626,10 +626,10 @@ let Le = function(n) {
626
626
  return ce(this.state.value);
627
627
  }, o.getClosestIndex = function(i) {
628
628
  let t = Number.MAX_VALUE, r = -1;
629
- const { value: l } = this.state, a = l.length;
630
- for (let c = 0; c < a; c += 1) {
631
- const u = this.calcOffset(l[c]), h = Math.abs(i - u);
632
- h < t && (t = h, r = c);
629
+ const { value: c } = this.state, a = c.length;
630
+ for (let l = 0; l < a; l += 1) {
631
+ const u = this.calcOffset(c[l]), h = Math.abs(i - u);
632
+ h < t && (t = h, r = l);
633
633
  }
634
634
  return r;
635
635
  }, o.getMousePosition = function(i) {
@@ -652,7 +652,7 @@ let Le = function(n) {
652
652
  }, o.resize = function() {
653
653
  const { slider: i, thumb0: t } = this;
654
654
  if (!i || !t) return;
655
- const r = this.sizeKey(), l = i.getBoundingClientRect(), a = i[r], c = l[this.posMaxKey()], u = l[this.posMinKey()], h = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], g = a - h, y = Math.abs(c - u);
655
+ const r = this.sizeKey(), c = i.getBoundingClientRect(), a = i[r], l = c[this.posMaxKey()], u = c[this.posMinKey()], h = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], g = a - h, y = Math.abs(l - u);
656
656
  this.state.upperBound === g && this.state.sliderLength === y && this.state.thumbSize === h || this.setState({ upperBound: g, sliderLength: y, thumbSize: h });
657
657
  }, o.calcOffset = function(i) {
658
658
  const t = this.props.max - this.props.min;
@@ -660,15 +660,15 @@ let Le = function(n) {
660
660
  }, o.calcValue = function(i) {
661
661
  return i / this.state.upperBound * (this.props.max - this.props.min) + this.props.min;
662
662
  }, o.calcOffsetFromPosition = function(i) {
663
- const { slider: t } = this, r = t.getBoundingClientRect(), l = r[this.posMaxKey()], a = r[this.posMinKey()];
664
- let c = i - (window["page" + this.axisKey() + "Offset"] + (this.props.invert ? l : a));
665
- return this.props.invert && (c = this.state.sliderLength - c), c -= this.state.thumbSize / 2, c;
663
+ const { slider: t } = this, r = t.getBoundingClientRect(), c = r[this.posMaxKey()], a = r[this.posMinKey()];
664
+ let l = i - (window["page" + this.axisKey() + "Offset"] + (this.props.invert ? c : a));
665
+ return this.props.invert && (l = this.state.sliderLength - l), l -= this.state.thumbSize / 2, l;
666
666
  }, o.forceValueFromPosition = function(i, t) {
667
- const r = this.calcOffsetFromPosition(i), l = this.getClosestIndex(r), a = H(this.calcValue(r), this.props), c = this.state.value.slice();
668
- c[l] = a;
669
- for (let u = 0; u < c.length - 1; u += 1) if (c[u + 1] - c[u] < this.props.minDistance) return;
670
- this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value: c }, () => {
671
- t(l), this.fireChangeEvent("onChange");
667
+ const r = this.calcOffsetFromPosition(i), c = this.getClosestIndex(r), a = H(this.calcValue(r), this.props), l = this.state.value.slice();
668
+ l[c] = a;
669
+ for (let u = 0; u < l.length - 1; u += 1) if (l[u + 1] - l[u] < this.props.minDistance) return;
670
+ this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value: l }, () => {
671
+ t(c), this.fireChangeEvent("onChange");
672
672
  });
673
673
  }, o.clearPendingResizeTimeouts = function() {
674
674
  do {
@@ -678,8 +678,8 @@ let Le = function(n) {
678
678
  }, o.start = function(i, t) {
679
679
  const r = this["thumb" + i];
680
680
  r && r.focus();
681
- const { zIndices: l } = this.state;
682
- l.splice(l.indexOf(i), 1), l.push(i), this.setState((a) => ({ startValue: a.value[i], startPosition: t !== void 0 ? t : a.startPosition, index: i, zIndices: l }));
681
+ const { zIndices: c } = this.state;
682
+ c.splice(c.indexOf(i), 1), c.push(i), this.setState((a) => ({ startValue: a.value[i], startPosition: t !== void 0 ? t : a.startPosition, index: i, zIndices: c }));
683
683
  }, o.moveUpByStep = function(i) {
684
684
  i === void 0 && (i = this.props.step);
685
685
  const t = this.state.value[this.state.index], r = H(this.props.invert && this.props.orientation === "horizontal" ? t - i : t + i, this.props);
@@ -689,36 +689,36 @@ let Le = function(n) {
689
689
  const t = this.state.value[this.state.index], r = H(this.props.invert && this.props.orientation === "horizontal" ? t + i : t - i, this.props);
690
690
  this.move(Math.max(r, this.props.min));
691
691
  }, o.move = function(i) {
692
- const t = this.state.value.slice(), { index: r } = this.state, { length: l } = t, a = t[r];
692
+ const t = this.state.value.slice(), { index: r } = this.state, { length: c } = t, a = t[r];
693
693
  if (i === a) return;
694
694
  this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
695
- const { pearling: c, max: u, min: h, minDistance: g } = this.props;
696
- if (!c) {
695
+ const { pearling: l, max: u, min: h, minDistance: g } = this.props;
696
+ if (!l) {
697
697
  if (r > 0) {
698
698
  const y = t[r - 1];
699
699
  i < y + g && (i = y + g);
700
700
  }
701
- if (r < l - 1) {
701
+ if (r < c - 1) {
702
702
  const y = t[r + 1];
703
703
  i > y - g && (i = y - g);
704
704
  }
705
705
  }
706
- t[r] = i, c && l > 1 && (i > a ? (this.pushSucceeding(t, g, r), function(y, C, f, _) {
706
+ t[r] = i, l && c > 1 && (i > a ? (this.pushSucceeding(t, g, r), function(y, C, f, _) {
707
707
  for (let p = 0; p < y; p += 1) {
708
708
  const b = _ - p * f;
709
709
  C[y - 1 - p] > b && (C[y - 1 - p] = b);
710
710
  }
711
- }(l, t, g, u)) : i < a && (this.pushPreceding(t, g, r), function(y, C, f, _) {
711
+ }(c, t, g, u)) : i < a && (this.pushPreceding(t, g, r), function(y, C, f, _) {
712
712
  for (let p = 0; p < y; p += 1) {
713
713
  const b = _ + p * f;
714
714
  C[p] < b && (C[p] = b);
715
715
  }
716
- }(l, t, g, h))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
716
+ }(c, t, g, h))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
717
717
  }, o.pushSucceeding = function(i, t, r) {
718
- let l, a;
719
- for (l = r, a = i[l] + t; i[l + 1] !== null && a > i[l + 1]; l += 1, a = i[l] + t) i[l + 1] = Me(a, this.props);
718
+ let c, a;
719
+ for (c = r, a = i[c] + t; i[c + 1] !== null && a > i[c + 1]; c += 1, a = i[c] + t) i[c + 1] = Me(a, this.props);
720
720
  }, o.pushPreceding = function(i, t, r) {
721
- for (let l = r, a = i[l] - t; i[l - 1] !== null && a < i[l - 1]; l -= 1, a = i[l] - t) i[l - 1] = Me(a, this.props);
721
+ for (let c = r, a = i[c] - t; i[c - 1] !== null && a < i[c - 1]; c -= 1, a = i[c] - t) i[c - 1] = Me(a, this.props);
722
722
  }, o.axisKey = function() {
723
723
  return this.props.orientation === "vertical" ? "Y" : "X";
724
724
  }, o.orthogonalAxisKey = function() {
@@ -743,28 +743,28 @@ let Le = function(n) {
743
743
  }, o.renderThumbs = function(i) {
744
744
  const { length: t } = i, r = [];
745
745
  for (let a = 0; a < t; a += 1) r[a] = this.buildThumbStyle(i[a], a);
746
- const l = [];
747
- for (let a = 0; a < t; a += 1) l[a] = this.renderThumb(r[a], a);
748
- return l;
746
+ const c = [];
747
+ for (let a = 0; a < t; a += 1) c[a] = this.renderThumb(r[a], a);
748
+ return c;
749
749
  }, o.renderTracks = function(i) {
750
750
  const t = [], r = i.length - 1;
751
751
  t.push(this.renderTrack(0, 0, i[0]));
752
- for (let l = 0; l < r; l += 1) t.push(this.renderTrack(l + 1, i[l], i[l + 1]));
752
+ for (let c = 0; c < r; c += 1) t.push(this.renderTrack(c + 1, i[c], i[c + 1]));
753
753
  return t.push(this.renderTrack(r + 1, i[r], this.state.upperBound)), t;
754
754
  }, o.renderMarks = function() {
755
755
  let { marks: i } = this.props;
756
756
  const t = this.props.max - this.props.min + 1;
757
- return typeof i == "boolean" ? i = Array.from({ length: t }).map((r, l) => l) : typeof i == "number" && (i = Array.from({ length: t }).map((r, l) => l).filter((r) => r % i == 0)), i.map(parseFloat).sort((r, l) => r - l).map((r) => {
758
- const l = this.calcOffset(r), a = { key: r, className: this.props.markClassName, style: this.buildMarkStyle(l) };
757
+ return typeof i == "boolean" ? i = Array.from({ length: t }).map((r, c) => c) : typeof i == "number" && (i = Array.from({ length: t }).map((r, c) => c).filter((r) => r % i == 0)), i.map(parseFloat).sort((r, c) => r - c).map((r) => {
758
+ const c = this.calcOffset(r), a = { key: r, className: this.props.markClassName, style: this.buildMarkStyle(c) };
759
759
  return this.props.renderMark(a);
760
760
  });
761
761
  }, o.render = function() {
762
762
  const i = [], { value: t } = this.state, r = t.length;
763
763
  for (let u = 0; u < r; u += 1) i[u] = this.calcOffset(t[u], u);
764
- const l = this.props.withTracks ? this.renderTracks(i) : null, a = this.renderThumbs(i), c = this.props.marks ? this.renderMarks() : null;
764
+ const c = this.props.withTracks ? this.renderTracks(i) : null, a = this.renderThumbs(i), l = this.props.marks ? this.renderMarks() : null;
765
765
  return B.createElement("div", { ref: (u) => {
766
766
  this.slider = u, this.resizeElementRef.current = u;
767
- }, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, l, a, c);
767
+ }, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, c, a, l);
768
768
  }, d;
769
769
  }(B.Component);
770
770
  Le.displayName = "ReactSlider", Le.defaultProps = { min: 0, max: 100, step: 1, pageFn: (n) => 10 * n, minDistance: 0, defaultValue: 0, orientation: "horizontal", className: "slider", thumbClassName: "thumb", thumbActiveClassName: "active", trackClassName: "track", markClassName: "mark", withTracks: !0, pearling: !1, disabled: !1, snapDragDisabled: !1, invert: !1, marks: [], renderThumb: (n) => B.createElement("div", n), renderTrack: (n) => B.createElement("div", n), renderMark: (n) => B.createElement("span", n) };
@@ -783,10 +783,10 @@ const L2 = "_container_15vgv_2", F2 = "_unitLabel_15vgv_9", T2 = "_slider_15vgv_
783
783
  onChange: i,
784
784
  width: t = 300,
785
785
  unit: r,
786
- fontColor: l = "#605B56",
786
+ fontColor: c = "#605B56",
787
787
  defaultValue: a
788
788
  }) => {
789
- const { t: c } = N(), [u, h] = D([n, d]), g = (y) => {
789
+ const { t: l } = k(), [u, h] = D([n, d]), g = (y) => {
790
790
  h(y), i == null || i({ min: y[0], max: y[1] });
791
791
  };
792
792
  return V(() => {
@@ -795,9 +795,9 @@ const L2 = "_container_15vgv_2", F2 = "_unitLabel_15vgv_9", T2 = "_slider_15vgv_
795
795
  "div",
796
796
  {
797
797
  className: Q.container,
798
- style: { width: `${t}px`, color: `${l}` },
798
+ style: { width: `${t}px`, color: `${c}` },
799
799
  children: [
800
- /* @__PURE__ */ s("div", { className: Q.unitLabel, children: /* @__PURE__ */ s("span", { children: c(r) }) }),
800
+ /* @__PURE__ */ s("div", { className: Q.unitLabel, children: /* @__PURE__ */ s("span", { children: l(r) }) }),
801
801
  /* @__PURE__ */ s(
802
802
  M2,
803
803
  {
@@ -847,9 +847,9 @@ const I2 = "_tematicalFiltersInputContainer_1vm1r_2", O2 = "_inputTypeContainer_
847
847
  const [o, i] = D(), {
848
848
  type: t,
849
849
  name: r,
850
- values: l,
850
+ values: c,
851
851
  minValue: a,
852
- maxValue: c,
852
+ maxValue: l,
853
853
  unit: u,
854
854
  step: h
855
855
  } = n || {}, g = he(
@@ -865,7 +865,7 @@ const I2 = "_tematicalFiltersInputContainer_1vm1r_2", O2 = "_inputTypeContainer_
865
865
  inputsColor: p
866
866
  } = T((x) => x), b = (x) => {
867
867
  if (x) {
868
- const { min: w, max: k, valueClicked: L, allValues: F } = x || {}, { code: q, type: ae } = n || {}, le = y ? "abs" : g ? "cat" : "both";
868
+ const { min: w, max: N, valueClicked: L, allValues: F } = x || {}, { code: q, type: ae } = n || {}, le = y ? "abs" : g ? "cat" : "both";
869
869
  let R = q[0];
870
870
  ae == "both" && (R = le == "cat" ? q[1] : q[0]), le == "cat" ? T.setState((P) => {
871
871
  let E = P.tematicalFiltersSelected.find(
@@ -902,7 +902,7 @@ const I2 = "_tematicalFiltersInputContainer_1vm1r_2", O2 = "_inputTypeContainer_
902
902
  let E = P.tematicalFiltersSelected.find(
903
903
  ($) => $.code === R
904
904
  );
905
- if (w == n.minValue && k == n.maxValue)
905
+ if (w == n.minValue && N == n.maxValue)
906
906
  return {
907
907
  tematicalFiltersSelected: P.tematicalFiltersSelected.filter(
908
908
  ($) => $.code !== R
@@ -910,7 +910,7 @@ const I2 = "_tematicalFiltersInputContainer_1vm1r_2", O2 = "_inputTypeContainer_
910
910
  };
911
911
  if (E) {
912
912
  let $ = { ...E };
913
- return $.min = w, $.max = k, {
913
+ return $.min = w, $.max = N, {
914
914
  tematicalFiltersSelected: P.tematicalFiltersSelected.map(
915
915
  (I) => I.code === R ? $ : I
916
916
  )
@@ -919,7 +919,7 @@ const I2 = "_tematicalFiltersInputContainer_1vm1r_2", O2 = "_inputTypeContainer_
919
919
  return {
920
920
  tematicalFiltersSelected: [
921
921
  ...C,
922
- { type: "abs", code: R, min: w, max: k, name: n.name }
922
+ { type: "abs", code: R, min: w, max: N, name: n.name }
923
923
  ]
924
924
  };
925
925
  });
@@ -994,14 +994,14 @@ const I2 = "_tematicalFiltersInputContainer_1vm1r_2", O2 = "_inputTypeContainer_
994
994
  ]
995
995
  }
996
996
  ),
997
- g && /* @__PURE__ */ s("div", { className: ue.checkboxContainer, children: l.map((x, w) => {
998
- var k;
997
+ g && /* @__PURE__ */ s("div", { className: ue.checkboxContainer, children: c.map((x, w) => {
998
+ var N;
999
999
  return /* @__PURE__ */ s(
1000
1000
  it,
1001
1001
  {
1002
- onClick: () => b({ valueClicked: w, allValues: l }),
1002
+ onClick: () => b({ valueClicked: w, allValues: c }),
1003
1003
  indicator: x,
1004
- value: ((k = v[n.code[t == "both" ? 1 : 0]]) == null ? void 0 : k.has(w)) || !v[n.code[t == "both" ? 1 : 0]]
1004
+ value: ((N = v[n.code[t == "both" ? 1 : 0]]) == null ? void 0 : N.has(w)) || !v[n.code[t == "both" ? 1 : 0]]
1005
1005
  },
1006
1006
  `checkbox-${w}`
1007
1007
  );
@@ -1011,7 +1011,7 @@ const I2 = "_tematicalFiltersInputContainer_1vm1r_2", O2 = "_inputTypeContainer_
1011
1011
  {
1012
1012
  onChange: b,
1013
1013
  min: a,
1014
- max: c,
1014
+ max: l,
1015
1015
  unit: u,
1016
1016
  defaultValue: v[n.code[0]] ? v[n.code[0]] : "",
1017
1017
  step: h
@@ -1042,15 +1042,15 @@ const st = ({
1042
1042
  activeColor: o
1043
1043
  //onChangeBothType,
1044
1044
  }) => {
1045
- const { activeSubcategory: i } = T((l) => l), { name: t, indicators: r } = n || {};
1045
+ const { activeSubcategory: i } = T((c) => c), { name: t, indicators: r } = n || {};
1046
1046
  return /* @__PURE__ */ s(
1047
1047
  W,
1048
1048
  {
1049
1049
  title: t,
1050
1050
  isOpen: i == `id${t}`,
1051
1051
  onClick: () => {
1052
- T.setState((l) => ({
1053
- activeSubcategory: l.activeSubcategory === `id${t}` ? "" : `id${t}`
1052
+ T.setState((c) => ({
1053
+ activeSubcategory: c.activeSubcategory === `id${t}` ? "" : `id${t}`
1054
1054
  }));
1055
1055
  },
1056
1056
  titleFontStyles: { fontSize: 16, fontWeight: 400 },
@@ -1059,10 +1059,10 @@ const st = ({
1059
1059
  height: 48,
1060
1060
  color: d,
1061
1061
  activeColor: o,
1062
- children: r == null ? void 0 : r.map((l, a) => /* @__PURE__ */ s(
1062
+ children: r == null ? void 0 : r.map((c, a) => /* @__PURE__ */ s(
1063
1063
  Ie,
1064
1064
  {
1065
- indicator: l,
1065
+ indicator: c,
1066
1066
  fontColor: d,
1067
1067
  activeColor: o
1068
1068
  },
@@ -1089,7 +1089,7 @@ const rt = ({
1089
1089
  // onChangeBothType,
1090
1090
  activeColor: d
1091
1091
  }) => {
1092
- const { name: o, subcategories: i, indicators: t } = n || {}, { activeCategory: r, fontColor: l } = T((a) => a);
1092
+ const { name: o, subcategories: i, indicators: t } = n || {}, { activeCategory: r, fontColor: c } = T((a) => a);
1093
1093
  return n && /* @__PURE__ */ s(
1094
1094
  W,
1095
1095
  {
@@ -1102,24 +1102,24 @@ const rt = ({
1102
1102
  isOpen: r === `id${o}`,
1103
1103
  titleFontStyles: { fontSize: 18, fontWeight: "bold" },
1104
1104
  showBottomBar: !1,
1105
- color: l,
1105
+ color: c,
1106
1106
  activeColor: d,
1107
- children: i ? i.map((a, c) => /* @__PURE__ */ s(
1107
+ children: i ? i.map((a, l) => /* @__PURE__ */ s(
1108
1108
  st,
1109
1109
  {
1110
1110
  subcategory: a,
1111
- fontColor: l,
1111
+ fontColor: c,
1112
1112
  activeColor: d
1113
1113
  },
1114
- `subcategory-${c}`
1115
- )) : t && t.map((a, c) => /* @__PURE__ */ s(
1114
+ `subcategory-${l}`
1115
+ )) : t && t.map((a, l) => /* @__PURE__ */ s(
1116
1116
  Ie,
1117
1117
  {
1118
1118
  indicator: a,
1119
- fontColor: l,
1119
+ fontColor: c,
1120
1120
  activeColor: d
1121
1121
  },
1122
- `indicator-${c}`
1122
+ `indicator-${l}`
1123
1123
  ))
1124
1124
  }
1125
1125
  );
@@ -1142,7 +1142,7 @@ const at = ({
1142
1142
  inputsColor: t = "#605B56",
1143
1143
  activeColor: r
1144
1144
  }) => {
1145
- const { tematicalFiltersSelected: l } = T((c) => c), { t: a } = N();
1145
+ const { tematicalFiltersSelected: c } = T((l) => l), { t: a } = k();
1146
1146
  return V(() => {
1147
1147
  i && T.setState(() => ({ fontColor: i }));
1148
1148
  }, [i]), V(() => {
@@ -1154,10 +1154,10 @@ const at = ({
1154
1154
  title: o ? a(o) : "Tematical filters",
1155
1155
  color: i,
1156
1156
  activeColor: r,
1157
- children: n == null ? void 0 : n.map((c, u) => /* @__PURE__ */ s(
1157
+ children: n == null ? void 0 : n.map((l, u) => /* @__PURE__ */ s(
1158
1158
  rt,
1159
1159
  {
1160
- category: c,
1160
+ category: l,
1161
1161
  fontColor: i,
1162
1162
  activeColor: r
1163
1163
  },
@@ -1189,9 +1189,9 @@ const E2 = "_FiltersAmbitContainer_1g9xx_2", j2 = "_FiltersAmbitHeader_1g9xx_7",
1189
1189
  indicators: i,
1190
1190
  activeColor: t,
1191
1191
  textColor: r,
1192
- backgroundColor: l,
1192
+ backgroundColor: c,
1193
1193
  onChangeAppliedFilters: a,
1194
- saveAmbit: c,
1194
+ saveAmbit: l,
1195
1195
  namePlaceholder: u,
1196
1196
  descPlaceholder: h,
1197
1197
  filtersTypes: g = ["geographical", "tematical"],
@@ -1199,7 +1199,7 @@ const E2 = "_FiltersAmbitContainer_1g9xx_2", j2 = "_FiltersAmbitHeader_1g9xx_7",
1199
1199
  onlyFilters: C = !1
1200
1200
  //usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
1201
1201
  }) => {
1202
- const { t: f } = N(), { tematicalFiltersSelected: _ } = T((F) => F), [p, b] = D(n || null), [v, x] = D(d || null), [w, k] = D(!1);
1202
+ const { t: f } = k(), { tematicalFiltersSelected: _ } = T((F) => F), [p, b] = D(n || null), [v, x] = D(d || null), [w, N] = D(!1);
1203
1203
  V(() => {
1204
1204
  o && o.length > 0 && T.setState((F) => ({
1205
1205
  tematicalFiltersSelected: o
@@ -1208,7 +1208,7 @@ const E2 = "_FiltersAmbitContainer_1g9xx_2", j2 = "_FiltersAmbitHeader_1g9xx_7",
1208
1208
  console.log("filtersSelected changed: ", _), a(_);
1209
1209
  }, [_]);
1210
1210
  const L = () => {
1211
- p ? c({ name: p, description: v }) : k(!0);
1211
+ p ? l({ name: p, description: v }) : N(!0);
1212
1212
  };
1213
1213
  return /* @__PURE__ */ m("div", { className: X.FiltersAmbitContainer, children: [
1214
1214
  !C && /* @__PURE__ */ m("div", { className: X.FiltersAmbitHeader, children: [
@@ -1217,7 +1217,7 @@ const E2 = "_FiltersAmbitContainer_1g9xx_2", j2 = "_FiltersAmbitHeader_1g9xx_7",
1217
1217
  {
1218
1218
  type: "text",
1219
1219
  onChange: (F) => {
1220
- k(!1), b(F.target.value);
1220
+ N(!1), b(F.target.value);
1221
1221
  },
1222
1222
  value: p,
1223
1223
  placeholder: f(u)
@@ -1238,7 +1238,7 @@ const E2 = "_FiltersAmbitContainer_1g9xx_2", j2 = "_FiltersAmbitHeader_1g9xx_7",
1238
1238
  title: f("applied_filters"),
1239
1239
  isOpen: !0,
1240
1240
  textColor: r || "#fff",
1241
- backgroundColor: l || "#605B5680",
1241
+ backgroundColor: c || "#605B5680",
1242
1242
  activeColor: t
1243
1243
  }
1244
1244
  ),
@@ -1281,36 +1281,36 @@ const U2 = "_barChartContainer_d2f1z_2", G2 = {
1281
1281
  gap: i = 23,
1282
1282
  fontColor: t = "#605B56",
1283
1283
  verticalPaddign: r = 10,
1284
- horizontalPaddign: l = 20,
1284
+ horizontalPaddign: c = 20,
1285
1285
  leftPadding: a = 200,
1286
- numberOfDivisions: c = 7,
1286
+ numberOfDivisions: l = 7,
1287
1287
  maxValue: u = null
1288
1288
  }) => {
1289
- const { t: h } = N(), { xScale: g, ticks: y, height: C } = he(() => {
1289
+ const { t: h } = k(), { xScale: g, ticks: y, height: C } = he(() => {
1290
1290
  if (n && n.length > 0) {
1291
- const f = (n == null ? void 0 : n.length) * (o + i) + r * 2, _ = Ee.max(n, (v) => v.value) || 1, p = Ee.scaleLinear().domain([0, u || _]).range([0, d - a]), b = Array.from({ length: c + 1 }, (v, x) => u ? u / c * x : _ / c * x);
1291
+ const f = (n == null ? void 0 : n.length) * (o + i) + r * 2, _ = Ee.max(n, (v) => v.value) || 1, p = Ee.scaleLinear().domain([0, u || _]).range([0, d - a]), b = Array.from({ length: l + 1 }, (v, x) => u ? u / l * x : _ / l * x);
1292
1292
  return {
1293
1293
  xScale: p,
1294
1294
  ticks: b,
1295
1295
  height: f,
1296
1296
  width: d,
1297
1297
  verticalPaddign: r,
1298
- horizontalPaddign: l
1298
+ horizontalPaddign: c
1299
1299
  };
1300
1300
  } else
1301
1301
  return { xScale: null, ticks: [], height: 0 };
1302
1302
  }, [
1303
1303
  n,
1304
1304
  d,
1305
- c,
1305
+ l,
1306
1306
  o,
1307
1307
  i,
1308
- l,
1308
+ c,
1309
1309
  r,
1310
1310
  u
1311
1311
  ]);
1312
- return /* @__PURE__ */ s("div", { className: G2.barChartContainer, children: /* @__PURE__ */ s("svg", { width: d + l * 2, height: C, children: /* @__PURE__ */ m("g", { transform: `translate(0,${i})`, children: [
1313
- /* @__PURE__ */ s("g", { transform: `translate(${a + l}, 0)`, children: y.map((f, _) => {
1312
+ return /* @__PURE__ */ s("div", { className: G2.barChartContainer, children: /* @__PURE__ */ s("svg", { width: d + c * 2, height: C, children: /* @__PURE__ */ m("g", { transform: `translate(0,${i})`, children: [
1313
+ /* @__PURE__ */ s("g", { transform: `translate(${a + c}, 0)`, children: y.map((f, _) => {
1314
1314
  const p = g(f);
1315
1315
  return /* @__PURE__ */ m("g", { transform: `translate(${p}, 0)`, children: [
1316
1316
  /* @__PURE__ */ s(
@@ -1338,7 +1338,7 @@ const U2 = "_barChartContainer_d2f1z_2", G2 = {
1338
1338
  return /* @__PURE__ */ m(
1339
1339
  "g",
1340
1340
  {
1341
- transform: `translate(${a + l}, ${b})`,
1341
+ transform: `translate(${a + c}, ${b})`,
1342
1342
  children: [
1343
1343
  /* @__PURE__ */ s(
1344
1344
  "text",
@@ -1392,11 +1392,11 @@ const Y2 = "_graphicContainer_c9zrg_2", W2 = "_titleContainer_c9zrg_14", ze = {
1392
1392
  borderColor: i = "#605B56",
1393
1393
  title: t = "Graphic Title",
1394
1394
  fontColor: r = "#605B56",
1395
- maxValue: l = null,
1395
+ maxValue: c = null,
1396
1396
  numberOfDivisions: a = 7,
1397
- leftPadding: c = 200
1397
+ leftPadding: l = 200
1398
1398
  }) => {
1399
- const { t: u } = N();
1399
+ const { t: u } = k();
1400
1400
  return /* @__PURE__ */ m(
1401
1401
  "div",
1402
1402
  {
@@ -1413,9 +1413,9 @@ const Y2 = "_graphicContainer_c9zrg_2", W2 = "_titleContainer_c9zrg_14", ze = {
1413
1413
  data: n,
1414
1414
  width: d,
1415
1415
  fontColor: r,
1416
- maxValue: l,
1416
+ maxValue: c,
1417
1417
  numberOfDivisions: a,
1418
- leftPadding: c
1418
+ leftPadding: l
1419
1419
  }
1420
1420
  )
1421
1421
  ]
@@ -1461,11 +1461,11 @@ const X2 = "_indicatorsCategory_1cu33_2", J2 = "_title_1cu33_5", e0 = "_list_1cu
1461
1461
  defaultColor: i = "#92898A",
1462
1462
  activeIndicator: t,
1463
1463
  activeIndicatorType: r,
1464
- onClickIndicator: l,
1464
+ onClickIndicator: c,
1465
1465
  multiple: a = !1,
1466
- onChangeType: c
1466
+ onChangeType: l
1467
1467
  }) => {
1468
- const { t: u } = N(), { name: h, type: g } = n, [y, C] = D(!1);
1468
+ const { t: u } = k(), { name: h, type: g } = n, [y, C] = D(!1);
1469
1469
  V(() => {
1470
1470
  t && C(
1471
1471
  a ? t.some(
@@ -1478,7 +1478,7 @@ const X2 = "_indicatorsCategory_1cu33_2", J2 = "_title_1cu33_5", e0 = "_list_1cu
1478
1478
  "div",
1479
1479
  {
1480
1480
  className: M.optionContainer,
1481
- onClick: () => c("cat"),
1481
+ onClick: () => l("cat"),
1482
1482
  children: [
1483
1483
  /* @__PURE__ */ s(
1484
1484
  "span",
@@ -1507,7 +1507,7 @@ const X2 = "_indicatorsCategory_1cu33_2", J2 = "_title_1cu33_5", e0 = "_list_1cu
1507
1507
  "div",
1508
1508
  {
1509
1509
  className: M.optionContainer,
1510
- onClick: () => c("abs"),
1510
+ onClick: () => l("abs"),
1511
1511
  children: [
1512
1512
  /* @__PURE__ */ s(
1513
1513
  "span",
@@ -1553,7 +1553,7 @@ const X2 = "_indicatorsCategory_1cu33_2", J2 = "_title_1cu33_5", e0 = "_list_1cu
1553
1553
  "div",
1554
1554
  {
1555
1555
  className: M.indicatorNameContainer,
1556
- onClick: () => l({ indicator: n }),
1556
+ onClick: () => c({ indicator: n }),
1557
1557
  children: [
1558
1558
  /* @__PURE__ */ s(
1559
1559
  "div",
@@ -1601,17 +1601,17 @@ const u0 = "_indicatorsSubCategory_1dzsi_2", p0 = "_list_1dzsi_8", Ze = {
1601
1601
  activeColor: i,
1602
1602
  activeSubCategory: t,
1603
1603
  onClickSubCategory: r,
1604
- id: l,
1604
+ id: c,
1605
1605
  activeIndicator: a,
1606
- onClickIndicator: c,
1606
+ onClickIndicator: l,
1607
1607
  multiple: u,
1608
1608
  activeIndicatorType: h,
1609
1609
  onChangeType: g
1610
1610
  }) => {
1611
- const { t: y } = N(), [C, f] = D(!1);
1611
+ const { t: y } = k(), [C, f] = D(!1);
1612
1612
  return V(() => {
1613
- f(t == l);
1614
- }, [t, l]), /* @__PURE__ */ m(
1613
+ f(t == c);
1614
+ }, [t, c]), /* @__PURE__ */ m(
1615
1615
  Ae.div,
1616
1616
  {
1617
1617
  className: Ze.indicatorsSubCategory,
@@ -1619,7 +1619,7 @@ const u0 = "_indicatorsSubCategory_1dzsi_2", p0 = "_list_1dzsi_8", Ze = {
1619
1619
  animate: { height: C ? "auto" : "43px" },
1620
1620
  transition: { duration: 0.4 },
1621
1621
  children: [
1622
- /* @__PURE__ */ s("button", { onClick: () => r(l), children: /* @__PURE__ */ m("h3", { style: { color: C ? i : o }, children: [
1622
+ /* @__PURE__ */ s("button", { onClick: () => r(c), children: /* @__PURE__ */ m("h3", { style: { color: C ? i : o }, children: [
1623
1623
  /* @__PURE__ */ s("span", { style: { color: C ? i : o }, children: C ? "-" : "+" }),
1624
1624
  /* @__PURE__ */ s(
1625
1625
  "span",
@@ -1636,7 +1636,7 @@ const u0 = "_indicatorsSubCategory_1dzsi_2", p0 = "_list_1dzsi_8", Ze = {
1636
1636
  defaultColor: o,
1637
1637
  activeColor: i,
1638
1638
  activeIndicator: a,
1639
- onClickIndicator: c,
1639
+ onClickIndicator: l,
1640
1640
  multiple: u,
1641
1641
  activeIndicatorType: h,
1642
1642
  onChangeType: g
@@ -1666,16 +1666,16 @@ const dt = ({
1666
1666
  defaultColor: i,
1667
1667
  onClickCategory: t,
1668
1668
  activeCategory: r,
1669
- activeSubCategory: l,
1669
+ activeSubCategory: c,
1670
1670
  onClickSubCategory: a,
1671
- activeIndicator: c,
1671
+ activeIndicator: l,
1672
1672
  onClickIndicator: u,
1673
1673
  multiple: h,
1674
1674
  activeIndicatorType: g,
1675
1675
  onChangeType: y
1676
1676
  }) => {
1677
1677
  var p;
1678
- const { t: C } = N(), [f, _] = D(!1);
1678
+ const { t: C } = k(), [f, _] = D(!1);
1679
1679
  return V(() => {
1680
1680
  _(r === d);
1681
1681
  }, [r, d]), /* @__PURE__ */ m(
@@ -1706,10 +1706,10 @@ const dt = ({
1706
1706
  ct,
1707
1707
  {
1708
1708
  id: v,
1709
- activeSubCategory: l,
1709
+ activeSubCategory: c,
1710
1710
  subcName: b,
1711
1711
  onClickSubCategory: a,
1712
- activeIndicator: c,
1712
+ activeIndicator: l,
1713
1713
  onClickIndicator: u,
1714
1714
  multiple: h,
1715
1715
  activeColor: o,
@@ -1727,7 +1727,7 @@ const dt = ({
1727
1727
  values: b.type == "twoUnits" && b.values,
1728
1728
  activeColor: o,
1729
1729
  defaultColor: i,
1730
- activeIndicator: c,
1730
+ activeIndicator: l,
1731
1731
  onClickIndicator: u,
1732
1732
  multiple: h,
1733
1733
  activeIndicatorType: g,
@@ -1767,10 +1767,10 @@ const m0 = "_indicatorsList_fklyu_2", h0 = "_title_fklyu_6", He = {
1767
1767
  // Si multiple es true, debe ser un array de strings, sino un string
1768
1768
  defaultValue: r = null,
1769
1769
  //si el indicador es tipo "both" cuando se cambia el tipo
1770
- changeIndType: l,
1770
+ changeIndType: c,
1771
1771
  activeIndicatorType: a
1772
1772
  }) => {
1773
- const { t: c } = N(), [u, h] = D(), [g, y] = D(), [C, f] = D(), _ = (w) => {
1773
+ const { t: l } = k(), [u, h] = D(), [g, y] = D(), [C, f] = D(), _ = (w) => {
1774
1774
  h(u == w ? null : w);
1775
1775
  }, p = (w) => {
1776
1776
  y(g == w ? null : w);
@@ -1782,14 +1782,14 @@ const m0 = "_indicatorsList_fklyu_2", h0 = "_title_fklyu_6", He = {
1782
1782
  (C == null ? void 0 : C.name) == w.name ? null : w
1783
1783
  );
1784
1784
  else {
1785
- let k = C && C.length > 0 ? [...C] : [];
1785
+ let N = C && C.length > 0 ? [...C] : [];
1786
1786
  f(
1787
- k != null && k.some(
1787
+ N != null && N.some(
1788
1788
  (L) => L.name == w.name
1789
- ) ? k.filter(
1789
+ ) ? N.filter(
1790
1790
  (L) => L.name != String(w.name)
1791
- ) : [...k, w]
1792
- ), w.type == "both" && l("cat");
1791
+ ) : [...N, w]
1792
+ ), w.type == "both" && c("cat");
1793
1793
  }
1794
1794
  };
1795
1795
  V(() => {
@@ -1803,7 +1803,7 @@ const m0 = "_indicatorsList_fklyu_2", h0 = "_title_fklyu_6", He = {
1803
1803
  v(r), x(r.name);
1804
1804
  }, []);
1805
1805
  const x = (w) => {
1806
- const k = n.find((L) => {
1806
+ const N = n.find((L) => {
1807
1807
  if (L.subcategories) {
1808
1808
  let F = L.subcategories.find(
1809
1809
  (q) => q.indicators.find((ae) => ae.name == w)
@@ -1813,11 +1813,11 @@ const m0 = "_indicatorsList_fklyu_2", h0 = "_title_fklyu_6", He = {
1813
1813
  } else
1814
1814
  return L.indicators.some((F) => F.name == w);
1815
1815
  });
1816
- k && h(k.category);
1816
+ N && h(N.category);
1817
1817
  };
1818
1818
  return /* @__PURE__ */ m("div", { className: He.indicatorsList, children: [
1819
- /* @__PURE__ */ s("h2", { className: He.title, style: { color: o }, children: c("indicators.indicators") }),
1820
- n.map((w, k) => /* @__PURE__ */ s(
1819
+ /* @__PURE__ */ s("h2", { className: He.title, style: { color: o }, children: l("indicators.indicators") }),
1820
+ n.map((w, N) => /* @__PURE__ */ s(
1821
1821
  dt,
1822
1822
  {
1823
1823
  id: w.category,
@@ -1832,10 +1832,10 @@ const m0 = "_indicatorsList_fklyu_2", h0 = "_title_fklyu_6", He = {
1832
1832
  defaultColor: o,
1833
1833
  multiple: t,
1834
1834
  onChange: i,
1835
- onChangeType: l,
1835
+ onChangeType: c,
1836
1836
  activeIndicatorType: a
1837
1837
  },
1838
- `categoryKey${k}`
1838
+ `categoryKey${N}`
1839
1839
  ))
1840
1840
  ] });
1841
1841
  };
@@ -1857,8 +1857,8 @@ const C0 = "_langSelector_o9enq_2", f0 = "_currentLang_o9enq_14", b0 = "_arrow_o
1857
1857
  prevImg: y0,
1858
1858
  langMenu: _0
1859
1859
  }, v0 = ({ langs: n, arrow: d, imgPrev: o }) => {
1860
- const [i, t] = D(!1), { i18n: r } = N(), l = n.find((c) => c.code == r.language), a = (c) => {
1861
- r.changeLanguage(c), t(!1);
1860
+ const [i, t] = D(!1), { i18n: r } = k(), c = n.find((l) => l.code == r.language), a = (l) => {
1861
+ r.changeLanguage(l), t(!1);
1862
1862
  };
1863
1863
  return /* @__PURE__ */ m("div", { className: J.langSelector, children: [
1864
1864
  /* @__PURE__ */ m(
@@ -1870,19 +1870,19 @@ const C0 = "_langSelector_o9enq_2", f0 = "_currentLang_o9enq_14", b0 = "_arrow_o
1870
1870
  },
1871
1871
  children: [
1872
1872
  o && /* @__PURE__ */ s("img", { className: J.prevImg, src: o }),
1873
- (l == null ? void 0 : l.titleSelected) || (l == null ? void 0 : l.title),
1873
+ (c == null ? void 0 : c.titleSelected) || (c == null ? void 0 : c.title),
1874
1874
  /* @__PURE__ */ s("img", { src: d, className: J.arrow })
1875
1875
  ]
1876
1876
  }
1877
1877
  ),
1878
- i && /* @__PURE__ */ s("div", { className: J.langMenu, children: n.map((c) => /* @__PURE__ */ s(
1878
+ i && /* @__PURE__ */ s("div", { className: J.langMenu, children: n.map((l) => /* @__PURE__ */ s(
1879
1879
  "button",
1880
1880
  {
1881
- className: (l == null ? void 0 : l.code) == c.code ? J.active : "",
1882
- onClick: () => a(c.code),
1883
- children: c.title
1881
+ className: (c == null ? void 0 : c.code) == l.code ? J.active : "",
1882
+ onClick: () => a(l.code),
1883
+ children: l.title
1884
1884
  },
1885
- c.code
1885
+ l.code
1886
1886
  )) })
1887
1887
  ] });
1888
1888
  };
@@ -1900,11 +1900,11 @@ v0.propTypes = {
1900
1900
  arrow: e.object,
1901
1901
  imgPrev: e.object
1902
1902
  };
1903
- const w0 = "_legendContainer_jhxfb_3", x0 = "_closeButton_jhxfb_31", N0 = "_titleContainer_jhxfb_59", k0 = "_infoContainer_jhxfb_65", B0 = "_titleLegendList_jhxfb_76", S0 = "_legendListContainer_jhxfb_83", D0 = "_gridContainer_jhxfb_83", M0 = "_elementLegendContainer_jhxfb_89", L0 = "_colorDot_jhxfb_95", F0 = "_absoluteValueContainer_jhxfb_101", T0 = "_absoluteValueColor_jhxfb_104", $0 = "_absoluteValueText_jhxfb_109", V0 = "_noDataContainer_jhxfb_121", A0 = "_noData_jhxfb_121", I0 = "_moreInfoContainer_jhxfb_142", S = {
1903
+ const w0 = "_legendContainer_jhxfb_3", x0 = "_closeButton_jhxfb_31", k0 = "_titleContainer_jhxfb_59", N0 = "_infoContainer_jhxfb_65", B0 = "_titleLegendList_jhxfb_76", S0 = "_legendListContainer_jhxfb_83", D0 = "_gridContainer_jhxfb_83", M0 = "_elementLegendContainer_jhxfb_89", L0 = "_colorDot_jhxfb_95", F0 = "_absoluteValueContainer_jhxfb_101", T0 = "_absoluteValueColor_jhxfb_104", $0 = "_absoluteValueText_jhxfb_109", V0 = "_noDataContainer_jhxfb_121", A0 = "_noData_jhxfb_121", I0 = "_moreInfoContainer_jhxfb_142", S = {
1904
1904
  legendContainer: w0,
1905
1905
  closeButton: x0,
1906
- titleContainer: N0,
1907
- infoContainer: k0,
1906
+ titleContainer: k0,
1907
+ infoContainer: N0,
1908
1908
  titleLegendList: B0,
1909
1909
  legendListContainer: S0,
1910
1910
  gridContainer: D0,
@@ -1934,19 +1934,19 @@ const w0 = "_legendContainer_jhxfb_3", x0 = "_closeButton_jhxfb_31", N0 = "_titl
1934
1934
  absoluteValue: r,
1935
1935
  //Function to be called when the button is clicked (optional).
1936
1936
  //If this is null or undefined the button wont be displayed.
1937
- onClickMoreInfo: l,
1937
+ onClickMoreInfo: c,
1938
1938
  //If not passed it will read t("moreInformation")
1939
1939
  buttonTitle: a,
1940
- onClickClose: c
1940
+ onClickClose: l
1941
1941
  }) => {
1942
- const { t: u } = N();
1942
+ const { t: u } = k();
1943
1943
  return /* @__PURE__ */ m(
1944
1944
  "div",
1945
1945
  {
1946
1946
  style: n ? { ...n } : {},
1947
1947
  className: `${S.legendContainer}`,
1948
1948
  children: [
1949
- /* @__PURE__ */ s("button", { className: S.closeButton, onClick: c }),
1949
+ /* @__PURE__ */ s("button", { className: S.closeButton, onClick: l }),
1950
1950
  d && /* @__PURE__ */ s("div", { className: S.titleContainer, children: /* @__PURE__ */ s("h2", { children: d }) }),
1951
1951
  o && o.length > 0 && /* @__PURE__ */ s("div", { className: S.infoContainer, children: /* @__PURE__ */ s("ul", { children: o.map(({ title: h, value: g }) => /* @__PURE__ */ m("li", { children: [
1952
1952
  /* @__PURE__ */ s("h3", { className: S.title, children: `${h}:` }),
@@ -1955,7 +1955,7 @@ const w0 = "_legendContainer_jhxfb_3", x0 = "_closeButton_jhxfb_31", N0 = "_titl
1955
1955
  g
1956
1956
  ] })
1957
1957
  ] }, d)) }) }),
1958
- /* @__PURE__ */ s("h3", { className: S.titleLegendList, children: t ? /* @__PURE__ */ s(Ve, { i18nKey: t, components: { sup: /* @__PURE__ */ s("sup", {}) }, values: { lt: "&lt;" } }) : u("mainUse") }),
1958
+ /* @__PURE__ */ s("h3", { className: S.titleLegendList, children: t ? /* @__PURE__ */ s(Ve, { i18nKey: t, components: { sup: /* @__PURE__ */ s("sup", {}) }, values: { lt: "<" }, tOptions: { interpolation: { escapeValue: !0 } } }) : u("mainUse") }),
1959
1959
  /* @__PURE__ */ m("div", { className: S.legendListContainer, children: [
1960
1960
  r ? /* @__PURE__ */ m("div", { className: S.absoluteValueContainer, children: [
1961
1961
  /* @__PURE__ */ s(
@@ -2012,7 +2012,7 @@ const w0 = "_legendContainer_jhxfb_3", x0 = "_closeButton_jhxfb_31", N0 = "_titl
2012
2012
  /* @__PURE__ */ s("div", { className: S.absoluteValueText, children: /* @__PURE__ */ s("span", { children: u(r.noDataText) }) })
2013
2013
  ] })
2014
2014
  ] }),
2015
- l && /* @__PURE__ */ s("button", { className: S.moreInfoContainer, onClick: l, children: a || u("moreInformation") })
2015
+ c && /* @__PURE__ */ s("button", { className: S.moreInfoContainer, onClick: c, children: a || u("moreInformation") })
2016
2016
  ]
2017
2017
  }
2018
2018
  );
@@ -2047,7 +2047,7 @@ O0.propTypes = {
2047
2047
  const R0 = "_logo_1ewa6_2", Ke = {
2048
2048
  logo: R0
2049
2049
  }, P0 = ({ src: n, alt: d, href: o }) => {
2050
- const { t: i } = N(), t = /* @__PURE__ */ s("img", { src: n, alt: i(d) });
2050
+ const { t: i } = k(), t = /* @__PURE__ */ s("img", { src: n, alt: i(d) });
2051
2051
  return o ? /* @__PURE__ */ s("div", { className: Ke.logo, children: /* @__PURE__ */ s("a", { href: o, children: t }) }) : /* @__PURE__ */ s("div", { className: Ke.logo, children: t });
2052
2052
  };
2053
2053
  P0.propTypes = {
@@ -2067,9 +2067,9 @@ const q0 = ({
2067
2067
  mapStyle: i,
2068
2068
  firstSymbolLayer: t,
2069
2069
  cssProps: r = "",
2070
- onClick: l = "",
2070
+ onClick: c = "",
2071
2071
  interactiveLayers: a = [],
2072
- popUp: c = !1,
2072
+ popUp: l = !1,
2073
2073
  sources: u = [],
2074
2074
  layers: h = []
2075
2075
  }) => {
@@ -2082,7 +2082,7 @@ const q0 = ({
2082
2082
  });
2083
2083
  }
2084
2084
  }, [f]), /* @__PURE__ */ s("div", { className: `${j0.mapContainer}`, style: r, children: /* @__PURE__ */ m(
2085
- Nt,
2085
+ kt,
2086
2086
  {
2087
2087
  initialViewState: n,
2088
2088
  ref: g,
@@ -2090,11 +2090,11 @@ const q0 = ({
2090
2090
  maxZoom: d,
2091
2091
  minZoom: o,
2092
2092
  mapStyle: i,
2093
- onClick: l,
2093
+ onClick: c,
2094
2094
  interactiveLayerIds: a,
2095
2095
  children: [
2096
2096
  u.length && u.map((_, p) => /* @__PURE__ */ s(
2097
- kt,
2097
+ Nt,
2098
2098
  {
2099
2099
  ..._,
2100
2100
  children: h.length && h.map((b, v) => {
@@ -2111,14 +2111,14 @@ const q0 = ({
2111
2111
  p
2112
2112
  )),
2113
2113
  /* @__PURE__ */ s(St, { position: "bottom-right", visualizePitch: !0 }),
2114
- c && y && /* @__PURE__ */ s(
2114
+ l && y && /* @__PURE__ */ s(
2115
2115
  Dt,
2116
2116
  {
2117
- longitude: c.longitude,
2118
- latitude: c.latitude,
2119
- anchor: c.anchor,
2117
+ longitude: l.longitude,
2118
+ latitude: l.latitude,
2119
+ anchor: l.anchor,
2120
2120
  onClose: () => C(null),
2121
- children: c.content
2121
+ children: l.content
2122
2122
  }
2123
2123
  )
2124
2124
  ]
@@ -2176,7 +2176,7 @@ const z0 = "_mapContainer_b0pyr_3", Z0 = {
2176
2176
  FeaturePopUp: H0,
2177
2177
  title: K0
2178
2178
  }, U0 = ({ props: n }) => {
2179
- const { t: d } = N();
2179
+ const { t: d } = k();
2180
2180
  return /* @__PURE__ */ s("div", { className: Ue.FeaturePopUp, children: n.map((o) => /* @__PURE__ */ m("p", { children: [
2181
2181
  /* @__PURE__ */ m("span", { className: Ue.title, children: [
2182
2182
  /* @__PURE__ */ s(Ve, { i18nKey: o.name, components: { sup: /* @__PURE__ */ s("sup", {}) }, values: { lt: "<" } }),
@@ -2195,9 +2195,9 @@ const z0 = "_mapContainer_b0pyr_3", Z0 = {
2195
2195
  mapStyle: i,
2196
2196
  firstSymbolLayer: t,
2197
2197
  cssProps: r = {},
2198
- onClick: l = "",
2198
+ onClick: c = "",
2199
2199
  interactiveLayers: a = [],
2200
- sources: c = [],
2200
+ sources: l = [],
2201
2201
  layers: u = [],
2202
2202
  filters: h,
2203
2203
  popUpParams: g,
@@ -2228,10 +2228,10 @@ const z0 = "_mapContainer_b0pyr_3", Z0 = {
2228
2228
  maxZoom: d,
2229
2229
  minZoom: o,
2230
2230
  mapStyle: i,
2231
- onClick: l,
2231
+ onClick: c,
2232
2232
  interactiveLayerIds: a,
2233
2233
  children: [
2234
- c.length && c.map((_, p) => /* @__PURE__ */ s(
2234
+ l.length && l.map((_, p) => /* @__PURE__ */ s(
2235
2235
  Ft,
2236
2236
  {
2237
2237
  ..._,
@@ -2321,12 +2321,12 @@ const Y0 = "_sectionBar_1egwc_2", W0 = "_leftContent_1egwc_14", Q0 = "_textConta
2321
2321
  mainColor: t,
2322
2322
  width: r
2323
2323
  }) => {
2324
- const { t: l } = N();
2324
+ const { t: c } = k();
2325
2325
  return /* @__PURE__ */ m("div", { className: K.sectionBar, style: { width: r && r }, children: [
2326
2326
  /* @__PURE__ */ m("div", { className: K.leftContent, children: [
2327
2327
  n && /* @__PURE__ */ s("img", { src: n, alt: "Icono", className: K.icon }),
2328
2328
  /* @__PURE__ */ m("div", { className: K.textContainer, children: [
2329
- /* @__PURE__ */ s("div", { className: K.title, children: l(d) }),
2329
+ /* @__PURE__ */ s("div", { className: K.title, children: c(d) }),
2330
2330
  o && /* @__PURE__ */ s("div", { className: K.subtitle, children: o })
2331
2331
  ] })
2332
2332
  ] }),
@@ -2364,8 +2364,8 @@ const Y0 = "_sectionBar_1egwc_2", W0 = "_leftContent_1egwc_14", Q0 = "_textConta
2364
2364
  sliderOpen: an,
2365
2365
  sliderResults: ln
2366
2366
  }, cn = ({ onResults: n = !1, defaultYear: d = 2025, firstYear: o = 2025, lastYear: i = 2050, zIndex: t = 10, rightBarOpen: r = !1 }) => {
2367
- const [l, a] = D(d), c = xt(), u = (b, v) => {
2368
- a(v), c(we(v - 2e3));
2367
+ const [c, a] = D(d), l = xt(), u = (b, v) => {
2368
+ a(v), l(we(v - 2e3));
2369
2369
  }, [h, g] = D(!1), y = () => {
2370
2370
  g(!0);
2371
2371
  }, C = () => {
@@ -2380,12 +2380,12 @@ const Y0 = "_sectionBar_1egwc_2", W0 = "_leftContent_1egwc_14", Q0 = "_textConta
2380
2380
  x.current();
2381
2381
  }
2382
2382
  {
2383
- let k = setInterval(w, v);
2384
- return () => clearInterval(k);
2383
+ let N = setInterval(w, v);
2384
+ return () => clearInterval(N);
2385
2385
  }
2386
2386
  }, [v]);
2387
2387
  })(() => {
2388
- h && (l != 2050 ? (a(l + 1), c(we(l - 2e3 + 1))) : (a(2025), c(we(25))));
2388
+ h && (c != 2050 ? (a(c + 1), l(we(c - 2e3 + 1))) : (a(2025), l(we(25))));
2389
2389
  }, 1e3);
2390
2390
  const _ = Ot({
2391
2391
  palette: {
@@ -2427,7 +2427,7 @@ const Y0 = "_sectionBar_1egwc_2", W0 = "_leftContent_1egwc_14", Q0 = "_textConta
2427
2427
  It,
2428
2428
  {
2429
2429
  "aria-label": "TimeSlider",
2430
- value: l,
2430
+ value: c,
2431
2431
  valueLabelDisplay: "on",
2432
2432
  step: 1,
2433
2433
  marks: p,
@@ -2461,21 +2461,25 @@ const dn = "_TopNavMenuContainer_12mp4_2", un = "_topNavOptions_12mp4_13", pn =
2461
2461
  options: n = [],
2462
2462
  containerStyles: d,
2463
2463
  borderColor: o = "red",
2464
- textColor: i = "white"
2464
+ textColor: i = "white",
2465
+ onChangeNavLink: t = (r) => {
2466
+ console.log("Changed NavLink", r);
2467
+ }
2465
2468
  }) => {
2466
- const { t } = N();
2467
- return /* @__PURE__ */ s("div", { className: xe.TopNavMenuContainer, style: { ...d }, children: n.map((r, l) => /* @__PURE__ */ s(
2469
+ const { t: r } = k();
2470
+ return /* @__PURE__ */ s("div", { className: xe.TopNavMenuContainer, style: { ...d }, children: n.map((c, a) => /* @__PURE__ */ s(
2468
2471
  Et,
2469
2472
  {
2470
- to: r.url,
2471
- className: ({ isActive: a }) => `${xe.topNavOptions} ${a ? xe.active : ""} `,
2472
- style: ({ isActive: a }) => ({
2473
+ to: c.url,
2474
+ className: ({ isActive: l }) => `${xe.topNavOptions} ${l ? xe.active : ""} `,
2475
+ onClick: () => t(c.url),
2476
+ style: ({ isActive: l }) => ({
2473
2477
  color: i,
2474
- borderBottom: a ? `5px solid ${o}` : "5px solid transparent"
2478
+ borderBottom: l ? `5px solid ${o}` : "5px solid transparent"
2475
2479
  }),
2476
- children: t(r.name)
2480
+ children: r(c.name)
2477
2481
  },
2478
- l
2482
+ a
2479
2483
  )) });
2480
2484
  };
2481
2485
  mn.propTypes = {
@@ -2497,21 +2501,21 @@ const hn = "_LogInButton_1vxj5_2", gn = {
2497
2501
  containerStyles: i,
2498
2502
  userName: t = "",
2499
2503
  isLoggedIn: r = !1,
2500
- onClickLogIn: l = () => {
2504
+ onClickLogIn: c = () => {
2501
2505
  console.log("Login clicked");
2502
2506
  },
2503
2507
  onClickLogOut: a = () => {
2504
2508
  console.log("Logout clicked");
2505
2509
  }
2506
2510
  }) => {
2507
- const { t: c } = N();
2511
+ const { t: l } = k();
2508
2512
  return /* @__PURE__ */ s(
2509
2513
  "div",
2510
2514
  {
2511
2515
  style: { ...i },
2512
2516
  className: `${gn.LogInButton} link ${n}`,
2513
- onClick: r ? a : l,
2514
- children: r ? t || c(o) : c(d)
2517
+ onClick: r ? a : c,
2518
+ children: r ? t || l(o) : l(d)
2515
2519
  }
2516
2520
  );
2517
2521
  };
@@ -2523,7 +2527,7 @@ Cn.propTypes = {
2523
2527
  userName: e.string,
2524
2528
  isLoggedIn: e.bool
2525
2529
  };
2526
- const fn = "_elementSelector_fd7az_2", bn = "_header_fd7az_13", yn = "_nameDateContainer_fd7az_23", _n = "_elementName_fd7az_39", vn = "_elementDate_fd7az_53", wn = "_buttonsContainer_fd7az_67", xn = "_elementListContainer_fd7az_76", Nn = "_newElementButtonContainer_fd7az_80", j = {
2530
+ const fn = "_elementSelector_fd7az_2", bn = "_header_fd7az_13", yn = "_nameDateContainer_fd7az_23", _n = "_elementName_fd7az_39", vn = "_elementDate_fd7az_53", wn = "_buttonsContainer_fd7az_67", xn = "_elementListContainer_fd7az_76", kn = "_newElementButtonContainer_fd7az_80", j = {
2527
2531
  elementSelector: fn,
2528
2532
  header: bn,
2529
2533
  nameDateContainer: yn,
@@ -2531,9 +2535,9 @@ const fn = "_elementSelector_fd7az_2", bn = "_header_fd7az_13", yn = "_nameDateC
2531
2535
  elementDate: vn,
2532
2536
  buttonsContainer: wn,
2533
2537
  elementListContainer: xn,
2534
- newElementButtonContainer: Nn
2535
- }, kn = "_listElement_1s506_2", Bn = "_elementNameDate_1s506_17", Sn = "_elementNameContainer_1s506_27", Dn = "_elementName_1s506_17", Mn = "_elementDate_1s506_42", Ln = "_elementButtons_1s506_45", Fn = "_moreInfoContainer_1s506_68", Tn = "_moreInfo_1s506_68", O = {
2536
- listElement: kn,
2538
+ newElementButtonContainer: kn
2539
+ }, Nn = "_listElement_1s506_2", Bn = "_elementNameDate_1s506_17", Sn = "_elementNameContainer_1s506_27", Dn = "_elementName_1s506_17", Mn = "_elementDate_1s506_42", Ln = "_elementButtons_1s506_45", Fn = "_moreInfoContainer_1s506_68", Tn = "_moreInfo_1s506_68", O = {
2540
+ listElement: Nn,
2537
2541
  elementNameDate: Bn,
2538
2542
  elementNameContainer: Sn,
2539
2543
  elementName: Dn,
@@ -2574,12 +2578,12 @@ const Pn = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2574
2578
  activeColor: i,
2575
2579
  fontColor: t,
2576
2580
  moreInfo: r,
2577
- columns: l,
2581
+ columns: c,
2578
2582
  elementButtons: a,
2579
- processTooltip: c,
2583
+ processTooltip: l,
2580
2584
  defaultTooltip: u
2581
2585
  }) => {
2582
- const { nom: h, created_at: g, id: y, isBeingProcessed: C } = n, [f, _] = D(!1), { t: p } = N();
2586
+ const { nom: h, created_at: g, id: y, isBeingProcessed: C } = n, [f, _] = D(!1), { t: p } = k();
2583
2587
  return /* @__PURE__ */ m(
2584
2588
  "div",
2585
2589
  {
@@ -2587,7 +2591,7 @@ const Pn = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2587
2591
  style: { borderBottom: `1px solid ${t}` },
2588
2592
  children: [
2589
2593
  /* @__PURE__ */ m("div", { className: O.elementNameDate, onClick: () => d(y), children: [
2590
- l.nom && /* @__PURE__ */ s("div", { className: O.elementNameContainer, children: /* @__PURE__ */ m("div", { className: O.elementName, children: [
2594
+ c.nom && /* @__PURE__ */ s("div", { className: O.elementNameContainer, children: /* @__PURE__ */ m("div", { className: O.elementName, children: [
2591
2595
  o ? /* @__PURE__ */ s(Rn, { style: { color: i, marginRight: 9 } }) : /* @__PURE__ */ s(
2592
2596
  "img",
2593
2597
  {
@@ -2597,14 +2601,14 @@ const Pn = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2597
2601
  ),
2598
2602
  /* @__PURE__ */ s("span", { style: { color: o ? i : t }, children: h })
2599
2603
  ] }) }),
2600
- l.data && /* @__PURE__ */ s("div", { className: O.elementDate, children: g ? new Date(g).toLocaleDateString() : "" }),
2601
- l.ambit && /* @__PURE__ */ s("div", { className: O.elementDate, children: n.ambit }),
2602
- l.escenari && /* @__PURE__ */ s("div", { className: O.elementDate, children: n.escenari })
2604
+ c.data && /* @__PURE__ */ s("div", { className: O.elementDate, children: g ? new Date(g).toLocaleDateString() : "" }),
2605
+ c.ambit && /* @__PURE__ */ s("div", { className: O.elementDate, children: n.ambit }),
2606
+ c.escenari && /* @__PURE__ */ s("div", { className: O.elementDate, children: n.escenari })
2603
2607
  ] }),
2604
2608
  /* @__PURE__ */ m("div", { className: O.elementButtons, children: [
2605
2609
  n.processing && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
2606
2610
  /* @__PURE__ */ s("img", { src: In }),
2607
- /* @__PURE__ */ s(Y, { text: c, position: "left" })
2611
+ /* @__PURE__ */ s(Y, { text: l, position: "left" })
2608
2612
  ] }),
2609
2613
  a.filter && !n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
2610
2614
  /* @__PURE__ */ s("button", { onClick: () => a.filter.onclick(n), children: /* @__PURE__ */ s("img", { src: An }) }),
@@ -2677,10 +2681,10 @@ const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2677
2681
  activeColor: i,
2678
2682
  buttonContainerStyles: t = {},
2679
2683
  containerStyles: r = {},
2680
- newElementButton: l,
2684
+ newElementButton: c,
2681
2685
  //{label: 'text', onClick: function()}/null
2682
2686
  onClickElement: a = (C) => console.log(`OnCLickElement: ${C}`),
2683
- columns: c,
2687
+ columns: l,
2684
2688
  // {'nom': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
2685
2689
  elementButtons: u,
2686
2690
  //{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
@@ -2691,7 +2695,7 @@ const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2691
2695
  defaultTooltip: y
2692
2696
  //texto para el tooltip del símbolo de candado para los elementos default
2693
2697
  }) => {
2694
- const { t: C } = N(), [f, _] = D(n);
2698
+ const { t: C } = k(), [f, _] = D(n);
2695
2699
  V(() => {
2696
2700
  n && _(n);
2697
2701
  }, [n]);
@@ -2714,16 +2718,16 @@ const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2714
2718
  style: { borderBottom: `1px solid ${o}` },
2715
2719
  children: [
2716
2720
  /* @__PURE__ */ m("div", { className: j.nameDateContainer, children: [
2717
- c.nom && /* @__PURE__ */ s("div", { className: j.elementName, children: /* @__PURE__ */ m("button", { onClick: () => p("name"), children: [
2718
- /* @__PURE__ */ s("span", { children: C(c.nom) }),
2721
+ l.nom && /* @__PURE__ */ s("div", { className: j.elementName, children: /* @__PURE__ */ m("button", { onClick: () => p("name"), children: [
2722
+ /* @__PURE__ */ s("span", { children: C(l.nom) }),
2719
2723
  /* @__PURE__ */ s("img", { src: Ye })
2720
2724
  ] }) }),
2721
- c.data && /* @__PURE__ */ s("div", { className: j.elementDate, children: /* @__PURE__ */ m("button", { onClick: () => p("date"), children: [
2722
- /* @__PURE__ */ s("span", { children: C(c.data) }),
2725
+ l.data && /* @__PURE__ */ s("div", { className: j.elementDate, children: /* @__PURE__ */ m("button", { onClick: () => p("date"), children: [
2726
+ /* @__PURE__ */ s("span", { children: C(l.data) }),
2723
2727
  /* @__PURE__ */ s("img", { src: Ye })
2724
2728
  ] }) }),
2725
- c.ambit && /* @__PURE__ */ s("div", { className: j.elementDate, children: /* @__PURE__ */ s("span", { children: C(c.ambit) }) }),
2726
- c.escenari && /* @__PURE__ */ s("div", { className: j.elementDate, children: /* @__PURE__ */ s("span", { children: C(c.escenari) }) })
2729
+ l.ambit && /* @__PURE__ */ s("div", { className: j.elementDate, children: /* @__PURE__ */ s("span", { children: C(l.ambit) }) }),
2730
+ l.escenari && /* @__PURE__ */ s("div", { className: j.elementDate, children: /* @__PURE__ */ s("span", { children: C(l.escenari) }) })
2727
2731
  ] }),
2728
2732
  /* @__PURE__ */ s("div", { className: j.buttonsContainer })
2729
2733
  ]
@@ -2737,7 +2741,7 @@ const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2737
2741
  fontColor: o,
2738
2742
  activeColor: i,
2739
2743
  onClickElement: a,
2740
- columns: c,
2744
+ columns: l,
2741
2745
  elementButtons: u,
2742
2746
  moreInfo: h,
2743
2747
  processTooltip: g,
@@ -2745,13 +2749,13 @@ const Ye = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2745
2749
  },
2746
2750
  `elementKey${b.id}`
2747
2751
  )) }),
2748
- l && /* @__PURE__ */ s("div", { className: j.newElementButtonContainer, children: /* @__PURE__ */ s(
2752
+ c && /* @__PURE__ */ s("div", { className: j.newElementButtonContainer, children: /* @__PURE__ */ s(
2749
2753
  ge,
2750
2754
  {
2751
2755
  style: { ...t },
2752
- onClick: l.onClick,
2756
+ onClick: c.onClick,
2753
2757
  borderColor: "grey",
2754
- children: C(l.label)
2758
+ children: C(c.label)
2755
2759
  }
2756
2760
  ) })
2757
2761
  ]
@@ -2842,19 +2846,19 @@ var ht = (n) => /^\w*$/.test(n), Te = (n) => n === void 0, e1 = (n) => Array.isA
2842
2846
  return o;
2843
2847
  const i = (ht(d) ? [d] : gt(d)).reduce((t, r) => pt(t) ? t : t[r], n);
2844
2848
  return Te(i) || i === n ? Te(n[d]) ? o : n[d] : i;
2845
- }, Ne = (n) => typeof n == "boolean", We = (n, d, o) => {
2849
+ }, ke = (n) => typeof n == "boolean", We = (n, d, o) => {
2846
2850
  let i = -1;
2847
- const t = ht(d) ? [d] : gt(d), r = t.length, l = r - 1;
2851
+ const t = ht(d) ? [d] : gt(d), r = t.length, c = r - 1;
2848
2852
  for (; ++i < r; ) {
2849
2853
  const a = t[i];
2850
- let c = o;
2851
- if (i !== l) {
2854
+ let l = o;
2855
+ if (i !== c) {
2852
2856
  const u = n[a];
2853
- c = re(u) || Array.isArray(u) ? u : isNaN(+t[i + 1]) ? {} : [];
2857
+ l = re(u) || Array.isArray(u) ? u : isNaN(+t[i + 1]) ? {} : [];
2854
2858
  }
2855
2859
  if (a === "__proto__" || a === "constructor" || a === "prototype")
2856
2860
  return;
2857
- n[a] = c, n = n[a];
2861
+ n[a] = l, n = n[a];
2858
2862
  }
2859
2863
  };
2860
2864
  const Qe = {
@@ -2872,15 +2876,15 @@ var t1 = (n, d, o, i = !0) => {
2872
2876
  for (const r in n)
2873
2877
  Object.defineProperty(t, r, {
2874
2878
  get: () => {
2875
- const l = r;
2876
- return d._proxyFormState[l] !== Xe.all && (d._proxyFormState[l] = !i || Xe.all), o && (o[l] = !0), n[l];
2879
+ const c = r;
2880
+ return d._proxyFormState[c] !== Xe.all && (d._proxyFormState[c] = !i || Xe.all), o && (o[c] = !0), n[c];
2877
2881
  }
2878
2882
  });
2879
2883
  return t;
2880
2884
  };
2881
2885
  const ft = typeof window < "u" ? te.useLayoutEffect : te.useEffect;
2882
2886
  function n1(n) {
2883
- const d = Re(), { control: o = d.control, disabled: i, name: t, exact: r } = n || {}, [l, a] = B.useState(o._formState), c = B.useRef({
2887
+ const d = Re(), { control: o = d.control, disabled: i, name: t, exact: r } = n || {}, [c, a] = B.useState(o._formState), l = B.useRef({
2884
2888
  isDirty: !1,
2885
2889
  isLoading: !1,
2886
2890
  dirtyFields: !1,
@@ -2892,7 +2896,7 @@ function n1(n) {
2892
2896
  });
2893
2897
  return ft(() => o._subscribe({
2894
2898
  name: t,
2895
- formState: c.current,
2899
+ formState: l.current,
2896
2900
  exact: r,
2897
2901
  callback: (u) => {
2898
2902
  !i && a({
@@ -2901,57 +2905,57 @@ function n1(n) {
2901
2905
  });
2902
2906
  }
2903
2907
  }), [t, i, r]), B.useEffect(() => {
2904
- c.current.isValid && o._setValid(!0);
2905
- }, [o]), B.useMemo(() => t1(l, o, c.current, !1), [l, o]);
2908
+ l.current.isValid && o._setValid(!0);
2909
+ }, [o]), B.useMemo(() => t1(c, o, l.current, !1), [c, o]);
2906
2910
  }
2907
2911
  var i1 = (n) => typeof n == "string", o1 = (n, d, o, i, t) => i1(n) ? A(o, n, t) : Array.isArray(n) ? n.map((r) => A(o, r)) : o;
2908
2912
  function s1(n) {
2909
- const d = Re(), { control: o = d.control, name: i, defaultValue: t, disabled: r, exact: l } = n || {}, a = B.useRef(t), [c, u] = B.useState(o._getWatch(i, a.current));
2913
+ const d = Re(), { control: o = d.control, name: i, defaultValue: t, disabled: r, exact: c } = n || {}, a = B.useRef(t), [l, u] = B.useState(o._getWatch(i, a.current));
2910
2914
  return ft(() => o._subscribe({
2911
2915
  name: i,
2912
2916
  formState: {
2913
2917
  values: !0
2914
2918
  },
2915
- exact: l,
2919
+ exact: c,
2916
2920
  callback: (h) => !r && u(o1(i, o._names, h.values || o._formValues, !1, a.current))
2917
- }), [i, o, r, l]), B.useEffect(() => o._removeUnmounted()), c;
2921
+ }), [i, o, r, c]), B.useEffect(() => o._removeUnmounted()), l;
2918
2922
  }
2919
2923
  function r1(n) {
2920
- const d = Re(), { name: o, disabled: i, control: t = d.control, shouldUnregister: r } = n, l = Qn(t._names.array, o), a = s1({
2924
+ const d = Re(), { name: o, disabled: i, control: t = d.control, shouldUnregister: r } = n, c = Qn(t._names.array, o), a = s1({
2921
2925
  control: t,
2922
2926
  name: o,
2923
2927
  defaultValue: A(t._formValues, o, A(t._defaultValues, o, n.defaultValue)),
2924
2928
  exact: !0
2925
- }), c = n1({
2929
+ }), l = n1({
2926
2930
  control: t,
2927
2931
  name: o,
2928
2932
  exact: !0
2929
2933
  }), u = B.useRef(n), h = B.useRef(t.register(o, {
2930
2934
  ...n.rules,
2931
2935
  value: a,
2932
- ...Ne(n.disabled) ? { disabled: n.disabled } : {}
2936
+ ...ke(n.disabled) ? { disabled: n.disabled } : {}
2933
2937
  })), g = B.useMemo(() => Object.defineProperties({}, {
2934
2938
  invalid: {
2935
2939
  enumerable: !0,
2936
- get: () => !!A(c.errors, o)
2940
+ get: () => !!A(l.errors, o)
2937
2941
  },
2938
2942
  isDirty: {
2939
2943
  enumerable: !0,
2940
- get: () => !!A(c.dirtyFields, o)
2944
+ get: () => !!A(l.dirtyFields, o)
2941
2945
  },
2942
2946
  isTouched: {
2943
2947
  enumerable: !0,
2944
- get: () => !!A(c.touchedFields, o)
2948
+ get: () => !!A(l.touchedFields, o)
2945
2949
  },
2946
2950
  isValidating: {
2947
2951
  enumerable: !0,
2948
- get: () => !!A(c.validatingFields, o)
2952
+ get: () => !!A(l.validatingFields, o)
2949
2953
  },
2950
2954
  error: {
2951
2955
  enumerable: !0,
2952
- get: () => A(c.errors, o)
2956
+ get: () => A(l.errors, o)
2953
2957
  }
2954
- }), [c, o]), y = B.useCallback((p) => h.current.onChange({
2958
+ }), [l, o]), y = B.useCallback((p) => h.current.onChange({
2955
2959
  target: {
2956
2960
  value: Yn(p),
2957
2961
  name: o
@@ -2974,16 +2978,16 @@ function r1(n) {
2974
2978
  }, [t._fields, o]), _ = B.useMemo(() => ({
2975
2979
  name: o,
2976
2980
  value: a,
2977
- ...Ne(i) || c.disabled ? { disabled: c.disabled || i } : {},
2981
+ ...ke(i) || l.disabled ? { disabled: l.disabled || i } : {},
2978
2982
  onChange: y,
2979
2983
  onBlur: C,
2980
2984
  ref: f
2981
- }), [o, i, c.disabled, y, C, f, a]);
2985
+ }), [o, i, l.disabled, y, C, f, a]);
2982
2986
  return B.useEffect(() => {
2983
2987
  const p = t._options.shouldUnregister || r;
2984
2988
  t.register(o, {
2985
2989
  ...u.current.rules,
2986
- ...Ne(u.current.disabled) ? { disabled: u.current.disabled } : {}
2990
+ ...ke(u.current.disabled) ? { disabled: u.current.disabled } : {}
2987
2991
  });
2988
2992
  const b = (v, x) => {
2989
2993
  const w = A(t._fields, v);
@@ -2993,19 +2997,19 @@ function r1(n) {
2993
2997
  const v = mt(A(t._options.defaultValues, o));
2994
2998
  We(t._defaultValues, o, v), Te(A(t._formValues, o)) && We(t._formValues, o, v);
2995
2999
  }
2996
- return !l && t.register(o), () => {
2997
- (l ? p && !t._state.action : p) ? t.unregister(o) : b(o, !1);
3000
+ return !c && t.register(o), () => {
3001
+ (c ? p && !t._state.action : p) ? t.unregister(o) : b(o, !1);
2998
3002
  };
2999
- }, [o, t, l, r]), B.useEffect(() => {
3003
+ }, [o, t, c, r]), B.useEffect(() => {
3000
3004
  t._setDisabledField({
3001
3005
  disabled: i,
3002
3006
  name: o
3003
3007
  });
3004
3008
  }, [i, o, t]), B.useMemo(() => ({
3005
3009
  field: _,
3006
- formState: c,
3010
+ formState: l,
3007
3011
  fieldState: g
3008
- }), [_, c, g]);
3012
+ }), [_, l, g]);
3009
3013
  }
3010
3014
  const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3011
3015
  errorMessage: a1
@@ -3014,7 +3018,7 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3014
3018
  errorColor: d = "red",
3015
3019
  containerStyles: o
3016
3020
  }) => {
3017
- const { t: i } = N();
3021
+ const { t: i } = k();
3018
3022
  return /* @__PURE__ */ s(
3019
3023
  "div",
3020
3024
  {
@@ -3029,23 +3033,23 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3029
3033
  type: i,
3030
3034
  label: t,
3031
3035
  maxLength: r,
3032
- required: l,
3036
+ required: c,
3033
3037
  validateFunction: a,
3034
- placeholder: c,
3038
+ placeholder: l,
3035
3039
  errorColor: u = "red",
3036
3040
  width: h = 325,
3037
3041
  onClickForgotPass: g = () => {
3038
3042
  console.log("Click on forgot password");
3039
3043
  },
3040
3044
  forgotPassLabel: y = "forgot-password"
3041
- } = n, { t: C } = N(), [f, _] = D(!1), p = () => i ? i === "password" && f ? "text" : i : "text";
3045
+ } = n, { t: C } = k(), [f, _] = D(!1), p = () => i ? i === "password" && f ? "text" : i : "text";
3042
3046
  return /* @__PURE__ */ s(
3043
3047
  Pe,
3044
3048
  {
3045
3049
  name: o,
3046
3050
  control: d,
3047
3051
  rules: {
3048
- required: l ? `${C(t)} ${C("errorMessages.required")}` : !1,
3052
+ required: c ? `${C(t)} ${C("errorMessages.required")}` : !1,
3049
3053
  maxLength: r || void 0,
3050
3054
  validate: a || void 0
3051
3055
  },
@@ -3055,7 +3059,7 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3055
3059
  /* @__PURE__ */ m("h3", { className: oe.labelContainer, children: [
3056
3060
  C(t),
3057
3061
  " ",
3058
- l && /* @__PURE__ */ s("label", { style: { color: v.error ? u : "" }, children: "*" })
3062
+ c && /* @__PURE__ */ s("label", { style: { color: v.error ? u : "" }, children: "*" })
3059
3063
  ] }),
3060
3064
  /* @__PURE__ */ m(
3061
3065
  "div",
@@ -3068,7 +3072,7 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3068
3072
  {
3069
3073
  type: p(),
3070
3074
  ...b,
3071
- placeholder: c ? C(c) : "",
3075
+ placeholder: l ? C(l) : "",
3072
3076
  maxLength: r || void 0
3073
3077
  }
3074
3078
  ),
@@ -3096,7 +3100,7 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3096
3100
  }
3097
3101
  }
3098
3102
  );
3099
- }, c1 = "_formContainer_b071f_2", d1 = "_formObjectContainer_b071f_11", u1 = "_buttonContainer_b071f_22", ke = {
3103
+ }, c1 = "_formContainer_b071f_2", d1 = "_formObjectContainer_b071f_11", u1 = "_buttonContainer_b071f_22", Ne = {
3100
3104
  formContainer: c1,
3101
3105
  formObjectContainer: d1,
3102
3106
  buttonContainer: u1
@@ -3115,20 +3119,20 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3115
3119
  type: i,
3116
3120
  label: t,
3117
3121
  maxLength: r,
3118
- required: l,
3122
+ required: c,
3119
3123
  validateFunction: a,
3120
- placeholder: c,
3124
+ placeholder: l,
3121
3125
  errorColor: u = "red",
3122
3126
  width: h = 325,
3123
3127
  options: g = []
3124
- } = n, { t: y } = N();
3128
+ } = n, { t: y } = k();
3125
3129
  return /* @__PURE__ */ s(
3126
3130
  Pe,
3127
3131
  {
3128
3132
  name: o,
3129
3133
  control: d,
3130
3134
  rules: {
3131
- required: l ? `${y(t)} ${y("errorMessages.required")}` : !1,
3135
+ required: c ? `${y(t)} ${y("errorMessages.required")}` : !1,
3132
3136
  validate: a || void 0
3133
3137
  },
3134
3138
  render: ({ field: C, fieldState: f }) => {
@@ -3137,7 +3141,7 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3137
3141
  /* @__PURE__ */ m("h3", { className: ee.labelContainer, children: [
3138
3142
  y(t),
3139
3143
  " ",
3140
- l && /* @__PURE__ */ s("label", { style: { color: f.error ? u : "" }, children: "*" })
3144
+ c && /* @__PURE__ */ s("label", { style: { color: f.error ? u : "" }, children: "*" })
3141
3145
  ] }),
3142
3146
  /* @__PURE__ */ m("div", { className: ee.inputContainer, style: { width: h }, children: [
3143
3147
  /* @__PURE__ */ m(
@@ -3150,7 +3154,7 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3150
3154
  },
3151
3155
  className: ee.selectInput,
3152
3156
  children: [
3153
- /* @__PURE__ */ s("option", { value: "", disabled: !0, hidden: !0, children: y(c || "selectOption") }),
3157
+ /* @__PURE__ */ s("option", { value: "", disabled: !0, hidden: !0, children: y(l || "selectOption") }),
3154
3158
  g.map((p, b) => /* @__PURE__ */ s(
3155
3159
  "option",
3156
3160
  {
@@ -3183,12 +3187,12 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3183
3187
  }
3184
3188
  }
3185
3189
  );
3186
- }, v1 = "_radioButtonContainer_3bp8g_2", w1 = "_wholeInputContainer_3bp8g_5", x1 = "_questionContainer_3bp8g_27", N1 = "_radioQuestion_3bp8g_59", k1 = "_inputContainer_3bp8g_63", B1 = "_required_3bp8g_92", S1 = "_radioInput_3bp8g_109", U = {
3190
+ }, v1 = "_radioButtonContainer_3bp8g_2", w1 = "_wholeInputContainer_3bp8g_5", x1 = "_questionContainer_3bp8g_27", k1 = "_radioQuestion_3bp8g_59", N1 = "_inputContainer_3bp8g_63", B1 = "_required_3bp8g_92", S1 = "_radioInput_3bp8g_109", U = {
3187
3191
  radioButtonContainer: v1,
3188
3192
  wholeInputContainer: w1,
3189
3193
  questionContainer: x1,
3190
- radioQuestion: N1,
3191
- inputContainer: k1,
3194
+ radioQuestion: k1,
3195
+ inputContainer: N1,
3192
3196
  required: B1,
3193
3197
  radioInput: S1
3194
3198
  }, D1 = ({ input: n, control: d }) => {
@@ -3197,14 +3201,14 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3197
3201
  type: i,
3198
3202
  label: t,
3199
3203
  maxLength: r,
3200
- required: l,
3204
+ required: c,
3201
3205
  validateFunction: a,
3202
- placeholder: c,
3206
+ placeholder: l,
3203
3207
  errorColor: u = "red",
3204
3208
  width: h = 325,
3205
3209
  options: g = [],
3206
3210
  multi: y = !1
3207
- } = n, { t: C } = N(), f = ({ options: p, onChange: b, actualValue: v }) => {
3211
+ } = n, { t: C } = k(), f = ({ options: p, onChange: b, actualValue: v }) => {
3208
3212
  if (y && v && v.length > 0) {
3209
3213
  let x = v.filter((w) => w !== p);
3210
3214
  b(x);
@@ -3218,12 +3222,12 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3218
3222
  control: d,
3219
3223
  name: o,
3220
3224
  rules: {
3221
- validate: (p) => l && (p == null || p === "") ? `${C(t)} ${C("errorMessages.required")}` : null
3225
+ validate: (p) => c && (p == null || p === "") ? `${C(t)} ${C("errorMessages.required")}` : null
3222
3226
  },
3223
3227
  render: ({
3224
3228
  formState: { errors: p },
3225
3229
  field: { onChange: b, onBlur: v, value: x, ref: w },
3226
- fieldState: k
3230
+ fieldState: N
3227
3231
  }) => {
3228
3232
  var L;
3229
3233
  return /* @__PURE__ */ s("div", { id: o + "id", className: U.radioButtonContainer, children: /* @__PURE__ */ m("div", { className: U.wholeInputContainer, children: [
@@ -3231,7 +3235,7 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3231
3235
  "h3",
3232
3236
  {
3233
3237
  htmlFor: o + "id",
3234
- className: `${U.radioQuestion} ${l && U.required}`,
3238
+ className: `${U.radioQuestion} ${c && U.required}`,
3235
3239
  children: C(t)
3236
3240
  }
3237
3241
  ) }),
@@ -3272,7 +3276,7 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3272
3276
  /* @__PURE__ */ s(
3273
3277
  Ce,
3274
3278
  {
3275
- errorMessage: (L = k.error) == null ? void 0 : L.message,
3279
+ errorMessage: (L = N.error) == null ? void 0 : L.message,
3276
3280
  errorColor: u
3277
3281
  }
3278
3282
  )
@@ -3285,7 +3289,7 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3285
3289
  const { inputType: r } = i;
3286
3290
  switch (r) {
3287
3291
  case pe.text:
3288
- const { code: l, type: a, label: c, maxLength: u, required: h, validateFunction: g } = i;
3292
+ const { code: c, type: a, label: l, maxLength: u, required: h, validateFunction: g } = i;
3289
3293
  return /* @__PURE__ */ s(
3290
3294
  "div",
3291
3295
  {
@@ -3334,9 +3338,9 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3334
3338
  inputContainerStyles: i,
3335
3339
  generalError: t,
3336
3340
  errorColor: r = "red",
3337
- submitButtonLabel: l = "Submit",
3341
+ submitButtonLabel: c = "Submit",
3338
3342
  submitButtonStyles: a = { width: 325 },
3339
- activeCategory: c = null,
3343
+ activeCategory: l = null,
3340
3344
  // If provided, only the category with this categoryId will be displayed.
3341
3345
  onSubmit: u = (h) => console.log("Form submitted with data: ", h)
3342
3346
  }) => {
@@ -3346,17 +3350,17 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3346
3350
  watch: y,
3347
3351
  control: C,
3348
3352
  formState: { errors: f }
3349
- } = n, { t: _ } = N();
3353
+ } = n, { t: _ } = k();
3350
3354
  return (
3351
3355
  /* "handleSubmit" will validate your inputs before invoking "onSubmit" */
3352
- /* @__PURE__ */ m("form", { className: ke.formContainer, onSubmit: g(u), children: [
3353
- /* @__PURE__ */ s("div", { className: ke.formObjectContainer, children: d && d.map((p, b) => {
3356
+ /* @__PURE__ */ m("form", { className: Ne.formContainer, onSubmit: g(u), children: [
3357
+ /* @__PURE__ */ s("div", { className: Ne.formObjectContainer, children: d && d.map((p, b) => {
3354
3358
  const { inputs: v } = p;
3355
3359
  return p.category ? o ? /* @__PURE__ */ s(
3356
3360
  "div",
3357
3361
  {
3358
3362
  style: {
3359
- display: c && p.categoryId !== c ? "none" : "inherit",
3363
+ display: l && p.categoryId !== l ? "none" : "inherit",
3360
3364
  width: "100%"
3361
3365
  },
3362
3366
  children: /* @__PURE__ */ s(
@@ -3381,7 +3385,7 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3381
3385
  {
3382
3386
  style: {
3383
3387
  width: "100%",
3384
- display: c && p.categoryId !== c ? "none" : "flex",
3388
+ display: l && p.categoryId !== l ? "none" : "flex",
3385
3389
  flexDirection: "column"
3386
3390
  },
3387
3391
  children: [
@@ -3408,8 +3412,8 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3408
3412
  }
3409
3413
  ) }, `inputKey${b}`);
3410
3414
  }) }),
3411
- /* @__PURE__ */ m("div", { className: ke.buttonContainer, children: [
3412
- /* @__PURE__ */ s(ge, { containerStyles: a, type: "submit", children: _(l) }),
3415
+ /* @__PURE__ */ m("div", { className: Ne.buttonContainer, children: [
3416
+ /* @__PURE__ */ s(ge, { containerStyles: a, type: "submit", children: _(c) }),
3413
3417
  /* @__PURE__ */ s(Ce, { errorMessage: t, errorColor: r })
3414
3418
  ] })
3415
3419
  ] })
@@ -3427,7 +3431,7 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3427
3431
  rightComponents: i = [],
3428
3432
  zIndex: t = 10,
3429
3433
  height: r = 60,
3430
- backgroundColor: l = "#605B56",
3434
+ backgroundColor: c = "#605B56",
3431
3435
  isFooter: a = !1
3432
3436
  // If true, it will apply footer styles
3433
3437
  }) => /* @__PURE__ */ m(
@@ -3438,14 +3442,14 @@ const Pe = (n) => n.render(r1(n)), a1 = "_errorMessage_1xiyb_2", l1 = {
3438
3442
  ...n,
3439
3443
  zIndex: t,
3440
3444
  height: r,
3441
- backgroundColor: l,
3445
+ backgroundColor: c,
3442
3446
  top: a ? "auto" : 0,
3443
3447
  bottom: a ? 0 : "auto"
3444
3448
  },
3445
3449
  children: [
3446
- /* @__PURE__ */ s("div", { className: G.leftComponents, children: d.map((c, u) => /* @__PURE__ */ s("div", { className: G.componentsContainer, children: c }, u)) }),
3447
- /* @__PURE__ */ s("div", { className: G.centerComponents, children: o.map((c, u) => /* @__PURE__ */ s("div", { className: G.componentsContainer, children: c }, u)) }),
3448
- /* @__PURE__ */ s("div", { className: G.rightComponents, children: i.map((c, u) => /* @__PURE__ */ s("div", { className: G.componentsContainer, children: c }, u)) })
3450
+ /* @__PURE__ */ s("div", { className: G.leftComponents, children: d.map((l, u) => /* @__PURE__ */ s("div", { className: G.componentsContainer, children: l }, u)) }),
3451
+ /* @__PURE__ */ s("div", { className: G.centerComponents, children: o.map((l, u) => /* @__PURE__ */ s("div", { className: G.componentsContainer, children: l }, u)) }),
3452
+ /* @__PURE__ */ s("div", { className: G.rightComponents, children: i.map((l, u) => /* @__PURE__ */ s("div", { className: G.componentsContainer, children: l }, u)) })
3449
3453
  ]
3450
3454
  }
3451
3455
  );