@undp/data-viz 1.5.1 → 1.5.2

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/BarGraph.js CHANGED
@@ -54,7 +54,7 @@ function ut(pe) {
54
54
  tooltip: J,
55
55
  onSeriesMouseOver: ee,
56
56
  refValues: v,
57
- selectedColor: f,
57
+ selectedColor: y,
58
58
  highlightedDataPoints: F,
59
59
  maxValue: ae,
60
60
  minValue: le,
@@ -83,9 +83,9 @@ function ut(pe) {
83
83
  bottom: j,
84
84
  left: ge,
85
85
  right: se
86
- }, m = X - k.left - k.right, d = ie - k.top - k.bottom, h = n.map((r, y) => ({
86
+ }, m = X - k.left - k.right, d = ie - k.top - k.bottom, h = n.map((r, f) => ({
87
87
  ...r,
88
- id: te ? `${r.label}` : `${y}`
88
+ id: te ? `${r.label}` : `${f}`
89
89
  })), c = qe().domain([le, ae]).range([0, m]).nice(), l = te || h.map((r) => `${r.id}`), s = Ie().domain(l).range([
90
90
  0,
91
91
  xe ? Math.max(d, xe * l.length) : R ? Math.min(d, R * l.length) : d
@@ -141,24 +141,24 @@ function ut(pe) {
141
141
  className: "undp-viz-g-with-hover",
142
142
  variants: {
143
143
  initial: {
144
- opacity: f ? r.color && g[O.indexOf(r.color)] === f ? 1 : I : F.length !== 0 ? F.indexOf(r.label) !== -1 ? 0.85 : I : 0.85
144
+ opacity: y ? r.color && g[O.indexOf(r.color)] === y ? 1 : I : F.length !== 0 ? F.indexOf(r.label) !== -1 ? 0.85 : I : 0.85
145
145
  },
146
146
  whileInView: {
147
- opacity: f ? r.color && g[O.indexOf(r.color)] === f ? 1 : I : F.length !== 0 ? F.indexOf(r.label) !== -1 ? 0.85 : I : 0.85,
147
+ opacity: y ? r.color && g[O.indexOf(r.color)] === y ? 1 : I : F.length !== 0 ? F.indexOf(r.label) !== -1 ? 0.85 : I : 0.85,
148
148
  transition: { duration: D.duration }
149
149
  }
150
150
  },
151
151
  initial: "initial",
152
152
  animate: T ? "whileInView" : "initial",
153
153
  exit: { opacity: 0, transition: { duration: D.duration } },
154
- onMouseEnter: (y) => {
155
- oe(r), u(y.clientY), M(y.clientX), ee?.(r);
154
+ onMouseEnter: (f) => {
155
+ oe(r), u(f.clientY), M(f.clientX), ee?.(r);
156
156
  },
157
157
  onClick: () => {
158
158
  (K || $) && (We(G, r) && ne ? (P(void 0), K?.(void 0)) : (P(r), K?.(r)));
159
159
  },
160
- onMouseMove: (y) => {
161
- oe(r), u(y.clientY), M(y.clientX);
160
+ onMouseMove: (f) => {
161
+ oe(r), u(f.clientY), M(f.clientX);
162
162
  },
163
163
  onMouseLeave: () => {
164
164
  oe(void 0), M(void 0), u(void 0), ee?.(void 0);
@@ -172,13 +172,13 @@ function ut(pe) {
172
172
  width: 0,
173
173
  x: c(0),
174
174
  y: s(`${r.id}`),
175
- fill: n.filter((y) => y.color).length === 0 ? g[0] : r.color ? g[O.indexOf(r.color)] : je.gray
175
+ fill: n.filter((f) => f.color).length === 0 ? g[0] : r.color ? g[O.indexOf(r.color)] : je.gray
176
176
  },
177
177
  whileInView: {
178
178
  width: r.size >= 0 ? c(r.size) - c(0) : c(0) - c(r.size),
179
179
  x: r.size >= 0 ? c(0) : c(r.size),
180
180
  y: s(`${r.id}`),
181
- fill: n.filter((y) => y.color).length === 0 ? g[0] : r.color ? g[O.indexOf(r.color)] : je.gray,
181
+ fill: n.filter((f) => f.color).length === 0 ? g[0] : r.color ? g[O.indexOf(r.color)] : je.gray,
182
182
  transition: { duration: D.duration }
183
183
  }
184
184
  },
@@ -226,13 +226,13 @@ function ut(pe) {
226
226
  x: c(0),
227
227
  y: s(`${r.id}`) + s.bandwidth() / 2,
228
228
  opacity: 0,
229
- fill: x || (n.filter((y) => y.color).length === 0 ? g[0] : r.color ? g[O.indexOf(r.color)] : je.gray)
229
+ fill: x || (n.filter((f) => f.color).length === 0 ? g[0] : r.color ? g[O.indexOf(r.color)] : je.gray)
230
230
  },
231
231
  whileInView: {
232
232
  x: r.size ? c(r.size) : c(0),
233
233
  opacity: 1,
234
234
  y: s(`${r.id}`) + s.bandwidth() / 2,
235
- fill: x || (n.filter((y) => y.color).length === 0 ? g[0] : r.color ? g[O.indexOf(r.color)] : je.gray),
235
+ fill: x || (n.filter((f) => f.color).length === 0 ? g[0] : r.color ? g[O.indexOf(r.color)] : je.gray),
236
236
  transition: { duration: D.duration }
237
237
  }
238
238
  },
@@ -261,7 +261,7 @@ function ut(pe) {
261
261
  styles: { axis: z?.yAxis?.axis }
262
262
  }
263
263
  ),
264
- v ? /* @__PURE__ */ e.jsx(e.Fragment, { children: v.map((r, y) => /* @__PURE__ */ e.jsx(
264
+ v ? /* @__PURE__ */ e.jsx(e.Fragment, { children: v.map((r, f) => /* @__PURE__ */ e.jsx(
265
265
  nt,
266
266
  {
267
267
  text: r.text,
@@ -275,7 +275,7 @@ function ut(pe) {
275
275
  animate: D,
276
276
  isInView: T
277
277
  },
278
- y
278
+ f
279
279
  )) }) : null
280
280
  ] }),
281
281
  b.filter((r) => r.position === "after").map((r) => r.layer)
@@ -333,7 +333,7 @@ function mt(pe) {
333
333
  colorDomain: J,
334
334
  colorLegendTitle: ee,
335
335
  highlightedDataPoints: v = [],
336
- padding: f,
336
+ padding: y,
337
337
  backgroundColor: F = !1,
338
338
  topMargin: ae = 25,
339
339
  bottomMargin: le = 10,
@@ -373,7 +373,7 @@ function mt(pe) {
373
373
  customLayers: s = [],
374
374
  timeline: t = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
375
375
  naLabel: r = "NA"
376
- } = pe, [y, Ce] = L(0), [ce, U] = L(0), [fe, Oe] = L(t.autoplay), de = Fe(
376
+ } = pe, [f, Ce] = L(0), [ce, U] = L(0), [fe, Oe] = L(t.autoplay), de = Fe(
377
377
  Ae(
378
378
  n.filter((a) => a.date !== void 0 && a.date !== null),
379
379
  (a) => a.date
@@ -424,7 +424,7 @@ function mt(pe) {
424
424
  "div",
425
425
  {
426
426
  className: "flex grow",
427
- style: { padding: F ? f || "1rem" : f || 0 },
427
+ style: { padding: F ? y || "1rem" : y || 0 },
428
428
  children: /* @__PURE__ */ e.jsxs("div", { className: "flex flex-col w-full gap-4 grow justify-between", children: [
429
429
  g || ue || z || N ? /* @__PURE__ */ e.jsx(
430
430
  Ke,
@@ -497,7 +497,7 @@ function mt(pe) {
497
497
  className: "flex grow flex-col justify-center w-full leading-0",
498
498
  ref: i,
499
499
  "aria-label": "Graph area",
500
- children: (j || y) && (he || ce) ? /* @__PURE__ */ e.jsx(
500
+ children: (j || f) && (he || ce) ? /* @__PURE__ */ e.jsx(
501
501
  ut,
502
502
  {
503
503
  data: D === "asc" ? rt(
@@ -527,11 +527,11 @@ function mt(pe) {
527
527
  n.filter((a) => a.color),
528
528
  "color"
529
529
  ).map((a) => a.color),
530
- width: j || y,
530
+ width: j || f,
531
531
  selectedColor: Ne,
532
532
  height: Math.max(
533
533
  w,
534
- he || (te ? w ? (j || y) * te > w ? (j || y) * te : w : (j || y) * te : ce)
534
+ he || (te ? w ? (j || f) * te > w ? (j || f) * te : w : (j || f) * te : ce)
535
535
  ),
536
536
  suffix: A,
537
537
  prefix: me,
@@ -622,7 +622,7 @@ function gt(pe) {
622
622
  onSeriesMouseOver: J,
623
623
  refValues: ee,
624
624
  maxValue: v,
625
- minValue: f,
625
+ minValue: y,
626
626
  onSeriesMouseClick: F,
627
627
  selectedColor: ae,
628
628
  rtl: le,
@@ -651,7 +651,7 @@ function gt(pe) {
651
651
  }, [q, T] = L(void 0), [V, oe] = L(void 0), [G, P] = L(void 0), [Q, M] = L(void 0), H = ue - w.left - w.right, u = ge - w.top - w.bottom, k = n.map((s, t) => ({
652
652
  ...s,
653
653
  id: K ? `${s.label}` : `${t}`
654
- })), m = K || k.map((s) => `${s.id}`), d = qe().domain([f, v]).range([0, H]).nice(), h = Ie().domain(m).range([
654
+ })), m = K || k.map((s) => `${s.id}`), d = qe().domain([y, v]).range([0, H]).nice(), h = Ie().domain(m).range([
655
655
  0,
656
656
  te ? Math.min(u, te * m.length) : u
657
657
  ]).paddingInner(Y), c = Ie().domain(n[0].size.map((s, t) => `${t}`)).range([0, h.bandwidth()]).paddingInner(0.1), l = d.ticks($);
@@ -723,11 +723,11 @@ function gt(pe) {
723
723
  {
724
724
  className: "undp-viz-g-with-hover",
725
725
  opacity: ae ? g[r] === ae ? 1 : 0.3 : 0.85,
726
- onMouseEnter: (y) => {
727
- T({ ...s, sizeIndex: r }), M(y.clientY), P(y.clientX), J?.({ ...s, sizeIndex: r });
726
+ onMouseEnter: (f) => {
727
+ T({ ...s, sizeIndex: r }), M(f.clientY), P(f.clientX), J?.({ ...s, sizeIndex: r });
728
728
  },
729
- onMouseMove: (y) => {
730
- T({ ...s, sizeIndex: r }), M(y.clientY), P(y.clientX);
729
+ onMouseMove: (f) => {
730
+ T({ ...s, sizeIndex: r }), M(f.clientY), P(f.clientX);
731
731
  },
732
732
  onMouseLeave: () => {
733
733
  T(void 0), P(void 0), M(void 0), J?.(void 0);
@@ -802,7 +802,7 @@ function gt(pe) {
802
802
  value: `${s.label}`.length < me ? `${s.label}` : `${`${s.label}`.substring(0, me)}...`,
803
803
  y: 0,
804
804
  x: 0 - w.left,
805
- width: d(f < 0 ? 0 : f) + w.left,
805
+ width: d(y < 0 ? 0 : y) + w.left,
806
806
  height: h.bandwidth(),
807
807
  style: p?.yAxis?.labels,
808
808
  className: x?.yAxis?.labels,
@@ -818,8 +818,8 @@ function gt(pe) {
818
818
  /* @__PURE__ */ e.jsx(
819
819
  Ee,
820
820
  {
821
- x1: d(f < 0 ? 0 : f),
822
- x2: d(f < 0 ? 0 : f),
821
+ x1: d(y < 0 ? 0 : y),
822
+ x2: d(y < 0 ? 0 : y),
823
823
  y1: -2.5,
824
824
  y2: u + w.bottom,
825
825
  classNames: { axis: x?.yAxis?.axis },
@@ -898,7 +898,7 @@ function xt(pe) {
898
898
  showColorScale: J = !0,
899
899
  padding: ee,
900
900
  backgroundColor: v = !1,
901
- leftMargin: f = 100,
901
+ leftMargin: y = 100,
902
902
  rightMargin: F = 40,
903
903
  topMargin: ae = 25,
904
904
  bottomMargin: le = 10,
@@ -934,7 +934,7 @@ function xt(pe) {
934
934
  naLabel: d = "NA",
935
935
  sortParameter: h,
936
936
  sortData: c
937
- } = pe, [l, s] = L(0), [t, r] = L(0), [y, Ce] = L(m.autoplay), ce = Fe(
937
+ } = pe, [l, s] = L(0), [t, r] = L(0), [f, Ce] = L(m.autoplay), ce = Fe(
938
938
  Ae(
939
939
  n.filter((o) => o.date !== void 0 && o.date !== null),
940
940
  (o) => o.date
@@ -953,8 +953,8 @@ function xt(pe) {
953
953
  },
954
954
  (m.speed || 2) * 1e3
955
955
  );
956
- return y || clearInterval(o), () => clearInterval(o);
957
- }, [ce, y, m.speed]);
956
+ return f || clearInterval(o), () => clearInterval(o);
957
+ }, [ce, f, m.speed]);
958
958
  const Ne = Pe(
959
959
  ce,
960
960
  U,
@@ -1011,11 +1011,11 @@ function xt(pe) {
1011
1011
  {
1012
1012
  type: "button",
1013
1013
  onClick: () => {
1014
- Ce(!y);
1014
+ Ce(!f);
1015
1015
  },
1016
1016
  className: "p-0 border-0 cursor-pointer bg-transparent",
1017
- "aria-label": y ? "Click to pause animation" : "Click to play animation",
1018
- children: y ? /* @__PURE__ */ e.jsx(et, {}) : /* @__PURE__ */ e.jsx(tt, {})
1017
+ "aria-label": f ? "Click to pause animation" : "Click to play animation",
1018
+ children: f ? /* @__PURE__ */ e.jsx(et, {}) : /* @__PURE__ */ e.jsx(tt, {})
1019
1019
  }
1020
1020
  ),
1021
1021
  /* @__PURE__ */ e.jsx(
@@ -1095,7 +1095,7 @@ function xt(pe) {
1095
1095
  showValues: E,
1096
1096
  barPadding: me,
1097
1097
  showTicks: ue,
1098
- leftMargin: f,
1098
+ leftMargin: y,
1099
1099
  rightMargin: F,
1100
1100
  topMargin: ae,
1101
1101
  bottomMargin: le,
@@ -1200,7 +1200,7 @@ function ft(pe) {
1200
1200
  showValues: J,
1201
1201
  refValues: ee,
1202
1202
  maxValue: v,
1203
- onSeriesMouseClick: f,
1203
+ onSeriesMouseClick: y,
1204
1204
  selectedColor: F,
1205
1205
  rtl: ae,
1206
1206
  labelOrder: le,
@@ -1308,7 +1308,7 @@ function ft(pe) {
1308
1308
  T(void 0), P(void 0), M(void 0), se?.(void 0);
1309
1309
  },
1310
1310
  onClick: () => {
1311
- (f || R) && (We(V, { ...l, sizeIndex: t }) && re ? (oe(void 0), f?.(void 0)) : (oe({ ...l, sizeIndex: t }), f && f({ ...l, sizeIndex: t })));
1311
+ (y || R) && (We(V, { ...l, sizeIndex: t }) && re ? (oe(void 0), y?.(void 0)) : (oe({ ...l, sizeIndex: t }), y && y({ ...l, sizeIndex: t })));
1312
1312
  },
1313
1313
  children: [
1314
1314
  s ? /* @__PURE__ */ e.jsx(
@@ -1331,7 +1331,7 @@ function ft(pe) {
1331
1331
  whileInView: {
1332
1332
  width: d(s || 0),
1333
1333
  x: d(
1334
- t === 0 ? 0 : ke(l.size.filter((r, y) => y < t && r))
1334
+ t === 0 ? 0 : ke(l.size.filter((r, f) => f < t && r))
1335
1335
  ),
1336
1336
  fill: g[t],
1337
1337
  transition: { duration: C.duration }
@@ -1364,7 +1364,7 @@ function ft(pe) {
1364
1364
  },
1365
1365
  whileInView: {
1366
1366
  x: d(
1367
- t === 0 ? 0 : ke(l.size.filter((r, y) => y < t && r))
1367
+ t === 0 ? 0 : ke(l.size.filter((r, f) => f < t && r))
1368
1368
  ) + d(s || 0) / 2,
1369
1369
  opacity: s && d(s) / ze(s, I, N, E, j).length > 12 ? 1 : 0,
1370
1370
  fill: lt(g[t]),
@@ -1524,7 +1524,7 @@ function yt(pe) {
1524
1524
  backgroundColor: J = !1,
1525
1525
  topMargin: ee = 25,
1526
1526
  bottomMargin: v = 10,
1527
- tooltip: f,
1527
+ tooltip: y,
1528
1528
  onSeriesMouseOver: F,
1529
1529
  suffix: ae = "",
1530
1530
  prefix: le = "",
@@ -1561,7 +1561,7 @@ function yt(pe) {
1561
1561
  timeline: h = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
1562
1562
  naLabel: c = "NA",
1563
1563
  sortData: l
1564
- } = pe, [s, t] = L(0), [r, y] = L(0), [Ce, ce] = L(h.autoplay), U = Fe(
1564
+ } = pe, [s, t] = L(0), [r, f] = L(0), [Ce, ce] = L(h.autoplay), U = Fe(
1565
1565
  Ae(
1566
1566
  n.filter((i) => i.date !== void 0 && i.date !== null),
1567
1567
  (i) => i.date
@@ -1570,9 +1570,9 @@ function yt(pe) {
1570
1570
  ), [fe, Oe] = L(h.autoplay ? 0 : U.length - 1), [de, be] = L(void 0), we = Me(null), Ne = Me(null);
1571
1571
  Ve(() => {
1572
1572
  const i = new ResizeObserver((B) => {
1573
- t(O || B[0].target.clientWidth || 620), y(ie || B[0].target.clientHeight || 480);
1573
+ t(O || B[0].target.clientWidth || 620), f(ie || B[0].target.clientHeight || 480);
1574
1574
  });
1575
- return we.current && (y(we.current.clientHeight || 480), t(we.current.clientWidth || 620), O || i.observe(we.current)), () => i.disconnect();
1575
+ return we.current && (f(we.current.clientHeight || 480), t(we.current.clientWidth || 620), O || i.observe(we.current)), () => i.disconnect();
1576
1576
  }, [O, ie]), Ve(() => {
1577
1577
  const i = setInterval(
1578
1578
  () => {
@@ -1730,7 +1730,7 @@ function yt(pe) {
1730
1730
  bottomMargin: v,
1731
1731
  truncateBy: X,
1732
1732
  showLabels: K,
1733
- tooltip: f,
1733
+ tooltip: y,
1734
1734
  onSeriesMouseOver: F,
1735
1735
  showValues: re,
1736
1736
  suffix: ae,
@@ -1804,7 +1804,7 @@ function pt(pe) {
1804
1804
  tooltip: J,
1805
1805
  onSeriesMouseOver: ee,
1806
1806
  refValues: v,
1807
- selectedColor: f,
1807
+ selectedColor: y,
1808
1808
  maxValue: F,
1809
1809
  minValue: ae,
1810
1810
  highlightedDataPoints: le,
@@ -1921,22 +1921,22 @@ function pt(pe) {
1921
1921
  animate: q ? "whileInView" : "initial",
1922
1922
  variants: {
1923
1923
  initial: {
1924
- opacity: f ? t.color && A[ie.indexOf(t.color)] === f ? 1 : N : le.length !== 0 ? le.indexOf(t.label) !== -1 ? 0.85 : N : 0.85
1924
+ opacity: y ? t.color && A[ie.indexOf(t.color)] === y ? 1 : N : le.length !== 0 ? le.indexOf(t.label) !== -1 ? 0.85 : N : 0.85
1925
1925
  },
1926
1926
  whileInView: {
1927
- opacity: f ? t.color && A[ie.indexOf(t.color)] === f ? 1 : N : le.length !== 0 ? le.indexOf(t.label) !== -1 ? 0.85 : N : 0.85,
1927
+ opacity: y ? t.color && A[ie.indexOf(t.color)] === y ? 1 : N : le.length !== 0 ? le.indexOf(t.label) !== -1 ? 0.85 : N : 0.85,
1928
1928
  transition: { duration: D.duration }
1929
1929
  }
1930
1930
  },
1931
1931
  exit: { opacity: 0, transition: { duration: D.duration } },
1932
- onMouseEnter: (y) => {
1933
- oe(t), u(y.clientY), M(y.clientX), ee?.(t);
1932
+ onMouseEnter: (f) => {
1933
+ oe(t), u(f.clientY), M(f.clientX), ee?.(t);
1934
1934
  },
1935
1935
  onClick: () => {
1936
1936
  (K || ne) && (We(G, t) && xe ? (P(void 0), K?.(void 0)) : (P(t), K?.(t)));
1937
1937
  },
1938
- onMouseMove: (y) => {
1939
- oe(t), u(y.clientY), M(y.clientX);
1938
+ onMouseMove: (f) => {
1939
+ oe(t), u(f.clientY), M(f.clientX);
1940
1940
  },
1941
1941
  onMouseLeave: () => {
1942
1942
  oe(void 0), M(void 0), u(void 0), ee?.(void 0);
@@ -1953,13 +1953,13 @@ function pt(pe) {
1953
1953
  height: 0,
1954
1954
  x: l(`${t.id}`),
1955
1955
  y: d(0),
1956
- fill: n.filter((y) => y.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray
1956
+ fill: n.filter((f) => f.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray
1957
1957
  },
1958
1958
  whileInView: {
1959
1959
  height: t.size ? Math.abs(d(t.size) - d(0)) : 0,
1960
1960
  y: t.size && t.size > 0 ? d(t.size) : d(0),
1961
1961
  x: l(`${t.id}`),
1962
- fill: n.filter((y) => y.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray,
1962
+ fill: n.filter((f) => f.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray,
1963
1963
  transition: { duration: D.duration }
1964
1964
  }
1965
1965
  },
@@ -2003,12 +2003,12 @@ function pt(pe) {
2003
2003
  x: l(`${t.id}`) + l.bandwidth() / 2,
2004
2004
  y: d(0),
2005
2005
  opacity: 0,
2006
- fill: p || (n.filter((y) => y.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray)
2006
+ fill: p || (n.filter((f) => f.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray)
2007
2007
  },
2008
2008
  whileInView: {
2009
2009
  x: l(`${t.id}`) + l.bandwidth() / 2,
2010
2010
  y: d(t.size || 0),
2011
- fill: p || (n.filter((y) => y.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray),
2011
+ fill: p || (n.filter((f) => f.color).length === 0 ? A[0] : t.color ? A[ie.indexOf(t.color)] : je.gray),
2012
2012
  opacity: 1,
2013
2013
  transition: { duration: D.duration }
2014
2014
  }
@@ -2098,7 +2098,7 @@ function bt(pe) {
2098
2098
  graphDescription: J,
2099
2099
  height: ee,
2100
2100
  width: v,
2101
- footNote: f,
2101
+ footNote: y,
2102
2102
  colorDomain: F,
2103
2103
  colorLegendTitle: ae,
2104
2104
  padding: le,
@@ -2138,7 +2138,7 @@ function bt(pe) {
2138
2138
  customLayers: s = [],
2139
2139
  timeline: t = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
2140
2140
  naLabel: r = "NA"
2141
- } = pe, [y, Ce] = L(0), [ce, U] = L(0), [fe, Oe] = L(t.autoplay), de = Fe(
2141
+ } = pe, [f, Ce] = L(0), [ce, U] = L(0), [fe, Oe] = L(t.autoplay), de = Fe(
2142
2142
  Ae(
2143
2143
  n.filter((a) => a.date !== void 0 && a.date !== null),
2144
2144
  (a) => a.date
@@ -2262,7 +2262,7 @@ function bt(pe) {
2262
2262
  className: "flex grow flex-col justify-center w-full leading-0",
2263
2263
  ref: i,
2264
2264
  "aria-label": "Graph area",
2265
- children: (v || y) && (ee || ce) ? /* @__PURE__ */ e.jsx(
2265
+ children: (v || f) && (ee || ce) ? /* @__PURE__ */ e.jsx(
2266
2266
  pt,
2267
2267
  {
2268
2268
  data: S === "asc" ? rt(
@@ -2292,11 +2292,11 @@ function bt(pe) {
2292
2292
  n.filter((a) => a.color),
2293
2293
  "color"
2294
2294
  ).map((a) => a.color),
2295
- width: v || y,
2295
+ width: v || f,
2296
2296
  refValues: R,
2297
2297
  height: Math.max(
2298
2298
  q,
2299
- ee || (K ? q ? (v || y) * K > q ? (v || y) * K : q : (v || y) * K : ce)
2299
+ ee || (K ? q ? (v || f) * K > q ? (v || f) * K : q : (v || f) * K : ce)
2300
2300
  ),
2301
2301
  suffix: he,
2302
2302
  prefix: j,
@@ -2344,7 +2344,7 @@ function bt(pe) {
2344
2344
  }
2345
2345
  )
2346
2346
  ] }) }),
2347
- E || f ? /* @__PURE__ */ e.jsx(
2347
+ E || y ? /* @__PURE__ */ e.jsx(
2348
2348
  Je,
2349
2349
  {
2350
2350
  styles: { footnote: k?.footnote, source: k?.source },
@@ -2353,7 +2353,7 @@ function bt(pe) {
2353
2353
  source: m?.source
2354
2354
  },
2355
2355
  sources: E,
2356
- footNote: f,
2356
+ footNote: y,
2357
2357
  width: v
2358
2358
  }
2359
2359
  ) : null
@@ -2386,7 +2386,7 @@ function vt(pe) {
2386
2386
  onSeriesMouseOver: J,
2387
2387
  refValues: ee,
2388
2388
  maxValue: v,
2389
- minValue: f,
2389
+ minValue: y,
2390
2390
  onSeriesMouseClick: F,
2391
2391
  selectedColor: ae,
2392
2392
  labelOrder: le,
@@ -2411,7 +2411,7 @@ function vt(pe) {
2411
2411
  bottom: j,
2412
2412
  left: R ? O + 30 : O,
2413
2413
  right: se
2414
- }, [w, q] = L(void 0), [T, V] = L(void 0), [oe, G] = L(void 0), [P, Q] = L(void 0), M = g - b.left - b.right, H = Y - b.top - b.bottom, u = qe().domain([f, v]).range([H, 0]).nice(), k = n.map((l, s) => ({
2414
+ }, [w, q] = L(void 0), [T, V] = L(void 0), [oe, G] = L(void 0), [P, Q] = L(void 0), M = g - b.left - b.right, H = Y - b.top - b.bottom, u = qe().domain([y, v]).range([H, 0]).nice(), k = n.map((l, s) => ({
2415
2415
  ...l,
2416
2416
  id: le ? `${l.label}` : `${s}`
2417
2417
  })), m = le || k.map((l) => `${l.id}`), d = Ie().domain(m).range([
@@ -2431,12 +2431,12 @@ function vt(pe) {
2431
2431
  /* @__PURE__ */ e.jsx(
2432
2432
  Ee,
2433
2433
  {
2434
- y1: u(f < 0 ? 0 : f),
2435
- y2: u(f < 0 ? 0 : f),
2434
+ y1: u(y < 0 ? 0 : y),
2435
+ y2: u(y < 0 ? 0 : y),
2436
2436
  x1: 0 - O,
2437
2437
  x2: M + b.right,
2438
2438
  label: ze(
2439
- f < 0 ? 0 : f,
2439
+ y < 0 ? 0 : y,
2440
2440
  D,
2441
2441
  z,
2442
2442
  me,
@@ -2446,7 +2446,7 @@ function vt(pe) {
2446
2446
  x: 0 - O,
2447
2447
  dx: 0,
2448
2448
  dy: v < 0 ? "1em" : -5,
2449
- y: u(f < 0 ? 0 : f)
2449
+ y: u(y < 0 ? 0 : y)
2450
2450
  },
2451
2451
  classNames: {
2452
2452
  axis: p?.xAxis?.axis,
@@ -2678,7 +2678,7 @@ function wt(pe) {
2678
2678
  prefix: J = "",
2679
2679
  height: ee,
2680
2680
  width: v,
2681
- footNote: f,
2681
+ footNote: y,
2682
2682
  colorDomain: F,
2683
2683
  colorLegendTitle: ae,
2684
2684
  padding: le,
@@ -2714,7 +2714,7 @@ function wt(pe) {
2714
2714
  naLabel: d = "NA",
2715
2715
  sortParameter: h,
2716
2716
  sortData: c
2717
- } = pe, [l, s] = L(0), [t, r] = L(0), [y, Ce] = L(m.autoplay), ce = Fe(
2717
+ } = pe, [l, s] = L(0), [t, r] = L(0), [f, Ce] = L(m.autoplay), ce = Fe(
2718
2718
  Ae(
2719
2719
  n.filter((o) => o.date !== void 0 && o.date !== null),
2720
2720
  (o) => o.date
@@ -2733,8 +2733,8 @@ function wt(pe) {
2733
2733
  },
2734
2734
  (m.speed || 2) * 1e3
2735
2735
  );
2736
- return y || clearInterval(o), () => clearInterval(o);
2737
- }, [ce, y, m.speed]);
2736
+ return f || clearInterval(o), () => clearInterval(o);
2737
+ }, [ce, f, m.speed]);
2738
2738
  const Ne = Pe(
2739
2739
  ce,
2740
2740
  U,
@@ -2791,11 +2791,11 @@ function wt(pe) {
2791
2791
  {
2792
2792
  type: "button",
2793
2793
  onClick: () => {
2794
- Ce(!y);
2794
+ Ce(!f);
2795
2795
  },
2796
2796
  className: "p-0 border-0 cursor-pointer bg-transparent",
2797
- "aria-label": y ? "Click to pause animation" : "Click to play animation",
2798
- children: y ? /* @__PURE__ */ e.jsx(et, {}) : /* @__PURE__ */ e.jsx(tt, {})
2797
+ "aria-label": f ? "Click to pause animation" : "Click to play animation",
2798
+ children: f ? /* @__PURE__ */ e.jsx(et, {}) : /* @__PURE__ */ e.jsx(tt, {})
2799
2799
  }
2800
2800
  ),
2801
2801
  /* @__PURE__ */ e.jsx(
@@ -2937,7 +2937,7 @@ function wt(pe) {
2937
2937
  }
2938
2938
  ) : null })
2939
2939
  ] }) }),
2940
- A || f ? /* @__PURE__ */ e.jsx(
2940
+ A || y ? /* @__PURE__ */ e.jsx(
2941
2941
  Je,
2942
2942
  {
2943
2943
  styles: { footnote: G?.footnote, source: G?.source },
@@ -2946,7 +2946,7 @@ function wt(pe) {
2946
2946
  source: P?.source
2947
2947
  },
2948
2948
  sources: A,
2949
- footNote: f,
2949
+ footNote: y,
2950
2950
  width: v
2951
2951
  }
2952
2952
  ) : null
@@ -2979,7 +2979,7 @@ function Ct(pe) {
2979
2979
  showValues: J,
2980
2980
  refValues: ee,
2981
2981
  maxValue: v,
2982
- onSeriesMouseClick: f,
2982
+ onSeriesMouseClick: y,
2983
2983
  selectedColor: F,
2984
2984
  labelOrder: ae,
2985
2985
  maxBarThickness: le,
@@ -3110,7 +3110,7 @@ function Ct(pe) {
3110
3110
  q(void 0), G(void 0), Q(void 0), he?.(void 0);
3111
3111
  },
3112
3112
  onClick: () => {
3113
- (f || re) && (We(T, { ...c, sizeIndex: s }) && te ? (V(void 0), f?.(void 0)) : (V({ ...c, sizeIndex: s }), f && f({ ...c, sizeIndex: s })));
3113
+ (y || re) && (We(T, { ...c, sizeIndex: s }) && te ? (V(void 0), y?.(void 0)) : (V({ ...c, sizeIndex: s }), y && y({ ...c, sizeIndex: s })));
3114
3114
  },
3115
3115
  children: [
3116
3116
  /* @__PURE__ */ e.jsx(
@@ -3312,7 +3312,7 @@ function kt(pe) {
3312
3312
  suffix: J = "",
3313
3313
  prefix: ee = "",
3314
3314
  height: v,
3315
- width: f,
3315
+ width: y,
3316
3316
  footNote: F,
3317
3317
  colorDomain: ae,
3318
3318
  colorLegendTitle: le,
@@ -3349,7 +3349,7 @@ function kt(pe) {
3349
3349
  timeline: h = { enabled: !1, autoplay: !1, showOnlyActiveDate: !0 },
3350
3350
  naLabel: c = "NA",
3351
3351
  sortData: l
3352
- } = pe, [s, t] = L(0), [r, y] = L(0), [Ce, ce] = L(h.autoplay), U = Fe(
3352
+ } = pe, [s, t] = L(0), [r, f] = L(0), [Ce, ce] = L(h.autoplay), U = Fe(
3353
3353
  Ae(
3354
3354
  n.filter((i) => i.date !== void 0 && i.date !== null),
3355
3355
  (i) => i.date
@@ -3358,10 +3358,10 @@ function kt(pe) {
3358
3358
  ), [fe, Oe] = L(h.autoplay ? 0 : U.length - 1), [de, be] = L(void 0), we = Me(null), Ne = Me(null);
3359
3359
  Ve(() => {
3360
3360
  const i = new ResizeObserver((B) => {
3361
- t(f || B[0].target.clientWidth || 620), y(v || B[0].target.clientHeight || 480);
3361
+ t(y || B[0].target.clientWidth || 620), f(v || B[0].target.clientHeight || 480);
3362
3362
  });
3363
- return we.current && (y(we.current.clientHeight || 480), t(we.current.clientWidth || 620), f || i.observe(we.current)), () => i.disconnect();
3364
- }, [f, v]), Ve(() => {
3363
+ return we.current && (f(we.current.clientHeight || 480), t(we.current.clientWidth || 620), y || i.observe(we.current)), () => i.disconnect();
3364
+ }, [y, v]), Ve(() => {
3365
3365
  const i = setInterval(
3366
3366
  () => {
3367
3367
  Oe((B) => B < U.length - 1 ? B + 1 : 0);
@@ -3379,14 +3379,14 @@ function kt(pe) {
3379
3379
  return /* @__PURE__ */ e.jsx(
3380
3380
  "div",
3381
3381
  {
3382
- className: `${N || "light"} flex ${f ? "w-fit grow-0" : "w-full grow"}`,
3382
+ className: `${N || "light"} flex ${y ? "w-fit grow-0" : "w-full grow"}`,
3383
3383
  dir: z === "he" || z === "ar" ? "rtl" : void 0,
3384
3384
  children: /* @__PURE__ */ e.jsx(
3385
3385
  "div",
3386
3386
  {
3387
3387
  className: $e(
3388
3388
  `${j ? j === !0 ? "bg-primary-gray-200 dark:bg-primary-gray-650 " : "" : "bg-transparent "}ml-auto mr-auto flex flex-col grow h-inherit ${z || "en"}`,
3389
- f ? "w-fit" : "w-full",
3389
+ y ? "w-fit" : "w-full",
3390
3390
  H?.graphContainer
3391
3391
  ),
3392
3392
  style: {
@@ -3410,7 +3410,7 @@ function kt(pe) {
3410
3410
  },
3411
3411
  graphTitle: g,
3412
3412
  graphDescription: _,
3413
- width: f,
3413
+ width: y,
3414
3414
  graphDownload: x ? Ne.current : void 0,
3415
3415
  dataDownload: C ? n.map((i) => i.data).filter((i) => i !== void 0).length > 0 ? n.map((i) => i.data).filter((i) => i !== void 0) : n.filter((i) => i !== void 0) : null
3416
3416
  }
@@ -3451,7 +3451,7 @@ function kt(pe) {
3451
3451
  E ? /* @__PURE__ */ e.jsx(
3452
3452
  Qe,
3453
3453
  {
3454
- width: f,
3454
+ width: y,
3455
3455
  colorDomain: ae,
3456
3456
  colors: Y,
3457
3457
  colorLegendTitle: le,
@@ -3459,7 +3459,7 @@ function kt(pe) {
3459
3459
  showNAColor: !1
3460
3460
  }
3461
3461
  ) : null,
3462
- /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: we, "aria-label": "Graph area", children: (f || s) && (v || r) ? /* @__PURE__ */ e.jsx(
3462
+ /* @__PURE__ */ e.jsx("div", { className: "w-full grow leading-0", ref: we, "aria-label": "Graph area", children: (y || s) && (v || r) ? /* @__PURE__ */ e.jsx(
3463
3463
  Ct,
3464
3464
  {
3465
3465
  data: b !== void 0 ? b === "total" ? Le(
@@ -3495,10 +3495,10 @@ function kt(pe) {
3495
3495
  h.dateFormat || "yyyy"
3496
3496
  ).filter((i) => u ? !i.size.every((B) => B == null) : i).filter((i, B) => w ? B < w : !0),
3497
3497
  barColors: Y,
3498
- width: f || s,
3498
+ width: y || s,
3499
3499
  height: Math.max(
3500
3500
  I,
3501
- v || (R ? I ? (f || s) * R > I ? (f || s) * R : I : (f || s) * R : r)
3501
+ v || (R ? I ? (y || s) * R > I ? (y || s) * R : I : (y || s) * R : r)
3502
3502
  ),
3503
3503
  barPadding: me,
3504
3504
  showLabels: se,
@@ -3549,7 +3549,7 @@ function kt(pe) {
3549
3549
  },
3550
3550
  sources: A,
3551
3551
  footNote: F,
3552
- width: f
3552
+ width: y
3553
3553
  }
3554
3554
  ) : null
3555
3555
  ] }) })
@@ -3579,7 +3579,7 @@ function ri(pe) {
3579
3579
  graphDescription: J,
3580
3580
  height: ee,
3581
3581
  width: v,
3582
- footNote: f,
3582
+ footNote: y,
3583
3583
  colorDomain: F,
3584
3584
  colorLegendTitle: ae,
3585
3585
  padding: le,
@@ -3619,7 +3619,7 @@ function ri(pe) {
3619
3619
  precision: s,
3620
3620
  customLayers: t,
3621
3621
  timeline: r,
3622
- naLabel: y
3622
+ naLabel: f
3623
3623
  } = pe;
3624
3624
  return k === "vertical" ? /* @__PURE__ */ e.jsx(
3625
3625
  bt,
@@ -3643,7 +3643,7 @@ function ri(pe) {
3643
3643
  graphDescription: J,
3644
3644
  height: ee,
3645
3645
  width: v,
3646
- footNote: f,
3646
+ footNote: y,
3647
3647
  colorDomain: F,
3648
3648
  colorLegendTitle: ae,
3649
3649
  padding: le,
@@ -3681,7 +3681,8 @@ function ri(pe) {
3681
3681
  dimmedOpacity: l,
3682
3682
  precision: s,
3683
3683
  customLayers: t,
3684
- timeline: r
3684
+ timeline: r,
3685
+ naLabel: f
3685
3686
  }
3686
3687
  ) : /* @__PURE__ */ e.jsx(
3687
3688
  mt,
@@ -3705,7 +3706,7 @@ function ri(pe) {
3705
3706
  graphDescription: J,
3706
3707
  height: ee,
3707
3708
  width: v,
3708
- footNote: f,
3709
+ footNote: y,
3709
3710
  colorDomain: F,
3710
3711
  colorLegendTitle: ae,
3711
3712
  padding: le,
@@ -3739,11 +3740,12 @@ function ri(pe) {
3739
3740
  valueColor: u,
3740
3741
  classNames: d,
3741
3742
  filterNA: h,
3743
+ animate: c,
3742
3744
  dimmedOpacity: l,
3743
3745
  precision: s,
3744
3746
  customLayers: t,
3745
3747
  timeline: r,
3746
- naLabel: y
3748
+ naLabel: f
3747
3749
  }
3748
3750
  );
3749
3751
  }
@@ -3768,7 +3770,7 @@ function si(pe) {
3768
3770
  padding: J,
3769
3771
  backgroundColor: ee,
3770
3772
  leftMargin: v,
3771
- rightMargin: f,
3773
+ rightMargin: y,
3772
3774
  topMargin: F,
3773
3775
  bottomMargin: ae,
3774
3776
  showLabels: le,
@@ -3828,7 +3830,7 @@ function si(pe) {
3828
3830
  padding: J,
3829
3831
  backgroundColor: ee,
3830
3832
  leftMargin: v,
3831
- rightMargin: f,
3833
+ rightMargin: y,
3832
3834
  sortParameter: S,
3833
3835
  sortData: b,
3834
3836
  topMargin: F,
@@ -3889,7 +3891,7 @@ function si(pe) {
3889
3891
  padding: J,
3890
3892
  backgroundColor: ee,
3891
3893
  leftMargin: v,
3892
- rightMargin: f,
3894
+ rightMargin: y,
3893
3895
  topMargin: F,
3894
3896
  bottomMargin: ae,
3895
3897
  showLabels: le,
@@ -3947,7 +3949,7 @@ function oi(pe) {
3947
3949
  prefix: J,
3948
3950
  height: ee,
3949
3951
  width: v,
3950
- footNote: f,
3952
+ footNote: y,
3951
3953
  colorDomain: F,
3952
3954
  colorLegendTitle: ae,
3953
3955
  padding: le,
@@ -4008,7 +4010,7 @@ function oi(pe) {
4008
4010
  prefix: J,
4009
4011
  height: ee,
4010
4012
  width: v,
4011
- footNote: f,
4013
+ footNote: y,
4012
4014
  colorDomain: F,
4013
4015
  colorLegendTitle: ae,
4014
4016
  padding: le,
@@ -4068,7 +4070,7 @@ function oi(pe) {
4068
4070
  prefix: J,
4069
4071
  height: ee,
4070
4072
  width: v,
4071
- footNote: f,
4073
+ footNote: y,
4072
4074
  colorDomain: F,
4073
4075
  colorLegendTitle: ae,
4074
4076
  padding: le,