@undp/data-viz 2.2.1 → 2.2.3

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