@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,34 +1,34 @@
1
- import { c as Qt, j as a, m as Yt } from "./index-CHPV5EwG-BzibaIRc.js";
2
- import { useRef as qt, useState as Ot, useEffect as ui } from "react";
3
- import { i as ei } from "./index-Bwrro8-q.js";
4
- import { o as oi } from "./index-BZQYSqar.js";
5
- import { T as ni } from "./Tooltip-Bj-s__cI.js";
6
- import { c as U } from "./checkIfNullOrUndefined-DmfiKkNw.js";
7
- import { n as Gt } from "./numberFormattingFunction-DqMf_v1m.js";
8
- import { Colors as d } from "./Colors.js";
9
- import { D as ri } from "./DetailsModal-B2XBWR7w.js";
10
- import { a as li } from "./linear-DNXM5Pdl.js";
11
- import { m as ot } from "./proxy-BsxtcZKa.js";
12
- import { u as ai } from "./use-in-view-KOXq5Kmc.js";
13
- import { A as si } from "./index-Cv_5q6Rb.js";
14
- import { u as ii } from "./uniqBy-BHy4I8PK.js";
15
- import { a as fi, G as pi } from "./GraphContainer-B8ZqOzKI.js";
16
- import { E as mi } from "./EmptyState-CaxXCkiN.js";
17
- import { ColorLegendWithMouseOver as hi } from "./ColorLegendWithMouseOver.js";
18
- import { GraphFooter as di } from "./GraphFooter.js";
19
- import { GraphHeader as gi } from "./GraphHeader.js";
20
- function ci(i, t) {
1
+ import { c as Kt, j as a, m as Xt } from "./index-CHPV5EwG-BzibaIRc.js";
2
+ import { useRef as qt, useState as Ot, useEffect as si } from "react";
3
+ import { i as ti } from "./index-Bwrro8-q.js";
4
+ import { o as ii } from "./index-BZQYSqar.js";
5
+ import { T as ei } from "./Tooltip-Bj-s__cI.js";
6
+ import { c as q } from "./checkIfNullOrUndefined-DmfiKkNw.js";
7
+ import { n as Yt } from "./numberFormattingFunction-DqMf_v1m.js";
8
+ import { Colors as h } from "./Colors.js";
9
+ import { D as oi } from "./DetailsModal-B2XBWR7w.js";
10
+ import { a as ni } from "./linear-DNXM5Pdl.js";
11
+ import { m as nt } from "./proxy-BsxtcZKa.js";
12
+ import { u as ri } from "./use-in-view-KOXq5Kmc.js";
13
+ import { A as li } from "./index-Cv_5q6Rb.js";
14
+ import { u as _t } from "./uniqBy-BHy4I8PK.js";
15
+ import { a as ci, G as ui } from "./GraphContainer-B8ZqOzKI.js";
16
+ import { E as fi } from "./EmptyState-CaxXCkiN.js";
17
+ import { ColorLegendWithMouseOver as pi } from "./ColorLegendWithMouseOver.js";
18
+ import { GraphFooter as mi } from "./GraphFooter.js";
19
+ import { GraphHeader as di } from "./GraphHeader.js";
20
+ function ai(i, t) {
21
21
  if (i < 2) return [];
22
22
  const o = t / (i - 1);
23
23
  return Array.from({
24
24
  length: i
25
- }, (A, v) => v * o);
25
+ }, ($, y) => y * o);
26
26
  }
27
- function xi(i) {
28
- const t = Qt.c(102), {
27
+ function hi(i) {
28
+ const t = Kt.c(102), {
29
29
  data: o,
30
- width: A,
31
- height: v,
30
+ width: $,
31
+ height: y,
32
32
  colors: n,
33
33
  colorDomain: l,
34
34
  radius: u,
@@ -36,37 +36,37 @@ function xi(i) {
36
36
  rightMargin: bt,
37
37
  topMargin: mt,
38
38
  bottomMargin: kt,
39
- tooltip: ht,
40
- onSeriesMouseOver: nt,
39
+ tooltip: dt,
40
+ onSeriesMouseOver: rt,
41
41
  highlightedDataPoints: r,
42
- selectedColor: rt,
43
- minValue: N,
44
- maxValue: S,
45
- onSeriesMouseClick: J,
46
- noOfTicks: lt,
47
- prefix: K,
48
- suffix: at,
49
- stripType: b,
50
- highlightColor: x,
42
+ selectedColor: lt,
43
+ minValue: A,
44
+ maxValue: N,
45
+ onSeriesMouseClick: U,
46
+ noOfTicks: at,
47
+ prefix: J,
48
+ suffix: st,
49
+ stripType: w,
50
+ highlightColor: v,
51
51
  dotOpacity: vt,
52
- resetSelectionOnDoubleClick: Q,
52
+ resetSelectionOnDoubleClick: K,
53
53
  detailsOnClick: O,
54
54
  styles: f,
55
- classNames: w,
55
+ classNames: M,
56
56
  valueColor: p,
57
57
  animate: m,
58
58
  dimmedOpacity: tt,
59
59
  precision: it,
60
60
  customLayers: V,
61
61
  showDataMinMax: wt,
62
- locale: Z
62
+ locale: Q
63
63
  } = i, Mt = C === void 0 ? 20 : C, Vt = bt === void 0 ? 20 : bt, jt = mt === void 0 ? 10 : mt, Ct = kt === void 0 ? 10 : kt, $t = qt(null);
64
- let st;
65
- t[0] !== m.amount || t[1] !== m.once ? (st = {
64
+ let ct;
65
+ t[0] !== m.amount || t[1] !== m.once ? (ct = {
66
66
  once: m.once,
67
67
  amount: m.amount
68
- }, t[0] = m.amount, t[1] = m.once, t[2] = st) : st = t[2];
69
- const j = ai($t, st), [ct, Dt] = Ot(void 0), [s, h] = Ot(void 0), [dt, It] = Ot(void 0), [gt, xt] = Ot(void 0);
68
+ }, t[0] = m.amount, t[1] = m.once, t[2] = ct) : ct = t[2];
69
+ const j = ri($t, ct), [ut, Dt] = Ot(void 0), [s, d] = Ot(void 0), [ht, It] = Ot(void 0), [gt, xt] = Ot(void 0);
70
70
  let yt;
71
71
  t[3] !== Ct || t[4] !== Mt || t[5] !== Vt || t[6] !== jt ? (yt = {
72
72
  top: jt,
@@ -74,32 +74,32 @@ function xi(i) {
74
74
  left: Mt,
75
75
  right: Vt
76
76
  }, t[3] = Ct, t[4] = Mt, t[5] = Vt, t[6] = jt, t[7] = yt) : yt = t[7];
77
- const g = yt, F = A - g.left - g.right, B = v - g.top - g.bottom;
78
- let T, D, M, E, I, k, L, P, H, W, X, Y;
79
- if (t[8] !== m.duration || t[9] !== w?.graphObjectValues || t[10] !== w?.yAxis?.labels || t[11] !== l || t[12] !== n || t[13] !== V || t[14] !== o || t[15] !== O || t[16] !== tt || t[17] !== vt || t[18] !== B || t[19] !== F || t[20] !== v || t[21] !== x || t[22] !== r || t[23] !== j || t[24] !== Z || t[25] !== g.left || t[26] !== g.top || t[27] !== S || t[28] !== N || t[29] !== s || t[30] !== lt || t[31] !== J || t[32] !== nt || t[33] !== it || t[34] !== K || t[35] !== u || t[36] !== Q || t[37] !== rt || t[38] !== wt || t[39] !== b || t[40] !== f?.graphObjectValues || t[41] !== f?.yAxis?.labels || t[42] !== at || t[43] !== p || t[44] !== A) {
80
- const At = o.map(Bi);
81
- let ft;
82
- t[57] !== r ? (ft = (e) => {
77
+ const g = yt, F = $ - g.left - g.right, B = y - g.top - g.bottom;
78
+ let S, T, b, D, E, L, H, P, W, X, Y, x;
79
+ if (t[8] !== m.duration || t[9] !== M?.graphObjectValues || t[10] !== M?.yAxis?.labels || t[11] !== l || t[12] !== n || t[13] !== V || t[14] !== o || t[15] !== O || t[16] !== tt || t[17] !== vt || t[18] !== B || t[19] !== F || t[20] !== y || t[21] !== v || t[22] !== r || t[23] !== j || t[24] !== Q || t[25] !== g.left || t[26] !== g.top || t[27] !== N || t[28] !== A || t[29] !== s || t[30] !== at || t[31] !== U || t[32] !== rt || t[33] !== it || t[34] !== J || t[35] !== u || t[36] !== K || t[37] !== lt || t[38] !== wt || t[39] !== w || t[40] !== f?.graphObjectValues || t[41] !== f?.yAxis?.labels || t[42] !== st || t[43] !== p || t[44] !== $) {
80
+ const At = o.map(Ri);
81
+ let pt;
82
+ t[57] !== r ? (pt = (e) => {
83
83
  const c = (r || []).indexOf(e.label);
84
84
  return c === -1 ? 1 / 0 : c;
85
- }, t[57] = r, t[58] = ft) : ft = t[58];
86
- const Nt = oi(At, [ft], ["desc"]);
87
- let pt;
88
- t[59] !== o || t[60] !== S ? (pt = U(S) ? Math.max(...o.filter(Fi).map(Ri)) < 0 ? 0 : Math.max(...o.filter(zi).map(Gi)) : S, t[59] = o, t[60] = S, t[61] = pt) : pt = t[61];
89
- const St = pt;
85
+ }, t[57] = r, t[58] = pt) : pt = t[58];
86
+ const Nt = ii(At, [pt], ["desc"]);
90
87
  let et;
91
- t[62] !== o || t[63] !== N ? (et = U(N) ? Math.min(...o.filter(Yi).map(Xi)) >= 0 ? 0 : Math.min(...o.filter(Wi).map(Hi)) : N, t[62] = o, t[63] = N, t[64] = et) : et = t[64];
92
- const zt = et, q = li().domain([zt, St]).range([B, 0]).nice(), Tt = ci(lt, B);
93
- D = ot.svg, E = `${A}px`, I = `${v}px`, k = `0 0 ${A} ${v}`, L = "ltr", P = $t, Y = `translate(${g.left},${g.top})`, t[65] !== V ? (M = V.filter(Pi).map(Li), t[65] = V, t[66] = M) : M = t[66], T = si, H = Nt.map((e) => /* @__PURE__ */ a.jsxs(ot.g, { className: "undp-viz-g-with-hover", variants: {
88
+ t[59] !== o || t[60] !== N ? (et = q(N) ? Math.max(...o.filter(zi).map(Gi)) < 0 ? 0 : Math.max(...o.filter(Yi).map(Xi)) : N, t[59] = o, t[60] = N, t[61] = et) : et = t[61];
89
+ const Gt = et;
90
+ let ot;
91
+ t[62] !== o || t[63] !== A ? (ot = q(A) ? Math.min(...o.filter(Wi).map(Pi)) >= 0 ? 0 : Math.min(...o.filter(Hi).map(Li)) : A, t[62] = o, t[63] = A, t[64] = ot) : ot = t[64];
92
+ const zt = ot, _ = ni().domain([zt, Gt]).range([B, 0]).nice(), St = ai(at, B);
93
+ T = nt.svg, D = `${$}px`, E = `${y}px`, L = `0 0 ${$} ${y}`, H = "ltr", P = $t, x = `translate(${g.left},${g.top})`, t[65] !== V ? (b = V.filter(Ei).map(Ti), t[65] = V, t[66] = b) : b = t[66], S = li, W = Nt.map((e) => /* @__PURE__ */ a.jsxs(nt.g, { className: "undp-viz-g-with-hover", variants: {
94
94
  initial: {
95
95
  opacity: 0,
96
96
  x: F / 2,
97
- y: q(0)
97
+ y: _(0)
98
98
  },
99
99
  whileInView: {
100
100
  x: F / 2,
101
- y: q(e.position),
102
- opacity: rt ? e.color && n[l.indexOf(e.color)] === rt ? 0.95 : tt : r.length !== 0 ? r.indexOf(e.label) !== -1 ? 0.95 : tt : vt,
101
+ y: _(e.position),
102
+ opacity: lt ? e.color && n[l.indexOf(e.color)] === lt ? 0.95 : tt : r ? r.indexOf(e.label) !== -1 ? 0.95 : tt : vt,
103
103
  transition: {
104
104
  duration: m.duration
105
105
  }
@@ -110,20 +110,20 @@ function xi(i) {
110
110
  duration: m.duration
111
111
  }
112
112
  }, onMouseEnter: (c) => {
113
- Dt(e), xt(c.clientY), It(c.clientX), nt?.(e);
113
+ Dt(e), xt(c.clientY), It(c.clientX), rt?.(e);
114
114
  }, onClick: () => {
115
- (J || O) && (ei(s, e) && Q ? (h(void 0), J?.(void 0)) : (h(e), J?.(e)));
115
+ (U || O) && (ti(s, e) && K ? (d(void 0), U?.(void 0)) : (d(e), U?.(e)));
116
116
  }, onMouseMove: (c) => {
117
117
  Dt(e), xt(c.clientY), It(c.clientX);
118
118
  }, onMouseLeave: () => {
119
- Dt(void 0), It(void 0), xt(void 0), nt?.(void 0);
119
+ Dt(void 0), It(void 0), xt(void 0), rt?.(void 0);
120
120
  }, children: [
121
- b === "dot" ? /* @__PURE__ */ a.jsx(ot.circle, { cy: 0, cx: 0, variants: {
121
+ w === "dot" ? /* @__PURE__ */ a.jsx(nt.circle, { cy: 0, cx: 0, variants: {
122
122
  initial: {
123
- fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Ei).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(Ti).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray
123
+ fill: v && r ? r.indexOf(e.label) !== -1 ? v : o.filter(Si).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Ni).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
124
124
  },
125
125
  whileInView: {
126
- fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Si).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(Ni).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray,
126
+ fill: v && r ? r.indexOf(e.label) !== -1 ? v : o.filter(Ai).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter($i).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
127
127
  transition: {
128
128
  duration: m.duration
129
129
  }
@@ -133,16 +133,16 @@ function xi(i) {
133
133
  transition: {
134
134
  duration: m.duration
135
135
  }
136
- }, r: u }) : /* @__PURE__ */ a.jsx(ot.rect, { y: -1, height: 2, variants: {
136
+ }, r: u }) : /* @__PURE__ */ a.jsx(nt.rect, { y: -1, height: 2, variants: {
137
137
  initial: {
138
138
  x: 0 - u,
139
139
  width: u * 2,
140
- fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Ai).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter($i).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray
140
+ fill: v && r ? r.indexOf(e.label) !== -1 ? v : o.filter(ki).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Ii).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
141
141
  },
142
142
  whileInView: {
143
143
  x: 0 - u,
144
144
  width: u * 2,
145
- fill: x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(ki).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(Ii).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray,
145
+ fill: v && r ? r.indexOf(e.label) !== -1 ? v : o.filter(Di).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Ci).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
146
146
  transition: {
147
147
  duration: m.duration
148
148
  }
@@ -153,16 +153,16 @@ function xi(i) {
153
153
  duration: m.duration
154
154
  }
155
155
  } }),
156
- r.length !== 0 && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(ot.text, { y: 0, dy: "0.33em", variants: {
156
+ r && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(nt.text, { y: 0, dy: "0.33em", variants: {
157
157
  initial: {
158
158
  opacity: 0,
159
159
  x: 0 + u + 3,
160
- fill: p || (x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(Di).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(Ci).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray)
160
+ fill: p || (v && r ? r.indexOf(e.label) !== -1 ? v : o.filter(ji).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Vi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray)
161
161
  },
162
162
  whileInView: {
163
163
  opacity: 1,
164
164
  x: 0 + u + 3,
165
- fill: p || (x && r ? r.indexOf(e.label) !== -1 ? x : o.filter(ji).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(Vi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray),
165
+ fill: p || (v && r ? r.indexOf(e.label) !== -1 ? v : o.filter(Mi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(wi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray),
166
166
  transition: {
167
167
  duration: m.duration
168
168
  }
@@ -175,16 +175,16 @@ function xi(i) {
175
175
  }, style: {
176
176
  textAnchor: "start",
177
177
  ...f?.graphObjectValues || {}
178
- }, className: Yt("graph-value text-sm font-bold", w?.graphObjectValues), children: Gt(e.position, void 0, it, K, at, Z) }) : null
179
- ] }, e.label)), W = wt ? [Math.min(...o.filter(Mi).map(wi)), Math.max(...o.filter(bi).map(Oi))].map((e, c) => /* @__PURE__ */ a.jsx(ot.g, { variants: {
178
+ }, className: Xt("graph-value text-sm font-bold", M?.graphObjectValues), children: Yt(e.position, void 0, it, J, st, Q) }) : null
179
+ ] }, e.label)), X = wt ? [Math.min(...o.filter(bi).map(Oi)), Math.max(...o.filter(vi).map(yi))].map((e, c) => /* @__PURE__ */ a.jsx(nt.g, { variants: {
180
180
  initial: {
181
181
  opacity: 0,
182
182
  x: F / 2,
183
- y: q(0)
183
+ y: _(0)
184
184
  },
185
185
  whileInView: {
186
186
  x: F / 2,
187
- y: q(e),
187
+ y: _(e),
188
188
  opacity: 1,
189
189
  transition: {
190
190
  duration: m.duration
@@ -195,7 +195,7 @@ function xi(i) {
195
195
  transition: {
196
196
  duration: m.duration
197
197
  }
198
- }, children: /* @__PURE__ */ a.jsx(ot.text, { y: 0, dy: "0.33em", variants: {
198
+ }, children: /* @__PURE__ */ a.jsx(nt.text, { y: 0, dy: "0.33em", variants: {
199
199
  initial: {
200
200
  opacity: 0,
201
201
  x: 0 + u + 3
@@ -215,56 +215,62 @@ function xi(i) {
215
215
  }, style: {
216
216
  textAnchor: "start",
217
217
  ...f?.graphObjectValues || {}
218
- }, className: Yt("graph-value text-sm text-primary-gray-550 dark:text-primary-gray-200", w?.graphObjectValues), children: Gt(e, void 0, it, K, at, Z) }, c) }, c)) : null, X = Tt.map((e, c) => /* @__PURE__ */ a.jsx("text", { y: e, x: F / 2 + u + 5, style: {
218
+ }, className: Xt("graph-value text-sm text-primary-gray-550 dark:text-primary-gray-200", M?.graphObjectValues), children: Yt(e, void 0, it, J, st, Q) }, c) }, c)) : null, Y = St.map((e, c) => /* @__PURE__ */ a.jsx("text", { y: e, x: F / 2 + u + 5, style: {
219
219
  textAnchor: "start",
220
220
  ...f?.yAxis?.labels || {}
221
- }, className: Yt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", w?.yAxis?.labels), children: Gt(q.invert(e), void 0, it, K, at, Z) }, c)), t[8] = m.duration, t[9] = w?.graphObjectValues, t[10] = w?.yAxis?.labels, t[11] = l, t[12] = n, t[13] = V, t[14] = o, t[15] = O, t[16] = tt, t[17] = vt, t[18] = B, t[19] = F, t[20] = v, t[21] = x, t[22] = r, t[23] = j, t[24] = Z, t[25] = g.left, t[26] = g.top, t[27] = S, t[28] = N, t[29] = s, t[30] = lt, t[31] = J, t[32] = nt, t[33] = it, t[34] = K, t[35] = u, t[36] = Q, t[37] = rt, t[38] = wt, t[39] = b, t[40] = f?.graphObjectValues, t[41] = f?.yAxis?.labels, t[42] = at, t[43] = p, t[44] = A, t[45] = T, t[46] = D, t[47] = M, t[48] = E, t[49] = I, t[50] = k, t[51] = L, t[52] = P, t[53] = H, t[54] = W, t[55] = X, t[56] = Y;
221
+ }, className: Xt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", M?.yAxis?.labels), children: Yt(_.invert(e), void 0, it, J, st, Q) }, c)), t[8] = m.duration, t[9] = M?.graphObjectValues, t[10] = M?.yAxis?.labels, t[11] = l, t[12] = n, t[13] = V, t[14] = o, t[15] = O, t[16] = tt, t[17] = vt, t[18] = B, t[19] = F, t[20] = y, t[21] = v, t[22] = r, t[23] = j, t[24] = Q, t[25] = g.left, t[26] = g.top, t[27] = N, t[28] = A, t[29] = s, t[30] = at, t[31] = U, t[32] = rt, t[33] = it, t[34] = J, t[35] = u, t[36] = K, t[37] = lt, t[38] = wt, t[39] = w, t[40] = f?.graphObjectValues, t[41] = f?.yAxis?.labels, t[42] = st, t[43] = p, t[44] = $, t[45] = S, t[46] = T, t[47] = b, t[48] = D, t[49] = E, t[50] = L, t[51] = H, t[52] = P, t[53] = W, t[54] = X, t[55] = Y, t[56] = x;
222
222
  } else
223
- T = t[45], D = t[46], M = t[47], E = t[48], I = t[49], k = t[50], L = t[51], P = t[52], H = t[53], W = t[54], X = t[55], Y = t[56];
223
+ S = t[45], T = t[46], b = t[47], D = t[48], E = t[49], L = t[50], H = t[51], P = t[52], W = t[53], X = t[54], Y = t[55], x = t[56];
224
224
  let G;
225
- t[67] !== T || t[68] !== H || t[69] !== W || t[70] !== X ? (G = /* @__PURE__ */ a.jsxs(T, { children: [
226
- H,
225
+ t[67] !== S || t[68] !== W || t[69] !== X || t[70] !== Y ? (G = /* @__PURE__ */ a.jsxs(S, { children: [
227
226
  W,
228
- X
229
- ] }), t[67] = T, t[68] = H, t[69] = W, t[70] = X, t[71] = G) : G = t[71];
230
- let y;
231
- t[72] !== V ? (y = V.filter(vi).map(yi), t[72] = V, t[73] = y) : y = t[73];
232
- let z;
233
- t[74] !== M || t[75] !== G || t[76] !== y || t[77] !== Y ? (z = /* @__PURE__ */ a.jsxs("g", { transform: Y, children: [
234
- M,
227
+ X,
228
+ Y
229
+ ] }), t[67] = S, t[68] = W, t[69] = X, t[70] = Y, t[71] = G) : G = t[71];
230
+ let Z;
231
+ t[72] !== V ? (Z = V.filter(xi).map(gi), t[72] = V, t[73] = Z) : Z = t[73];
232
+ let I;
233
+ t[74] !== b || t[75] !== G || t[76] !== Z || t[77] !== x ? (I = /* @__PURE__ */ a.jsxs("g", { transform: x, children: [
234
+ b,
235
235
  G,
236
- y
237
- ] }), t[74] = M, t[75] = G, t[76] = y, t[77] = Y, t[78] = z) : z = t[78];
238
- let _;
239
- t[79] !== D || t[80] !== E || t[81] !== I || t[82] !== k || t[83] !== L || t[84] !== P || t[85] !== z ? (_ = /* @__PURE__ */ a.jsx(D, { width: E, height: I, viewBox: k, direction: L, ref: P, children: z }), t[79] = D, t[80] = E, t[81] = I, t[82] = k, t[83] = L, t[84] = P, t[85] = z, t[86] = _) : _ = t[86];
240
- let $;
241
- t[87] !== w?.tooltip || t[88] !== dt || t[89] !== gt || t[90] !== ct || t[91] !== f?.tooltip || t[92] !== ht ? ($ = ct && ht && dt && gt ? /* @__PURE__ */ a.jsx(ni, { data: ct, body: ht, xPos: dt, yPos: gt, backgroundStyle: f?.tooltip, className: w?.tooltip }) : null, t[87] = w?.tooltip, t[88] = dt, t[89] = gt, t[90] = ct, t[91] = f?.tooltip, t[92] = ht, t[93] = $) : $ = t[93];
236
+ Z
237
+ ] }), t[74] = b, t[75] = G, t[76] = Z, t[77] = x, t[78] = I) : I = t[78];
238
+ let z;
239
+ t[79] !== T || t[80] !== D || t[81] !== E || t[82] !== L || t[83] !== H || t[84] !== P || t[85] !== I ? (z = /* @__PURE__ */ a.jsx(T, { width: D, height: E, viewBox: L, direction: H, ref: P, children: I }), t[79] = T, t[80] = D, t[81] = E, t[82] = L, t[83] = H, t[84] = P, t[85] = I, t[86] = z) : z = t[86];
242
240
  let R;
243
- t[94] !== w?.modal || t[95] !== O || t[96] !== s ? (R = O && s !== void 0 ? /* @__PURE__ */ a.jsx(ri, { body: O, data: s, setData: h, className: w?.modal }) : null, t[94] = w?.modal, t[95] = O, t[96] = s, t[97] = R) : R = t[97];
244
- let ut;
245
- return t[98] !== _ || t[99] !== $ || t[100] !== R ? (ut = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
246
- _,
247
- $,
248
- R
249
- ] }), t[98] = _, t[99] = $, t[100] = R, t[101] = ut) : ut = t[101], ut;
241
+ t[87] !== M?.tooltip || t[88] !== ht || t[89] !== gt || t[90] !== ut || t[91] !== f?.tooltip || t[92] !== dt ? (R = ut && dt && ht && gt ? /* @__PURE__ */ a.jsx(ei, { data: ut, body: dt, xPos: ht, yPos: gt, backgroundStyle: f?.tooltip, className: M?.tooltip }) : null, t[87] = M?.tooltip, t[88] = ht, t[89] = gt, t[90] = ut, t[91] = f?.tooltip, t[92] = dt, t[93] = R) : R = t[93];
242
+ let k;
243
+ t[94] !== M?.modal || t[95] !== O || t[96] !== s ? (k = O && s !== void 0 ? /* @__PURE__ */ a.jsx(oi, { body: O, data: s, setData: d, className: M?.modal }) : null, t[94] = M?.modal, t[95] = O, t[96] = s, t[97] = k) : k = t[97];
244
+ let ft;
245
+ return t[98] !== z || t[99] !== R || t[100] !== k ? (ft = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
246
+ z,
247
+ R,
248
+ k
249
+ ] }), t[98] = z, t[99] = R, t[100] = k, t[101] = ft) : ft = t[101], ft;
250
+ }
251
+ function gi(i) {
252
+ return i.layer;
253
+ }
254
+ function xi(i) {
255
+ return i.position === "after";
250
256
  }
251
257
  function yi(i) {
252
- return i.layer;
258
+ return i.position;
253
259
  }
254
260
  function vi(i) {
255
- return i.position === "after";
261
+ return !q(i.position);
256
262
  }
257
263
  function Oi(i) {
258
264
  return i.position;
259
265
  }
260
266
  function bi(i) {
261
- return !U(i.position);
267
+ return !q(i.position);
262
268
  }
263
269
  function wi(i) {
264
- return i.position;
270
+ return i.color;
265
271
  }
266
272
  function Mi(i) {
267
- return !U(i.position);
273
+ return i.color;
268
274
  }
269
275
  function Vi(i) {
270
276
  return i.color;
@@ -297,52 +303,46 @@ function Si(i) {
297
303
  return i.color;
298
304
  }
299
305
  function Ti(i) {
300
- return i.color;
306
+ return i.layer;
301
307
  }
302
308
  function Ei(i) {
303
- return i.color;
309
+ return i.position === "before";
304
310
  }
305
311
  function Li(i) {
306
- return i.layer;
307
- }
308
- function Pi(i) {
309
- return i.position === "before";
312
+ return i.position;
310
313
  }
311
314
  function Hi(i) {
315
+ return !q(i.position);
316
+ }
317
+ function Pi(i) {
312
318
  return i.position;
313
319
  }
314
320
  function Wi(i) {
315
- return !U(i.position);
321
+ return !q(i.position);
316
322
  }
317
323
  function Xi(i) {
318
324
  return i.position;
319
325
  }
320
326
  function Yi(i) {
321
- return !U(i.position);
327
+ return !q(i.position);
322
328
  }
323
329
  function Gi(i) {
324
330
  return i.position;
325
331
  }
326
332
  function zi(i) {
327
- return !U(i.position);
333
+ return !q(i.position);
328
334
  }
329
- function Ri(i) {
330
- return i.position;
331
- }
332
- function Fi(i) {
333
- return !U(i.position);
334
- }
335
- function Bi(i, t) {
335
+ function Ri(i, t) {
336
336
  return {
337
337
  ...i,
338
338
  id: `${t}`
339
339
  };
340
340
  }
341
- function qi(i) {
342
- const t = Qt.c(102), {
341
+ function Fi(i) {
342
+ const t = Kt.c(102), {
343
343
  data: o,
344
- width: A,
345
- height: v,
344
+ width: $,
345
+ height: y,
346
346
  colors: n,
347
347
  colorDomain: l,
348
348
  radius: u,
@@ -350,37 +350,37 @@ function qi(i) {
350
350
  rightMargin: bt,
351
351
  topMargin: mt,
352
352
  bottomMargin: kt,
353
- tooltip: ht,
354
- onSeriesMouseOver: nt,
353
+ tooltip: dt,
354
+ onSeriesMouseOver: rt,
355
355
  highlightedDataPoints: r,
356
- selectedColor: rt,
357
- minValue: N,
358
- maxValue: S,
359
- onSeriesMouseClick: J,
360
- prefix: lt,
361
- suffix: K,
362
- stripType: at,
363
- highlightColor: b,
364
- dotOpacity: x,
356
+ selectedColor: lt,
357
+ minValue: A,
358
+ maxValue: N,
359
+ onSeriesMouseClick: U,
360
+ prefix: at,
361
+ suffix: J,
362
+ stripType: st,
363
+ highlightColor: w,
364
+ dotOpacity: v,
365
365
  resetSelectionOnDoubleClick: vt,
366
- detailsOnClick: Q,
366
+ detailsOnClick: K,
367
367
  styles: O,
368
368
  classNames: f,
369
- valueColor: w,
369
+ valueColor: M,
370
370
  animate: p,
371
371
  noOfTicks: m,
372
372
  dimmedOpacity: tt,
373
373
  precision: it,
374
374
  customLayers: V,
375
375
  showDataMinMax: wt,
376
- locale: Z
376
+ locale: Q
377
377
  } = i, Mt = C === void 0 ? 5 : C, Vt = bt === void 0 ? 5 : bt, jt = mt === void 0 ? 10 : mt, Ct = kt === void 0 ? 10 : kt, $t = qt(null);
378
- let st;
379
- t[0] !== p.amount || t[1] !== p.once ? (st = {
378
+ let ct;
379
+ t[0] !== p.amount || t[1] !== p.once ? (ct = {
380
380
  once: p.once,
381
381
  amount: p.amount
382
- }, t[0] = p.amount, t[1] = p.once, t[2] = st) : st = t[2];
383
- const j = ai($t, st), [ct, Dt] = Ot(void 0), [s, h] = Ot(void 0), [dt, It] = Ot(void 0), [gt, xt] = Ot(void 0);
382
+ }, t[0] = p.amount, t[1] = p.once, t[2] = ct) : ct = t[2];
383
+ const j = ri($t, ct), [ut, Dt] = Ot(void 0), [s, d] = Ot(void 0), [ht, It] = Ot(void 0), [gt, xt] = Ot(void 0);
384
384
  let yt;
385
385
  t[3] !== Ct || t[4] !== Mt || t[5] !== Vt || t[6] !== jt ? (yt = {
386
386
  top: jt,
@@ -388,32 +388,32 @@ function qi(i) {
388
388
  left: Mt,
389
389
  right: Vt
390
390
  }, t[3] = Ct, t[4] = Mt, t[5] = Vt, t[6] = jt, t[7] = yt) : yt = t[7];
391
- const g = yt, F = A - g.left - g.right, B = v - g.top - g.bottom;
392
- let T, D, M, E, I, k, L, P, H, W, X, Y;
393
- if (t[8] !== p.duration || t[9] !== f?.graphObjectValues || t[10] !== f?.xAxis?.labels || t[11] !== l || t[12] !== n || t[13] !== V || t[14] !== o || t[15] !== Q || t[16] !== tt || t[17] !== x || t[18] !== B || t[19] !== F || t[20] !== v || t[21] !== b || t[22] !== r || t[23] !== j || t[24] !== Z || t[25] !== g.left || t[26] !== g.top || t[27] !== S || t[28] !== N || t[29] !== s || t[30] !== m || t[31] !== J || t[32] !== nt || t[33] !== it || t[34] !== lt || t[35] !== u || t[36] !== vt || t[37] !== rt || t[38] !== wt || t[39] !== at || t[40] !== O?.graphObjectValues || t[41] !== O?.xAxis?.labels || t[42] !== K || t[43] !== w || t[44] !== A) {
394
- const At = o.map(we);
395
- let ft;
396
- t[57] !== r ? (ft = (e) => {
391
+ const g = yt, F = $ - g.left - g.right, B = y - g.top - g.bottom;
392
+ let S, T, b, D, E, L, H, P, W, X, Y, x;
393
+ if (t[8] !== p.duration || t[9] !== f?.graphObjectValues || t[10] !== f?.xAxis?.labels || t[11] !== l || t[12] !== n || t[13] !== V || t[14] !== o || t[15] !== K || t[16] !== tt || t[17] !== v || t[18] !== B || t[19] !== F || t[20] !== y || t[21] !== w || t[22] !== r || t[23] !== j || t[24] !== Q || t[25] !== g.left || t[26] !== g.top || t[27] !== N || t[28] !== A || t[29] !== s || t[30] !== m || t[31] !== U || t[32] !== rt || t[33] !== it || t[34] !== at || t[35] !== u || t[36] !== vt || t[37] !== lt || t[38] !== wt || t[39] !== st || t[40] !== O?.graphObjectValues || t[41] !== O?.xAxis?.labels || t[42] !== J || t[43] !== M || t[44] !== $) {
394
+ const At = o.map(Oe);
395
+ let pt;
396
+ t[57] !== r ? (pt = (e) => {
397
397
  const c = (r || []).indexOf(e.label);
398
398
  return c === -1 ? 1 / 0 : c;
399
- }, t[57] = r, t[58] = ft) : ft = t[58];
400
- const Nt = oi(At, [ft], ["desc"]);
401
- let pt;
402
- t[59] !== o || t[60] !== S ? (pt = U(S) ? Math.max(...o.filter(be).map(Oe)) < 0 ? 0 : Math.max(...o.filter(ve).map(ye)) : S, t[59] = o, t[60] = S, t[61] = pt) : pt = t[61];
403
- const St = pt;
399
+ }, t[57] = r, t[58] = pt) : pt = t[58];
400
+ const Nt = ii(At, [pt], ["desc"]);
404
401
  let et;
405
- t[62] !== o || t[63] !== N ? (et = U(N) ? Math.min(...o.filter(xe).map(ge)) >= 0 ? 0 : Math.min(...o.filter(de).map(he)) : N, t[62] = o, t[63] = N, t[64] = et) : et = t[64];
406
- const zt = et, q = li().domain([zt, St]).range([0, F]).nice(), Tt = ci(m, F);
407
- D = ot.svg, E = `${A}px`, I = `${v}px`, k = `0 0 ${A} ${v}`, L = "ltr", P = $t, Y = `translate(${g.left},${g.top})`, t[65] !== V ? (M = V.filter(me).map(pe), t[65] = V, t[66] = M) : M = t[66], T = si, H = Nt.map((e) => /* @__PURE__ */ a.jsxs(ot.g, { className: "undp-viz-g-with-hover", variants: {
402
+ t[59] !== o || t[60] !== N ? (et = q(N) ? Math.max(...o.filter(ve).map(ye)) < 0 ? 0 : Math.max(...o.filter(xe).map(ge)) : N, t[59] = o, t[60] = N, t[61] = et) : et = t[61];
403
+ const Gt = et;
404
+ let ot;
405
+ t[62] !== o || t[63] !== A ? (ot = q(A) ? Math.min(...o.filter(he).map(de)) >= 0 ? 0 : Math.min(...o.filter(me).map(pe)) : A, t[62] = o, t[63] = A, t[64] = ot) : ot = t[64];
406
+ const zt = ot, _ = ni().domain([zt, Gt]).range([0, F]).nice(), St = ai(m, F);
407
+ T = nt.svg, D = `${$}px`, E = `${y}px`, L = `0 0 ${$} ${y}`, H = "ltr", P = $t, x = `translate(${g.left},${g.top})`, t[65] !== V ? (b = V.filter(fe).map(ue), t[65] = V, t[66] = b) : b = t[66], S = li, W = Nt.map((e) => /* @__PURE__ */ a.jsxs(nt.g, { className: "undp-viz-g-with-hover", variants: {
408
408
  initial: {
409
409
  opacity: 0,
410
- x: q(0),
410
+ x: _(0),
411
411
  y: B / 2
412
412
  },
413
413
  whileInView: {
414
- x: q(e.position),
414
+ x: _(e.position),
415
415
  y: B / 2,
416
- opacity: rt ? e.color && n[l.indexOf(e.color)] === rt ? 0.95 : tt : r.length !== 0 ? r.indexOf(e.label) !== -1 ? 0.95 : tt : x,
416
+ opacity: lt ? e.color && n[l.indexOf(e.color)] === lt ? 0.95 : tt : r ? r.indexOf(e.label) !== -1 ? 0.95 : tt : v,
417
417
  transition: {
418
418
  duration: p.duration
419
419
  }
@@ -424,20 +424,20 @@ function qi(i) {
424
424
  duration: p.duration
425
425
  }
426
426
  }, onMouseEnter: (c) => {
427
- Dt(e), xt(c.clientY), It(c.clientX), nt?.(e);
427
+ Dt(e), xt(c.clientY), It(c.clientX), rt?.(e);
428
428
  }, onClick: () => {
429
- (J || Q) && (ei(s, e) && vt ? (h(void 0), J?.(void 0)) : (h(e), J?.(e)));
429
+ (U || K) && (ti(s, e) && vt ? (d(void 0), U?.(void 0)) : (d(e), U?.(e)));
430
430
  }, onMouseMove: (c) => {
431
431
  Dt(e), xt(c.clientY), It(c.clientX);
432
432
  }, onMouseLeave: () => {
433
- Dt(void 0), It(void 0), xt(void 0), nt?.(void 0);
433
+ Dt(void 0), It(void 0), xt(void 0), rt?.(void 0);
434
434
  }, children: [
435
- at === "dot" ? /* @__PURE__ */ a.jsx(ot.circle, { cy: 0, cx: 0, variants: {
435
+ st === "dot" ? /* @__PURE__ */ a.jsx(nt.circle, { cy: 0, cx: 0, variants: {
436
436
  initial: {
437
- fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(fe).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(ue).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray
437
+ fill: w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(ce).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(se).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
438
438
  },
439
439
  whileInView: {
440
- fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(ce).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(se).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray,
440
+ fill: w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(ae).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(le).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
441
441
  transition: {
442
442
  duration: p.duration
443
443
  }
@@ -447,16 +447,16 @@ function qi(i) {
447
447
  transition: {
448
448
  duration: p.duration
449
449
  }
450
- }, r: u }) : /* @__PURE__ */ a.jsx(ot.rect, { x: -1, width: 2, variants: {
450
+ }, r: u }) : /* @__PURE__ */ a.jsx(nt.rect, { x: -1, width: 2, variants: {
451
451
  initial: {
452
452
  y: 0 - u,
453
453
  height: u * 2,
454
- fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(ae).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(le).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray
454
+ fill: w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(re).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(ne).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray
455
455
  },
456
456
  whileInView: {
457
457
  y: 0 - u,
458
458
  height: u * 2,
459
- fill: b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(re).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(ne).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray,
459
+ fill: w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(oe).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(ee).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray,
460
460
  transition: {
461
461
  duration: p.duration
462
462
  }
@@ -467,16 +467,16 @@ function qi(i) {
467
467
  duration: p.duration
468
468
  }
469
469
  } }),
470
- r.length !== 0 && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(ot.text, { x: 0, variants: {
470
+ r && r.indexOf(e.label) !== -1 ? /* @__PURE__ */ a.jsx(nt.text, { x: 0, variants: {
471
471
  initial: {
472
472
  opacity: 0,
473
473
  y: 0 - u - 5,
474
- fill: w || (b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(oe).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(ee).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray)
474
+ fill: M || (w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(ie).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(te).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray)
475
475
  },
476
476
  whileInView: {
477
477
  opacity: 1,
478
478
  y: 0 - u - 5,
479
- fill: w || (b && r ? r.indexOf(e.label) !== -1 ? b : o.filter(ie).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray : o.filter(te).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : d.gray),
479
+ fill: M || (w && r ? r.indexOf(e.label) !== -1 ? w : o.filter(_i).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray : o.filter(Zi).length === 0 ? n[0] : e.color ? n[l.indexOf(e.color)] : h.gray),
480
480
  transition: {
481
481
  duration: p.duration
482
482
  }
@@ -489,15 +489,15 @@ function qi(i) {
489
489
  }, style: {
490
490
  textAnchor: "middle",
491
491
  ...O?.graphObjectValues || {}
492
- }, className: Yt("graph-value text-sm font-bold", f?.graphObjectValues), children: Gt(e.position, void 0, it, lt, K, Z) }) : null
493
- ] }, e.label)), W = wt ? [Math.min(...o.filter(_i).map(Zi)), Math.max(...o.filter(Qi).map(Ki))].map((e, c) => /* @__PURE__ */ a.jsx(ot.g, { variants: {
492
+ }, className: Xt("graph-value text-sm font-bold", f?.graphObjectValues), children: Yt(e.position, void 0, it, at, J, Q) }) : null
493
+ ] }, e.label)), X = wt ? [Math.min(...o.filter(Qi).map(Ki)), Math.max(...o.filter(Ji).map(Ui))].map((e, c) => /* @__PURE__ */ a.jsx(nt.g, { variants: {
494
494
  initial: {
495
495
  opacity: 0,
496
- x: q(0),
496
+ x: _(0),
497
497
  y: B / 2
498
498
  },
499
499
  whileInView: {
500
- x: q(e),
500
+ x: _(e),
501
501
  y: B / 2,
502
502
  opacity: 1,
503
503
  transition: {
@@ -509,7 +509,7 @@ function qi(i) {
509
509
  transition: {
510
510
  duration: p.duration
511
511
  }
512
- }, children: /* @__PURE__ */ a.jsx(ot.text, { x: 0, variants: {
512
+ }, children: /* @__PURE__ */ a.jsx(nt.text, { x: 0, variants: {
513
513
  initial: {
514
514
  opacity: 0,
515
515
  y: 0 - u - 5
@@ -529,56 +529,62 @@ function qi(i) {
529
529
  }, style: {
530
530
  textAnchor: "middle",
531
531
  ...O?.graphObjectValues || {}
532
- }, className: Yt("graph-value text-sm text-primary-gray-550 dark:text-primary-gray-200", f?.graphObjectValues), children: Gt(e, void 0, it, lt, K, Z) }) }, c)) : null, X = Tt.map((e, c) => /* @__PURE__ */ a.jsx("text", { x: e, y: B / 2 + u, style: {
533
- textAnchor: c === 0 ? "start" : c === Tt.length - 1 ? "end" : "middle",
532
+ }, className: Xt("graph-value text-sm text-primary-gray-550 dark:text-primary-gray-200", f?.graphObjectValues), children: Yt(e, void 0, it, at, J, Q) }) }, c)) : null, Y = St.map((e, c) => /* @__PURE__ */ a.jsx("text", { x: e, y: B / 2 + u, style: {
533
+ textAnchor: c === 0 ? "start" : c === St.length - 1 ? "end" : "middle",
534
534
  ...O?.xAxis?.labels || {}
535
- }, className: Yt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", f?.xAxis?.labels), dy: "1em", children: Gt(q.invert(e), void 0, it, lt, K, Z) }, c)), t[8] = p.duration, t[9] = f?.graphObjectValues, t[10] = f?.xAxis?.labels, t[11] = l, t[12] = n, t[13] = V, t[14] = o, t[15] = Q, t[16] = tt, t[17] = x, t[18] = B, t[19] = F, t[20] = v, t[21] = b, t[22] = r, t[23] = j, t[24] = Z, t[25] = g.left, t[26] = g.top, t[27] = S, t[28] = N, t[29] = s, t[30] = m, t[31] = J, t[32] = nt, t[33] = it, t[34] = lt, t[35] = u, t[36] = vt, t[37] = rt, t[38] = wt, t[39] = at, t[40] = O?.graphObjectValues, t[41] = O?.xAxis?.labels, t[42] = K, t[43] = w, t[44] = A, t[45] = T, t[46] = D, t[47] = M, t[48] = E, t[49] = I, t[50] = k, t[51] = L, t[52] = P, t[53] = H, t[54] = W, t[55] = X, t[56] = Y;
535
+ }, className: Xt("fill-primary-gray-550 dark:fill-primary-gray-500 text-xs", f?.xAxis?.labels), dy: "1em", children: Yt(_.invert(e), void 0, it, at, J, Q) }, c)), t[8] = p.duration, t[9] = f?.graphObjectValues, t[10] = f?.xAxis?.labels, t[11] = l, t[12] = n, t[13] = V, t[14] = o, t[15] = K, t[16] = tt, t[17] = v, t[18] = B, t[19] = F, t[20] = y, t[21] = w, t[22] = r, t[23] = j, t[24] = Q, t[25] = g.left, t[26] = g.top, t[27] = N, t[28] = A, t[29] = s, t[30] = m, t[31] = U, t[32] = rt, t[33] = it, t[34] = at, t[35] = u, t[36] = vt, t[37] = lt, t[38] = wt, t[39] = st, t[40] = O?.graphObjectValues, t[41] = O?.xAxis?.labels, t[42] = J, t[43] = M, t[44] = $, t[45] = S, t[46] = T, t[47] = b, t[48] = D, t[49] = E, t[50] = L, t[51] = H, t[52] = P, t[53] = W, t[54] = X, t[55] = Y, t[56] = x;
536
536
  } else
537
- T = t[45], D = t[46], M = t[47], E = t[48], I = t[49], k = t[50], L = t[51], P = t[52], H = t[53], W = t[54], X = t[55], Y = t[56];
537
+ S = t[45], T = t[46], b = t[47], D = t[48], E = t[49], L = t[50], H = t[51], P = t[52], W = t[53], X = t[54], Y = t[55], x = t[56];
538
538
  let G;
539
- t[67] !== T || t[68] !== H || t[69] !== W || t[70] !== X ? (G = /* @__PURE__ */ a.jsxs(T, { children: [
540
- H,
539
+ t[67] !== S || t[68] !== W || t[69] !== X || t[70] !== Y ? (G = /* @__PURE__ */ a.jsxs(S, { children: [
541
540
  W,
542
- X
543
- ] }), t[67] = T, t[68] = H, t[69] = W, t[70] = X, t[71] = G) : G = t[71];
544
- let y;
545
- t[72] !== V ? (y = V.filter(Ji).map(Ui), t[72] = V, t[73] = y) : y = t[73];
546
- let z;
547
- t[74] !== M || t[75] !== G || t[76] !== y || t[77] !== Y ? (z = /* @__PURE__ */ a.jsxs("g", { transform: Y, children: [
548
- M,
541
+ X,
542
+ Y
543
+ ] }), t[67] = S, t[68] = W, t[69] = X, t[70] = Y, t[71] = G) : G = t[71];
544
+ let Z;
545
+ t[72] !== V ? (Z = V.filter(qi).map(Bi), t[72] = V, t[73] = Z) : Z = t[73];
546
+ let I;
547
+ t[74] !== b || t[75] !== G || t[76] !== Z || t[77] !== x ? (I = /* @__PURE__ */ a.jsxs("g", { transform: x, children: [
548
+ b,
549
549
  G,
550
- y
551
- ] }), t[74] = M, t[75] = G, t[76] = y, t[77] = Y, t[78] = z) : z = t[78];
552
- let _;
553
- t[79] !== D || t[80] !== E || t[81] !== I || t[82] !== k || t[83] !== L || t[84] !== P || t[85] !== z ? (_ = /* @__PURE__ */ a.jsx(D, { width: E, height: I, viewBox: k, direction: L, ref: P, children: z }), t[79] = D, t[80] = E, t[81] = I, t[82] = k, t[83] = L, t[84] = P, t[85] = z, t[86] = _) : _ = t[86];
554
- let $;
555
- t[87] !== f?.tooltip || t[88] !== dt || t[89] !== gt || t[90] !== ct || t[91] !== O?.tooltip || t[92] !== ht ? ($ = ct && ht && dt && gt ? /* @__PURE__ */ a.jsx(ni, { data: ct, body: ht, xPos: dt, yPos: gt, backgroundStyle: O?.tooltip, className: f?.tooltip }) : null, t[87] = f?.tooltip, t[88] = dt, t[89] = gt, t[90] = ct, t[91] = O?.tooltip, t[92] = ht, t[93] = $) : $ = t[93];
550
+ Z
551
+ ] }), t[74] = b, t[75] = G, t[76] = Z, t[77] = x, t[78] = I) : I = t[78];
552
+ let z;
553
+ t[79] !== T || t[80] !== D || t[81] !== E || t[82] !== L || t[83] !== H || t[84] !== P || t[85] !== I ? (z = /* @__PURE__ */ a.jsx(T, { width: D, height: E, viewBox: L, direction: H, ref: P, children: I }), t[79] = T, t[80] = D, t[81] = E, t[82] = L, t[83] = H, t[84] = P, t[85] = I, t[86] = z) : z = t[86];
556
554
  let R;
557
- t[94] !== f?.modal || t[95] !== Q || t[96] !== s ? (R = Q && s !== void 0 ? /* @__PURE__ */ a.jsx(ri, { body: Q, data: s, setData: h, className: f?.modal }) : null, t[94] = f?.modal, t[95] = Q, t[96] = s, t[97] = R) : R = t[97];
558
- let ut;
559
- return t[98] !== _ || t[99] !== $ || t[100] !== R ? (ut = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
560
- _,
561
- $,
562
- R
563
- ] }), t[98] = _, t[99] = $, t[100] = R, t[101] = ut) : ut = t[101], ut;
555
+ t[87] !== f?.tooltip || t[88] !== ht || t[89] !== gt || t[90] !== ut || t[91] !== O?.tooltip || t[92] !== dt ? (R = ut && dt && ht && gt ? /* @__PURE__ */ a.jsx(ei, { data: ut, body: dt, xPos: ht, yPos: gt, backgroundStyle: O?.tooltip, className: f?.tooltip }) : null, t[87] = f?.tooltip, t[88] = ht, t[89] = gt, t[90] = ut, t[91] = O?.tooltip, t[92] = dt, t[93] = R) : R = t[93];
556
+ let k;
557
+ t[94] !== f?.modal || t[95] !== K || t[96] !== s ? (k = K && s !== void 0 ? /* @__PURE__ */ a.jsx(oi, { body: K, data: s, setData: d, className: f?.modal }) : null, t[94] = f?.modal, t[95] = K, t[96] = s, t[97] = k) : k = t[97];
558
+ let ft;
559
+ return t[98] !== z || t[99] !== R || t[100] !== k ? (ft = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
560
+ z,
561
+ R,
562
+ k
563
+ ] }), t[98] = z, t[99] = R, t[100] = k, t[101] = ft) : ft = t[101], ft;
564
+ }
565
+ function Bi(i) {
566
+ return i.layer;
567
+ }
568
+ function qi(i) {
569
+ return i.position === "after";
564
570
  }
565
571
  function Ui(i) {
566
- return i.layer;
572
+ return i.position;
567
573
  }
568
574
  function Ji(i) {
569
- return i.position === "after";
575
+ return !q(i.position);
570
576
  }
571
577
  function Ki(i) {
572
578
  return i.position;
573
579
  }
574
580
  function Qi(i) {
575
- return !U(i.position);
581
+ return !q(i.position);
576
582
  }
577
583
  function Zi(i) {
578
- return i.position;
584
+ return i.color;
579
585
  }
580
586
  function _i(i) {
581
- return !U(i.position);
587
+ return i.color;
582
588
  }
583
589
  function te(i) {
584
590
  return i.color;
@@ -611,52 +617,46 @@ function ce(i) {
611
617
  return i.color;
612
618
  }
613
619
  function ue(i) {
614
- return i.color;
620
+ return i.layer;
615
621
  }
616
622
  function fe(i) {
617
- return i.color;
623
+ return i.position === "before";
618
624
  }
619
625
  function pe(i) {
620
- return i.layer;
626
+ return i.position;
621
627
  }
622
628
  function me(i) {
623
- return i.position === "before";
629
+ return !q(i.position);
624
630
  }
625
- function he(i) {
631
+ function de(i) {
626
632
  return i.position;
627
633
  }
628
- function de(i) {
629
- return !U(i.position);
634
+ function he(i) {
635
+ return !q(i.position);
630
636
  }
631
637
  function ge(i) {
632
638
  return i.position;
633
639
  }
634
640
  function xe(i) {
635
- return !U(i.position);
641
+ return !q(i.position);
636
642
  }
637
643
  function ye(i) {
638
644
  return i.position;
639
645
  }
640
646
  function ve(i) {
641
- return !U(i.position);
642
- }
643
- function Oe(i) {
644
- return i.position;
645
- }
646
- function be(i) {
647
- return !U(i.position);
647
+ return !q(i.position);
648
648
  }
649
- function we(i, t) {
649
+ function Oe(i, t) {
650
650
  return {
651
651
  ...i,
652
652
  id: `${t}`
653
653
  };
654
654
  }
655
- function Ke(i) {
656
- const t = Qt.c(94), {
655
+ function Ue(i) {
656
+ const t = Kt.c(92), {
657
657
  data: o,
658
- graphTitle: A,
659
- colors: v,
658
+ graphTitle: $,
659
+ colors: y,
660
660
  sources: n,
661
661
  graphDescription: l,
662
662
  height: u,
@@ -664,130 +664,127 @@ function Ke(i) {
664
664
  footNote: bt,
665
665
  colorDomain: mt,
666
666
  colorLegendTitle: kt,
667
- radius: ht,
668
- padding: nt,
667
+ radius: dt,
668
+ padding: rt,
669
669
  backgroundColor: r,
670
- leftMargin: rt,
671
- rightMargin: N,
672
- topMargin: S,
673
- bottomMargin: J,
674
- tooltip: lt,
675
- relativeHeight: K,
676
- onSeriesMouseOver: at,
677
- showColorScale: b,
678
- highlightedDataPoints: x,
670
+ leftMargin: lt,
671
+ rightMargin: A,
672
+ topMargin: N,
673
+ bottomMargin: U,
674
+ tooltip: at,
675
+ relativeHeight: J,
676
+ onSeriesMouseOver: st,
677
+ showColorScale: w,
678
+ highlightedDataPoints: v,
679
679
  graphID: vt,
680
- minValue: Q,
680
+ minValue: K,
681
681
  maxValue: O,
682
682
  onSeriesMouseClick: f,
683
- noOfTicks: w,
683
+ noOfTicks: M,
684
684
  graphDownload: p,
685
685
  dataDownload: m,
686
686
  prefix: tt,
687
687
  suffix: it,
688
688
  stripType: V,
689
689
  language: wt,
690
- highlightColor: Z,
690
+ highlightColor: Q,
691
691
  dotOpacity: Mt,
692
692
  showNAColor: Vt,
693
693
  minHeight: jt,
694
694
  theme: Ct,
695
695
  ariaLabel: $t,
696
- valueColor: st,
696
+ valueColor: ct,
697
697
  resetSelectionOnDoubleClick: j,
698
- detailsOnClick: ct,
698
+ detailsOnClick: ut,
699
699
  orientation: Dt,
700
700
  styles: s,
701
- classNames: h,
702
- animate: dt,
701
+ classNames: d,
702
+ animate: ht,
703
703
  dimmedOpacity: It,
704
704
  precision: gt,
705
705
  customLayers: xt,
706
706
  showDataMinMax: yt,
707
707
  locale: g
708
- } = i, F = ht === void 0 ? 5 : ht, B = r === void 0 ? !1 : r, T = b === void 0 ? !0 : b;
709
- let D;
710
- t[0] !== x ? (D = x === void 0 ? [] : x, t[0] = x, t[1] = D) : D = t[1];
711
- const M = D, E = w === void 0 ? 2 : w, I = p === void 0 ? !1 : p, k = m === void 0 ? !1 : m, L = tt === void 0 ? "" : tt, P = it === void 0 ? "" : it, H = V === void 0 ? "dot" : V, W = wt === void 0 ? "en" : wt, X = Mt === void 0 ? 0.3 : Mt, Y = Vt === void 0 ? !0 : Vt, G = jt === void 0 ? 0 : jt, y = Ct === void 0 ? "light" : Ct, z = j === void 0 ? !0 : j, _ = Dt === void 0 ? "vertical" : Dt, $ = dt === void 0 ? !1 : dt, R = It === void 0 ? 0.3 : It, ut = gt === void 0 ? 2 : gt;
712
- let At;
713
- t[2] !== xt ? (At = xt === void 0 ? [] : xt, t[2] = xt, t[3] = At) : At = t[3];
714
- const ft = At, Nt = yt === void 0 ? !1 : yt, pt = g === void 0 ? "en" : g, St = _ === "horizontal" ? qi : xi, [et, zt] = Ot(0), [q, Tt] = Ot(0), [e, c] = Ot(void 0), Ut = qt(null), Zt = qt(null);
708
+ } = i, F = dt === void 0 ? 5 : dt, B = r === void 0 ? !1 : r, S = w === void 0 ? !0 : w, T = M === void 0 ? 2 : M, b = p === void 0 ? !1 : p, D = m === void 0 ? !1 : m, E = tt === void 0 ? "" : tt, L = it === void 0 ? "" : it, H = V === void 0 ? "dot" : V, P = wt === void 0 ? "en" : wt, W = Mt === void 0 ? 0.3 : Mt, X = Vt === void 0 ? !0 : Vt, Y = jt === void 0 ? 0 : jt, x = Ct === void 0 ? "light" : Ct, G = j === void 0 ? !0 : j, Z = Dt === void 0 ? "vertical" : Dt, I = ht === void 0 ? !1 : ht, z = It === void 0 ? 0.3 : It, R = gt === void 0 ? 2 : gt;
709
+ let k;
710
+ t[0] !== xt ? (k = xt === void 0 ? [] : xt, t[0] = xt, t[1] = k) : k = t[1];
711
+ const ft = k, At = yt === void 0 ? !1 : yt, pt = g === void 0 ? "en" : g, Nt = Z === "horizontal" ? Fi : hi, [et, Gt] = Ot(0), [ot, zt] = Ot(0), [_, St] = Ot(void 0), e = qt(null), c = qt(null);
715
712
  let Rt, Ft;
716
- t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Rt = () => {
717
- const _t = new ResizeObserver((ti) => {
718
- zt(ti[0].target.clientWidth || 620), Tt(ti[0].target.clientHeight || 480);
713
+ t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Rt = () => {
714
+ const Qt = new ResizeObserver((Zt) => {
715
+ Gt(Zt[0].target.clientWidth || 620), zt(Zt[0].target.clientHeight || 480);
719
716
  });
720
- return Ut.current && _t.observe(Ut.current), () => _t.disconnect();
721
- }, Ft = [], t[4] = Rt, t[5] = Ft) : (Rt = t[4], Ft = t[5]), ui(Rt, Ft);
722
- const Jt = h?.graphContainer, Kt = s?.graphContainer;
723
- let Et;
724
- t[6] !== h?.description || t[7] !== h?.title || t[8] !== o || t[9] !== k || t[10] !== l || t[11] !== I || t[12] !== A || t[13] !== s?.description || t[14] !== s?.title || t[15] !== C ? (Et = A || l || I || k ? /* @__PURE__ */ a.jsx(gi, { styles: {
717
+ return e.current && Qt.observe(e.current), () => Qt.disconnect();
718
+ }, Ft = [], t[2] = Rt, t[3] = Ft) : (Rt = t[2], Ft = t[3]), si(Rt, Ft);
719
+ const Ut = d?.graphContainer, Jt = s?.graphContainer;
720
+ let Tt;
721
+ t[4] !== d?.description || t[5] !== d?.title || t[6] !== o || t[7] !== D || t[8] !== l || t[9] !== b || t[10] !== $ || t[11] !== s?.description || t[12] !== s?.title || t[13] !== C ? (Tt = $ || l || b || D ? /* @__PURE__ */ a.jsx(di, { styles: {
725
722
  title: s?.title,
726
723
  description: s?.description
727
724
  }, classNames: {
728
- title: h?.title,
729
- description: h?.description
730
- }, graphTitle: A, graphDescription: l, width: C, graphDownload: I ? Zt : void 0, dataDownload: k ? o.map($e).filter(ke).length > 0 ? o.map(Ie).filter(De) : o.filter(Ce) : null }) : null, t[6] = h?.description, t[7] = h?.title, t[8] = o, t[9] = k, t[10] = l, t[11] = I, t[12] = A, t[13] = s?.description, t[14] = s?.title, t[15] = C, t[16] = Et) : Et = t[16];
725
+ title: d?.title,
726
+ description: d?.description
727
+ }, graphTitle: $, graphDescription: l, width: C, graphDownload: b ? c : void 0, dataDownload: D ? o.map(Ie).filter(De).length > 0 ? o.map(Ce).filter(je) : o.filter(Ve) : null }) : null, t[4] = d?.description, t[5] = d?.title, t[6] = o, t[7] = D, t[8] = l, t[9] = b, t[10] = $, t[11] = s?.description, t[12] = s?.title, t[13] = C, t[14] = Tt) : Tt = t[14];
728
+ let Et;
729
+ t[15] !== d?.colorLegend || t[16] !== mt || t[17] !== kt || t[18] !== y || t[19] !== o || t[20] !== S || t[21] !== X || t[22] !== x || t[23] !== C ? (Et = S !== !1 && o.filter(Me).length !== 0 && o.length > 0 ? /* @__PURE__ */ a.jsx(pi, { width: C, colorLegendTitle: kt, colors: y || h[x].categoricalColors.colors, colorDomain: mt || _t(o, "color", !0), setSelectedColor: St, showNAColor: X, className: d?.colorLegend }) : null, t[15] = d?.colorLegend, t[16] = mt, t[17] = kt, t[18] = y, t[19] = o, t[20] = S, t[21] = X, t[22] = x, t[23] = C, t[24] = Et) : Et = t[24];
731
730
  let Lt;
732
- t[17] !== h?.colorLegend || t[18] !== mt || t[19] !== kt || t[20] !== v || t[21] !== o || t[22] !== T || t[23] !== Y || t[24] !== y || t[25] !== C ? (Lt = T !== !1 && o.filter(je).length !== 0 && o.length > 0 ? /* @__PURE__ */ a.jsx(hi, { width: C, colorLegendTitle: kt, colors: v || d[y].categoricalColors.colors, colorDomain: mt || ii(o, "color", !0), setSelectedColor: c, showNAColor: Y, className: h?.colorLegend }) : null, t[17] = h?.colorLegend, t[18] = mt, t[19] = kt, t[20] = v, t[21] = o, t[22] = T, t[23] = Y, t[24] = y, t[25] = C, t[26] = Lt) : Lt = t[26];
733
- let Pt;
734
- t[27] !== o.length ? (Pt = o.length === 0 && /* @__PURE__ */ a.jsx(mi, {}), t[27] = o.length, t[28] = Pt) : Pt = t[28];
731
+ t[25] !== o.length ? (Lt = o.length === 0 && /* @__PURE__ */ a.jsx(fi, {}), t[25] = o.length, t[26] = Lt) : Lt = t[26];
735
732
  let Ht;
736
- t[29] !== St || t[30] !== $ || t[31] !== J || t[32] !== h || t[33] !== mt || t[34] !== v || t[35] !== ft || t[36] !== o || t[37] !== ct || t[38] !== R || t[39] !== X || t[40] !== Z || t[41] !== M || t[42] !== rt || t[43] !== pt || t[44] !== O || t[45] !== Q || t[46] !== E || t[47] !== f || t[48] !== at || t[49] !== ut || t[50] !== L || t[51] !== F || t[52] !== z || t[53] !== N || t[54] !== e || t[55] !== Nt || t[56] !== H || t[57] !== s || t[58] !== P || t[59] !== q || t[60] !== et || t[61] !== y || t[62] !== lt || t[63] !== S || t[64] !== st ? (Ht = et && q && o.length > 0 ? /* @__PURE__ */ a.jsx(St, { data: o, width: et, showDataMinMax: Nt, height: q, colorDomain: o.filter(Ve).length === 0 ? [] : mt || ii(o, "color", !0), colors: o.filter(Me).length === 0 ? v ? [v] : [d.primaryColors["blue-600"]] : v || d[y].categoricalColors.colors, selectedColor: e, radius: F, leftMargin: rt, rightMargin: N, topMargin: S, bottomMargin: J, tooltip: lt, onSeriesMouseOver: at, highlightedDataPoints: M, minValue: Q, maxValue: O, onSeriesMouseClick: f, prefix: L, suffix: P, stripType: H, highlightColor: Z, dotOpacity: X, resetSelectionOnDoubleClick: z, detailsOnClick: ct, styles: s, classNames: h, valueColor: st, animate: $ === !0 ? {
733
+ t[27] !== Nt || t[28] !== I || t[29] !== U || t[30] !== d || t[31] !== mt || t[32] !== y || t[33] !== ft || t[34] !== o || t[35] !== ut || t[36] !== z || t[37] !== W || t[38] !== Q || t[39] !== v || t[40] !== lt || t[41] !== pt || t[42] !== O || t[43] !== K || t[44] !== T || t[45] !== f || t[46] !== st || t[47] !== R || t[48] !== E || t[49] !== F || t[50] !== G || t[51] !== A || t[52] !== _ || t[53] !== At || t[54] !== H || t[55] !== s || t[56] !== L || t[57] !== ot || t[58] !== et || t[59] !== x || t[60] !== at || t[61] !== N || t[62] !== ct ? (Ht = et && ot && o.length > 0 ? /* @__PURE__ */ a.jsx(Nt, { data: o, width: et, showDataMinMax: At, height: ot, colorDomain: o.filter(we).length === 0 ? [] : mt || _t(o, "color", !0), colors: o.filter(be).length === 0 ? y ? [y] : [h.primaryColors["blue-600"]] : y || h[x].categoricalColors.colors, selectedColor: _, radius: F, leftMargin: lt, rightMargin: A, topMargin: N, bottomMargin: U, tooltip: at, onSeriesMouseOver: st, highlightedDataPoints: v, minValue: K, maxValue: O, onSeriesMouseClick: f, prefix: E, suffix: L, stripType: H, highlightColor: Q, dotOpacity: W, resetSelectionOnDoubleClick: G, detailsOnClick: ut, styles: s, classNames: d, valueColor: ct, animate: I === !0 ? {
737
734
  duration: 0.5,
738
735
  once: !0,
739
736
  amount: 0.5
740
- } : $ || {
737
+ } : I || {
741
738
  duration: 0,
742
739
  once: !0,
743
740
  amount: 0
744
- }, noOfTicks: E, dimmedOpacity: R, precision: ut, customLayers: ft, locale: pt }) : null, t[29] = St, t[30] = $, t[31] = J, t[32] = h, t[33] = mt, t[34] = v, t[35] = ft, t[36] = o, t[37] = ct, t[38] = R, t[39] = X, t[40] = Z, t[41] = M, t[42] = rt, t[43] = pt, t[44] = O, t[45] = Q, t[46] = E, t[47] = f, t[48] = at, t[49] = ut, t[50] = L, t[51] = F, t[52] = z, t[53] = N, t[54] = e, t[55] = Nt, t[56] = H, t[57] = s, t[58] = P, t[59] = q, t[60] = et, t[61] = y, t[62] = lt, t[63] = S, t[64] = st, t[65] = Ht) : Ht = t[65];
745
- let Wt;
746
- t[66] !== Pt || t[67] !== Ht ? (Wt = /* @__PURE__ */ a.jsxs(fi, { ref: Ut, children: [
747
- Pt,
741
+ }, noOfTicks: T, dimmedOpacity: z, precision: R, customLayers: ft, locale: pt }) : null, t[27] = Nt, t[28] = I, t[29] = U, t[30] = d, t[31] = mt, t[32] = y, t[33] = ft, t[34] = o, t[35] = ut, t[36] = z, t[37] = W, t[38] = Q, t[39] = v, t[40] = lt, t[41] = pt, t[42] = O, t[43] = K, t[44] = T, t[45] = f, t[46] = st, t[47] = R, t[48] = E, t[49] = F, t[50] = G, t[51] = A, t[52] = _, t[53] = At, t[54] = H, t[55] = s, t[56] = L, t[57] = ot, t[58] = et, t[59] = x, t[60] = at, t[61] = N, t[62] = ct, t[63] = Ht) : Ht = t[63];
742
+ let Pt;
743
+ t[64] !== Lt || t[65] !== Ht ? (Pt = /* @__PURE__ */ a.jsxs(ci, { ref: e, children: [
744
+ Lt,
748
745
  Ht
749
- ] }), t[66] = Pt, t[67] = Ht, t[68] = Wt) : Wt = t[68];
750
- let Xt;
751
- t[69] !== h?.footnote || t[70] !== h?.source || t[71] !== bt || t[72] !== n || t[73] !== s?.footnote || t[74] !== s?.source || t[75] !== C ? (Xt = n || bt ? /* @__PURE__ */ a.jsx(di, { styles: {
746
+ ] }), t[64] = Lt, t[65] = Ht, t[66] = Pt) : Pt = t[66];
747
+ let Wt;
748
+ t[67] !== d?.footnote || t[68] !== d?.source || t[69] !== bt || t[70] !== n || t[71] !== s?.footnote || t[72] !== s?.source || t[73] !== C ? (Wt = n || bt ? /* @__PURE__ */ a.jsx(mi, { styles: {
752
749
  footnote: s?.footnote,
753
750
  source: s?.source
754
751
  }, classNames: {
755
- footnote: h?.footnote,
756
- source: h?.source
757
- }, sources: n, footNote: bt, width: C }) : null, t[69] = h?.footnote, t[70] = h?.source, t[71] = bt, t[72] = n, t[73] = s?.footnote, t[74] = s?.source, t[75] = C, t[76] = Xt) : Xt = t[76];
752
+ footnote: d?.footnote,
753
+ source: d?.source
754
+ }, sources: n, footNote: bt, width: C }) : null, t[67] = d?.footnote, t[68] = d?.source, t[69] = bt, t[70] = n, t[71] = s?.footnote, t[72] = s?.source, t[73] = C, t[74] = Wt) : Wt = t[74];
758
755
  let Bt;
759
- return t[77] !== $t || t[78] !== B || t[79] !== vt || t[80] !== u || t[81] !== W || t[82] !== G || t[83] !== nt || t[84] !== K || t[85] !== Jt || t[86] !== Kt || t[87] !== Et || t[88] !== Lt || t[89] !== Wt || t[90] !== Xt || t[91] !== y || t[92] !== C ? (Bt = /* @__PURE__ */ a.jsxs(pi, { className: Jt, style: Kt, id: vt, ref: Zt, "aria-label": $t, backgroundColor: B, theme: y, language: W, minHeight: G, width: C, height: u, relativeHeight: K, padding: nt, children: [
756
+ return t[75] !== $t || t[76] !== B || t[77] !== vt || t[78] !== u || t[79] !== P || t[80] !== Y || t[81] !== rt || t[82] !== J || t[83] !== Ut || t[84] !== Jt || t[85] !== Tt || t[86] !== Et || t[87] !== Pt || t[88] !== Wt || t[89] !== x || t[90] !== C ? (Bt = /* @__PURE__ */ a.jsxs(ui, { className: Ut, style: Jt, id: vt, ref: c, "aria-label": $t, backgroundColor: B, theme: x, language: P, minHeight: Y, width: C, height: u, relativeHeight: J, padding: rt, children: [
757
+ Tt,
760
758
  Et,
761
- Lt,
762
- Wt,
763
- Xt
764
- ] }), t[77] = $t, t[78] = B, t[79] = vt, t[80] = u, t[81] = W, t[82] = G, t[83] = nt, t[84] = K, t[85] = Jt, t[86] = Kt, t[87] = Et, t[88] = Lt, t[89] = Wt, t[90] = Xt, t[91] = y, t[92] = C, t[93] = Bt) : Bt = t[93], Bt;
759
+ Pt,
760
+ Wt
761
+ ] }), t[75] = $t, t[76] = B, t[77] = vt, t[78] = u, t[79] = P, t[80] = Y, t[81] = rt, t[82] = J, t[83] = Ut, t[84] = Jt, t[85] = Tt, t[86] = Et, t[87] = Pt, t[88] = Wt, t[89] = x, t[90] = C, t[91] = Bt) : Bt = t[91], Bt;
765
762
  }
766
- function Me(i) {
763
+ function be(i) {
767
764
  return i.color;
768
765
  }
769
- function Ve(i) {
766
+ function we(i) {
770
767
  return i.color;
771
768
  }
772
- function je(i) {
769
+ function Me(i) {
773
770
  return i.color;
774
771
  }
775
- function Ce(i) {
772
+ function Ve(i) {
776
773
  return i !== void 0;
777
774
  }
778
- function De(i) {
775
+ function je(i) {
779
776
  return i !== void 0;
780
777
  }
781
- function Ie(i) {
778
+ function Ce(i) {
782
779
  return i.data;
783
780
  }
784
- function ke(i) {
781
+ function De(i) {
785
782
  return i !== void 0;
786
783
  }
787
- function $e(i) {
784
+ function Ie(i) {
788
785
  return i.data;
789
786
  }
790
787
  export {
791
- Ke as StripChart
788
+ Ue as StripChart
792
789
  };
793
790
  //# sourceMappingURL=StripChart.js.map