@tmf_ciclica/ciclicastorybook 1.1.187 → 1.1.188

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 n2 = "_ambitSelector_mcunf_2", i2 = "_header_mcunf_13", s2 = "_nameDateCon
44
44
  fontColor: a,
45
45
  moreInfo: c
46
46
  }) => {
47
- const { name: u, created_at: m, id: h, isBeingProcessed: f } = n;
47
+ const { name: u, created_at: h, id: g, isBeingProcessed: f } = n;
48
48
  return /* @__PURE__ */ p(
49
49
  "div",
50
50
  {
51
51
  className: he.ambitItem,
52
52
  style: { borderBottom: `1px solid ${a}` },
53
53
  children: [
54
- /* @__PURE__ */ p("div", { className: he.ambitNameDate, onClick: () => t(h), children: [
54
+ /* @__PURE__ */ p("div", { className: he.ambitNameDate, onClick: () => t(g), children: [
55
55
  /* @__PURE__ */ p("div", { className: he.ambitName, children: [
56
56
  /* @__PURE__ */ i(
57
57
  "img",
@@ -62,13 +62,13 @@ const n2 = "_ambitSelector_mcunf_2", i2 = "_header_mcunf_13", s2 = "_nameDateCon
62
62
  ),
63
63
  /* @__PURE__ */ i("span", { style: { color: r ? l : a }, children: u })
64
64
  ] }),
65
- /* @__PURE__ */ i("div", { className: he.ambitDate, children: m ? new Date(m).toLocaleDateString() : "" })
65
+ /* @__PURE__ */ i("div", { className: he.ambitDate, children: h ? new Date(h).toLocaleDateString() : "" })
66
66
  ] }),
67
67
  /* @__PURE__ */ p("div", { className: he.ambitButtons, children: [
68
68
  f && /* @__PURE__ */ i("img", { src: b2 }),
69
- /* @__PURE__ */ i("button", { onClick: () => o(h), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: f2 }) }),
70
- /* @__PURE__ */ i("button", { onClick: () => d(h), children: /* @__PURE__ */ i("img", { src: C2 }) }),
71
- /* @__PURE__ */ i("button", { onClick: () => s(h), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: g2 }) })
69
+ /* @__PURE__ */ i("button", { onClick: () => o(g), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: f2 }) }),
70
+ /* @__PURE__ */ i("button", { onClick: () => d(g), children: /* @__PURE__ */ i("img", { src: C2 }) }),
71
+ /* @__PURE__ */ i("button", { onClick: () => s(g), disabled: n.is_default, children: /* @__PURE__ */ i("img", { src: g2 }) })
72
72
  ] })
73
73
  ]
74
74
  }
@@ -129,19 +129,19 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
129
129
  buttonContainerStyles: a = {},
130
130
  containerStyles: c = {},
131
131
  onCLickNewAmbit: u = () => console.log("New ambit clicked"),
132
- onClickCopy: m = (v) => console.log(`Copy ambit: ${v}`),
133
- onCLickDelete: h = (v) => console.log(`Delete ambit: ${v}`),
134
- onClickFilters: f = (v) => console.log(`Filters clicked: ${v}`),
135
- onClickAmbit: b = (v) => console.log(`OnCLickAmbit: ${v}`)
132
+ onClickCopy: h = (_) => console.log(`Copy ambit: ${_}`),
133
+ onCLickDelete: g = (_) => console.log(`Delete ambit: ${_}`),
134
+ onClickFilters: f = (_) => console.log(`Filters clicked: ${_}`),
135
+ onClickAmbit: y = (_) => console.log(`OnCLickAmbit: ${_}`)
136
136
  }) => {
137
- const { t: v } = $(), [_, g] = V(n);
137
+ const { t: _ } = $(), [v, C] = V(n);
138
138
  F(() => {
139
- n && g(n);
139
+ n && C(n);
140
140
  }, [n]);
141
- const C = (y) => {
142
- if (_ && _.length > 0) {
143
- let x = [..._];
144
- x.sort((w, k) => w[y].localeCompare(k[y])), g(x);
141
+ const m = (b) => {
142
+ if (v && v.length > 0) {
143
+ let x = [...v];
144
+ x.sort((w, k) => w[b].localeCompare(k[b])), C(x);
145
145
  }
146
146
  };
147
147
  return /* @__PURE__ */ p(
@@ -157,12 +157,12 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
157
157
  style: { borderBottom: `1px solid ${s}` },
158
158
  children: [
159
159
  /* @__PURE__ */ p("div", { className: G.nameDateContainer, children: [
160
- /* @__PURE__ */ i("div", { className: G.ambitName, children: /* @__PURE__ */ p("button", { onClick: () => C("name"), children: [
161
- /* @__PURE__ */ i("span", { children: v(t) }),
160
+ /* @__PURE__ */ i("div", { className: G.ambitName, children: /* @__PURE__ */ p("button", { onClick: () => m("name"), children: [
161
+ /* @__PURE__ */ i("span", { children: _(t) }),
162
162
  /* @__PURE__ */ i("img", { src: Qe })
163
163
  ] }) }),
164
- /* @__PURE__ */ i("div", { className: G.ambitDate, children: /* @__PURE__ */ p("button", { onClick: () => C("date"), children: [
165
- /* @__PURE__ */ i("span", { children: v(r) }),
164
+ /* @__PURE__ */ i("div", { className: G.ambitDate, children: /* @__PURE__ */ p("button", { onClick: () => m("date"), children: [
165
+ /* @__PURE__ */ i("span", { children: _(r) }),
166
166
  /* @__PURE__ */ i("img", { src: Qe })
167
167
  ] }) })
168
168
  ] }),
@@ -170,19 +170,19 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
170
170
  ]
171
171
  }
172
172
  ),
173
- /* @__PURE__ */ i("div", { className: G.ambitListContainer, children: _ && _.length > 0 && _.map((y) => /* @__PURE__ */ i(
173
+ /* @__PURE__ */ i("div", { className: G.ambitListContainer, children: v && v.length > 0 && v.map((b) => /* @__PURE__ */ i(
174
174
  ht,
175
175
  {
176
- isActive: d == y.id,
177
- ambit: y,
176
+ isActive: d == b.id,
177
+ ambit: b,
178
178
  fontColor: s,
179
179
  activeColor: o,
180
- onClickCopy: m,
181
- onClickDelete: h,
180
+ onClickCopy: h,
181
+ onClickDelete: g,
182
182
  onClickFilters: f,
183
- onClickAmbit: b
183
+ onClickAmbit: y
184
184
  },
185
- `ambitKey${y.id}`
185
+ `ambitKey${b.id}`
186
186
  )) }),
187
187
  /* @__PURE__ */ i("div", { className: G.newAmbitButtonContainer, children: /* @__PURE__ */ i(
188
188
  Me,
@@ -190,7 +190,7 @@ const Qe = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
190
190
  style: { ...a },
191
191
  onClick: u,
192
192
  borderColor: "grey",
193
- children: v(l)
193
+ children: _(l)
194
194
  }
195
195
  ) })
196
196
  ]
@@ -257,25 +257,25 @@ const A2 = ({
257
257
  children: n.map((a, c) => {
258
258
  const {
259
259
  icon: u,
260
- activeIcon: m,
261
- isActive: h,
260
+ activeIcon: h,
261
+ isActive: g,
262
262
  name: f,
263
- onClick: b,
264
- disabled: v
265
- } = a, _ = /* @__PURE__ */ p(qe, { children: [
263
+ onClick: y,
264
+ disabled: _
265
+ } = a, v = /* @__PURE__ */ p(qe, { children: [
266
266
  s && o === "left" && /* @__PURE__ */ i("span", { className: X.buttonName, children: l(f) }),
267
- /* @__PURE__ */ i("img", { src: h ? m : u, alt: l(f) }),
267
+ /* @__PURE__ */ i("img", { src: g ? h : u, alt: l(f) }),
268
268
  s && o === "right" && /* @__PURE__ */ i("span", { className: X.buttonName, children: l(f) })
269
269
  ] });
270
270
  return /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
271
271
  /* @__PURE__ */ i(
272
272
  "button",
273
273
  {
274
- onClick: b,
274
+ onClick: y,
275
275
  className: `${X.button}
276
- ${h && X.active}`,
277
- disabled: v,
278
- children: _
276
+ ${g && X.active}`,
277
+ disabled: _,
278
+ children: v
279
279
  }
280
280
  ),
281
281
  t && /* @__PURE__ */ i(se, { text: f, position: r })
@@ -319,9 +319,9 @@ const I2 = "_indicatorsCategory_fj2r2_2", O2 = "_title_fj2r2_6", q2 = "_mainTitl
319
319
  titleFontStyles: a,
320
320
  showBottomBar: c = !0,
321
321
  titleMarginChildren: u = 15,
322
- mainTitle: m = !1
322
+ mainTitle: h = !1
323
323
  }) => {
324
- const { t: h } = $();
324
+ const { t: g } = $();
325
325
  return /* @__PURE__ */ p(
326
326
  Ke.div,
327
327
  {
@@ -332,7 +332,7 @@ const I2 = "_indicatorsCategory_fj2r2_2", O2 = "_title_fj2r2_6", q2 = "_mainTitl
332
332
  style: {
333
333
  backgroundColor: "white",
334
334
  borderBottom: n && c ? `1px solid ${t}` : "0px",
335
- minHeight: m ? "70px" : "50px"
335
+ minHeight: h ? "70px" : "50px"
336
336
  },
337
337
  children: [
338
338
  /* @__PURE__ */ p(
@@ -342,15 +342,15 @@ const I2 = "_indicatorsCategory_fj2r2_2", O2 = "_title_fj2r2_6", q2 = "_mainTitl
342
342
  ...a
343
343
  //marginBottom: titleMarginChildren ? titleMarginChildren : "auto",
344
344
  },
345
- className: `${ke.title} ${m && ke.mainTitle}`,
345
+ className: `${ke.title} ${h && ke.mainTitle}`,
346
346
  onClick: d,
347
347
  children: [
348
348
  /* @__PURE__ */ i("span", { style: { color: n ? t : o }, children: n ? "-" : "+" }),
349
- /* @__PURE__ */ i("span", { style: { color: n ? t : o }, children: h(r) })
349
+ /* @__PURE__ */ i("span", { style: { color: n ? t : o }, children: g(r) })
350
350
  ]
351
351
  }
352
352
  ),
353
- /* @__PURE__ */ i("div", { className: ke.content, style: { padding: m ? "20px 0px" : "0px" }, children: s })
353
+ /* @__PURE__ */ i("div", { className: ke.content, style: { padding: h ? "20px 0px" : "0px" }, children: s })
354
354
  ]
355
355
  }
356
356
  );
@@ -379,10 +379,10 @@ const po = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), R2 = "data
379
379
  activeFiltersType: null,
380
380
  geoLayers: []
381
381
  })), gt = ({ title: n, onClick: d, isOpen: s = !0, textColor: o = "#ffffff", backgroundColor: t = "#605B5680", activeColor: r, fontColor: l = "#605B56" }) => {
382
- const { t: a } = $(), { tematicalFiltersSelected: c, activeFiltersType: u } = T((f) => f), m = (f) => {
383
- T.setState((b) => ({
384
- tematicalFiltersSelected: b.tematicalFiltersSelected.filter(
385
- (v) => v.code !== f
382
+ const { t: a } = $(), { tematicalFiltersSelected: c, activeFiltersType: u } = T((f) => f), h = (f) => {
383
+ T.setState((y) => ({
384
+ tematicalFiltersSelected: y.tematicalFiltersSelected.filter(
385
+ (_) => _.code !== f
386
386
  )
387
387
  }));
388
388
  };
@@ -397,10 +397,10 @@ const po = () => /* @__PURE__ */ i("div", { children: "EditAmbit" }), R2 = "data
397
397
  activeColor: r,
398
398
  mainTitle: !0,
399
399
  color: l,
400
- children: /* @__PURE__ */ i("div", { className: Xe.AppliedFiltersContainer, children: c == null ? void 0 : c.map((f, b) => /* @__PURE__ */ p("div", { className: Xe.AppliedFilterContent, style: { color: o, background: t }, children: [
400
+ children: /* @__PURE__ */ i("div", { className: Xe.AppliedFiltersContainer, children: c == null ? void 0 : c.map((f, y) => /* @__PURE__ */ p("div", { className: Xe.AppliedFilterContent, style: { color: o, background: t }, children: [
401
401
  a(f.name),
402
- /* @__PURE__ */ i("img", { src: R2, alt: "CloseIcon", onClick: () => m(f.code), style: { cursor: "pointer" } })
403
- ] }, b)) })
402
+ /* @__PURE__ */ i("img", { src: R2, alt: "CloseIcon", onClick: () => h(f.code), style: { cursor: "pointer" } })
403
+ ] }, y)) })
404
404
  }
405
405
  );
406
406
  };
@@ -429,13 +429,13 @@ const j2 = "_layersList_cn837_25", z2 = "_layerName_cn837_34", Je = {
429
429
  activeColor: t,
430
430
  onGeoLayersChange: r
431
431
  }) => {
432
- const { t: l } = $(), { activeFiltersType: a, geoLayers: c } = T((h) => h), u = () => {
432
+ const { t: l } = $(), { activeFiltersType: a, geoLayers: c } = T((g) => g), u = () => {
433
433
  a == "geographical" ? T.setState(() => ({ activeFiltersType: null })) : T.setState(() => ({ activeFiltersType: "geographical" }));
434
- }, m = (h) => {
434
+ }, h = (g) => {
435
435
  T.setState((f) => ({
436
- geoLayers: f.geoLayers.map((b) => ({
437
- ...b,
438
- active: b.name === h.name
436
+ geoLayers: f.geoLayers.map((y) => ({
437
+ ...y,
438
+ active: y.name === g.name
439
439
  }))
440
440
  })), r(c);
441
441
  };
@@ -450,15 +450,15 @@ const j2 = "_layersList_cn837_25", z2 = "_layerName_cn837_34", Je = {
450
450
  activeColor: t,
451
451
  color: s,
452
452
  mainTitle: !0,
453
- children: /* @__PURE__ */ i("div", { className: `${Je.layersList}`, children: c.map((h) => /* @__PURE__ */ p(
453
+ children: /* @__PURE__ */ i("div", { className: `${Je.layersList}`, children: c.map((g) => /* @__PURE__ */ p(
454
454
  "div",
455
455
  {
456
456
  className: `${Je.layerName}`,
457
- style: { color: h.active ? t : s, fontWeight: h.active ? "bold" : "normal" },
458
- onClick: () => m(h),
457
+ style: { color: g.active ? t : s, fontWeight: g.active ? "bold" : "normal" },
458
+ onClick: () => h(g),
459
459
  children: [
460
- l(h.name),
461
- h.active
460
+ l(g.name),
461
+ g.active
462
462
  ]
463
463
  }
464
464
  )) })
@@ -566,19 +566,19 @@ let Pe = function(n) {
566
566
  t.setState({ index: -1 }, t.onEnd(t.getKeyDownEventMap()));
567
567
  }, t.onMouseMove = (a) => {
568
568
  t.setState({ pending: !0 });
569
- const c = t.getMousePosition(a), u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
570
- t.move(m);
569
+ const c = t.getMousePosition(a), u = t.getDiffPosition(c[0]), h = t.getValueFromPosition(u);
570
+ t.move(h);
571
571
  }, t.onTouchMove = (a) => {
572
572
  if (a.touches.length > 1) return;
573
573
  t.setState({ pending: !0 });
574
574
  const c = t.getTouchPosition(a);
575
575
  if (t.isScrolling === void 0) {
576
- const h = c[0] - t.startPosition[0], f = c[1] - t.startPosition[1];
577
- t.isScrolling = Math.abs(f) > Math.abs(h);
576
+ const g = c[0] - t.startPosition[0], f = c[1] - t.startPosition[1];
577
+ t.isScrolling = Math.abs(f) > Math.abs(g);
578
578
  }
579
579
  if (t.isScrolling) return void t.setState({ index: -1 });
580
- const u = t.getDiffPosition(c[0]), m = t.getValueFromPosition(u);
581
- t.move(m);
580
+ const u = t.getDiffPosition(c[0]), h = t.getValueFromPosition(u);
581
+ t.move(h);
582
582
  }, t.onKeyDown = (a) => {
583
583
  if (!(a.ctrlKey || a.shiftKey || a.altKey || a.metaKey)) switch (t.setState({ pending: !0 }), a.key) {
584
584
  case "ArrowLeft":
@@ -631,8 +631,8 @@ let Pe = function(n) {
631
631
  if (t.props.disabled || c.touches.length > 1) return;
632
632
  t.setState({ pending: !0 });
633
633
  const u = t.getTouchPosition(c);
634
- t.startPosition = u, t.isScrolling = void 0, t.start(a, u[0]), Se(t.getTouchEventMap()), function(m) {
635
- m.stopPropagation && m.stopPropagation();
634
+ t.startPosition = u, t.isScrolling = void 0, t.start(a, u[0]), Se(t.getTouchEventMap()), function(h) {
635
+ h.stopPropagation && h.stopPropagation();
636
636
  }(c);
637
637
  }, t.handleResize = () => {
638
638
  const a = window.setTimeout(() => {
@@ -640,13 +640,13 @@ let Pe = function(n) {
640
640
  }, 0);
641
641
  t.pendingResizeTimeouts.push(a);
642
642
  }, t.renderThumb = (a, c) => {
643
- const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), m = { ref: (f) => {
643
+ const u = t.props.thumbClassName + " " + t.props.thumbClassName + "-" + c + " " + (t.state.index === c ? t.props.thumbActiveClassName : ""), h = { ref: (f) => {
644
644
  t["thumb" + c] = f;
645
- }, key: t.props.thumbClassName + "-" + c, className: u, style: a, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, h = { index: c, value: Ne(t.state.value), valueNow: t.state.value[c] };
646
- return t.props.ariaValuetext && (m["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(h)), t.props.renderThumb(m, h);
645
+ }, key: t.props.thumbClassName + "-" + c, className: u, style: a, onMouseDown: t.createOnMouseDown(c), onTouchStart: t.createOnTouchStart(c), onFocus: t.createOnKeyDown(c), tabIndex: 0, role: "slider", "aria-orientation": t.props.orientation, "aria-valuenow": t.state.value[c], "aria-valuemin": t.props.min, "aria-valuemax": t.props.max, "aria-label": Array.isArray(t.props.ariaLabel) ? t.props.ariaLabel[c] : t.props.ariaLabel, "aria-labelledby": Array.isArray(t.props.ariaLabelledby) ? t.props.ariaLabelledby[c] : t.props.ariaLabelledby, "aria-disabled": t.props.disabled }, g = { index: c, value: Ne(t.state.value), valueNow: t.state.value[c] };
646
+ return t.props.ariaValuetext && (h["aria-valuetext"] = typeof t.props.ariaValuetext == "string" ? t.props.ariaValuetext : t.props.ariaValuetext(g)), t.props.renderThumb(h, g);
647
647
  }, t.renderTrack = (a, c, u) => {
648
- const m = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(c, t.state.upperBound - u) }, h = { index: a, value: Ne(t.state.value) };
649
- return t.props.renderTrack(m, h);
648
+ const h = { key: t.props.trackClassName + "-" + a, className: t.props.trackClassName + " " + t.props.trackClassName + "-" + a, style: t.buildTrackStyle(c, t.state.upperBound - u) }, g = { index: a, value: Ne(t.state.value) };
649
+ return t.props.renderTrack(h, g);
650
650
  };
651
651
  let r = Ve(o.value);
652
652
  r.length || (r = Ve(o.defaultValue)), t.pendingResizeTimeouts = [];
@@ -677,8 +677,8 @@ let Pe = function(n) {
677
677
  let t = Number.MAX_VALUE, r = -1;
678
678
  const { value: l } = this.state, a = l.length;
679
679
  for (let c = 0; c < a; c += 1) {
680
- const u = this.calcOffset(l[c]), m = Math.abs(o - u);
681
- m < t && (t = m, r = c);
680
+ const u = this.calcOffset(l[c]), h = Math.abs(o - u);
681
+ h < t && (t = h, r = c);
682
682
  }
683
683
  return r;
684
684
  }, s.getMousePosition = function(o) {
@@ -701,8 +701,8 @@ let Pe = function(n) {
701
701
  }, s.resize = function() {
702
702
  const { slider: o, thumb0: t } = this;
703
703
  if (!o || !t) return;
704
- const r = this.sizeKey(), l = o.getBoundingClientRect(), a = o[r], c = l[this.posMaxKey()], u = l[this.posMinKey()], m = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], h = a - m, f = Math.abs(c - u);
705
- this.state.upperBound === h && this.state.sliderLength === f && this.state.thumbSize === m || this.setState({ upperBound: h, sliderLength: f, thumbSize: m });
704
+ const r = this.sizeKey(), l = o.getBoundingClientRect(), a = o[r], c = l[this.posMaxKey()], u = l[this.posMinKey()], h = t.getBoundingClientRect()[r.replace("client", "").toLowerCase()], g = a - h, f = Math.abs(c - u);
705
+ this.state.upperBound === g && this.state.sliderLength === f && this.state.thumbSize === h || this.setState({ upperBound: g, sliderLength: f, thumbSize: h });
706
706
  }, s.calcOffset = function(o) {
707
707
  const t = this.props.max - this.props.min;
708
708
  return t === 0 ? 0 : (o - this.props.min) / t * this.state.upperBound;
@@ -741,28 +741,28 @@ let Pe = function(n) {
741
741
  const t = this.state.value.slice(), { index: r } = this.state, { length: l } = t, a = t[r];
742
742
  if (o === a) return;
743
743
  this.hasMoved || this.fireChangeEvent("onBeforeChange"), this.hasMoved = !0;
744
- const { pearling: c, max: u, min: m, minDistance: h } = this.props;
744
+ const { pearling: c, max: u, min: h, minDistance: g } = this.props;
745
745
  if (!c) {
746
746
  if (r > 0) {
747
747
  const f = t[r - 1];
748
- o < f + h && (o = f + h);
748
+ o < f + g && (o = f + g);
749
749
  }
750
750
  if (r < l - 1) {
751
751
  const f = t[r + 1];
752
- o > f - h && (o = f - h);
752
+ o > f - g && (o = f - g);
753
753
  }
754
754
  }
755
- t[r] = o, c && l > 1 && (o > a ? (this.pushSucceeding(t, h, r), function(f, b, v, _) {
756
- for (let g = 0; g < f; g += 1) {
757
- const C = _ - g * v;
758
- b[f - 1 - g] > C && (b[f - 1 - g] = C);
755
+ t[r] = o, c && l > 1 && (o > a ? (this.pushSucceeding(t, g, r), function(f, y, _, v) {
756
+ for (let C = 0; C < f; C += 1) {
757
+ const m = v - C * _;
758
+ y[f - 1 - C] > m && (y[f - 1 - C] = m);
759
759
  }
760
- }(l, t, h, u)) : o < a && (this.pushPreceding(t, h, r), function(f, b, v, _) {
761
- for (let g = 0; g < f; g += 1) {
762
- const C = _ + g * v;
763
- b[g] < C && (b[g] = C);
760
+ }(l, t, g, u)) : o < a && (this.pushPreceding(t, g, r), function(f, y, _, v) {
761
+ for (let C = 0; C < f; C += 1) {
762
+ const m = v + C * _;
763
+ y[C] < m && (y[C] = m);
764
764
  }
765
- }(l, t, h, m))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
765
+ }(l, t, g, h))), this.setState({ value: t }, this.fireChangeEvent.bind(this, "onChange"));
766
766
  }, s.pushSucceeding = function(o, t, r) {
767
767
  let l, a;
768
768
  for (l = r, a = o[l] + t; o[l + 1] !== null && a > o[l + 1]; l += 1, a = o[l] + t) o[l + 1] = Ee(a, this.props);
@@ -836,11 +836,11 @@ const U2 = "_container_4u41i_2", W2 = "_unitLabel_4u41i_8", G2 = "_slider_4u41i_
836
836
  defaultValue: a,
837
837
  isDate: c
838
838
  }) => {
839
- const { t: u } = $(), m = c ? new Date(n).getTime() : null, h = c ? new Date(d).getTime() : null, [f, b] = V(c ? [m, h] : [n, d]), v = (_) => {
840
- b(_), o == null || o({ min: _[0], max: _[1] });
839
+ const { t: u } = $(), h = c ? new Date(n).getTime() : null, g = c ? new Date(d).getTime() : null, [f, y] = V(c ? [h, g] : [n, d]), _ = (v) => {
840
+ y(v), o == null || o({ min: v[0], max: v[1] });
841
841
  };
842
842
  return F(() => {
843
- a || b(c ? [m, h] : [n, d]);
843
+ a || y(c ? [h, g] : [n, d]);
844
844
  }, [a, c]), /* @__PURE__ */ p(
845
845
  "div",
846
846
  {
@@ -854,11 +854,11 @@ const U2 = "_container_4u41i_2", W2 = "_unitLabel_4u41i_8", G2 = "_slider_4u41i_
854
854
  className: ae.slider,
855
855
  thumbClassName: ae.thumb,
856
856
  trackClassName: ae.track,
857
- min: c ? m : n,
858
- max: c ? h : d,
859
- step: c ? (h - m) / 30 : s,
857
+ min: c ? h : n,
858
+ max: c ? g : d,
859
+ step: c ? (g - h) / 30 : s,
860
860
  value: f,
861
- onAfterChange: v,
861
+ onAfterChange: _,
862
862
  withTracks: !0,
863
863
  pearling: !c,
864
864
  minDistance: c ? 0 : 0.1
@@ -909,23 +909,23 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
909
909
  minValue: a,
910
910
  maxValue: c,
911
911
  unit: u,
912
- step: m,
913
- disabled: h,
912
+ step: h,
913
+ disabled: g,
914
914
  isDate: f
915
- } = n || {}, b = me(
915
+ } = n || {}, y = me(
916
916
  () => t == "cat" || s == "cat",
917
917
  [s, t]
918
- ), v = me(
918
+ ), _ = me(
919
919
  () => t == "abs" || s == "abs",
920
920
  [s, t]
921
921
  ), {
922
- tematicalFiltersSelected: _,
923
- selectedIndicator: g,
924
- fontColor: C,
925
- inputsColor: y
922
+ tematicalFiltersSelected: v,
923
+ selectedIndicator: C,
924
+ fontColor: m,
925
+ inputsColor: b
926
926
  } = T((k) => k), x = (k) => {
927
927
  if (k) {
928
- const { min: S, max: L, valueClicked: N, allValues: B } = k || {}, { code: O, type: q, source: M } = n || {}, H = v ? "abs" : b ? "cat" : "both";
928
+ const { min: S, max: L, valueClicked: N, allValues: B } = k || {}, { code: O, type: q, source: M } = n || {}, H = _ ? "abs" : y ? "cat" : "both";
929
929
  let z = O[0];
930
930
  q == "both" && (z = H == "cat" ? O[1] : O[0]), H == "cat" ? T.setState((Q) => {
931
931
  let W = Q.tematicalFiltersSelected.find(
@@ -948,7 +948,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
948
948
  let E = B.map((j, At) => At);
949
949
  return {
950
950
  tematicalFiltersSelected: [
951
- ..._,
951
+ ...v,
952
952
  {
953
953
  type: "cat",
954
954
  code: z,
@@ -980,7 +980,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
980
980
  } else
981
981
  return {
982
982
  tematicalFiltersSelected: [
983
- ..._,
983
+ ...v,
984
984
  {
985
985
  type: H,
986
986
  code: z,
@@ -995,38 +995,38 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
995
995
  }
996
996
  }, w = me(() => {
997
997
  const k = {};
998
- if ((_ == null ? void 0 : _.length) > 0)
999
- for (const S of _)
998
+ if ((v == null ? void 0 : v.length) > 0)
999
+ for (const S of v)
1000
1000
  S.type === "cat" ? k[S.code] = new Set(S.values) : k[S.code] = [S.min, S.max];
1001
1001
  return k;
1002
- }, [_]);
1002
+ }, [v]);
1003
1003
  return /* @__PURE__ */ i("div", { className: $e.tematicalFiltersInputContainer, children: /* @__PURE__ */ p(
1004
1004
  re,
1005
1005
  {
1006
1006
  titleFontStyles: {
1007
1007
  fontSize: 16,
1008
1008
  fontWeight: 400,
1009
- opacity: h ? 0.5 : 1
1009
+ opacity: g ? 0.5 : 1
1010
1010
  },
1011
1011
  title: r,
1012
- isOpen: g == `id${r}`,
1012
+ isOpen: C == `id${r}`,
1013
1013
  onClick: () => {
1014
- h || T.setState(() => ({
1015
- selectedIndicator: g == `id${r}` ? "" : `id${r}`
1014
+ g || T.setState(() => ({
1015
+ selectedIndicator: C == `id${r}` ? "" : `id${r}`
1016
1016
  }));
1017
1017
  },
1018
1018
  showBottomBar: !1,
1019
1019
  height: 42,
1020
1020
  titleMarginChildren: 14,
1021
1021
  className: "tematicalFiltersInputContainer",
1022
- color: C,
1022
+ color: m,
1023
1023
  activeColor: d,
1024
1024
  children: [
1025
1025
  t == "both" && /* @__PURE__ */ p(
1026
1026
  "div",
1027
1027
  {
1028
1028
  className: $e.inputTypeContainer,
1029
- style: { color: C },
1029
+ style: { color: m },
1030
1030
  children: [
1031
1031
  /* @__PURE__ */ p("label", { children: [
1032
1032
  /* @__PURE__ */ i(
@@ -1040,8 +1040,8 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
1040
1040
  },
1041
1041
  style: {
1042
1042
  marginRight: 4,
1043
- backgroundColor: s == "abs" ? y : "white",
1044
- border: `1.5px solid ${s == "abs" ? y : C}`
1043
+ backgroundColor: s == "abs" ? b : "white",
1044
+ border: `1.5px solid ${s == "abs" ? b : m}`
1045
1045
  }
1046
1046
  }
1047
1047
  ),
@@ -1059,8 +1059,8 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
1059
1059
  },
1060
1060
  style: {
1061
1061
  marginRight: 4,
1062
- backgroundColor: s == "cat" ? y : "white",
1063
- border: `1.5px solid ${s == "cat" ? y : C}`
1062
+ backgroundColor: s == "cat" ? b : "white",
1063
+ border: `1.5px solid ${s == "cat" ? b : m}`
1064
1064
  }
1065
1065
  }
1066
1066
  ),
@@ -1069,7 +1069,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
1069
1069
  ]
1070
1070
  }
1071
1071
  ),
1072
- b && /* @__PURE__ */ i("div", { className: $e.checkboxContainer, children: l.map((k, S) => {
1072
+ y && /* @__PURE__ */ i("div", { className: $e.checkboxContainer, children: l.map((k, S) => {
1073
1073
  var L;
1074
1074
  return /* @__PURE__ */ i(
1075
1075
  ft,
@@ -1081,7 +1081,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
1081
1081
  `checkbox-${S}`
1082
1082
  );
1083
1083
  }) }),
1084
- (v || t == "glb") && /* @__PURE__ */ i("div", { className: $e.absoluteSliderContainer, children: /* @__PURE__ */ i(
1084
+ (_ || t == "glb") && /* @__PURE__ */ i("div", { className: $e.absoluteSliderContainer, children: /* @__PURE__ */ i(
1085
1085
  bt,
1086
1086
  {
1087
1087
  onChange: x,
@@ -1090,7 +1090,7 @@ const J2 = "_tematicalFiltersInputContainer_1vm1r_2", en = "_inputTypeContainer_
1090
1090
  unit: u,
1091
1091
  defaultValue: w[n.code[0]] ? w[n.code[0]] : "",
1092
1092
  isDate: f,
1093
- step: m
1093
+ step: h
1094
1094
  }
1095
1095
  ) })
1096
1096
  ]
@@ -1218,7 +1218,7 @@ const vt = ({
1218
1218
  inputsColor: t = "#605B56",
1219
1219
  activeColor: r
1220
1220
  }) => {
1221
- const { tematicalFiltersSelected: l, activeFiltersType: a } = T((m) => m), { t: c } = $();
1221
+ const { tematicalFiltersSelected: l, activeFiltersType: a } = T((h) => h), { t: c } = $();
1222
1222
  F(() => {
1223
1223
  }, [l]), F(() => {
1224
1224
  o && T.setState(() => ({ fontColor: o }));
@@ -1237,14 +1237,14 @@ const vt = ({
1237
1237
  activeColor: r,
1238
1238
  onClick: u,
1239
1239
  mainTitle: !0,
1240
- children: n == null ? void 0 : n.map((m, h) => /* @__PURE__ */ i(
1240
+ children: n == null ? void 0 : n.map((h, g) => /* @__PURE__ */ i(
1241
1241
  _t,
1242
1242
  {
1243
- category: m,
1243
+ category: h,
1244
1244
  fontColor: o,
1245
1245
  activeColor: r
1246
1246
  },
1247
- `category-${h}`
1247
+ `category-${g}`
1248
1248
  ))
1249
1249
  }
1250
1250
  );
@@ -1277,37 +1277,37 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
1277
1277
  onChangeAppliedFilters: a,
1278
1278
  saveAmbit: c,
1279
1279
  namePlaceholder: u,
1280
- descPlaceholder: m,
1281
- filtersTypes: h = ["geographical", "tematical"],
1280
+ descPlaceholder: h,
1281
+ filtersTypes: g = ["geographical", "tematical"],
1282
1282
  nameRequiredText: f,
1283
- geoFilterLayers: b = [],
1284
- onGeoLayersChange: v,
1285
- onlyFilters: _ = !1
1283
+ geoFilterLayers: y = [],
1284
+ onGeoLayersChange: _,
1285
+ onlyFilters: v = !1
1286
1286
  //usamos esta opción para ocultar el nombre, la descripción y el botón de guardar ámbito
1287
1287
  }) => {
1288
- const { t: g } = $(), { tematicalFiltersSelected: C, activeFiltersType: y, geoLayers: x } = T((q) => q), [w, k] = V(n || null), [S, L] = V(d || null), [N, B] = V(!1);
1288
+ const { t: C } = $(), { tematicalFiltersSelected: m, activeFiltersType: b, geoLayers: x } = T((q) => q), [w, k] = V(n || null), [S, L] = V(d || null), [N, B] = V(!1);
1289
1289
  F(() => {
1290
1290
  s && s.length > 0 && T.setState((q) => ({
1291
1291
  tematicalFiltersSelected: s
1292
1292
  }));
1293
1293
  }, [s]), F(() => {
1294
- h.includes("geographical") && x != b && T.setState({ geoLayers: b });
1295
- }, [b]), F(() => {
1296
- a(C);
1297
- }, [C]);
1294
+ g.includes("geographical") && x != y && T.setState({ geoLayers: y });
1295
+ }, [y]), F(() => {
1296
+ a(m);
1297
+ }, [m]);
1298
1298
  const O = () => {
1299
1299
  w ? c({ name: w, description: S }) : B(!0);
1300
1300
  };
1301
1301
  return F(() => {
1302
- h.includes("geographical") && y != "geographical" && x.length > 0 && T.setState((q) => ({
1302
+ g.includes("geographical") && b != "geographical" && x.length > 0 && T.setState((q) => ({
1303
1303
  geoLayers: q.geoLayers.map((M) => ({
1304
1304
  ...M,
1305
1305
  active: !1
1306
1306
  }))
1307
1307
  }));
1308
- }, [y]), /* @__PURE__ */ p("div", { className: ee.FiltersAmbitContainer, children: [
1308
+ }, [b]), /* @__PURE__ */ p("div", { className: ee.FiltersAmbitContainer, children: [
1309
1309
  /* @__PURE__ */ p("div", { children: [
1310
- !_ && /* @__PURE__ */ p("div", { className: ee.FiltersAmbitHeader, children: [
1310
+ !v && /* @__PURE__ */ p("div", { className: ee.FiltersAmbitHeader, children: [
1311
1311
  /* @__PURE__ */ i("div", { className: ee.FiltersAmbitTitle, children: /* @__PURE__ */ i(
1312
1312
  "input",
1313
1313
  {
@@ -1316,7 +1316,7 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
1316
1316
  B(!1), k(q.target.value);
1317
1317
  },
1318
1318
  value: w,
1319
- placeholder: g(u)
1319
+ placeholder: C(u)
1320
1320
  }
1321
1321
  ) }),
1322
1322
  /* @__PURE__ */ i("div", { className: ee.FiltersAmbitDescription, children: /* @__PURE__ */ i("div", { className: ee.FiltersAmbitDescriptionTitle, children: /* @__PURE__ */ i(
@@ -1324,29 +1324,29 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
1324
1324
  {
1325
1325
  value: S,
1326
1326
  onChange: (q) => L(q.target.value),
1327
- placeholder: g(m)
1327
+ placeholder: C(h)
1328
1328
  }
1329
1329
  ) }) })
1330
1330
  ] }),
1331
1331
  /* @__PURE__ */ i(
1332
1332
  gt,
1333
1333
  {
1334
- title: g("applied_filters"),
1335
- isOpen: y == "applied",
1334
+ title: C("applied_filters"),
1335
+ isOpen: b == "applied",
1336
1336
  textColor: r || "#fff",
1337
1337
  backgroundColor: l || "#605B5680",
1338
1338
  activeColor: t
1339
1339
  }
1340
1340
  ),
1341
- h.includes("geographical") && /* @__PURE__ */ i(
1341
+ g.includes("geographical") && /* @__PURE__ */ i(
1342
1342
  Ct,
1343
1343
  {
1344
1344
  title: "geo_filters",
1345
1345
  activeColor: t,
1346
- onGeoLayersChange: v
1346
+ onGeoLayersChange: _
1347
1347
  }
1348
1348
  ),
1349
- h.includes("tematical") && /* @__PURE__ */ i(
1349
+ g.includes("tematical") && /* @__PURE__ */ i(
1350
1350
  vt,
1351
1351
  {
1352
1352
  indicators: o,
@@ -1356,9 +1356,9 @@ const sn = "_FiltersAmbitContainer_fj99t_2", on = "_FiltersAmbitHeader_fj99t_15"
1356
1356
  activeColor: t
1357
1357
  }
1358
1358
  ),
1359
- N && /* @__PURE__ */ i("div", { className: ee.warning, children: g(f) })
1359
+ N && /* @__PURE__ */ i("div", { className: ee.warning, children: C(f) })
1360
1360
  ] }),
1361
- !_ && /* @__PURE__ */ i("div", { className: ee.buttonContainer, children: /* @__PURE__ */ i(Me, { onClick: () => O(), children: g("save_ambit") }) })
1361
+ !v && /* @__PURE__ */ i("div", { className: ee.buttonContainer, children: /* @__PURE__ */ i(Me, { onClick: () => O(), children: C("save_ambit") }) })
1362
1362
  ] });
1363
1363
  };
1364
1364
  un.propTypes = {
@@ -1390,13 +1390,13 @@ const pn = "_barChartContainer_d2f1z_2", mn = {
1390
1390
  numberOfDivisions: c = 7,
1391
1391
  maxValue: u = null
1392
1392
  }) => {
1393
- const { t: m } = $(), { xScale: h, ticks: f, height: b } = me(() => {
1393
+ const { t: h } = $(), { xScale: g, ticks: f, height: y } = me(() => {
1394
1394
  if (n && n.length > 0) {
1395
- const v = (n == null ? void 0 : n.length) * (s + o) + r * 2, _ = Ye.max(n, (y) => y.value) || 1, g = Ye.scaleLinear().domain([0, u || _]).range([0, d - a]), C = Array.from({ length: c + 1 }, (y, x) => u ? u / c * x : _ / c * x);
1395
+ const _ = (n == null ? void 0 : n.length) * (s + o) + r * 2, v = Ye.max(n, (b) => b.value) || 1, C = Ye.scaleLinear().domain([0, u || v]).range([0, d - a]), m = Array.from({ length: c + 1 }, (b, x) => u ? u / c * x : v / c * x);
1396
1396
  return {
1397
- xScale: g,
1398
- ticks: C,
1399
- height: v,
1397
+ xScale: C,
1398
+ ticks: m,
1399
+ height: _,
1400
1400
  width: d,
1401
1401
  verticalPaddign: r,
1402
1402
  horizontalPaddign: l
@@ -1413,36 +1413,36 @@ const pn = "_barChartContainer_d2f1z_2", mn = {
1413
1413
  r,
1414
1414
  u
1415
1415
  ]);
1416
- return /* @__PURE__ */ i("div", { className: mn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + l * 2, height: b, children: /* @__PURE__ */ p("g", { transform: `translate(0,${o})`, children: [
1417
- /* @__PURE__ */ i("g", { transform: `translate(${a + l}, 0)`, children: f.map((v, _) => {
1418
- const g = h(v);
1419
- return /* @__PURE__ */ p("g", { transform: `translate(${g}, 0)`, children: [
1416
+ return /* @__PURE__ */ i("div", { className: mn.barChartContainer, children: /* @__PURE__ */ i("svg", { width: d + l * 2, height: y, children: /* @__PURE__ */ p("g", { transform: `translate(0,${o})`, children: [
1417
+ /* @__PURE__ */ i("g", { transform: `translate(${a + l}, 0)`, children: f.map((_, v) => {
1418
+ const C = g(_);
1419
+ return /* @__PURE__ */ p("g", { transform: `translate(${C}, 0)`, children: [
1420
1420
  /* @__PURE__ */ i(
1421
1421
  "line",
1422
1422
  {
1423
1423
  y1: 0,
1424
- y2: b - o * 2,
1424
+ y2: y - o * 2,
1425
1425
  stroke: "#ccc"
1426
1426
  }
1427
1427
  ),
1428
1428
  /* @__PURE__ */ i(
1429
1429
  "text",
1430
1430
  {
1431
- y: b - o,
1431
+ y: y - o,
1432
1432
  textAnchor: "middle",
1433
1433
  fontSize: 10,
1434
1434
  fill: t,
1435
- children: parseInt(v)
1435
+ children: parseInt(_)
1436
1436
  }
1437
1437
  )
1438
- ] }, _);
1438
+ ] }, v);
1439
1439
  }) }),
1440
- n && n.length > 0 && (n == null ? void 0 : n.map((v, _) => {
1441
- const g = h(v.value), C = _ * (s + o);
1440
+ n && n.length > 0 && (n == null ? void 0 : n.map((_, v) => {
1441
+ const C = g(_.value), m = v * (s + o);
1442
1442
  return /* @__PURE__ */ p(
1443
1443
  "g",
1444
1444
  {
1445
- transform: `translate(${a + l}, ${C})`,
1445
+ transform: `translate(${a + l}, ${m})`,
1446
1446
  children: [
1447
1447
  /* @__PURE__ */ i(
1448
1448
  "text",
@@ -1451,21 +1451,21 @@ const pn = "_barChartContainer_d2f1z_2", mn = {
1451
1451
  y: s / 2 + 5,
1452
1452
  textAnchor: "end",
1453
1453
  fill: t,
1454
- children: m(v.title)
1454
+ children: h(_.title)
1455
1455
  }
1456
1456
  ),
1457
1457
  /* @__PURE__ */ i(
1458
1458
  "rect",
1459
1459
  {
1460
- width: g,
1460
+ width: C,
1461
1461
  height: s,
1462
- fill: v.color,
1462
+ fill: _.color,
1463
1463
  rx: 0
1464
1464
  }
1465
1465
  )
1466
1466
  ]
1467
1467
  },
1468
- _
1468
+ v
1469
1469
  );
1470
1470
  }))
1471
1471
  ] }) }) });
@@ -1569,17 +1569,17 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
1569
1569
  multiple: a = !1,
1570
1570
  onChangeType: c
1571
1571
  }) => {
1572
- const { t: u } = $(), { name: m, type: h, disabled: f } = n;
1572
+ const { t: u } = $(), { name: h, type: g, disabled: f } = n;
1573
1573
  console.log(tt);
1574
- const [b, v] = V(!1);
1574
+ const [y, _] = V(!1);
1575
1575
  F(() => {
1576
- t && v(
1576
+ t && _(
1577
1577
  a ? t.some(
1578
- (C) => C.name == String(m)
1579
- ) : t.name == m
1578
+ (m) => m.name == String(h)
1579
+ ) : t.name == h
1580
1580
  );
1581
1581
  }, [t]);
1582
- const _ = () => /* @__PURE__ */ i("div", { className: R.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: R.switchType, children: /* @__PURE__ */ p("div", { className: R.switchTypeOptions, children: [
1582
+ const v = () => /* @__PURE__ */ i("div", { className: R.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: R.switchType, children: /* @__PURE__ */ p("div", { className: R.switchTypeOptions, children: [
1583
1583
  /* @__PURE__ */ p(
1584
1584
  "div",
1585
1585
  {
@@ -1638,7 +1638,7 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
1638
1638
  ]
1639
1639
  }
1640
1640
  )
1641
- ] }) }) }), g = () => /* @__PURE__ */ i("div", { className: R.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: R.switchType, children: /* @__PURE__ */ i("div", { className: R.switchTypeOptions, children: d.map((C, y) => /* @__PURE__ */ p(
1641
+ ] }) }) }), C = () => /* @__PURE__ */ i("div", { className: R.switchExternalContainer, children: /* @__PURE__ */ i("div", { className: R.switchType, children: /* @__PURE__ */ i("div", { className: R.switchTypeOptions, children: d.map((m, b) => /* @__PURE__ */ p(
1642
1642
  "div",
1643
1643
  {
1644
1644
  className: R.optionContainer,
@@ -1649,10 +1649,10 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
1649
1649
  className: R.customRadious
1650
1650
  }
1651
1651
  ),
1652
- /* @__PURE__ */ i("h4", { children: u(C.unit) })
1652
+ /* @__PURE__ */ i("h4", { children: u(m.unit) })
1653
1653
  ]
1654
1654
  },
1655
- y
1655
+ b
1656
1656
  )) }) }) });
1657
1657
  return /* @__PURE__ */ p("div", { className: R.indicatorContainer, children: [
1658
1658
  /* @__PURE__ */ p(
@@ -1665,12 +1665,12 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
1665
1665
  "div",
1666
1666
  {
1667
1667
  style: {
1668
- border: b ? `1px solid ${s}` : `1px solid ${o}`,
1668
+ border: y ? `1px solid ${s}` : `1px solid ${o}`,
1669
1669
  opacity: f ? 0.5 : 1,
1670
- backgroundColor: b ? s : "transparent"
1670
+ backgroundColor: y ? s : "transparent"
1671
1671
  },
1672
1672
  className: R.dot,
1673
- children: a && /* @__PURE__ */ i("img", { src: b ? _n : tt, alt: "" })
1673
+ children: a && /* @__PURE__ */ i("img", { src: y ? _n : tt, alt: "" })
1674
1674
  }
1675
1675
  ),
1676
1676
  /* @__PURE__ */ i(
@@ -1678,13 +1678,13 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
1678
1678
  {
1679
1679
  className: R.indicatorName,
1680
1680
  style: {
1681
- color: b ? s : o,
1681
+ color: y ? s : o,
1682
1682
  opacity: f ? 0.5 : 1
1683
1683
  },
1684
1684
  children: /* @__PURE__ */ i(
1685
1685
  He,
1686
1686
  {
1687
- i18nKey: m,
1687
+ i18nKey: h,
1688
1688
  components: { sup: /* @__PURE__ */ i("sup", {}) },
1689
1689
  shouldUnescape: !0
1690
1690
  }
@@ -1694,8 +1694,8 @@ const fn = "_indicatorsCategory_1cu33_2", bn = "_title_1cu33_5", yn = "_list_1cu
1694
1694
  ]
1695
1695
  }
1696
1696
  ),
1697
- (t == null ? void 0 : t.name) === m && h === "both" && /* @__PURE__ */ i("div", { children: _() }),
1698
- (t == null ? void 0 : t.name) === m && h === "twoUnits" && /* @__PURE__ */ i("div", { children: g() })
1697
+ (t == null ? void 0 : t.name) === h && g === "both" && /* @__PURE__ */ i("div", { children: v() }),
1698
+ (t == null ? void 0 : t.name) === h && g === "twoUnits" && /* @__PURE__ */ i("div", { children: C() })
1699
1699
  ] });
1700
1700
  };
1701
1701
  We.propTypes = {
@@ -1724,43 +1724,43 @@ const Mn = "_indicatorsSubCategory_1dzsi_2", Dn = "_list_1dzsi_8", nt = {
1724
1724
  activeIndicator: a,
1725
1725
  onClickIndicator: c,
1726
1726
  multiple: u,
1727
- activeIndicatorType: m,
1728
- onChangeType: h
1727
+ activeIndicatorType: h,
1728
+ onChangeType: g
1729
1729
  }) => {
1730
- const { t: f } = $(), [b, v] = V(!1);
1730
+ const { t: f } = $(), [y, _] = V(!1);
1731
1731
  return F(() => {
1732
- v(t == l);
1732
+ _(t == l);
1733
1733
  }, [t, l]), /* @__PURE__ */ p(
1734
1734
  Ke.div,
1735
1735
  {
1736
1736
  className: nt.indicatorsSubCategory,
1737
1737
  initial: { height: "43px" },
1738
- animate: { height: b ? "auto" : "43px" },
1738
+ animate: { height: y ? "auto" : "43px" },
1739
1739
  transition: { duration: 0.4 },
1740
1740
  children: [
1741
- /* @__PURE__ */ i("button", { onClick: () => r(l), children: /* @__PURE__ */ p("h3", { style: { color: b ? o : s }, children: [
1742
- /* @__PURE__ */ i("span", { style: { color: b ? o : s }, children: b ? "-" : "+" }),
1741
+ /* @__PURE__ */ i("button", { onClick: () => r(l), children: /* @__PURE__ */ p("h3", { style: { color: y ? o : s }, children: [
1742
+ /* @__PURE__ */ i("span", { style: { color: y ? o : s }, children: y ? "-" : "+" }),
1743
1743
  /* @__PURE__ */ i(
1744
1744
  "span",
1745
1745
  {
1746
- style: { marginLeft: 12, color: b ? o : s },
1746
+ style: { marginLeft: 12, color: y ? o : s },
1747
1747
  children: f(n)
1748
1748
  }
1749
1749
  )
1750
1750
  ] }) }),
1751
- d && /* @__PURE__ */ i("div", { className: nt.list, children: d == null ? void 0 : d.map((_, g) => /* @__PURE__ */ i(
1751
+ d && /* @__PURE__ */ i("div", { className: nt.list, children: d == null ? void 0 : d.map((v, C) => /* @__PURE__ */ i(
1752
1752
  We,
1753
1753
  {
1754
- indicator: _,
1754
+ indicator: v,
1755
1755
  defaultColor: s,
1756
1756
  activeColor: o,
1757
1757
  activeIndicator: a,
1758
1758
  onClickIndicator: c,
1759
1759
  multiple: u,
1760
- activeIndicatorType: m,
1761
- onChangeType: h
1760
+ activeIndicatorType: h,
1761
+ onChangeType: g
1762
1762
  },
1763
- "indicator" + g
1763
+ "indicator" + C
1764
1764
  )) })
1765
1765
  ]
1766
1766
  }
@@ -1789,70 +1789,70 @@ const kt = ({
1789
1789
  onClickSubCategory: a,
1790
1790
  activeIndicator: c,
1791
1791
  onClickIndicator: u,
1792
- multiple: m,
1793
- activeIndicatorType: h,
1792
+ multiple: h,
1793
+ activeIndicatorType: g,
1794
1794
  onChangeType: f
1795
1795
  }) => {
1796
- var g;
1797
- const { t: b } = $(), [v, _] = V(!1);
1796
+ var C;
1797
+ const { t: y } = $(), [_, v] = V(!1);
1798
1798
  return F(() => {
1799
- _(r === d);
1799
+ v(r === d);
1800
1800
  }, [r, d]), /* @__PURE__ */ p(
1801
1801
  Ke.div,
1802
1802
  {
1803
1803
  className: Ae.indicatorsCategory,
1804
1804
  initial: { height: "53px" },
1805
- animate: { height: v ? "auto" : "53px" },
1805
+ animate: { height: _ ? "auto" : "53px" },
1806
1806
  transition: { duration: 0.4 },
1807
1807
  style: {
1808
1808
  backgroundColor: "white",
1809
- borderBottom: v ? `1px solid ${s}` : "0px",
1810
- marginBottom: v ? "20px" : "0px"
1809
+ borderBottom: _ ? `1px solid ${s}` : "0px",
1810
+ marginBottom: _ ? "20px" : "0px"
1811
1811
  },
1812
1812
  children: [
1813
1813
  /* @__PURE__ */ p("h2", { className: `${Ae.title}`, onClick: () => t(d), children: [
1814
- /* @__PURE__ */ i("span", { style: { color: v ? s : o }, children: v ? "-" : "+" }),
1814
+ /* @__PURE__ */ i("span", { style: { color: _ ? s : o }, children: _ ? "-" : "+" }),
1815
1815
  /* @__PURE__ */ i(
1816
1816
  "span",
1817
1817
  {
1818
- style: { marginLeft: 12, color: v ? s : o },
1819
- children: b(n.name)
1818
+ style: { marginLeft: 12, color: _ ? s : o },
1819
+ children: y(n.name)
1820
1820
  }
1821
1821
  )
1822
1822
  ] }),
1823
1823
  n.subcategories ? n.subcategories.map(
1824
- ({ name: C, subcategory: y, indicators: x }, w) => /* @__PURE__ */ i(
1824
+ ({ name: m, subcategory: b, indicators: x }, w) => /* @__PURE__ */ i(
1825
1825
  xt,
1826
1826
  {
1827
- id: y,
1827
+ id: b,
1828
1828
  activeSubCategory: l,
1829
- subcName: C,
1829
+ subcName: m,
1830
1830
  onClickSubCategory: a,
1831
1831
  activeIndicator: c,
1832
1832
  onClickIndicator: u,
1833
- multiple: m,
1833
+ multiple: h,
1834
1834
  activeColor: s,
1835
1835
  defaultColor: o,
1836
1836
  indicators: x,
1837
- activeIndicatorType: h,
1837
+ activeIndicatorType: g,
1838
1838
  onChangeType: f
1839
1839
  },
1840
1840
  `subcKey ${w}`
1841
1841
  )
1842
- ) : /* @__PURE__ */ i("div", { className: Ae.list, children: (g = n.indicators) == null ? void 0 : g.map((C, y) => /* @__PURE__ */ i(
1842
+ ) : /* @__PURE__ */ i("div", { className: Ae.list, children: (C = n.indicators) == null ? void 0 : C.map((m, b) => /* @__PURE__ */ i(
1843
1843
  We,
1844
1844
  {
1845
- indicator: C,
1846
- values: C.type == "twoUnits" && C.values,
1845
+ indicator: m,
1846
+ values: m.type == "twoUnits" && m.values,
1847
1847
  activeColor: s,
1848
1848
  defaultColor: o,
1849
1849
  activeIndicator: c,
1850
1850
  onClickIndicator: u,
1851
- multiple: m,
1852
- activeIndicatorType: h,
1851
+ multiple: h,
1852
+ activeIndicatorType: g,
1853
1853
  onChangeType: f
1854
1854
  },
1855
- `indicator${y}`
1855
+ `indicator${b}`
1856
1856
  )) })
1857
1857
  ]
1858
1858
  }
@@ -1889,20 +1889,20 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
1889
1889
  changeIndType: l,
1890
1890
  activeIndicatorType: a
1891
1891
  }) => {
1892
- const { t: c } = $(), [u, m] = V(), [h, f] = V(), [b, v] = V(), _ = (w) => {
1893
- m(u == w ? null : w);
1894
- }, g = (w) => {
1895
- f(h == w ? null : w);
1896
- }, C = ({ indicator: w }) => {
1897
- y(w);
1898
- }, y = (w) => {
1892
+ const { t: c } = $(), [u, h] = V(), [g, f] = V(), [y, _] = V(), v = (w) => {
1893
+ h(u == w ? null : w);
1894
+ }, C = (w) => {
1895
+ f(g == w ? null : w);
1896
+ }, m = ({ indicator: w }) => {
1897
+ b(w);
1898
+ }, b = (w) => {
1899
1899
  if (!t)
1900
- v(
1901
- (b == null ? void 0 : b.name) == w.name ? null : w
1900
+ _(
1901
+ (y == null ? void 0 : y.name) == w.name ? null : w
1902
1902
  );
1903
1903
  else {
1904
- let k = b && b.length > 0 ? [...b] : [];
1905
- v(
1904
+ let k = y && y.length > 0 ? [...y] : [];
1905
+ _(
1906
1906
  k != null && k.some(
1907
1907
  (S) => S.name == w.name
1908
1908
  ) ? k.filter(
@@ -1912,14 +1912,14 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
1912
1912
  }
1913
1913
  };
1914
1914
  F(() => {
1915
- o && typeof o == "function" && b && o({ activeIndicator: b });
1916
- }, [b]), It(() => {
1917
- if (r && !b)
1915
+ o && typeof o == "function" && y && o({ activeIndicator: y });
1916
+ }, [y]), It(() => {
1917
+ if (r && !y)
1918
1918
  if (t && r && Array.isArray(r)) {
1919
- let w = b && b.length > 0 ? [...b] : [];
1920
- v([...w, ...r]), x(r[0].name);
1919
+ let w = y && y.length > 0 ? [...y] : [];
1920
+ _([...w, ...r]), x(r[0].name);
1921
1921
  } else
1922
- y(r), x(r.name);
1922
+ b(r), x(r.name);
1923
1923
  }, []);
1924
1924
  const x = (w) => {
1925
1925
  const k = n.find((S) => {
@@ -1932,7 +1932,7 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
1932
1932
  } else
1933
1933
  return S.indicators.some((L) => L.name == w);
1934
1934
  });
1935
- k && m(k.category);
1935
+ k && h(k.category);
1936
1936
  };
1937
1937
  return /* @__PURE__ */ p("div", { className: it.indicatorsList, children: [
1938
1938
  /* @__PURE__ */ i("h2", { className: it.title, style: { color: s }, children: c("indicators.indicators") }),
@@ -1941,12 +1941,12 @@ const Fn = "_indicatorsList_13b3m_2", Vn = "_title_13b3m_6", it = {
1941
1941
  {
1942
1942
  id: w.category,
1943
1943
  cat: w,
1944
- onClickCategory: _,
1944
+ onClickCategory: v,
1945
1945
  activeCategory: u,
1946
- onClickSubCategory: g,
1947
- activeSubCategory: h,
1948
- onClickIndicator: C,
1949
- activeIndicator: b,
1946
+ onClickSubCategory: C,
1947
+ activeSubCategory: g,
1948
+ onClickIndicator: m,
1949
+ activeIndicator: y,
1950
1950
  activeColor: d,
1951
1951
  defaultColor: s,
1952
1952
  multiple: t,
@@ -2067,11 +2067,11 @@ const jn = "_legendContainer_qs4x9_3", zn = "_closeButton_qs4x9_31", Zn = "_titl
2067
2067
  children: [
2068
2068
  /* @__PURE__ */ i("button", { className: I.closeButton, onClick: c }),
2069
2069
  d && /* @__PURE__ */ i("div", { className: I.titleContainer, style: { marginBottom: (!s || s.length == 0) && "15px" }, children: /* @__PURE__ */ i("h2", { children: d }) }),
2070
- s && s.length > 0 && /* @__PURE__ */ i("div", { className: I.infoContainer, children: /* @__PURE__ */ i("ul", { children: s.map(({ title: m, value: h }) => /* @__PURE__ */ p("li", { children: [
2071
- /* @__PURE__ */ i("h3", { className: I.title, children: `${m}:` }),
2070
+ s && s.length > 0 && /* @__PURE__ */ i("div", { className: I.infoContainer, children: /* @__PURE__ */ i("ul", { children: s.map(({ title: h, value: g }) => /* @__PURE__ */ p("li", { children: [
2071
+ /* @__PURE__ */ i("h3", { className: I.title, children: `${h}:` }),
2072
2072
  /* @__PURE__ */ p("span", { className: I.value, children: [
2073
2073
  "  ",
2074
- h
2074
+ g
2075
2075
  ] })
2076
2076
  ] }, d)) }) }),
2077
2077
  /* @__PURE__ */ i("h3", { className: I.titleLegendList, style: { marginTop: s && s.length > 0 && "30px" }, children: t && /* @__PURE__ */ i(He, { i18nKey: t, components: { sup: /* @__PURE__ */ i("sup", {}) }, shouldUnescape: !0 }) }),
@@ -2104,16 +2104,16 @@ const jn = "_legendContainer_qs4x9_3", zn = "_closeButton_qs4x9_31", Zn = "_titl
2104
2104
  ] })
2105
2105
  ] })
2106
2106
  ] }) : o && o.length > 0 && /* @__PURE__ */ i("div", { className: I.gridContainer, children: o.map(
2107
- ({ title: m, color: h }) => /* @__PURE__ */ p("div", { className: I.elementLegendContainer, children: [
2107
+ ({ title: h, color: g }) => /* @__PURE__ */ p("div", { className: I.elementLegendContainer, children: [
2108
2108
  /* @__PURE__ */ i(
2109
2109
  "div",
2110
2110
  {
2111
2111
  className: I.colorDot,
2112
- style: { backgroundColor: h }
2112
+ style: { backgroundColor: g }
2113
2113
  }
2114
2114
  ),
2115
2115
  /* @__PURE__ */ p("div", { className: I.titleLegendElement, children: [
2116
- u(m),
2116
+ u(h),
2117
2117
  " "
2118
2118
  ] })
2119
2119
  ] }, d)
@@ -2190,21 +2190,21 @@ const l0 = ({
2190
2190
  interactiveLayers: a = [],
2191
2191
  popUp: c = !1,
2192
2192
  sources: u = [],
2193
- layers: m = []
2193
+ layers: h = []
2194
2194
  }) => {
2195
- const h = oe(), [f, b] = V(null), v = qt((_) => _.mapState.showTexts);
2195
+ const g = oe(), [f, y] = V(null), _ = qt((v) => v.mapState.showTexts);
2196
2196
  return F(() => {
2197
- if (h.current) {
2198
- const _ = h.current.getMap();
2199
- _.getStyle().layers.map((C) => {
2200
- C.type == "symbol" && C.id != "professionals" && (v ? _.setLayoutProperty(C.id, "visibility", "visible") : _.setLayoutProperty(C.id, "visibility", "none"));
2197
+ if (g.current) {
2198
+ const v = g.current.getMap();
2199
+ v.getStyle().layers.map((m) => {
2200
+ m.type == "symbol" && m.id != "professionals" && (_ ? v.setLayoutProperty(m.id, "visibility", "visible") : v.setLayoutProperty(m.id, "visibility", "none"));
2201
2201
  });
2202
2202
  }
2203
- }, [v]), /* @__PURE__ */ i("div", { className: `${a0.mapContainer}`, style: r, children: /* @__PURE__ */ p(
2203
+ }, [_]), /* @__PURE__ */ i("div", { className: `${a0.mapContainer}`, style: r, children: /* @__PURE__ */ p(
2204
2204
  Rt,
2205
2205
  {
2206
2206
  initialViewState: n,
2207
- ref: h,
2207
+ ref: g,
2208
2208
  hash: !1,
2209
2209
  maxZoom: d,
2210
2210
  minZoom: s,
@@ -2212,22 +2212,22 @@ const l0 = ({
2212
2212
  onClick: l,
2213
2213
  interactiveLayerIds: a,
2214
2214
  children: [
2215
- u.length && u.map((_, g) => /* @__PURE__ */ i(
2215
+ u.length && u.map((v, C) => /* @__PURE__ */ i(
2216
2216
  Et,
2217
2217
  {
2218
- ..._,
2219
- children: m.length && m.map((C, y) => {
2220
- if (C.sourceId == _.id) return /* @__PURE__ */ i(
2218
+ ...v,
2219
+ children: h.length && h.map((m, b) => {
2220
+ if (m.sourceId == v.id) return /* @__PURE__ */ i(
2221
2221
  Pt,
2222
2222
  {
2223
- ...C.layer,
2223
+ ...m.layer,
2224
2224
  beforeId: t
2225
2225
  },
2226
- y
2226
+ b
2227
2227
  );
2228
2228
  })
2229
2229
  },
2230
- g
2230
+ C
2231
2231
  )),
2232
2232
  /* @__PURE__ */ i(jt, { position: "bottom-right", visualizePitch: !0 }),
2233
2233
  c && f && /* @__PURE__ */ i(
@@ -2236,7 +2236,7 @@ const l0 = ({
2236
2236
  longitude: c.longitude,
2237
2237
  latitude: c.latitude,
2238
2238
  anchor: c.anchor,
2239
- onClose: () => b(null),
2239
+ onClose: () => y(null),
2240
2240
  children: c.content
2241
2241
  }
2242
2242
  )
@@ -2318,22 +2318,22 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
2318
2318
  interactiveLayers: a = [],
2319
2319
  sources: c = [],
2320
2320
  layers: u = [],
2321
- popUpParams: m,
2322
- onClosePopUp: h,
2321
+ popUpParams: h,
2322
+ onClosePopUp: g,
2323
2323
  showTexts: f,
2324
- hash: b = !1
2324
+ hash: y = !1
2325
2325
  }) => {
2326
- const v = oe();
2326
+ const _ = oe();
2327
2327
  return F(() => {
2328
- if (v.current) {
2329
- const _ = v.current.getMap();
2330
- _.getStyle().layers.map((C) => {
2331
- C.type == "symbol" && C.id != "professionals" && (f ? _.setLayoutProperty(C.id, "visibility", "visible") : _.setLayoutProperty(C.id, "visibility", "none"));
2328
+ if (_.current) {
2329
+ const v = _.current.getMap();
2330
+ v.getStyle().layers.map((m) => {
2331
+ m.type == "symbol" && m.id != "professionals" && (f ? v.setLayoutProperty(m.id, "visibility", "visible") : v.setLayoutProperty(m.id, "visibility", "none"));
2332
2332
  });
2333
2333
  }
2334
2334
  }, [f]), F(() => {
2335
- let _ = new Zt();
2336
- return De.addProtocol("pmtiles", _.tile), () => {
2335
+ let v = new Zt();
2336
+ return De.addProtocol("pmtiles", v.tile), () => {
2337
2337
  De.removeProtocol("pmtiles");
2338
2338
  };
2339
2339
  }, []), /* @__PURE__ */ i("div", { className: `${d0.mapContainer}`, style: r && r, children: /* @__PURE__ */ p(
@@ -2341,43 +2341,43 @@ const c0 = "_mapContainer_b0pyr_3", d0 = {
2341
2341
  {
2342
2342
  mapLib: De,
2343
2343
  initialViewState: n,
2344
- ref: v,
2345
- hash: b,
2344
+ ref: _,
2345
+ hash: y,
2346
2346
  maxZoom: d,
2347
2347
  minZoom: s,
2348
2348
  mapStyle: o,
2349
2349
  onClick: l,
2350
2350
  interactiveLayerIds: a,
2351
2351
  children: [
2352
- c.length && c.map((_, g) => /* @__PURE__ */ i(
2352
+ c.length && c.map((v, C) => /* @__PURE__ */ i(
2353
2353
  Kt,
2354
2354
  {
2355
- ..._,
2356
- children: u.length && u.map((C, y) => {
2357
- if (C.sourceId == _.id) return /* @__PURE__ */ i(
2355
+ ...v,
2356
+ children: u.length && u.map((m, b) => {
2357
+ if (m.sourceId == v.id) return /* @__PURE__ */ i(
2358
2358
  Ut,
2359
2359
  {
2360
- ...C.layer,
2360
+ ...m.layer,
2361
2361
  beforeId: t,
2362
- filter: C.filters ? C.filters : ["all"],
2362
+ filter: m.filters ? m.filters : ["all"],
2363
2363
  layout: {
2364
- visibility: C.layer.visibility || "visible"
2364
+ visibility: m.layer.visibility || "visible"
2365
2365
  }
2366
2366
  },
2367
- y
2367
+ b
2368
2368
  );
2369
2369
  })
2370
2370
  },
2371
- g
2371
+ C
2372
2372
  )),
2373
2373
  /* @__PURE__ */ i(Wt, { position: "bottom-right", visualizePitch: !0 }),
2374
- m && /* @__PURE__ */ i(
2374
+ h && /* @__PURE__ */ i(
2375
2375
  Gt,
2376
2376
  {
2377
- longitude: m.lng,
2378
- latitude: m.lat,
2379
- onClose: h,
2380
- children: /* @__PURE__ */ i(m0, { props: m.props })
2377
+ longitude: h.lng,
2378
+ latitude: h.lat,
2379
+ onClose: g,
2380
+ children: /* @__PURE__ */ i(m0, { props: h.props })
2381
2381
  }
2382
2382
  )
2383
2383
  ]
@@ -2513,30 +2513,30 @@ const w0 = Yt({
2513
2513
  console.log("year changed to ", a);
2514
2514
  }
2515
2515
  }) => {
2516
- const [a, c] = V(d), u = (C, y) => {
2517
- c(y), l(y);
2518
- }, [m, h] = V(!1), f = () => {
2519
- h(!0);
2520
- }, b = () => {
2521
- h(!1);
2516
+ const [a, c] = V(d), u = (m, b) => {
2517
+ c(b), l(b);
2518
+ }, [h, g] = V(!1), f = () => {
2519
+ g(!0);
2520
+ }, y = () => {
2521
+ g(!1);
2522
2522
  };
2523
- ((C, y) => {
2523
+ ((m, b) => {
2524
2524
  const x = oe();
2525
2525
  F(() => {
2526
- x.current = C;
2527
- }, [C]), F(() => {
2526
+ x.current = m;
2527
+ }, [m]), F(() => {
2528
2528
  function w() {
2529
2529
  x.current();
2530
2530
  }
2531
2531
  {
2532
- let k = setInterval(w, y);
2532
+ let k = setInterval(w, b);
2533
2533
  return () => clearInterval(k);
2534
2534
  }
2535
- }, [y]);
2535
+ }, [b]);
2536
2536
  })(() => {
2537
- m && (a != 2050 ? (c(a + 1), l(a + 1)) : (c(2025), l(2025)));
2537
+ h && (a != 2050 ? (c(a + 1), l(a + 1)) : (c(2025), l(2025)));
2538
2538
  }, 1e3);
2539
- const _ = Xt({
2539
+ const v = Xt({
2540
2540
  palette: {
2541
2541
  primary: {
2542
2542
  main: "#605b56"
@@ -2558,13 +2558,13 @@ const w0 = Yt({
2558
2558
  }
2559
2559
  }
2560
2560
  }
2561
- }), g = [
2561
+ }), C = [
2562
2562
  { label: "", value: 2025 },
2563
2563
  { label: "", value: 2032 },
2564
2564
  { label: "", value: 2041 },
2565
2565
  { label: "", value: 2050 }
2566
2566
  ];
2567
- return /* @__PURE__ */ i(e2, { theme: _, children: /* @__PURE__ */ p(
2567
+ return /* @__PURE__ */ i(e2, { theme: v, children: /* @__PURE__ */ p(
2568
2568
  Jt,
2569
2569
  {
2570
2570
  sx: { width: 400 },
@@ -2579,7 +2579,7 @@ const w0 = Yt({
2579
2579
  value: a,
2580
2580
  valueLabelDisplay: "on",
2581
2581
  step: 1,
2582
- marks: g,
2582
+ marks: C,
2583
2583
  min: s,
2584
2584
  max: o,
2585
2585
  onChange: u,
@@ -2588,8 +2588,8 @@ const w0 = Yt({
2588
2588
  }
2589
2589
  ),
2590
2590
  o,
2591
- !m && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: f, children: /* @__PURE__ */ i("img", { src: x0, alt: "Play" }) }),
2592
- m && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: b, children: /* @__PURE__ */ i("img", { src: k0, alt: "Pause" }) })
2591
+ !h && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: f, children: /* @__PURE__ */ i("img", { src: x0, alt: "Play" }) }),
2592
+ h && /* @__PURE__ */ i("button", { className: ge.playButton, onClick: y, children: /* @__PURE__ */ i("img", { src: k0, alt: "Pause" }) })
2593
2593
  ]
2594
2594
  }
2595
2595
  ) });
@@ -2732,17 +2732,17 @@ const oi = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2732
2732
  elementButtons: a,
2733
2733
  processTooltip: c,
2734
2734
  defaultTooltip: u,
2735
- showEye: m = !0
2735
+ showEye: h = !0
2736
2736
  }) => {
2737
- const { name: h, created_at: f, id: b, isBeingProcessed: v } = n, [_, g] = V(!1), { t: C } = $();
2737
+ const { name: g, created_at: f, id: y, isBeingProcessed: _ } = n, [v, C] = V(!1), { t: m } = $();
2738
2738
  return /* @__PURE__ */ p(
2739
2739
  "div",
2740
2740
  {
2741
2741
  className: Z.listElement,
2742
2742
  style: { borderBottom: `1px solid ${t}` },
2743
2743
  children: [
2744
- /* @__PURE__ */ i("div", { className: Z.elementNameDate, onClick: () => d(b), children: Object.keys(l).map((y) => y === "name" ? /* @__PURE__ */ i("div", { className: Z.elementNameContainer, children: /* @__PURE__ */ p("div", { className: Z.elementName, children: [
2745
- m && (s ? /* @__PURE__ */ i(si, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ i(
2744
+ /* @__PURE__ */ i("div", { className: Z.elementNameDate, onClick: () => d(y), children: Object.keys(l).map((b) => b === "name" ? /* @__PURE__ */ i("div", { className: Z.elementNameContainer, children: /* @__PURE__ */ p("div", { className: Z.elementName, children: [
2745
+ h && (s ? /* @__PURE__ */ i(si, { style: { color: o, marginRight: 9 } }) : /* @__PURE__ */ i(
2746
2746
  "img",
2747
2747
  {
2748
2748
  style: { marginRight: 9 },
@@ -2750,8 +2750,8 @@ const oi = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2750
2750
  alt: "eye"
2751
2751
  }
2752
2752
  )),
2753
- /* @__PURE__ */ i("span", { style: { color: s ? o : t }, children: h })
2754
- ] }) }) : y == "data" ? /* @__PURE__ */ i("div", { className: Z.elementDate, children: f ? new Date(f).toLocaleDateString() : "" }) : /* @__PURE__ */ i("div", { className: Z.elementDate, children: n[y] })) }),
2753
+ /* @__PURE__ */ i("span", { style: { color: s ? o : t }, children: g })
2754
+ ] }) }) : b == "data" ? /* @__PURE__ */ i("div", { className: Z.elementDate, children: f ? new Date(f).toLocaleDateString() : "" }) : /* @__PURE__ */ i("div", { className: Z.elementDate, children: n[b] })) }),
2755
2755
  /* @__PURE__ */ p("div", { className: Z.elementButtons, children: [
2756
2756
  n.processing && /* @__PURE__ */ p("div", { className: "tooltip-parent", children: [
2757
2757
  /* @__PURE__ */ i("img", { src: ni }),
@@ -2776,11 +2776,11 @@ const oi = "data:image/svg+xml,%3csvg%20width='26'%20height='18'%20viewBox='0%20
2776
2776
  ] }),
2777
2777
  r && /* @__PURE__ */ i("div", { className: Z.break }),
2778
2778
  r && /* @__PURE__ */ p("div", { className: Z.moreInfoContainer, children: [
2779
- /* @__PURE__ */ p("div", { className: Z.moreInfo, onClick: () => g(!_), children: [
2780
- /* @__PURE__ */ i("span", { children: _ ? "-" : "+" }),
2781
- C(r.label)
2779
+ /* @__PURE__ */ p("div", { className: Z.moreInfo, onClick: () => C(!v), children: [
2780
+ /* @__PURE__ */ i("span", { children: v ? "-" : "+" }),
2781
+ m(r.label)
2782
2782
  ] }),
2783
- r && _ && /* @__PURE__ */ i("div", { className: Z.moreInfoInfo, children: n[r.info] })
2783
+ r && v && /* @__PURE__ */ i("div", { className: Z.moreInfoInfo, children: n[r.info] })
2784
2784
  ] })
2785
2785
  ]
2786
2786
  }
@@ -2831,27 +2831,27 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2831
2831
  containerStyles: r = {},
2832
2832
  newElementButton: l,
2833
2833
  //{label: 'text', onClick: function(), disabled}/null
2834
- onClickElement: a = (v) => console.log(`OnCLickElement: ${v}`),
2834
+ onClickElement: a = (_) => console.log(`OnCLickElement: ${_}`),
2835
2835
  columns: c,
2836
2836
  // {'name': nomLabel/null, 'data':dataLabel/null, 'ambit':ambitLabel/null, 'escenari':escenariLabel/null}
2837
2837
  elementButtons: u,
2838
2838
  //{'copy': {onClick:onClickCopy, tooltipText:'text'}/null, 'filter': {onClick:onClickFilter, tooltipText:'text'}/null, 'trash':{onClick:onClickTrash, tooltipText:'text'}/null}
2839
- moreInfo: m = !1,
2839
+ moreInfo: h = !1,
2840
2840
  //{label: 'x'}
2841
- processTooltip: h,
2841
+ processTooltip: g,
2842
2842
  //texto para el tooltip del simbolo "En proceso"
2843
2843
  defaultTooltip: f,
2844
2844
  //texto para el tooltip del símbolo de candado para los elementos default
2845
- showEye: b = !0
2845
+ showEye: y = !0
2846
2846
  }) => {
2847
- const { t: v } = $(), [_, g] = V(n);
2847
+ const { t: _ } = $(), [v, C] = V(n);
2848
2848
  F(() => {
2849
- n && g(n);
2849
+ n && C(n);
2850
2850
  }, [n]);
2851
- const C = (y) => {
2852
- if (_ && _.length > 0) {
2853
- let x = [..._];
2854
- x.sort((w, k) => w[y].localeCompare(k[y])), g(x);
2851
+ const m = (b) => {
2852
+ if (v && v.length > 0) {
2853
+ let x = [...v];
2854
+ x.sort((w, k) => w[b].localeCompare(k[b])), C(x);
2855
2855
  }
2856
2856
  };
2857
2857
  return /* @__PURE__ */ p(
@@ -2866,33 +2866,33 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2866
2866
  className: K.header,
2867
2867
  style: { borderBottom: `1px solid ${s}` },
2868
2868
  children: [
2869
- /* @__PURE__ */ i("div", { className: K.nameDateContainer, children: Object.keys(c).map((y) => y === "name" ? /* @__PURE__ */ i("div", { className: K.elementName, children: /* @__PURE__ */ p("button", { onClick: () => C("name"), children: [
2870
- /* @__PURE__ */ i("span", { children: v(c.name) }),
2869
+ /* @__PURE__ */ i("div", { className: K.nameDateContainer, children: Object.keys(c).map((b) => b === "name" ? /* @__PURE__ */ i("div", { className: K.elementName, children: /* @__PURE__ */ p("button", { onClick: () => m("name"), children: [
2870
+ /* @__PURE__ */ i("span", { children: _(c.name) }),
2871
2871
  /* @__PURE__ */ i("img", { src: at, alt: "order arrow" })
2872
- ] }) }, y) : y === "data" ? /* @__PURE__ */ i("div", { className: K.elementDate, children: /* @__PURE__ */ p("button", { onClick: () => C("date"), children: [
2873
- /* @__PURE__ */ i("span", { children: v(c.data) }),
2872
+ ] }) }, b) : b === "data" ? /* @__PURE__ */ i("div", { className: K.elementDate, children: /* @__PURE__ */ p("button", { onClick: () => m("date"), children: [
2873
+ /* @__PURE__ */ i("span", { children: _(c.data) }),
2874
2874
  /* @__PURE__ */ i("img", { src: at, alt: "order arrow" })
2875
- ] }) }, y) : /* @__PURE__ */ i("div", { className: K.elementDate, children: /* @__PURE__ */ i("span", { children: v(c[y]) }) }, y)) }),
2875
+ ] }) }, b) : /* @__PURE__ */ i("div", { className: K.elementDate, children: /* @__PURE__ */ i("span", { children: _(c[b]) }) }, b)) }),
2876
2876
  /* @__PURE__ */ i("div", { className: K.buttonsContainer })
2877
2877
  ]
2878
2878
  }
2879
2879
  ),
2880
- /* @__PURE__ */ i("div", { className: K.elementListContainer, children: _ && _.length > 0 && _.map((y) => /* @__PURE__ */ i(
2880
+ /* @__PURE__ */ i("div", { className: K.elementListContainer, children: v && v.length > 0 && v.map((b) => /* @__PURE__ */ i(
2881
2881
  Nt,
2882
2882
  {
2883
- isActive: d == y.id,
2884
- listelement: y,
2883
+ isActive: d == b.id,
2884
+ listelement: b,
2885
2885
  fontColor: s,
2886
2886
  activeColor: o,
2887
2887
  onClickElement: a,
2888
2888
  columns: c,
2889
2889
  elementButtons: u,
2890
- moreInfo: m,
2891
- processTooltip: h,
2890
+ moreInfo: h,
2891
+ processTooltip: g,
2892
2892
  defaultTooltip: f,
2893
- showEye: b
2893
+ showEye: y
2894
2894
  },
2895
- `elementKey${y.id}`
2895
+ `elementKey${b.id}`
2896
2896
  )) }),
2897
2897
  l && /* @__PURE__ */ i("div", { className: K.newElementButtonContainer, children: /* @__PURE__ */ i(
2898
2898
  Me,
@@ -2901,7 +2901,7 @@ const at = "data:image/svg+xml,%3csvg%20width='14'%20height='16'%20viewBox='0%20
2901
2901
  onClick: l.onClick,
2902
2902
  borderColor: "grey",
2903
2903
  disabled: l.disabled || !1,
2904
- children: v(l.label)
2904
+ children: _(l.label)
2905
2905
  }
2906
2906
  ) })
2907
2907
  ]
@@ -3063,7 +3063,7 @@ function ki(n) {
3063
3063
  values: !0
3064
3064
  },
3065
3065
  exact: l,
3066
- callback: (m) => !r && u(xi(o, s._names, m.values || s._formValues, !1, a.current))
3066
+ callback: (h) => !r && u(xi(o, s._names, h.values || s._formValues, !1, a.current))
3067
3067
  }), [o, s, r, l]), D.useEffect(() => s._removeUnmounted()), c;
3068
3068
  }
3069
3069
  function Ni(n) {
@@ -3076,11 +3076,11 @@ function Ni(n) {
3076
3076
  control: t,
3077
3077
  name: s,
3078
3078
  exact: !0
3079
- }), u = D.useRef(n), m = D.useRef(t.register(s, {
3079
+ }), u = D.useRef(n), h = D.useRef(t.register(s, {
3080
3080
  ...n.rules,
3081
3081
  value: a,
3082
3082
  ...Oe(n.disabled) ? { disabled: n.disabled } : {}
3083
- })), h = D.useMemo(() => Object.defineProperties({}, {
3083
+ })), g = D.useMemo(() => Object.defineProperties({}, {
3084
3084
  invalid: {
3085
3085
  enumerable: !0,
3086
3086
  get: () => !!P(c.errors, s)
@@ -3101,50 +3101,50 @@ function Ni(n) {
3101
3101
  enumerable: !0,
3102
3102
  get: () => P(c.errors, s)
3103
3103
  }
3104
- }), [c, s]), f = D.useCallback((g) => m.current.onChange({
3104
+ }), [c, s]), f = D.useCallback((C) => h.current.onChange({
3105
3105
  target: {
3106
- value: hi(g),
3106
+ value: hi(C),
3107
3107
  name: s
3108
3108
  },
3109
3109
  type: ct.CHANGE
3110
- }), [s]), b = D.useCallback(() => m.current.onBlur({
3110
+ }), [s]), y = D.useCallback(() => h.current.onBlur({
3111
3111
  target: {
3112
3112
  value: P(t._formValues, s),
3113
3113
  name: s
3114
3114
  },
3115
3115
  type: ct.BLUR
3116
- }), [s, t._formValues]), v = D.useCallback((g) => {
3117
- const C = P(t._fields, s);
3118
- C && g && (C._f.ref = {
3119
- focus: () => g.focus && g.focus(),
3120
- select: () => g.select && g.select(),
3121
- setCustomValidity: (y) => g.setCustomValidity(y),
3122
- reportValidity: () => g.reportValidity()
3116
+ }), [s, t._formValues]), _ = D.useCallback((C) => {
3117
+ const m = P(t._fields, s);
3118
+ m && C && (m._f.ref = {
3119
+ focus: () => C.focus && C.focus(),
3120
+ select: () => C.select && C.select(),
3121
+ setCustomValidity: (b) => C.setCustomValidity(b),
3122
+ reportValidity: () => C.reportValidity()
3123
3123
  });
3124
- }, [t._fields, s]), _ = D.useMemo(() => ({
3124
+ }, [t._fields, s]), v = D.useMemo(() => ({
3125
3125
  name: s,
3126
3126
  value: a,
3127
3127
  ...Oe(o) || c.disabled ? { disabled: c.disabled || o } : {},
3128
3128
  onChange: f,
3129
- onBlur: b,
3130
- ref: v
3131
- }), [s, o, c.disabled, f, b, v, a]);
3129
+ onBlur: y,
3130
+ ref: _
3131
+ }), [s, o, c.disabled, f, y, _, a]);
3132
3132
  return D.useEffect(() => {
3133
- const g = t._options.shouldUnregister || r;
3133
+ const C = t._options.shouldUnregister || r;
3134
3134
  t.register(s, {
3135
3135
  ...u.current.rules,
3136
3136
  ...Oe(u.current.disabled) ? { disabled: u.current.disabled } : {}
3137
3137
  });
3138
- const C = (y, x) => {
3139
- const w = P(t._fields, y);
3138
+ const m = (b, x) => {
3139
+ const w = P(t._fields, b);
3140
3140
  w && w._f && (w._f.mount = x);
3141
3141
  };
3142
- if (C(s, !0), g) {
3143
- const y = $t(P(t._options.defaultValues, s));
3144
- lt(t._defaultValues, s, y), Ze(P(t._formValues, s)) && lt(t._formValues, s, y);
3142
+ if (m(s, !0), C) {
3143
+ const b = $t(P(t._options.defaultValues, s));
3144
+ lt(t._defaultValues, s, b), Ze(P(t._formValues, s)) && lt(t._formValues, s, b);
3145
3145
  }
3146
3146
  return !l && t.register(s), () => {
3147
- (l ? g && !t._state.action : g) ? t.unregister(s) : C(s, !1);
3147
+ (l ? C && !t._state.action : C) ? t.unregister(s) : m(s, !1);
3148
3148
  };
3149
3149
  }, [s, t, l, r]), D.useEffect(() => {
3150
3150
  t._setDisabledField({
@@ -3152,10 +3152,10 @@ function Ni(n) {
3152
3152
  name: s
3153
3153
  });
3154
3154
  }, [o, s, t]), D.useMemo(() => ({
3155
- field: _,
3155
+ field: v,
3156
3156
  formState: c,
3157
- fieldState: h
3158
- }), [_, c, h]);
3157
+ fieldState: g
3158
+ }), [v, c, g]);
3159
3159
  }
3160
3160
  const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_labelContainer_1o3iy_5", Bi = "_inputContainer_1o3iy_8", Ti = "_showPasswordButton_1o3iy_14", Li = "_forgotPassButton_1o3iy_26", be = {
3161
3161
  textInputContainer: Si,
@@ -3191,21 +3191,21 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3191
3191
  validateFunction: a,
3192
3192
  placeholder: c,
3193
3193
  errorColor: u = "red",
3194
- width: m = 325,
3195
- onClickForgotPass: h = () => {
3194
+ width: h = 325,
3195
+ onClickForgotPass: g = () => {
3196
3196
  console.log("Click on forgot password");
3197
3197
  },
3198
3198
  forgotPassLabel: f = "forgot-password"
3199
- } = n, { t: b } = $(), { control: v, trigger: _, clearErrors: g } = d, { errorColor: C } = xe((k) => k), [y, x] = V(!1);
3199
+ } = n, { t: y } = $(), { control: _, trigger: v, clearErrors: C } = d, { errorColor: m } = xe((k) => k), [b, x] = V(!1);
3200
3200
  oe(l);
3201
- const w = () => o ? o === "password" && y ? "text" : o : "text";
3201
+ const w = () => o ? o === "password" && b ? "text" : o : "text";
3202
3202
  return /* @__PURE__ */ i(
3203
3203
  ve,
3204
3204
  {
3205
3205
  name: s,
3206
- control: v,
3206
+ control: _,
3207
3207
  rules: {
3208
- required: l ? `${b(t)} ${b("errorMessages.required")}` : !1,
3208
+ required: l ? `${y(t)} ${y("errorMessages.required")}` : !1,
3209
3209
  maxLength: r || void 0,
3210
3210
  validate: a || void 0
3211
3211
  },
@@ -3213,14 +3213,14 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3213
3213
  var L;
3214
3214
  return /* @__PURE__ */ p("div", { className: be.textInputContainer, children: [
3215
3215
  /* @__PURE__ */ p("h3", { className: be.labelContainer, children: [
3216
- b(t),
3216
+ y(t),
3217
3217
  " ",
3218
3218
  l && /* @__PURE__ */ i("label", { style: { color: S.error ? u : "" }, children: "*" })
3219
3219
  ] }),
3220
3220
  /* @__PURE__ */ p(
3221
3221
  "div",
3222
3222
  {
3223
- style: { position: "relative", width: m },
3223
+ style: { position: "relative", width: h },
3224
3224
  className: be.inputContainer,
3225
3225
  children: [
3226
3226
  /* @__PURE__ */ i(
@@ -3228,28 +3228,28 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3228
3228
  {
3229
3229
  type: w(),
3230
3230
  ...k,
3231
- placeholder: c ? b(c) : "",
3231
+ placeholder: c ? y(c) : "",
3232
3232
  maxLength: r || void 0
3233
3233
  }
3234
3234
  ),
3235
3235
  o == "password" && /* @__PURE__ */ i(
3236
3236
  "button",
3237
3237
  {
3238
- onClick: () => x(!y),
3238
+ onClick: () => x(!b),
3239
3239
  type: "button",
3240
3240
  className: be.showPasswordButton,
3241
- children: y ? "🙈" : "👁️"
3241
+ children: b ? "🙈" : "👁️"
3242
3242
  }
3243
3243
  )
3244
3244
  ]
3245
3245
  }
3246
3246
  ),
3247
- o == "password" && /* @__PURE__ */ i("div", { className: be.forgotPassButton, children: /* @__PURE__ */ i("button", { onClick: h, children: b(f) }) }),
3247
+ o == "password" && /* @__PURE__ */ i("div", { className: be.forgotPassButton, children: /* @__PURE__ */ i("button", { onClick: g, children: y(f) }) }),
3248
3248
  /* @__PURE__ */ i(
3249
3249
  we,
3250
3250
  {
3251
3251
  errorMessage: (L = S.error) == null ? void 0 : L.message,
3252
- errorColor: C || u
3252
+ errorColor: m || u
3253
3253
  }
3254
3254
  )
3255
3255
  ] });
@@ -3275,42 +3275,42 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3275
3275
  validateFunction: a,
3276
3276
  placeholder: c,
3277
3277
  errorColor: u = "red",
3278
- width: m = 325,
3279
- options: h = []
3280
- } = n, { t: f } = $(), { control: b, trigger: v, clearErrors: _ } = d, { errorColor: g } = xe((C) => C);
3278
+ width: h = 325,
3279
+ options: g = []
3280
+ } = n, { t: f } = $(), { control: y, trigger: _, clearErrors: v } = d, { errorColor: C } = xe((m) => m);
3281
3281
  return oe(l), /* @__PURE__ */ i(
3282
3282
  ve,
3283
3283
  {
3284
3284
  name: s,
3285
- control: b,
3285
+ control: y,
3286
3286
  rules: {
3287
3287
  required: l ? `${f(t)} ${f("errorMessages.required")}` : !1,
3288
- validate: a ? (C) => {
3289
- let y = d.getValues();
3290
- return a(C, y);
3288
+ validate: a ? (m) => {
3289
+ let b = d.getValues();
3290
+ return a(m, b);
3291
3291
  } : void 0
3292
3292
  },
3293
- render: ({ field: C, fieldState: y }) => {
3293
+ render: ({ field: m, fieldState: b }) => {
3294
3294
  var x;
3295
3295
  return /* @__PURE__ */ p("div", { className: de.selectInputContainer, children: [
3296
3296
  /* @__PURE__ */ p("h3", { className: de.labelContainer, children: [
3297
3297
  f(t),
3298
3298
  " ",
3299
- l && /* @__PURE__ */ i("label", { style: { color: y.error ? u : "" }, children: "*" })
3299
+ l && /* @__PURE__ */ i("label", { style: { color: b.error ? u : "" }, children: "*" })
3300
3300
  ] }),
3301
- /* @__PURE__ */ p("div", { className: de.inputContainer, style: { width: m }, children: [
3301
+ /* @__PURE__ */ p("div", { className: de.inputContainer, style: { width: h }, children: [
3302
3302
  /* @__PURE__ */ p(
3303
3303
  "select",
3304
3304
  {
3305
- ...C,
3305
+ ...m,
3306
3306
  onChange: (w) => {
3307
- const k = w.target.value, S = h.every((L) => typeof L.value == "number") ? Number(k) : k;
3308
- C.onChange(S);
3307
+ const k = w.target.value, S = g.every((L) => typeof L.value == "number") ? Number(k) : k;
3308
+ m.onChange(S);
3309
3309
  },
3310
3310
  className: de.selectInput,
3311
3311
  children: [
3312
3312
  /* @__PURE__ */ i("option", { value: "", disabled: !0, hidden: !0, children: f(c || "selectOption") }),
3313
- h.map((w, k) => /* @__PURE__ */ i(
3313
+ g.map((w, k) => /* @__PURE__ */ i(
3314
3314
  "option",
3315
3315
  {
3316
3316
  value: w.value,
@@ -3334,8 +3334,8 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3334
3334
  /* @__PURE__ */ i(
3335
3335
  we,
3336
3336
  {
3337
- errorMessage: (x = y.error) == null ? void 0 : x.message,
3338
- errorColor: g || u
3337
+ errorMessage: (x = b.error) == null ? void 0 : x.message,
3338
+ errorColor: C || u
3339
3339
  }
3340
3340
  )
3341
3341
  ] });
@@ -3358,25 +3358,25 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3358
3358
  errorColor: l = "red",
3359
3359
  options: a = [],
3360
3360
  multi: c = !1
3361
- } = n, { t: u } = $(), { control: m, trigger: h, clearErrors: f } = d, { errorColor: b } = xe((g) => g), v = ({ options: g, onChange: C, actualValue: y }) => {
3362
- if (c && y && y.length > 0) {
3363
- let x = y.filter((w) => w !== g);
3364
- C(x);
3361
+ } = n, { t: u } = $(), { control: h, trigger: g, clearErrors: f } = d, { errorColor: y } = xe((C) => C), _ = ({ options: C, onChange: m, actualValue: b }) => {
3362
+ if (c && b && b.length > 0) {
3363
+ let x = b.filter((w) => w !== C);
3364
+ m(x);
3365
3365
  }
3366
- }, _ = ({ options: g, onChange: C, actualValue: y }) => {
3367
- c ? y && y.length > 0 ? C([...y, g]) : C([g]) : C(g);
3366
+ }, v = ({ options: C, onChange: m, actualValue: b }) => {
3367
+ c ? b && b.length > 0 ? m([...b, C]) : m([C]) : m(C);
3368
3368
  };
3369
3369
  return oe(t), /* @__PURE__ */ i(
3370
3370
  ve,
3371
3371
  {
3372
- control: m,
3372
+ control: h,
3373
3373
  name: s,
3374
3374
  rules: {
3375
- validate: (g) => t && (g == null || g === "") ? `${u(o)} ${u("errorMessages.required")}` : null
3375
+ validate: (C) => t && (C == null || C === "") ? `${u(o)} ${u("errorMessages.required")}` : null
3376
3376
  },
3377
3377
  render: ({
3378
- formState: { errors: g },
3379
- field: { onChange: C, onBlur: y, value: x, ref: w },
3378
+ formState: { errors: C },
3379
+ field: { onChange: m, onBlur: b, value: x, ref: w },
3380
3380
  fieldState: k
3381
3381
  }) => {
3382
3382
  var S;
@@ -3415,15 +3415,15 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3415
3415
  type: "radio",
3416
3416
  checked: M,
3417
3417
  onChange: () => {
3418
- c ? M ? v({
3418
+ c ? M ? _({
3419
3419
  actualValue: x,
3420
3420
  options: a,
3421
- onChange: C
3422
- }) : _({
3421
+ onChange: m
3422
+ }) : v({
3423
3423
  actualValue: x,
3424
3424
  options: a,
3425
- onChange: C
3426
- }) : C(N);
3425
+ onChange: m
3426
+ }) : m(N);
3427
3427
  },
3428
3428
  className: ne.radioInput
3429
3429
  }
@@ -3437,7 +3437,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3437
3437
  we,
3438
3438
  {
3439
3439
  errorMessage: (S = k.error) == null ? void 0 : S.message,
3440
- errorColor: b || l
3440
+ errorColor: y || l
3441
3441
  }
3442
3442
  )
3443
3443
  ] })
@@ -3464,18 +3464,18 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3464
3464
  thumbColor: c = "#B32F5D",
3465
3465
  //trackColors = ["#B32F5D", "#EFEFEF"],
3466
3466
  required: u,
3467
- errorColor: m = "red",
3468
- labelWidth: h = "300px",
3467
+ errorColor: h = "red",
3468
+ labelWidth: g = "300px",
3469
3469
  sliderWidth: f = "300px",
3470
- minText: b,
3471
- maxText: v,
3472
- disabled: _ = !1,
3473
- marks: g = Array.from(
3470
+ minText: y,
3471
+ maxText: _,
3472
+ disabled: v = !1,
3473
+ marks: C = Array.from(
3474
3474
  { length: l - r + 1 },
3475
3475
  (B, O) => r + O
3476
3476
  ),
3477
- showMarksNumber: C = !0
3478
- } = n, { t: y } = $(), { control: x, trigger: w, clearErrors: k } = d || {};
3477
+ showMarksNumber: m = !0
3478
+ } = n, { t: b } = $(), { control: x, trigger: w, clearErrors: k } = d || {};
3479
3479
  oe(u);
3480
3480
  const { errorColorForm: S } = xe((B) => B), [L, N] = V(a);
3481
3481
  return d ? /* @__PURE__ */ i(
@@ -3485,7 +3485,7 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3485
3485
  control: x,
3486
3486
  defaultValue: a,
3487
3487
  rules: {
3488
- required: u ? `${y(t)} ${y("errorMessages.required")}` : !1
3488
+ required: u ? `${b(t)} ${b("errorMessages.required")}` : !1
3489
3489
  },
3490
3490
  render: ({ field: B, fieldState: O }) => {
3491
3491
  var q;
@@ -3494,12 +3494,12 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3494
3494
  {
3495
3495
  className: A.rankingSliderContainer,
3496
3496
  style: {
3497
- gridTemplateColumns: `${t && h} ${f}`
3497
+ gridTemplateColumns: `${t && g} ${f}`
3498
3498
  },
3499
3499
  children: [
3500
- t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: y(t) }),
3500
+ t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: b(t) }),
3501
3501
  /* @__PURE__ */ p("div", { className: A.inputContainer, children: [
3502
- b && /* @__PURE__ */ i("div", { className: A.minLabel, children: y(b) }),
3502
+ y && /* @__PURE__ */ i("div", { className: A.minLabel, children: b(y) }),
3503
3503
  /* @__PURE__ */ p("div", { children: [
3504
3504
  /* @__PURE__ */ i(
3505
3505
  je,
@@ -3521,18 +3521,18 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3521
3521
  ),
3522
3522
  trackClassName: A.track,
3523
3523
  markClassName: A.mark,
3524
- disabled: _
3524
+ disabled: v
3525
3525
  }
3526
3526
  ),
3527
- g && /* @__PURE__ */ i("div", { className: A.labels, children: g.map((M) => /* @__PURE__ */ i("span", { children: C && M }, M)) })
3527
+ C && /* @__PURE__ */ i("div", { className: A.labels, children: C.map((M) => /* @__PURE__ */ i("span", { children: m && M }, M)) })
3528
3528
  ] }),
3529
- v && /* @__PURE__ */ i("div", { className: A.maxLabel, children: y(v) })
3529
+ _ && /* @__PURE__ */ i("div", { className: A.maxLabel, children: b(_) })
3530
3530
  ] }),
3531
3531
  /* @__PURE__ */ i(
3532
3532
  we,
3533
3533
  {
3534
3534
  errorMessage: (q = O.error) == null ? void 0 : q.message,
3535
- errorColor: S || m
3535
+ errorColor: S || h
3536
3536
  }
3537
3537
  )
3538
3538
  ]
@@ -3544,11 +3544,11 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3544
3544
  "div",
3545
3545
  {
3546
3546
  className: A.rankingSliderContainer,
3547
- style: { gridTemplateColumns: `${t && h} ${f}` },
3547
+ style: { gridTemplateColumns: `${t && g} ${f}` },
3548
3548
  children: [
3549
- t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: y(t) }),
3549
+ t && /* @__PURE__ */ i("p", { className: A.labelContainer, children: b(t) }),
3550
3550
  /* @__PURE__ */ p("div", { className: A.inputContainer, children: [
3551
- b && /* @__PURE__ */ i("div", { className: A.minLabel, children: y(b) }),
3551
+ y && /* @__PURE__ */ i("div", { className: A.minLabel, children: b(y) }),
3552
3552
  /* @__PURE__ */ p("div", { children: [
3553
3553
  /* @__PURE__ */ i(
3554
3554
  je,
@@ -3572,12 +3572,12 @@ const ve = (n) => n.render(Ni(n)), Si = "_textInputContainer_1o3iy_2", $i = "_la
3572
3572
  ),
3573
3573
  trackClassName: A.track,
3574
3574
  markClassName: A.mark,
3575
- disabled: _
3575
+ disabled: v
3576
3576
  }
3577
3577
  ),
3578
- g && /* @__PURE__ */ i("div", { className: A.labels, children: g.map((B) => /* @__PURE__ */ i("span", { children: C && B }, B)) })
3578
+ C && /* @__PURE__ */ i("div", { className: A.labels, children: C.map((B) => /* @__PURE__ */ i("span", { children: m && B }, B)) })
3579
3579
  ] }),
3580
- v && /* @__PURE__ */ i("div", { className: A.maxLabel, children: y(v) })
3580
+ _ && /* @__PURE__ */ i("div", { className: A.maxLabel, children: b(_) })
3581
3581
  ] })
3582
3582
  ]
3583
3583
  }
@@ -3715,18 +3715,18 @@ const ye = ({
3715
3715
  d(l);
3716
3716
  };
3717
3717
  return /* @__PURE__ */ i("div", { className: Be.categorySelector, children: n.map((l, a) => {
3718
- const { id: c, label: u } = l, m = s == c;
3718
+ const { id: c, label: u } = l, h = s == c;
3719
3719
  return /* @__PURE__ */ i(
3720
3720
  "button",
3721
3721
  {
3722
- className: `${Be.sectionItem} ${m ? Be.sectionItemActive : ""}`,
3722
+ className: `${Be.sectionItem} ${h ? Be.sectionItemActive : ""}`,
3723
3723
  type: "button",
3724
- style: { backgroundColor: m ? o : "inherit" },
3724
+ style: { backgroundColor: h ? o : "inherit" },
3725
3725
  onClick: () => r(c),
3726
3726
  children: /* @__PURE__ */ i(
3727
3727
  "span",
3728
3728
  {
3729
- style: { color: m ? "white" : "inherit" },
3729
+ style: { color: h ? "white" : "inherit" },
3730
3730
  className: Be.sectionLabel,
3731
3731
  children: t(u)
3732
3732
  }
@@ -3746,32 +3746,32 @@ const ye = ({
3746
3746
  submitButtonStyles: a = { width: 325 },
3747
3747
  showCategorySelector: c = !0,
3748
3748
  defaultCategory: u = null,
3749
- categoryLabel: m = "Select Category",
3750
- activeCategory: h = null,
3749
+ categoryLabel: h = "Select Category",
3750
+ activeCategory: g = null,
3751
3751
  activeCategoryColor: f = "#b32f5d",
3752
- onSubmit: b = (v) => console.log("Form submitted with: ", v)
3752
+ onSubmit: y = (_) => console.log("Form submitted with: ", _)
3753
3753
  }) => {
3754
- const { t: v } = $(), { handleSubmit: _, control: g } = n;
3754
+ const { t: _ } = $(), { handleSubmit: v, control: C } = n;
3755
3755
  F(() => {
3756
3756
  r && xe.setState(() => ({ errorColor: r }));
3757
3757
  }, [r]);
3758
- const C = me(() => d ? d.filter((N) => N.category).map((N) => {
3758
+ const m = me(() => d ? d.filter((N) => N.category).map((N) => {
3759
3759
  var B;
3760
3760
  return {
3761
3761
  id: N.categoryId,
3762
3762
  label: N.category,
3763
3763
  hasSubcategories: ((B = N.subcategories) == null ? void 0 : B.length) > 0
3764
3764
  };
3765
- }) : [], [d]), y = (N) => {
3765
+ }) : [], [d]), b = (N) => {
3766
3766
  const B = d == null ? void 0 : d.find((O) => O.categoryId === N);
3767
3767
  return (B == null ? void 0 : B.subcategories) || [];
3768
3768
  }, [x, w] = V(
3769
- h || u || null
3769
+ g || u || null
3770
3770
  ), [k, S] = V(null);
3771
3771
  F(() => {
3772
- !x && C.length > 0 && w(C[0].id);
3773
- }, [C, x]), F(() => {
3774
- const N = y(x);
3772
+ !x && m.length > 0 && w(m[0].id);
3773
+ }, [m, x]), F(() => {
3774
+ const N = b(x);
3775
3775
  !k && (N == null ? void 0 : N.length) > 0 && S(N[0].id);
3776
3776
  }, [x, k, d]);
3777
3777
  const L = (N, B) => {
@@ -3808,7 +3808,7 @@ const ye = ({
3808
3808
  ye,
3809
3809
  {
3810
3810
  inputs: M.inputs,
3811
- control: g,
3811
+ control: C,
3812
3812
  inputContainerStyles: o,
3813
3813
  errorColor: r,
3814
3814
  reactHookFormInstance: n
@@ -3824,12 +3824,12 @@ const ye = ({
3824
3824
  display: z ? "block" : "none"
3825
3825
  },
3826
3826
  children: [
3827
- /* @__PURE__ */ i("h3", { style: { marginBottom: 15 }, children: v(M.label) }),
3827
+ /* @__PURE__ */ i("h3", { style: { marginBottom: 15 }, children: _(M.label) }),
3828
3828
  /* @__PURE__ */ i(
3829
3829
  ye,
3830
3830
  {
3831
3831
  inputs: M.inputs,
3832
- control: g,
3832
+ control: C,
3833
3833
  inputContainerStyles: o,
3834
3834
  errorColor: r,
3835
3835
  reactHookFormInstance: n
@@ -3846,18 +3846,18 @@ const ye = ({
3846
3846
  ye,
3847
3847
  {
3848
3848
  inputs: N.inputs,
3849
- control: g,
3849
+ control: C,
3850
3850
  inputContainerStyles: o,
3851
3851
  errorColor: r,
3852
3852
  reactHookFormInstance: n
3853
3853
  }
3854
3854
  ) }, N.categoryId) : /* @__PURE__ */ p("div", { style: { width: "100%" }, children: [
3855
- /* @__PURE__ */ i("h2", { children: v(N.category) }),
3855
+ /* @__PURE__ */ i("h2", { children: _(N.category) }),
3856
3856
  /* @__PURE__ */ i(
3857
3857
  ye,
3858
3858
  {
3859
3859
  inputs: N.inputs,
3860
- control: g,
3860
+ control: C,
3861
3861
  inputContainerStyles: o,
3862
3862
  errorColor: r,
3863
3863
  reactHookFormInstance: n
@@ -3865,12 +3865,12 @@ const ye = ({
3865
3865
  )
3866
3866
  ] }, N.categoryId);
3867
3867
  };
3868
- return /* @__PURE__ */ p("form", { className: Ce.formContainer, onSubmit: _(b), children: [
3869
- c && C.length > 0 && /* @__PURE__ */ i("div", { className: Ce.categorySelectorContainer, children: /* @__PURE__ */ i(
3868
+ return /* @__PURE__ */ p("form", { className: Ce.formContainer, onSubmit: v(y), children: [
3869
+ c && m.length > 0 && /* @__PURE__ */ i("div", { className: Ce.categorySelectorContainer, children: /* @__PURE__ */ i(
3870
3870
  pt,
3871
3871
  {
3872
3872
  activeCategory: x,
3873
- categories: C,
3873
+ categories: m,
3874
3874
  onChange: (N) => {
3875
3875
  w(N), S(null);
3876
3876
  },
@@ -3893,7 +3893,7 @@ const ye = ({
3893
3893
  ye,
3894
3894
  {
3895
3895
  inputs: N.inputs,
3896
- control: g,
3896
+ control: C,
3897
3897
  inputContainerStyles: o,
3898
3898
  errorColor: r,
3899
3899
  reactHookFormInstance: n
@@ -3901,7 +3901,7 @@ const ye = ({
3901
3901
  );
3902
3902
  }) }),
3903
3903
  /* @__PURE__ */ p("div", { className: Ce.buttonContainer, children: [
3904
- /* @__PURE__ */ i(Me, { containerStyles: a, type: "submit", children: v(l) }),
3904
+ /* @__PURE__ */ i(Me, { containerStyles: a, type: "submit", children: _(l) }),
3905
3905
  /* @__PURE__ */ i(we, { errorMessage: t, errorColor: r })
3906
3906
  ] })
3907
3907
  ] });
@@ -4063,16 +4063,17 @@ const Ls = "_switchContainer_194wl_2", Ms = "_labelRight_194wl_9", Ds = "_labelL
4063
4063
  defValue: l = !1,
4064
4064
  colorOn: a = "#5A514D",
4065
4065
  disabled: c = !1,
4066
- width: u = 240
4067
- } = n, { t: m } = $(), { control: h } = d || {}, [f, b] = V(l), v = (g) => {
4068
- b(g), s && s(g);
4069
- }, _ = (g, C) => /* @__PURE__ */ p("div", { className: ue.switchContainer, style: { width: `${u}px` }, children: [
4066
+ width: u = 240,
4067
+ onoff: h = !0
4068
+ } = n, { t: g } = $(), { control: f } = d || {}, [y, _] = V(l), v = (m) => {
4069
+ _(m), s && s(m);
4070
+ }, C = (m, b) => /* @__PURE__ */ p("div", { className: ue.switchContainer, style: { width: `${u}px` }, children: [
4070
4071
  t && /* @__PURE__ */ i(
4071
4072
  "span",
4072
4073
  {
4073
4074
  className: ue.labelLeft,
4074
4075
  style: { width: `${(u - 74) / 2}px` },
4075
- children: m(t)
4076
+ children: g(t)
4076
4077
  }
4077
4078
  ),
4078
4079
  /* @__PURE__ */ p("label", { className: `${ue.switch} ${c ? ue.disabled : ""}`, children: [
@@ -4080,8 +4081,8 @@ const Ls = "_switchContainer_194wl_2", Ms = "_labelRight_194wl_9", Ds = "_labelL
4080
4081
  "input",
4081
4082
  {
4082
4083
  type: "checkbox",
4083
- checked: !!g,
4084
- onChange: () => C(!g),
4084
+ checked: !!m,
4085
+ onChange: () => b(!m),
4085
4086
  disabled: c
4086
4087
  }
4087
4088
  ),
@@ -4090,22 +4091,22 @@ const Ls = "_switchContainer_194wl_2", Ms = "_labelRight_194wl_9", Ds = "_labelL
4090
4091
  {
4091
4092
  className: ue.slider,
4092
4093
  style: {
4093
- "--switch-thumb-color": g ? a : "#ccc"
4094
+ "--switch-thumb-color": h ? m ? a : "#ccc" : a
4094
4095
  }
4095
4096
  }
4096
4097
  )
4097
4098
  ] }),
4098
- r && /* @__PURE__ */ i("span", { className: ue.labelRight, style: { width: `${(u - 74) / 2}px` }, children: m(r) })
4099
+ r && /* @__PURE__ */ i("span", { className: ue.labelRight, style: { width: `${(u - 74) / 2}px` }, children: g(r) })
4099
4100
  ] });
4100
4101
  return d ? /* @__PURE__ */ i(
4101
4102
  ve,
4102
4103
  {
4103
4104
  name: o,
4104
- control: h,
4105
+ control: f,
4105
4106
  defaultValue: l,
4106
- render: ({ field: g }) => _(g.value, g.onChange)
4107
+ render: ({ field: m }) => C(m.value, m.onChange)
4107
4108
  }
4108
- ) : _(f, v);
4109
+ ) : C(y, v);
4109
4110
  };
4110
4111
  As.propTypes = {
4111
4112
  input: e.shape({