@tmf_ciclica/ciclicastorybook 1.2.74 → 1.2.76

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
@@ -13,7 +13,7 @@ import { useSelector as x2 } from "react-redux";
13
13
  import w2, { Source as N2, Layer as k2, NavigationControl as $2, Popup as S2 } from "react-map-gl/mapbox";
14
14
  import rt from "maplibre-gl";
15
15
  import { Protocol as L2 } from "pmtiles";
16
- import M2, { Source as B2, Layer as T2, NavigationControl as D2, Popup as V2 } from "react-map-gl/maplibre";
16
+ import M2, { Source as T2, Layer as B2, NavigationControl as D2, Popup as V2 } from "react-map-gl/maplibre";
17
17
  import { createSlice as F2 } from "@reduxjs/toolkit";
18
18
  import A2 from "@mui/material/Slider";
19
19
  import { createTheme as O2, Box as R2 } from "@mui/material";
@@ -28,7 +28,7 @@ const E2 = "_ambitSelector_mcunf_2", q2 = "_header_mcunf_13", P2 = "_nameDateCon
28
28
  buttonsContainer: j2,
29
29
  ambitListContainer: H2,
30
30
  newAmbitButtonContainer: K2
31
- }, W2 = "_ambitItem_1qa6u_2", U2 = "_ambitNameDate_1qa6u_16", G2 = "_ambitName_1qa6u_16", X2 = "_ambitDate_1qa6u_35", Q2 = "_ambitButtons_1qa6u_38", Be = {
31
+ }, W2 = "_ambitItem_1qa6u_2", U2 = "_ambitNameDate_1qa6u_16", G2 = "_ambitName_1qa6u_16", X2 = "_ambitDate_1qa6u_35", Q2 = "_ambitButtons_1qa6u_38", Te = {
32
32
  ambitItem: W2,
33
33
  ambitNameDate: U2,
34
34
  ambitName: G2,
@@ -42,18 +42,18 @@ const E2 = "_ambitSelector_mcunf_2", q2 = "_header_mcunf_13", P2 = "_nameDateCon
42
42
  onClickAmbit: t,
43
43
  isActive: o,
44
44
  activeColor: d,
45
- fontColor: l,
46
- moreInfo: a
45
+ fontColor: a,
46
+ moreInfo: l
47
47
  }) => {
48
48
  const { name: u, created_at: g, id: h, isBeingProcessed: y } = n;
49
49
  return /* @__PURE__ */ m(
50
50
  "div",
51
51
  {
52
- className: Be.ambitItem,
53
- style: { borderBottom: `1px solid ${l}` },
52
+ className: Te.ambitItem,
53
+ style: { borderBottom: `1px solid ${a}` },
54
54
  children: [
55
- /* @__PURE__ */ m("div", { className: Be.ambitNameDate, onClick: () => t(h), children: [
56
- /* @__PURE__ */ m("div", { className: Be.ambitName, children: [
55
+ /* @__PURE__ */ m("div", { className: Te.ambitNameDate, onClick: () => t(h), children: [
56
+ /* @__PURE__ */ m("div", { className: Te.ambitName, children: [
57
57
  /* @__PURE__ */ i(
58
58
  "img",
59
59
  {
@@ -61,11 +61,11 @@ const E2 = "_ambitSelector_mcunf_2", q2 = "_header_mcunf_13", P2 = "_nameDateCon
61
61
  src: o ? n0 : i0
62
62
  }
63
63
  ),
64
- /* @__PURE__ */ i("span", { style: { color: o ? d : l }, children: u })
64
+ /* @__PURE__ */ i("span", { style: { color: o ? d : a }, children: u })
65
65
  ] }),
66
- /* @__PURE__ */ i("div", { className: Be.ambitDate, children: g ? new Date(g).toLocaleDateString() : "" })
66
+ /* @__PURE__ */ i("div", { className: Te.ambitDate, children: g ? new Date(g).toLocaleDateString() : "" })
67
67
  ] }),
68
- /* @__PURE__ */ m("div", { className: Be.ambitButtons, children: [
68
+ /* @__PURE__ */ m("div", { className: Te.ambitButtons, children: [
69
69
  y && /* @__PURE__ */ i("img", { src: t0 }),
70
70
  /* @__PURE__ */ i("button", { onClick: () => r(h), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: e0 }) }),
71
71
  /* @__PURE__ */ i("button", { onClick: () => c(h), children: /* @__PURE__ */ i("img", { src: Y2 }) }),
@@ -103,7 +103,7 @@ const $t = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
103
103
  backgroundColor: t = "#fff",
104
104
  type: o = "button",
105
105
  containerStyles: d = {},
106
- disabled: l = !1
106
+ disabled: a = !1
107
107
  }) => /* @__PURE__ */ i(
108
108
  "button",
109
109
  {
@@ -116,7 +116,7 @@ const $t = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
116
116
  },
117
117
  onClick: c,
118
118
  type: o,
119
- disabled: l,
119
+ disabled: a,
120
120
  children: n
121
121
  }
122
122
  ), o0 = ({
@@ -127,8 +127,8 @@ const $t = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
127
127
  nameLabel: t,
128
128
  dateLabel: o,
129
129
  newAmbitLabel: d = "New field",
130
- buttonContainerStyles: l = {},
131
- containerStyles: a = {},
130
+ buttonContainerStyles: a = {},
131
+ containerStyles: l = {},
132
132
  onCLickNewAmbit: u = () => console.log("New ambit clicked"),
133
133
  onClickCopy: g = (f) => console.log(`Copy ambit: ${f}`),
134
134
  onCLickDelete: h = (f) => console.log(`Delete ambit: ${f}`),
@@ -149,7 +149,7 @@ const $t = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
149
149
  "div",
150
150
  {
151
151
  className: he.ambitSelector,
152
- style: { color: s, ...a },
152
+ style: { color: s, ...l },
153
153
  children: [
154
154
  /* @__PURE__ */ m(
155
155
  "div",
@@ -188,7 +188,7 @@ const $t = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
188
188
  /* @__PURE__ */ i("div", { className: he.newAmbitButtonContainer, children: /* @__PURE__ */ i(
189
189
  Xe,
190
190
  {
191
- style: { ...l },
191
+ style: { ...a },
192
192
  onClick: u,
193
193
  borderColor: "grey",
194
194
  children: f(d)
@@ -255,7 +255,7 @@ const y0 = ({
255
255
  {
256
256
  className: `${fe.buttonsContainer} ${c === "vertical" && fe.vertical}
257
257
  ${c === "horizontal" && fe.horizontal}`,
258
- children: n.map((l, a) => {
258
+ children: n.map((a, l) => {
259
259
  const {
260
260
  icon: u,
261
261
  activeIcon: g,
@@ -263,7 +263,7 @@ const y0 = ({
263
263
  name: y,
264
264
  onClick: p,
265
265
  disabled: f
266
- } = l, b = /* @__PURE__ */ m(Ge, { children: [
266
+ } = a, b = /* @__PURE__ */ m(Ge, { children: [
267
267
  s && r === "left" && /* @__PURE__ */ i("span", { className: fe.buttonName, children: d(y) }),
268
268
  /* @__PURE__ */ i("img", { src: h ? g : u, alt: d(y) }),
269
269
  s && r === "right" && /* @__PURE__ */ i("span", { className: fe.buttonName, children: d(y) })
@@ -280,7 +280,7 @@ const y0 = ({
280
280
  }
281
281
  ),
282
282
  t && /* @__PURE__ */ i(ue, { text: y, position: o })
283
- ] }, a);
283
+ ] }, l);
284
284
  })
285
285
  }
286
286
  );
@@ -317,8 +317,8 @@ const b0 = "_indicatorsCategory_11gdl_2", _0 = "_title_11gdl_6", v0 = "_mainTitl
317
317
  //Change the height only if the title is more than one line or you change title fontSize, otherwise should be 53px
318
318
  height: d = 53,
319
319
  //Adjust height if you change fontSize
320
- titleFontStyles: l,
321
- showBottomBar: a = !0,
320
+ titleFontStyles: a,
321
+ showBottomBar: l = !0,
322
322
  titleMarginChildren: u = 15,
323
323
  mainTitle: g = !1
324
324
  }) => {
@@ -332,7 +332,7 @@ const b0 = "_indicatorsCategory_11gdl_2", _0 = "_title_11gdl_6", v0 = "_mainTitl
332
332
  transition: { duration: 0.4 },
333
333
  style: {
334
334
  backgroundColor: "white",
335
- borderBottom: n && a ? `1px solid ${t}` : "0px",
335
+ borderBottom: n && l ? `1px solid ${t}` : "0px",
336
336
  minHeight: g ? "70px" : "50px"
337
337
  },
338
338
  children: [
@@ -340,7 +340,7 @@ const b0 = "_indicatorsCategory_11gdl_2", _0 = "_title_11gdl_6", v0 = "_mainTitl
340
340
  "h2",
341
341
  {
342
342
  style: {
343
- ...l
343
+ ...a
344
344
  //marginBottom: titleMarginChildren ? titleMarginChildren : "auto",
345
345
  },
346
346
  className: `${Pe.title} ${g && Pe.mainTitle}`,
@@ -379,7 +379,7 @@ const Ir = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), x0 = "data
379
379
  inputsColor: "#605B56",
380
380
  activeFiltersType: null
381
381
  })), Qt = ({ title: n, onClick: c, isOpen: s = !0, textColor: r = "#ffffff", backgroundColor: t = "#605B5680", activeColor: o, fontColor: d = "#605B56" }) => {
382
- const { t: l } = F(), { tematicalFiltersSelected: a, activeFiltersType: u } = P((y) => y), g = (y) => {
382
+ const { t: a } = F(), { tematicalFiltersSelected: l, activeFiltersType: u } = P((y) => y), g = (y) => {
383
383
  P.setState((p) => ({
384
384
  tematicalFiltersSelected: p.tematicalFiltersSelected.filter(
385
385
  (f) => f.code !== y
@@ -393,12 +393,12 @@ const Ir = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), x0 = "data
393
393
  onClick: () => {
394
394
  u == "applied" ? P.setState(() => ({ activeFiltersType: null })) : P.setState(() => ({ activeFiltersType: "applied" }));
395
395
  },
396
- title: n ? l(n) : "Applied Filters",
396
+ title: n ? a(n) : "Applied Filters",
397
397
  activeColor: o,
398
398
  mainTitle: !0,
399
399
  color: d,
400
- children: /* @__PURE__ */ i("div", { className: St.AppliedFiltersContainer, children: a == null ? void 0 : a.map((y, p) => /* @__PURE__ */ m("div", { className: St.AppliedFilterContent, style: { color: r, background: t }, children: [
401
- l(y.name),
400
+ children: /* @__PURE__ */ i("div", { className: St.AppliedFiltersContainer, children: l == null ? void 0 : l.map((y, p) => /* @__PURE__ */ m("div", { className: St.AppliedFilterContent, style: { color: r, background: t }, children: [
401
+ a(y.name),
402
402
  /* @__PURE__ */ i("img", { src: x0, alt: "CloseIcon", onClick: () => g(y.code), style: { cursor: "pointer" } })
403
403
  ] }, p)) })
404
404
  }
@@ -430,8 +430,8 @@ const k0 = "_layersList_cn837_25", $0 = "_layerName_cn837_34", Lt = {
430
430
  geoLayers: o = [],
431
431
  onGeoLayersChange: d
432
432
  }) => {
433
- const { t: l } = F(), { activeFiltersType: a } = P((h) => h), u = () => {
434
- a === "geographical" ? P.setState({ activeFiltersType: null }) : P.setState({ activeFiltersType: "geographical" });
433
+ const { t: a } = F(), { activeFiltersType: l } = P((h) => h), u = () => {
434
+ l === "geographical" ? P.setState({ activeFiltersType: null }) : P.setState({ activeFiltersType: "geographical" });
435
435
  }, g = (h) => {
436
436
  const y = o.map((p) => ({
437
437
  ...p,
@@ -442,9 +442,9 @@ const k0 = "_layersList_cn837_25", $0 = "_layerName_cn837_34", Lt = {
442
442
  return /* @__PURE__ */ i(
443
443
  we,
444
444
  {
445
- isOpen: a === "geographical",
445
+ isOpen: l === "geographical",
446
446
  onClick: u,
447
- title: n ? l(n) : "Geographical Filters",
447
+ title: n ? a(n) : "Geographical Filters",
448
448
  activeColor: t,
449
449
  color: s,
450
450
  mainTitle: !0,
@@ -457,7 +457,7 @@ const k0 = "_layersList_cn837_25", $0 = "_layerName_cn837_34", Lt = {
457
457
  fontWeight: h.active ? "bold" : "normal"
458
458
  },
459
459
  onClick: () => g(h),
460
- children: l(h.name)
460
+ children: a(h.name)
461
461
  },
462
462
  h.name
463
463
  )) })
@@ -481,7 +481,7 @@ const S0 = "_checkboxContainer_1nxra_2", L0 = {
481
481
  indicator: r,
482
482
  value: t
483
483
  }) => {
484
- const { t: o } = F(), { title: d } = r || {}, { fontColor: l, inputsColor: a } = P((u) => u);
484
+ const { t: o } = F(), { title: d } = r || {}, { fontColor: a, inputsColor: l } = P((u) => u);
485
485
  return /* @__PURE__ */ m(
486
486
  "div",
487
487
  {
@@ -498,8 +498,8 @@ const S0 = "_checkboxContainer_1nxra_2", L0 = {
498
498
  value: t,
499
499
  readOnly: !0,
500
500
  style: {
501
- border: `1.5px solid ${t ? a : l}`,
502
- backgroundColor: t ? a : "white"
501
+ border: `1.5px solid ${t ? l : a}`,
502
+ backgroundColor: t ? l : "white"
503
503
  }
504
504
  }
505
505
  ),
@@ -559,98 +559,98 @@ let ft = function(n) {
559
559
  t.onEnd();
560
560
  }, t.onMouseUp = () => {
561
561
  t.onEnd(t.getMouseEventMap());
562
- }, t.onTouchEnd = (l) => {
563
- l.preventDefault(), t.onEnd(t.getTouchEventMap());
562
+ }, t.onTouchEnd = (a) => {
563
+ a.preventDefault(), t.onEnd(t.getTouchEventMap());
564
564
  }, t.onBlur = () => {
565
565
  t.setState({ index: -1 }, t.onEnd(t.getKeyDownEventMap()));
566
- }, t.onMouseMove = (l) => {
566
+ }, t.onMouseMove = (a) => {
567
567
  t.setState({ pending: !0 });
568
- const a = t.getMousePosition(l), u = t.getDiffPosition(a[0]), g = t.getValueFromPosition(u);
568
+ const l = t.getMousePosition(a), u = t.getDiffPosition(l[0]), g = t.getValueFromPosition(u);
569
569
  t.move(g);
570
- }, t.onTouchMove = (l) => {
571
- if (l.touches.length > 1) return;
570
+ }, t.onTouchMove = (a) => {
571
+ if (a.touches.length > 1) return;
572
572
  t.setState({ pending: !0 });
573
- const a = t.getTouchPosition(l);
573
+ const l = t.getTouchPosition(a);
574
574
  if (t.isScrolling === void 0) {
575
- const h = a[0] - t.startPosition[0], y = a[1] - t.startPosition[1];
575
+ const h = l[0] - t.startPosition[0], y = l[1] - t.startPosition[1];
576
576
  t.isScrolling = Math.abs(y) > Math.abs(h);
577
577
  }
578
578
  if (t.isScrolling) return void t.setState({ index: -1 });
579
- const u = t.getDiffPosition(a[0]), g = t.getValueFromPosition(u);
579
+ const u = t.getDiffPosition(l[0]), g = t.getValueFromPosition(u);
580
580
  t.move(g);
581
- }, t.onKeyDown = (l) => {
582
- if (!(l.ctrlKey || l.shiftKey || l.altKey || l.metaKey)) switch (t.setState({ pending: !0 }), l.key) {
581
+ }, t.onKeyDown = (a) => {
582
+ if (!(a.ctrlKey || a.shiftKey || a.altKey || a.metaKey)) switch (t.setState({ pending: !0 }), a.key) {
583
583
  case "ArrowLeft":
584
584
  case "ArrowDown":
585
585
  case "Left":
586
586
  case "Down":
587
- l.preventDefault(), t.moveDownByStep();
587
+ a.preventDefault(), t.moveDownByStep();
588
588
  break;
589
589
  case "ArrowRight":
590
590
  case "ArrowUp":
591
591
  case "Right":
592
592
  case "Up":
593
- l.preventDefault(), t.moveUpByStep();
593
+ a.preventDefault(), t.moveUpByStep();
594
594
  break;
595
595
  case "Home":
596
- l.preventDefault(), t.move(t.props.min);
596
+ a.preventDefault(), t.move(t.props.min);
597
597
  break;
598
598
  case "End":
599
- l.preventDefault(), t.move(t.props.max);
599
+ a.preventDefault(), t.move(t.props.max);
600
600
  break;
601
601
  case "PageDown":
602
- l.preventDefault(), t.moveDownByStep(t.props.pageFn(t.props.step));
602
+ a.preventDefault(), t.moveDownByStep(t.props.pageFn(t.props.step));
603
603
  break;
604
604
  case "PageUp":
605
- l.preventDefault(), t.moveUpByStep(t.props.pageFn(t.props.step));
605
+ a.preventDefault(), t.moveUpByStep(t.props.pageFn(t.props.step));
606
606
  }
607
- }, t.onSliderMouseDown = (l) => {
608
- if (!t.props.disabled && l.button !== 2) {
607
+ }, t.onSliderMouseDown = (a) => {
608
+ if (!t.props.disabled && a.button !== 2) {
609
609
  if (t.setState({ pending: !0 }), !t.props.snapDragDisabled) {
610
- const a = t.getMousePosition(l);
611
- t.forceValueFromPosition(a[0], (u) => {
612
- t.start(u, a[0]), Ze(t.getMouseEventMap());
610
+ const l = t.getMousePosition(a);
611
+ t.forceValueFromPosition(l[0], (u) => {
612
+ t.start(u, l[0]), Ze(t.getMouseEventMap());
613
613
  });
614
614
  }
615
- ot(l);
615
+ ot(a);
616
616
  }
617
- }, t.onSliderClick = (l) => {
617
+ }, t.onSliderClick = (a) => {
618
618
  if (!t.props.disabled && t.props.onSliderClick && !t.hasMoved) {
619
- const a = t.getMousePosition(l), u = ye(t.calcValue(t.calcOffsetFromPosition(a[0])), t.props);
619
+ const l = t.getMousePosition(a), u = ye(t.calcValue(t.calcOffsetFromPosition(l[0])), t.props);
620
620
  t.props.onSliderClick(u);
621
621
  }
622
- }, t.createOnKeyDown = (l) => (a) => {
623
- t.props.disabled || (t.start(l), Ze(t.getKeyDownEventMap()), ot(a));
624
- }, t.createOnMouseDown = (l) => (a) => {
625
- if (t.props.disabled || a.button === 2) return;
622
+ }, t.createOnKeyDown = (a) => (l) => {
623
+ t.props.disabled || (t.start(a), Ze(t.getKeyDownEventMap()), ot(l));
624
+ }, t.createOnMouseDown = (a) => (l) => {
625
+ if (t.props.disabled || l.button === 2) return;
626
626
  t.setState({ pending: !0 });
627
- const u = t.getMousePosition(a);
628
- t.start(l, u[0]), Ze(t.getMouseEventMap()), ot(a);
629
- }, t.createOnTouchStart = (l) => (a) => {
630
- if (t.props.disabled || a.touches.length > 1) return;
627
+ const u = t.getMousePosition(l);
628
+ t.start(a, u[0]), Ze(t.getMouseEventMap()), ot(l);
629
+ }, t.createOnTouchStart = (a) => (l) => {
630
+ if (t.props.disabled || l.touches.length > 1) return;
631
631
  t.setState({ pending: !0 });
632
- const u = t.getTouchPosition(a);
633
- t.startPosition = u, t.isScrolling = void 0, t.start(l, u[0]), Ze(t.getTouchEventMap()), function(g) {
632
+ const u = t.getTouchPosition(l);
633
+ t.startPosition = u, t.isScrolling = void 0, t.start(a, u[0]), Ze(t.getTouchEventMap()), function(g) {
634
634
  g.stopPropagation && g.stopPropagation();
635
- }(a);
635
+ }(l);
636
636
  }, t.handleResize = () => {
637
- const l = window.setTimeout(() => {
637
+ const a = window.setTimeout(() => {
638
638
  t.pendingResizeTimeouts.shift(), t.resize();
639
639
  }, 0);
640
- t.pendingResizeTimeouts.push(l);
641
- }, t.renderThumb = (l, a) => {
642
- const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + a + " " + (t.state.index === a ? t.props.thumbActiveClassName : ""), g = { ref: (y) => {
643
- t["thumb" + a] = y;
644
- }, key: t.props.thumbClassName + "-" + a, className: u, style: l, onMouseDown: t.createOnMouseDown(a), onTouchStart: t.createOnTouchStart(a), onFocus: t.createOnKeyDown(a), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[a], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[a] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[a] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, h = { index: a, value: ze(t.state.value), valueNow: t.state.value[a] };
640
+ t.pendingResizeTimeouts.push(a);
641
+ }, t.renderThumb = (a, l) => {
642
+ const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + l + " " + (t.state.index === l ? t.props.thumbActiveClassName : ""), g = { ref: (y) => {
643
+ t["thumb" + l] = y;
644
+ }, 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 }, h = { index: l, value: ze(t.state.value), valueNow: t.state.value[l] };
645
645
  return t.props.ariaValuetext && (g["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(h)), t.props.renderThumb(g, h);
646
- }, t.renderTrack = (l, a, u) => {
647
- const g = { key: t.props.trackClassName + "-" + l, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + l, style: t.buildTrackStyle(a, t.state.upperBound - u) }, h = { index: l, value: ze(t.state.value) };
646
+ }, t.renderTrack = (a, l, u) => {
647
+ const g = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(l, t.state.upperBound - u) }, h = { index: a, value: ze(t.state.value) };
648
648
  return t.props.renderTrack(g, h);
649
649
  };
650
650
  let o = at(r.value);
651
651
  o.length || (o = at(r.defaultValue)), t.pendingResizeTimeouts = [];
652
652
  const d = [];
653
- for (let l = 0; l < o.length; l += 1) o[l] = ye(o[l], r), d.push(l);
653
+ for (let a = 0; a < o.length; a += 1) o[a] = ye(o[a], r), d.push(a);
654
654
  return t.resizeObserver = null, t.resizeElementRef = q.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: o, zIndices: d }, t;
655
655
  }
656
656
  M0(c, n);
@@ -674,10 +674,10 @@ let ft = function(n) {
674
674
  return ze(this.state.value);
675
675
  }, s.getClosestIndex = function(r) {
676
676
  let t = Number.MAX_VALUE, o = -1;
677
- const { value: d } = this.state, l = d.length;
678
- for (let a = 0; a < l; a += 1) {
679
- const u = this.calcOffset(d[a]), g = Math.abs(r - u);
680
- g < t && (t = g, o = a);
677
+ const { value: d } = this.state, a = d.length;
678
+ for (let l = 0; l < a; l += 1) {
679
+ const u = this.calcOffset(d[l]), g = Math.abs(r - u);
680
+ g < t && (t = g, o = l);
681
681
  }
682
682
  return o;
683
683
  }, s.getMousePosition = function(r) {
@@ -700,7 +700,7 @@ let ft = function(n) {
700
700
  }, s.resize = function() {
701
701
  const { slider: r, thumb0: t } = this;
702
702
  if (!r || !t) return;
703
- const o = this.sizeKey(), d = r.getBoundingClientRect(), l = r[o], a = d[this.posMaxKey()], u = d[this.posMinKey()], g = t.getBoundingClientRect()[o.replace("client", "").toLowerCase()], h = l - g, y = Math.abs(a - u);
703
+ const o = this.sizeKey(), d = r.getBoundingClientRect(), a = r[o], l = d[this.posMaxKey()], u = d[this.posMinKey()], g = t.getBoundingClientRect()[o.replace("client", "").toLowerCase()], h = a - g, y = Math.abs(l - u);
704
704
  this.state.upperBound === h && this.state.sliderLength === y && this.state.thumbSize === g || this.setState({ upperBound: h, sliderLength: y, thumbSize: g });
705
705
  }, s.calcOffset = function(r) {
706
706
  const t = this.props.max - this.props.min;
@@ -708,14 +708,14 @@ let ft = function(n) {
708
708
  }, s.calcValue = function(r) {
709
709
  return r / this.state.upperBound * (this.props.max - this.props.min) + this.props.min;
710
710
  }, s.calcOffsetFromPosition = function(r) {
711
- const { slider: t } = this, o = t.getBoundingClientRect(), d = o[this.posMaxKey()], l = o[this.posMinKey()];
712
- let a = r - (window["page" + this.axisKey() + "Offset"] + (this.props.invert ? d : l));
713
- return this.props.invert && (a = this.state.sliderLength - a), a -= this.state.thumbSize / 2, a;
711
+ const { slider: t } = this, o = t.getBoundingClientRect(), d = o[this.posMaxKey()], a = o[this.posMinKey()];
712
+ let l = r - (window["page" + this.axisKey() + "Offset"] + (this.props.invert ? d : a));
713
+ return this.props.invert && (l = this.state.sliderLength - l), l -= this.state.thumbSize / 2, l;
714
714
  }, s.forceValueFromPosition = function(r, t) {
715
- const o = this.calcOffsetFromPosition(r), d = this.getClosestIndex(o), l = ye(this.calcValue(o), this.props), a = this.state.value.slice();
716
- a[d] = l;
717
- for (let u = 0; u < a.length - 1; u += 1) if (a[u + 1] - a[u] < this.props.minDistance) return;
718
- this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value: a }, () => {
715
+ const o = this.calcOffsetFromPosition(r), d = this.getClosestIndex(o), a = ye(this.calcValue(o), this.props), l = this.state.value.slice();
716
+ l[d] = a;
717
+ for (let u = 0; u < l.length - 1; u += 1) if (l[u + 1] - l[u] < this.props.minDistance) return;
718
+ this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value: l }, () => {
719
719
  t(d), this.fireChangeEvent("onChange");
720
720
  });
721
721
  }, s.clearPendingResizeTimeouts = function() {
@@ -727,7 +727,7 @@ let ft = function(n) {
727
727
  const o = this["thumb" + r];
728
728
  o && o.focus();
729
729
  const { zIndices: d } = this.state;
730
- d.splice(d.indexOf(r), 1), d.push(r), this.setState((l) => ({ startValue: l.value[r], startPosition: t !== void 0 ? t : l.startPosition, index: r, zIndices: d }));
730
+ d.splice(d.indexOf(r), 1), d.push(r), this.setState((a) => ({ startValue: a.value[r], startPosition: t !== void 0 ? t : a.startPosition, index: r, zIndices: d }));
731
731
  }, s.moveUpByStep = function(r) {
732
732
  r === void 0 && (r = this.props.step);
733
733
  const t = this.state.value[this.state.index], o = ye(this.props.invert && this.props.orientation === "horizontal" ? t - r : t + r, this.props);
@@ -737,11 +737,11 @@ let ft = function(n) {
737
737
  const t = this.state.value[this.state.index], o = ye(this.props.invert && this.props.orientation === "horizontal" ? t + r : t - r, this.props);
738
738
  this.move(Math.max(o, this.props.min));
739
739
  }, s.move = function(r) {
740
- const t = this.state.value.slice(), { index: o } = this.state, { length: d } = t, l = t[o];
741
- if (r === l) return;
740
+ const t = this.state.value.slice(), { index: o } = this.state, { length: d } = t, a = t[o];
741
+ if (r === a) return;
742
742
  this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
743
- const { pearling: a, max: u, min: g, minDistance: h } = this.props;
744
- if (!a) {
743
+ const { pearling: l, max: u, min: g, minDistance: h } = this.props;
744
+ if (!l) {
745
745
  if (o > 0) {
746
746
  const y = t[o - 1];
747
747
  r < y + h && (r = y + h);
@@ -751,22 +751,22 @@ let ft = function(n) {
751
751
  r > y - h && (r = y - h);
752
752
  }
753
753
  }
754
- t[o] = r, a && d > 1 && (r > l ? (this.pushSucceeding(t, h, o), function(y, p, f, b) {
754
+ t[o] = r, l && d > 1 && (r > a ? (this.pushSucceeding(t, h, o), function(y, p, f, b) {
755
755
  for (let v = 0; v < y; v += 1) {
756
756
  const _ = b - v * f;
757
757
  p[y - 1 - v] > _ && (p[y - 1 - v] = _);
758
758
  }
759
- }(d, t, h, u)) : r < l && (this.pushPreceding(t, h, o), function(y, p, f, b) {
759
+ }(d, t, h, u)) : r < a && (this.pushPreceding(t, h, o), function(y, p, f, b) {
760
760
  for (let v = 0; v < y; v += 1) {
761
761
  const _ = b + v * f;
762
762
  p[v] < _ && (p[v] = _);
763
763
  }
764
764
  }(d, t, h, g))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
765
765
  }, s.pushSucceeding = function(r, t, o) {
766
- let d, l;
767
- for (d = o, l = r[d] + t; r[d + 1] !== null && l > r[d + 1]; d += 1, l = r[d] + t) r[d + 1] = Ct(l, this.props);
766
+ let d, a;
767
+ for (d = o, a = r[d] + t; r[d + 1] !== null && a > r[d + 1]; d += 1, a = r[d] + t) r[d + 1] = Ct(a, this.props);
768
768
  }, s.pushPreceding = function(r, t, o) {
769
- for (let d = o, l = r[d] - t; r[d - 1] !== null && l < r[d - 1]; d -= 1, l = r[d] - t) r[d - 1] = Ct(l, this.props);
769
+ for (let d = o, a = r[d] - t; r[d - 1] !== null && a < r[d - 1]; d -= 1, a = r[d] - t) r[d - 1] = Ct(a, this.props);
770
770
  }, s.axisKey = function() {
771
771
  return this.props.orientation === "vertical" ? "Y" : "X";
772
772
  }, s.orthogonalAxisKey = function() {
@@ -790,9 +790,9 @@ let ft = function(n) {
790
790
  return (t = { position: "absolute" })[this.posMinKey()] = r, t;
791
791
  }, s.renderThumbs = function(r) {
792
792
  const { length: t } = r, o = [];
793
- for (let l = 0; l < t; l += 1) o[l] = this.buildThumbStyle(r[l], l);
793
+ for (let a = 0; a < t; a += 1) o[a] = this.buildThumbStyle(r[a], a);
794
794
  const d = [];
795
- for (let l = 0; l < t; l += 1) d[l] = this.renderThumb(o[l], l);
795
+ for (let a = 0; a < t; a += 1) d[a] = this.renderThumb(o[a], a);
796
796
  return d;
797
797
  }, s.renderTracks = function(r) {
798
798
  const t = [], o = r.length - 1;
@@ -803,23 +803,23 @@ let ft = function(n) {
803
803
  let { marks: r } = this.props;
804
804
  const t = this.props.max - this.props.min + 1;
805
805
  return typeof r == "boolean" ? r = Array.from({ length: t }).map((o, d) => d) : typeof r == "number" && (r = Array.from({ length: t }).map((o, d) => d).filter((o) => o % r == 0)), r.map(parseFloat).sort((o, d) => o - d).map((o) => {
806
- const d = this.calcOffset(o), l = { key: o, className: this.props.markClassName, style: this.buildMarkStyle(d) };
807
- return this.props.renderMark(l);
806
+ const d = this.calcOffset(o), a = { key: o, className: this.props.markClassName, style: this.buildMarkStyle(d) };
807
+ return this.props.renderMark(a);
808
808
  });
809
809
  }, s.render = function() {
810
810
  const r = [], { value: t } = this.state, o = t.length;
811
811
  for (let u = 0; u < o; u += 1) r[u] = this.calcOffset(t[u], u);
812
- const d = this.props.withTracks ? this.renderTracks(r) : null, l = this.renderThumbs(r), a = this.props.marks ? this.renderMarks() : null;
812
+ const d = this.props.withTracks ? this.renderTracks(r) : null, a = this.renderThumbs(r), l = this.props.marks ? this.renderMarks() : null;
813
813
  return q.createElement("div", { ref: (u) => {
814
814
  this.slider = u, this.resizeElementRef.current = u;
815
- }, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, d, l, a);
815
+ }, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, d, a, l);
816
816
  }, c;
817
817
  }(q.Component);
818
818
  ft.displayName = "ReactSlider", ft.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) => q.createElement("div", n), renderTrack: (n) => q.createElement("div", n), renderMark: (n) => q.createElement("span", n) };
819
819
  var yt = ft;
820
- const B0 = "_container_4u41i_2", T0 = "_unitLabel_4u41i_8", D0 = "_slider_4u41i_11", V0 = "_thumb_4u41i_17", F0 = "_track_4u41i_26", A0 = "_labels_4u41i_32", Ne = {
821
- container: B0,
822
- unitLabel: T0,
820
+ const T0 = "_container_4u41i_2", B0 = "_unitLabel_4u41i_8", D0 = "_slider_4u41i_11", V0 = "_thumb_4u41i_17", F0 = "_track_4u41i_26", A0 = "_labels_4u41i_32", Ne = {
821
+ container: T0,
822
+ unitLabel: B0,
823
823
  slider: D0,
824
824
  thumb: V0,
825
825
  track: F0,
@@ -832,15 +832,15 @@ const B0 = "_container_4u41i_2", T0 = "_unitLabel_4u41i_8", D0 = "_slider_4u41i_
832
832
  width: t = 300,
833
833
  unit: o,
834
834
  fontColor: d = "#605B56",
835
- defaultValue: l,
836
- isDate: a
835
+ defaultValue: a,
836
+ isDate: l
837
837
  }) => {
838
- const { t: u } = F(), g = a ? new Date(n).getTime() : null, h = a ? new Date(c).getTime() : null, [y, p] = I(a ? [g, h] : [n, c]), f = (b) => {
838
+ const { t: u } = F(), g = l ? new Date(n).getTime() : null, h = l ? new Date(c).getTime() : null, [y, p] = I(l ? [g, h] : [n, c]), f = (b) => {
839
839
  p(b), r == null || r({ min: b[0], max: b[1] });
840
840
  };
841
841
  return A(() => {
842
- l || p(a ? [g, h] : [n, c]);
843
- }, [l, a]), /* @__PURE__ */ m(
842
+ a || p(l ? [g, h] : [n, c]);
843
+ }, [a, l]), /* @__PURE__ */ m(
844
844
  "div",
845
845
  {
846
846
  className: Ne.container,
@@ -853,23 +853,23 @@ const B0 = "_container_4u41i_2", T0 = "_unitLabel_4u41i_8", D0 = "_slider_4u41i_
853
853
  className: Ne.slider,
854
854
  thumbClassName: Ne.thumb,
855
855
  trackClassName: Ne.track,
856
- min: a ? g : n,
857
- max: a ? h : c,
858
- step: a ? (h - g) / 30 : s,
856
+ min: l ? g : n,
857
+ max: l ? h : c,
858
+ step: l ? (h - g) / 30 : s,
859
859
  value: y,
860
860
  onAfterChange: f,
861
861
  withTracks: !0,
862
- pearling: !a,
863
- minDistance: a ? 0 : 0.1
862
+ pearling: !l,
863
+ minDistance: l ? 0 : 0.1
864
864
  }
865
865
  ),
866
866
  /* @__PURE__ */ m("div", { className: Ne.labels, children: [
867
- /* @__PURE__ */ i("span", { children: a ? new Date(y[0]).toLocaleDateString("en-EN", {
867
+ /* @__PURE__ */ i("span", { children: l ? new Date(y[0]).toLocaleDateString("en-EN", {
868
868
  day: "2-digit",
869
869
  month: "short",
870
870
  year: "numeric"
871
871
  }) : y[0] }),
872
- /* @__PURE__ */ i("span", { children: a ? new Date(y[1]).toLocaleDateString("en-EN", {
872
+ /* @__PURE__ */ i("span", { children: l ? new Date(y[1]).toLocaleDateString("en-EN", {
873
873
  day: "2-digit",
874
874
  month: "short",
875
875
  year: "numeric"
@@ -905,8 +905,8 @@ const O0 = "_tematicalFiltersInputContainer_1vm1r_2", R0 = "_inputTypeContainer_
905
905
  type: t,
906
906
  name: o,
907
907
  values: d,
908
- minValue: l,
909
- maxValue: a,
908
+ minValue: a,
909
+ maxValue: l,
910
910
  unit: u,
911
911
  step: g,
912
912
  disabled: h,
@@ -924,7 +924,7 @@ const O0 = "_tematicalFiltersInputContainer_1vm1r_2", R0 = "_inputTypeContainer_
924
924
  inputsColor: x
925
925
  } = P((N) => N), S = (N) => {
926
926
  if (N) {
927
- const { min: w, max: $, valueClicked: L, allValues: k } = N || {}, { code: V, type: D, source: T } = n || {}, O = f ? "abs" : p ? "cat" : "both";
927
+ const { min: w, max: $, valueClicked: L, allValues: k } = N || {}, { code: V, type: D, source: B } = n || {}, O = f ? "abs" : p ? "cat" : "both";
928
928
  let R = V[0];
929
929
  D == "both" && (R = O == "cat" ? V[1] : V[0]), O == "cat" ? P.setState((H) => {
930
930
  let ee = H.tematicalFiltersSelected.find(
@@ -953,7 +953,7 @@ const O0 = "_tematicalFiltersInputContainer_1vm1r_2", R0 = "_inputTypeContainer_
953
953
  code: R,
954
954
  values: E.filter((K) => K !== L),
955
955
  name: n.name,
956
- source: T,
956
+ source: B,
957
957
  isDate: y
958
958
  }
959
959
  ]
@@ -1084,8 +1084,8 @@ const O0 = "_tematicalFiltersInputContainer_1vm1r_2", R0 = "_inputTypeContainer_
1084
1084
  e2,
1085
1085
  {
1086
1086
  onChange: S,
1087
- min: l,
1088
- max: a,
1087
+ min: a,
1088
+ max: l,
1089
1089
  unit: u,
1090
1090
  defaultValue: C[n.code[0]] ? C[n.code[0]] : "",
1091
1091
  isDate: y,
@@ -1134,14 +1134,14 @@ const t2 = ({
1134
1134
  height: 48,
1135
1135
  color: c,
1136
1136
  activeColor: s,
1137
- children: o == null ? void 0 : o.map((d, l) => /* @__PURE__ */ i(
1137
+ children: o == null ? void 0 : o.map((d, a) => /* @__PURE__ */ i(
1138
1138
  wt,
1139
1139
  {
1140
1140
  indicator: d,
1141
1141
  fontColor: c,
1142
1142
  activeColor: s
1143
1143
  },
1144
- `indicatorSub-${l}`
1144
+ `indicatorSub-${a}`
1145
1145
  ))
1146
1146
  }
1147
1147
  );
@@ -1164,12 +1164,12 @@ const n2 = ({
1164
1164
  // onChangeBothType,
1165
1165
  activeColor: c
1166
1166
  }) => {
1167
- const { name: s, subcategories: r, indicators: t } = n || {}, { activeCategory: o, fontColor: d } = P((l) => l);
1167
+ const { name: s, subcategories: r, indicators: t } = n || {}, { activeCategory: o, fontColor: d } = P((a) => a);
1168
1168
  return n && /* @__PURE__ */ i(
1169
1169
  we,
1170
1170
  {
1171
1171
  onClick: () => {
1172
- P.setState((l) => ({
1172
+ P.setState((a) => ({
1173
1173
  activeCategory: o === `id${s}` ? "" : `id${s}`
1174
1174
  }));
1175
1175
  },
@@ -1179,22 +1179,22 @@ const n2 = ({
1179
1179
  showBottomBar: !1,
1180
1180
  color: d,
1181
1181
  activeColor: c,
1182
- children: r ? r.map((l, a) => /* @__PURE__ */ i(
1182
+ children: r ? r.map((a, l) => /* @__PURE__ */ i(
1183
1183
  t2,
1184
1184
  {
1185
- subcategory: l,
1185
+ subcategory: a,
1186
1186
  fontColor: d,
1187
1187
  activeColor: c
1188
1188
  },
1189
- `subcategory-${a}`
1190
- )) : t && t.map((l, a) => /* @__PURE__ */ i(
1189
+ `subcategory-${l}`
1190
+ )) : t && t.map((a, l) => /* @__PURE__ */ i(
1191
1191
  wt,
1192
1192
  {
1193
- indicator: l,
1193
+ indicator: a,
1194
1194
  fontColor: d,
1195
1195
  activeColor: c
1196
1196
  },
1197
- `indicator-${a}`
1197
+ `indicator-${l}`
1198
1198
  ))
1199
1199
  }
1200
1200
  );
@@ -1217,7 +1217,7 @@ const i2 = ({
1217
1217
  inputsColor: t = "#605B56",
1218
1218
  activeColor: o
1219
1219
  }) => {
1220
- const { tematicalFiltersSelected: d, activeFiltersType: l } = P((g) => g), { t: a } = F();
1220
+ const { tematicalFiltersSelected: d, activeFiltersType: a } = P((g) => g), { t: l } = F();
1221
1221
  A(() => {
1222
1222
  }, [d]), A(() => {
1223
1223
  r && P.setState(() => ({ fontColor: r }));
@@ -1225,13 +1225,13 @@ const i2 = ({
1225
1225
  t && P.setState(() => ({ inputsColor: t }));
1226
1226
  }, [t]);
1227
1227
  const u = () => {
1228
- l == "tematical" ? P.setState(() => ({ activeFiltersType: null })) : P.setState(() => ({ activeFiltersType: "tematical" }));
1228
+ a == "tematical" ? P.setState(() => ({ activeFiltersType: null })) : P.setState(() => ({ activeFiltersType: "tematical" }));
1229
1229
  };
1230
1230
  return /* @__PURE__ */ i(
1231
1231
  we,
1232
1232
  {
1233
- isOpen: l == "tematical",
1234
- title: s ? a(s) : "Tematical filters",
1233
+ isOpen: a == "tematical",
1234
+ title: s ? l(s) : "Tematical filters",
1235
1235
  color: r,
1236
1236
  activeColor: o,
1237
1237
  onClick: u,
@@ -1274,8 +1274,8 @@ const q0 = "_FiltersAmbitContainer_1hv16_2", P0 = "_FiltersContainer_1hv16_15",
1274
1274
  activeColor: t,
1275
1275
  textColor: o,
1276
1276
  backgroundColor: d,
1277
- onChangeAppliedFilters: l,
1278
- saveAmbit: a,
1277
+ onChangeAppliedFilters: a,
1278
+ saveAmbit: l,
1279
1279
  namePlaceholder: u,
1280
1280
  descPlaceholder: g,
1281
1281
  filtersTypes: h = ["geographical", "tematical"],
@@ -1295,15 +1295,15 @@ const q0 = "_FiltersAmbitContainer_1hv16_2", P0 = "_FiltersContainer_1hv16_15",
1295
1295
  tematicalFiltersSelected: s || []
1296
1296
  });
1297
1297
  }, [s]), Y(!1), A(() => {
1298
- l(x);
1298
+ a(x);
1299
1299
  }, [x]);
1300
1300
  const V = () => {
1301
- v ? C && w ? a({ name: C, description: w }) : k(!0) : C ? a({ name: C, description: w }) : k(!0);
1301
+ v ? C && w ? l({ name: C, description: w }) : k(!0) : C ? l({ name: C, description: w }) : k(!0);
1302
1302
  };
1303
1303
  return A(() => {
1304
1304
  if (h.includes("geographical") && S != "geographical" && p.length > 0) {
1305
- const D = p.map((T) => ({
1306
- ...T,
1305
+ const D = p.map((B) => ({
1306
+ ...B,
1307
1307
  active: !1
1308
1308
  }));
1309
1309
  f == null || f(D);
@@ -1400,10 +1400,10 @@ const G0 = "_barChartContainer_1each_2", Mt = {
1400
1400
  // Maximum value for the scale
1401
1401
  maxValue: d = null,
1402
1402
  // Orientation of the chart ("horizontal" or "vertical")
1403
- orientation: l = "horizontal",
1404
- horizontalPadding: a = l == "vertical" ? 50 : 20,
1403
+ orientation: a = "horizontal",
1404
+ horizontalPadding: l = a == "vertical" ? 50 : 20,
1405
1405
  verticalPadding: u = 10,
1406
- xLabelPadding: g = l == "vertical" ? 50 : 40,
1406
+ xLabelPadding: g = a == "vertical" ? 50 : 40,
1407
1407
  containerWidth: h = 700,
1408
1408
  containerHeight: y = 500
1409
1409
  }) => {
@@ -1419,14 +1419,14 @@ const G0 = "_barChartContainer_1each_2", Mt = {
1419
1419
  } = Me(() => {
1420
1420
  if (n && n.length > 0) {
1421
1421
  const N = st.max(n, ($) => $.value) || 1, w = d || N;
1422
- if (l === "vertical") {
1423
- const $ = n.length * (c + s) + a * 2, L = Math.max($, h || 0), k = y, D = st.scaleLinear().domain([0, w]).range([k - 100, u]), T = Array.from(
1422
+ if (a === "vertical") {
1423
+ const $ = n.length * (c + s) + l * 2, L = Math.max($, h || 0), k = y, D = st.scaleLinear().domain([0, w]).range([k - 100, u]), B = Array.from(
1424
1424
  { length: o + 1 },
1425
1425
  (O, R) => w / o * R
1426
1426
  );
1427
1427
  return {
1428
1428
  yScale: D,
1429
- ticks: T,
1429
+ ticks: B,
1430
1430
  height: k,
1431
1431
  chartWidth: L,
1432
1432
  svgWidth: L,
@@ -1436,9 +1436,9 @@ const G0 = "_barChartContainer_1each_2", Mt = {
1436
1436
  } else {
1437
1437
  const $ = n.length * (c + s);
1438
1438
  console.log("barsHeight: ", $);
1439
- const L = $ + u * 2 + g + 30, k = h + t + a * 2, V = st.scaleLinear().domain([0, w]).range([0, h - a * 2]), D = Array.from(
1439
+ const L = $ + u * 2 + g + 30, k = h + t + l * 2, V = st.scaleLinear().domain([0, w]).range([0, h - l * 2]), D = Array.from(
1440
1440
  { length: o + 1 },
1441
- (T, O) => w / o * O
1441
+ (B, O) => w / o * O
1442
1442
  );
1443
1443
  return {
1444
1444
  xScale: V,
@@ -1463,15 +1463,15 @@ const G0 = "_barChartContainer_1each_2", Mt = {
1463
1463
  o,
1464
1464
  c,
1465
1465
  s,
1466
- a,
1466
+ l,
1467
1467
  u,
1468
1468
  d,
1469
- l,
1469
+ a,
1470
1470
  t,
1471
1471
  h,
1472
1472
  y
1473
1473
  ]);
1474
- return l === "vertical" ? /* @__PURE__ */ i(
1474
+ return a === "vertical" ? /* @__PURE__ */ i(
1475
1475
  "div",
1476
1476
  {
1477
1477
  style: {
@@ -1490,7 +1490,7 @@ const G0 = "_barChartContainer_1each_2", Mt = {
1490
1490
  height: S,
1491
1491
  maxWidth: "none"
1492
1492
  },
1493
- children: /* @__PURE__ */ m("g", { transform: `translate(${a}, 0)`, children: [
1493
+ children: /* @__PURE__ */ m("g", { transform: `translate(${l}, 0)`, children: [
1494
1494
  /* @__PURE__ */ i("g", { children: b.map((N, w) => {
1495
1495
  const $ = f(N);
1496
1496
  return /* @__PURE__ */ m("g", { children: [
@@ -1498,7 +1498,7 @@ const G0 = "_barChartContainer_1each_2", Mt = {
1498
1498
  "line",
1499
1499
  {
1500
1500
  x1: 0,
1501
- x2: _ - a * 2,
1501
+ x2: _ - l * 2,
1502
1502
  y1: $,
1503
1503
  y2: $,
1504
1504
  stroke: "#ccc"
@@ -1569,7 +1569,7 @@ const G0 = "_barChartContainer_1each_2", Mt = {
1569
1569
  maxWidth: "none"
1570
1570
  },
1571
1571
  children: /* @__PURE__ */ m("g", { transform: `translate(0,${u})`, children: [
1572
- /* @__PURE__ */ i("g", { transform: `translate(${t + a}, 0)`, children: b.map((N, w) => {
1572
+ /* @__PURE__ */ i("g", { transform: `translate(${t + l}, 0)`, children: b.map((N, w) => {
1573
1573
  const $ = p(N);
1574
1574
  return /* @__PURE__ */ m("g", { transform: `translate(${$}, 0)`, children: [
1575
1575
  /* @__PURE__ */ i(
@@ -1597,7 +1597,7 @@ const G0 = "_barChartContainer_1each_2", Mt = {
1597
1597
  return console.log("y: ", L), /* @__PURE__ */ m(
1598
1598
  "g",
1599
1599
  {
1600
- transform: `translate(${t + a}, ${L})`,
1600
+ transform: `translate(${t + l}, ${L})`,
1601
1601
  children: [
1602
1602
  /* @__PURE__ */ i(
1603
1603
  "text",
@@ -1653,7 +1653,7 @@ s2.propTypes = {
1653
1653
  containerHeight: e.number,
1654
1654
  minBarWidth: e.number
1655
1655
  };
1656
- const X0 = "_graphicContainer_c9zrg_2", Q0 = "_titleContainer_c9zrg_14", Bt = {
1656
+ const X0 = "_graphicContainer_c9zrg_2", Q0 = "_titleContainer_c9zrg_14", Tt = {
1657
1657
  graphicContainer: X0,
1658
1658
  titleContainer: Q0
1659
1659
  }, J0 = ({
@@ -1664,8 +1664,8 @@ const X0 = "_graphicContainer_c9zrg_2", Q0 = "_titleContainer_c9zrg_14", Bt = {
1664
1664
  title: t = "Graphic Title",
1665
1665
  fontColor: o = "#605B56",
1666
1666
  maxValue: d = null,
1667
- numberOfDivisions: l = 7,
1668
- leftPadding: a = -200,
1667
+ numberOfDivisions: a = 7,
1668
+ leftPadding: l = -200,
1669
1669
  orientation: u = "horizontal",
1670
1670
  xLabelPadding: g = 0
1671
1671
  }) => {
@@ -1673,14 +1673,14 @@ const X0 = "_graphicContainer_c9zrg_2", Q0 = "_titleContainer_c9zrg_14", Bt = {
1673
1673
  return /* @__PURE__ */ m(
1674
1674
  "div",
1675
1675
  {
1676
- className: Bt.graphicContainer,
1676
+ className: Tt.graphicContainer,
1677
1677
  style: {
1678
1678
  ...s || {},
1679
1679
  border: `1.5px solid ${r}`,
1680
1680
  paddingBottom: 40
1681
1681
  },
1682
1682
  children: [
1683
- /* @__PURE__ */ i("div", { className: Bt.titleContainer, children: /* @__PURE__ */ i("h2", { children: h(t) }) }),
1683
+ /* @__PURE__ */ i("div", { className: Tt.titleContainer, children: /* @__PURE__ */ i("h2", { children: h(t) }) }),
1684
1684
  /* @__PURE__ */ i(
1685
1685
  s2,
1686
1686
  {
@@ -1688,8 +1688,8 @@ const X0 = "_graphicContainer_c9zrg_2", Q0 = "_titleContainer_c9zrg_14", Bt = {
1688
1688
  length: c,
1689
1689
  fontColor: o,
1690
1690
  maxValue: d,
1691
- numberOfDivisions: l,
1692
- leftPadding: a,
1691
+ numberOfDivisions: a,
1692
+ leftPadding: l,
1693
1693
  orientation: u,
1694
1694
  xLabelPadding: g
1695
1695
  }
@@ -1739,13 +1739,13 @@ const Y0 = "_indicatorsCategory_arwy3_2", en = "_title_arwy3_5", tn = "_list_arw
1739
1739
  activeIndicator: t,
1740
1740
  activeIndicatorType: o,
1741
1741
  onClickIndicator: d,
1742
- multiple: l = !1,
1743
- onChangeType: a
1742
+ multiple: a = !1,
1743
+ onChangeType: l
1744
1744
  }) => {
1745
1745
  const { t: u } = F(), { name: g, type: h, disabled: y } = n, [p, f] = I(!1);
1746
1746
  A(() => {
1747
1747
  t && f(
1748
- l ? t.some(
1748
+ a ? t.some(
1749
1749
  (_) => _.name == String(g)
1750
1750
  ) : t.name == g
1751
1751
  );
@@ -1755,7 +1755,7 @@ const Y0 = "_indicatorsCategory_arwy3_2", en = "_title_arwy3_5", tn = "_list_arw
1755
1755
  "div",
1756
1756
  {
1757
1757
  className: W.optionContainer,
1758
- onClick: () => a("cat"),
1758
+ onClick: () => l("cat"),
1759
1759
  children: [
1760
1760
  /* @__PURE__ */ i(
1761
1761
  "span",
@@ -1784,7 +1784,7 @@ const Y0 = "_indicatorsCategory_arwy3_2", en = "_title_arwy3_5", tn = "_list_arw
1784
1784
  "div",
1785
1785
  {
1786
1786
  className: W.optionContainer,
1787
- onClick: () => a("abs"),
1787
+ onClick: () => l("abs"),
1788
1788
  children: [
1789
1789
  /* @__PURE__ */ i(
1790
1790
  "span",
@@ -1841,7 +1841,7 @@ const Y0 = "_indicatorsCategory_arwy3_2", en = "_title_arwy3_5", tn = "_list_arw
1841
1841
  backgroundColor: p ? s : "transparent"
1842
1842
  },
1843
1843
  className: W.dot,
1844
- children: l && /* @__PURE__ */ i("img", { src: p ? sn : nn, alt: "" })
1844
+ children: a && /* @__PURE__ */ i("img", { src: p ? sn : nn, alt: "" })
1845
1845
  }
1846
1846
  ),
1847
1847
  /* @__PURE__ */ i(
@@ -1881,7 +1881,7 @@ Nt.propTypes = {
1881
1881
  multiple: e.bool,
1882
1882
  onClickIndicator: e.func
1883
1883
  };
1884
- const gn = "_indicatorsSubCategory_1nuug_2", Cn = "_list_1nuug_11", Tt = {
1884
+ const gn = "_indicatorsSubCategory_1nuug_2", Cn = "_list_1nuug_11", Bt = {
1885
1885
  indicatorsSubCategory: gn,
1886
1886
  list: Cn
1887
1887
  }, r2 = ({
@@ -1892,8 +1892,8 @@ const gn = "_indicatorsSubCategory_1nuug_2", Cn = "_list_1nuug_11", Tt = {
1892
1892
  activeSubCategory: t,
1893
1893
  onClickSubCategory: o,
1894
1894
  id: d,
1895
- activeIndicator: l,
1896
- onClickIndicator: a,
1895
+ activeIndicator: a,
1896
+ onClickIndicator: l,
1897
1897
  multiple: u,
1898
1898
  activeIndicatorType: g,
1899
1899
  onChangeType: h
@@ -1904,7 +1904,7 @@ const gn = "_indicatorsSubCategory_1nuug_2", Cn = "_list_1nuug_11", Tt = {
1904
1904
  }, [t, d]), /* @__PURE__ */ m(
1905
1905
  xt.div,
1906
1906
  {
1907
- className: Tt.indicatorsSubCategory,
1907
+ className: Bt.indicatorsSubCategory,
1908
1908
  initial: { height: "43px" },
1909
1909
  animate: { height: p ? "auto" : "43px" },
1910
1910
  transition: { duration: 0.4 },
@@ -1919,14 +1919,14 @@ const gn = "_indicatorsSubCategory_1nuug_2", Cn = "_list_1nuug_11", Tt = {
1919
1919
  }
1920
1920
  )
1921
1921
  ] }) }),
1922
- c && /* @__PURE__ */ i("div", { className: Tt.list, children: c == null ? void 0 : c.map((b, v) => /* @__PURE__ */ i(
1922
+ c && /* @__PURE__ */ i("div", { className: Bt.list, children: c == null ? void 0 : c.map((b, v) => /* @__PURE__ */ i(
1923
1923
  Nt,
1924
1924
  {
1925
1925
  indicator: b,
1926
1926
  defaultColor: s,
1927
1927
  activeColor: r,
1928
- activeIndicator: l,
1929
- onClickIndicator: a,
1928
+ activeIndicator: a,
1929
+ onClickIndicator: l,
1930
1930
  multiple: u,
1931
1931
  activeIndicatorType: g,
1932
1932
  onChangeType: h
@@ -1957,8 +1957,8 @@ const o2 = ({
1957
1957
  onClickCategory: t,
1958
1958
  activeCategory: o,
1959
1959
  activeSubCategory: d,
1960
- onClickSubCategory: l,
1961
- activeIndicator: a,
1960
+ onClickSubCategory: a,
1961
+ activeIndicator: l,
1962
1962
  onClickIndicator: u,
1963
1963
  multiple: g,
1964
1964
  activeIndicatorType: h,
@@ -1998,8 +1998,8 @@ const o2 = ({
1998
1998
  id: x,
1999
1999
  activeSubCategory: d,
2000
2000
  subcName: _,
2001
- onClickSubCategory: l,
2002
- activeIndicator: a,
2001
+ onClickSubCategory: a,
2002
+ activeIndicator: l,
2003
2003
  onClickIndicator: u,
2004
2004
  multiple: g,
2005
2005
  activeColor: s,
@@ -2017,7 +2017,7 @@ const o2 = ({
2017
2017
  values: _.type == "twoUnits" && _.values,
2018
2018
  activeColor: s,
2019
2019
  defaultColor: r,
2020
- activeIndicator: a,
2020
+ activeIndicator: l,
2021
2021
  onClickIndicator: u,
2022
2022
  multiple: g,
2023
2023
  activeIndicatorType: h,
@@ -2058,9 +2058,9 @@ const fn = "_indicatorsList_13b3m_2", yn = "_title_13b3m_6", Dt = {
2058
2058
  defaultValue: o = null,
2059
2059
  //si el indicador es tipo "both" cuando se cambia el tipo
2060
2060
  changeIndType: d,
2061
- activeIndicatorType: l
2061
+ activeIndicatorType: a
2062
2062
  }) => {
2063
- const { t: a } = F(), [u, g] = I(), [h, y] = I(), [p, f] = I(), b = (C) => {
2063
+ const { t: l } = F(), [u, g] = I(), [h, y] = I(), [p, f] = I(), b = (C) => {
2064
2064
  g(u == C ? null : C);
2065
2065
  }, v = (C) => {
2066
2066
  y(h == C ? null : C);
@@ -2113,7 +2113,7 @@ const fn = "_indicatorsList_13b3m_2", yn = "_title_13b3m_6", Dt = {
2113
2113
  N && g(N.category);
2114
2114
  };
2115
2115
  return /* @__PURE__ */ m("div", { className: Dt.indicatorsList, children: [
2116
- /* @__PURE__ */ i("h2", { className: Dt.title, style: { color: s }, children: a("indicators.indicators") }),
2116
+ /* @__PURE__ */ i("h2", { className: Dt.title, style: { color: s }, children: l("indicators.indicators") }),
2117
2117
  n.map((C, N) => /* @__PURE__ */ i(
2118
2118
  o2,
2119
2119
  {
@@ -2130,7 +2130,7 @@ const fn = "_indicatorsList_13b3m_2", yn = "_title_13b3m_6", Dt = {
2130
2130
  multiple: t,
2131
2131
  onChange: r,
2132
2132
  onChangeType: d,
2133
- activeIndicatorType: l
2133
+ activeIndicatorType: a
2134
2134
  },
2135
2135
  `categoryKey${N}`
2136
2136
  ))
@@ -2154,8 +2154,8 @@ const _n = "_langSelector_o9enq_2", vn = "_currentLang_o9enq_14", xn = "_arrow_o
2154
2154
  prevImg: wn,
2155
2155
  langMenu: Nn
2156
2156
  }, kn = ({ langs: n, arrow: c, imgPrev: s }) => {
2157
- const [r, t] = I(!1), { i18n: o } = F(), d = n.find((a) => a.code == o.language), l = (a) => {
2158
- o.changeLanguage(a), t(!1);
2157
+ const [r, t] = I(!1), { i18n: o } = F(), d = n.find((l) => l.code == o.language), a = (l) => {
2158
+ o.changeLanguage(l), t(!1);
2159
2159
  };
2160
2160
  return /* @__PURE__ */ m("div", { className: ke.langSelector, children: [
2161
2161
  /* @__PURE__ */ m(
@@ -2172,14 +2172,14 @@ const _n = "_langSelector_o9enq_2", vn = "_currentLang_o9enq_14", xn = "_arrow_o
2172
2172
  ]
2173
2173
  }
2174
2174
  ),
2175
- r && /* @__PURE__ */ i("div", { className: ke.langMenu, children: n.map((a) => /* @__PURE__ */ i(
2175
+ r && /* @__PURE__ */ i("div", { className: ke.langMenu, children: n.map((l) => /* @__PURE__ */ i(
2176
2176
  "button",
2177
2177
  {
2178
- className: (d == null ? void 0 : d.code) == a.code ? ke.active : "",
2179
- onClick: () => l(a.code),
2180
- children: a.title
2178
+ className: (d == null ? void 0 : d.code) == l.code ? ke.active : "",
2179
+ onClick: () => a(l.code),
2180
+ children: l.title
2181
2181
  },
2182
- a.code
2182
+ l.code
2183
2183
  )) })
2184
2184
  ] });
2185
2185
  };
@@ -2197,13 +2197,13 @@ kn.propTypes = {
2197
2197
  arrow: e.object,
2198
2198
  imgPrev: e.object
2199
2199
  };
2200
- const $n = "_legendContainer_4ndr8_3", Sn = "_closeButton_4ndr8_41", Ln = "_titleContainer_4ndr8_69", Mn = "_infoContainer_4ndr8_75", Bn = "_titleLegendList_4ndr8_86", Tn = "_legendListContainer_4ndr8_92", Dn = "_gridContainer_4ndr8_92", Vn = "_elementLegendContainer_4ndr8_98", Fn = "_colorDot_4ndr8_104", An = "_absoluteValueContainer_4ndr8_110", On = "_absoluteValueColor_4ndr8_113", Rn = "_absoluteValueText_4ndr8_118", In = "_noDataContainer_4ndr8_130", En = "_noData_4ndr8_130", qn = "_moreInfoContainer_4ndr8_151", j = {
2200
+ const $n = "_legendContainer_4ndr8_3", Sn = "_closeButton_4ndr8_41", Ln = "_titleContainer_4ndr8_69", Mn = "_infoContainer_4ndr8_75", Tn = "_titleLegendList_4ndr8_86", Bn = "_legendListContainer_4ndr8_92", Dn = "_gridContainer_4ndr8_92", Vn = "_elementLegendContainer_4ndr8_98", Fn = "_colorDot_4ndr8_104", An = "_absoluteValueContainer_4ndr8_110", On = "_absoluteValueColor_4ndr8_113", Rn = "_absoluteValueText_4ndr8_118", In = "_noDataContainer_4ndr8_130", En = "_noData_4ndr8_130", qn = "_moreInfoContainer_4ndr8_151", j = {
2201
2201
  legendContainer: $n,
2202
2202
  closeButton: Sn,
2203
2203
  titleContainer: Ln,
2204
2204
  infoContainer: Mn,
2205
- titleLegendList: Bn,
2206
- legendListContainer: Tn,
2205
+ titleLegendList: Tn,
2206
+ legendListContainer: Bn,
2207
2207
  gridContainer: Dn,
2208
2208
  elementLegendContainer: Vn,
2209
2209
  colorDot: Fn,
@@ -2229,7 +2229,7 @@ const $n = "_legendContainer_4ndr8_3", Sn = "_closeButton_4ndr8_41", Ln = "_titl
2229
2229
  buttonTitle: o,
2230
2230
  onClickClose: d
2231
2231
  }) => {
2232
- const { t: l } = F();
2232
+ const { t: a } = F();
2233
2233
  return /* @__PURE__ */ m(
2234
2234
  "div",
2235
2235
  {
@@ -2247,14 +2247,14 @@ const $n = "_legendContainer_4ndr8_3", Sn = "_closeButton_4ndr8_41", Ln = "_titl
2247
2247
  children: /* @__PURE__ */ i("h2", { children: c })
2248
2248
  }
2249
2249
  ),
2250
- s && s.length > 0 && /* @__PURE__ */ i("div", { className: j.infoContainer, children: /* @__PURE__ */ i("ul", { children: s.map(({ title: a, value: u }) => /* @__PURE__ */ m("li", { children: [
2251
- /* @__PURE__ */ i("h3", { className: j.title, children: `${a}:` }),
2250
+ s && s.length > 0 && /* @__PURE__ */ i("div", { className: j.infoContainer, children: /* @__PURE__ */ i("ul", { children: s.map(({ title: l, value: u }) => /* @__PURE__ */ m("li", { children: [
2251
+ /* @__PURE__ */ i("h3", { className: j.title, children: `${l}:` }),
2252
2252
  /* @__PURE__ */ m("span", { className: j.value, children: [
2253
2253
  "  ",
2254
2254
  u
2255
2255
  ] })
2256
2256
  ] }, c)) }) }),
2257
- r && r.length > 0 && r.map((a, u) => /* @__PURE__ */ m("div", { children: [
2257
+ r && r.length > 0 && r.map((l, u) => /* @__PURE__ */ m("div", { children: [
2258
2258
  /* @__PURE__ */ i(
2259
2259
  "h3",
2260
2260
  {
@@ -2262,10 +2262,10 @@ const $n = "_legendContainer_4ndr8_3", Sn = "_closeButton_4ndr8_41", Ln = "_titl
2262
2262
  style: {
2263
2263
  marginTop: s && s.length > 0 && u === 0 ? "30px" : u > 0 ? "20px" : "0px"
2264
2264
  },
2265
- children: a.title && /* @__PURE__ */ i(
2265
+ children: l.title && /* @__PURE__ */ i(
2266
2266
  vt,
2267
2267
  {
2268
- i18nKey: a.title,
2268
+ i18nKey: l.title,
2269
2269
  components: { sup: /* @__PURE__ */ i("sup", {}) },
2270
2270
  shouldUnescape: !0
2271
2271
  }
@@ -2273,34 +2273,34 @@ const $n = "_legendContainer_4ndr8_3", Sn = "_closeButton_4ndr8_41", Ln = "_titl
2273
2273
  }
2274
2274
  ),
2275
2275
  /* @__PURE__ */ m("div", { className: j.legendListContainer, children: [
2276
- a.absolute ? /* @__PURE__ */ m("div", { className: j.absoluteValueContainer, children: [
2276
+ l.absolute ? /* @__PURE__ */ m("div", { className: j.absoluteValueContainer, children: [
2277
2277
  /* @__PURE__ */ i(
2278
2278
  "div",
2279
2279
  {
2280
2280
  className: j.absoluteValueColor,
2281
2281
  style: {
2282
- background: `linear-gradient(to bottom, ${a.absolute.maxColor} 0%, ${a.absolute.midColor ? `${a.absolute.midColor} 50%,` : ""} ${a.absolute.minColor} 100%)`
2282
+ background: `linear-gradient(to bottom, ${l.absolute.maxColor} 0%, ${l.absolute.midColor ? `${l.absolute.midColor} 50%,` : ""} ${l.absolute.minColor} 100%)`
2283
2283
  }
2284
2284
  }
2285
2285
  ),
2286
2286
  /* @__PURE__ */ m("div", { className: j.absoluteValueText, children: [
2287
2287
  /* @__PURE__ */ m("span", { children: [
2288
- a.absolute.maxValue,
2288
+ l.absolute.maxValue,
2289
2289
  " ",
2290
- l(a.absolute.unit)
2290
+ a(l.absolute.unit)
2291
2291
  ] }),
2292
- a.absolute.midValue && /* @__PURE__ */ m("span", { children: [
2293
- a.absolute.midValue,
2292
+ l.absolute.midValue && /* @__PURE__ */ m("span", { children: [
2293
+ l.absolute.midValue,
2294
2294
  " ",
2295
- l(a.absolute.unit)
2295
+ a(l.absolute.unit)
2296
2296
  ] }),
2297
2297
  /* @__PURE__ */ m("span", { children: [
2298
- a.absolute.minValue,
2298
+ l.absolute.minValue,
2299
2299
  " ",
2300
- l(a.absolute.unit)
2300
+ a(l.absolute.unit)
2301
2301
  ] })
2302
2302
  ] })
2303
- ] }) : a.categories && a.categories.length > 0 && /* @__PURE__ */ i("div", { className: j.gridContainer, children: a.categories.map(
2303
+ ] }) : l.categories && l.categories.length > 0 && /* @__PURE__ */ i("div", { className: j.gridContainer, children: l.categories.map(
2304
2304
  ({ title: g, color: h }, y) => /* @__PURE__ */ m(
2305
2305
  "div",
2306
2306
  {
@@ -2314,7 +2314,7 @@ const $n = "_legendContainer_4ndr8_3", Sn = "_closeButton_4ndr8_41", Ln = "_titl
2314
2314
  }
2315
2315
  ),
2316
2316
  /* @__PURE__ */ m("div", { className: j.titleLegendElement, children: [
2317
- l(g),
2317
+ a(g),
2318
2318
  " "
2319
2319
  ] })
2320
2320
  ]
@@ -2322,21 +2322,21 @@ const $n = "_legendContainer_4ndr8_3", Sn = "_closeButton_4ndr8_41", Ln = "_titl
2322
2322
  y
2323
2323
  )
2324
2324
  ) }),
2325
- a.absolute && a.absolute.noDataColor && /* @__PURE__ */ m("div", { className: j.noDataContainer, children: [
2325
+ l.absolute && l.absolute.noDataColor && /* @__PURE__ */ m("div", { className: j.noDataContainer, children: [
2326
2326
  /* @__PURE__ */ i(
2327
2327
  "div",
2328
2328
  {
2329
2329
  className: j.noData,
2330
2330
  style: {
2331
- background: a.absolute.noDataColor
2331
+ background: l.absolute.noDataColor
2332
2332
  }
2333
2333
  }
2334
2334
  ),
2335
- /* @__PURE__ */ i("div", { className: j.absoluteValueText, children: /* @__PURE__ */ i("span", { children: l(a.absolute.noDataText) }) })
2335
+ /* @__PURE__ */ i("div", { className: j.absoluteValueText, children: /* @__PURE__ */ i("span", { children: a(l.absolute.noDataText) }) })
2336
2336
  ] })
2337
2337
  ] })
2338
2338
  ] }, u)),
2339
- t && /* @__PURE__ */ i("button", { className: j.moreInfoContainer, onClick: t, children: o || l("moreInformation") })
2339
+ t && /* @__PURE__ */ i("button", { className: j.moreInfoContainer, onClick: t, children: o || a("moreInformation") })
2340
2340
  ]
2341
2341
  }
2342
2342
  );
@@ -2400,8 +2400,8 @@ const Kn = ({
2400
2400
  firstSymbolLayer: t,
2401
2401
  cssProps: o = "",
2402
2402
  onClick: d = "",
2403
- interactiveLayers: l = [],
2404
- popUp: a = !1,
2403
+ interactiveLayers: a = [],
2404
+ popUp: l = !1,
2405
2405
  sources: u = [],
2406
2406
  layers: g = []
2407
2407
  }) => {
@@ -2423,7 +2423,7 @@ const Kn = ({
2423
2423
  minZoom: s,
2424
2424
  mapStyle: r,
2425
2425
  onClick: d,
2426
- interactiveLayerIds: l,
2426
+ interactiveLayerIds: a,
2427
2427
  children: [
2428
2428
  u.length && u.map((b, v) => /* @__PURE__ */ i(
2429
2429
  N2,
@@ -2443,14 +2443,14 @@ const Kn = ({
2443
2443
  v
2444
2444
  )),
2445
2445
  /* @__PURE__ */ i($2, { position: "bottom-right", visualizePitch: !0 }),
2446
- a && y && /* @__PURE__ */ i(
2446
+ l && y && /* @__PURE__ */ i(
2447
2447
  S2,
2448
2448
  {
2449
- longitude: a.longitude,
2450
- latitude: a.latitude,
2451
- anchor: a.anchor,
2449
+ longitude: l.longitude,
2450
+ latitude: l.latitude,
2451
+ anchor: l.anchor,
2452
2452
  onClose: () => p(null),
2453
- children: a.content
2453
+ children: l.content
2454
2454
  }
2455
2455
  )
2456
2456
  ]
@@ -2528,8 +2528,8 @@ const Wn = "_mapContainer_b0pyr_3", Un = {
2528
2528
  firstSymbolLayer: t,
2529
2529
  cssProps: o = {},
2530
2530
  onClick: d = "",
2531
- interactiveLayers: l = [],
2532
- sources: a = [],
2531
+ interactiveLayers: a = [],
2532
+ sources: l = [],
2533
2533
  layers: u = [],
2534
2534
  popUpParams: g,
2535
2535
  onClosePopUp: h,
@@ -2560,15 +2560,15 @@ const Wn = "_mapContainer_b0pyr_3", Un = {
2560
2560
  minZoom: s,
2561
2561
  mapStyle: r,
2562
2562
  onClick: d,
2563
- interactiveLayerIds: l,
2563
+ interactiveLayerIds: a,
2564
2564
  children: [
2565
- a.length && a.map((b, v) => /* @__PURE__ */ i(
2566
- B2,
2565
+ l.length && l.map((b, v) => /* @__PURE__ */ i(
2566
+ T2,
2567
2567
  {
2568
2568
  ...b,
2569
2569
  children: u.length && u.map((_, x) => {
2570
2570
  if (_.sourceId == b.id) return /* @__PURE__ */ i(
2571
- T2,
2571
+ B2,
2572
2572
  {
2573
2573
  ..._.layer,
2574
2574
  beforeId: t,
@@ -2656,8 +2656,8 @@ const Yn = "_sectionBar_yf2vy_2", ei = "_leftContent_yf2vy_14", ti = "_textConta
2656
2656
  mainColor: t,
2657
2657
  width: o,
2658
2658
  titleColor: d = "#605b56",
2659
- subTitleColor: l = "#605b56",
2660
- borderTop: a = !1
2659
+ subTitleColor: a = "#605b56",
2660
+ borderTop: l = !1
2661
2661
  }) => {
2662
2662
  const { t: u } = F();
2663
2663
  return /* @__PURE__ */ m(
@@ -2666,14 +2666,14 @@ const Yn = "_sectionBar_yf2vy_2", ei = "_leftContent_yf2vy_14", ti = "_textConta
2666
2666
  className: be.sectionBar,
2667
2667
  style: {
2668
2668
  width: o && o,
2669
- borderTop: a ? "1px solid #000" : "0px"
2669
+ borderTop: l ? "1px solid #000" : "0px"
2670
2670
  },
2671
2671
  children: [
2672
2672
  /* @__PURE__ */ m("div", { className: be.leftContent, children: [
2673
2673
  n && /* @__PURE__ */ i("img", { src: n, alt: "Icono", className: be.icon }),
2674
2674
  /* @__PURE__ */ m("div", { className: be.textContainer, children: [
2675
2675
  /* @__PURE__ */ i("div", { className: be.title, style: { color: d }, children: u(c) }),
2676
- s && /* @__PURE__ */ i("div", { className: be.subtitle, style: { color: l }, children: s })
2676
+ s && /* @__PURE__ */ i("div", { className: be.subtitle, style: { color: a }, children: s })
2677
2677
  ] })
2678
2678
  ] }),
2679
2679
  /* @__PURE__ */ i("div", { className: be.rightContent, children: r })
@@ -2722,7 +2722,7 @@ const oi = F2({
2722
2722
  n.activeIndicatorUnit = c.payload;
2723
2723
  }
2724
2724
  }
2725
- }), { setShowTexts: Er, setYear: qr, setActiveIndicatorKey: Pr, setActiveIndicatorType: zr, setActiveIndicatorUnit: Zr } = oi.actions, ai = "data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20d='M15.2722%2012.6627C15.2722%2011.8929%2016.1055%2011.4118%2016.7722%2011.7967L31.5641%2020.3368C32.2308%2020.7217%2032.2308%2021.684%2031.5641%2022.0689L16.7722%2030.609C16.1055%2030.9939%2015.2722%2030.5128%2015.2722%2029.743L15.2722%2012.6627Z'%20fill='%23605B56'/%3e%3c/svg%3e", li = "data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3crect%20x='15'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3crect%20x='23'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3c/svg%3e", ci = "_slider_1prh1_2", di = "_playButton_1prh1_14", ui = "_sliderOpen_1prh1_25", pi = "_sliderResults_1prh1_29", Te = {
2725
+ }), { setShowTexts: Er, setYear: qr, setActiveIndicatorKey: Pr, setActiveIndicatorType: zr, setActiveIndicatorUnit: Zr } = oi.actions, ai = "data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20d='M15.2722%2012.6627C15.2722%2011.8929%2016.1055%2011.4118%2016.7722%2011.7967L31.5641%2020.3368C32.2308%2020.7217%2032.2308%2021.684%2031.5641%2022.0689L16.7722%2030.609C16.1055%2030.9939%2015.2722%2030.5128%2015.2722%2029.743L15.2722%2012.6627Z'%20fill='%23605B56'/%3e%3c/svg%3e", li = "data:image/svg+xml,%3csvg%20width='42'%20height='42'%20viewBox='0%200%2042%2042'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='21'%20cy='21'%20r='20.25'%20fill='%23FDFDFD'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3crect%20x='15'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3crect%20x='23'%20y='12'%20width='4'%20height='19'%20rx='1'%20fill='%23605B56'/%3e%3c/svg%3e", ci = "_slider_1prh1_2", di = "_playButton_1prh1_14", ui = "_sliderOpen_1prh1_25", pi = "_sliderResults_1prh1_29", Be = {
2726
2726
  slider: ci,
2727
2727
  playButton: di,
2728
2728
  sliderOpen: ui,
@@ -2735,8 +2735,8 @@ const oi = F2({
2735
2735
  marcas: t = null,
2736
2736
  zIndex: o = 10,
2737
2737
  rightBarOpen: d = !1,
2738
- onChange: l = (a) => {
2739
- console.log("year changed to ", a);
2738
+ onChange: a = (l) => {
2739
+ console.log("year changed to ", l);
2740
2740
  }
2741
2741
  }) => {
2742
2742
  const u = t || ((S, C) => {
@@ -2751,7 +2751,7 @@ const oi = F2({
2751
2751
  h(c);
2752
2752
  }, [c]);
2753
2753
  const y = (S, C) => {
2754
- h(C), l(C);
2754
+ h(C), a(C);
2755
2755
  }, [p, f] = I(!1);
2756
2756
  A(() => {
2757
2757
  c && console.log("defaultYear changed:", c), c && h(c);
@@ -2778,7 +2778,7 @@ const oi = F2({
2778
2778
  () => {
2779
2779
  p && h((S) => {
2780
2780
  const C = S + 1;
2781
- return C > r ? (l(s), s) : (l(C), C);
2781
+ return C > r ? (a(s), s) : (a(C), C);
2782
2782
  });
2783
2783
  },
2784
2784
  1e3,
@@ -2811,7 +2811,7 @@ const oi = F2({
2811
2811
  R2,
2812
2812
  {
2813
2813
  sx: { width: 400 },
2814
- className: `${n ? Te.sliderResults : Te.slider} ${d ? Te.sliderOpen : ""}`,
2814
+ className: `${n ? Be.sliderResults : Be.slider} ${d ? Be.sliderOpen : ""}`,
2815
2815
  style: { zIndex: o },
2816
2816
  children: [
2817
2817
  s,
@@ -2831,8 +2831,8 @@ const oi = F2({
2831
2831
  }
2832
2832
  ),
2833
2833
  r,
2834
- !p && /* @__PURE__ */ i("button", { className: Te.playButton, onClick: b, children: /* @__PURE__ */ i("img", { src: ai, alt: "Play" }) }),
2835
- p && /* @__PURE__ */ i("button", { className: Te.playButton, onClick: v, children: /* @__PURE__ */ i("img", { src: li, alt: "Pause" }) })
2834
+ !p && /* @__PURE__ */ i("button", { className: Be.playButton, onClick: b, children: /* @__PURE__ */ i("img", { src: ai, alt: "Play" }) }),
2835
+ p && /* @__PURE__ */ i("button", { className: Be.playButton, onClick: v, children: /* @__PURE__ */ i("img", { src: li, alt: "Pause" }) })
2836
2836
  ]
2837
2837
  }
2838
2838
  ) });
@@ -2866,19 +2866,19 @@ const mi = "_TopNavMenuContainer_12mp4_2", gi = "_topNavOptions_12mp4_13", Ci =
2866
2866
  }
2867
2867
  }) => {
2868
2868
  const { t: o } = F();
2869
- return /* @__PURE__ */ i("div", { className: lt.TopNavMenuContainer, style: { ...c }, children: n.map((d, l) => /* @__PURE__ */ i(
2869
+ return /* @__PURE__ */ i("div", { className: lt.TopNavMenuContainer, style: { ...c }, children: n.map((d, a) => /* @__PURE__ */ i(
2870
2870
  Gt,
2871
2871
  {
2872
2872
  to: d.url,
2873
- className: ({ isActive: a }) => `${lt.topNavOptions} ${a ? lt.active : ""} `,
2873
+ className: ({ isActive: l }) => `${lt.topNavOptions} ${l ? lt.active : ""} `,
2874
2874
  onClick: () => t(d.url),
2875
- style: ({ isActive: a }) => ({
2875
+ style: ({ isActive: l }) => ({
2876
2876
  color: r,
2877
- borderBottom: a ? `5px solid ${s}` : "5px solid transparent"
2877
+ borderBottom: l ? `5px solid ${s}` : "5px solid transparent"
2878
2878
  }),
2879
2879
  children: o(d.name)
2880
2880
  },
2881
- l
2881
+ a
2882
2882
  )) });
2883
2883
  };
2884
2884
  fi.propTypes = {
@@ -2903,18 +2903,18 @@ const yi = "_LogInButton_1vxj5_2", bi = {
2903
2903
  onClickLogIn: d = () => {
2904
2904
  console.log("Login clicked");
2905
2905
  },
2906
- onClickLogOut: l = () => {
2906
+ onClickLogOut: a = () => {
2907
2907
  console.log("Logout clicked");
2908
2908
  }
2909
2909
  }) => {
2910
- const { t: a } = F();
2910
+ const { t: l } = F();
2911
2911
  return /* @__PURE__ */ i(
2912
2912
  "div",
2913
2913
  {
2914
2914
  style: { ...r },
2915
2915
  className: `${bi.LogInButton} link ${n}`,
2916
- onClick: o ? l : d,
2917
- children: o ? t || a(s) : a(c)
2916
+ onClick: o ? a : d,
2917
+ children: o ? t || l(s) : l(c)
2918
2918
  }
2919
2919
  );
2920
2920
  };
@@ -2935,10 +2935,10 @@ const vi = "_elementSelector_1ox68_2", xi = "_header_1ox68_14", wi = "_nameDateC
2935
2935
  buttonsContainer: $i,
2936
2936
  elementListContainer: Si,
2937
2937
  newElementButtonContainer: Li
2938
- }, Mi = "_listElement_s4s4h_3", Bi = "_elementNameDate_s4s4h_19", Ti = "_elementNameContainer_s4s4h_30", Di = "_elementName_s4s4h_19", Vi = "_elementDate_s4s4h_47", Fi = "_nameAndEye_s4s4h_50", Ai = "_elementButtons_s4s4h_55", Oi = "_moreInfoContainer_s4s4h_78", Ri = "_moreInfo_s4s4h_78", ie = {
2938
+ }, Mi = "_listElement_s4s4h_3", Ti = "_elementNameDate_s4s4h_19", Bi = "_elementNameContainer_s4s4h_30", Di = "_elementName_s4s4h_19", Vi = "_elementDate_s4s4h_47", Fi = "_nameAndEye_s4s4h_50", Ai = "_elementButtons_s4s4h_55", Oi = "_moreInfoContainer_s4s4h_78", Ri = "_moreInfo_s4s4h_78", ie = {
2939
2939
  listElement: Mi,
2940
- elementNameDate: Bi,
2941
- elementNameContainer: Ti,
2940
+ elementNameDate: Ti,
2941
+ elementNameContainer: Bi,
2942
2942
  elementName: Di,
2943
2943
  elementDate: Vi,
2944
2944
  nameAndEye: Fi,
@@ -2979,15 +2979,15 @@ const Ki = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2979
2979
  fontColor: t,
2980
2980
  moreInfo: o,
2981
2981
  columns: d,
2982
- elementButtons: l,
2983
- processTooltip: a,
2982
+ elementButtons: a,
2983
+ processTooltip: l,
2984
2984
  defaultTooltip: u,
2985
2985
  showEye: g = !0
2986
2986
  }) => {
2987
2987
  const { name: h, created_at: y, id: p, isBeingProcessed: f } = n, [b, v] = I(!1), { t: _ } = F();
2988
2988
  return A(() => {
2989
- console.log("elementButtons: ", l);
2990
- }, [l]), /* @__PURE__ */ m(
2989
+ console.log("elementButtons: ", a);
2990
+ }, [a]), /* @__PURE__ */ m(
2991
2991
  "div",
2992
2992
  {
2993
2993
  className: ie.listElement,
@@ -3018,36 +3018,36 @@ const Ki = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
3018
3018
  /* @__PURE__ */ m("div", { className: ie.elementButtons, children: [
3019
3019
  n.processing && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
3020
3020
  /* @__PURE__ */ i("img", { src: Pi }),
3021
- /* @__PURE__ */ i(ue, { text: a, position: "left" })
3021
+ /* @__PURE__ */ i(ue, { text: l, position: "left" })
3022
3022
  ] }),
3023
- l.filter && !n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
3024
- /* @__PURE__ */ i("button", { onClick: () => l.filter.onclick(n), children: /* @__PURE__ */ i("img", { src: qi }) }),
3023
+ a.filter && !n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
3024
+ /* @__PURE__ */ i("button", { onClick: () => a.filter.onclick(n), disabled: a.filter.disabled || !1, children: /* @__PURE__ */ i("img", { src: qi }) }),
3025
3025
  /* @__PURE__ */ i(
3026
3026
  ue,
3027
3027
  {
3028
- text: l.filter.tooltiptext,
3028
+ text: a.filter.tooltiptext,
3029
3029
  position: "left"
3030
3030
  }
3031
3031
  )
3032
3032
  ] }),
3033
- l.copy && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
3034
- /* @__PURE__ */ i("button", { onClick: () => l.copy.onclick(n), children: /* @__PURE__ */ i("img", { src: Ei }) }),
3035
- /* @__PURE__ */ i(ue, { text: l.copy.tooltiptext, position: "left" })
3033
+ a.copy && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
3034
+ /* @__PURE__ */ i("button", { onClick: () => a.copy.onclick(n), disabled: a.copy.disabled || !1, children: /* @__PURE__ */ i("img", { src: Ei }) }),
3035
+ /* @__PURE__ */ i(ue, { text: a.copy.tooltiptext, position: "left" })
3036
3036
  ] }),
3037
- l.edit && !n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
3038
- /* @__PURE__ */ i("button", { onClick: () => l.edit.onclick(n), children: /* @__PURE__ */ i("img", { src: Zi }) }),
3039
- /* @__PURE__ */ i(ue, { text: l.edit.tooltiptext, position: "left" })
3037
+ a.edit && !n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
3038
+ /* @__PURE__ */ i("button", { onClick: () => a.edit.onclick(n), disabled: a.edit.disabled || !1, children: /* @__PURE__ */ i("img", { src: Zi }) }),
3039
+ /* @__PURE__ */ i(ue, { text: a.edit.tooltiptext, position: "left" })
3040
3040
  ] }),
3041
- l.info && n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
3042
- /* @__PURE__ */ i("button", { onClick: () => l.info.onclick(n), children: /* @__PURE__ */ i("img", { src: ji }) }),
3043
- /* @__PURE__ */ i(ue, { text: l.info.tooltiptext, position: "left" })
3041
+ a.info && n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
3042
+ /* @__PURE__ */ i("button", { onClick: () => a.info.onclick(n), disabled: a.info.disabled || !1, children: /* @__PURE__ */ i("img", { src: ji }) }),
3043
+ /* @__PURE__ */ i(ue, { text: a.info.tooltiptext, position: "left" })
3044
3044
  ] }),
3045
- l.trash && !n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
3046
- /* @__PURE__ */ i("button", { onClick: () => l.trash.onclick(n), children: /* @__PURE__ */ i("img", { src: Ii }) }),
3045
+ a.trash && !n.is_default && /* @__PURE__ */ m("div", { className: "tooltip-parent", children: [
3046
+ /* @__PURE__ */ i("button", { onClick: () => a.trash.onclick(n), disabled: a.trash.disabled || !1, children: /* @__PURE__ */ i("img", { src: Ii }) }),
3047
3047
  /* @__PURE__ */ i(
3048
3048
  ue,
3049
3049
  {
3050
- text: l.trash.tooltiptext,
3050
+ text: a.trash.tooltiptext,
3051
3051
  position: "left"
3052
3052
  }
3053
3053
  )
@@ -3121,8 +3121,8 @@ const Ot = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
3121
3121
  containerStyles: o = {},
3122
3122
  newElementButton: d,
3123
3123
  //{label: 'text', onClick: function(), disabled}/null
3124
- onClickElement: l = (f) => console.log(`OnCLickElement: ${f}`),
3125
- columns: a,
3124
+ onClickElement: a = (f) => console.log(`OnCLickElement: ${f}`),
3125
+ columns: l,
3126
3126
  // {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
3127
3127
  elementButtons: u,
3128
3128
  //{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
@@ -3160,8 +3160,8 @@ const Ot = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
3160
3160
  const R = _(V), H = _(D);
3161
3161
  return !R && !H ? 0 : R ? H ? R - H : -1 : 1;
3162
3162
  }
3163
- const T = String(V || "").trim(), O = String(D || "").trim();
3164
- return T.localeCompare(O);
3163
+ const B = String(V || "").trim(), O = String(D || "").trim();
3164
+ return B.localeCompare(O);
3165
3165
  }), v(N);
3166
3166
  };
3167
3167
  return /* @__PURE__ */ m(
@@ -3176,13 +3176,13 @@ const Ot = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
3176
3176
  className: ce.header,
3177
3177
  style: { borderBottom: `1px solid ${s}` },
3178
3178
  children: [
3179
- /* @__PURE__ */ i("div", { className: ce.nameDateContainer, children: Object.keys(a).map((C) => C === "name" ? /* @__PURE__ */ i("div", { className: ce.elementName, children: /* @__PURE__ */ m("button", { onClick: () => S("name"), children: [
3180
- /* @__PURE__ */ i("span", { children: f(a.name) }),
3179
+ /* @__PURE__ */ i("div", { className: ce.nameDateContainer, children: Object.keys(l).map((C) => C === "name" ? /* @__PURE__ */ i("div", { className: ce.elementName, children: /* @__PURE__ */ m("button", { onClick: () => S("name"), children: [
3180
+ /* @__PURE__ */ i("span", { children: f(l.name) }),
3181
3181
  /* @__PURE__ */ i("img", { src: Ot, alt: "order arrow" })
3182
3182
  ] }) }, C) : C === "data" ? /* @__PURE__ */ i("div", { className: ce.elementDate, children: /* @__PURE__ */ m("button", { onClick: () => S("created_at"), children: [
3183
- /* @__PURE__ */ i("span", { children: f(a.data) }),
3183
+ /* @__PURE__ */ i("span", { children: f(l.data) }),
3184
3184
  /* @__PURE__ */ i("img", { src: Ot, alt: "order arrow" })
3185
- ] }) }, C) : /* @__PURE__ */ i("div", { className: ce.elementDate, children: /* @__PURE__ */ i("span", { children: f(a[C]) }) }, C)) }),
3185
+ ] }) }, C) : /* @__PURE__ */ i("div", { className: ce.elementDate, children: /* @__PURE__ */ i("span", { children: f(l[C]) }) }, C)) }),
3186
3186
  /* @__PURE__ */ i("div", { className: ce.buttonsContainer })
3187
3187
  ]
3188
3188
  }
@@ -3194,8 +3194,8 @@ const Ot = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
3194
3194
  listelement: C,
3195
3195
  fontColor: s,
3196
3196
  activeColor: r,
3197
- onClickElement: l,
3198
- columns: a,
3197
+ onClickElement: a,
3198
+ columns: l,
3199
3199
  elementButtons: u,
3200
3200
  moreInfo: g,
3201
3201
  processTooltip: h,
@@ -3306,15 +3306,15 @@ var d2 = (n) => /^\w*$/.test(n), _t = (n) => n === void 0, os = (n) => Array.isA
3306
3306
  let r = -1;
3307
3307
  const t = d2(c) ? [c] : u2(c), o = t.length, d = o - 1;
3308
3308
  for (; ++r < o; ) {
3309
- const l = t[r];
3310
- let a = s;
3309
+ const a = t[r];
3310
+ let l = s;
3311
3311
  if (r !== d) {
3312
- const u = n[l];
3313
- a = Re(u) || Array.isArray(u) ? u : isNaN(+t[r + 1]) ? {} : [];
3312
+ const u = n[a];
3313
+ l = Re(u) || Array.isArray(u) ? u : isNaN(+t[r + 1]) ? {} : [];
3314
3314
  }
3315
- if (l === "__proto__" || l === "constructor" || l === "prototype")
3315
+ if (a === "__proto__" || a === "constructor" || a === "prototype")
3316
3316
  return;
3317
- n[l] = a, n = n[l];
3317
+ n[a] = l, n = n[a];
3318
3318
  }
3319
3319
  };
3320
3320
  const It = {
@@ -3340,7 +3340,7 @@ var as = (n, c, s, r = !0) => {
3340
3340
  };
3341
3341
  const h2 = typeof window < "u" ? Le.useLayoutEffect : Le.useEffect;
3342
3342
  function ls(n) {
3343
- const c = kt(), { control: s = c.control, disabled: r, name: t, exact: o } = n || {}, [d, l] = q.useState(s._formState), a = q.useRef({
3343
+ const c = kt(), { control: s = c.control, disabled: r, name: t, exact: o } = n || {}, [d, a] = q.useState(s._formState), l = q.useRef({
3344
3344
  isDirty: !1,
3345
3345
  isLoading: !1,
3346
3346
  dirtyFields: !1,
@@ -3352,66 +3352,66 @@ function ls(n) {
3352
3352
  });
3353
3353
  return h2(() => s._subscribe({
3354
3354
  name: t,
3355
- formState: a.current,
3355
+ formState: l.current,
3356
3356
  exact: o,
3357
3357
  callback: (u) => {
3358
- !r && l({
3358
+ !r && a({
3359
3359
  ...s._formState,
3360
3360
  ...u
3361
3361
  });
3362
3362
  }
3363
3363
  }), [t, r, o]), q.useEffect(() => {
3364
- a.current.isValid && s._setValid(!0);
3365
- }, [s]), q.useMemo(() => as(d, s, a.current, !1), [d, s]);
3364
+ l.current.isValid && s._setValid(!0);
3365
+ }, [s]), q.useMemo(() => as(d, s, l.current, !1), [d, s]);
3366
3366
  }
3367
3367
  var cs = (n) => typeof n == "string", ds = (n, c, s, r, t) => cs(n) ? Q(s, n, t) : Array.isArray(n) ? n.map((o) => Q(s, o)) : s;
3368
3368
  function us(n) {
3369
- const c = kt(), { control: s = c.control, name: r, defaultValue: t, disabled: o, exact: d } = n || {}, l = q.useRef(t), [a, u] = q.useState(s._getWatch(r, l.current));
3369
+ const c = kt(), { control: s = c.control, name: r, defaultValue: t, disabled: o, exact: d } = n || {}, a = q.useRef(t), [l, u] = q.useState(s._getWatch(r, a.current));
3370
3370
  return h2(() => s._subscribe({
3371
3371
  name: r,
3372
3372
  formState: {
3373
3373
  values: !0
3374
3374
  },
3375
3375
  exact: d,
3376
- callback: (g) => !o && u(ds(r, s._names, g.values || s._formValues, !1, l.current))
3377
- }), [r, s, o, d]), q.useEffect(() => s._removeUnmounted()), a;
3376
+ callback: (g) => !o && u(ds(r, s._names, g.values || s._formValues, !1, a.current))
3377
+ }), [r, s, o, d]), q.useEffect(() => s._removeUnmounted()), l;
3378
3378
  }
3379
3379
  function ps(n) {
3380
- const c = kt(), { name: s, disabled: r, control: t = c.control, shouldUnregister: o } = n, d = is(t._names.array, s), l = us({
3380
+ const c = kt(), { name: s, disabled: r, control: t = c.control, shouldUnregister: o } = n, d = is(t._names.array, s), a = us({
3381
3381
  control: t,
3382
3382
  name: s,
3383
3383
  defaultValue: Q(t._formValues, s, Q(t._defaultValues, s, n.defaultValue)),
3384
3384
  exact: !0
3385
- }), a = ls({
3385
+ }), l = ls({
3386
3386
  control: t,
3387
3387
  name: s,
3388
3388
  exact: !0
3389
3389
  }), u = q.useRef(n), g = q.useRef(t.register(s, {
3390
3390
  ...n.rules,
3391
- value: l,
3391
+ value: a,
3392
3392
  ...ct(n.disabled) ? { disabled: n.disabled } : {}
3393
3393
  })), h = q.useMemo(() => Object.defineProperties({}, {
3394
3394
  invalid: {
3395
3395
  enumerable: !0,
3396
- get: () => !!Q(a.errors, s)
3396
+ get: () => !!Q(l.errors, s)
3397
3397
  },
3398
3398
  isDirty: {
3399
3399
  enumerable: !0,
3400
- get: () => !!Q(a.dirtyFields, s)
3400
+ get: () => !!Q(l.dirtyFields, s)
3401
3401
  },
3402
3402
  isTouched: {
3403
3403
  enumerable: !0,
3404
- get: () => !!Q(a.touchedFields, s)
3404
+ get: () => !!Q(l.touchedFields, s)
3405
3405
  },
3406
3406
  isValidating: {
3407
3407
  enumerable: !0,
3408
- get: () => !!Q(a.validatingFields, s)
3408
+ get: () => !!Q(l.validatingFields, s)
3409
3409
  },
3410
3410
  error: {
3411
3411
  enumerable: !0,
3412
- get: () => Q(a.errors, s)
3412
+ get: () => Q(l.errors, s)
3413
3413
  }
3414
- }), [a, s]), y = q.useCallback((v) => g.current.onChange({
3414
+ }), [l, s]), y = q.useCallback((v) => g.current.onChange({
3415
3415
  target: {
3416
3416
  value: ts(v),
3417
3417
  name: s
@@ -3433,12 +3433,12 @@ function ps(n) {
3433
3433
  });
3434
3434
  }, [t._fields, s]), b = q.useMemo(() => ({
3435
3435
  name: s,
3436
- value: l,
3437
- ...ct(r) || a.disabled ? { disabled: a.disabled || r } : {},
3436
+ value: a,
3437
+ ...ct(r) || l.disabled ? { disabled: l.disabled || r } : {},
3438
3438
  onChange: y,
3439
3439
  onBlur: p,
3440
3440
  ref: f
3441
- }), [s, r, a.disabled, y, p, f, l]);
3441
+ }), [s, r, l.disabled, y, p, f, a]);
3442
3442
  return q.useEffect(() => {
3443
3443
  const v = t._options.shouldUnregister || o;
3444
3444
  t.register(s, {
@@ -3463,9 +3463,9 @@ function ps(n) {
3463
3463
  });
3464
3464
  }, [r, s, t]), q.useMemo(() => ({
3465
3465
  field: b,
3466
- formState: a,
3466
+ formState: l,
3467
3467
  fieldState: h
3468
- }), [b, a, h]);
3468
+ }), [b, l, h]);
3469
3469
  }
3470
3470
  const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_labelContainer_1o3iy_5", gs = "_inputContainer_1o3iy_8", Cs = "_showPasswordButton_1o3iy_14", fs = "_forgotPassButton_1o3iy_26", Fe = {
3471
3471
  textInputContainer: hs,
@@ -3498,8 +3498,8 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3498
3498
  label: t,
3499
3499
  maxLength: o,
3500
3500
  required: d,
3501
- validateFunction: l,
3502
- placeholder: a,
3501
+ validateFunction: a,
3502
+ placeholder: l,
3503
3503
  errorColor: u = "red",
3504
3504
  width: g = 325,
3505
3505
  onClickForgotPass: h = () => {
@@ -3520,12 +3520,12 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3520
3520
  rules: {
3521
3521
  required: d ? `${f(t)} ${f("errorMessages.required")}` : !1,
3522
3522
  maxLength: o || void 0,
3523
- validate: l || void 0
3523
+ validate: a || void 0
3524
3524
  },
3525
3525
  render: ({ field: w, fieldState: $ }) => {
3526
3526
  var D;
3527
- const { onChange: L, ...k } = w, V = (T) => {
3528
- L(T), p && p(T);
3527
+ const { onChange: L, ...k } = w, V = (B) => {
3528
+ L(B), p && p(B);
3529
3529
  };
3530
3530
  return /* @__PURE__ */ m("div", { className: Fe.textInputContainer, children: [
3531
3531
  /* @__PURE__ */ m("h3", { className: Fe.labelContainer, children: [
@@ -3545,7 +3545,7 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3545
3545
  ...k,
3546
3546
  type: N(),
3547
3547
  onChange: V,
3548
- placeholder: a ? f(a) : "",
3548
+ placeholder: l ? f(l) : "",
3549
3549
  maxLength: o || void 0
3550
3550
  }
3551
3551
  ),
@@ -3594,15 +3594,15 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3594
3594
  type: t,
3595
3595
  label: o,
3596
3596
  maxLength: d,
3597
- required: l,
3598
- validateFunction: a,
3597
+ required: a,
3598
+ validateFunction: l,
3599
3599
  placeholder: u,
3600
3600
  errorColor: g = "red",
3601
3601
  width: h = 325,
3602
3602
  options: y = []
3603
3603
  //Used if we dont use react hook form
3604
3604
  } = n, { t: p } = F(), { control: f, trigger: b, clearErrors: v } = c || {}, { errorColor: _ } = qe((C) => C);
3605
- Y(l);
3605
+ Y(a);
3606
3606
  const [x, S] = I(null);
3607
3607
  return A(() => {
3608
3608
  x && s && s(x);
@@ -3612,10 +3612,10 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3612
3612
  name: r,
3613
3613
  control: f,
3614
3614
  rules: {
3615
- required: l ? `${p(o)} ${p("errorMessages.required")}` : !1,
3616
- validate: a ? (C) => {
3615
+ required: a ? `${p(o)} ${p("errorMessages.required")}` : !1,
3616
+ validate: l ? (C) => {
3617
3617
  let N = c.getValues();
3618
- return a(C, N);
3618
+ return l(C, N);
3619
3619
  } : void 0
3620
3620
  },
3621
3621
  render: ({ field: C, fieldState: N }) => {
@@ -3624,13 +3624,14 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3624
3624
  o && /* @__PURE__ */ m("h3", { className: se.labelContainer, children: [
3625
3625
  p(o),
3626
3626
  " ",
3627
- l && /* @__PURE__ */ i("label", { style: { color: N.error ? g : "" }, children: "*" })
3627
+ a && /* @__PURE__ */ i("label", { style: { color: N.error ? g : "" }, children: "*" })
3628
3628
  ] }),
3629
3629
  /* @__PURE__ */ m("div", { className: se.inputContainer, style: { width: h }, children: [
3630
3630
  /* @__PURE__ */ m(
3631
3631
  "select",
3632
3632
  {
3633
3633
  ...C,
3634
+ value: C.value ?? "",
3634
3635
  onChange: ($) => {
3635
3636
  const L = $.target.value, k = y.every((V) => typeof V.value == "number") ? Number(L) : L;
3636
3637
  C.onChange(k);
@@ -3673,13 +3674,13 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3673
3674
  o && /* @__PURE__ */ m("h3", { className: se.labelContainer, children: [
3674
3675
  p(o),
3675
3676
  " ",
3676
- l && /* @__PURE__ */ i("label", { children: "*" })
3677
+ a && /* @__PURE__ */ i("label", { children: "*" })
3677
3678
  ] }),
3678
3679
  /* @__PURE__ */ m("div", { className: se.inputContainer, style: { width: h }, children: [
3679
3680
  /* @__PURE__ */ m(
3680
3681
  "select",
3681
3682
  {
3682
- value: x || "",
3683
+ value: x ?? "",
3683
3684
  onChange: (C) => {
3684
3685
  const N = C.target.value, w = y.every(($) => typeof $.value == "number") ? Number(N) : N;
3685
3686
  S(w);
@@ -3702,9 +3703,9 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3702
3703
  /* @__PURE__ */ i("img", { src: Pt, alt: "Open", className: se.dropdownArrow })
3703
3704
  ] })
3704
3705
  ] });
3705
- }, Bs = "_radioButtonContainer_1e994_2", Ts = "_wholeInputContainer_1e994_5", Ds = "_questionContainer_1e994_27", Vs = "_radioQuestion_1e994_59", Fs = "_inputContainer_1e994_63", As = "_radioInput_1e994_93", _e = {
3706
- radioButtonContainer: Bs,
3707
- wholeInputContainer: Ts,
3706
+ }, Ts = "_radioButtonContainer_1e994_2", Bs = "_wholeInputContainer_1e994_5", Ds = "_questionContainer_1e994_27", Vs = "_radioQuestion_1e994_59", Fs = "_inputContainer_1e994_63", As = "_radioInput_1e994_93", _e = {
3707
+ radioButtonContainer: Ts,
3708
+ wholeInputContainer: Bs,
3708
3709
  questionContainer: Ds,
3709
3710
  radioQuestion: Vs,
3710
3711
  inputContainer: Fs,
@@ -3716,15 +3717,15 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3716
3717
  required: t,
3717
3718
  validateFunction: o,
3718
3719
  errorColor: d = "red",
3719
- options: l = [],
3720
- multi: a = !1
3720
+ options: a = [],
3721
+ multi: l = !1
3721
3722
  } = n, { t: u } = F(), { control: g, trigger: h, clearErrors: y } = c, { errorColor: p } = qe((v) => v), f = ({ options: v, onChange: _, actualValue: x }) => {
3722
- if (a && x && x.length > 0) {
3723
+ if (l && x && x.length > 0) {
3723
3724
  let S = x.filter((C) => C !== v);
3724
3725
  _(S);
3725
3726
  }
3726
3727
  }, b = ({ options: v, onChange: _, actualValue: x }) => {
3727
- a ? x && x.length > 0 ? _([...x, v]) : _([v]) : _(v);
3728
+ l ? x && x.length > 0 ? _([...x, v]) : _([v]) : _(v);
3728
3729
  };
3729
3730
  return Y(t), /* @__PURE__ */ i(
3730
3731
  Ie,
@@ -3760,28 +3761,28 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3760
3761
  }
3761
3762
  ) }),
3762
3763
  /* @__PURE__ */ m("div", { className: _e.inputContainer, children: [
3763
- l.map(
3764
+ a.map(
3764
3765
  ({
3765
3766
  label: $,
3766
3767
  value: L,
3767
3768
  disabled: k = !1,
3768
3769
  italicLabel: V
3769
3770
  }, D) => {
3770
- const T = S && a ? S.isArray && (S == null ? void 0 : S.length) > 0 && S.some((O) => O === L) : S === L;
3771
+ const B = S && l ? S.isArray && (S == null ? void 0 : S.length) > 0 && S.some((O) => O === L) : S === L;
3771
3772
  return /* @__PURE__ */ m("label", { children: [
3772
3773
  /* @__PURE__ */ i(
3773
3774
  "input",
3774
3775
  {
3775
3776
  type: "radio",
3776
- checked: T,
3777
+ checked: B,
3777
3778
  onChange: () => {
3778
- a ? T ? f({
3779
+ l ? B ? f({
3779
3780
  actualValue: S,
3780
- options: l,
3781
+ options: a,
3781
3782
  onChange: _
3782
3783
  }) : b({
3783
3784
  actualValue: S,
3784
- options: l,
3785
+ options: a,
3785
3786
  onChange: _
3786
3787
  }) : _(L);
3787
3788
  },
@@ -3820,8 +3821,8 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3820
3821
  label: t,
3821
3822
  minValue: o = 1,
3822
3823
  maxValue: d = 5,
3823
- defValue: l = 3,
3824
- thumbColor: a = "#B32F5D",
3824
+ defValue: a = 3,
3825
+ thumbColor: l = "#B32F5D",
3825
3826
  //trackColors = ["#B32F5D", "#EFEFEF"],
3826
3827
  required: u,
3827
3828
  errorColor: g = "red",
@@ -3837,13 +3838,13 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3837
3838
  showMarksNumber: _ = !0
3838
3839
  } = n, { t: x } = F(), { control: S, trigger: C, clearErrors: N } = c || {};
3839
3840
  Y(u);
3840
- const { errorColorForm: w } = qe((k) => k), [$, L] = I(l);
3841
+ const { errorColorForm: w } = qe((k) => k), [$, L] = I(a);
3841
3842
  return c ? /* @__PURE__ */ i(
3842
3843
  Ie,
3843
3844
  {
3844
3845
  name: r,
3845
3846
  control: S,
3846
- defaultValue: l,
3847
+ defaultValue: a,
3847
3848
  rules: {
3848
3849
  required: u ? `${x(t)} ${x("errorMessages.required")}` : !1
3849
3850
  },
@@ -3867,16 +3868,16 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3867
3868
  min: o,
3868
3869
  max: d,
3869
3870
  step: 1,
3870
- value: k.value ?? l,
3871
- onChange: (T) => k.onChange(T),
3871
+ value: k.value ?? a,
3872
+ onChange: (B) => k.onChange(B),
3872
3873
  marks: !0,
3873
3874
  className: z.slider,
3874
3875
  thumbClassName: z.thumb,
3875
- renderThumb: (T) => /* @__PURE__ */ i(
3876
+ renderThumb: (B) => /* @__PURE__ */ i(
3876
3877
  "div",
3877
3878
  {
3878
- ...T,
3879
- style: { ...T.style, backgroundColor: a }
3879
+ ...B,
3880
+ style: { ...B.style, backgroundColor: l }
3880
3881
  }
3881
3882
  ),
3882
3883
  trackClassName: z.track,
@@ -3884,7 +3885,7 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3884
3885
  disabled: b
3885
3886
  }
3886
3887
  ),
3887
- v && /* @__PURE__ */ i("div", { className: z.labels, children: v.map((T) => /* @__PURE__ */ i("span", { children: _ && T }, T)) })
3888
+ v && /* @__PURE__ */ i("div", { className: z.labels, children: v.map((B) => /* @__PURE__ */ i("span", { children: _ && B }, B)) })
3888
3889
  ] }),
3889
3890
  f && /* @__PURE__ */ i("div", { className: z.maxLabel, children: x(f) })
3890
3891
  ] }),
@@ -3927,7 +3928,7 @@ const Ie = (n) => n.render(ps(n)), hs = "_textInputContainer_1o3iy_2", ms = "_la
3927
3928
  "div",
3928
3929
  {
3929
3930
  ...k,
3930
- style: { ...k.style, backgroundColor: a }
3931
+ style: { ...k.style, backgroundColor: l }
3931
3932
  }
3932
3933
  ),
3933
3934
  trackClassName: z.track,
@@ -3967,15 +3968,15 @@ const Ae = ({
3967
3968
  reactHookFormInstance: s
3968
3969
  }) => {
3969
3970
  const { watch: r } = s, t = r(), o = Me(() => n == null ? void 0 : n.map((d) => {
3970
- const l = typeof d.required == "function" ? d.required(t) : d.required;
3971
+ const a = typeof d.required == "function" ? d.required(t) : d.required;
3971
3972
  return {
3972
3973
  ...d,
3973
- required: l
3974
+ required: a
3974
3975
  };
3975
3976
  }), [n, t]);
3976
- return /* @__PURE__ */ i("div", { className: $e.inputsContainer, children: o == null ? void 0 : o.map((d, l) => {
3977
- const { inputType: a } = d;
3978
- switch (a) {
3977
+ return /* @__PURE__ */ i("div", { className: $e.inputsContainer, children: o == null ? void 0 : o.map((d, a) => {
3978
+ const { inputType: l } = d;
3979
+ switch (l) {
3979
3980
  case Ve.text:
3980
3981
  return /* @__PURE__ */ i(
3981
3982
  "div",
@@ -3990,7 +3991,7 @@ const Ae = ({
3990
3991
  }
3991
3992
  )
3992
3993
  },
3993
- `${d.code}${l}`
3994
+ `${d.code}${a}`
3994
3995
  );
3995
3996
  case Ve.password:
3996
3997
  return /* @__PURE__ */ i(
@@ -4006,7 +4007,7 @@ const Ae = ({
4006
4007
  }
4007
4008
  )
4008
4009
  },
4009
- `${d.code}${l}`
4010
+ `${d.code}${a}`
4010
4011
  );
4011
4012
  case Ve.select:
4012
4013
  return /* @__PURE__ */ i(
@@ -4022,7 +4023,7 @@ const Ae = ({
4022
4023
  }
4023
4024
  )
4024
4025
  },
4025
- `${d.code}${l}`
4026
+ `${d.code}${a}`
4026
4027
  );
4027
4028
  case Ve.radioList:
4028
4029
  return /* @__PURE__ */ i(
@@ -4038,7 +4039,7 @@ const Ae = ({
4038
4039
  }
4039
4040
  )
4040
4041
  },
4041
- `${d.code}${l}`
4042
+ `${d.code}${a}`
4042
4043
  );
4043
4044
  case Ve.rankingSlider:
4044
4045
  return /* @__PURE__ */ i(
@@ -4054,10 +4055,10 @@ const Ae = ({
4054
4055
  }
4055
4056
  )
4056
4057
  },
4057
- `${d.code}${l}`
4058
+ `${d.code}${a}`
4058
4059
  );
4059
4060
  default:
4060
- return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("h4", { children: "Default" }) }, `${d.code}${l}`);
4061
+ return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("h4", { children: "Default" }) }, `${d.code}${a}`);
4061
4062
  }
4062
4063
  }) });
4063
4064
  }, Hs = "_categorySelector_1guuv_2", Ks = "_sectionItemActive_1guuv_16", Ws = "_sectionItem_1guuv_16", Us = "_sectionItemError_1guuv_32", Oe = {
@@ -4073,23 +4074,23 @@ const Ae = ({
4073
4074
  containerStyles: t = {},
4074
4075
  categoriesWithErrors: o = []
4075
4076
  }) => {
4076
- const { t: d } = F(), l = (a) => {
4077
- c(a);
4077
+ const { t: d } = F(), a = (l) => {
4078
+ c(l);
4078
4079
  };
4079
4080
  return /* @__PURE__ */ i(
4080
4081
  "div",
4081
4082
  {
4082
4083
  className: Oe.categorySelector,
4083
4084
  style: t ? { ...t } : {},
4084
- children: n.map((a, u) => {
4085
- const { id: g, label: h } = a, y = s == g, p = o.includes(g);
4085
+ children: n.map((l, u) => {
4086
+ const { id: g, label: h } = l, y = s == g, p = o.includes(g);
4086
4087
  return /* @__PURE__ */ i(
4087
4088
  "button",
4088
4089
  {
4089
4090
  className: `${Oe.sectionItem} ${y ? Oe.sectionItemActive : ""} ${p ? Oe.sectionItemError : ""}`,
4090
4091
  type: "button",
4091
4092
  style: { backgroundColor: y ? r : "inherit" },
4092
- onClick: () => l(g),
4093
+ onClick: () => a(g),
4093
4094
  children: /* @__PURE__ */ i(
4094
4095
  "span",
4095
4096
  {
@@ -4112,8 +4113,8 @@ const Ae = ({
4112
4113
  generalError: t,
4113
4114
  errorColor: o = "red",
4114
4115
  submitButtonLabel: d = "Submit",
4115
- submitButtonStyles: l = { width: 325 },
4116
- showCategorySelector: a = !0,
4116
+ submitButtonStyles: a = { width: 325 },
4117
+ showCategorySelector: l = !0,
4117
4118
  defaultCategory: u = null,
4118
4119
  categoryLabel: g = "Select Category",
4119
4120
  activeCategory: h = null,
@@ -4147,7 +4148,7 @@ const Ae = ({
4147
4148
  const L = (k, V) => {
4148
4149
  var D;
4149
4150
  if (((D = k.subcategories) == null ? void 0 : D.length) > 0) {
4150
- const T = k.subcategories;
4151
+ const B = k.subcategories;
4151
4152
  return /* @__PURE__ */ m("div", { children: [
4152
4153
  /* @__PURE__ */ i(
4153
4154
  "div",
@@ -4157,7 +4158,7 @@ const Ae = ({
4157
4158
  zt,
4158
4159
  {
4159
4160
  activeCategory: w,
4160
- categories: T,
4161
+ categories: B,
4161
4162
  categoriesWithErrors: p,
4162
4163
  onChange: (O) => $(O),
4163
4164
  activeColor: y
@@ -4166,7 +4167,7 @@ const Ae = ({
4166
4167
  },
4167
4168
  k.categoryId
4168
4169
  ),
4169
- T.map((O, R) => {
4170
+ B.map((O, R) => {
4170
4171
  const H = !w || O.id === w;
4171
4172
  return s ? /* @__PURE__ */ i(
4172
4173
  "div",
@@ -4237,7 +4238,7 @@ const Ae = ({
4237
4238
  ] }, k.categoryId);
4238
4239
  };
4239
4240
  return /* @__PURE__ */ m("form", { className: De.formContainer, onSubmit: v(f), children: [
4240
- a && x.length > 0 && /* @__PURE__ */ i("div", { className: De.categorySelectorContainer, children: /* @__PURE__ */ i(
4241
+ l && x.length > 0 && /* @__PURE__ */ i("div", { className: De.categorySelectorContainer, children: /* @__PURE__ */ i(
4241
4242
  zt,
4242
4243
  {
4243
4244
  activeCategory: C,
@@ -4274,7 +4275,7 @@ const Ae = ({
4274
4275
  );
4275
4276
  }) }),
4276
4277
  /* @__PURE__ */ m("div", { className: De.buttonContainer, children: [
4277
- /* @__PURE__ */ i(Xe, { containerStyles: l, type: "submit", children: b(d) }),
4278
+ /* @__PURE__ */ i(Xe, { containerStyles: a, type: "submit", children: b(d) }),
4278
4279
  /* @__PURE__ */ i(Ee, { errorMessage: t, errorColor: o })
4279
4280
  ] })
4280
4281
  ] });
@@ -4305,7 +4306,7 @@ const Ae = ({
4305
4306
  c && /* @__PURE__ */ i("img", { src: c, alt: "icon", className: ge.icon }),
4306
4307
  /* @__PURE__ */ i("p", { className: ge.message, children: s }),
4307
4308
  r && /* @__PURE__ */ i("p", { className: ge.submessage, children: r }),
4308
- t.length > 0 && /* @__PURE__ */ i("div", { className: ge.buttonsContainer, children: t.map((l, a) => /* @__PURE__ */ i("div", { className: ge.buttonWrapper, children: l }, a)) })
4309
+ t.length > 0 && /* @__PURE__ */ i("div", { className: ge.buttonsContainer, children: t.map((a, l) => /* @__PURE__ */ i("div", { className: ge.buttonWrapper, children: a }, l)) })
4309
4310
  ]
4310
4311
  }
4311
4312
  ) });
@@ -4433,11 +4434,11 @@ const b1 = "_switchContainer_194wl_2", _1 = "_labelRight_194wl_9", v1 = "_labelL
4433
4434
  code: t,
4434
4435
  labelLeft: o,
4435
4436
  labelRight: d,
4436
- defValue: l = !1,
4437
- colorOn: a = "#5A514D",
4437
+ defValue: a = !1,
4438
+ colorOn: l = "#5A514D",
4438
4439
  disabled: u = !1,
4439
4440
  width: g = 240
4440
- } = n, { t: h } = F(), { control: y } = c || {}, [p, f] = I(l), b = (_) => {
4441
+ } = n, { t: h } = F(), { control: y } = c || {}, [p, f] = I(a), b = (_) => {
4441
4442
  f(_), s && s(_);
4442
4443
  }, v = (_, x) => /* @__PURE__ */ m("div", { className: Se.switchContainer, style: { width: `${g}px` }, children: [
4443
4444
  o && /* @__PURE__ */ i(
@@ -4463,7 +4464,7 @@ const b1 = "_switchContainer_194wl_2", _1 = "_labelRight_194wl_9", v1 = "_labelL
4463
4464
  {
4464
4465
  className: Se.slider,
4465
4466
  style: {
4466
- "--switch-thumb-color": r ? _ ? a : "#ccc" : a
4467
+ "--switch-thumb-color": r ? _ ? l : "#ccc" : l
4467
4468
  }
4468
4469
  }
4469
4470
  )
@@ -4475,7 +4476,7 @@ const b1 = "_switchContainer_194wl_2", _1 = "_labelRight_194wl_9", v1 = "_labelL
4475
4476
  {
4476
4477
  name: t,
4477
4478
  control: y,
4478
- defaultValue: l,
4479
+ defaultValue: a,
4479
4480
  render: ({ field: _ }) => v(_.value, _.onChange)
4480
4481
  }
4481
4482
  ) : v(p, b);
@@ -4512,9 +4513,9 @@ M1.propTypes = {
4512
4513
  gifSrc: e.string,
4513
4514
  message: e.string
4514
4515
  };
4515
- const B1 = "_container_1pl8d_3", T1 = "_burger_1pl8d_10", D1 = "_menu_1pl8d_21", V1 = "_menuOpen_1pl8d_35", F1 = "_menuClose_1pl8d_40", A1 = "_list_1pl8d_46", O1 = "_item_1pl8d_56", R1 = "_button_1pl8d_91", oe = {
4516
- container: B1,
4517
- burger: T1,
4516
+ const T1 = "_container_1pl8d_3", B1 = "_burger_1pl8d_10", D1 = "_menu_1pl8d_21", V1 = "_menuOpen_1pl8d_35", F1 = "_menuClose_1pl8d_40", A1 = "_list_1pl8d_46", O1 = "_item_1pl8d_56", R1 = "_button_1pl8d_91", oe = {
4517
+ container: T1,
4518
+ burger: B1,
4518
4519
  menu: D1,
4519
4520
  menuOpen: V1,
4520
4521
  menuClose: F1,
@@ -4527,7 +4528,7 @@ const B1 = "_container_1pl8d_3", T1 = "_burger_1pl8d_10", D1 = "_menu_1pl8d_21",
4527
4528
  textColor: s,
4528
4529
  iconColor: r
4529
4530
  }) => {
4530
- const [t, o] = I(!1), d = () => o((f) => !f), l = () => o(!1), a = 7, u = t ? 11 : 0, g = t ? 13 : 0, h = t ? -11.51666 : 0, y = t ? -13 : 0, p = "0.35s";
4531
+ const [t, o] = I(!1), d = () => o((f) => !f), a = () => o(!1), l = 7, u = t ? 11 : 0, g = t ? 13 : 0, h = t ? -11.51666 : 0, y = t ? -13 : 0, p = "0.35s";
4531
4532
  return /* @__PURE__ */ m("div", { className: oe.container, children: [
4532
4533
  /* @__PURE__ */ i("button", { onClick: d, className: oe.burger, children: /* @__PURE__ */ m(
4533
4534
  "svg",
@@ -4545,7 +4546,7 @@ const B1 = "_container_1pl8d_3", T1 = "_burger_1pl8d_10", D1 = "_menu_1pl8d_21",
4545
4546
  transform: `translateY(${u}px)`,
4546
4547
  transition: `transform ${p} cubic-bezier(0.42, 0, 0.58, 1)`
4547
4548
  },
4548
- children: /* @__PURE__ */ i("circle", { cx: "20", cy: "9", r: a, fill: r })
4549
+ children: /* @__PURE__ */ i("circle", { cx: "20", cy: "9", r: l, fill: r })
4549
4550
  }
4550
4551
  ),
4551
4552
  /* @__PURE__ */ i(
@@ -4555,7 +4556,7 @@ const B1 = "_container_1pl8d_3", T1 = "_burger_1pl8d_10", D1 = "_menu_1pl8d_21",
4555
4556
  transform: `translate(${g}px, ${h}px)`,
4556
4557
  transition: `transform ${p} cubic-bezier(0.42, 0, 0.58, 1)`
4557
4558
  },
4558
- children: /* @__PURE__ */ i("circle", { cx: "7", cy: "31.51666", r: a, fill: r })
4559
+ children: /* @__PURE__ */ i("circle", { cx: "7", cy: "31.51666", r: l, fill: r })
4559
4560
  }
4560
4561
  ),
4561
4562
  /* @__PURE__ */ i(
@@ -4565,7 +4566,7 @@ const B1 = "_container_1pl8d_3", T1 = "_burger_1pl8d_10", D1 = "_menu_1pl8d_21",
4565
4566
  transform: `translate(${y}px, ${h}px)`,
4566
4567
  transition: `transform ${p} cubic-bezier(0.42, 0, 0.58, 1)`
4567
4568
  },
4568
- children: /* @__PURE__ */ i("circle", { cx: "33", cy: "31.51666", r: a, fill: r })
4569
+ children: /* @__PURE__ */ i("circle", { cx: "33", cy: "31.51666", r: l, fill: r })
4569
4570
  }
4570
4571
  ),
4571
4572
  /* @__PURE__ */ i(
@@ -4608,7 +4609,7 @@ const B1 = "_container_1pl8d_3", T1 = "_burger_1pl8d_10", D1 = "_menu_1pl8d_21",
4608
4609
  {
4609
4610
  to: f.url,
4610
4611
  className: ({ isActive: v }) => `${oe.link} ${v ? oe.active : ""}`,
4611
- onClick: l,
4612
+ onClick: a,
4612
4613
  style: { color: s },
4613
4614
  children: f.name
4614
4615
  }
@@ -4618,7 +4619,7 @@ const B1 = "_container_1pl8d_3", T1 = "_burger_1pl8d_10", D1 = "_menu_1pl8d_21",
4618
4619
  {
4619
4620
  className: oe.button,
4620
4621
  onClick: () => {
4621
- f.onclick(), l();
4622
+ f.onclick(), a();
4622
4623
  },
4623
4624
  children: f.name
4624
4625
  }
@@ -4651,8 +4652,8 @@ const I1 = "_svgContainer_1rxoe_2", E1 = "_svg_1rxoe_2", Zt = {
4651
4652
  height: t = 300,
4652
4653
  margin: o = { top: 20, right: 20, bottom: 60, left: 60 },
4653
4654
  className: d = "",
4654
- showXAxisLabels: l = !0,
4655
- showYAxisLabels: a = !0,
4655
+ showXAxisLabels: a = !0,
4656
+ showYAxisLabels: l = !0,
4656
4657
  showGrid: u = !0,
4657
4658
  xAxisTickRotation: g = -90,
4658
4659
  yAxisTickFormat: h = (C) => C.toLocaleString("es-ES"),
@@ -4679,25 +4680,25 @@ const I1 = "_svgContainer_1rxoe_2", E1 = "_svg_1rxoe_2", Zt = {
4679
4680
  return L(), window.addEventListener("resize", L), () => window.removeEventListener("resize", L);
4680
4681
  }, [r, t]), A(() => {
4681
4682
  if (!n || n.length === 0 || w.width === 0) return;
4682
- const L = xe(C.current), k = w.width, V = w.height, D = k - o.left - o.right, T = V - o.top - o.bottom;
4683
- if (D <= 0 || T <= 0) return;
4684
- const O = n.map((B) => B.anyo || B.year || B.x), R = c, H = ut(n, (B) => ut(R, (re) => B[re])) || 0, ee = pt(n, (B) => pt(R, (re) => B[re])) || 0, E = ht().domain(O).rangeRound([0, D]).paddingInner(y), K = ht().domain(R).rangeRound([0, E.bandwidth()]).padding(p), U = Kt().domain([Math.min(0, H), ee]).nice().rangeRound([T, 0]), Qe = Wt().domain(R).range(Array.isArray(s) ? s : Object.values(s || {}));
4683
+ const L = xe(C.current), k = w.width, V = w.height, D = k - o.left - o.right, B = V - o.top - o.bottom;
4684
+ if (D <= 0 || B <= 0) return;
4685
+ const O = n.map((T) => T.anyo || T.year || T.x), R = c, H = ut(n, (T) => ut(R, (re) => T[re])) || 0, ee = pt(n, (T) => pt(R, (re) => T[re])) || 0, E = ht().domain(O).rangeRound([0, D]).paddingInner(y), K = ht().domain(R).rangeRound([0, E.bandwidth()]).padding(p), U = Kt().domain([Math.min(0, H), ee]).nice().rangeRound([B, 0]), Qe = Wt().domain(R).range(Array.isArray(s) ? s : Object.values(s || {}));
4685
4686
  L.selectAll("*").remove();
4686
4687
  const te = L.append("g").attr("transform", `translate(${o.left},${o.top})`);
4687
- _ && L.append("text").attr("x", k / 2).attr("y", o.top / 2).attr("text-anchor", "middle").style("font-size", "16px").style("font-weight", "bold").style("fill", "#333").text(_), u && te.append("g").attr("class", "grid").selectAll("line").data(U.ticks()).enter().append("line").attr("x1", 0).attr("x2", D).attr("y1", (B) => U(B)).attr("y2", (B) => U(B)).style("stroke", "#e0e0e0").style("stroke-width", 0.5), l && (te.append("g").attr("transform", `translate(0,${T})`).call(Ut(E).tickSizeOuter(0)).attr("class", "x-axis").selectAll("text").attr("transform", `translate(0,10)rotate(${g})`).style("text-anchor", g < 0 ? "end" : "middle").style("font-size", "12px").style("fill", "#605B56"), x && te.append("text").attr(
4688
+ _ && L.append("text").attr("x", k / 2).attr("y", o.top / 2).attr("text-anchor", "middle").style("font-size", "16px").style("font-weight", "bold").style("fill", "#333").text(_), u && te.append("g").attr("class", "grid").selectAll("line").data(U.ticks()).enter().append("line").attr("x1", 0).attr("x2", D).attr("y1", (T) => U(T)).attr("y2", (T) => U(T)).style("stroke", "#e0e0e0").style("stroke-width", 0.5), a && (te.append("g").attr("transform", `translate(0,${B})`).call(Ut(E).tickSizeOuter(0)).attr("class", "x-axis").selectAll("text").attr("transform", `translate(0,10)rotate(${g})`).style("text-anchor", g < 0 ? "end" : "middle").style("font-size", "12px").style("fill", "#605B56"), x && te.append("text").attr(
4688
4689
  "transform",
4689
- `translate(${D / 2}, ${T + o.bottom - 5})`
4690
- ).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(x)), a && (te.append("g").call(mt(U).ticks(6).tickFormat(h)).attr("class", "y-axis").call((B) => B.select(".domain").remove()), S && te.append("text").attr("transform", "rotate(-90)").attr("y", 0 - o.left).attr("x", 0 - T / 2).attr("dy", "1em").style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(S));
4691
- const ne = te.append("g").selectAll(".bar-group").data(n).enter().append("g").attr("class", "bar-group").attr("transform", (B) => `translate(${E(B.anyo || B.year || B.x)},0)`).selectAll(".bar").data(
4692
- (B) => R.map((re) => ({
4690
+ `translate(${D / 2}, ${B + o.bottom - 5})`
4691
+ ).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(x)), l && (te.append("g").call(mt(U).ticks(6).tickFormat(h)).attr("class", "y-axis").call((T) => T.select(".domain").remove()), S && te.append("text").attr("transform", "rotate(-90)").attr("y", 0 - o.left).attr("x", 0 - B / 2).attr("dy", "1em").style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(S));
4692
+ const ne = te.append("g").selectAll(".bar-group").data(n).enter().append("g").attr("class", "bar-group").attr("transform", (T) => `translate(${E(T.anyo || T.year || T.x)},0)`).selectAll(".bar").data(
4693
+ (T) => R.map((re) => ({
4693
4694
  key: re,
4694
- value: B[re],
4695
- data: B
4695
+ value: T[re],
4696
+ data: T
4696
4697
  }))
4697
- ).enter().append("rect").attr("class", "bar").attr("x", (B) => K(B.key)).attr("y", T).attr("width", K.bandwidth()).attr("height", 0).attr("fill", (B) => Qe(B.key)).style("cursor", b || v ? "pointer" : "default");
4698
- ne.transition().duration(f).attr("y", (B) => U(Math.max(0, B.value))).attr("height", (B) => Math.abs(U(B.value) - U(0))), b && ne.on("mouseover", function(B, re) {
4699
- xe(this).style("opacity", 0.8), b(B, re);
4700
- }).on("mouseout", function(B, re) {
4698
+ ).enter().append("rect").attr("class", "bar").attr("x", (T) => K(T.key)).attr("y", B).attr("width", K.bandwidth()).attr("height", 0).attr("fill", (T) => Qe(T.key)).style("cursor", b || v ? "pointer" : "default");
4699
+ ne.transition().duration(f).attr("y", (T) => U(Math.max(0, T.value))).attr("height", (T) => Math.abs(U(T.value) - U(0))), b && ne.on("mouseover", function(T, re) {
4700
+ xe(this).style("opacity", 0.8), b(T, re);
4701
+ }).on("mouseout", function(T, re) {
4701
4702
  xe(this).style("opacity", 1);
4702
4703
  }), v && ne.on("click", v);
4703
4704
  }, [
@@ -4708,8 +4709,8 @@ const I1 = "_svgContainer_1rxoe_2", E1 = "_svg_1rxoe_2", Zt = {
4708
4709
  o,
4709
4710
  y,
4710
4711
  p,
4711
- l,
4712
4712
  a,
4713
+ l,
4713
4714
  u,
4714
4715
  g,
4715
4716
  h,
@@ -4778,8 +4779,8 @@ const P1 = "_svgContainer_7fkic_2", z1 = "_svg_7fkic_2", jt = {
4778
4779
  height: t = 300,
4779
4780
  margin: o = { top: 20, right: 20, bottom: 60, left: 60 },
4780
4781
  className: d = "",
4781
- showXAxisLabels: l = !0,
4782
- showYAxisLabels: a = !0,
4782
+ showXAxisLabels: a = !0,
4783
+ showYAxisLabels: l = !0,
4783
4784
  showGrid: u = !0,
4784
4785
  xAxisTickRotation: g = -90,
4785
4786
  yAxisTickFormat: h = ($) => $.toLocaleString("es-ES"),
@@ -4803,7 +4804,7 @@ const P1 = "_svgContainer_7fkic_2", z1 = "_svg_7fkic_2", jt = {
4803
4804
  height: 0
4804
4805
  }), { t: D } = F();
4805
4806
  return A(() => {
4806
- const T = () => {
4807
+ const B = () => {
4807
4808
  if (L.current) {
4808
4809
  const O = L.current.getBoundingClientRect().width;
4809
4810
  V({
@@ -4812,15 +4813,15 @@ const P1 = "_svgContainer_7fkic_2", z1 = "_svg_7fkic_2", jt = {
4812
4813
  });
4813
4814
  }
4814
4815
  };
4815
- return T(), window.addEventListener("resize", T), () => window.removeEventListener("resize", T);
4816
+ return B(), window.addEventListener("resize", B), () => window.removeEventListener("resize", B);
4816
4817
  }, [r, t]), A(() => {
4817
4818
  if (!n || n.length === 0 || k.containerWidth === 0) return;
4818
- const T = xe($.current), { containerWidth: O, height: R } = k, H = O - o.left - o.right, ee = n.length * w, E = Math.max(
4819
+ const B = xe($.current), { containerWidth: O, height: R } = k, H = O - o.left - o.right, ee = n.length * w, E = Math.max(
4819
4820
  H,
4820
4821
  ee
4821
4822
  ), K = E + o.left + o.right, U = R - o.top - o.bottom;
4822
4823
  if (E <= 0 || U <= 0) return;
4823
- T.attr("width", K).attr("height", R);
4824
+ B.attr("width", K).attr("height", R);
4824
4825
  const Qe = N ? [...c].reverse() : c, te = [];
4825
4826
  n.forEach((M) => {
4826
4827
  const J = M.any || M.year || M.x, Z = Qe.map((G) => ({
@@ -4860,10 +4861,10 @@ const P1 = "_svgContainer_7fkic_2", z1 = "_svg_7fkic_2", jt = {
4860
4861
  const Je = [
4861
4862
  ut(te, (M) => Math.min(M.y0, M.y1)) || 0,
4862
4863
  pt(te, (M) => Math.max(M.y0, M.y1)) || 0
4863
- ], ne = ht().domain(n.map((M) => M.any || M.year || M.x)).range([0, E]).padding(y), B = Kt().domain([Je[0], Je[1]]).nice(6).range([U, 0]), re = Wt().domain(c).range(Array.isArray(s) ? s : Object.values(s || {}));
4864
- T.selectAll("*").remove();
4865
- const pe = T.append("g").attr("transform", `translate(${o.left},${o.top})`);
4866
- v && T.append("text").attr("x", svgWidth / 2).attr("y", o.top / 2).attr("text-anchor", "middle").style("font-size", "16px").style("font-weight", "bold").style("fill", "#333").text(v), u && pe.append("g").attr("class", "grid").selectAll("line").data(B.ticks(6)).enter().append("line").attr("x1", 0).attr("x2", E).attr("y1", (M) => B(M)).attr("y2", (M) => B(M)).style("stroke", "#e0e0e0").style("stroke-width", 0.5), l && (pe.append("g").attr("class", "x-axis").attr("transform", `translate(0, ${U})`).call(Ut(ne).tickSizeOuter(0)).selectAll("text").remove(), pe.append("g").attr("class", "x-axis-labels").attr("transform", `translate(0, ${U})`).selectAll("text").data(n).enter().append("text").attr(
4864
+ ], ne = ht().domain(n.map((M) => M.any || M.year || M.x)).range([0, E]).padding(y), T = Kt().domain([Je[0], Je[1]]).nice(6).range([U, 0]), re = Wt().domain(c).range(Array.isArray(s) ? s : Object.values(s || {}));
4865
+ B.selectAll("*").remove();
4866
+ const pe = B.append("g").attr("transform", `translate(${o.left},${o.top})`);
4867
+ v && B.append("text").attr("x", svgWidth / 2).attr("y", o.top / 2).attr("text-anchor", "middle").style("font-size", "16px").style("font-weight", "bold").style("fill", "#333").text(v), u && pe.append("g").attr("class", "grid").selectAll("line").data(T.ticks(6)).enter().append("line").attr("x1", 0).attr("x2", E).attr("y1", (M) => T(M)).attr("y2", (M) => T(M)).style("stroke", "#e0e0e0").style("stroke-width", 0.5), a && (pe.append("g").attr("class", "x-axis").attr("transform", `translate(0, ${U})`).call(Ut(ne).tickSizeOuter(0)).selectAll("text").remove(), pe.append("g").attr("class", "x-axis-labels").attr("transform", `translate(0, ${U})`).selectAll("text").data(n).enter().append("text").attr(
4867
4868
  "x",
4868
4869
  (Z) => ne(Z.any || Z.year || Z.x) + ne.bandwidth() / 2
4869
4870
  ).attr("y", 19).style(
@@ -4875,16 +4876,16 @@ const P1 = "_svgContainer_7fkic_2", z1 = "_svg_7fkic_2", jt = {
4875
4876
  ).text((Z) => Z.any || Z.year || Z.x), _ && pe.append("text").attr(
4876
4877
  "transform",
4877
4878
  `translate(${E / 2}, ${U + o.bottom - 5})`
4878
- ).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(_)), a && (pe.append("g").attr("class", "y-axis").call(mt(B).ticks(6).tickFormat(h)).call((M) => M.select(".domain").remove()), pe.append("g").attr("class", "y-ticks").attr("transform", `translate(${E}, 0)`).call(mt(B).ticks(6).tickSizeInner(E)).call((M) => M.select(".domain").remove()).call((M) => M.selectAll(".tick text").remove()), x && pe.append("text").attr("transform", "rotate(-90)").attr("y", 0 - o.left).attr("x", 0 - U / 2).attr("dy", "1em").style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(x));
4879
+ ).style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(_)), l && (pe.append("g").attr("class", "y-axis").call(mt(T).ticks(6).tickFormat(h)).call((M) => M.select(".domain").remove()), pe.append("g").attr("class", "y-ticks").attr("transform", `translate(${E}, 0)`).call(mt(T).ticks(6).tickSizeInner(E)).call((M) => M.select(".domain").remove()).call((M) => M.selectAll(".tick text").remove()), x && pe.append("text").attr("transform", "rotate(-90)").attr("y", 0 - o.left).attr("x", 0 - U / 2).attr("dy", "1em").style("text-anchor", "middle").style("font-size", "14px").style("fill", "#333").text(x));
4879
4880
  let ae;
4880
4881
  C && (ae = xe("body").append("div").attr("class", "chart-tooltip").style("position", "absolute").style("visibility", "hidden").style("background", "rgba(0, 0, 0, 0.8)").style("color", "white").style("padding", "8px").style("border-radius", "4px").style("font-size", "12px").style("pointer-events", "none").style("z-index", "1000"));
4881
4882
  const Ye = pe.selectAll(".segment").data(te, (M) => `${M.xKey}-${M.key}`);
4882
4883
  Ye.exit().remove();
4883
- const et = Ye.enter().append("rect").attr("class", "segment").attr("x", (M) => ne(M.xKey)).attr("width", ne.bandwidth()).attr("y", (M) => B(0)).attr("height", 0).attr("fill", (M) => re(M.key)).style(
4884
+ const et = Ye.enter().append("rect").attr("class", "segment").attr("x", (M) => ne(M.xKey)).attr("width", ne.bandwidth()).attr("y", (M) => T(0)).attr("height", 0).attr("fill", (M) => re(M.key)).style(
4884
4885
  "cursor",
4885
4886
  f || b || C ? "pointer" : "default"
4886
4887
  ).merge(Ye);
4887
- return et.transition().duration(p).attr("x", (M) => ne(M.xKey)).attr("y", (M) => Math.min(B(M.y0), B(M.y1))).attr("height", (M) => Math.abs(B(M.y1) - B(M.y0))), (C || f) && et.on("mouseover", function(M, J) {
4888
+ return et.transition().duration(p).attr("x", (M) => ne(M.xKey)).attr("y", (M) => Math.min(T(M.y0), T(M.y1))).attr("height", (M) => Math.abs(T(M.y1) - T(M.y0))), (C || f) && et.on("mouseover", function(M, J) {
4888
4889
  const Z = J.value;
4889
4890
  C && ae && ae.style("visibility", "visible").html(`
4890
4891
  <strong>${D(J.key)}</strong><br/>
@@ -4916,8 +4917,8 @@ const P1 = "_svgContainer_7fkic_2", z1 = "_svg_7fkic_2", jt = {
4916
4917
  k,
4917
4918
  o,
4918
4919
  y,
4919
- l,
4920
4920
  a,
4921
+ l,
4921
4922
  u,
4922
4923
  g,
4923
4924
  h,
@@ -5027,12 +5028,12 @@ const j1 = "_externalContainer_1er0i_2", H1 = "_externalSintetic_1er0i_9", K1 =
5027
5028
  total: t = !1,
5028
5029
  years: o = !1,
5029
5030
  activeGraphics: d = "ind",
5030
- units: l = {},
5031
- translate: a,
5031
+ units: a = {},
5032
+ translate: l,
5032
5033
  getTotal: u = sr,
5033
5034
  columnWidth: g = 50
5034
5035
  }) => {
5035
- const h = a || ((p) => p), y = (p) => p === "demanda_red" || p === "reduccio_demanda_red" ? (l.demanda || "").replace("(", "").replace(")", "") : l[p] || "";
5036
+ const h = l || ((p) => p), y = (p) => p === "demanda_red" || p === "reduccio_demanda_red" ? (a.demanda || "").replace("(", "").replace(")", "") : a[p] || "";
5036
5037
  return /* @__PURE__ */ m(
5037
5038
  "div",
5038
5039
  {
@@ -5122,8 +5123,8 @@ const or = "_speedGraphic_d1k72_2", dt = {
5122
5123
  percent: t = !1,
5123
5124
  unit: o = !1,
5124
5125
  greenColor: d = "#00CF1E",
5125
- orangeColor: l = "#FFAC00",
5126
- redColor: a = "#FF1E37"
5126
+ orangeColor: a = "#FFAC00",
5127
+ redColor: l = "#FF1E37"
5127
5128
  }) => {
5128
5129
  s < n && (s = n), s > c && (s = c);
5129
5130
  const u = (s - n) / (c - n), g = 270 + u * 180, h = t ? Math.round(u * 100) : s;
@@ -5155,28 +5156,28 @@ const or = "_speedGraphic_d1k72_2", dt = {
5155
5156
  "path",
5156
5157
  {
5157
5158
  d: "M60.9088 16.3976C69.6119 11.3628 78.9041 7.42322 88.5739 4.66843L94.9485 27.0443C87.1228 29.2737 79.6027 32.462 72.5592 36.5367L60.9088 16.3976Z",
5158
- fill: l
5159
+ fill: a
5159
5160
  }
5160
5161
  ),
5161
5162
  /* @__PURE__ */ i(
5162
5163
  "path",
5163
5164
  {
5164
5165
  d: "M121.797 0.000169508C131.851 -0.0165912 141.869 1.20965 151.623 3.65101L145.974 26.2209C138.08 24.2451 129.972 23.2527 121.835 23.2663L121.797 0.000169508Z",
5165
- fill: l
5166
+ fill: a
5166
5167
  }
5167
5168
  ),
5168
5169
  /* @__PURE__ */ i(
5169
5170
  "path",
5170
5171
  {
5171
5172
  d: "M182.623 16.1279C191.348 21.124 199.422 27.1797 206.662 34.157L190.516 50.9092C184.657 45.2625 178.123 40.3617 171.061 36.3183L182.623 16.1279Z",
5172
- fill: a
5173
+ fill: l
5173
5174
  }
5174
5175
  ),
5175
5176
  /* @__PURE__ */ i(
5176
5177
  "path",
5177
5178
  {
5178
5179
  d: "M227.238 60.2836C232.325 68.9568 236.319 78.2255 239.131 87.8788L216.794 94.3859C214.518 86.5735 211.285 79.0725 207.169 72.0533L227.238 60.2836Z",
5179
- fill: a
5180
+ fill: l
5180
5181
  }
5181
5182
  ),
5182
5183
  /* @__PURE__ */ i(
@@ -5197,28 +5198,28 @@ const or = "_speedGraphic_d1k72_2", dt = {
5197
5198
  "path",
5198
5199
  {
5199
5200
  d: "M90.3004 4.19027C100.01 1.57776 110.005 0.175523 120.058 0.0154601L120.428 23.2787C112.292 23.4082 104.203 24.543 96.3457 26.6573L90.3004 4.19027Z",
5200
- fill: l
5201
+ fill: a
5201
5202
  }
5202
5203
  ),
5203
5204
  /* @__PURE__ */ i(
5204
5205
  "path",
5205
5206
  {
5206
5207
  d: "M153.423 4.11614C163.138 6.70584 172.496 10.4866 181.284 15.3725L169.978 35.707C162.866 31.7529 155.293 28.6932 147.43 26.5973L153.423 4.11614Z",
5207
- fill: l
5208
+ fill: a
5208
5209
  }
5209
5210
  ),
5210
5211
  /* @__PURE__ */ i(
5211
5212
  "path",
5212
5213
  {
5213
5214
  d: "M239.602 89.538C242.532 100.152 244.011 111.114 244 122.125L220.734 122.101C220.743 113.19 219.546 104.319 217.175 95.7287L239.602 89.538Z",
5214
- fill: a
5215
+ fill: l
5215
5216
  }
5216
5217
  ),
5217
5218
  /* @__PURE__ */ i(
5218
5219
  "path",
5219
5220
  {
5220
5221
  d: "M207.769 35.2376C214.919 42.3062 221.168 50.2316 226.374 58.8336L206.469 70.8798C202.256 63.9183 197.199 57.5043 191.412 51.7837L207.769 35.2376Z",
5221
- fill: a
5222
+ fill: l
5222
5223
  }
5223
5224
  ),
5224
5225
  /* @__PURE__ */ i("g", { transform: `rotate(${g} 122 122)`, children: /* @__PURE__ */ i(
@@ -5266,7 +5267,7 @@ const lr = "_header_13kbt_2", cr = "_leftComponents_13kbt_13", dr = "_centerComp
5266
5267
  zIndex: t = 10,
5267
5268
  height: o = 60,
5268
5269
  backgroundColor: d = "#605B56",
5269
- isFooter: l = !1
5270
+ isFooter: a = !1
5270
5271
  // If true, it will apply footer styles
5271
5272
  }) => /* @__PURE__ */ m(
5272
5273
  "div",
@@ -5277,13 +5278,13 @@ const lr = "_header_13kbt_2", cr = "_leftComponents_13kbt_13", dr = "_centerComp
5277
5278
  zIndex: t,
5278
5279
  height: o,
5279
5280
  backgroundColor: d,
5280
- top: l ? "auto" : 0,
5281
- bottom: l ? 0 : "auto"
5281
+ top: a ? "auto" : 0,
5282
+ bottom: a ? 0 : "auto"
5282
5283
  },
5283
5284
  children: [
5284
- /* @__PURE__ */ i("div", { className: ve.leftComponents, children: c.map((a, u) => /* @__PURE__ */ i("div", { className: ve.componentsContainer, children: a }, u)) }),
5285
- /* @__PURE__ */ i("div", { className: ve.centerComponents, children: s.map((a, u) => /* @__PURE__ */ i("div", { className: ve.componentsContainer, children: a }, u)) }),
5286
- /* @__PURE__ */ i("div", { className: ve.rightComponents, children: r.map((a, u) => /* @__PURE__ */ i("div", { className: ve.componentsContainer, children: a }, u)) })
5285
+ /* @__PURE__ */ i("div", { className: ve.leftComponents, children: c.map((l, u) => /* @__PURE__ */ i("div", { className: ve.componentsContainer, children: l }, u)) }),
5286
+ /* @__PURE__ */ i("div", { className: ve.centerComponents, children: s.map((l, u) => /* @__PURE__ */ i("div", { className: ve.componentsContainer, children: l }, u)) }),
5287
+ /* @__PURE__ */ i("div", { className: ve.rightComponents, children: r.map((l, u) => /* @__PURE__ */ i("div", { className: ve.componentsContainer, children: l }, u)) })
5287
5288
  ]
5288
5289
  }
5289
5290
  );