@tmf_ciclica/ciclicastorybook 1.1.106 → 1.1.108

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
@@ -44,14 +44,14 @@ const Ht = "_ambitSelector_mcunf_2", Ut = "_header_mcunf_13", Gt = "_nameDateCon
44
44
  fontColor: l,
45
45
  moreInfo: c
46
46
  }) => {
47
- const { nom: u, created_at: m, id: g, isBeingProcessed: _ } = n;
47
+ const { nom: u, created_at: m, id: h, isBeingProcessed: y } = n;
48
48
  return /* @__PURE__ */ p(
49
49
  "div",
50
50
  {
51
51
  className: ce.ambitItem,
52
52
  style: { borderBottom: `1px solid ${l}` },
53
53
  children: [
54
- /* @__PURE__ */ p("div", { className: ce.ambitNameDate, onClick: () => t(g), children: [
54
+ /* @__PURE__ */ p("div", { className: ce.ambitNameDate, onClick: () => t(h), children: [
55
55
  /* @__PURE__ */ p("div", { className: ce.ambitName, children: [
56
56
  /* @__PURE__ */ s(
57
57
  "img",
@@ -65,10 +65,10 @@ const Ht = "_ambitSelector_mcunf_2", Ut = "_header_mcunf_13", Gt = "_nameDateCon
65
65
  /* @__PURE__ */ s("div", { className: ce.ambitDate, children: m ? new Date(m).toLocaleDateString() : "" })
66
66
  ] }),
67
67
  /* @__PURE__ */ p("div", { className: ce.ambitButtons, children: [
68
- _ && /* @__PURE__ */ s("img", { src: l2 }),
69
- /* @__PURE__ */ s("button", { onClick: () => o(g), disabled: n.is_default, children: /* @__PURE__ */ s("img", { src: a2 }) }),
70
- /* @__PURE__ */ s("button", { onClick: () => d(g), children: /* @__PURE__ */ s("img", { src: r2 }) }),
71
- /* @__PURE__ */ s("button", { onClick: () => i(g), disabled: n.is_default, children: /* @__PURE__ */ s("img", { src: s2 }) })
68
+ y && /* @__PURE__ */ s("img", { src: l2 }),
69
+ /* @__PURE__ */ s("button", { onClick: () => o(h), disabled: n.is_default, children: /* @__PURE__ */ s("img", { src: a2 }) }),
70
+ /* @__PURE__ */ s("button", { onClick: () => d(h), children: /* @__PURE__ */ s("img", { src: r2 }) }),
71
+ /* @__PURE__ */ s("button", { onClick: () => i(h), disabled: n.is_default, children: /* @__PURE__ */ s("img", { src: s2 }) })
72
72
  ] })
73
73
  ]
74
74
  }
@@ -127,19 +127,19 @@ const Ze = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
127
127
  buttonContainerStyles: l = {},
128
128
  containerStyles: c = {},
129
129
  onCLickNewAmbit: u = () => console.log("New ambit clicked"),
130
- onClickCopy: m = (C) => console.log(`Copy ambit: ${C}`),
131
- onCLickDelete: g = (C) => console.log(`Delete ambit: ${C}`),
132
- onClickFilters: _ = (C) => console.log(`Filters clicked: ${C}`),
133
- onClickAmbit: b = (C) => console.log(`OnCLickAmbit: ${C}`)
130
+ onClickCopy: m = (g) => console.log(`Copy ambit: ${g}`),
131
+ onCLickDelete: h = (g) => console.log(`Delete ambit: ${g}`),
132
+ onClickFilters: y = (g) => console.log(`Filters clicked: ${g}`),
133
+ onClickAmbit: b = (g) => console.log(`OnCLickAmbit: ${g}`)
134
134
  }) => {
135
- const { t: C } = k(), [f, h] = D(n);
135
+ const { t: g } = k(), [f, C] = D(n);
136
136
  M(() => {
137
- n && h(n);
137
+ n && C(n);
138
138
  }, [n]);
139
- const y = (v) => {
139
+ const _ = (v) => {
140
140
  if (f && f.length > 0) {
141
141
  let w = [...f];
142
- w.sort((x, N) => x[v].localeCompare(N[v])), h(w);
142
+ w.sort((x, N) => x[v].localeCompare(N[v])), C(w);
143
143
  }
144
144
  };
145
145
  return /* @__PURE__ */ p(
@@ -155,12 +155,12 @@ const Ze = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
155
155
  style: { borderBottom: `1px solid ${i}` },
156
156
  children: [
157
157
  /* @__PURE__ */ p("div", { className: U.nameDateContainer, children: [
158
- /* @__PURE__ */ s("div", { className: U.ambitName, children: /* @__PURE__ */ p("button", { onClick: () => y("name"), children: [
159
- /* @__PURE__ */ s("span", { children: C(t) }),
158
+ /* @__PURE__ */ s("div", { className: U.ambitName, children: /* @__PURE__ */ p("button", { onClick: () => _("name"), children: [
159
+ /* @__PURE__ */ s("span", { children: g(t) }),
160
160
  /* @__PURE__ */ s("img", { src: Ze })
161
161
  ] }) }),
162
- /* @__PURE__ */ s("div", { className: U.ambitDate, children: /* @__PURE__ */ p("button", { onClick: () => y("date"), children: [
163
- /* @__PURE__ */ s("span", { children: C(r) }),
162
+ /* @__PURE__ */ s("div", { className: U.ambitDate, children: /* @__PURE__ */ p("button", { onClick: () => _("date"), children: [
163
+ /* @__PURE__ */ s("span", { children: g(r) }),
164
164
  /* @__PURE__ */ s("img", { src: Ze })
165
165
  ] }) })
166
166
  ] }),
@@ -176,8 +176,8 @@ const Ze = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
176
176
  fontColor: i,
177
177
  activeColor: o,
178
178
  onClickCopy: m,
179
- onClickDelete: g,
180
- onClickFilters: _,
179
+ onClickDelete: h,
180
+ onClickFilters: y,
181
181
  onClickAmbit: b
182
182
  },
183
183
  `ambitKey${v.id}`
@@ -188,7 +188,7 @@ const Ze = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
188
188
  style: { ...l },
189
189
  onClick: u,
190
190
  borderColor: "grey",
191
- children: C(a)
191
+ children: g(a)
192
192
  }
193
193
  ) })
194
194
  ]
@@ -256,13 +256,13 @@ const k2 = ({
256
256
  const {
257
257
  icon: u,
258
258
  activeIcon: m,
259
- isActive: g,
260
- name: _,
259
+ isActive: h,
260
+ name: y,
261
261
  onClick: b
262
- } = l, C = /* @__PURE__ */ p(Te, { children: [
263
- i && o === "left" && /* @__PURE__ */ s("span", { className: W.buttonName, children: a(_) }),
264
- /* @__PURE__ */ s("img", { src: g ? m : u, alt: a(_) }),
265
- i && o === "right" && /* @__PURE__ */ s("span", { className: W.buttonName, children: a(_) })
262
+ } = l, g = /* @__PURE__ */ p(Te, { children: [
263
+ i && o === "left" && /* @__PURE__ */ s("span", { className: W.buttonName, children: a(y) }),
264
+ /* @__PURE__ */ s("img", { src: h ? m : u, alt: a(y) }),
265
+ i && o === "right" && /* @__PURE__ */ s("span", { className: W.buttonName, children: a(y) })
266
266
  ] });
267
267
  return /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
268
268
  /* @__PURE__ */ s(
@@ -270,11 +270,11 @@ const k2 = ({
270
270
  {
271
271
  onClick: b,
272
272
  className: `${W.button}
273
- ${g && W.active}`,
274
- children: C
273
+ ${h && W.active}`,
274
+ children: g
275
275
  }
276
276
  ),
277
- t && /* @__PURE__ */ s(ee, { text: _, position: r })
277
+ t && /* @__PURE__ */ s(ee, { text: y, position: r })
278
278
  ] }, c);
279
279
  })
280
280
  }
@@ -373,7 +373,7 @@ const Ai = () => /* @__PURE__ */ s("div", { children: "EditAmbit" }), $2 = "data
373
373
  const { t: a } = k(), { tematicalFiltersSelected: l } = F((u) => u), c = (u) => {
374
374
  F.setState((m) => ({
375
375
  tematicalFiltersSelected: m.tematicalFiltersSelected.filter(
376
- (g) => g.code !== u
376
+ (h) => h.code !== u
377
377
  )
378
378
  }));
379
379
  };
@@ -526,8 +526,8 @@ let Ae = function(n) {
526
526
  t.setState({ pending: !0 });
527
527
  const c = t.getTouchPosition(l);
528
528
  if (t.isScrolling === void 0) {
529
- const g = c[0] - t.startPosition[0], _ = c[1] - t.startPosition[1];
530
- t.isScrolling = Math.abs(_) > Math.abs(g);
529
+ const h = c[0] - t.startPosition[0], y = c[1] - t.startPosition[1];
530
+ t.isScrolling = Math.abs(y) > Math.abs(h);
531
531
  }
532
532
  if (t.isScrolling) return void t.setState({ index: -1 });
533
533
  const u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
@@ -593,13 +593,13 @@ let Ae = function(n) {
593
593
  }, 0);
594
594
  t.pendingResizeTimeouts.push(l);
595
595
  }, t.renderThumb = (l, c) => {
596
- const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), m = { ref: (_) => {
597
- t["thumb" + c] = _;
598
- }, key: t.props.thumbClassName + "-" + c, className: u, style: l, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, g = { index: c, value: ge(t.state.value), valueNow: t.state.value[c] };
599
- return t.props.ariaValuetext && (m["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(g)), t.props.renderThumb(m, g);
596
+ const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), m = { ref: (y) => {
597
+ t["thumb" + c] = y;
598
+ }, key: t.props.thumbClassName + "-" + c, className: u, style: l, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, h = { index: c, value: ge(t.state.value), valueNow: t.state.value[c] };
599
+ return t.props.ariaValuetext && (m["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(h)), t.props.renderThumb(m, h);
600
600
  }, t.renderTrack = (l, c, u) => {
601
- const m = { key: t.props.trackClassName + "-" + l, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + l, style: t.buildTrackStyle(c, t.state.upperBound - u) }, g = { index: l, value: ge(t.state.value) };
602
- return t.props.renderTrack(m, g);
601
+ const m = { key: t.props.trackClassName + "-" + l, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + l, style: t.buildTrackStyle(c, t.state.upperBound - u) }, h = { index: l, value: ge(t.state.value) };
602
+ return t.props.renderTrack(m, h);
603
603
  };
604
604
  let r = ke(o.value);
605
605
  r.length || (r = ke(o.defaultValue)), t.pendingResizeTimeouts = [];
@@ -654,8 +654,8 @@ let Ae = function(n) {
654
654
  }, i.resize = function() {
655
655
  const { slider: o, thumb0: t } = this;
656
656
  if (!o || !t) return;
657
- const r = this.sizeKey(), a = o.getBoundingClientRect(), l = o[r], c = a[this.posMaxKey()], u = a[this.posMinKey()], m = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], g = l - m, _ = Math.abs(c - u);
658
- this.state.upperBound === g && this.state.sliderLength === _ && this.state.thumbSize === m || this.setState({ upperBound: g, sliderLength: _, thumbSize: m });
657
+ const r = this.sizeKey(), a = o.getBoundingClientRect(), l = o[r], c = a[this.posMaxKey()], u = a[this.posMinKey()], m = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], h = l - m, y = Math.abs(c - u);
658
+ this.state.upperBound === h && this.state.sliderLength === y && this.state.thumbSize === m || this.setState({ upperBound: h, sliderLength: y, thumbSize: m });
659
659
  }, i.calcOffset = function(o) {
660
660
  const t = this.props.max - this.props.min;
661
661
  return t === 0 ? 0 : (o - this.props.min) / t * this.state.upperBound;
@@ -694,28 +694,28 @@ let Ae = function(n) {
694
694
  const t = this.state.value.slice(), { index: r } = this.state, { length: a } = t, l = t[r];
695
695
  if (o === l) return;
696
696
  this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
697
- const { pearling: c, max: u, min: m, minDistance: g } = this.props;
697
+ const { pearling: c, max: u, min: m, minDistance: h } = this.props;
698
698
  if (!c) {
699
699
  if (r > 0) {
700
- const _ = t[r - 1];
701
- o < _ + g && (o = _ + g);
700
+ const y = t[r - 1];
701
+ o < y + h && (o = y + h);
702
702
  }
703
703
  if (r < a - 1) {
704
- const _ = t[r + 1];
705
- o > _ - g && (o = _ - g);
704
+ const y = t[r + 1];
705
+ o > y - h && (o = y - h);
706
706
  }
707
707
  }
708
- t[r] = o, c && a > 1 && (o > l ? (this.pushSucceeding(t, g, r), function(_, b, C, f) {
709
- for (let h = 0; h < _; h += 1) {
710
- const y = f - h * C;
711
- b[_ - 1 - h] > y && (b[_ - 1 - h] = y);
708
+ t[r] = o, c && a > 1 && (o > l ? (this.pushSucceeding(t, h, r), function(y, b, g, f) {
709
+ for (let C = 0; C < y; C += 1) {
710
+ const _ = f - C * g;
711
+ b[y - 1 - C] > _ && (b[y - 1 - C] = _);
712
712
  }
713
- }(a, t, g, u)) : o < l && (this.pushPreceding(t, g, r), function(_, b, C, f) {
714
- for (let h = 0; h < _; h += 1) {
715
- const y = f + h * C;
716
- b[h] < y && (b[h] = y);
713
+ }(a, t, h, u)) : o < l && (this.pushPreceding(t, h, r), function(y, b, g, f) {
714
+ for (let C = 0; C < y; C += 1) {
715
+ const _ = f + C * g;
716
+ b[C] < _ && (b[C] = _);
717
717
  }
718
- }(a, t, g, m))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
718
+ }(a, t, h, m))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
719
719
  }, i.pushSucceeding = function(o, t, r) {
720
720
  let a, l;
721
721
  for (a = r, l = o[a] + t; o[a + 1] !== null && l > o[a + 1]; a += 1, l = o[a] + t) o[a + 1] = Ve(l, this.props);
@@ -788,8 +788,8 @@ const V2 = "_container_15vgv_2", A2 = "_unitLabel_15vgv_9", I2 = "_slider_15vgv_
788
788
  fontColor: a = "#605B56",
789
789
  defaultValue: l
790
790
  }) => {
791
- const { t: c } = k(), [u, m] = D([n, d]), g = (_) => {
792
- m(_), o == null || o({ min: _[0], max: _[1] });
791
+ const { t: c } = k(), [u, m] = D([n, d]), h = (y) => {
792
+ m(y), o == null || o({ min: y[0], max: y[1] });
793
793
  };
794
794
  return M(() => {
795
795
  l || m([n, d]);
@@ -810,7 +810,7 @@ const V2 = "_container_15vgv_2", A2 = "_unitLabel_15vgv_9", I2 = "_slider_15vgv_
810
810
  max: d,
811
811
  step: i,
812
812
  value: u,
813
- onAfterChange: g,
813
+ onAfterChange: h,
814
814
  withTracks: !0,
815
815
  pearling: !0,
816
816
  minDistance: 0.1
@@ -854,20 +854,20 @@ const E2 = "_tematicalFiltersInputContainer_1vm1r_2", P2 = "_inputTypeContainer_
854
854
  maxValue: c,
855
855
  unit: u,
856
856
  step: m
857
- } = n || {}, g = me(
857
+ } = n || {}, h = me(
858
858
  () => t == "cat" || i == "cat",
859
859
  [i, t]
860
- ), _ = me(
860
+ ), y = me(
861
861
  () => t == "abs" || i == "abs",
862
862
  [i, t]
863
863
  ), {
864
864
  tematicalFiltersSelected: b,
865
- selectedIndicator: C,
865
+ selectedIndicator: g,
866
866
  fontColor: f,
867
- inputsColor: h
868
- } = F((w) => w), y = (w) => {
867
+ inputsColor: C
868
+ } = F((w) => w), _ = (w) => {
869
869
  if (w) {
870
- const { min: x, max: N, valueClicked: S, allValues: $ } = w || {}, { code: E, type: A } = n || {}, H = _ ? "abs" : g ? "cat" : "both";
870
+ const { min: x, max: N, valueClicked: S, allValues: $ } = w || {}, { code: E, type: A } = n || {}, H = y ? "abs" : h ? "cat" : "both";
871
871
  let O = E[0];
872
872
  A == "both" && (O = H == "cat" ? E[1] : E[0]), H == "cat" ? F.setState((j) => {
873
873
  let z = j.tematicalFiltersSelected.find(
@@ -938,9 +938,9 @@ const E2 = "_tematicalFiltersInputContainer_1vm1r_2", P2 = "_inputTypeContainer_
938
938
  {
939
939
  titleFontStyles: { fontSize: 16, fontWeight: 400 },
940
940
  title: r,
941
- isOpen: C == `id${r}`,
941
+ isOpen: g == `id${r}`,
942
942
  onClick: () => F.setState(() => ({
943
- selectedIndicator: C == `id${r}` ? "" : `id${r}`
943
+ selectedIndicator: g == `id${r}` ? "" : `id${r}`
944
944
  })),
945
945
  showBottomBar: !1,
946
946
  height: 42,
@@ -967,8 +967,8 @@ const E2 = "_tematicalFiltersInputContainer_1vm1r_2", P2 = "_inputTypeContainer_
967
967
  },
968
968
  style: {
969
969
  marginRight: 4,
970
- backgroundColor: i == "abs" ? h : "white",
971
- border: `1.5px solid ${i == "abs" ? h : f}`
970
+ backgroundColor: i == "abs" ? C : "white",
971
+ border: `1.5px solid ${i == "abs" ? C : f}`
972
972
  }
973
973
  }
974
974
  ),
@@ -986,8 +986,8 @@ const E2 = "_tematicalFiltersInputContainer_1vm1r_2", P2 = "_inputTypeContainer_
986
986
  },
987
987
  style: {
988
988
  marginRight: 4,
989
- backgroundColor: i == "cat" ? h : "white",
990
- border: `1.5px solid ${i == "cat" ? h : f}`
989
+ backgroundColor: i == "cat" ? C : "white",
990
+ border: `1.5px solid ${i == "cat" ? C : f}`
991
991
  }
992
992
  }
993
993
  ),
@@ -996,22 +996,22 @@ const E2 = "_tematicalFiltersInputContainer_1vm1r_2", P2 = "_inputTypeContainer_
996
996
  ]
997
997
  }
998
998
  ),
999
- g && /* @__PURE__ */ s("div", { className: fe.checkboxContainer, children: a.map((w, x) => {
999
+ h && /* @__PURE__ */ s("div", { className: fe.checkboxContainer, children: a.map((w, x) => {
1000
1000
  var N;
1001
1001
  return /* @__PURE__ */ s(
1002
1002
  rt,
1003
1003
  {
1004
- onClick: () => y({ valueClicked: x, allValues: a }),
1004
+ onClick: () => _({ valueClicked: x, allValues: a }),
1005
1005
  indicator: w,
1006
1006
  value: ((N = v[n.code[t == "both" ? 1 : 0]]) == null ? void 0 : N.has(x)) || !v[n.code[t == "both" ? 1 : 0]]
1007
1007
  },
1008
1008
  `checkbox-${x}`
1009
1009
  );
1010
1010
  }) }),
1011
- _ && /* @__PURE__ */ s("div", { className: fe.absoluteSliderContainer, children: /* @__PURE__ */ s(
1011
+ y && /* @__PURE__ */ s("div", { className: fe.absoluteSliderContainer, children: /* @__PURE__ */ s(
1012
1012
  lt,
1013
1013
  {
1014
- onChange: y,
1014
+ onChange: _,
1015
1015
  min: l,
1016
1016
  max: c,
1017
1017
  unit: u,
@@ -1196,12 +1196,12 @@ const Z2 = "_FiltersAmbitContainer_1g9xx_2", K2 = "_FiltersAmbitHeader_1g9xx_7",
1196
1196
  saveAmbit: c,
1197
1197
  namePlaceholder: u,
1198
1198
  descPlaceholder: m,
1199
- filtersTypes: g = ["geographical", "tematical"],
1200
- nameRequiredText: _,
1199
+ filtersTypes: h = ["geographical", "tematical"],
1200
+ nameRequiredText: y,
1201
1201
  onlyFilters: b = !1
1202
1202
  //usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
1203
1203
  }) => {
1204
- const { t: C } = k(), { tematicalFiltersSelected: f } = F(($) => $), [h, y] = D(n || null), [v, w] = D(d || null), [x, N] = D(!1);
1204
+ const { t: g } = k(), { tematicalFiltersSelected: f } = F(($) => $), [C, _] = D(n || null), [v, w] = D(d || null), [x, N] = D(!1);
1205
1205
  M(() => {
1206
1206
  i && i.length > 0 && F.setState(($) => ({
1207
1207
  tematicalFiltersSelected: i
@@ -1210,7 +1210,7 @@ const Z2 = "_FiltersAmbitContainer_1g9xx_2", K2 = "_FiltersAmbitHeader_1g9xx_7",
1210
1210
  console.log("filtersSelected changed: ", f), l(f);
1211
1211
  }, [f]);
1212
1212
  const S = () => {
1213
- h ? c({ name: h, description: v }) : N(!0);
1213
+ C ? c({ name: C, description: v }) : N(!0);
1214
1214
  };
1215
1215
  return /* @__PURE__ */ p("div", { className: oe.FiltersAmbitContainer, children: [
1216
1216
  !b && /* @__PURE__ */ p("div", { className: oe.FiltersAmbitHeader, children: [
@@ -1219,10 +1219,10 @@ const Z2 = "_FiltersAmbitContainer_1g9xx_2", K2 = "_FiltersAmbitHeader_1g9xx_7",
1219
1219
  {
1220
1220
  type: "text",
1221
1221
  onChange: ($) => {
1222
- N(!1), y($.target.value);
1222
+ N(!1), _($.target.value);
1223
1223
  },
1224
- value: h,
1225
- placeholder: C(u)
1224
+ value: C,
1225
+ placeholder: g(u)
1226
1226
  }
1227
1227
  ) }),
1228
1228
  /* @__PURE__ */ s("div", { className: oe.FiltersAmbitDescription, children: /* @__PURE__ */ s("div", { className: oe.FiltersAmbitDescriptionTitle, children: /* @__PURE__ */ s(
@@ -1230,22 +1230,22 @@ const Z2 = "_FiltersAmbitContainer_1g9xx_2", K2 = "_FiltersAmbitHeader_1g9xx_7",
1230
1230
  {
1231
1231
  value: v,
1232
1232
  onChange: ($) => w($.target.value),
1233
- placeholder: C(m)
1233
+ placeholder: g(m)
1234
1234
  }
1235
1235
  ) }) })
1236
1236
  ] }),
1237
1237
  /* @__PURE__ */ s(
1238
1238
  ot,
1239
1239
  {
1240
- title: C("applied_filters"),
1240
+ title: g("applied_filters"),
1241
1241
  isOpen: !0,
1242
1242
  textColor: r || "#fff",
1243
1243
  backgroundColor: a || "#605B5680",
1244
1244
  activeColor: t
1245
1245
  }
1246
1246
  ),
1247
- g.includes("geographical") && /* @__PURE__ */ s(st, { activeColor: t }),
1248
- g.includes("tematical") && /* @__PURE__ */ s(
1247
+ h.includes("geographical") && /* @__PURE__ */ s(st, { activeColor: t }),
1248
+ h.includes("tematical") && /* @__PURE__ */ s(
1249
1249
  ut,
1250
1250
  {
1251
1251
  indicators: o,
@@ -1255,8 +1255,8 @@ const Z2 = "_FiltersAmbitContainer_1g9xx_2", K2 = "_FiltersAmbitHeader_1g9xx_7",
1255
1255
  activeColor: t
1256
1256
  }
1257
1257
  ),
1258
- x && /* @__PURE__ */ s("div", { className: oe.warning, children: C(_) }),
1259
- !b && /* @__PURE__ */ s("div", { className: "buttonContainer", children: /* @__PURE__ */ s(_e, { onClick: () => S(), children: C("save_ambit") }) })
1258
+ x && /* @__PURE__ */ s("div", { className: oe.warning, children: g(y) }),
1259
+ !b && /* @__PURE__ */ s("div", { className: "buttonContainer", children: /* @__PURE__ */ s(_e, { onClick: () => S(), children: g("save_ambit") }) })
1260
1260
  ] });
1261
1261
  };
1262
1262
  Y2.propTypes = {
@@ -1288,13 +1288,13 @@ const Q2 = "_barChartContainer_d2f1z_2", X2 = {
1288
1288
  numberOfDivisions: c = 7,
1289
1289
  maxValue: u = null
1290
1290
  }) => {
1291
- const { t: m } = k(), { xScale: g, ticks: _, height: b } = me(() => {
1291
+ const { t: m } = k(), { xScale: h, ticks: y, height: b } = me(() => {
1292
1292
  if (n && n.length > 0) {
1293
- const C = (n == null ? void 0 : n.length) * (i + o) + r * 2, f = ze.max(n, (v) => v.value) || 1, h = ze.scaleLinear().domain([0, u || f]).range([0, d - l]), y = Array.from({ length: c + 1 }, (v, w) => u ? u / c * w : f / c * w);
1293
+ const g = (n == null ? void 0 : n.length) * (i + o) + r * 2, f = ze.max(n, (v) => v.value) || 1, C = ze.scaleLinear().domain([0, u || f]).range([0, d - l]), _ = Array.from({ length: c + 1 }, (v, w) => u ? u / c * w : f / c * w);
1294
1294
  return {
1295
- xScale: h,
1296
- ticks: y,
1297
- height: C,
1295
+ xScale: C,
1296
+ ticks: _,
1297
+ height: g,
1298
1298
  width: d,
1299
1299
  verticalPaddign: r,
1300
1300
  horizontalPaddign: a
@@ -1312,9 +1312,9 @@ const Q2 = "_barChartContainer_d2f1z_2", X2 = {
1312
1312
  u
1313
1313
  ]);
1314
1314
  return /* @__PURE__ */ s("div", { className: X2.barChartContainer, children: /* @__PURE__ */ s("svg", { width: d + a * 2, height: b, children: /* @__PURE__ */ p("g", { transform: `translate(0,${o})`, children: [
1315
- /* @__PURE__ */ s("g", { transform: `translate(${l + a}, 0)`, children: _.map((C, f) => {
1316
- const h = g(C);
1317
- return /* @__PURE__ */ p("g", { transform: `translate(${h}, 0)`, children: [
1315
+ /* @__PURE__ */ s("g", { transform: `translate(${l + a}, 0)`, children: y.map((g, f) => {
1316
+ const C = h(g);
1317
+ return /* @__PURE__ */ p("g", { transform: `translate(${C}, 0)`, children: [
1318
1318
  /* @__PURE__ */ s(
1319
1319
  "line",
1320
1320
  {
@@ -1330,17 +1330,17 @@ const Q2 = "_barChartContainer_d2f1z_2", X2 = {
1330
1330
  textAnchor: "middle",
1331
1331
  fontSize: 10,
1332
1332
  fill: t,
1333
- children: parseInt(C)
1333
+ children: parseInt(g)
1334
1334
  }
1335
1335
  )
1336
1336
  ] }, f);
1337
1337
  }) }),
1338
- n && n.length > 0 && (n == null ? void 0 : n.map((C, f) => {
1339
- const h = g(C.value), y = f * (i + o);
1338
+ n && n.length > 0 && (n == null ? void 0 : n.map((g, f) => {
1339
+ const C = h(g.value), _ = f * (i + o);
1340
1340
  return /* @__PURE__ */ p(
1341
1341
  "g",
1342
1342
  {
1343
- transform: `translate(${l + a}, ${y})`,
1343
+ transform: `translate(${l + a}, ${_})`,
1344
1344
  children: [
1345
1345
  /* @__PURE__ */ s(
1346
1346
  "text",
@@ -1349,15 +1349,15 @@ const Q2 = "_barChartContainer_d2f1z_2", X2 = {
1349
1349
  y: i / 2 + 5,
1350
1350
  textAnchor: "end",
1351
1351
  fill: t,
1352
- children: m(C.title)
1352
+ children: m(g.title)
1353
1353
  }
1354
1354
  ),
1355
1355
  /* @__PURE__ */ s(
1356
1356
  "rect",
1357
1357
  {
1358
- width: h,
1358
+ width: C,
1359
1359
  height: i,
1360
- fill: C.color,
1360
+ fill: g.color,
1361
1361
  rx: 0
1362
1362
  }
1363
1363
  )
@@ -1467,15 +1467,15 @@ const n0 = "_indicatorsCategory_1cu33_2", i0 = "_title_1cu33_5", o0 = "_list_1cu
1467
1467
  multiple: l = !1,
1468
1468
  onChangeType: c
1469
1469
  }) => {
1470
- const { t: u } = k(), { name: m, type: g } = n, [_, b] = D(!1);
1470
+ const { t: u } = k(), { name: m, type: h, disabled: y } = n, [b, g] = D(!1);
1471
1471
  M(() => {
1472
- t && b(
1472
+ t && g(
1473
1473
  l ? t.some(
1474
- (h) => h.name == String(m)
1474
+ (_) => _.name == String(m)
1475
1475
  ) : t.name == m
1476
1476
  );
1477
1477
  }, [t]);
1478
- const C = () => /* @__PURE__ */ s("div", { className: T.switchExternalContainer, children: /* @__PURE__ */ s("div", { className: T.switchType, children: /* @__PURE__ */ p("div", { className: T.switchTypeOptions, children: [
1478
+ const f = () => /* @__PURE__ */ s("div", { className: T.switchExternalContainer, children: /* @__PURE__ */ s("div", { className: T.switchType, children: /* @__PURE__ */ p("div", { className: T.switchTypeOptions, children: [
1479
1479
  /* @__PURE__ */ p(
1480
1480
  "div",
1481
1481
  {
@@ -1534,7 +1534,7 @@ const n0 = "_indicatorsCategory_1cu33_2", i0 = "_title_1cu33_5", o0 = "_list_1cu
1534
1534
  ]
1535
1535
  }
1536
1536
  )
1537
- ] }) }) }), f = () => /* @__PURE__ */ s("div", { className: T.switchExternalContainer, children: /* @__PURE__ */ s("div", { className: T.switchType, children: /* @__PURE__ */ s("div", { className: T.switchTypeOptions, children: d.map((h, y) => /* @__PURE__ */ p(
1537
+ ] }) }) }), C = () => /* @__PURE__ */ s("div", { className: T.switchExternalContainer, children: /* @__PURE__ */ s("div", { className: T.switchType, children: /* @__PURE__ */ s("div", { className: T.switchTypeOptions, children: d.map((_, v) => /* @__PURE__ */ p(
1538
1538
  "div",
1539
1539
  {
1540
1540
  className: T.optionContainer,
@@ -1545,23 +1545,24 @@ const n0 = "_indicatorsCategory_1cu33_2", i0 = "_title_1cu33_5", o0 = "_list_1cu
1545
1545
  className: T.customRadious
1546
1546
  }
1547
1547
  ),
1548
- /* @__PURE__ */ s("h4", { children: u(h.unit) })
1548
+ /* @__PURE__ */ s("h4", { children: u(_.unit) })
1549
1549
  ]
1550
1550
  },
1551
- y
1551
+ v
1552
1552
  )) }) }) });
1553
1553
  return /* @__PURE__ */ p("div", { className: T.indicatorContainer, children: [
1554
1554
  /* @__PURE__ */ p(
1555
1555
  "div",
1556
1556
  {
1557
1557
  className: T.indicatorNameContainer,
1558
- onClick: () => a({ indicator: n }),
1558
+ onClick: () => !y && a({ indicator: n }),
1559
1559
  children: [
1560
1560
  /* @__PURE__ */ s(
1561
1561
  "div",
1562
1562
  {
1563
1563
  style: {
1564
- border: _ ? `1px solid ${i}` : `1px solid ${o}`
1564
+ border: b ? `1px solid ${i}` : `1px solid ${o}`,
1565
+ opacity: y ? 0.5 : 1
1565
1566
  },
1566
1567
  className: T.dot
1567
1568
  }
@@ -1570,15 +1571,25 @@ const n0 = "_indicatorsCategory_1cu33_2", i0 = "_title_1cu33_5", o0 = "_list_1cu
1570
1571
  "h4",
1571
1572
  {
1572
1573
  className: T.indicatorName,
1573
- style: { color: _ ? i : o },
1574
- children: /* @__PURE__ */ s(Re, { i18nKey: m, components: { sup: /* @__PURE__ */ s("sup", {}) }, shouldUnescape: !0 })
1574
+ style: {
1575
+ color: b ? i : o,
1576
+ opacity: y ? 0.5 : 1
1577
+ },
1578
+ children: /* @__PURE__ */ s(
1579
+ Re,
1580
+ {
1581
+ i18nKey: m,
1582
+ components: { sup: /* @__PURE__ */ s("sup", {}) },
1583
+ shouldUnescape: !0
1584
+ }
1585
+ )
1575
1586
  }
1576
1587
  )
1577
1588
  ]
1578
1589
  }
1579
1590
  ),
1580
- (t == null ? void 0 : t.name) === m && g === "both" && /* @__PURE__ */ s("div", { children: C() }),
1581
- (t == null ? void 0 : t.name) === m && g === "twoUnits" && /* @__PURE__ */ s("div", { children: f() })
1591
+ (t == null ? void 0 : t.name) === m && h === "both" && /* @__PURE__ */ s("div", { children: f() }),
1592
+ (t == null ? void 0 : t.name) === m && h === "twoUnits" && /* @__PURE__ */ s("div", { children: C() })
1582
1593
  ] });
1583
1594
  };
1584
1595
  Pe.propTypes = {
@@ -1608,11 +1619,11 @@ const g0 = "_indicatorsSubCategory_1dzsi_2", C0 = "_list_1dzsi_8", Ue = {
1608
1619
  onClickIndicator: c,
1609
1620
  multiple: u,
1610
1621
  activeIndicatorType: m,
1611
- onChangeType: g
1622
+ onChangeType: h
1612
1623
  }) => {
1613
- const { t: _ } = k(), [b, C] = D(!1);
1624
+ const { t: y } = k(), [b, g] = D(!1);
1614
1625
  return M(() => {
1615
- C(t == a);
1626
+ g(t == a);
1616
1627
  }, [t, a]), /* @__PURE__ */ p(
1617
1628
  qe.div,
1618
1629
  {
@@ -1627,11 +1638,11 @@ const g0 = "_indicatorsSubCategory_1dzsi_2", C0 = "_list_1dzsi_8", Ue = {
1627
1638
  "span",
1628
1639
  {
1629
1640
  style: { marginLeft: 12, color: b ? o : i },
1630
- children: _(n)
1641
+ children: y(n)
1631
1642
  }
1632
1643
  )
1633
1644
  ] }) }),
1634
- d && /* @__PURE__ */ s("div", { className: Ue.list, children: d == null ? void 0 : d.map((f, h) => /* @__PURE__ */ s(
1645
+ d && /* @__PURE__ */ s("div", { className: Ue.list, children: d == null ? void 0 : d.map((f, C) => /* @__PURE__ */ s(
1635
1646
  Pe,
1636
1647
  {
1637
1648
  indicator: f,
@@ -1641,9 +1652,9 @@ const g0 = "_indicatorsSubCategory_1dzsi_2", C0 = "_list_1dzsi_8", Ue = {
1641
1652
  onClickIndicator: c,
1642
1653
  multiple: u,
1643
1654
  activeIndicatorType: m,
1644
- onChangeType: g
1655
+ onChangeType: h
1645
1656
  },
1646
- "indicator" + h
1657
+ "indicator" + C
1647
1658
  )) })
1648
1659
  ]
1649
1660
  }
@@ -1673,11 +1684,11 @@ const ht = ({
1673
1684
  activeIndicator: c,
1674
1685
  onClickIndicator: u,
1675
1686
  multiple: m,
1676
- activeIndicatorType: g,
1677
- onChangeType: _
1687
+ activeIndicatorType: h,
1688
+ onChangeType: y
1678
1689
  }) => {
1679
- var h;
1680
- const { t: b } = k(), [C, f] = D(!1);
1690
+ var C;
1691
+ const { t: b } = k(), [g, f] = D(!1);
1681
1692
  return M(() => {
1682
1693
  f(r === d);
1683
1694
  }, [r, d]), /* @__PURE__ */ p(
@@ -1685,31 +1696,31 @@ const ht = ({
1685
1696
  {
1686
1697
  className: Be.indicatorsCategory,
1687
1698
  initial: { height: "53px" },
1688
- animate: { height: C ? "auto" : "53px" },
1699
+ animate: { height: g ? "auto" : "53px" },
1689
1700
  transition: { duration: 0.4 },
1690
1701
  style: {
1691
1702
  backgroundColor: "white",
1692
- borderBottom: C ? `1px solid ${i}` : "0px",
1693
- marginBottom: C ? "20px" : "0px"
1703
+ borderBottom: g ? `1px solid ${i}` : "0px",
1704
+ marginBottom: g ? "20px" : "0px"
1694
1705
  },
1695
1706
  children: [
1696
1707
  /* @__PURE__ */ p("h2", { className: `${Be.title}`, onClick: () => t(d), children: [
1697
- /* @__PURE__ */ s("span", { style: { color: C ? i : o }, children: C ? "-" : "+" }),
1708
+ /* @__PURE__ */ s("span", { style: { color: g ? i : o }, children: g ? "-" : "+" }),
1698
1709
  /* @__PURE__ */ s(
1699
1710
  "span",
1700
1711
  {
1701
- style: { marginLeft: 12, color: C ? i : o },
1712
+ style: { marginLeft: 12, color: g ? i : o },
1702
1713
  children: b(n.name)
1703
1714
  }
1704
1715
  )
1705
1716
  ] }),
1706
1717
  n.subcategories ? n.subcategories.map(
1707
- ({ name: y, subcategory: v, indicators: w }, x) => /* @__PURE__ */ s(
1718
+ ({ name: _, subcategory: v, indicators: w }, x) => /* @__PURE__ */ s(
1708
1719
  mt,
1709
1720
  {
1710
1721
  id: v,
1711
1722
  activeSubCategory: a,
1712
- subcName: y,
1723
+ subcName: _,
1713
1724
  onClickSubCategory: l,
1714
1725
  activeIndicator: c,
1715
1726
  onClickIndicator: u,
@@ -1717,23 +1728,23 @@ const ht = ({
1717
1728
  activeColor: i,
1718
1729
  defaultColor: o,
1719
1730
  indicators: w,
1720
- activeIndicatorType: g,
1721
- onChangeType: _
1731
+ activeIndicatorType: h,
1732
+ onChangeType: y
1722
1733
  },
1723
1734
  `subcKey ${x}`
1724
1735
  )
1725
- ) : /* @__PURE__ */ s("div", { className: Be.list, children: (h = n.indicators) == null ? void 0 : h.map((y, v) => /* @__PURE__ */ s(
1736
+ ) : /* @__PURE__ */ s("div", { className: Be.list, children: (C = n.indicators) == null ? void 0 : C.map((_, v) => /* @__PURE__ */ s(
1726
1737
  Pe,
1727
1738
  {
1728
- indicator: y,
1729
- values: y.type == "twoUnits" && y.values,
1739
+ indicator: _,
1740
+ values: _.type == "twoUnits" && _.values,
1730
1741
  activeColor: i,
1731
1742
  defaultColor: o,
1732
1743
  activeIndicator: c,
1733
1744
  onClickIndicator: u,
1734
1745
  multiple: m,
1735
- activeIndicatorType: g,
1736
- onChangeType: _
1746
+ activeIndicatorType: h,
1747
+ onChangeType: y
1737
1748
  },
1738
1749
  `indicator${v}`
1739
1750
  )) })
@@ -1772,20 +1783,20 @@ const f0 = "_indicatorsList_fklyu_2", b0 = "_title_fklyu_6", Ge = {
1772
1783
  changeIndType: a,
1773
1784
  activeIndicatorType: l
1774
1785
  }) => {
1775
- const { t: c } = k(), [u, m] = D(), [g, _] = D(), [b, C] = D(), f = (x) => {
1786
+ const { t: c } = k(), [u, m] = D(), [h, y] = D(), [b, g] = D(), f = (x) => {
1776
1787
  m(u == x ? null : x);
1777
- }, h = (x) => {
1778
- _(g == x ? null : x);
1779
- }, y = ({ indicator: x }) => {
1788
+ }, C = (x) => {
1789
+ y(h == x ? null : x);
1790
+ }, _ = ({ indicator: x }) => {
1780
1791
  console.log("onClickIndicator: ", x), v(x);
1781
1792
  }, v = (x) => {
1782
1793
  if (!t)
1783
- C(
1794
+ g(
1784
1795
  (b == null ? void 0 : b.name) == x.name ? null : x
1785
1796
  );
1786
1797
  else {
1787
1798
  let N = b && b.length > 0 ? [...b] : [];
1788
- C(
1799
+ g(
1789
1800
  N != null && N.some(
1790
1801
  (S) => S.name == x.name
1791
1802
  ) ? N.filter(
@@ -1800,7 +1811,7 @@ const f0 = "_indicatorsList_fklyu_2", b0 = "_title_fklyu_6", Ge = {
1800
1811
  if (r && !b)
1801
1812
  if (t && r && Array.isArray(r)) {
1802
1813
  let x = b && b.length > 0 ? [...b] : [];
1803
- C([...x, ...r]), w(r[0].name);
1814
+ g([...x, ...r]), w(r[0].name);
1804
1815
  } else
1805
1816
  v(r), w(r.name);
1806
1817
  }, []);
@@ -1811,7 +1822,7 @@ const f0 = "_indicatorsList_fklyu_2", b0 = "_title_fklyu_6", Ge = {
1811
1822
  (E) => E.indicators.find((A) => A.name == x)
1812
1823
  );
1813
1824
  if ($)
1814
- return _($.subcategory), $;
1825
+ return y($.subcategory), $;
1815
1826
  } else
1816
1827
  return S.indicators.some(($) => $.name == x);
1817
1828
  });
@@ -1826,9 +1837,9 @@ const f0 = "_indicatorsList_fklyu_2", b0 = "_title_fklyu_6", Ge = {
1826
1837
  cat: x,
1827
1838
  onClickCategory: f,
1828
1839
  activeCategory: u,
1829
- onClickSubCategory: h,
1830
- activeSubCategory: g,
1831
- onClickIndicator: y,
1840
+ onClickSubCategory: C,
1841
+ activeSubCategory: h,
1842
+ onClickIndicator: _,
1832
1843
  activeIndicator: b,
1833
1844
  activeColor: d,
1834
1845
  defaultColor: i,
@@ -1950,11 +1961,11 @@ const B0 = "_legendContainer_qs4x9_3", S0 = "_closeButton_qs4x9_31", $0 = "_titl
1950
1961
  children: [
1951
1962
  /* @__PURE__ */ s("button", { className: L.closeButton, onClick: c }),
1952
1963
  d && /* @__PURE__ */ s("div", { className: L.titleContainer, style: { marginBottom: (!i || i.length == 0) && "15px" }, children: /* @__PURE__ */ s("h2", { children: d }) }),
1953
- i && i.length > 0 && /* @__PURE__ */ s("div", { className: L.infoContainer, children: /* @__PURE__ */ s("ul", { children: i.map(({ title: m, value: g }) => /* @__PURE__ */ p("li", { children: [
1964
+ i && i.length > 0 && /* @__PURE__ */ s("div", { className: L.infoContainer, children: /* @__PURE__ */ s("ul", { children: i.map(({ title: m, value: h }) => /* @__PURE__ */ p("li", { children: [
1954
1965
  /* @__PURE__ */ s("h3", { className: L.title, children: `${m}:` }),
1955
1966
  /* @__PURE__ */ p("span", { className: L.value, children: [
1956
1967
  "  ",
1957
- g
1968
+ h
1958
1969
  ] })
1959
1970
  ] }, d)) }) }),
1960
1971
  /* @__PURE__ */ s("h3", { className: L.titleLegendList, style: { marginTop: i && i.length > 0 && "30px" }, children: t && /* @__PURE__ */ s(Re, { i18nKey: t, components: { sup: /* @__PURE__ */ s("sup", {}) }, shouldUnescape: !0 }) }),
@@ -1987,12 +1998,12 @@ const B0 = "_legendContainer_qs4x9_3", S0 = "_closeButton_qs4x9_31", $0 = "_titl
1987
1998
  ] })
1988
1999
  ] })
1989
2000
  ] }) : o && o.length > 0 && /* @__PURE__ */ s("div", { className: L.gridContainer, children: o.map(
1990
- ({ title: m, color: g }) => /* @__PURE__ */ p("div", { className: L.elementLegendContainer, children: [
2001
+ ({ title: m, color: h }) => /* @__PURE__ */ p("div", { className: L.elementLegendContainer, children: [
1991
2002
  /* @__PURE__ */ s(
1992
2003
  "div",
1993
2004
  {
1994
2005
  className: L.colorDot,
1995
- style: { backgroundColor: g }
2006
+ style: { backgroundColor: h }
1996
2007
  }
1997
2008
  ),
1998
2009
  /* @__PURE__ */ p("div", { className: L.titleLegendElement, children: [
@@ -2075,19 +2086,19 @@ const H0 = ({
2075
2086
  sources: u = [],
2076
2087
  layers: m = []
2077
2088
  }) => {
2078
- const g = te(), [_, b] = D(null), C = St((f) => f.mapState.showTexts);
2089
+ const h = te(), [y, b] = D(null), g = St((f) => f.mapState.showTexts);
2079
2090
  return M(() => {
2080
- if (g.current) {
2081
- const f = g.current.getMap();
2082
- f.getStyle().layers.map((y) => {
2083
- y.type == "symbol" && y.id != "professionals" && (C ? f.setLayoutProperty(y.id, "visibility", "visible") : f.setLayoutProperty(y.id, "visibility", "none"));
2091
+ if (h.current) {
2092
+ const f = h.current.getMap();
2093
+ f.getStyle().layers.map((_) => {
2094
+ _.type == "symbol" && _.id != "professionals" && (g ? f.setLayoutProperty(_.id, "visibility", "visible") : f.setLayoutProperty(_.id, "visibility", "none"));
2084
2095
  });
2085
2096
  }
2086
- }, [C]), /* @__PURE__ */ s("div", { className: `${K0.mapContainer}`, style: r, children: /* @__PURE__ */ p(
2097
+ }, [g]), /* @__PURE__ */ s("div", { className: `${K0.mapContainer}`, style: r, children: /* @__PURE__ */ p(
2087
2098
  Dt,
2088
2099
  {
2089
2100
  initialViewState: n,
2090
- ref: g,
2101
+ ref: h,
2091
2102
  hash: !1,
2092
2103
  maxZoom: d,
2093
2104
  minZoom: i,
@@ -2095,25 +2106,25 @@ const H0 = ({
2095
2106
  onClick: a,
2096
2107
  interactiveLayerIds: l,
2097
2108
  children: [
2098
- u.length && u.map((f, h) => /* @__PURE__ */ s(
2109
+ u.length && u.map((f, C) => /* @__PURE__ */ s(
2099
2110
  Mt,
2100
2111
  {
2101
2112
  ...f,
2102
- children: m.length && m.map((y, v) => {
2103
- if (y.sourceId == f.id) return /* @__PURE__ */ s(
2113
+ children: m.length && m.map((_, v) => {
2114
+ if (_.sourceId == f.id) return /* @__PURE__ */ s(
2104
2115
  Lt,
2105
2116
  {
2106
- ...y.layer,
2117
+ ..._.layer,
2107
2118
  beforeId: t
2108
2119
  },
2109
2120
  v
2110
2121
  );
2111
2122
  })
2112
2123
  },
2113
- h
2124
+ C
2114
2125
  )),
2115
2126
  /* @__PURE__ */ s(Tt, { position: "bottom-right", visualizePitch: !0 }),
2116
- c && _ && /* @__PURE__ */ s(
2127
+ c && y && /* @__PURE__ */ s(
2117
2128
  Ft,
2118
2129
  {
2119
2130
  longitude: c.longitude,
@@ -2202,17 +2213,17 @@ const U0 = "_mapContainer_b0pyr_3", G0 = {
2202
2213
  sources: c = [],
2203
2214
  layers: u = [],
2204
2215
  filters: m,
2205
- popUpParams: g,
2206
- onClosePopUp: _,
2216
+ popUpParams: h,
2217
+ onClosePopUp: y,
2207
2218
  showTexts: b
2208
2219
  }) => {
2209
2220
  console.log(m);
2210
- const C = te();
2221
+ const g = te();
2211
2222
  return M(() => {
2212
- if (C.current) {
2213
- const f = C.current.getMap();
2214
- f.getStyle().layers.map((y) => {
2215
- y.type == "symbol" && y.id != "professionals" && (b ? f.setLayoutProperty(y.id, "visibility", "visible") : f.setLayoutProperty(y.id, "visibility", "none"));
2223
+ if (g.current) {
2224
+ const f = g.current.getMap();
2225
+ f.getStyle().layers.map((_) => {
2226
+ _.type == "symbol" && _.id != "professionals" && (b ? f.setLayoutProperty(_.id, "visibility", "visible") : f.setLayoutProperty(_.id, "visibility", "none"));
2216
2227
  });
2217
2228
  }
2218
2229
  }, [b]), M(() => {
@@ -2225,7 +2236,7 @@ const U0 = "_mapContainer_b0pyr_3", G0 = {
2225
2236
  {
2226
2237
  mapLib: xe,
2227
2238
  initialViewState: n,
2228
- ref: C,
2239
+ ref: g,
2229
2240
  hash: !1,
2230
2241
  maxZoom: d,
2231
2242
  minZoom: i,
@@ -2233,15 +2244,15 @@ const U0 = "_mapContainer_b0pyr_3", G0 = {
2233
2244
  onClick: a,
2234
2245
  interactiveLayerIds: l,
2235
2246
  children: [
2236
- c.length && c.map((f, h) => /* @__PURE__ */ s(
2247
+ c.length && c.map((f, C) => /* @__PURE__ */ s(
2237
2248
  It,
2238
2249
  {
2239
2250
  ...f,
2240
- children: u.length && u.map((y, v) => {
2241
- if (y.sourceId == f.id) return /* @__PURE__ */ s(
2251
+ children: u.length && u.map((_, v) => {
2252
+ if (_.sourceId == f.id) return /* @__PURE__ */ s(
2242
2253
  Ot,
2243
2254
  {
2244
- ...y.layer,
2255
+ ..._.layer,
2245
2256
  beforeId: t,
2246
2257
  filter: m && m
2247
2258
  },
@@ -2249,16 +2260,16 @@ const U0 = "_mapContainer_b0pyr_3", G0 = {
2249
2260
  );
2250
2261
  })
2251
2262
  },
2252
- h
2263
+ C
2253
2264
  )),
2254
2265
  /* @__PURE__ */ s(Rt, { position: "bottom-right", visualizePitch: !0 }),
2255
- g && /* @__PURE__ */ s(
2266
+ h && /* @__PURE__ */ s(
2256
2267
  qt,
2257
2268
  {
2258
- longitude: g.lng,
2259
- latitude: g.lat,
2260
- onClose: _,
2261
- children: /* @__PURE__ */ s(Q0, { props: g.props })
2269
+ longitude: h.lng,
2270
+ latitude: h.lat,
2271
+ onClose: y,
2272
+ children: /* @__PURE__ */ s(Q0, { props: h.props })
2262
2273
  }
2263
2274
  )
2264
2275
  ]
@@ -2366,18 +2377,18 @@ const J0 = "_sectionBar_1egwc_2", en = "_leftContent_1egwc_14", tn = "_textConta
2366
2377
  sliderOpen: un,
2367
2378
  sliderResults: pn
2368
2379
  }, mn = ({ onResults: n = !1, defaultYear: d = 2025, firstYear: i = 2025, lastYear: o = 2050, zIndex: t = 10, rightBarOpen: r = !1 }) => {
2369
- const [a, l] = D(d), c = $t(), u = (y, v) => {
2380
+ const [a, l] = D(d), c = $t(), u = (_, v) => {
2370
2381
  l(v), c(Se(v - 2e3));
2371
- }, [m, g] = D(!1), _ = () => {
2372
- g(!0);
2382
+ }, [m, h] = D(!1), y = () => {
2383
+ h(!0);
2373
2384
  }, b = () => {
2374
- g(!1);
2385
+ h(!1);
2375
2386
  };
2376
- ((y, v) => {
2387
+ ((_, v) => {
2377
2388
  const w = te();
2378
2389
  M(() => {
2379
- w.current = y;
2380
- }, [y]), M(() => {
2390
+ w.current = _;
2391
+ }, [_]), M(() => {
2381
2392
  function x() {
2382
2393
  w.current();
2383
2394
  }
@@ -2411,7 +2422,7 @@ const J0 = "_sectionBar_1egwc_2", en = "_leftContent_1egwc_14", tn = "_textConta
2411
2422
  }
2412
2423
  }
2413
2424
  }
2414
- }), h = [
2425
+ }), C = [
2415
2426
  { label: "", value: 2025 },
2416
2427
  { label: "", value: 2032 },
2417
2428
  { label: "", value: 2041 },
@@ -2432,7 +2443,7 @@ const J0 = "_sectionBar_1egwc_2", en = "_leftContent_1egwc_14", tn = "_textConta
2432
2443
  value: a,
2433
2444
  valueLabelDisplay: "on",
2434
2445
  step: 1,
2435
- marks: h,
2446
+ marks: C,
2436
2447
  min: i,
2437
2448
  max: o,
2438
2449
  onChange: u,
@@ -2441,7 +2452,7 @@ const J0 = "_sectionBar_1egwc_2", en = "_leftContent_1egwc_14", tn = "_textConta
2441
2452
  }
2442
2453
  ),
2443
2454
  o,
2444
- !m && /* @__PURE__ */ s("button", { className: de.playButton, onClick: _, children: /* @__PURE__ */ s("img", { src: an, alt: "Play" }) }),
2455
+ !m && /* @__PURE__ */ s("button", { className: de.playButton, onClick: y, children: /* @__PURE__ */ s("img", { src: an, alt: "Play" }) }),
2445
2456
  m && /* @__PURE__ */ s("button", { className: de.playButton, onClick: b, children: /* @__PURE__ */ s("img", { src: ln, alt: "Pause" }) })
2446
2457
  ]
2447
2458
  }
@@ -2586,7 +2597,7 @@ const zn = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2586
2597
  defaultTooltip: u,
2587
2598
  showEye: m = !0
2588
2599
  }) => {
2589
- const { nom: g, created_at: _, id: b, isBeingProcessed: C } = n, [f, h] = D(!1), { t: y } = k();
2600
+ const { nom: h, created_at: y, id: b, isBeingProcessed: g } = n, [f, C] = D(!1), { t: _ } = k();
2590
2601
  return /* @__PURE__ */ p(
2591
2602
  "div",
2592
2603
  {
@@ -2602,8 +2613,8 @@ const zn = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2602
2613
  alt: "eye"
2603
2614
  }
2604
2615
  )),
2605
- /* @__PURE__ */ s("span", { style: { color: i ? o : t }, children: g })
2606
- ] }) }) : v == "data" ? /* @__PURE__ */ s("div", { className: P.elementDate, children: _ ? new Date(_).toLocaleDateString() : "" }) : /* @__PURE__ */ s("div", { className: P.elementDate, children: n[v] })) }),
2616
+ /* @__PURE__ */ s("span", { style: { color: i ? o : t }, children: h })
2617
+ ] }) }) : v == "data" ? /* @__PURE__ */ s("div", { className: P.elementDate, children: y ? new Date(y).toLocaleDateString() : "" }) : /* @__PURE__ */ s("div", { className: P.elementDate, children: n[v] })) }),
2607
2618
  /* @__PURE__ */ p("div", { className: P.elementButtons, children: [
2608
2619
  n.processing && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2609
2620
  /* @__PURE__ */ s("img", { src: En }),
@@ -2628,9 +2639,9 @@ const zn = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2628
2639
  ] }),
2629
2640
  r && /* @__PURE__ */ s("div", { className: P.break }),
2630
2641
  r && /* @__PURE__ */ p("div", { className: P.moreInfoContainer, children: [
2631
- /* @__PURE__ */ p("div", { className: P.moreInfo, onClick: () => h(!f), children: [
2642
+ /* @__PURE__ */ p("div", { className: P.moreInfo, onClick: () => C(!f), children: [
2632
2643
  /* @__PURE__ */ s("span", { children: f ? "-" : "+" }),
2633
- y(r.label)
2644
+ _(r.label)
2634
2645
  ] }),
2635
2646
  r && f && /* @__PURE__ */ s("div", { className: P.moreInfoInfo, children: n[r.info] })
2636
2647
  ] })
@@ -2683,27 +2694,27 @@ const Xe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2683
2694
  containerStyles: r = {},
2684
2695
  newElementButton: a,
2685
2696
  //{label: 'text', onClick: function(), disabled}/null
2686
- onClickElement: l = (C) => console.log(`OnCLickElement: ${C}`),
2697
+ onClickElement: l = (g) => console.log(`OnCLickElement: ${g}`),
2687
2698
  columns: c,
2688
2699
  // {'nom': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
2689
2700
  elementButtons: u,
2690
2701
  //{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
2691
2702
  moreInfo: m = !1,
2692
2703
  //{label: 'x'}
2693
- processTooltip: g,
2704
+ processTooltip: h,
2694
2705
  //texto para el tooltip del simbolo "En proceso"
2695
- defaultTooltip: _,
2706
+ defaultTooltip: y,
2696
2707
  //texto para el tooltip del símbolo de candado para los elementos default
2697
2708
  showEye: b = !0
2698
2709
  }) => {
2699
- const { t: C } = k(), [f, h] = D(n);
2710
+ const { t: g } = k(), [f, C] = D(n);
2700
2711
  M(() => {
2701
- n && h(n);
2712
+ n && C(n);
2702
2713
  }, [n]);
2703
- const y = (v) => {
2714
+ const _ = (v) => {
2704
2715
  if (f && f.length > 0) {
2705
2716
  let w = [...f];
2706
- w.sort((x, N) => x[v].localeCompare(N[v])), h(w);
2717
+ w.sort((x, N) => x[v].localeCompare(N[v])), C(w);
2707
2718
  }
2708
2719
  };
2709
2720
  return /* @__PURE__ */ p(
@@ -2718,13 +2729,13 @@ const Xe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2718
2729
  className: Z.header,
2719
2730
  style: { borderBottom: `1px solid ${i}` },
2720
2731
  children: [
2721
- /* @__PURE__ */ s("div", { className: Z.nameDateContainer, children: Object.keys(c).map((v) => v === "nom" ? /* @__PURE__ */ s("div", { className: Z.elementName, children: /* @__PURE__ */ p("button", { onClick: () => y("name"), children: [
2722
- /* @__PURE__ */ s("span", { children: C(c.nom) }),
2732
+ /* @__PURE__ */ s("div", { className: Z.nameDateContainer, children: Object.keys(c).map((v) => v === "nom" ? /* @__PURE__ */ s("div", { className: Z.elementName, children: /* @__PURE__ */ p("button", { onClick: () => _("name"), children: [
2733
+ /* @__PURE__ */ s("span", { children: g(c.nom) }),
2723
2734
  /* @__PURE__ */ s("img", { src: Xe, alt: "order arrow" })
2724
- ] }) }, v) : v === "data" ? /* @__PURE__ */ s("div", { className: Z.elementDate, children: /* @__PURE__ */ p("button", { onClick: () => y("date"), children: [
2725
- /* @__PURE__ */ s("span", { children: C(c.data) }),
2735
+ ] }) }, v) : v === "data" ? /* @__PURE__ */ s("div", { className: Z.elementDate, children: /* @__PURE__ */ p("button", { onClick: () => _("date"), children: [
2736
+ /* @__PURE__ */ s("span", { children: g(c.data) }),
2726
2737
  /* @__PURE__ */ s("img", { src: Xe, alt: "order arrow" })
2727
- ] }) }, v) : /* @__PURE__ */ s("div", { className: Z.elementDate, children: /* @__PURE__ */ s("span", { children: C(c[v]) }) }, v)) }),
2738
+ ] }) }, v) : /* @__PURE__ */ s("div", { className: Z.elementDate, children: /* @__PURE__ */ s("span", { children: g(c[v]) }) }, v)) }),
2728
2739
  /* @__PURE__ */ s("div", { className: Z.buttonsContainer })
2729
2740
  ]
2730
2741
  }
@@ -2740,8 +2751,8 @@ const Xe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2740
2751
  columns: c,
2741
2752
  elementButtons: u,
2742
2753
  moreInfo: m,
2743
- processTooltip: g,
2744
- defaultTooltip: _,
2754
+ processTooltip: h,
2755
+ defaultTooltip: y,
2745
2756
  showEye: b
2746
2757
  },
2747
2758
  `elementKey${v.id}`
@@ -2753,7 +2764,7 @@ const Xe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2753
2764
  onClick: a.onClick,
2754
2765
  borderColor: "grey",
2755
2766
  disabled: a.disabled || !1,
2756
- children: C(a.label)
2767
+ children: g(a.label)
2757
2768
  }
2758
2769
  ) })
2759
2770
  ]
@@ -2933,7 +2944,7 @@ function d1(n) {
2933
2944
  ...n.rules,
2934
2945
  value: l,
2935
2946
  ...De(n.disabled) ? { disabled: n.disabled } : {}
2936
- })), g = B.useMemo(() => Object.defineProperties({}, {
2947
+ })), h = B.useMemo(() => Object.defineProperties({}, {
2937
2948
  invalid: {
2938
2949
  enumerable: !0,
2939
2950
  get: () => !!I(c.errors, i)
@@ -2954,9 +2965,9 @@ function d1(n) {
2954
2965
  enumerable: !0,
2955
2966
  get: () => I(c.errors, i)
2956
2967
  }
2957
- }), [c, i]), _ = B.useCallback((h) => m.current.onChange({
2968
+ }), [c, i]), y = B.useCallback((C) => m.current.onChange({
2958
2969
  target: {
2959
- value: Jn(h),
2970
+ value: Jn(C),
2960
2971
  name: i
2961
2972
  },
2962
2973
  type: et.CHANGE
@@ -2966,38 +2977,38 @@ function d1(n) {
2966
2977
  name: i
2967
2978
  },
2968
2979
  type: et.BLUR
2969
- }), [i, t._formValues]), C = B.useCallback((h) => {
2970
- const y = I(t._fields, i);
2971
- y && h && (y._f.ref = {
2972
- focus: () => h.focus && h.focus(),
2973
- select: () => h.select && h.select(),
2974
- setCustomValidity: (v) => h.setCustomValidity(v),
2975
- reportValidity: () => h.reportValidity()
2980
+ }), [i, t._formValues]), g = B.useCallback((C) => {
2981
+ const _ = I(t._fields, i);
2982
+ _ && C && (_._f.ref = {
2983
+ focus: () => C.focus && C.focus(),
2984
+ select: () => C.select && C.select(),
2985
+ setCustomValidity: (v) => C.setCustomValidity(v),
2986
+ reportValidity: () => C.reportValidity()
2976
2987
  });
2977
2988
  }, [t._fields, i]), f = B.useMemo(() => ({
2978
2989
  name: i,
2979
2990
  value: l,
2980
2991
  ...De(o) || c.disabled ? { disabled: c.disabled || o } : {},
2981
- onChange: _,
2992
+ onChange: y,
2982
2993
  onBlur: b,
2983
- ref: C
2984
- }), [i, o, c.disabled, _, b, C, l]);
2994
+ ref: g
2995
+ }), [i, o, c.disabled, y, b, g, l]);
2985
2996
  return B.useEffect(() => {
2986
- const h = t._options.shouldUnregister || r;
2997
+ const C = t._options.shouldUnregister || r;
2987
2998
  t.register(i, {
2988
2999
  ...u.current.rules,
2989
3000
  ...De(u.current.disabled) ? { disabled: u.current.disabled } : {}
2990
3001
  });
2991
- const y = (v, w) => {
3002
+ const _ = (v, w) => {
2992
3003
  const x = I(t._fields, v);
2993
3004
  x && x._f && (x._f.mount = w);
2994
3005
  };
2995
- if (y(i, !0), h) {
3006
+ if (_(i, !0), C) {
2996
3007
  const v = ft(I(t._options.defaultValues, i));
2997
3008
  Je(t._defaultValues, i, v), Oe(I(t._formValues, i)) && Je(t._formValues, i, v);
2998
3009
  }
2999
3010
  return !a && t.register(i), () => {
3000
- (a ? h && !t._state.action : h) ? t.unregister(i) : y(i, !1);
3011
+ (a ? C && !t._state.action : C) ? t.unregister(i) : _(i, !1);
3001
3012
  };
3002
3013
  }, [i, t, a, r]), B.useEffect(() => {
3003
3014
  t._setDisabledField({
@@ -3007,8 +3018,8 @@ function d1(n) {
3007
3018
  }, [o, i, t]), B.useMemo(() => ({
3008
3019
  field: f,
3009
3020
  formState: c,
3010
- fieldState: g
3011
- }), [f, c, g]);
3021
+ fieldState: h
3022
+ }), [f, c, h]);
3012
3023
  }
3013
3024
  const ye = (n) => n.render(d1(n)), u1 = "_errorMessage_1xiyb_2", p1 = {
3014
3025
  errorMessage: u1
@@ -3037,20 +3048,20 @@ const ye = (n) => n.render(d1(n)), u1 = "_errorMessage_1xiyb_2", p1 = {
3037
3048
  placeholder: c,
3038
3049
  errorColor: u = "red",
3039
3050
  width: m = 325,
3040
- onClickForgotPass: g = () => {
3051
+ onClickForgotPass: h = () => {
3041
3052
  console.log("Click on forgot password");
3042
3053
  },
3043
- forgotPassLabel: _ = "forgot-password"
3044
- } = n, { t: b } = k(), { control: C, trigger: f, clearErrors: h } = d, [y, v] = D(!1), w = te(a);
3054
+ forgotPassLabel: y = "forgot-password"
3055
+ } = n, { t: b } = k(), { control: g, trigger: f, clearErrors: C } = d, [_, v] = D(!1), w = te(a);
3045
3056
  M(() => {
3046
- w.current !== a && (a ? f(i) : h(i), w.current = a);
3047
- }, [a, i, f, h]);
3048
- const x = () => o ? o === "password" && y ? "text" : o : "text";
3057
+ w.current !== a && (a ? f(i) : C(i), w.current = a);
3058
+ }, [a, i, f, C]);
3059
+ const x = () => o ? o === "password" && _ ? "text" : o : "text";
3049
3060
  return /* @__PURE__ */ s(
3050
3061
  ye,
3051
3062
  {
3052
3063
  name: i,
3053
- control: C,
3064
+ control: g,
3054
3065
  rules: {
3055
3066
  required: a ? `${b(t)} ${b("errorMessages.required")}` : !1,
3056
3067
  maxLength: r || void 0,
@@ -3082,16 +3093,16 @@ const ye = (n) => n.render(d1(n)), u1 = "_errorMessage_1xiyb_2", p1 = {
3082
3093
  o == "password" && /* @__PURE__ */ s(
3083
3094
  "button",
3084
3095
  {
3085
- onClick: () => v(!y),
3096
+ onClick: () => v(!_),
3086
3097
  type: "button",
3087
3098
  className: pe.showPasswordButton,
3088
- children: y ? "🙈" : "👁️"
3099
+ children: _ ? "🙈" : "👁️"
3089
3100
  }
3090
3101
  )
3091
3102
  ]
3092
3103
  }
3093
3104
  ),
3094
- o == "password" && /* @__PURE__ */ s("div", { className: pe.forgotPassButton, children: /* @__PURE__ */ s("button", { onClick: g, children: b(_) }) }),
3105
+ o == "password" && /* @__PURE__ */ s("div", { className: pe.forgotPassButton, children: /* @__PURE__ */ s("button", { onClick: h, children: b(y) }) }),
3095
3106
  /* @__PURE__ */ s(
3096
3107
  ve,
3097
3108
  {
@@ -3127,24 +3138,24 @@ const ye = (n) => n.render(d1(n)), u1 = "_errorMessage_1xiyb_2", p1 = {
3127
3138
  placeholder: c,
3128
3139
  errorColor: u = "red",
3129
3140
  width: m = 325,
3130
- options: g = []
3131
- } = n, { t: _ } = k(), { control: b, trigger: C, clearErrors: f } = d, h = te(a);
3141
+ options: h = []
3142
+ } = n, { t: y } = k(), { control: b, trigger: g, clearErrors: f } = d, C = te(a);
3132
3143
  return M(() => {
3133
- h.current !== a && (a ? C(i) : f(i), h.current = a);
3134
- }, [a, i, C, f]), /* @__PURE__ */ s(
3144
+ C.current !== a && (a ? g(i) : f(i), C.current = a);
3145
+ }, [a, i, g, f]), /* @__PURE__ */ s(
3135
3146
  ye,
3136
3147
  {
3137
3148
  name: i,
3138
3149
  control: b,
3139
3150
  rules: {
3140
- required: a ? `${_(t)} ${_("errorMessages.required")}` : !1,
3151
+ required: a ? `${y(t)} ${y("errorMessages.required")}` : !1,
3141
3152
  validate: l || void 0
3142
3153
  },
3143
- render: ({ field: y, fieldState: v }) => {
3154
+ render: ({ field: _, fieldState: v }) => {
3144
3155
  var w;
3145
3156
  return /* @__PURE__ */ p("div", { className: ae.selectInputContainer, children: [
3146
3157
  /* @__PURE__ */ p("h3", { className: ae.labelContainer, children: [
3147
- _(t),
3158
+ y(t),
3148
3159
  " ",
3149
3160
  a && /* @__PURE__ */ s("label", { style: { color: v.error ? u : "" }, children: "*" })
3150
3161
  ] }),
@@ -3152,20 +3163,20 @@ const ye = (n) => n.render(d1(n)), u1 = "_errorMessage_1xiyb_2", p1 = {
3152
3163
  /* @__PURE__ */ p(
3153
3164
  "select",
3154
3165
  {
3155
- ...y,
3166
+ ..._,
3156
3167
  onChange: (x) => {
3157
- const N = x.target.value, S = g.every(($) => typeof $.value == "number") ? Number(N) : N;
3158
- y.onChange(S);
3168
+ const N = x.target.value, S = h.every(($) => typeof $.value == "number") ? Number(N) : N;
3169
+ _.onChange(S);
3159
3170
  },
3160
3171
  className: ae.selectInput,
3161
3172
  children: [
3162
- /* @__PURE__ */ s("option", { value: "", disabled: !0, hidden: !0, children: _(c || "selectOption") }),
3163
- g.map((x, N) => /* @__PURE__ */ s(
3173
+ /* @__PURE__ */ s("option", { value: "", disabled: !0, hidden: !0, children: y(c || "selectOption") }),
3174
+ h.map((x, N) => /* @__PURE__ */ s(
3164
3175
  "option",
3165
3176
  {
3166
3177
  value: x.value,
3167
3178
  className: ae.option,
3168
- children: _(x.label)
3179
+ children: y(x.label)
3169
3180
  },
3170
3181
  N
3171
3182
  ))
@@ -3208,27 +3219,27 @@ const ye = (n) => n.render(d1(n)), u1 = "_errorMessage_1xiyb_2", p1 = {
3208
3219
  errorColor: a = "red",
3209
3220
  options: l = [],
3210
3221
  multi: c = !1
3211
- } = n, { t: u } = k(), { control: m, trigger: g, clearErrors: _ } = d, b = ({ options: h, onChange: y, actualValue: v }) => {
3222
+ } = n, { t: u } = k(), { control: m, trigger: h, clearErrors: y } = d, b = ({ options: C, onChange: _, actualValue: v }) => {
3212
3223
  if (c && v && v.length > 0) {
3213
- let w = v.filter((x) => x !== h);
3214
- y(w);
3224
+ let w = v.filter((x) => x !== C);
3225
+ _(w);
3215
3226
  }
3216
- }, C = ({ options: h, onChange: y, actualValue: v }) => {
3217
- c ? v && v.length > 0 ? y([...v, h]) : y([h]) : y(h);
3227
+ }, g = ({ options: C, onChange: _, actualValue: v }) => {
3228
+ c ? v && v.length > 0 ? _([...v, C]) : _([C]) : _(C);
3218
3229
  }, f = te(t);
3219
3230
  return M(() => {
3220
- f.current !== t && (t ? g(i) : _(i), f.current = t);
3221
- }, [t, i, g, _]), /* @__PURE__ */ s(
3231
+ f.current !== t && (t ? h(i) : y(i), f.current = t);
3232
+ }, [t, i, h, y]), /* @__PURE__ */ s(
3222
3233
  ye,
3223
3234
  {
3224
3235
  control: m,
3225
3236
  name: i,
3226
3237
  rules: {
3227
- validate: (h) => t && (h == null || h === "") ? `${u(o)} ${u("errorMessages.required")}` : null
3238
+ validate: (C) => t && (C == null || C === "") ? `${u(o)} ${u("errorMessages.required")}` : null
3228
3239
  },
3229
3240
  render: ({
3230
- formState: { errors: h },
3231
- field: { onChange: y, onBlur: v, value: w, ref: x },
3241
+ formState: { errors: C },
3242
+ field: { onChange: _, onBlur: v, value: w, ref: x },
3232
3243
  fieldState: N
3233
3244
  }) => {
3234
3245
  var S;
@@ -3270,12 +3281,12 @@ const ye = (n) => n.render(d1(n)), u1 = "_errorMessage_1xiyb_2", p1 = {
3270
3281
  c ? j ? b({
3271
3282
  actualValue: w,
3272
3283
  options: l,
3273
- onChange: y
3274
- }) : C({
3284
+ onChange: _
3285
+ }) : g({
3275
3286
  actualValue: w,
3276
3287
  options: l,
3277
- onChange: y
3278
- }) : y(E);
3288
+ onChange: _
3289
+ }) : _(E);
3279
3290
  },
3280
3291
  className: X.radioInput
3281
3292
  }
@@ -3319,20 +3330,20 @@ const ye = (n) => n.render(d1(n)), u1 = "_errorMessage_1xiyb_2", p1 = {
3319
3330
  trackColors: u = ["#B32F5D", "#EFEFEF"],
3320
3331
  // [ LEFT, RIGHT ],
3321
3332
  required: m,
3322
- errorColor: g = "red",
3323
- width: _ = 265,
3333
+ errorColor: h = "red",
3334
+ width: y = 265,
3324
3335
  minText: b,
3325
- maxText: C
3326
- } = n, { t: f } = k(), { control: h, trigger: y, clearErrors: v } = d, w = te(m);
3336
+ maxText: g
3337
+ } = n, { t: f } = k(), { control: C, trigger: _, clearErrors: v } = d, w = te(m);
3327
3338
  M(() => {
3328
- w.current !== m && (m ? y(i) : v(i), w.current = m);
3329
- }, [m, i, y, v]);
3339
+ w.current !== m && (m ? _(i) : v(i), w.current = m);
3340
+ }, [m, i, _, v]);
3330
3341
  const [x, N] = D(3), S = Array.from({ length: a - r + 1 }, ($, E) => r + E);
3331
3342
  return /* @__PURE__ */ s(
3332
3343
  ye,
3333
3344
  {
3334
3345
  name: i,
3335
- control: h,
3346
+ control: C,
3336
3347
  rules: {
3337
3348
  // required: required
3338
3349
  // ? `${t(label)} ${t("errorMessages.required")}`
@@ -3345,7 +3356,7 @@ const ye = (n) => n.render(d1(n)), u1 = "_errorMessage_1xiyb_2", p1 = {
3345
3356
  f(t),
3346
3357
  " "
3347
3358
  ] }),
3348
- /* @__PURE__ */ p("div", { className: q.inputContainer, style: { width: _ }, children: [
3359
+ /* @__PURE__ */ p("div", { className: q.inputContainer, style: { width: y }, children: [
3349
3360
  /* @__PURE__ */ s(
3350
3361
  at,
3351
3362
  {
@@ -3390,7 +3401,7 @@ const ye = (n) => n.render(d1(n)), u1 = "_errorMessage_1xiyb_2", p1 = {
3390
3401
  /* @__PURE__ */ s("div", { className: q.labels, children: S.map((A) => /* @__PURE__ */ s("span", { children: A }, A)) }),
3391
3402
  /* @__PURE__ */ p("div", { className: q.labels, children: [
3392
3403
  /* @__PURE__ */ s("span", { className: q.labelsText, children: f(b) }),
3393
- /* @__PURE__ */ s("span", { className: q.labelsText, children: f(C) })
3404
+ /* @__PURE__ */ s("span", { className: q.labelsText, children: f(g) })
3394
3405
  ] })
3395
3406
  ] })
3396
3407
  ] })
@@ -3513,37 +3524,37 @@ const ye = (n) => n.render(d1(n)), u1 = "_errorMessage_1xiyb_2", p1 = {
3513
3524
  }) => {
3514
3525
  const {
3515
3526
  handleSubmit: m,
3516
- control: g,
3517
- formState: { errors: _ }
3527
+ control: h,
3528
+ formState: { errors: y }
3518
3529
  } = n, { t: b } = k();
3519
3530
  return (
3520
3531
  /* "handleSubmit" will validate your inputs before invoking "onSubmit" */
3521
3532
  /* @__PURE__ */ p("form", { className: Me.formContainer, onSubmit: m(u), children: [
3522
- /* @__PURE__ */ s("div", { className: Me.formObjectContainer, children: d && d.map((C, f) => {
3523
- const { inputs: h } = C;
3524
- return C.category ? i ? /* @__PURE__ */ s(
3533
+ /* @__PURE__ */ s("div", { className: Me.formObjectContainer, children: d && d.map((g, f) => {
3534
+ const { inputs: C } = g;
3535
+ return g.category ? i ? /* @__PURE__ */ s(
3525
3536
  "div",
3526
3537
  {
3527
3538
  style: {
3528
- display: c && C.categoryId !== c ? "none" : "inherit",
3539
+ display: c && g.categoryId !== c ? "none" : "inherit",
3529
3540
  width: "100%"
3530
3541
  },
3531
3542
  children: /* @__PURE__ */ s(
3532
3543
  i,
3533
3544
  {
3534
- title: C.category,
3545
+ title: g.category,
3535
3546
  children: /* @__PURE__ */ s(
3536
3547
  Le,
3537
3548
  {
3538
- inputs: h,
3539
- control: g,
3549
+ inputs: C,
3550
+ control: h,
3540
3551
  inputContainerStyles: o,
3541
3552
  errorColor: r,
3542
3553
  formInstance: n
3543
3554
  }
3544
3555
  )
3545
3556
  },
3546
- `${C.category}${f}`
3557
+ `${g.category}${f}`
3547
3558
  )
3548
3559
  }
3549
3560
  ) : /* @__PURE__ */ p(
@@ -3551,16 +3562,16 @@ const ye = (n) => n.render(d1(n)), u1 = "_errorMessage_1xiyb_2", p1 = {
3551
3562
  {
3552
3563
  style: {
3553
3564
  width: "100%",
3554
- display: c && C.categoryId !== c ? "none" : "flex",
3565
+ display: c && g.categoryId !== c ? "none" : "flex",
3555
3566
  flexDirection: "column"
3556
3567
  },
3557
3568
  children: [
3558
- /* @__PURE__ */ s("h2", { style: { marginBottom: 20 }, children: b(C.category) }),
3569
+ /* @__PURE__ */ s("h2", { style: { marginBottom: 20 }, children: b(g.category) }),
3559
3570
  /* @__PURE__ */ s("div", { style: { paddingTop: 50, width: "100%" }, children: /* @__PURE__ */ s(
3560
3571
  Le,
3561
3572
  {
3562
- inputs: h,
3563
- control: g,
3573
+ inputs: C,
3574
+ control: h,
3564
3575
  inputContainerStyles: o,
3565
3576
  errorColor: r,
3566
3577
  reactHookFormInstance: n
@@ -3568,13 +3579,13 @@ const ye = (n) => n.render(d1(n)), u1 = "_errorMessage_1xiyb_2", p1 = {
3568
3579
  ) })
3569
3580
  ]
3570
3581
  },
3571
- `${C.category}${f}`
3582
+ `${g.category}${f}`
3572
3583
  ) : /* @__PURE__ */ s("div", { style: { width: "100%" }, children: /* @__PURE__ */ s(
3573
3584
  Le,
3574
3585
  {
3575
3586
  inputContainerStyles: o,
3576
- inputs: h,
3577
- control: g,
3587
+ inputs: C,
3588
+ control: h,
3578
3589
  errorColor: r,
3579
3590
  reactHookFormInstance: n
3580
3591
  }