@undp/data-viz 2.3.19 → 2.4.0

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.
Files changed (95) hide show
  1. package/dist/BarGraph.cjs +1 -1
  2. package/dist/BarGraph.cjs.map +1 -1
  3. package/dist/BarGraph.js +1360 -1363
  4. package/dist/BarGraph.js.map +1 -1
  5. package/dist/BeeSwarmChart.cjs +1 -1
  6. package/dist/BeeSwarmChart.cjs.map +1 -1
  7. package/dist/BeeSwarmChart.js +302 -305
  8. package/dist/BeeSwarmChart.js.map +1 -1
  9. package/dist/BiVariateChoroplethMap.cjs +1 -1
  10. package/dist/BiVariateChoroplethMap.cjs.map +1 -1
  11. package/dist/BiVariateChoroplethMap.js +4 -4
  12. package/dist/BiVariateChoroplethMap.js.map +1 -1
  13. package/dist/BulletChart.cjs +1 -1
  14. package/dist/BulletChart.cjs.map +1 -1
  15. package/dist/BulletChart.js +591 -594
  16. package/dist/BulletChart.js.map +1 -1
  17. package/dist/ChoroplethMap.cjs +1 -1
  18. package/dist/ChoroplethMap.cjs.map +1 -1
  19. package/dist/ChoroplethMap.js +4 -4
  20. package/dist/ChoroplethMap.js.map +1 -1
  21. package/dist/CirclePackingGraph.cjs +1 -1
  22. package/dist/CirclePackingGraph.js +1 -1
  23. package/dist/DotDensityMap.cjs +1 -1
  24. package/dist/DotDensityMap.cjs.map +1 -1
  25. package/dist/DotDensityMap.js +255 -258
  26. package/dist/DotDensityMap.js.map +1 -1
  27. package/dist/DumbbellChart.cjs +1 -1
  28. package/dist/DumbbellChart.cjs.map +1 -1
  29. package/dist/DumbbellChart.js +553 -556
  30. package/dist/DumbbellChart.js.map +1 -1
  31. package/dist/{GraphEl-Dorm_qQE.js → GraphEl-B73N4RIA.js} +2 -2
  32. package/dist/{GraphEl-Dorm_qQE.js.map → GraphEl-B73N4RIA.js.map} +1 -1
  33. package/dist/{GraphEl-D8WRC8-j.cjs → GraphEl-Lt1og0C-.cjs} +2 -2
  34. package/dist/{GraphEl-D8WRC8-j.cjs.map → GraphEl-Lt1og0C-.cjs.map} +1 -1
  35. package/dist/GriddedGraphs.cjs +1 -1
  36. package/dist/GriddedGraphs.js +1 -1
  37. package/dist/Histogram.cjs +1 -1
  38. package/dist/Histogram.js +1 -1
  39. package/dist/HybridMap.cjs +1 -1
  40. package/dist/HybridMap.cjs.map +1 -1
  41. package/dist/HybridMap.js +310 -313
  42. package/dist/HybridMap.js.map +1 -1
  43. package/dist/MultiLineAltChart.cjs +1 -1
  44. package/dist/MultiLineAltChart.cjs.map +1 -1
  45. package/dist/MultiLineAltChart.js +269 -272
  46. package/dist/MultiLineAltChart.js.map +1 -1
  47. package/dist/MultiLineChart.cjs +1 -1
  48. package/dist/MultiLineChart.cjs.map +1 -1
  49. package/dist/MultiLineChart.js +319 -322
  50. package/dist/MultiLineChart.js.map +1 -1
  51. package/dist/RadarChart.cjs +1 -1
  52. package/dist/RadarChart.cjs.map +1 -1
  53. package/dist/RadarChart.js +3 -3
  54. package/dist/RadarChart.js.map +1 -1
  55. package/dist/SankeyChart.cjs +1 -1
  56. package/dist/SankeyChart.cjs.map +1 -1
  57. package/dist/SankeyChart.js +274 -280
  58. package/dist/SankeyChart.js.map +1 -1
  59. package/dist/ScatterPlot.cjs +1 -1
  60. package/dist/ScatterPlot.cjs.map +1 -1
  61. package/dist/ScatterPlot.js +341 -344
  62. package/dist/ScatterPlot.js.map +1 -1
  63. package/dist/SingleGraphDashboard.cjs +1 -1
  64. package/dist/SingleGraphDashboard.js +1 -1
  65. package/dist/SlopeChart.cjs +1 -1
  66. package/dist/SlopeChart.cjs.map +1 -1
  67. package/dist/SlopeChart.js +251 -254
  68. package/dist/SlopeChart.js.map +1 -1
  69. package/dist/StripChart.cjs +1 -1
  70. package/dist/StripChart.cjs.map +1 -1
  71. package/dist/StripChart.js +292 -295
  72. package/dist/StripChart.js.map +1 -1
  73. package/dist/ThreeDGlobe.cjs +1 -1
  74. package/dist/ThreeDGlobe.cjs.map +1 -1
  75. package/dist/ThreeDGlobe.js +3 -3
  76. package/dist/ThreeDGlobe.js.map +1 -1
  77. package/dist/TreeMapGraph.cjs +1 -1
  78. package/dist/TreeMapGraph.cjs.map +1 -1
  79. package/dist/TreeMapGraph.js +196 -199
  80. package/dist/TreeMapGraph.js.map +1 -1
  81. package/dist/WaterfallChart.cjs +1 -1
  82. package/dist/WaterfallChart.cjs.map +1 -1
  83. package/dist/WaterfallChart.js +274 -277
  84. package/dist/WaterfallChart.js.map +1 -1
  85. package/dist/index-B0Awa_de.js +377 -0
  86. package/dist/index-B0Awa_de.js.map +1 -0
  87. package/dist/index-CP8cmNzt.cjs +2 -0
  88. package/dist/index-CP8cmNzt.cjs.map +1 -0
  89. package/dist/index.cjs +1 -1
  90. package/dist/index.js +1 -1
  91. package/package.json +1 -1
  92. package/dist/index-Bdo_HXb_.cjs +0 -2
  93. package/dist/index-Bdo_HXb_.cjs.map +0 -1
  94. package/dist/index-CGrBpeUa.js +0 -380
  95. package/dist/index-CGrBpeUa.js.map +0 -1
@@ -1,279 +1,279 @@
1
- import { c as le, j as s, m as ce } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useRef as se, useState as gt, useEffect as me } from "react";
3
- import { i as ue } from "./index-Bwrro8-q.js";
4
- import { n as ae } from "./numberFormattingFunction-DqMf_v1m.js";
5
- import { T as fe } from "./Tooltip-Bj-s__cI.js";
1
+ import { c as re, j as s, m as ae } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useRef as oe, useState as xt, useEffect as le } from "react";
3
+ import { i as ce } from "./index-Bwrro8-q.js";
4
+ import { n as ne } from "./numberFormattingFunction-DqMf_v1m.js";
5
+ import { T as me } from "./Tooltip-Bj-s__cI.js";
6
6
  import { c as Ht } from "./checkIfNullOrUndefined-DmfiKkNw.js";
7
- import { Colors as xt } from "./Colors.js";
8
- import { A as de } from "./AxisTitle-CyLCqpW6.js";
9
- import { A as he } from "./Axis-CNZYWzH0.js";
10
- import { a as pe } from "./ReferenceLine-D41VuUhE.js";
11
- import { Y as ge } from "./YTicksAndGridLines-CsNSq9W9.js";
12
- import { X as xe } from "./XAxesLabels-B9gkjUiC.js";
13
- import { D as ve } from "./DetailsModal-B2XBWR7w.js";
7
+ import { Colors as vt } from "./Colors.js";
8
+ import { A as ue } from "./AxisTitle-CyLCqpW6.js";
9
+ import { A as fe } from "./Axis-CNZYWzH0.js";
10
+ import { a as de } from "./ReferenceLine-D41VuUhE.js";
11
+ import { Y as he } from "./YTicksAndGridLines-CsNSq9W9.js";
12
+ import { X as pe } from "./XAxesLabels-B9gkjUiC.js";
13
+ import { D as ge } from "./DetailsModal-B2XBWR7w.js";
14
14
  import { g as Gt } from "./getTextColorBasedOnBgColor-CDY808zi.js";
15
- import { a as be } from "./linear-DNXM5Pdl.js";
16
- import { b as ye } from "./band-DYty33LD.js";
17
- import { m as ne } from "./proxy-BsxtcZKa.js";
18
- import { u as we } from "./use-in-view-KOXq5Kmc.js";
19
- import { A as Ae } from "./index-Cv_5q6Rb.js";
20
- import { ColorLegendWithMouseOver as Me } from "./ColorLegendWithMouseOver.js";
21
- import { E as Oe } from "./EmptyState-CaxXCkiN.js";
22
- import { a as Ce, G as $e } from "./GraphContainer-B8ZqOzKI.js";
23
- import { GraphFooter as Le } from "./GraphFooter.js";
24
- import { GraphHeader as je } from "./GraphHeader.js";
25
- import { u as re } from "./uniqBy-BHy4I8PK.js";
26
- function De(i) {
27
- let t = 0, n = 0, M = 0;
15
+ import { a as xe } from "./linear-DNXM5Pdl.js";
16
+ import { b as ve } from "./band-DYty33LD.js";
17
+ import { m as ie } from "./proxy-BsxtcZKa.js";
18
+ import { u as be } from "./use-in-view-KOXq5Kmc.js";
19
+ import { A as ye } from "./index-Cv_5q6Rb.js";
20
+ import { ColorLegendWithMouseOver as we } from "./ColorLegendWithMouseOver.js";
21
+ import { E as Ae } from "./EmptyState-CaxXCkiN.js";
22
+ import { a as Me, G as Oe } from "./GraphContainer-B8ZqOzKI.js";
23
+ import { GraphFooter as Ce } from "./GraphFooter.js";
24
+ import { GraphHeader as $e } from "./GraphHeader.js";
25
+ import { u as se } from "./uniqBy-BHy4I8PK.js";
26
+ function Le(i) {
27
+ let t = 0, n = 0, y = 0;
28
28
  for (const d of i)
29
- t += d || 0, t > n && (n = t), t < M && (M = t);
29
+ t += d || 0, t > n && (n = t), t < y && (y = t);
30
30
  return {
31
31
  max: n,
32
- min: M
32
+ min: y
33
33
  };
34
34
  }
35
- function ke(i) {
36
- const t = le.c(46), {
35
+ function je(i) {
36
+ const t = re.c(46), {
37
37
  leftMargin: n,
38
- rightMargin: M,
38
+ rightMargin: y,
39
39
  topMargin: d,
40
40
  bottomMargin: Yt,
41
41
  data: h,
42
- width: vt,
43
- height: z,
42
+ width: bt,
43
+ height: P,
44
44
  barColor: p,
45
- suffix: bt,
46
- prefix: yt,
47
- barPadding: Qt,
45
+ suffix: yt,
46
+ prefix: wt,
47
+ barPadding: Jt,
48
48
  showLabels: Rt,
49
49
  showValues: u,
50
- showTicks: nt,
50
+ showTicks: it,
51
51
  colorDomain: g,
52
- truncateBy: wt,
53
- tooltip: k,
54
- onSeriesMouseOver: At,
52
+ truncateBy: At,
53
+ tooltip: E,
54
+ onSeriesMouseOver: Mt,
55
55
  refValues: Xt,
56
- selectedColor: B,
57
- maxValue: Mt,
58
- minValue: Ot,
59
- highlightedDataPoints: P,
60
- onSeriesMouseClick: Ct,
61
- labelOrder: v,
62
- maxBarThickness: $t,
63
- minBarThickness: Lt,
64
- detailsOnClick: N,
65
- barAxisTitle: st,
56
+ selectedColor: W,
57
+ maxValue: Ot,
58
+ minValue: Ct,
59
+ highlightedDataPoints: G,
60
+ onSeriesMouseClick: $t,
61
+ labelOrder: x,
62
+ maxBarThickness: Lt,
63
+ minBarThickness: jt,
64
+ detailsOnClick: D,
65
+ barAxisTitle: ot,
66
66
  noOfTicks: Ft,
67
67
  styles: f,
68
- classNames: l,
69
- dimmedOpacity: $,
70
- animate: c,
71
- precision: jt,
72
- customLayers: L,
73
- naLabel: Zt,
74
- hideAxisLine: _t,
68
+ classNames: c,
69
+ dimmedOpacity: C,
70
+ animate: m,
71
+ precision: kt,
72
+ customLayers: $,
73
+ naLabel: Kt,
74
+ hideAxisLine: Qt,
75
75
  locale: Dt
76
- } = i, j = n === void 0 ? 20 : n, at = M === void 0 ? 20 : M, E = d === void 0 ? 20 : d, rt = Yt === void 0 ? 25 : Yt, kt = se(null);
77
- let W;
78
- t[0] !== c.amount || t[1] !== c.once ? (W = {
79
- once: c.once,
80
- amount: c.amount
81
- }, t[0] = c.amount, t[1] = c.once, t[2] = W) : W = t[2];
82
- const T = we(kt, W), Nt = st ? j + 30 : j;
83
- let r;
84
- t[3] !== rt || t[4] !== at || t[5] !== Nt || t[6] !== E ? (r = {
85
- top: E,
86
- bottom: rt,
87
- left: Nt,
88
- right: at
89
- }, t[3] = rt, t[4] = at, t[5] = Nt, t[6] = E, t[7] = r) : r = t[7];
90
- const o = r, {
91
- max: te,
92
- min: ee
93
- } = De(h.map(Ye)), qt = Ht(Mt) ? te : Mt, b = Ht(Ot) ? ee : Ot, [V, Tt] = gt(void 0), [G, H] = gt(void 0), [Y, lt] = gt(void 0), [R, ct] = gt(void 0), D = vt - o.left - o.right, Vt = z - o.top - o.bottom;
94
- let I;
95
- if (t[8] !== h || t[9] !== v) {
96
- const e = /* @__PURE__ */ new Set(), C = h.map((ot, Kt) => {
97
- const S = v ? `${ot.label}` : `${Kt}`;
98
- return e.add(S), {
99
- ...ot,
100
- id: S
76
+ } = i, L = n === void 0 ? 20 : n, nt = y === void 0 ? 20 : y, H = d === void 0 ? 20 : d, st = Yt === void 0 ? 25 : Yt, Nt = oe(null);
77
+ let Y;
78
+ t[0] !== m.amount || t[1] !== m.once ? (Y = {
79
+ once: m.once,
80
+ amount: m.amount
81
+ }, t[0] = m.amount, t[1] = m.once, t[2] = Y) : Y = t[2];
82
+ const N = be(Nt, Y), Tt = ot ? L + 30 : L;
83
+ let a;
84
+ t[3] !== st || t[4] !== nt || t[5] !== Tt || t[6] !== H ? (a = {
85
+ top: H,
86
+ bottom: st,
87
+ left: Tt,
88
+ right: nt
89
+ }, t[3] = st, t[4] = nt, t[5] = Tt, t[6] = H, t[7] = a) : a = t[7];
90
+ const o = a, {
91
+ max: Zt,
92
+ min: _t
93
+ } = Le(h.map(Ge)), qt = Ht(Ot) ? Zt : Ot, v = Ht(Ct) ? _t : Ct, [T, Vt] = xt(void 0), [R, X] = xt(void 0), [F, rt] = xt(void 0), [q, at] = xt(void 0), j = bt - o.left - o.right, It = P - o.top - o.bottom;
94
+ let U;
95
+ if (t[8] !== h || t[9] !== x) {
96
+ const e = /* @__PURE__ */ new Set(), k = h.map((O, et) => {
97
+ const B = x ? `${O.label}` : `${et}`;
98
+ return e.add(B), {
99
+ ...O,
100
+ id: B
101
101
  };
102
- }), w = v ? v.filter((ot) => !e.has(ot)) : [];
103
- I = [...C, ...w.map(He)], t[8] = h, t[9] = v, t[10] = I;
102
+ }), M = x ? x.filter((O) => !e.has(O)) : [];
103
+ U = [...k, ...M.map(We)], t[8] = h, t[9] = x, t[10] = U;
104
104
  } else
105
- I = t[10];
106
- const X = I;
107
- let F;
108
- t[11] !== X || t[12] !== v ? (F = v ?? X.map(Ge), t[11] = X, t[12] = v, t[13] = F) : F = t[13];
109
- const mt = F, a = be().domain([b, qt]).range([Vt, 0]).nice(), m = ye().domain(mt).range([0, Lt ? Math.max(D, Lt * mt.length) : $t ? Math.min(D, $t * mt.length) : D]).paddingInner(Qt), ut = a.ticks(Ft);
110
- let y = 0;
111
- const Ut = X.map((e) => {
112
- const C = y;
113
- return y = y + (e.size || 0), {
105
+ U = t[10];
106
+ const J = U;
107
+ let K;
108
+ t[11] !== J || t[12] !== x ? (K = x ?? J.map(Ee), t[11] = J, t[12] = x, t[13] = K) : K = t[13];
109
+ const Q = K, r = xe().domain([v, qt]).range([It, 0]).nice(), l = ve().domain(Q).range([0, jt ? Math.max(j, jt * Q.length) : Lt ? Math.min(j, Lt * Q.length) : j]).paddingInner(Jt), St = r.ticks(Ft);
110
+ let Z = 0;
111
+ const w = J.map((e) => {
112
+ const k = Z;
113
+ return Z = Z + (e.size || 0), {
114
114
  ...e,
115
- start: C,
116
- end: y
115
+ start: k,
116
+ end: Z
117
117
  };
118
- }), ft = l?.xAxis?.axis, x = l?.yAxis?.labels;
119
- let q;
120
- t[14] !== x || t[15] !== ft ? (q = {
121
- axis: ft,
122
- label: x
123
- }, t[14] = x, t[15] = ft, t[16] = q) : q = t[16];
124
- const O = f?.xAxis?.axis, U = f?.yAxis?.labels;
125
- let J;
126
- t[17] !== O || t[18] !== U ? (J = {
127
- axis: O,
128
- label: U
129
- }, t[17] = O, t[18] = U, t[19] = J) : J = t[19];
130
- const dt = 0 - j - 15, K = Vt / 2, ht = f?.yAxis?.title, pt = l?.yAxis?.title;
131
- let Q;
132
- t[20] !== st || t[21] !== dt || t[22] !== K || t[23] !== ht || t[24] !== pt ? (Q = /* @__PURE__ */ s.jsx(de, { x: dt, y: K, style: ht, className: pt, text: st, rotate90: !0 }), t[20] = st, t[21] = dt, t[22] = K, t[23] = ht, t[24] = pt, t[25] = Q) : Q = t[25];
133
- let Z;
134
- t[26] !== L ? (Z = L.filter(Pe).map(Be), t[26] = L, t[27] = Z) : Z = t[27];
135
- const _ = Ae, Jt = Ut.map((e, C) => Ht(m(e.id)) ? null : /* @__PURE__ */ s.jsxs(ne.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: T ? "whileInView" : "initial", variants: {
118
+ }), lt = c?.xAxis?.axis, A = c?.yAxis?.labels;
119
+ let V;
120
+ t[14] !== A || t[15] !== lt ? (V = {
121
+ axis: lt,
122
+ label: A
123
+ }, t[14] = A, t[15] = lt, t[16] = V) : V = t[16];
124
+ const ct = f?.xAxis?.axis, mt = f?.yAxis?.labels;
125
+ let I;
126
+ t[17] !== ct || t[18] !== mt ? (I = {
127
+ axis: ct,
128
+ label: mt
129
+ }, t[17] = ct, t[18] = mt, t[19] = I) : I = t[19];
130
+ const ut = 0 - L - 15, ft = It / 2, dt = f?.yAxis?.title, ht = c?.yAxis?.title;
131
+ let S;
132
+ t[20] !== ot || t[21] !== ut || t[22] !== ft || t[23] !== dt || t[24] !== ht ? (S = /* @__PURE__ */ s.jsx(ue, { x: ut, y: ft, style: dt, className: ht, text: ot, rotate90: !0 }), t[20] = ot, t[21] = ut, t[22] = ft, t[23] = dt, t[24] = ht, t[25] = S) : S = t[25];
133
+ let zt;
134
+ t[26] !== $ ? (zt = $.filter(ze).map(Se), t[26] = $, t[27] = zt) : zt = t[27];
135
+ const _ = ye, Ut = w.map((e, k) => Ht(l(e.id)) ? null : /* @__PURE__ */ s.jsxs(ie.g, { className: "undp-viz-g-with-hover", initial: "initial", animate: N ? "whileInView" : "initial", variants: {
136
136
  initial: {
137
- opacity: B ? e.color && p[g.indexOf(e.color)] === B ? 1 : $ : P.length !== 0 ? P.indexOf(e.label) !== -1 ? 0.85 : $ : 0.85
137
+ opacity: W ? e.color && p[g.indexOf(e.color)] === W ? 1 : C : G ? G.indexOf(e.label) !== -1 ? 0.85 : C : 0.85
138
138
  },
139
139
  whileInView: {
140
- opacity: B ? e.color && p[g.indexOf(e.color)] === B ? 1 : $ : P.length !== 0 ? P.indexOf(e.label) !== -1 ? 0.85 : $ : 0.85,
140
+ opacity: W ? e.color && p[g.indexOf(e.color)] === W ? 1 : C : G ? G.indexOf(e.label) !== -1 ? 0.85 : C : 0.85,
141
141
  transition: {
142
- duration: c.duration
142
+ duration: m.duration
143
143
  }
144
144
  }
145
145
  }, exit: {
146
146
  opacity: 0,
147
147
  transition: {
148
- duration: c.duration
148
+ duration: m.duration
149
149
  }
150
- }, onMouseEnter: (w) => {
151
- Tt(e), ct(w.clientY), lt(w.clientX), At?.(e);
150
+ }, onMouseEnter: (M) => {
151
+ Vt(e), at(M.clientY), rt(M.clientX), Mt?.(e);
152
152
  }, onClick: () => {
153
- (Ct || N) && (ue(G, e) ? (H(void 0), Ct?.(void 0)) : (H(e), Ct?.(e)));
154
- }, onMouseMove: (w) => {
155
- Tt(e), ct(w.clientY), lt(w.clientX);
153
+ ($t || D) && (ce(R, e) ? (X(void 0), $t?.(void 0)) : (X(e), $t?.(e)));
154
+ }, onMouseMove: (M) => {
155
+ Vt(e), at(M.clientY), rt(M.clientX);
156
156
  }, onMouseLeave: () => {
157
- Tt(void 0), lt(void 0), ct(void 0), At?.(void 0);
157
+ Vt(void 0), rt(void 0), at(void 0), Mt?.(void 0);
158
158
  }, children: [
159
- e.size ? /* @__PURE__ */ s.jsx(ne.rect, { width: m.bandwidth(), initial: "initial", animate: T ? "whileInView" : "initial", variants: {
159
+ e.size ? /* @__PURE__ */ s.jsx(ie.rect, { width: l.bandwidth(), initial: "initial", animate: N ? "whileInView" : "initial", variants: {
160
160
  initial: {
161
161
  height: 0,
162
- x: m(`${e.id}`),
163
- y: a(e.start),
164
- fill: h.filter(ze).length === 0 ? p[0] : e.color ? p[g.indexOf(e.color)] : xt.gray
162
+ x: l(`${e.id}`),
163
+ y: r(e.start),
164
+ fill: h.filter(Ie).length === 0 ? p[0] : e.color ? p[g.indexOf(e.color)] : vt.gray
165
165
  },
166
166
  whileInView: {
167
- height: Math.abs(a(e.start) - a(e.end)),
168
- y: a(Math.max(e.start, e.end)),
169
- x: m(`${e.id}`),
170
- fill: h.filter(Se).length === 0 ? p[0] : e.color ? p[g.indexOf(e.color)] : xt.gray,
167
+ height: Math.abs(r(e.start) - r(e.end)),
168
+ y: r(Math.max(e.start, e.end)),
169
+ x: l(`${e.id}`),
170
+ fill: h.filter(Ve).length === 0 ? p[0] : e.color ? p[g.indexOf(e.color)] : vt.gray,
171
171
  transition: {
172
- duration: c.duration
172
+ duration: m.duration
173
173
  }
174
174
  }
175
175
  }, exit: {
176
176
  height: 0,
177
- y: a(e.start),
177
+ y: r(e.start),
178
178
  transition: {
179
- duration: c.duration
179
+ duration: m.duration
180
180
  }
181
181
  } }) : null,
182
- Rt ? /* @__PURE__ */ s.jsx(xe, { value: `${e.label}`.length < wt ? `${e.label}` : `${`${e.label}`.substring(0, wt)}...`, y: a(0) + 5, x: m(`${e.id}`), width: m.bandwidth(), height: o.bottom, style: f?.xAxis?.labels, className: l?.xAxis?.labels, alignment: "top", animate: c, isInView: T }) : null,
183
- u && Math.abs(a(e.start) - a(e.end)) > 16 ? /* @__PURE__ */ s.jsx(ne.text, { style: {
182
+ Rt ? /* @__PURE__ */ s.jsx(pe, { value: `${e.label}`.length < At ? `${e.label}` : `${`${e.label}`.substring(0, At)}...`, y: r(0) + 5, x: l(`${e.id}`), width: l.bandwidth(), height: o.bottom, style: f?.xAxis?.labels, className: c?.xAxis?.labels, alignment: "top", animate: m, isInView: N }) : null,
183
+ u && Math.abs(r(e.start) - r(e.end)) > 16 ? /* @__PURE__ */ s.jsx(ie.text, { style: {
184
184
  textAnchor: "middle",
185
185
  ...f?.graphObjectValues || {}
186
- }, className: ce("graph-value text-sm", l?.graphObjectValues), dy: "0.33em", variants: {
186
+ }, className: ae("graph-value text-sm", c?.graphObjectValues), dy: "0.33em", variants: {
187
187
  initial: {
188
- x: m(`${e.id}`) + m.bandwidth() / 2,
189
- y: (a(e.start) + a(e.end)) / 2,
188
+ x: l(`${e.id}`) + l.bandwidth() / 2,
189
+ y: (r(e.start) + r(e.end)) / 2,
190
190
  opacity: 0,
191
- fill: h.filter(Ie).length === 0 ? Gt(p[0]) : e.color ? Gt(p[g.indexOf(e.color)]) : Gt(xt.gray)
191
+ fill: h.filter(Te).length === 0 ? Gt(p[0]) : e.color ? Gt(p[g.indexOf(e.color)]) : Gt(vt.gray)
192
192
  },
193
193
  whileInView: {
194
- x: m(`${e.id}`) + m.bandwidth() / 2,
195
- y: (a(e.start) + a(e.end)) / 2,
196
- fill: h.filter(Ve).length === 0 ? Gt(p[0]) : e.color ? Gt(p[g.indexOf(e.color)]) : Gt(xt.gray),
194
+ x: l(`${e.id}`) + l.bandwidth() / 2,
195
+ y: (r(e.start) + r(e.end)) / 2,
196
+ fill: h.filter(Ne).length === 0 ? Gt(p[0]) : e.color ? Gt(p[g.indexOf(e.color)]) : Gt(vt.gray),
197
197
  opacity: 1,
198
198
  transition: {
199
- duration: c.duration
199
+ duration: m.duration
200
200
  }
201
201
  }
202
- }, initial: "initial", animate: T ? "whileInView" : "initial", exit: {
202
+ }, initial: "initial", animate: N ? "whileInView" : "initial", exit: {
203
203
  opacity: 0,
204
204
  transition: {
205
- duration: c.duration
205
+ duration: m.duration
206
206
  }
207
- }, children: ae(e.size ? Math.abs(e.size) : e.size, Zt, jt, yt, bt, Dt) }) : null
208
- ] }, e.label)), tt = Xt ? /* @__PURE__ */ s.jsx(s.Fragment, { children: Xt.map((e, C) => /* @__PURE__ */ s.jsx(pe, { text: e.text, color: e.color, y: a(e.value), x1: 0 - j, x2: D + o.right, classNames: e.classNames, styles: e.styles, animate: c, isInView: T }, C)) }) : null;
209
- let It;
210
- t[28] !== _ || t[29] !== Jt || t[30] !== tt ? (It = /* @__PURE__ */ s.jsxs(_, { children: [
211
- Jt,
212
- tt
213
- ] }), t[28] = _, t[29] = Jt, t[30] = tt, t[31] = It) : It = t[31];
214
- let et;
215
- t[32] !== L ? (et = L.filter(Te).map(Ne), t[32] = L, t[33] = et) : et = t[33];
216
- let St;
217
- t[34] !== l?.tooltip || t[35] !== Y || t[36] !== R || t[37] !== V || t[38] !== f?.tooltip || t[39] !== k ? (St = V && k && Y && R ? /* @__PURE__ */ s.jsx(fe, { data: V, body: k, xPos: Y, yPos: R, backgroundStyle: f?.tooltip, className: l?.tooltip }) : null, t[34] = l?.tooltip, t[35] = Y, t[36] = R, t[37] = V, t[38] = f?.tooltip, t[39] = k, t[40] = St) : St = t[40];
218
- let it;
219
- return t[41] !== l?.modal || t[42] !== N || t[43] !== G || t[44] !== H ? (it = N && G !== void 0 ? /* @__PURE__ */ s.jsx(ve, { body: N, data: G, setData: H, className: l?.modal }) : null, t[41] = l?.modal, t[42] = N, t[43] = G, t[44] = H, t[45] = it) : it = t[45], /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
220
- /* @__PURE__ */ s.jsx(ne.svg, { ref: kt, width: `${vt}px`, height: `${z}px`, viewBox: `0 0 ${vt} ${z}`, direction: "ltr", children: /* @__PURE__ */ s.jsxs("g", { transform: `translate(${o.left},${o.top})`, children: [
221
- /* @__PURE__ */ s.jsx(he, { y1: a(b < 0 ? 0 : b), y2: a(b < 0 ? 0 : b), x1: 0 - j, x2: D + o.right, hideAxisLine: _t, label: nt ? ae(b < 0 ? 0 : b, void 0, jt, yt, bt, Dt) : void 0, labelPos: {
222
- x: 0 - j,
207
+ }, children: ne(e.size ? Math.abs(e.size) : e.size, Kt, kt, wt, yt, Dt) }) : null
208
+ ] }, e.label)), pt = Xt ? /* @__PURE__ */ s.jsx(s.Fragment, { children: Xt.map((e, k) => /* @__PURE__ */ s.jsx(de, { text: e.text, color: e.color, y: r(e.value), x1: 0 - L, x2: j + o.right, classNames: e.classNames, styles: e.styles, animate: m, isInView: N }, k)) }) : null;
209
+ let Bt;
210
+ t[28] !== _ || t[29] !== Ut || t[30] !== pt ? (Bt = /* @__PURE__ */ s.jsxs(_, { children: [
211
+ Ut,
212
+ pt
213
+ ] }), t[28] = _, t[29] = Ut, t[30] = pt, t[31] = Bt) : Bt = t[31];
214
+ let tt;
215
+ t[32] !== $ ? (tt = $.filter(De).map(ke), t[32] = $, t[33] = tt) : tt = t[33];
216
+ let gt;
217
+ t[34] !== c?.tooltip || t[35] !== F || t[36] !== q || t[37] !== T || t[38] !== f?.tooltip || t[39] !== E ? (gt = T && E && F && q ? /* @__PURE__ */ s.jsx(me, { data: T, body: E, xPos: F, yPos: q, backgroundStyle: f?.tooltip, className: c?.tooltip }) : null, t[34] = c?.tooltip, t[35] = F, t[36] = q, t[37] = T, t[38] = f?.tooltip, t[39] = E, t[40] = gt) : gt = t[40];
218
+ let z;
219
+ return t[41] !== c?.modal || t[42] !== D || t[43] !== R || t[44] !== X ? (z = D && R !== void 0 ? /* @__PURE__ */ s.jsx(ge, { body: D, data: R, setData: X, className: c?.modal }) : null, t[41] = c?.modal, t[42] = D, t[43] = R, t[44] = X, t[45] = z) : z = t[45], /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
220
+ /* @__PURE__ */ s.jsx(ie.svg, { ref: Nt, width: `${bt}px`, height: `${P}px`, viewBox: `0 0 ${bt} ${P}`, direction: "ltr", children: /* @__PURE__ */ s.jsxs("g", { transform: `translate(${o.left},${o.top})`, children: [
221
+ /* @__PURE__ */ s.jsx(fe, { y1: r(v < 0 ? 0 : v), y2: r(v < 0 ? 0 : v), x1: 0 - L, x2: j + o.right, hideAxisLine: Qt, label: it ? ne(v < 0 ? 0 : v, void 0, kt, wt, yt, Dt) : void 0, labelPos: {
222
+ x: 0 - L,
223
223
  dx: 0,
224
224
  dy: qt < 0 ? "1em" : -5,
225
- y: a(b < 0 ? 0 : b)
226
- }, classNames: q, styles: J }),
227
- nt ? /* @__PURE__ */ s.jsx(ge, { values: ut.filter(We), y: ut.filter(Ee).map((e) => a(e)), x1: 0 - j, x2: D + o.right, styles: {
225
+ y: r(v < 0 ? 0 : v)
226
+ }, classNames: V, styles: I }),
227
+ it ? /* @__PURE__ */ s.jsx(he, { values: St.filter(Pe), y: St.filter(Be).map((e) => r(e)), x1: 0 - L, x2: j + o.right, styles: {
228
228
  gridLines: f?.yAxis?.gridLines,
229
229
  labels: f?.yAxis?.labels
230
230
  }, classNames: {
231
- gridLines: l?.yAxis?.gridLines,
232
- labels: l?.yAxis?.labels
233
- }, suffix: bt, prefix: yt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: jt, locale: Dt }) : null,
234
- Q,
235
- Z,
236
- It,
237
- et
231
+ gridLines: c?.yAxis?.gridLines,
232
+ labels: c?.yAxis?.labels
233
+ }, suffix: yt, prefix: wt, labelType: "secondary", showGridLines: !0, labelPos: "vertical", precision: kt, locale: Dt }) : null,
234
+ S,
235
+ zt,
236
+ Bt,
237
+ tt
238
238
  ] }) }),
239
- St,
240
- it
239
+ gt,
240
+ z
241
241
  ] });
242
242
  }
243
- function Ne(i) {
243
+ function ke(i) {
244
244
  return i.layer;
245
245
  }
246
- function Te(i) {
246
+ function De(i) {
247
247
  return i.position === "after";
248
248
  }
249
- function Ve(i) {
249
+ function Ne(i) {
250
250
  return i.color;
251
251
  }
252
- function Ie(i) {
252
+ function Te(i) {
253
253
  return i.color;
254
254
  }
255
- function Se(i) {
255
+ function Ve(i) {
256
256
  return i.color;
257
257
  }
258
- function ze(i) {
258
+ function Ie(i) {
259
259
  return i.color;
260
260
  }
261
- function Be(i) {
261
+ function Se(i) {
262
262
  return i.layer;
263
263
  }
264
- function Pe(i) {
264
+ function ze(i) {
265
265
  return i.position === "before";
266
266
  }
267
- function Ee(i) {
267
+ function Be(i) {
268
268
  return i !== 0;
269
269
  }
270
- function We(i) {
270
+ function Pe(i) {
271
271
  return i !== 0;
272
272
  }
273
- function Ge(i) {
273
+ function Ee(i) {
274
274
  return `${i.id}`;
275
275
  }
276
- function He(i) {
276
+ function We(i) {
277
277
  return {
278
278
  id: i,
279
279
  label: i,
@@ -281,151 +281,148 @@ function He(i) {
281
281
  size: null
282
282
  };
283
283
  }
284
- function Ye(i) {
284
+ function Ge(i) {
285
285
  return i.size;
286
286
  }
287
- function Mi(i) {
288
- const t = le.c(102), {
287
+ function wi(i) {
288
+ const t = re.c(100), {
289
289
  data: n,
290
- graphTitle: M,
290
+ graphTitle: y,
291
291
  colors: d,
292
292
  suffix: Yt,
293
293
  sources: h,
294
- prefix: vt,
295
- graphDescription: z,
294
+ prefix: bt,
295
+ graphDescription: P,
296
296
  barPadding: p,
297
- showValues: bt,
298
- showTicks: yt,
299
- truncateBy: Qt,
297
+ showValues: yt,
298
+ showTicks: wt,
299
+ truncateBy: Jt,
300
300
  height: Rt,
301
301
  width: u,
302
- footNote: nt,
302
+ footNote: it,
303
303
  colorDomain: g,
304
- colorLegendTitle: wt,
305
- highlightedDataPoints: k,
306
- padding: At,
304
+ colorLegendTitle: At,
305
+ highlightedDataPoints: E,
306
+ padding: Mt,
307
307
  backgroundColor: Xt,
308
- topMargin: B,
309
- bottomMargin: Mt,
310
- leftMargin: Ot,
311
- rightMargin: P,
312
- showLabels: Ct,
313
- relativeHeight: v,
314
- tooltip: $t,
315
- onSeriesMouseOver: Lt,
316
- refValues: N,
317
- showColorScale: st,
308
+ topMargin: W,
309
+ bottomMargin: Ot,
310
+ leftMargin: Ct,
311
+ rightMargin: G,
312
+ showLabels: $t,
313
+ relativeHeight: x,
314
+ tooltip: Lt,
315
+ onSeriesMouseOver: jt,
316
+ refValues: D,
317
+ showColorScale: ot,
318
318
  graphID: Ft,
319
319
  maxValue: f,
320
- minValue: l,
321
- onSeriesMouseClick: $,
322
- graphDownload: c,
323
- dataDownload: jt,
324
- labelOrder: L,
325
- language: Zt,
326
- showNAColor: _t,
320
+ minValue: c,
321
+ onSeriesMouseClick: C,
322
+ graphDownload: m,
323
+ dataDownload: kt,
324
+ labelOrder: $,
325
+ language: Kt,
326
+ showNAColor: Qt,
327
327
  minHeight: Dt,
328
- theme: j,
329
- maxBarThickness: at,
330
- maxNumberOfBars: E,
331
- minBarThickness: rt,
332
- ariaLabel: kt,
333
- detailsOnClick: W,
334
- barAxisTitle: T,
335
- noOfTicks: Nt,
336
- styles: r,
328
+ theme: L,
329
+ maxBarThickness: nt,
330
+ maxNumberOfBars: H,
331
+ minBarThickness: st,
332
+ ariaLabel: Nt,
333
+ detailsOnClick: Y,
334
+ barAxisTitle: N,
335
+ noOfTicks: Tt,
336
+ styles: a,
337
337
  classNames: o,
338
- filterNA: te,
339
- animate: ee,
338
+ filterNA: Zt,
339
+ animate: _t,
340
340
  dimmedOpacity: qt,
341
- precision: b,
342
- customLayers: V,
343
- naLabel: Tt,
344
- hideAxisLine: G,
345
- locale: H
346
- } = i, Y = Yt === void 0 ? "" : Yt, lt = vt === void 0 ? "" : vt, R = p === void 0 ? 0.25 : p, ct = bt === void 0 ? !0 : bt, D = yt === void 0 ? !0 : yt, Vt = Qt === void 0 ? 999 : Qt;
341
+ precision: v,
342
+ customLayers: T,
343
+ naLabel: Vt,
344
+ hideAxisLine: R,
345
+ locale: X
346
+ } = i, F = Yt === void 0 ? "" : Yt, rt = bt === void 0 ? "" : bt, q = p === void 0 ? 0.25 : p, at = yt === void 0 ? !0 : yt, j = wt === void 0 ? !0 : wt, It = Jt === void 0 ? 999 : Jt, U = Xt === void 0 ? !1 : Xt, J = $t === void 0 ? !0 : $t, K = ot === void 0 ? !0 : ot, Q = m === void 0 ? !1 : m, r = kt === void 0 ? !1 : kt, l = Kt === void 0 ? "en" : Kt, St = Qt === void 0 ? !0 : Qt, Z = Dt === void 0 ? 0 : Dt, w = L === void 0 ? "light" : L, lt = Tt === void 0 ? 5 : Tt, A = Zt === void 0 ? !0 : Zt, V = _t === void 0 ? !1 : _t, ct = qt === void 0 ? 0.3 : qt, mt = v === void 0 ? 2 : v;
347
347
  let I;
348
- t[0] !== k ? (I = k === void 0 ? [] : k, t[0] = k, t[1] = I) : I = t[1];
349
- const X = I, F = Xt === void 0 ? !1 : Xt, mt = Ct === void 0 ? !0 : Ct, a = st === void 0 ? !0 : st, m = c === void 0 ? !1 : c, ut = jt === void 0 ? !1 : jt, y = Zt === void 0 ? "en" : Zt, Ut = _t === void 0 ? !0 : _t, ft = Dt === void 0 ? 0 : Dt, x = j === void 0 ? "light" : j, q = Nt === void 0 ? 5 : Nt, O = te === void 0 ? !0 : te, U = ee === void 0 ? !1 : ee, J = qt === void 0 ? 0.3 : qt, dt = b === void 0 ? 2 : b;
350
- let K;
351
- t[2] !== V ? (K = V === void 0 ? [] : V, t[2] = V, t[3] = K) : K = t[3];
352
- const ht = K, pt = Tt === void 0 ? "NA" : Tt, Q = G === void 0 ? !1 : G, Z = H === void 0 ? "en" : H, [_, Jt] = gt(0), [tt, It] = gt(0), [et, St] = gt(void 0), it = se(null), e = se(null);
353
- let C, w;
354
- t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = () => {
355
- const A = new ResizeObserver((oe) => {
356
- Jt(oe[0].target.clientWidth || 620), It(oe[0].target.clientHeight || 480);
348
+ t[0] !== T ? (I = T === void 0 ? [] : T, t[0] = T, t[1] = I) : I = t[1];
349
+ const ut = I, ft = Vt === void 0 ? "NA" : Vt, dt = R === void 0 ? !1 : R, ht = X === void 0 ? "en" : X, [S, zt] = xt(0), [_, Ut] = xt(0), [pt, Bt] = xt(void 0), tt = oe(null), gt = oe(null);
350
+ let z, e;
351
+ t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = () => {
352
+ const b = new ResizeObserver((ee) => {
353
+ zt(ee[0].target.clientWidth || 620), Ut(ee[0].target.clientHeight || 480);
357
354
  });
358
- return it.current && A.observe(it.current), () => A.disconnect();
359
- }, w = [], t[4] = C, t[5] = w) : (C = t[4], w = t[5]), me(C, w);
360
- const ot = o?.graphContainer, Kt = r?.graphContainer;
361
- let S;
362
- t[6] !== o?.description || t[7] !== o?.title || t[8] !== n || t[9] !== ut || t[10] !== z || t[11] !== m || t[12] !== M || t[13] !== r?.description || t[14] !== r?.title || t[15] !== u ? (S = M || z || m || ut ? /* @__PURE__ */ s.jsx(je, { styles: {
363
- title: r?.title,
364
- description: r?.description
355
+ return tt.current && b.observe(tt.current), () => b.disconnect();
356
+ }, e = [], t[2] = z, t[3] = e) : (z = t[2], e = t[3]), le(z, e);
357
+ const k = o?.graphContainer, M = a?.graphContainer;
358
+ let O;
359
+ t[4] !== o?.description || t[5] !== o?.title || t[6] !== n || t[7] !== r || t[8] !== P || t[9] !== Q || t[10] !== y || t[11] !== a?.description || t[12] !== a?.title || t[13] !== u ? (O = y || P || Q || r ? /* @__PURE__ */ s.jsx($e, { styles: {
360
+ title: a?.title,
361
+ description: a?.description
365
362
  }, classNames: {
366
363
  title: o?.title,
367
364
  description: o?.description
368
- }, graphTitle: M, graphDescription: z, width: u, graphDownload: m ? e : void 0, dataDownload: ut ? n.map(Qe).filter(Ke).length > 0 ? n.map(Je).filter(Ue) : n.filter(qe) : null }) : null, t[6] = o?.description, t[7] = o?.title, t[8] = n, t[9] = ut, t[10] = z, t[11] = m, t[12] = M, t[13] = r?.description, t[14] = r?.title, t[15] = u, t[16] = S) : S = t[16];
369
- let zt;
370
- t[17] !== o?.colorLegend || t[18] !== g || t[19] !== wt || t[20] !== d || t[21] !== n || t[22] !== a || t[23] !== Ut || t[24] !== x || t[25] !== u ? (zt = a && n.filter(Fe).length !== 0 && n.length > 0 ? /* @__PURE__ */ s.jsx(Me, { width: u, colorLegendTitle: wt, colors: d || xt[x].categoricalColors.colors, colorDomain: g || re(n, "color", !0), setSelectedColor: St, showNAColor: Ut, className: o?.colorLegend }) : null, t[17] = o?.colorLegend, t[18] = g, t[19] = wt, t[20] = d, t[21] = n, t[22] = a, t[23] = Ut, t[24] = x, t[25] = u, t[26] = zt) : zt = t[26];
371
- let Bt;
372
- t[27] !== n || t[28] !== O ? (Bt = n.filter((A) => O ? !Ht(A.size) : A).length === 0 && /* @__PURE__ */ s.jsx(Oe, {}), t[27] = n, t[28] = O, t[29] = Bt) : Bt = t[29];
365
+ }, graphTitle: y, graphDescription: P, width: u, graphDownload: Q ? gt : void 0, dataDownload: r ? n.map(Je).filter(Ue).length > 0 ? n.map(qe).filter(Fe) : n.filter(Xe) : null }) : null, t[4] = o?.description, t[5] = o?.title, t[6] = n, t[7] = r, t[8] = P, t[9] = Q, t[10] = y, t[11] = a?.description, t[12] = a?.title, t[13] = u, t[14] = O) : O = t[14];
366
+ let et;
367
+ t[15] !== o?.colorLegend || t[16] !== g || t[17] !== At || t[18] !== d || t[19] !== n || t[20] !== K || t[21] !== St || t[22] !== w || t[23] !== u ? (et = K && n.filter(Re).length !== 0 && n.length > 0 ? /* @__PURE__ */ s.jsx(we, { width: u, colorLegendTitle: At, colors: d || vt[w].categoricalColors.colors, colorDomain: g || se(n, "color", !0), setSelectedColor: Bt, showNAColor: St, className: o?.colorLegend }) : null, t[15] = o?.colorLegend, t[16] = g, t[17] = At, t[18] = d, t[19] = n, t[20] = K, t[21] = St, t[22] = w, t[23] = u, t[24] = et) : et = t[24];
368
+ let B;
369
+ t[25] !== n || t[26] !== A ? (B = n.filter((b) => A ? !Ht(b.size) : b).length === 0 && /* @__PURE__ */ s.jsx(Ae, {}), t[25] = n, t[26] = A, t[27] = B) : B = t[27];
373
370
  let Pt;
374
- t[30] !== U || t[31] !== T || t[32] !== R || t[33] !== Mt || t[34] !== o || t[35] !== g || t[36] !== d || t[37] !== ht || t[38] !== n || t[39] !== W || t[40] !== J || t[41] !== O || t[42] !== Q || t[43] !== X || t[44] !== L || t[45] !== y || t[46] !== Ot || t[47] !== Z || t[48] !== at || t[49] !== E || t[50] !== f || t[51] !== rt || t[52] !== l || t[53] !== pt || t[54] !== q || t[55] !== $ || t[56] !== Lt || t[57] !== dt || t[58] !== lt || t[59] !== N || t[60] !== P || t[61] !== et || t[62] !== mt || t[63] !== D || t[64] !== ct || t[65] !== r || t[66] !== Y || t[67] !== tt || t[68] !== _ || t[69] !== x || t[70] !== $t || t[71] !== B || t[72] !== Vt ? (Pt = _ && tt && n.filter((A) => O ? !Ht(A.size) : A).length > 0 ? /* @__PURE__ */ s.jsx(ke, { hideAxisLine: Q, data: n.filter((A) => O ? !Ht(A.size) : A).filter((A, oe) => E ? oe < E : !0), barColor: n.filter(Xe).length === 0 ? d ? [d] : [xt.primaryColors["blue-600"]] : d || xt[x].categoricalColors.colors, colorDomain: n.filter(Re).length === 0 ? [] : g || re(n, "color", !0), selectedColor: et, width: _, height: tt, suffix: Y, prefix: lt, barPadding: R, showValues: ct, showTicks: D, leftMargin: Ot, rightMargin: P, topMargin: B, bottomMargin: Mt, truncateBy: Vt, showLabels: mt, tooltip: $t, onSeriesMouseOver: Lt, refValues: N, maxValue: f, minValue: l, highlightedDataPoints: X, onSeriesMouseClick: $, labelOrder: L, rtl: y === "he" || y === "ar", maxBarThickness: at, minBarThickness: rt, detailsOnClick: W, barAxisTitle: T, noOfTicks: q, classNames: o, styles: r, animate: U === !0 ? {
371
+ t[28] !== V || t[29] !== N || t[30] !== q || t[31] !== Ot || t[32] !== o || t[33] !== g || t[34] !== d || t[35] !== ut || t[36] !== n || t[37] !== Y || t[38] !== ct || t[39] !== A || t[40] !== dt || t[41] !== E || t[42] !== $ || t[43] !== l || t[44] !== Ct || t[45] !== ht || t[46] !== nt || t[47] !== H || t[48] !== f || t[49] !== st || t[50] !== c || t[51] !== ft || t[52] !== lt || t[53] !== C || t[54] !== jt || t[55] !== mt || t[56] !== rt || t[57] !== D || t[58] !== G || t[59] !== pt || t[60] !== J || t[61] !== j || t[62] !== at || t[63] !== a || t[64] !== F || t[65] !== _ || t[66] !== S || t[67] !== w || t[68] !== Lt || t[69] !== W || t[70] !== It ? (Pt = S && _ && n.filter((b) => A ? !Ht(b.size) : b).length > 0 ? /* @__PURE__ */ s.jsx(je, { hideAxisLine: dt, data: n.filter((b) => A ? !Ht(b.size) : b).filter((b, ee) => H ? ee < H : !0), barColor: n.filter(Ye).length === 0 ? d ? [d] : [vt.primaryColors["blue-600"]] : d || vt[w].categoricalColors.colors, colorDomain: n.filter(He).length === 0 ? [] : g || se(n, "color", !0), selectedColor: pt, width: S, height: _, suffix: F, prefix: rt, barPadding: q, showValues: at, showTicks: j, leftMargin: Ct, rightMargin: G, topMargin: W, bottomMargin: Ot, truncateBy: It, showLabels: J, tooltip: Lt, onSeriesMouseOver: jt, refValues: D, maxValue: f, minValue: c, highlightedDataPoints: E, onSeriesMouseClick: C, labelOrder: $, rtl: l === "he" || l === "ar", maxBarThickness: nt, minBarThickness: st, detailsOnClick: Y, barAxisTitle: N, noOfTicks: lt, classNames: o, styles: a, animate: V === !0 ? {
375
372
  duration: 0.5,
376
373
  once: !0,
377
374
  amount: 0.5
378
- } : U || {
375
+ } : V || {
379
376
  duration: 0,
380
377
  once: !0,
381
378
  amount: 0
382
- }, dimmedOpacity: J, precision: dt, customLayers: ht, naLabel: pt, locale: Z }) : null, t[30] = U, t[31] = T, t[32] = R, t[33] = Mt, t[34] = o, t[35] = g, t[36] = d, t[37] = ht, t[38] = n, t[39] = W, t[40] = J, t[41] = O, t[42] = Q, t[43] = X, t[44] = L, t[45] = y, t[46] = Ot, t[47] = Z, t[48] = at, t[49] = E, t[50] = f, t[51] = rt, t[52] = l, t[53] = pt, t[54] = q, t[55] = $, t[56] = Lt, t[57] = dt, t[58] = lt, t[59] = N, t[60] = P, t[61] = et, t[62] = mt, t[63] = D, t[64] = ct, t[65] = r, t[66] = Y, t[67] = tt, t[68] = _, t[69] = x, t[70] = $t, t[71] = B, t[72] = Vt, t[73] = Pt) : Pt = t[73];
379
+ }, dimmedOpacity: ct, precision: mt, customLayers: ut, naLabel: ft, locale: ht }) : null, t[28] = V, t[29] = N, t[30] = q, t[31] = Ot, t[32] = o, t[33] = g, t[34] = d, t[35] = ut, t[36] = n, t[37] = Y, t[38] = ct, t[39] = A, t[40] = dt, t[41] = E, t[42] = $, t[43] = l, t[44] = Ct, t[45] = ht, t[46] = nt, t[47] = H, t[48] = f, t[49] = st, t[50] = c, t[51] = ft, t[52] = lt, t[53] = C, t[54] = jt, t[55] = mt, t[56] = rt, t[57] = D, t[58] = G, t[59] = pt, t[60] = J, t[61] = j, t[62] = at, t[63] = a, t[64] = F, t[65] = _, t[66] = S, t[67] = w, t[68] = Lt, t[69] = W, t[70] = It, t[71] = Pt) : Pt = t[71];
383
380
  let Et;
384
- t[74] !== Bt || t[75] !== Pt ? (Et = /* @__PURE__ */ s.jsxs(Ce, { ref: it, children: [
385
- Bt,
381
+ t[72] !== B || t[73] !== Pt ? (Et = /* @__PURE__ */ s.jsxs(Me, { ref: tt, children: [
382
+ B,
386
383
  Pt
387
- ] }), t[74] = Bt, t[75] = Pt, t[76] = Et) : Et = t[76];
384
+ ] }), t[72] = B, t[73] = Pt, t[74] = Et) : Et = t[74];
388
385
  let Wt;
389
- t[77] !== o?.footnote || t[78] !== o?.source || t[79] !== nt || t[80] !== h || t[81] !== r?.footnote || t[82] !== r?.source || t[83] !== u ? (Wt = h || nt ? /* @__PURE__ */ s.jsx(Le, { sources: h, footNote: nt, width: u, styles: {
390
- footnote: r?.footnote,
391
- source: r?.source
386
+ t[75] !== o?.footnote || t[76] !== o?.source || t[77] !== it || t[78] !== h || t[79] !== a?.footnote || t[80] !== a?.source || t[81] !== u ? (Wt = h || it ? /* @__PURE__ */ s.jsx(Ce, { sources: h, footNote: it, width: u, styles: {
387
+ footnote: a?.footnote,
388
+ source: a?.source
392
389
  }, classNames: {
393
390
  footnote: o?.footnote,
394
391
  source: o?.source
395
- } }) : null, t[77] = o?.footnote, t[78] = o?.source, t[79] = nt, t[80] = h, t[81] = r?.footnote, t[82] = r?.source, t[83] = u, t[84] = Wt) : Wt = t[84];
396
- let ie;
397
- return t[85] !== kt || t[86] !== F || t[87] !== Ft || t[88] !== Rt || t[89] !== y || t[90] !== ft || t[91] !== At || t[92] !== v || t[93] !== ot || t[94] !== Kt || t[95] !== S || t[96] !== zt || t[97] !== Et || t[98] !== Wt || t[99] !== x || t[100] !== u ? (ie = /* @__PURE__ */ s.jsxs($e, { className: ot, style: Kt, id: Ft, ref: e, "aria-label": kt, backgroundColor: F, theme: x, language: y, minHeight: ft, width: u, height: Rt, relativeHeight: v, padding: At, children: [
398
- S,
399
- zt,
392
+ } }) : null, t[75] = o?.footnote, t[76] = o?.source, t[77] = it, t[78] = h, t[79] = a?.footnote, t[80] = a?.source, t[81] = u, t[82] = Wt) : Wt = t[82];
393
+ let te;
394
+ return t[83] !== Nt || t[84] !== U || t[85] !== Ft || t[86] !== Rt || t[87] !== l || t[88] !== Z || t[89] !== Mt || t[90] !== x || t[91] !== k || t[92] !== M || t[93] !== O || t[94] !== et || t[95] !== Et || t[96] !== Wt || t[97] !== w || t[98] !== u ? (te = /* @__PURE__ */ s.jsxs(Oe, { className: k, style: M, id: Ft, ref: gt, "aria-label": Nt, backgroundColor: U, theme: w, language: l, minHeight: Z, width: u, height: Rt, relativeHeight: x, padding: Mt, children: [
395
+ O,
396
+ et,
400
397
  Et,
401
398
  Wt
402
- ] }), t[85] = kt, t[86] = F, t[87] = Ft, t[88] = Rt, t[89] = y, t[90] = ft, t[91] = At, t[92] = v, t[93] = ot, t[94] = Kt, t[95] = S, t[96] = zt, t[97] = Et, t[98] = Wt, t[99] = x, t[100] = u, t[101] = ie) : ie = t[101], ie;
399
+ ] }), t[83] = Nt, t[84] = U, t[85] = Ft, t[86] = Rt, t[87] = l, t[88] = Z, t[89] = Mt, t[90] = x, t[91] = k, t[92] = M, t[93] = O, t[94] = et, t[95] = Et, t[96] = Wt, t[97] = w, t[98] = u, t[99] = te) : te = t[99], te;
403
400
  }
404
- function Re(i) {
401
+ function He(i) {
405
402
  return i.color;
406
403
  }
407
- function Xe(i) {
404
+ function Ye(i) {
408
405
  return i.color;
409
406
  }
410
- function Fe(i) {
407
+ function Re(i) {
411
408
  return i.color;
412
409
  }
413
- function qe(i) {
410
+ function Xe(i) {
414
411
  return i !== void 0;
415
412
  }
416
- function Ue(i) {
413
+ function Fe(i) {
417
414
  return i !== void 0;
418
415
  }
419
- function Je(i) {
416
+ function qe(i) {
420
417
  return i.data;
421
418
  }
422
- function Ke(i) {
419
+ function Ue(i) {
423
420
  return i !== void 0;
424
421
  }
425
- function Qe(i) {
422
+ function Je(i) {
426
423
  return i.data;
427
424
  }
428
425
  export {
429
- Mi as WaterfallChart
426
+ wi as WaterfallChart
430
427
  };
431
428
  //# sourceMappingURL=WaterfallChart.js.map