@tmf_ciclica/ciclicastorybook 1.1.147 → 1.1.149

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
@@ -41,15 +41,15 @@ const Qt = "_ambitSelector_mcunf_2", Xt = "_header_mcunf_13", Jt = "_nameDateCon
41
41
  onClickAmbit: t,
42
42
  isActive: r,
43
43
  activeColor: a,
44
- fontColor: c,
45
- moreInfo: l
44
+ fontColor: l,
45
+ moreInfo: c
46
46
  }) => {
47
47
  const { name: u, created_at: g, id: C, isBeingProcessed: b } = n;
48
48
  return /* @__PURE__ */ p(
49
49
  "div",
50
50
  {
51
51
  className: pe.ambitItem,
52
- style: { borderBottom: `1px solid ${c}` },
52
+ style: { borderBottom: `1px solid ${l}` },
53
53
  children: [
54
54
  /* @__PURE__ */ p("div", { className: pe.ambitNameDate, onClick: () => t(C), children: [
55
55
  /* @__PURE__ */ p("div", { className: pe.ambitName, children: [
@@ -60,7 +60,7 @@ const Qt = "_ambitSelector_mcunf_2", Xt = "_header_mcunf_13", Jt = "_nameDateCon
60
60
  src: r ? h2 : g2
61
61
  }
62
62
  ),
63
- /* @__PURE__ */ i("span", { style: { color: r ? a : c }, children: u })
63
+ /* @__PURE__ */ i("span", { style: { color: r ? a : l }, children: u })
64
64
  ] }),
65
65
  /* @__PURE__ */ i("div", { className: pe.ambitDate, children: g ? new Date(g).toLocaleDateString() : "" })
66
66
  ] }),
@@ -124,8 +124,8 @@ const We = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
124
124
  nameLabel: t,
125
125
  dateLabel: r,
126
126
  newAmbitLabel: a = "New field",
127
- buttonContainerStyles: c = {},
128
- containerStyles: l = {},
127
+ buttonContainerStyles: l = {},
128
+ containerStyles: c = {},
129
129
  onCLickNewAmbit: u = () => console.log("New ambit clicked"),
130
130
  onClickCopy: g = (m) => console.log(`Copy ambit: ${m}`),
131
131
  onCLickDelete: C = (m) => console.log(`Delete ambit: ${m}`),
@@ -146,7 +146,7 @@ const We = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
146
146
  "div",
147
147
  {
148
148
  className: U.ambitSelector,
149
- style: { color: s, ...l },
149
+ style: { color: s, ...c },
150
150
  children: [
151
151
  /* @__PURE__ */ p(
152
152
  "div",
@@ -185,7 +185,7 @@ const We = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
185
185
  /* @__PURE__ */ i("div", { className: U.newAmbitButtonContainer, children: /* @__PURE__ */ i(
186
186
  $e,
187
187
  {
188
- style: { ...c },
188
+ style: { ...l },
189
189
  onClick: u,
190
190
  borderColor: "grey",
191
191
  children: m(a)
@@ -252,7 +252,7 @@ const T2 = ({
252
252
  {
253
253
  className: `${Q.buttonsContainer} ${d === "vertical" && Q.vertical}
254
254
  ${d === "horizontal" && Q.horizontal}`,
255
- children: n.map((c, l) => {
255
+ children: n.map((l, c) => {
256
256
  const {
257
257
  icon: u,
258
258
  activeIcon: g,
@@ -260,7 +260,7 @@ const T2 = ({
260
260
  name: b,
261
261
  onClick: y,
262
262
  disabled: m
263
- } = c, h = /* @__PURE__ */ p(Oe, { children: [
263
+ } = l, h = /* @__PURE__ */ p(Oe, { children: [
264
264
  s && o === "left" && /* @__PURE__ */ i("span", { className: Q.buttonName, children: a(b) }),
265
265
  /* @__PURE__ */ i("img", { src: C ? g : u, alt: a(b) }),
266
266
  s && o === "right" && /* @__PURE__ */ i("span", { className: Q.buttonName, children: a(b) })
@@ -277,7 +277,7 @@ const T2 = ({
277
277
  }
278
278
  ),
279
279
  t && /* @__PURE__ */ i(ne, { text: b, position: r })
280
- ] }, l);
280
+ ] }, c);
281
281
  })
282
282
  }
283
283
  );
@@ -313,8 +313,8 @@ const M2 = "_indicatorsCategory_1cu33_2", D2 = "_title_1cu33_5", Be = {
313
313
  //Change the height only if the title is more than one line or you change title fontSize, otherwise should be 53px
314
314
  height: a = 53,
315
315
  //Adjust height if you change fontSize
316
- titleFontStyles: c,
317
- showBottomBar: l = !0,
316
+ titleFontStyles: l,
317
+ showBottomBar: c = !0,
318
318
  titleMarginChildren: u = 25
319
319
  }) => {
320
320
  const { t: g } = $();
@@ -327,7 +327,7 @@ const M2 = "_indicatorsCategory_1cu33_2", D2 = "_title_1cu33_5", Be = {
327
327
  transition: { duration: 0.4 },
328
328
  style: {
329
329
  backgroundColor: "white",
330
- borderBottom: n && l ? `1px solid ${t}` : "0px",
330
+ borderBottom: n && c ? `1px solid ${t}` : "0px",
331
331
  marginBottom: n ? "20px" : "0px"
332
332
  },
333
333
  children: [
@@ -335,7 +335,7 @@ const M2 = "_indicatorsCategory_1cu33_2", D2 = "_title_1cu33_5", Be = {
335
335
  "h2",
336
336
  {
337
337
  style: {
338
- ...c,
338
+ ...l,
339
339
  marginBottom: u || "auto"
340
340
  },
341
341
  className: `${Be.title}`,
@@ -373,7 +373,7 @@ const Qs = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), F2 = "data
373
373
  fontColor: "#605B56",
374
374
  inputsColor: "#605B56"
375
375
  })), ct = ({ title: n, onClick: d, isOpen: s = !0, textColor: o = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
376
- const { t: a } = $(), { tematicalFiltersSelected: c } = A((u) => u), l = (u) => {
376
+ const { t: a } = $(), { tematicalFiltersSelected: l } = A((u) => u), c = (u) => {
377
377
  A.setState((g) => ({
378
378
  tematicalFiltersSelected: g.tematicalFiltersSelected.filter(
379
379
  (C) => C.code !== u
@@ -387,9 +387,9 @@ const Qs = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), F2 = "data
387
387
  onClick: d,
388
388
  title: n ? a(n) : "Applied Filters",
389
389
  activeColor: r,
390
- children: /* @__PURE__ */ i("div", { className: Ye.AppliedFiltersContainer, children: c == null ? void 0 : c.map((u, g) => /* @__PURE__ */ p("div", { className: Ye.AppliedFilterContent, style: { color: o, background: t }, children: [
390
+ children: /* @__PURE__ */ i("div", { className: Ye.AppliedFiltersContainer, children: l == null ? void 0 : l.map((u, g) => /* @__PURE__ */ p("div", { className: Ye.AppliedFilterContent, style: { color: o, background: t }, children: [
391
391
  a(u.name),
392
- /* @__PURE__ */ i("img", { src: F2, alt: "CloseIcon", onClick: () => l(u.code), style: { cursor: "pointer" } })
392
+ /* @__PURE__ */ i("img", { src: F2, alt: "CloseIcon", onClick: () => c(u.code), style: { cursor: "pointer" } })
393
393
  ] }, g)) })
394
394
  }
395
395
  );
@@ -409,7 +409,7 @@ ct.propTypes = {
409
409
  activeColor: e.string
410
410
  };
411
411
  const dt = ({ title: n, onClick: d, isOpen: s = !0, textColor: o = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r }) => {
412
- const { t: a } = $(), { tematicalFiltersSelected: c } = A((l) => l);
412
+ const { t: a } = $(), { tematicalFiltersSelected: l } = A((c) => c);
413
413
  return /* @__PURE__ */ i(
414
414
  se,
415
415
  {
@@ -438,7 +438,7 @@ const O2 = "_checkboxContainer_zld97_2", I2 = {
438
438
  indicator: o,
439
439
  value: t
440
440
  }) => {
441
- const { t: r } = $(), { title: a } = o || {}, { fontColor: c, inputsColor: l } = A((u) => u);
441
+ const { t: r } = $(), { title: a } = o || {}, { fontColor: l, inputsColor: c } = A((u) => u);
442
442
  return /* @__PURE__ */ p(
443
443
  "div",
444
444
  {
@@ -455,8 +455,8 @@ const O2 = "_checkboxContainer_zld97_2", I2 = {
455
455
  value: t,
456
456
  readOnly: !0,
457
457
  style: {
458
- border: `1.5px solid ${t ? l : c}`,
459
- backgroundColor: t ? l : "white"
458
+ border: `1.5px solid ${t ? c : l}`,
459
+ backgroundColor: t ? c : "white"
460
460
  }
461
461
  }
462
462
  ),
@@ -516,98 +516,98 @@ let qe = function(n) {
516
516
  t.onEnd();
517
517
  }, t.onMouseUp = () => {
518
518
  t.onEnd(t.getMouseEventMap());
519
- }, t.onTouchEnd = (c) => {
520
- c.preventDefault(), t.onEnd(t.getTouchEventMap());
519
+ }, t.onTouchEnd = (l) => {
520
+ l.preventDefault(), t.onEnd(t.getTouchEventMap());
521
521
  }, t.onBlur = () => {
522
522
  t.setState({ index: -1 }, t.onEnd(t.getKeyDownEventMap()));
523
- }, t.onMouseMove = (c) => {
523
+ }, t.onMouseMove = (l) => {
524
524
  t.setState({ pending: !0 });
525
- const l = t.getMousePosition(c), u = t.getDiffPosition(l[0]), g = t.getValueFromPosition(u);
525
+ const c = t.getMousePosition(l), u = t.getDiffPosition(c[0]), g = t.getValueFromPosition(u);
526
526
  t.move(g);
527
- }, t.onTouchMove = (c) => {
528
- if (c.touches.length > 1) return;
527
+ }, t.onTouchMove = (l) => {
528
+ if (l.touches.length > 1) return;
529
529
  t.setState({ pending: !0 });
530
- const l = t.getTouchPosition(c);
530
+ const c = t.getTouchPosition(l);
531
531
  if (t.isScrolling === void 0) {
532
- const C = l[0] - t.startPosition[0], b = l[1] - t.startPosition[1];
532
+ const C = c[0] - t.startPosition[0], b = c[1] - t.startPosition[1];
533
533
  t.isScrolling = Math.abs(b) > Math.abs(C);
534
534
  }
535
535
  if (t.isScrolling) return void t.setState({ index: -1 });
536
- const u = t.getDiffPosition(l[0]), g = t.getValueFromPosition(u);
536
+ const u = t.getDiffPosition(c[0]), g = t.getValueFromPosition(u);
537
537
  t.move(g);
538
- }, t.onKeyDown = (c) => {
539
- if (!(c.ctrlKey || c.shiftKey || c.altKey || c.metaKey)) switch (t.setState({ pending: !0 }), c.key) {
538
+ }, t.onKeyDown = (l) => {
539
+ if (!(l.ctrlKey || l.shiftKey || l.altKey || l.metaKey)) switch (t.setState({ pending: !0 }), l.key) {
540
540
  case "ArrowLeft":
541
541
  case "ArrowDown":
542
542
  case "Left":
543
543
  case "Down":
544
- c.preventDefault(), t.moveDownByStep();
544
+ l.preventDefault(), t.moveDownByStep();
545
545
  break;
546
546
  case "ArrowRight":
547
547
  case "ArrowUp":
548
548
  case "Right":
549
549
  case "Up":
550
- c.preventDefault(), t.moveUpByStep();
550
+ l.preventDefault(), t.moveUpByStep();
551
551
  break;
552
552
  case "Home":
553
- c.preventDefault(), t.move(t.props.min);
553
+ l.preventDefault(), t.move(t.props.min);
554
554
  break;
555
555
  case "End":
556
- c.preventDefault(), t.move(t.props.max);
556
+ l.preventDefault(), t.move(t.props.max);
557
557
  break;
558
558
  case "PageDown":
559
- c.preventDefault(), t.moveDownByStep(t.props.pageFn(t.props.step));
559
+ l.preventDefault(), t.moveDownByStep(t.props.pageFn(t.props.step));
560
560
  break;
561
561
  case "PageUp":
562
- c.preventDefault(), t.moveUpByStep(t.props.pageFn(t.props.step));
562
+ l.preventDefault(), t.moveUpByStep(t.props.pageFn(t.props.step));
563
563
  }
564
- }, t.onSliderMouseDown = (c) => {
565
- if (!t.props.disabled && c.button !== 2) {
564
+ }, t.onSliderMouseDown = (l) => {
565
+ if (!t.props.disabled && l.button !== 2) {
566
566
  if (t.setState({ pending: !0 }), !t.props.snapDragDisabled) {
567
- const l = t.getMousePosition(c);
568
- t.forceValueFromPosition(l[0], (u) => {
569
- t.start(u, l[0]), we(t.getMouseEventMap());
567
+ const c = t.getMousePosition(l);
568
+ t.forceValueFromPosition(c[0], (u) => {
569
+ t.start(u, c[0]), we(t.getMouseEventMap());
570
570
  });
571
571
  }
572
- Le(c);
572
+ Le(l);
573
573
  }
574
- }, t.onSliderClick = (c) => {
574
+ }, t.onSliderClick = (l) => {
575
575
  if (!t.props.disabled && t.props.onSliderClick && !t.hasMoved) {
576
- const l = t.getMousePosition(c), u = X(t.calcValue(t.calcOffsetFromPosition(l[0])), t.props);
576
+ const c = t.getMousePosition(l), u = X(t.calcValue(t.calcOffsetFromPosition(c[0])), t.props);
577
577
  t.props.onSliderClick(u);
578
578
  }
579
- }, t.createOnKeyDown = (c) => (l) => {
580
- t.props.disabled || (t.start(c), we(t.getKeyDownEventMap()), Le(l));
581
- }, t.createOnMouseDown = (c) => (l) => {
582
- if (t.props.disabled || l.button === 2) return;
579
+ }, t.createOnKeyDown = (l) => (c) => {
580
+ t.props.disabled || (t.start(l), we(t.getKeyDownEventMap()), Le(c));
581
+ }, t.createOnMouseDown = (l) => (c) => {
582
+ if (t.props.disabled || c.button === 2) return;
583
583
  t.setState({ pending: !0 });
584
- const u = t.getMousePosition(l);
585
- t.start(c, u[0]), we(t.getMouseEventMap()), Le(l);
586
- }, t.createOnTouchStart = (c) => (l) => {
587
- if (t.props.disabled || l.touches.length > 1) return;
584
+ const u = t.getMousePosition(c);
585
+ t.start(l, u[0]), we(t.getMouseEventMap()), Le(c);
586
+ }, t.createOnTouchStart = (l) => (c) => {
587
+ if (t.props.disabled || c.touches.length > 1) return;
588
588
  t.setState({ pending: !0 });
589
- const u = t.getTouchPosition(l);
590
- t.startPosition = u, t.isScrolling = void 0, t.start(c, u[0]), we(t.getTouchEventMap()), function(g) {
589
+ const u = t.getTouchPosition(c);
590
+ t.startPosition = u, t.isScrolling = void 0, t.start(l, u[0]), we(t.getTouchEventMap()), function(g) {
591
591
  g.stopPropagation && g.stopPropagation();
592
- }(l);
592
+ }(c);
593
593
  }, t.handleResize = () => {
594
- const c = window.setTimeout(() => {
594
+ const l = window.setTimeout(() => {
595
595
  t.pendingResizeTimeouts.shift(), t.resize();
596
596
  }, 0);
597
- t.pendingResizeTimeouts.push(c);
598
- }, t.renderThumb = (c, l) => {
599
- const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + l + " " + (t.state.index === l ? t.props.thumbActiveClassName : ""), g = { ref: (b) => {
600
- t["thumb" + l] = b;
601
- }, key: t.props.thumbClassName + "-" + l, className: u, style: c, 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 }, C = { index: l, value: ve(t.state.value), valueNow: t.state.value[l] };
597
+ t.pendingResizeTimeouts.push(l);
598
+ }, t.renderThumb = (l, c) => {
599
+ const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), g = { ref: (b) => {
600
+ t["thumb" + c] = b;
601
+ }, key: t.props.thumbClassName + "-" + c, className: u, style: l, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, C = { index: c, value: ve(t.state.value), valueNow: t.state.value[c] };
602
602
  return t.props.ariaValuetext && (g["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(C)), t.props.renderThumb(g, C);
603
- }, t.renderTrack = (c, l, u) => {
604
- const g = { key: t.props.trackClassName + "-" + c, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + c, style: t.buildTrackStyle(l, t.state.upperBound - u) }, C = { index: c, value: ve(t.state.value) };
603
+ }, t.renderTrack = (l, c, u) => {
604
+ const g = { key: t.props.trackClassName + "-" + l, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + l, style: t.buildTrackStyle(c, t.state.upperBound - u) }, C = { index: l, value: ve(t.state.value) };
605
605
  return t.props.renderTrack(g, C);
606
606
  };
607
607
  let r = Te(o.value);
608
608
  r.length || (r = Te(o.defaultValue)), t.pendingResizeTimeouts = [];
609
609
  const a = [];
610
- for (let c = 0; c < r.length; c += 1) r[c] = X(r[c], o), a.push(c);
610
+ for (let l = 0; l < r.length; l += 1) r[l] = X(r[l], o), a.push(l);
611
611
  return t.resizeObserver = null, t.resizeElementRef = B.createRef(), t.state = { index: -1, upperBound: 0, sliderLength: 0, value: r, zIndices: a }, t;
612
612
  }
613
613
  R2(d, n);
@@ -631,10 +631,10 @@ let qe = function(n) {
631
631
  return ve(this.state.value);
632
632
  }, s.getClosestIndex = function(o) {
633
633
  let t = Number.MAX_VALUE, r = -1;
634
- const { value: a } = this.state, c = a.length;
635
- for (let l = 0; l < c; l += 1) {
636
- const u = this.calcOffset(a[l]), g = Math.abs(o - u);
637
- g < t && (t = g, r = l);
634
+ const { value: a } = this.state, l = a.length;
635
+ for (let c = 0; c < l; c += 1) {
636
+ const u = this.calcOffset(a[c]), g = Math.abs(o - u);
637
+ g < t && (t = g, r = c);
638
638
  }
639
639
  return r;
640
640
  }, s.getMousePosition = function(o) {
@@ -657,7 +657,7 @@ let qe = function(n) {
657
657
  }, s.resize = function() {
658
658
  const { slider: o, thumb0: t } = this;
659
659
  if (!o || !t) return;
660
- const r = this.sizeKey(), a = o.getBoundingClientRect(), c = o[r], l = a[this.posMaxKey()], u = a[this.posMinKey()], g = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], C = c - g, b = Math.abs(l - u);
660
+ const r = this.sizeKey(), a = o.getBoundingClientRect(), l = o[r], c = a[this.posMaxKey()], u = a[this.posMinKey()], g = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], C = l - g, b = Math.abs(c - u);
661
661
  this.state.upperBound === C && this.state.sliderLength === b && this.state.thumbSize === g || this.setState({ upperBound: C, sliderLength: b, thumbSize: g });
662
662
  }, s.calcOffset = function(o) {
663
663
  const t = this.props.max - this.props.min;
@@ -665,14 +665,14 @@ let qe = function(n) {
665
665
  }, s.calcValue = function(o) {
666
666
  return o / this.state.upperBound * (this.props.max - this.props.min) + this.props.min;
667
667
  }, s.calcOffsetFromPosition = function(o) {
668
- const { slider: t } = this, r = t.getBoundingClientRect(), a = r[this.posMaxKey()], c = r[this.posMinKey()];
669
- let l = o - (window["page" + this.axisKey() + "Offset"] + (this.props.invert ? a : c));
670
- return this.props.invert && (l = this.state.sliderLength - l), l -= this.state.thumbSize / 2, l;
668
+ const { slider: t } = this, r = t.getBoundingClientRect(), a = r[this.posMaxKey()], l = r[this.posMinKey()];
669
+ let c = o - (window["page" + this.axisKey() + "Offset"] + (this.props.invert ? a : l));
670
+ return this.props.invert && (c = this.state.sliderLength - c), c -= this.state.thumbSize / 2, c;
671
671
  }, s.forceValueFromPosition = function(o, t) {
672
- const r = this.calcOffsetFromPosition(o), a = this.getClosestIndex(r), c = X(this.calcValue(r), this.props), l = this.state.value.slice();
673
- l[a] = c;
674
- for (let u = 0; u < l.length - 1; u += 1) if (l[u + 1] - l[u] < this.props.minDistance) return;
675
- this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value: l }, () => {
672
+ const r = this.calcOffsetFromPosition(o), a = this.getClosestIndex(r), l = X(this.calcValue(r), this.props), c = this.state.value.slice();
673
+ c[a] = l;
674
+ for (let u = 0; u < c.length - 1; u += 1) if (c[u + 1] - c[u] < this.props.minDistance) return;
675
+ this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0, this.setState({ value: c }, () => {
676
676
  t(a), this.fireChangeEvent("onChange");
677
677
  });
678
678
  }, s.clearPendingResizeTimeouts = function() {
@@ -684,7 +684,7 @@ let qe = function(n) {
684
684
  const r = this["thumb" + o];
685
685
  r && r.focus();
686
686
  const { zIndices: a } = this.state;
687
- a.splice(a.indexOf(o), 1), a.push(o), this.setState((c) => ({ startValue: c.value[o], startPosition: t !== void 0 ? t : c.startPosition, index: o, zIndices: a }));
687
+ a.splice(a.indexOf(o), 1), a.push(o), this.setState((l) => ({ startValue: l.value[o], startPosition: t !== void 0 ? t : l.startPosition, index: o, zIndices: a }));
688
688
  }, s.moveUpByStep = function(o) {
689
689
  o === void 0 && (o = this.props.step);
690
690
  const t = this.state.value[this.state.index], r = X(this.props.invert && this.props.orientation === "horizontal" ? t - o : t + o, this.props);
@@ -694,11 +694,11 @@ let qe = function(n) {
694
694
  const t = this.state.value[this.state.index], r = X(this.props.invert && this.props.orientation === "horizontal" ? t + o : t - o, this.props);
695
695
  this.move(Math.max(r, this.props.min));
696
696
  }, s.move = function(o) {
697
- const t = this.state.value.slice(), { index: r } = this.state, { length: a } = t, c = t[r];
698
- if (o === c) return;
697
+ const t = this.state.value.slice(), { index: r } = this.state, { length: a } = t, l = t[r];
698
+ if (o === l) return;
699
699
  this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
700
- const { pearling: l, max: u, min: g, minDistance: C } = this.props;
701
- if (!l) {
700
+ const { pearling: c, max: u, min: g, minDistance: C } = this.props;
701
+ if (!c) {
702
702
  if (r > 0) {
703
703
  const b = t[r - 1];
704
704
  o < b + C && (o = b + C);
@@ -708,22 +708,22 @@ let qe = function(n) {
708
708
  o > b - C && (o = b - C);
709
709
  }
710
710
  }
711
- t[r] = o, l && a > 1 && (o > c ? (this.pushSucceeding(t, C, r), function(b, y, m, h) {
711
+ t[r] = o, c && a > 1 && (o > l ? (this.pushSucceeding(t, C, r), function(b, y, m, h) {
712
712
  for (let _ = 0; _ < b; _ += 1) {
713
713
  const f = h - _ * m;
714
714
  y[b - 1 - _] > f && (y[b - 1 - _] = f);
715
715
  }
716
- }(a, t, C, u)) : o < c && (this.pushPreceding(t, C, r), function(b, y, m, h) {
716
+ }(a, t, C, u)) : o < l && (this.pushPreceding(t, C, r), function(b, y, m, h) {
717
717
  for (let _ = 0; _ < b; _ += 1) {
718
718
  const f = h + _ * m;
719
719
  y[_] < f && (y[_] = f);
720
720
  }
721
721
  }(a, t, C, g))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
722
722
  }, s.pushSucceeding = function(o, t, r) {
723
- let a, c;
724
- for (a = r, c = o[a] + t; o[a + 1] !== null && c > o[a + 1]; a += 1, c = o[a] + t) o[a + 1] = Re(c, this.props);
723
+ let a, l;
724
+ for (a = r, l = o[a] + t; o[a + 1] !== null && l > o[a + 1]; a += 1, l = o[a] + t) o[a + 1] = Re(l, this.props);
725
725
  }, s.pushPreceding = function(o, t, r) {
726
- for (let a = r, c = o[a] - t; o[a - 1] !== null && c < o[a - 1]; a -= 1, c = o[a] - t) o[a - 1] = Re(c, this.props);
726
+ for (let a = r, l = o[a] - t; o[a - 1] !== null && l < o[a - 1]; a -= 1, l = o[a] - t) o[a - 1] = Re(l, this.props);
727
727
  }, s.axisKey = function() {
728
728
  return this.props.orientation === "vertical" ? "Y" : "X";
729
729
  }, s.orthogonalAxisKey = function() {
@@ -747,9 +747,9 @@ let qe = function(n) {
747
747
  return (t = { position: "absolute" })[this.posMinKey()] = o, t;
748
748
  }, s.renderThumbs = function(o) {
749
749
  const { length: t } = o, r = [];
750
- for (let c = 0; c < t; c += 1) r[c] = this.buildThumbStyle(o[c], c);
750
+ for (let l = 0; l < t; l += 1) r[l] = this.buildThumbStyle(o[l], l);
751
751
  const a = [];
752
- for (let c = 0; c < t; c += 1) a[c] = this.renderThumb(r[c], c);
752
+ for (let l = 0; l < t; l += 1) a[l] = this.renderThumb(r[l], l);
753
753
  return a;
754
754
  }, s.renderTracks = function(o) {
755
755
  const t = [], r = o.length - 1;
@@ -760,16 +760,16 @@ let qe = function(n) {
760
760
  let { marks: o } = this.props;
761
761
  const t = this.props.max - this.props.min + 1;
762
762
  return typeof o == "boolean" ? o = Array.from({ length: t }).map((r, a) => a) : typeof o == "number" && (o = Array.from({ length: t }).map((r, a) => a).filter((r) => r % o == 0)), o.map(parseFloat).sort((r, a) => r - a).map((r) => {
763
- const a = this.calcOffset(r), c = { key: r, className: this.props.markClassName, style: this.buildMarkStyle(a) };
764
- return this.props.renderMark(c);
763
+ const a = this.calcOffset(r), l = { key: r, className: this.props.markClassName, style: this.buildMarkStyle(a) };
764
+ return this.props.renderMark(l);
765
765
  });
766
766
  }, s.render = function() {
767
767
  const o = [], { value: t } = this.state, r = t.length;
768
768
  for (let u = 0; u < r; u += 1) o[u] = this.calcOffset(t[u], u);
769
- const a = this.props.withTracks ? this.renderTracks(o) : null, c = this.renderThumbs(o), l = this.props.marks ? this.renderMarks() : null;
769
+ const a = this.props.withTracks ? this.renderTracks(o) : null, l = this.renderThumbs(o), c = this.props.marks ? this.renderMarks() : null;
770
770
  return B.createElement("div", { ref: (u) => {
771
771
  this.slider = u, this.resizeElementRef.current = u;
772
- }, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, a, c, l);
772
+ }, style: { position: "relative" }, className: this.props.className + (this.props.disabled ? " disabled" : ""), onMouseDown: this.onSliderMouseDown, onClick: this.onSliderClick }, a, l, c);
773
773
  }, d;
774
774
  }(B.Component);
775
775
  qe.displayName = "ReactSlider", qe.defaultProps = { min: 0, max: 100, step: 1, pageFn: (n) => 10 * n, minDistance: 0, defaultValue: 0, orientation: "horizontal", className: "slider", thumbClassName: "thumb", thumbActiveClassName: "active", trackClassName: "track", markClassName: "mark", withTracks: !0, pearling: !1, disabled: !1, snapDragDisabled: !1, invert: !1, marks: [], renderThumb: (n) => B.createElement("div", n), renderTrack: (n) => B.createElement("div", n), renderMark: (n) => B.createElement("span", n) };
@@ -789,15 +789,15 @@ const q2 = "_container_4u41i_2", E2 = "_unitLabel_4u41i_8", P2 = "_slider_4u41i_
789
789
  width: t = 300,
790
790
  unit: r,
791
791
  fontColor: a = "#605B56",
792
- defaultValue: c,
793
- isDate: l
792
+ defaultValue: l,
793
+ isDate: c
794
794
  }) => {
795
- const { t: u } = $(), g = l ? new Date(n).getTime() : null, C = l ? new Date(d).getTime() : null, [b, y] = T(l ? [g, C] : [n, d]), m = (h) => {
795
+ const { t: u } = $(), g = c ? new Date(n).getTime() : null, C = c ? new Date(d).getTime() : null, [b, y] = T(c ? [g, C] : [n, d]), m = (h) => {
796
796
  y(h), o == null || o({ min: h[0], max: h[1] });
797
797
  };
798
798
  return M(() => {
799
- c || y(l ? [g, C] : [n, d]);
800
- }, [c, l]), /* @__PURE__ */ p(
799
+ l || y(c ? [g, C] : [n, d]);
800
+ }, [l, c]), /* @__PURE__ */ p(
801
801
  "div",
802
802
  {
803
803
  className: oe.container,
@@ -810,23 +810,23 @@ const q2 = "_container_4u41i_2", E2 = "_unitLabel_4u41i_8", P2 = "_slider_4u41i_
810
810
  className: oe.slider,
811
811
  thumbClassName: oe.thumb,
812
812
  trackClassName: oe.track,
813
- min: l ? g : n,
814
- max: l ? C : d,
815
- step: l ? (C - g) / 30 : s,
813
+ min: c ? g : n,
814
+ max: c ? C : d,
815
+ step: c ? (C - g) / 30 : s,
816
816
  value: b,
817
817
  onAfterChange: m,
818
818
  withTracks: !0,
819
- pearling: !l,
820
- minDistance: l ? 0 : 0.1
819
+ pearling: !c,
820
+ minDistance: c ? 0 : 0.1
821
821
  }
822
822
  ),
823
823
  /* @__PURE__ */ p("div", { className: oe.labels, children: [
824
- /* @__PURE__ */ i("span", { children: l ? new Date(b[0]).toLocaleDateString("en-EN", {
824
+ /* @__PURE__ */ i("span", { children: c ? new Date(b[0]).toLocaleDateString("en-EN", {
825
825
  day: "2-digit",
826
826
  month: "short",
827
827
  year: "numeric"
828
828
  }) : b[0] }),
829
- /* @__PURE__ */ i("span", { children: l ? new Date(b[1]).toLocaleDateString("en-EN", {
829
+ /* @__PURE__ */ i("span", { children: c ? new Date(b[1]).toLocaleDateString("en-EN", {
830
830
  day: "2-digit",
831
831
  month: "short",
832
832
  year: "numeric"
@@ -862,8 +862,8 @@ const K2 = "_tematicalFiltersInputContainer_1vm1r_2", H2 = "_inputTypeContainer_
862
862
  type: t,
863
863
  name: r,
864
864
  values: a,
865
- minValue: c,
866
- maxValue: l,
865
+ minValue: l,
866
+ maxValue: c,
867
867
  unit: u,
868
868
  step: g,
869
869
  disabled: C,
@@ -1042,8 +1042,8 @@ const K2 = "_tematicalFiltersInputContainer_1vm1r_2", H2 = "_inputTypeContainer_
1042
1042
  pt,
1043
1043
  {
1044
1044
  onChange: x,
1045
- min: c,
1046
- max: l,
1045
+ min: l,
1046
+ max: c,
1047
1047
  unit: u,
1048
1048
  defaultValue: w[n.code[0]] ? w[n.code[0]] : "",
1049
1049
  isDate: b,
@@ -1092,14 +1092,14 @@ const mt = ({
1092
1092
  height: 48,
1093
1093
  color: d,
1094
1094
  activeColor: s,
1095
- children: r == null ? void 0 : r.map((a, c) => /* @__PURE__ */ i(
1095
+ children: r == null ? void 0 : r.map((a, l) => /* @__PURE__ */ i(
1096
1096
  Ke,
1097
1097
  {
1098
1098
  indicator: a,
1099
1099
  fontColor: d,
1100
1100
  activeColor: s
1101
1101
  },
1102
- `indicatorSub-${c}`
1102
+ `indicatorSub-${l}`
1103
1103
  ))
1104
1104
  }
1105
1105
  );
@@ -1122,12 +1122,12 @@ const ht = ({
1122
1122
  // onChangeBothType,
1123
1123
  activeColor: d
1124
1124
  }) => {
1125
- const { name: s, subcategories: o, indicators: t } = n || {}, { activeCategory: r, fontColor: a } = A((c) => c);
1125
+ const { name: s, subcategories: o, indicators: t } = n || {}, { activeCategory: r, fontColor: a } = A((l) => l);
1126
1126
  return n && /* @__PURE__ */ i(
1127
1127
  se,
1128
1128
  {
1129
1129
  onClick: () => {
1130
- A.setState((c) => ({
1130
+ A.setState((l) => ({
1131
1131
  activeCategory: r === `id${s}` ? "" : `id${s}`
1132
1132
  }));
1133
1133
  },
@@ -1137,22 +1137,22 @@ const ht = ({
1137
1137
  showBottomBar: !1,
1138
1138
  color: a,
1139
1139
  activeColor: d,
1140
- children: o ? o.map((c, l) => /* @__PURE__ */ i(
1140
+ children: o ? o.map((l, c) => /* @__PURE__ */ i(
1141
1141
  mt,
1142
1142
  {
1143
- subcategory: c,
1143
+ subcategory: l,
1144
1144
  fontColor: a,
1145
1145
  activeColor: d
1146
1146
  },
1147
- `subcategory-${l}`
1148
- )) : t && t.map((c, l) => /* @__PURE__ */ i(
1147
+ `subcategory-${c}`
1148
+ )) : t && t.map((l, c) => /* @__PURE__ */ i(
1149
1149
  Ke,
1150
1150
  {
1151
- indicator: c,
1151
+ indicator: l,
1152
1152
  fontColor: a,
1153
1153
  activeColor: d
1154
1154
  },
1155
- `indicator-${l}`
1155
+ `indicator-${c}`
1156
1156
  ))
1157
1157
  }
1158
1158
  );
@@ -1175,7 +1175,7 @@ const gt = ({
1175
1175
  inputsColor: t = "#605B56",
1176
1176
  activeColor: r
1177
1177
  }) => {
1178
- const { tematicalFiltersSelected: a } = A((l) => l), { t: c } = $();
1178
+ const { tematicalFiltersSelected: a } = A((c) => c), { t: l } = $();
1179
1179
  return M(() => {
1180
1180
  console.log("filtersSelected changed: ", a);
1181
1181
  }, [a]), M(() => {
@@ -1186,13 +1186,13 @@ const gt = ({
1186
1186
  se,
1187
1187
  {
1188
1188
  isOpen: d,
1189
- title: s ? c(s) : "Tematical filters",
1189
+ title: s ? l(s) : "Tematical filters",
1190
1190
  color: o,
1191
1191
  activeColor: r,
1192
- children: n == null ? void 0 : n.map((l, u) => /* @__PURE__ */ i(
1192
+ children: n == null ? void 0 : n.map((c, u) => /* @__PURE__ */ i(
1193
1193
  ht,
1194
1194
  {
1195
- category: l,
1195
+ category: c,
1196
1196
  fontColor: o,
1197
1197
  activeColor: r
1198
1198
  },
@@ -1225,8 +1225,8 @@ const W2 = "_FiltersAmbitContainer_1g9xx_2", Y2 = "_FiltersAmbitHeader_1g9xx_7",
1225
1225
  activeColor: t,
1226
1226
  textColor: r,
1227
1227
  backgroundColor: a,
1228
- onChangeAppliedFilters: c,
1229
- saveAmbit: l,
1228
+ onChangeAppliedFilters: l,
1229
+ saveAmbit: c,
1230
1230
  namePlaceholder: u,
1231
1231
  descPlaceholder: g,
1232
1232
  filtersTypes: C = ["geographical", "tematical"],
@@ -1240,10 +1240,10 @@ const W2 = "_FiltersAmbitContainer_1g9xx_2", Y2 = "_FiltersAmbitHeader_1g9xx_7",
1240
1240
  tematicalFiltersSelected: s
1241
1241
  }));
1242
1242
  }, [s]), M(() => {
1243
- console.log("filtersSelected changed: ", h), c(h);
1243
+ console.log("filtersSelected changed: ", h), l(h);
1244
1244
  }, [h]);
1245
1245
  const k = () => {
1246
- _ ? l({ name: _, description: v }) : N(!0);
1246
+ _ ? c({ name: _, description: v }) : N(!0);
1247
1247
  };
1248
1248
  return /* @__PURE__ */ p("div", { className: re.FiltersAmbitContainer, children: [
1249
1249
  !y && /* @__PURE__ */ p("div", { className: re.FiltersAmbitHeader, children: [
@@ -1317,13 +1317,13 @@ const n0 = "_barChartContainer_d2f1z_2", i0 = {
1317
1317
  fontColor: t = "#605B56",
1318
1318
  verticalPaddign: r = 10,
1319
1319
  horizontalPaddign: a = 20,
1320
- leftPadding: c = 200,
1321
- numberOfDivisions: l = 7,
1320
+ leftPadding: l = 200,
1321
+ numberOfDivisions: c = 7,
1322
1322
  maxValue: u = null
1323
1323
  }) => {
1324
1324
  const { t: g } = $(), { xScale: C, ticks: b, height: y } = Ce(() => {
1325
1325
  if (n && n.length > 0) {
1326
- const m = (n == null ? void 0 : n.length) * (s + o) + r * 2, h = Ge.max(n, (v) => v.value) || 1, _ = Ge.scaleLinear().domain([0, u || h]).range([0, d - c]), f = Array.from({ length: l + 1 }, (v, x) => u ? u / l * x : h / l * x);
1326
+ const m = (n == null ? void 0 : n.length) * (s + o) + r * 2, h = Ge.max(n, (v) => v.value) || 1, _ = Ge.scaleLinear().domain([0, u || h]).range([0, d - l]), f = Array.from({ length: c + 1 }, (v, x) => u ? u / c * x : h / c * x);
1327
1327
  return {
1328
1328
  xScale: _,
1329
1329
  ticks: f,
@@ -1337,7 +1337,7 @@ const n0 = "_barChartContainer_d2f1z_2", i0 = {
1337
1337
  }, [
1338
1338
  n,
1339
1339
  d,
1340
- l,
1340
+ c,
1341
1341
  s,
1342
1342
  o,
1343
1343
  a,
@@ -1345,7 +1345,7 @@ const n0 = "_barChartContainer_d2f1z_2", i0 = {
1345
1345
  u
1346
1346
  ]);
1347
1347
  return /* @__PURE__ */ i("div", { className: i0.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + a * 2, height: y, children: /* @__PURE__ */ p("g", { transform: `translate(0,${o})`, children: [
1348
- /* @__PURE__ */ i("g", { transform: `translate(${c + a}, 0)`, children: b.map((m, h) => {
1348
+ /* @__PURE__ */ i("g", { transform: `translate(${l + a}, 0)`, children: b.map((m, h) => {
1349
1349
  const _ = C(m);
1350
1350
  return /* @__PURE__ */ p("g", { transform: `translate(${_}, 0)`, children: [
1351
1351
  /* @__PURE__ */ i(
@@ -1373,7 +1373,7 @@ const n0 = "_barChartContainer_d2f1z_2", i0 = {
1373
1373
  return /* @__PURE__ */ p(
1374
1374
  "g",
1375
1375
  {
1376
- transform: `translate(${c + a}, ${f})`,
1376
+ transform: `translate(${l + a}, ${f})`,
1377
1377
  children: [
1378
1378
  /* @__PURE__ */ i(
1379
1379
  "text",
@@ -1428,8 +1428,8 @@ const s0 = "_graphicContainer_c9zrg_2", o0 = "_titleContainer_c9zrg_14", Qe = {
1428
1428
  title: t = "Graphic Title",
1429
1429
  fontColor: r = "#605B56",
1430
1430
  maxValue: a = null,
1431
- numberOfDivisions: c = 7,
1432
- leftPadding: l = 200
1431
+ numberOfDivisions: l = 7,
1432
+ leftPadding: c = 200
1433
1433
  }) => {
1434
1434
  const { t: u } = $();
1435
1435
  return /* @__PURE__ */ p(
@@ -1449,8 +1449,8 @@ const s0 = "_graphicContainer_c9zrg_2", o0 = "_titleContainer_c9zrg_14", Qe = {
1449
1449
  width: d,
1450
1450
  fontColor: r,
1451
1451
  maxValue: a,
1452
- numberOfDivisions: c,
1453
- leftPadding: l
1452
+ numberOfDivisions: l,
1453
+ leftPadding: c
1454
1454
  }
1455
1455
  )
1456
1456
  ]
@@ -1497,13 +1497,13 @@ const a0 = "_indicatorsCategory_1cu33_2", l0 = "_title_1cu33_5", c0 = "_list_1cu
1497
1497
  activeIndicator: t,
1498
1498
  activeIndicatorType: r,
1499
1499
  onClickIndicator: a,
1500
- multiple: c = !1,
1501
- onChangeType: l
1500
+ multiple: l = !1,
1501
+ onChangeType: c
1502
1502
  }) => {
1503
1503
  const { t: u } = $(), { name: g, type: C, disabled: b } = n, [y, m] = T(!1);
1504
1504
  M(() => {
1505
1505
  t && m(
1506
- c ? t.some(
1506
+ l ? t.some(
1507
1507
  (f) => f.name == String(g)
1508
1508
  ) : t.name == g
1509
1509
  );
@@ -1513,7 +1513,7 @@ const a0 = "_indicatorsCategory_1cu33_2", l0 = "_title_1cu33_5", c0 = "_list_1cu
1513
1513
  "div",
1514
1514
  {
1515
1515
  className: V.optionContainer,
1516
- onClick: () => l("cat"),
1516
+ onClick: () => c("cat"),
1517
1517
  children: [
1518
1518
  /* @__PURE__ */ i(
1519
1519
  "span",
@@ -1542,7 +1542,7 @@ const a0 = "_indicatorsCategory_1cu33_2", l0 = "_title_1cu33_5", c0 = "_list_1cu
1542
1542
  "div",
1543
1543
  {
1544
1544
  className: V.optionContainer,
1545
- onClick: () => l("abs"),
1545
+ onClick: () => c("abs"),
1546
1546
  children: [
1547
1547
  /* @__PURE__ */ i(
1548
1548
  "span",
@@ -1648,8 +1648,8 @@ const y0 = "_indicatorsSubCategory_1dzsi_2", v0 = "_list_1dzsi_8", Xe = {
1648
1648
  activeSubCategory: t,
1649
1649
  onClickSubCategory: r,
1650
1650
  id: a,
1651
- activeIndicator: c,
1652
- onClickIndicator: l,
1651
+ activeIndicator: l,
1652
+ onClickIndicator: c,
1653
1653
  multiple: u,
1654
1654
  activeIndicatorType: g,
1655
1655
  onChangeType: C
@@ -1681,8 +1681,8 @@ const y0 = "_indicatorsSubCategory_1dzsi_2", v0 = "_list_1dzsi_8", Xe = {
1681
1681
  indicator: h,
1682
1682
  defaultColor: s,
1683
1683
  activeColor: o,
1684
- activeIndicator: c,
1685
- onClickIndicator: l,
1684
+ activeIndicator: l,
1685
+ onClickIndicator: c,
1686
1686
  multiple: u,
1687
1687
  activeIndicatorType: g,
1688
1688
  onChangeType: C
@@ -1713,8 +1713,8 @@ const bt = ({
1713
1713
  onClickCategory: t,
1714
1714
  activeCategory: r,
1715
1715
  activeSubCategory: a,
1716
- onClickSubCategory: c,
1717
- activeIndicator: l,
1716
+ onClickSubCategory: l,
1717
+ activeIndicator: c,
1718
1718
  onClickIndicator: u,
1719
1719
  multiple: g,
1720
1720
  activeIndicatorType: C,
@@ -1754,8 +1754,8 @@ const bt = ({
1754
1754
  id: v,
1755
1755
  activeSubCategory: a,
1756
1756
  subcName: f,
1757
- onClickSubCategory: c,
1758
- activeIndicator: l,
1757
+ onClickSubCategory: l,
1758
+ activeIndicator: c,
1759
1759
  onClickIndicator: u,
1760
1760
  multiple: g,
1761
1761
  activeColor: s,
@@ -1773,7 +1773,7 @@ const bt = ({
1773
1773
  values: f.type == "twoUnits" && f.values,
1774
1774
  activeColor: s,
1775
1775
  defaultColor: o,
1776
- activeIndicator: l,
1776
+ activeIndicator: c,
1777
1777
  onClickIndicator: u,
1778
1778
  multiple: g,
1779
1779
  activeIndicatorType: C,
@@ -1814,9 +1814,9 @@ const w0 = "_indicatorsList_fklyu_2", x0 = "_title_fklyu_6", Je = {
1814
1814
  defaultValue: r = null,
1815
1815
  //si el indicador es tipo "both" cuando se cambia el tipo
1816
1816
  changeIndType: a,
1817
- activeIndicatorType: c
1817
+ activeIndicatorType: l
1818
1818
  }) => {
1819
- const { t: l } = $(), [u, g] = T(), [C, b] = T(), [y, m] = T(), h = (w) => {
1819
+ const { t: c } = $(), [u, g] = T(), [C, b] = T(), [y, m] = T(), h = (w) => {
1820
1820
  g(u == w ? null : w);
1821
1821
  }, _ = (w) => {
1822
1822
  b(C == w ? null : w);
@@ -1862,7 +1862,7 @@ const w0 = "_indicatorsList_fklyu_2", x0 = "_title_fklyu_6", Je = {
1862
1862
  N && g(N.category);
1863
1863
  };
1864
1864
  return /* @__PURE__ */ p("div", { className: Je.indicatorsList, children: [
1865
- /* @__PURE__ */ i("h2", { className: Je.title, style: { color: s }, children: l("indicators.indicators") }),
1865
+ /* @__PURE__ */ i("h2", { className: Je.title, style: { color: s }, children: c("indicators.indicators") }),
1866
1866
  n.map((w, N) => /* @__PURE__ */ i(
1867
1867
  bt,
1868
1868
  {
@@ -1879,7 +1879,7 @@ const w0 = "_indicatorsList_fklyu_2", x0 = "_title_fklyu_6", Je = {
1879
1879
  multiple: t,
1880
1880
  onChange: o,
1881
1881
  onChangeType: a,
1882
- activeIndicatorType: c
1882
+ activeIndicatorType: l
1883
1883
  },
1884
1884
  `categoryKey${N}`
1885
1885
  ))
@@ -1903,8 +1903,8 @@ const k0 = "_langSelector_o9enq_2", $0 = "_currentLang_o9enq_14", S0 = "_arrow_o
1903
1903
  prevImg: B0,
1904
1904
  langMenu: L0
1905
1905
  }, T0 = ({ langs: n, arrow: d, imgPrev: s }) => {
1906
- const [o, t] = T(!1), { i18n: r } = $(), a = n.find((l) => l.code == r.language), c = (l) => {
1907
- r.changeLanguage(l), t(!1);
1906
+ const [o, t] = T(!1), { i18n: r } = $(), a = n.find((c) => c.code == r.language), l = (c) => {
1907
+ r.changeLanguage(c), t(!1);
1908
1908
  };
1909
1909
  return /* @__PURE__ */ p("div", { className: ae.langSelector, children: [
1910
1910
  /* @__PURE__ */ p(
@@ -1921,14 +1921,14 @@ const k0 = "_langSelector_o9enq_2", $0 = "_currentLang_o9enq_14", S0 = "_arrow_o
1921
1921
  ]
1922
1922
  }
1923
1923
  ),
1924
- o && /* @__PURE__ */ i("div", { className: ae.langMenu, children: n.map((l) => /* @__PURE__ */ i(
1924
+ o && /* @__PURE__ */ i("div", { className: ae.langMenu, children: n.map((c) => /* @__PURE__ */ i(
1925
1925
  "button",
1926
1926
  {
1927
- className: (a == null ? void 0 : a.code) == l.code ? ae.active : "",
1928
- onClick: () => c(l.code),
1929
- children: l.title
1927
+ className: (a == null ? void 0 : a.code) == c.code ? ae.active : "",
1928
+ onClick: () => l(c.code),
1929
+ children: c.title
1930
1930
  },
1931
- l.code
1931
+ c.code
1932
1932
  )) })
1933
1933
  ] });
1934
1934
  };
@@ -1982,8 +1982,8 @@ const M0 = "_legendContainer_qs4x9_3", D0 = "_closeButton_qs4x9_31", F0 = "_titl
1982
1982
  //If this is null or undefined the button wont be displayed.
1983
1983
  onClickMoreInfo: a,
1984
1984
  //If not passed it will read t("moreInformation")
1985
- buttonTitle: c,
1986
- onClickClose: l
1985
+ buttonTitle: l,
1986
+ onClickClose: c
1987
1987
  }) => {
1988
1988
  const { t: u } = $();
1989
1989
  return /* @__PURE__ */ p(
@@ -1992,7 +1992,7 @@ const M0 = "_legendContainer_qs4x9_3", D0 = "_closeButton_qs4x9_31", F0 = "_titl
1992
1992
  style: n ? { ...n } : {},
1993
1993
  className: `${F.legendContainer}`,
1994
1994
  children: [
1995
- /* @__PURE__ */ i("button", { className: F.closeButton, onClick: l }),
1995
+ /* @__PURE__ */ i("button", { className: F.closeButton, onClick: c }),
1996
1996
  d && /* @__PURE__ */ i("div", { className: F.titleContainer, style: { marginBottom: (!s || s.length == 0) && "15px" }, children: /* @__PURE__ */ i("h2", { children: d }) }),
1997
1997
  s && s.length > 0 && /* @__PURE__ */ i("div", { className: F.infoContainer, children: /* @__PURE__ */ i("ul", { children: s.map(({ title: g, value: C }) => /* @__PURE__ */ p("li", { children: [
1998
1998
  /* @__PURE__ */ i("h3", { className: F.title, children: `${g}:` }),
@@ -2058,7 +2058,7 @@ const M0 = "_legendContainer_qs4x9_3", D0 = "_closeButton_qs4x9_31", F0 = "_titl
2058
2058
  /* @__PURE__ */ i("div", { className: F.absoluteValueText, children: /* @__PURE__ */ i("span", { children: u(r.noDataText) }) })
2059
2059
  ] })
2060
2060
  ] }),
2061
- a && /* @__PURE__ */ i("button", { className: F.moreInfoContainer, onClick: a, children: c || u("moreInformation") })
2061
+ a && /* @__PURE__ */ i("button", { className: F.moreInfoContainer, onClick: a, children: l || u("moreInformation") })
2062
2062
  ]
2063
2063
  }
2064
2064
  );
@@ -2114,8 +2114,8 @@ const Q0 = ({
2114
2114
  firstSymbolLayer: t,
2115
2115
  cssProps: r = "",
2116
2116
  onClick: a = "",
2117
- interactiveLayers: c = [],
2118
- popUp: l = !1,
2117
+ interactiveLayers: l = [],
2118
+ popUp: c = !1,
2119
2119
  sources: u = [],
2120
2120
  layers: g = []
2121
2121
  }) => {
@@ -2137,7 +2137,7 @@ const Q0 = ({
2137
2137
  minZoom: s,
2138
2138
  mapStyle: o,
2139
2139
  onClick: a,
2140
- interactiveLayerIds: c,
2140
+ interactiveLayerIds: l,
2141
2141
  children: [
2142
2142
  u.length && u.map((h, _) => /* @__PURE__ */ i(
2143
2143
  At,
@@ -2157,14 +2157,14 @@ const Q0 = ({
2157
2157
  _
2158
2158
  )),
2159
2159
  /* @__PURE__ */ i(It, { position: "bottom-right", visualizePitch: !0 }),
2160
- l && b && /* @__PURE__ */ i(
2160
+ c && b && /* @__PURE__ */ i(
2161
2161
  Rt,
2162
2162
  {
2163
- longitude: l.longitude,
2164
- latitude: l.latitude,
2165
- anchor: l.anchor,
2163
+ longitude: c.longitude,
2164
+ latitude: c.latitude,
2165
+ anchor: c.anchor,
2166
2166
  onClose: () => y(null),
2167
- children: l.content
2167
+ children: c.content
2168
2168
  }
2169
2169
  )
2170
2170
  ]
@@ -2242,8 +2242,8 @@ const X0 = "_mapContainer_b0pyr_3", J0 = {
2242
2242
  firstSymbolLayer: t,
2243
2243
  cssProps: r = {},
2244
2244
  onClick: a = "",
2245
- interactiveLayers: c = [],
2246
- sources: l = [],
2245
+ interactiveLayers: l = [],
2246
+ sources: c = [],
2247
2247
  layers: u = [],
2248
2248
  filters: g,
2249
2249
  popUpParams: C,
@@ -2275,9 +2275,9 @@ const X0 = "_mapContainer_b0pyr_3", J0 = {
2275
2275
  minZoom: s,
2276
2276
  mapStyle: o,
2277
2277
  onClick: a,
2278
- interactiveLayerIds: c,
2278
+ interactiveLayerIds: l,
2279
2279
  children: [
2280
- l.length && l.map((h, _) => /* @__PURE__ */ i(
2280
+ c.length && c.map((h, _) => /* @__PURE__ */ i(
2281
2281
  Pt,
2282
2282
  {
2283
2283
  ...h,
@@ -2431,12 +2431,12 @@ const pn = Kt({
2431
2431
  lastYear: o = 2050,
2432
2432
  zIndex: t = 10,
2433
2433
  rightBarOpen: r = !1,
2434
- onChange: a = (c) => {
2435
- console.log("year changed to ", c);
2434
+ onChange: a = (l) => {
2435
+ console.log("year changed to ", l);
2436
2436
  }
2437
2437
  }) => {
2438
- const [c, l] = T(d), u = (f, v) => {
2439
- l(v), a(v);
2438
+ const [l, c] = T(d), u = (f, v) => {
2439
+ c(v), a(v);
2440
2440
  }, [g, C] = T(!1), b = () => {
2441
2441
  C(!0);
2442
2442
  }, y = () => {
@@ -2456,7 +2456,7 @@ const pn = Kt({
2456
2456
  }
2457
2457
  }, [v]);
2458
2458
  })(() => {
2459
- g && (c != 2050 ? (l(c + 1), a(c + 1)) : (l(2025), a(2025)));
2459
+ g && (l != 2050 ? (c(l + 1), a(l + 1)) : (c(2025), a(2025)));
2460
2460
  }, 1e3);
2461
2461
  const h = Ut({
2462
2462
  palette: {
@@ -2498,7 +2498,7 @@ const pn = Kt({
2498
2498
  Ht,
2499
2499
  {
2500
2500
  "aria-label": "TimeSlider",
2501
- value: c,
2501
+ value: l,
2502
2502
  valueLabelDisplay: "on",
2503
2503
  step: 1,
2504
2504
  marks: _,
@@ -2539,19 +2539,19 @@ const yn = "_TopNavMenuContainer_12mp4_2", vn = "_topNavOptions_12mp4_13", wn =
2539
2539
  }
2540
2540
  }) => {
2541
2541
  const { t: r } = $();
2542
- return /* @__PURE__ */ i("div", { className: De.TopNavMenuContainer, style: { ...d }, children: n.map((a, c) => /* @__PURE__ */ i(
2542
+ return /* @__PURE__ */ i("div", { className: De.TopNavMenuContainer, style: { ...d }, children: n.map((a, l) => /* @__PURE__ */ i(
2543
2543
  Yt,
2544
2544
  {
2545
2545
  to: a.url,
2546
- className: ({ isActive: l }) => `${De.topNavOptions} ${l ? De.active : ""} `,
2546
+ className: ({ isActive: c }) => `${De.topNavOptions} ${c ? De.active : ""} `,
2547
2547
  onClick: () => t(a.url),
2548
- style: ({ isActive: l }) => ({
2548
+ style: ({ isActive: c }) => ({
2549
2549
  color: o,
2550
- borderBottom: l ? `5px solid ${s}` : "5px solid transparent"
2550
+ borderBottom: c ? `5px solid ${s}` : "5px solid transparent"
2551
2551
  }),
2552
2552
  children: r(a.name)
2553
2553
  },
2554
- c
2554
+ l
2555
2555
  )) });
2556
2556
  };
2557
2557
  xn.propTypes = {
@@ -2576,18 +2576,18 @@ const Nn = "_LogInButton_1vxj5_2", kn = {
2576
2576
  onClickLogIn: a = () => {
2577
2577
  console.log("Login clicked");
2578
2578
  },
2579
- onClickLogOut: c = () => {
2579
+ onClickLogOut: l = () => {
2580
2580
  console.log("Logout clicked");
2581
2581
  }
2582
2582
  }) => {
2583
- const { t: l } = $();
2583
+ const { t: c } = $();
2584
2584
  return /* @__PURE__ */ i(
2585
2585
  "div",
2586
2586
  {
2587
2587
  style: { ...o },
2588
2588
  className: `${kn.LogInButton} link ${n}`,
2589
- onClick: r ? c : a,
2590
- children: r ? t || l(s) : l(d)
2589
+ onClick: r ? l : a,
2590
+ children: r ? t || c(s) : c(d)
2591
2591
  }
2592
2592
  );
2593
2593
  };
@@ -2651,8 +2651,8 @@ const Wn = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2651
2651
  fontColor: t,
2652
2652
  moreInfo: r,
2653
2653
  columns: a,
2654
- elementButtons: c,
2655
- processTooltip: l,
2654
+ elementButtons: l,
2655
+ processTooltip: c,
2656
2656
  defaultTooltip: u,
2657
2657
  showEye: g = !0
2658
2658
  }) => {
@@ -2677,19 +2677,19 @@ const Wn = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2677
2677
  /* @__PURE__ */ p("div", { className: E.elementButtons, children: [
2678
2678
  n.processing && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2679
2679
  /* @__PURE__ */ i("img", { src: Hn }),
2680
- /* @__PURE__ */ i(ne, { text: l, position: "left" })
2680
+ /* @__PURE__ */ i(ne, { text: c, position: "left" })
2681
2681
  ] }),
2682
- c.filter && !n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2683
- /* @__PURE__ */ i("button", { onClick: () => c.filter.onclick(n), children: /* @__PURE__ */ i("img", { src: Kn }) }),
2684
- /* @__PURE__ */ i(ne, { text: c.filter.tooltiptext, position: "left" })
2682
+ l.filter && !n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2683
+ /* @__PURE__ */ i("button", { onClick: () => l.filter.onclick(n), children: /* @__PURE__ */ i("img", { src: Kn }) }),
2684
+ /* @__PURE__ */ i(ne, { text: l.filter.tooltiptext, position: "left" })
2685
2685
  ] }),
2686
- c.copy && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2687
- /* @__PURE__ */ i("button", { onClick: () => c.copy.onclick(n), children: /* @__PURE__ */ i("img", { src: zn }) }),
2688
- /* @__PURE__ */ i(ne, { text: c.copy.tooltiptext, position: "left" })
2686
+ l.copy && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2687
+ /* @__PURE__ */ i("button", { onClick: () => l.copy.onclick(n), children: /* @__PURE__ */ i("img", { src: zn }) }),
2688
+ /* @__PURE__ */ i(ne, { text: l.copy.tooltiptext, position: "left" })
2689
2689
  ] }),
2690
- c.trash && !n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2691
- /* @__PURE__ */ i("button", { onClick: () => c.trash.onclick(n), children: /* @__PURE__ */ i("img", { src: Zn }) }),
2692
- /* @__PURE__ */ i(ne, { text: c.trash.tooltiptext, position: "left" })
2690
+ l.trash && !n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2691
+ /* @__PURE__ */ i("button", { onClick: () => l.trash.onclick(n), children: /* @__PURE__ */ i("img", { src: Zn }) }),
2692
+ /* @__PURE__ */ i(ne, { text: l.trash.tooltiptext, position: "left" })
2693
2693
  ] }),
2694
2694
  n.is_default && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2695
2695
  /* @__PURE__ */ i("img", { src: Un }),
@@ -2753,8 +2753,8 @@ const it = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2753
2753
  containerStyles: r = {},
2754
2754
  newElementButton: a,
2755
2755
  //{label: 'text', onClick: function(), disabled}/null
2756
- onClickElement: c = (m) => console.log(`OnCLickElement: ${m}`),
2757
- columns: l,
2756
+ onClickElement: l = (m) => console.log(`OnCLickElement: ${m}`),
2757
+ columns: c,
2758
2758
  // {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
2759
2759
  elementButtons: u,
2760
2760
  //{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
@@ -2788,13 +2788,13 @@ const it = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2788
2788
  className: Z.header,
2789
2789
  style: { borderBottom: `1px solid ${s}` },
2790
2790
  children: [
2791
- /* @__PURE__ */ i("div", { className: Z.nameDateContainer, children: Object.keys(l).map((v) => v === "name" ? /* @__PURE__ */ i("div", { className: Z.elementName, children: /* @__PURE__ */ p("button", { onClick: () => f("name"), children: [
2792
- /* @__PURE__ */ i("span", { children: m(l.name) }),
2791
+ /* @__PURE__ */ i("div", { className: Z.nameDateContainer, children: Object.keys(c).map((v) => v === "name" ? /* @__PURE__ */ i("div", { className: Z.elementName, children: /* @__PURE__ */ p("button", { onClick: () => f("name"), children: [
2792
+ /* @__PURE__ */ i("span", { children: m(c.name) }),
2793
2793
  /* @__PURE__ */ i("img", { src: it, alt: "order arrow" })
2794
2794
  ] }) }, v) : v === "data" ? /* @__PURE__ */ i("div", { className: Z.elementDate, children: /* @__PURE__ */ p("button", { onClick: () => f("date"), children: [
2795
- /* @__PURE__ */ i("span", { children: m(l.data) }),
2795
+ /* @__PURE__ */ i("span", { children: m(c.data) }),
2796
2796
  /* @__PURE__ */ i("img", { src: it, alt: "order arrow" })
2797
- ] }) }, v) : /* @__PURE__ */ i("div", { className: Z.elementDate, children: /* @__PURE__ */ i("span", { children: m(l[v]) }) }, v)) }),
2797
+ ] }) }, v) : /* @__PURE__ */ i("div", { className: Z.elementDate, children: /* @__PURE__ */ i("span", { children: m(c[v]) }) }, v)) }),
2798
2798
  /* @__PURE__ */ i("div", { className: Z.buttonsContainer })
2799
2799
  ]
2800
2800
  }
@@ -2806,8 +2806,8 @@ const it = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2806
2806
  listelement: v,
2807
2807
  fontColor: s,
2808
2808
  activeColor: o,
2809
- onClickElement: c,
2810
- columns: l,
2809
+ onClickElement: l,
2810
+ columns: c,
2811
2811
  elementButtons: u,
2812
2812
  moreInfo: g,
2813
2813
  processTooltip: C,
@@ -2919,15 +2919,15 @@ var wt = (n) => /^\w*$/.test(n), je = (n) => n === void 0, di = (n) => Array.isA
2919
2919
  let o = -1;
2920
2920
  const t = wt(d) ? [d] : xt(d), r = t.length, a = r - 1;
2921
2921
  for (; ++o < r; ) {
2922
- const c = t[o];
2923
- let l = s;
2922
+ const l = t[o];
2923
+ let c = s;
2924
2924
  if (o !== a) {
2925
- const u = n[c];
2926
- l = fe(u) || Array.isArray(u) ? u : isNaN(+t[o + 1]) ? {} : [];
2925
+ const u = n[l];
2926
+ c = fe(u) || Array.isArray(u) ? u : isNaN(+t[o + 1]) ? {} : [];
2927
2927
  }
2928
- if (c === "__proto__" || c === "constructor" || c === "prototype")
2928
+ if (l === "__proto__" || l === "constructor" || l === "prototype")
2929
2929
  return;
2930
- n[c] = l, n = n[c];
2930
+ n[l] = c, n = n[l];
2931
2931
  }
2932
2932
  };
2933
2933
  const ot = {
@@ -2953,7 +2953,7 @@ var ui = (n, d, s, o = !0) => {
2953
2953
  };
2954
2954
  const kt = typeof window < "u" ? ue.useLayoutEffect : ue.useEffect;
2955
2955
  function pi(n) {
2956
- const d = Ue(), { control: s = d.control, disabled: o, name: t, exact: r } = n || {}, [a, c] = B.useState(s._formState), l = B.useRef({
2956
+ const d = Ue(), { control: s = d.control, disabled: o, name: t, exact: r } = n || {}, [a, l] = B.useState(s._formState), c = B.useRef({
2957
2957
  isDirty: !1,
2958
2958
  isLoading: !1,
2959
2959
  dirtyFields: !1,
@@ -2965,66 +2965,66 @@ function pi(n) {
2965
2965
  });
2966
2966
  return kt(() => s._subscribe({
2967
2967
  name: t,
2968
- formState: l.current,
2968
+ formState: c.current,
2969
2969
  exact: r,
2970
2970
  callback: (u) => {
2971
- !o && c({
2971
+ !o && l({
2972
2972
  ...s._formState,
2973
2973
  ...u
2974
2974
  });
2975
2975
  }
2976
2976
  }), [t, o, r]), B.useEffect(() => {
2977
- l.current.isValid && s._setValid(!0);
2978
- }, [s]), B.useMemo(() => ui(a, s, l.current, !1), [a, s]);
2977
+ c.current.isValid && s._setValid(!0);
2978
+ }, [s]), B.useMemo(() => ui(a, s, c.current, !1), [a, s]);
2979
2979
  }
2980
2980
  var mi = (n) => typeof n == "string", hi = (n, d, s, o, t) => mi(n) ? I(s, n, t) : Array.isArray(n) ? n.map((r) => I(s, r)) : s;
2981
2981
  function gi(n) {
2982
- const d = Ue(), { control: s = d.control, name: o, defaultValue: t, disabled: r, exact: a } = n || {}, c = B.useRef(t), [l, u] = B.useState(s._getWatch(o, c.current));
2982
+ const d = Ue(), { control: s = d.control, name: o, defaultValue: t, disabled: r, exact: a } = n || {}, l = B.useRef(t), [c, u] = B.useState(s._getWatch(o, l.current));
2983
2983
  return kt(() => s._subscribe({
2984
2984
  name: o,
2985
2985
  formState: {
2986
2986
  values: !0
2987
2987
  },
2988
2988
  exact: a,
2989
- callback: (g) => !r && u(hi(o, s._names, g.values || s._formValues, !1, c.current))
2990
- }), [o, s, r, a]), B.useEffect(() => s._removeUnmounted()), l;
2989
+ callback: (g) => !r && u(hi(o, s._names, g.values || s._formValues, !1, l.current))
2990
+ }), [o, s, r, a]), B.useEffect(() => s._removeUnmounted()), c;
2991
2991
  }
2992
2992
  function Ci(n) {
2993
- const d = Ue(), { name: s, disabled: o, control: t = d.control, shouldUnregister: r } = n, a = ai(t._names.array, s), c = gi({
2993
+ const d = Ue(), { name: s, disabled: o, control: t = d.control, shouldUnregister: r } = n, a = ai(t._names.array, s), l = gi({
2994
2994
  control: t,
2995
2995
  name: s,
2996
2996
  defaultValue: I(t._formValues, s, I(t._defaultValues, s, n.defaultValue)),
2997
2997
  exact: !0
2998
- }), l = pi({
2998
+ }), c = pi({
2999
2999
  control: t,
3000
3000
  name: s,
3001
3001
  exact: !0
3002
3002
  }), u = B.useRef(n), g = B.useRef(t.register(s, {
3003
3003
  ...n.rules,
3004
- value: c,
3004
+ value: l,
3005
3005
  ...Fe(n.disabled) ? { disabled: n.disabled } : {}
3006
3006
  })), C = B.useMemo(() => Object.defineProperties({}, {
3007
3007
  invalid: {
3008
3008
  enumerable: !0,
3009
- get: () => !!I(l.errors, s)
3009
+ get: () => !!I(c.errors, s)
3010
3010
  },
3011
3011
  isDirty: {
3012
3012
  enumerable: !0,
3013
- get: () => !!I(l.dirtyFields, s)
3013
+ get: () => !!I(c.dirtyFields, s)
3014
3014
  },
3015
3015
  isTouched: {
3016
3016
  enumerable: !0,
3017
- get: () => !!I(l.touchedFields, s)
3017
+ get: () => !!I(c.touchedFields, s)
3018
3018
  },
3019
3019
  isValidating: {
3020
3020
  enumerable: !0,
3021
- get: () => !!I(l.validatingFields, s)
3021
+ get: () => !!I(c.validatingFields, s)
3022
3022
  },
3023
3023
  error: {
3024
3024
  enumerable: !0,
3025
- get: () => I(l.errors, s)
3025
+ get: () => I(c.errors, s)
3026
3026
  }
3027
- }), [l, s]), b = B.useCallback((_) => g.current.onChange({
3027
+ }), [c, s]), b = B.useCallback((_) => g.current.onChange({
3028
3028
  target: {
3029
3029
  value: oi(_),
3030
3030
  name: s
@@ -3046,12 +3046,12 @@ function Ci(n) {
3046
3046
  });
3047
3047
  }, [t._fields, s]), h = B.useMemo(() => ({
3048
3048
  name: s,
3049
- value: c,
3050
- ...Fe(o) || l.disabled ? { disabled: l.disabled || o } : {},
3049
+ value: l,
3050
+ ...Fe(o) || c.disabled ? { disabled: c.disabled || o } : {},
3051
3051
  onChange: b,
3052
3052
  onBlur: y,
3053
3053
  ref: m
3054
- }), [s, o, l.disabled, b, y, m, c]);
3054
+ }), [s, o, c.disabled, b, y, m, l]);
3055
3055
  return B.useEffect(() => {
3056
3056
  const _ = t._options.shouldUnregister || r;
3057
3057
  t.register(s, {
@@ -3076,9 +3076,9 @@ function Ci(n) {
3076
3076
  });
3077
3077
  }, [o, s, t]), B.useMemo(() => ({
3078
3078
  field: h,
3079
- formState: l,
3079
+ formState: c,
3080
3080
  fieldState: C
3081
- }), [h, l, C]);
3081
+ }), [h, c, C]);
3082
3082
  }
3083
3083
  const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3084
3084
  errorMessage: fi
@@ -3103,8 +3103,8 @@ const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3103
3103
  label: t,
3104
3104
  maxLength: r,
3105
3105
  required: a,
3106
- validateFunction: c,
3107
- placeholder: l,
3106
+ validateFunction: l,
3107
+ placeholder: c,
3108
3108
  errorColor: u = "red",
3109
3109
  width: g = 325,
3110
3110
  onClickForgotPass: C = () => {
@@ -3124,7 +3124,7 @@ const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3124
3124
  rules: {
3125
3125
  required: a ? `${y(t)} ${y("errorMessages.required")}` : !1,
3126
3126
  maxLength: r || void 0,
3127
- validate: c || void 0
3127
+ validate: l || void 0
3128
3128
  },
3129
3129
  render: ({ field: N, fieldState: k }) => {
3130
3130
  var S;
@@ -3145,7 +3145,7 @@ const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3145
3145
  {
3146
3146
  type: w(),
3147
3147
  ...N,
3148
- placeholder: l ? y(l) : "",
3148
+ placeholder: c ? y(c) : "",
3149
3149
  maxLength: r || void 0
3150
3150
  }
3151
3151
  ),
@@ -3193,8 +3193,8 @@ const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3193
3193
  label: t,
3194
3194
  maxLength: r,
3195
3195
  required: a,
3196
- validateFunction: c,
3197
- placeholder: l,
3196
+ validateFunction: l,
3197
+ placeholder: c,
3198
3198
  errorColor: u = "red",
3199
3199
  width: g = 325,
3200
3200
  options: C = []
@@ -3208,7 +3208,10 @@ const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3208
3208
  control: y,
3209
3209
  rules: {
3210
3210
  required: a ? `${b(t)} ${b("errorMessages.required")}` : !1,
3211
- validate: c || void 0
3211
+ validate: l ? (f) => {
3212
+ let v = d.getValues();
3213
+ return l(f, v);
3214
+ } : void 0
3212
3215
  },
3213
3216
  render: ({ field: f, fieldState: v }) => {
3214
3217
  var x;
@@ -3229,7 +3232,7 @@ const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3229
3232
  },
3230
3233
  className: ce.selectInput,
3231
3234
  children: [
3232
- /* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: b(l || "selectOption") }),
3235
+ /* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: b(c || "selectOption") }),
3233
3236
  C.map((w, N) => /* @__PURE__ */ i(
3234
3237
  "option",
3235
3238
  {
@@ -3276,15 +3279,15 @@ const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3276
3279
  required: t,
3277
3280
  validateFunction: r,
3278
3281
  errorColor: a = "red",
3279
- options: c = [],
3280
- multi: l = !1
3282
+ options: l = [],
3283
+ multi: c = !1
3281
3284
  } = n, { t: u } = $(), { control: g, trigger: C, clearErrors: b } = d, y = ({ options: _, onChange: f, actualValue: v }) => {
3282
- if (l && v && v.length > 0) {
3285
+ if (c && v && v.length > 0) {
3283
3286
  let x = v.filter((w) => w !== _);
3284
3287
  f(x);
3285
3288
  }
3286
3289
  }, m = ({ options: _, onChange: f, actualValue: v }) => {
3287
- l ? v && v.length > 0 ? f([...v, _]) : f([_]) : f(_);
3290
+ c ? v && v.length > 0 ? f([...v, _]) : f([_]) : f(_);
3288
3291
  }, h = ie(t);
3289
3292
  return M(() => {
3290
3293
  h.current !== t && (t ? C(s) : b(s), h.current = t);
@@ -3322,14 +3325,14 @@ const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3322
3325
  }
3323
3326
  ) }),
3324
3327
  /* @__PURE__ */ p("div", { className: ee.inputContainer, children: [
3325
- c.map(
3328
+ l.map(
3326
3329
  ({
3327
3330
  label: S,
3328
3331
  value: L,
3329
3332
  disabled: P = !1,
3330
3333
  italicLabel: W
3331
3334
  }, q) => {
3332
- const ye = x && l ? x.isArray && (x == null ? void 0 : x.length) > 0 && x.some((K) => K === L) : x === L;
3335
+ const ye = x && c ? x.isArray && (x == null ? void 0 : x.length) > 0 && x.some((K) => K === L) : x === L;
3333
3336
  return /* @__PURE__ */ p("label", { children: [
3334
3337
  /* @__PURE__ */ i(
3335
3338
  "input",
@@ -3337,13 +3340,13 @@ const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3337
3340
  type: "radio",
3338
3341
  checked: ye,
3339
3342
  onChange: () => {
3340
- l ? ye ? y({
3343
+ c ? ye ? y({
3341
3344
  actualValue: x,
3342
- options: c,
3345
+ options: l,
3343
3346
  onChange: f
3344
3347
  }) : m({
3345
3348
  actualValue: x,
3346
- options: c,
3349
+ options: l,
3347
3350
  onChange: f
3348
3351
  }) : f(L);
3349
3352
  },
@@ -3383,9 +3386,9 @@ const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3383
3386
  minValue: t = 1,
3384
3387
  maxValue: r = 5,
3385
3388
  defValue: a = 3,
3386
- thumbColor: c = "#B32F5D",
3389
+ thumbColor: l = "#B32F5D",
3387
3390
  //trackColors = ["#B32F5D", "#EFEFEF"],
3388
- required: l,
3391
+ required: c,
3389
3392
  errorColor: u = "red",
3390
3393
  labelWidth: g = "300px",
3391
3394
  sliderWidth: C = "300px",
@@ -3394,17 +3397,17 @@ const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3394
3397
  disabled: m = !1,
3395
3398
  marks: h = Array.from({ length: r - t + 1 }, (L, P) => t + P),
3396
3399
  showMarksNumber: _ = !0
3397
- } = n, { t: f } = $(), { control: v, trigger: x, clearErrors: w } = d || {}, N = ie(l), [k, S] = T(a);
3400
+ } = n, { t: f } = $(), { control: v, trigger: x, clearErrors: w } = d || {}, N = ie(c), [k, S] = T(a);
3398
3401
  return M(() => {
3399
- d && N.current !== l && (l ? x(s) : w(s), N.current = l);
3400
- }, [l, s, x, w, d]), d ? /* @__PURE__ */ i(
3402
+ d && N.current !== c && (c ? x(s) : w(s), N.current = c);
3403
+ }, [c, s, x, w, d]), d ? /* @__PURE__ */ i(
3401
3404
  be,
3402
3405
  {
3403
3406
  name: s,
3404
3407
  control: v,
3405
3408
  defaultValue: a,
3406
3409
  rules: {
3407
- required: l ? `${f(o)} ${f("errorMessages.required")}` : !1
3410
+ required: c ? `${f(o)} ${f("errorMessages.required")}` : !1
3408
3411
  },
3409
3412
  render: ({ field: L, fieldState: P }) => {
3410
3413
  var W;
@@ -3429,7 +3432,7 @@ const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3429
3432
  marks: !0,
3430
3433
  className: D.slider,
3431
3434
  thumbClassName: D.thumb,
3432
- renderThumb: (q) => /* @__PURE__ */ i("div", { ...q, style: { ...q.style, backgroundColor: c } }),
3435
+ renderThumb: (q) => /* @__PURE__ */ i("div", { ...q, style: { ...q.style, backgroundColor: l } }),
3433
3436
  trackClassName: D.track,
3434
3437
  markClassName: D.mark,
3435
3438
  disabled: m
@@ -3472,7 +3475,7 @@ const be = (n) => n.render(Ci(n)), fi = "_errorMessage_1xiyb_2", bi = {
3472
3475
  marks: !0,
3473
3476
  className: D.slider,
3474
3477
  thumbClassName: D.thumb,
3475
- renderThumb: (L) => /* @__PURE__ */ i("div", { ...L, style: { ...L.style, backgroundColor: c } }),
3478
+ renderThumb: (L) => /* @__PURE__ */ i("div", { ...L, style: { ...L.style, backgroundColor: l } }),
3476
3479
  trackClassName: D.track,
3477
3480
  markClassName: D.mark,
3478
3481
  disabled: m
@@ -3510,15 +3513,15 @@ const Ae = ({
3510
3513
  reactHookFormInstance: s
3511
3514
  }) => {
3512
3515
  const { watch: o } = s, t = o(), r = Ce(() => n.map((a) => {
3513
- const c = typeof a.required == "function" ? a.required(t) : a.required;
3516
+ const l = typeof a.required == "function" ? a.required(t) : a.required;
3514
3517
  return {
3515
3518
  ...a,
3516
- required: c
3519
+ required: l
3517
3520
  };
3518
3521
  }), [n, t]);
3519
- return /* @__PURE__ */ i("div", { className: le.inputsContainer, children: r == null ? void 0 : r.map((a, c) => {
3520
- const { inputType: l } = a;
3521
- switch (l) {
3522
+ return /* @__PURE__ */ i("div", { className: le.inputsContainer, children: r == null ? void 0 : r.map((a, l) => {
3523
+ const { inputType: c } = a;
3524
+ switch (c) {
3522
3525
  case he.text:
3523
3526
  return /* @__PURE__ */ i(
3524
3527
  "div",
@@ -3533,7 +3536,7 @@ const Ae = ({
3533
3536
  }
3534
3537
  )
3535
3538
  },
3536
- `${a.code}${c}`
3539
+ `${a.code}${l}`
3537
3540
  );
3538
3541
  case he.password:
3539
3542
  return /* @__PURE__ */ i(
@@ -3549,7 +3552,7 @@ const Ae = ({
3549
3552
  }
3550
3553
  )
3551
3554
  },
3552
- `${a.code}${c}`
3555
+ `${a.code}${l}`
3553
3556
  );
3554
3557
  case he.select:
3555
3558
  return /* @__PURE__ */ i(
@@ -3565,7 +3568,7 @@ const Ae = ({
3565
3568
  }
3566
3569
  )
3567
3570
  },
3568
- `${a.code}${c}`
3571
+ `${a.code}${l}`
3569
3572
  );
3570
3573
  case he.radioList:
3571
3574
  return /* @__PURE__ */ i(
@@ -3581,7 +3584,7 @@ const Ae = ({
3581
3584
  }
3582
3585
  )
3583
3586
  },
3584
- `${a.code}${c}`
3587
+ `${a.code}${l}`
3585
3588
  );
3586
3589
  case he.rankingSlider:
3587
3590
  return /* @__PURE__ */ i(
@@ -3597,10 +3600,10 @@ const Ae = ({
3597
3600
  }
3598
3601
  )
3599
3602
  },
3600
- `${a.code}${c}`
3603
+ `${a.code}${l}`
3601
3604
  );
3602
3605
  default:
3603
- return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("h4", { children: "Default" }) }, `${a.code}${c}`);
3606
+ return /* @__PURE__ */ i("div", { children: /* @__PURE__ */ i("h4", { children: "Default" }) }, `${a.code}${l}`);
3604
3607
  }
3605
3608
  }) });
3606
3609
  }, io = ({
@@ -3614,8 +3617,8 @@ const Ae = ({
3614
3617
  generalError: t,
3615
3618
  errorColor: r = "red",
3616
3619
  submitButtonLabel: a = "Submit",
3617
- submitButtonStyles: c = { width: 325 },
3618
- activeCategory: l = null,
3620
+ submitButtonStyles: l = { width: 325 },
3621
+ activeCategory: c = null,
3619
3622
  // If provided, only the category with this categoryId will be displayed.
3620
3623
  onSubmit: u = (g) => console.log("Form submitted with data: ", g)
3621
3624
  }) => {
@@ -3631,7 +3634,7 @@ const Ae = ({
3631
3634
  "div",
3632
3635
  {
3633
3636
  style: {
3634
- display: l && m.categoryId !== l ? "none" : "inherit",
3637
+ display: c && m.categoryId !== c ? "none" : "inherit",
3635
3638
  width: "100%"
3636
3639
  },
3637
3640
  children: /* @__PURE__ */ i(
@@ -3657,7 +3660,7 @@ const Ae = ({
3657
3660
  {
3658
3661
  style: {
3659
3662
  width: "100%",
3660
- display: l && m.categoryId !== l ? "none" : "flex",
3663
+ display: c && m.categoryId !== c ? "none" : "flex",
3661
3664
  flexDirection: "column"
3662
3665
  },
3663
3666
  children: [
@@ -3687,7 +3690,7 @@ const Ae = ({
3687
3690
  ) }, `inputKey${h}`);
3688
3691
  }) }),
3689
3692
  /* @__PURE__ */ p("div", { className: Ve.buttonContainer, children: [
3690
- /* @__PURE__ */ i($e, { containerStyles: c, type: "submit", children: y(a) }),
3693
+ /* @__PURE__ */ i($e, { containerStyles: l, type: "submit", children: y(a) }),
3691
3694
  /* @__PURE__ */ i(_e, { errorMessage: t, errorColor: r })
3692
3695
  ] })
3693
3696
  ] });
@@ -3718,7 +3721,7 @@ const Ae = ({
3718
3721
  d && /* @__PURE__ */ i("img", { src: d, alt: "icon", className: G.icon }),
3719
3722
  /* @__PURE__ */ i("p", { className: G.message, children: s }),
3720
3723
  o && /* @__PURE__ */ i("p", { className: G.submessage, children: o }),
3721
- t.length > 0 && /* @__PURE__ */ i("div", { className: G.buttonsContainer, children: t.map((c, l) => /* @__PURE__ */ i("div", { className: G.buttonWrapper, children: c }, l)) })
3724
+ t.length > 0 && /* @__PURE__ */ i("div", { className: G.buttonsContainer, children: t.map((l, c) => /* @__PURE__ */ i("div", { className: G.buttonWrapper, children: l }, c)) })
3722
3725
  ]
3723
3726
  }
3724
3727
  ) });
@@ -3848,25 +3851,25 @@ const Cs = "_switchContainer_194wl_2", fs = "_labelRight_194wl_9", bs = "_labelL
3848
3851
  labelRight: t,
3849
3852
  defValue: r = !1,
3850
3853
  colorOn: a = "#5A514D",
3851
- disabled: c = !1,
3852
- width: l = 240
3853
- } = n, { t: u } = $(), { control: g } = d || {}, [C, b] = T(r), y = (m, h) => /* @__PURE__ */ p("div", { className: de.switchContainer, style: { width: `${l}px` }, children: [
3854
+ disabled: l = !1,
3855
+ width: c = 240
3856
+ } = n, { t: u } = $(), { control: g } = d || {}, [C, b] = T(r), y = (m, h) => /* @__PURE__ */ p("div", { className: de.switchContainer, style: { width: `${c}px` }, children: [
3854
3857
  o && /* @__PURE__ */ i(
3855
3858
  "span",
3856
3859
  {
3857
3860
  className: de.labelLeft,
3858
- style: { width: `${(l - 74) / 2}px` },
3861
+ style: { width: `${(c - 74) / 2}px` },
3859
3862
  children: u(o)
3860
3863
  }
3861
3864
  ),
3862
- /* @__PURE__ */ p("label", { className: `${de.switch} ${c ? de.disabled : ""}`, children: [
3865
+ /* @__PURE__ */ p("label", { className: `${de.switch} ${l ? de.disabled : ""}`, children: [
3863
3866
  /* @__PURE__ */ i(
3864
3867
  "input",
3865
3868
  {
3866
3869
  type: "checkbox",
3867
3870
  checked: !!m,
3868
3871
  onChange: () => h(!m),
3869
- disabled: c
3872
+ disabled: l
3870
3873
  }
3871
3874
  ),
3872
3875
  /* @__PURE__ */ i(
@@ -3879,7 +3882,7 @@ const Cs = "_switchContainer_194wl_2", fs = "_labelRight_194wl_9", bs = "_labelL
3879
3882
  }
3880
3883
  )
3881
3884
  ] }),
3882
- t && /* @__PURE__ */ i("span", { className: de.labelRight, style: { width: `${(l - 74) / 2}px` }, children: u(t) })
3885
+ t && /* @__PURE__ */ i("span", { className: de.labelRight, style: { width: `${(c - 74) / 2}px` }, children: u(t) })
3883
3886
  ] });
3884
3887
  return d ? /* @__PURE__ */ i(
3885
3888
  be,
@@ -3916,7 +3919,7 @@ const ws = "_header_13kbt_2", xs = "_leftComponents_13kbt_13", Ns = "_centerComp
3916
3919
  zIndex: t = 10,
3917
3920
  height: r = 60,
3918
3921
  backgroundColor: a = "#605B56",
3919
- isFooter: c = !1
3922
+ isFooter: l = !1
3920
3923
  // If true, it will apply footer styles
3921
3924
  }) => /* @__PURE__ */ p(
3922
3925
  "div",
@@ -3927,13 +3930,13 @@ const ws = "_header_13kbt_2", xs = "_leftComponents_13kbt_13", Ns = "_centerComp
3927
3930
  zIndex: t,
3928
3931
  height: r,
3929
3932
  backgroundColor: a,
3930
- top: c ? "auto" : 0,
3931
- bottom: c ? 0 : "auto"
3933
+ top: l ? "auto" : 0,
3934
+ bottom: l ? 0 : "auto"
3932
3935
  },
3933
3936
  children: [
3934
- /* @__PURE__ */ i("div", { className: te.leftComponents, children: d.map((l, u) => /* @__PURE__ */ i("div", { className: te.componentsContainer, children: l }, u)) }),
3935
- /* @__PURE__ */ i("div", { className: te.centerComponents, children: s.map((l, u) => /* @__PURE__ */ i("div", { className: te.componentsContainer, children: l }, u)) }),
3936
- /* @__PURE__ */ i("div", { className: te.rightComponents, children: o.map((l, u) => /* @__PURE__ */ i("div", { className: te.componentsContainer, children: l }, u)) })
3937
+ /* @__PURE__ */ i("div", { className: te.leftComponents, children: d.map((c, u) => /* @__PURE__ */ i("div", { className: te.componentsContainer, children: c }, u)) }),
3938
+ /* @__PURE__ */ i("div", { className: te.centerComponents, children: s.map((c, u) => /* @__PURE__ */ i("div", { className: te.componentsContainer, children: c }, u)) }),
3939
+ /* @__PURE__ */ i("div", { className: te.rightComponents, children: o.map((c, u) => /* @__PURE__ */ i("div", { className: te.componentsContainer, children: c }, u)) })
3937
3940
  ]
3938
3941
  }
3939
3942
  );